|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+6XX":function(k,D,n){var y=n("y1pI");function p(x){return y(this.__data__,x)>-1}k.exports=p},"+BJd":function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("6MrE"),A=n.n(x)},"+QRC":function(k,D,n){"use strict";var y=n("E9nw"),p={"text/plain":"Text","text/html":"Url",default:"Text"},x="Copy to clipboard: #{key}, Enter";function A(f){var h=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return f.replace(/#{\s*key\s*}/g,h)}function m(f,h){var u,a,i,t,o,e,l=!1;h||(h={}),u=h.debug||!1;try{i=y(),t=document.createRange(),o=document.getSelection(),e=document.createElement("span"),e.textContent=f,e.ariaHidden="true",e.style.all="unset",e.style.position="fixed",e.style.top=0,e.style.clip="rect(0, 0, 0, 0)",e.style.whiteSpace="pre",e.style.webkitUserSelect="text",e.style.MozUserSelect="text",e.style.msUserSelect="text",e.style.userSelect="text",e.addEventListener("copy",function(s){if(s.stopPropagation(),h.format)if(s.preventDefault(),typeof s.clipboardData=="undefined"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var c=p[h.format]||p.default;window.clipboardData.setData(c,f)}else s.clipboardData.clearData(),s.clipboardData.setData(h.format,f);h.onCopy&&(s.preventDefault(),h.onCopy(s.clipboardData))}),document.body.appendChild(e),t.selectNodeContents(e),o.addRange(t);var r=document.execCommand("copy");if(!r)throw new Error("copy command was unsuccessful");l=!0}catch(s){u&&console.error("unable to copy using execCommand: ",s),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(h.format||"text",f),h.onCopy&&h.onCopy(window.clipboardData),l=!0}catch(c){u&&console.error("unable to copy using clipboardData: ",c),u&&console.error("falling back to prompt"),a=A("message"in h?h.message:x),window.prompt(a,f)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(t):o.removeAllRanges()),e&&document.body.removeChild(e),i()}return l}k.exports=m},"+TT/":function(k,D,n){var y=n("bYtY"),p=n("mFDi"),x=n("OELB"),A=x.parsePercent,m=n("7aKB"),f=y.each,h=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function a(v,b,S,E,C){var _=0,T=0;E==null&&(E=Infinity),C==null&&(C=Infinity);var w=0;b.eachChild(function(O,I){var R=O.position,M=O.getBoundingRect(),F=b.childAt(I+1),P=F&&F.getBoundingRect(),X,B;if(v==="horizontal"){var j=M.width+(P?-P.x+M.x:0);X=_+j,X>E||O.newline?(_=0,X=j,T+=w+S,w=M.height):w=Math.max(w,M.height)}else{var W=M.height+(P?-P.y+M.y:0);B=T+W,B>C||O.newline?(_+=w+S,T=0,B=W,w=M.width):w=Math.max(w,M.width)}if(O.newline)return;R[0]=_,R[1]=T,v==="horizontal"?_=X+S:T=B+S})}var i=a,t=y.curry(a,"vertical"),o=y.curry(a,"horizontal");function e(v,b,S){var E=b.width,C=b.height,_=A(v.x,E),T=A(v.y,C),w=A(v.x2,E),O=A(v.y2,C);return(isNaN(_)||isNaN(parseFloat(v.x)))&&(_=0),(isNaN(w)||isNaN(parseFloat(v.x2)))&&(w=E),(isNaN(T)||isNaN(parseFloat(v.y)))&&(T=0),(isNaN(O)||isNaN(parseFloat(v.y2)))&&(O=C),S=m.normalizeCssArray(S||0),{width:Math.max(w-_-S[1]-S[3],0),height:Math.max(O-T-S[0]-S[2],0)}}function l(v,b,S){S=m.normalizeCssArray(S||0);var E=b.width,C=b.height,_=A(v.left,E),T=A(v.top,C),w=A(v.right,E),O=A(v.bottom,C),I=A(v.width,E),R=A(v.height,C),M=S[2]+S[0],F=S[1]+S[3],P=v.aspect;isNaN(I)&&(I=E-w-F-_),isNaN(R)&&(R=C-O-M-T),P!=null&&(isNaN(I)&&isNaN(R)&&(P>E/C?I=E*.8:R=C*.8),isNaN(I)&&(I=P*R),isNaN(R)&&(R=I/P)),isNaN(_)&&(_=E-w-I-F),isNaN(T)&&(T=C-O-R-M);switch(v.left||v.right){case"center":_=E/2-I/2-S[3];break;case"right":_=E-I-F;break}switch(v.top||v.bottom){case"middle":case"center":T=C/2-R/2-S[0];break;case"bottom":T=C-R-M;break}_=_||0,T=T||0,isNaN(I)&&(I=E-F-_-(w||0)),isNaN(R)&&(R=C-M-T-(O||0));var X=new p(_+S[3],T+S[0],I,R);return X.margin=S,X}function r(v,b,S,E,C){var _=!C||!C.hv||C.hv[0],T=!C||!C.hv||C.hv[1],w=C&&C.boundingMode||"all";if(!_&&!T)return;var O;if(w==="raw")O=v.type==="group"?new p(0,0,+b.width||0,+b.height||0):v.getBoundingRect();else if(O=v.getBoundingRect(),v.needLocalTransform()){var I=v.getLocalTransform();O=O.clone(),O.applyTransform(I)}b=l(y.defaults({width:O.width,height:O.height},b),S,E);var R=v.position,M=_?b.x-O.x:0,F=T?b.y-O.y:0;v.attr("position",w==="raw"?[M,F]:[R[0]+M,R[1]+F])}function s(v,b){return v[u[b][0]]!=null||v[u[b][1]]!=null&&v[u[b][2]]!=null}function c(v,b,S){!y.isObject(S)&&(S={});var E=S.ignoreSize;!y.isArray(E)&&(E=[E,E]);var C=T(u[0],0),_=T(u[1],1);I(u[0],v,C),I(u[1],v,_);function T(R,M){var F={},P=0,X={},B=0,j=2;if(f(R,function(V){X[V]=v[V]}),f(R,function(V){w(b,V)&&(F[V]=X[V]=b[V]),O(F,V)&&P++,O(X,V)&&B++}),E[M])return O(b,R[1])?X[R[2]]=null:O(b,R[2])&&(X[R[1]]=null),X;if(B===j||!P)return X;if(P>=j)return F;for(var W=0;W<R.length;W++){var z=R[W];if(!w(F,z)&&w(v,z)){F[z]=v[z];break}}return F}function w(R,M){return R.hasOwnProperty(M)}function O(R,M){return R[M]!=null&&R[M]!=="auto"}function I(R,M,F){f(R,function(P){M[P]=F[P]})}}function d(v){return g({},v)}function g(v,b){return b&&v&&f(h,function(S){b.hasOwnProperty(S)&&(v[S]=b[S])}),v}D.LOCATION_PARAMS=h,D.HV_NAMES=u,D.box=i,D.vbox=t,D.hbox=o,D.getAvailableSize=e,D.getLayoutRect=l,D.positionElement=r,D.sizeCalculable=s,D.mergeLayoutParam=c,D.getLayoutParams=d,D.copyLayoutParams=g},"+eQT":function(k,D,n){"use strict";var y=n("wd/R"),p=n.n(y),x=n("Kwbf"),A={getNow:function(){return p()()},getWeekDay:function(xr){var Jr=xr.clone().locale("en_US");return Jr.weekday()+Jr.localeData().firstDayOfWeek()},getYear:function(xr){return xr.year()},getMonth:function(xr){return xr.month()},getDate:function(xr){return xr.date()},getHour:function(xr){return xr.hour()},getMinute:function(xr){return xr.minute()},getSecond:function(xr){return xr.second()},addYear:function(xr,Jr){var Vr=xr.clone();return Vr.add(Jr,"year")},addMonth:function(xr,Jr){var Vr=xr.clone();return Vr.add(Jr,"month")},addDate:function(xr,Jr){var Vr=xr.clone();return Vr.add(Jr,"day")},setYear:function(xr,Jr){var Vr=xr.clone();return Vr.year(Jr)},setMonth:function(xr,Jr){var Vr=xr.clone();return Vr.month(Jr)},setDate:function(xr,Jr){var Vr=xr.clone();return Vr.date(Jr)},setHour:function(xr,Jr){var Vr=xr.clone();return Vr.hour(Jr)},setMinute:function(xr,Jr){var Vr=xr.clone();return Vr.minute(Jr)},setSecond:function(xr,Jr){var Vr=xr.clone();return Vr.second(Jr)},isAfter:function(xr,Jr){return xr.isAfter(Jr)},isValidate:function(xr){return xr.isValid()},locale:{getWeekFirstDay:function(xr){var Jr=p()().locale(xr);return Jr.localeData().firstDayOfWeek()},getWeek:function(xr,Jr){var Vr=Jr.clone(),Vn=Vr.locale(xr);return Vn.week()},getShortWeekDays:function(xr){var Jr=p()().locale(xr);return Jr.localeData().weekdaysMin()},getShortMonths:function(xr){var Jr=p()().locale(xr);return Jr.localeData().monthsShort()},format:function(xr,Jr,Vr){var Vn=Jr.clone(),sn=Vn.locale(xr);return sn.format(Vr)},parse:function(xr,Jr,Vr){for(var Vn=[],sn=0;sn<Vr.length;sn+=1){var zr=Vr[sn],qn=Jr;if(zr.includes("wo")||zr.includes("Wo")){zr=zr.replace(/wo/g,"w").replace(/Wo/g,"W");var en=zr.match(/[-YyMmDdHhSsWwGg]+/g),Un=qn.match(/[-\d]+/g);en&&Un?(zr=en.join(""),qn=Un.join("")):Vn.push(zr.replace(/o/g,""))}var si=p()(qn,zr,xr,!0);if(si.isValid())return si}for(var ui=0;ui<Vn.length;ui+=1){var oi=p()(Jr,Vn[ui],xr,!1);if(oi.isValid())return Object(x.b)(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),oi}return null}}},m=A,f=n("pVnL"),h=n.n(f),u=n("q1tI"),a=n.n(u),i=n("2/Rp");function t(pt){return u.createElement(i.a,h()({size:"small",type:"primary"},pt))}var o=n("mr32");function e(pt){return u.createElement(o.a,h()({color:"blue"},pt))}var l=n("lSNA"),r=n.n(l),s=n("lwsE"),c=n.n(s),d=n("W8MJ"),g=n.n(d),v=n("7W2i"),b=n.n(v),S=n("LQ03"),E=n.n(S),C=n("TSYQ"),_=n.n(C),T=n("qD15"),w=n.n(T),O=n("LHiK"),I=n.n(O),R=n("f0uV"),M=n.n(R),F=n("1OyB"),P=n("vuIU"),X=n("Ji7U"),B=n("LK+K"),j=n("rePB"),W=n("VTBJ"),z=n("ODXe"),V=n("6cGi"),Q=n("U8pU"),G=n("4IlW"),ee=u.createContext({}),ce=ee,be={visibility:"hidden"};function le(pt){var xr=pt.prefixCls,Jr=pt.prevIcon,Vr=Jr===void 0?"\u2039":Jr,Vn=pt.nextIcon,sn=Vn===void 0?"\u203A":Vn,zr=pt.superPrevIcon,qn=zr===void 0?"\xAB":zr,en=pt.superNextIcon,Un=en===void 0?"\xBB":en,si=pt.onSuperPrev,ui=pt.onSuperNext,oi=pt.onPrev,Ei=pt.onNext,pi=pt.children,Ai=u.useContext(ce),Oi=Ai.hideNextBtn,na=Ai.hidePrevBtn;return u.createElement("div",{className:xr},si&&u.createElement("button",{type:"button",onClick:si,tabIndex:-1,className:"".concat(xr,"-super-prev-btn"),style:na?be:{}},qn),oi&&u.createElement("button",{type:"button",onClick:oi,tabIndex:-1,className:"".concat(xr,"-prev-btn"),style:na?be:{}},Vr),u.createElement("div",{className:"".concat(xr,"-view")},pi),Ei&&u.createElement("button",{type:"button",onClick:Ei,tabIndex:-1,className:"".concat(xr,"-next-btn"),style:Oi?be:{}},sn),ui&&u.createElement("button",{type:"button",onClick:ui,tabIndex:-1,className:"".concat(xr,"-super-next-btn"),style:Oi?be:{}},Un))}var Ie=le;function ke(pt){var xr=u.useContext(ce),Jr=xr.hideHeader;if(Jr)return null;var Vr=pt.prefixCls,Vn=pt.generateConfig,sn=pt.locale,zr=pt.value,qn=pt.format,en="".concat(Vr,"-header");return u.createElement(Ie,{prefixCls:en},zr?Vn.locale.format(sn.locale,zr,qn):"\xA0")}var Re=ke,Qe=n("YrtM"),We=n("KQm4"),ot=new Map;function Oe(pt,xr,Jr){if(ot.get(pt)&&cancelAnimationFrame(ot.get(pt)),Jr<=0){ot.set(pt,requestAnimationFrame(function(){pt.scrollTop=xr}));return}var Vr=xr-pt.scrollTop,Vn=Vr/Jr*10;ot.set(pt,requestAnimationFrame(function(){pt.scrollTop+=Vn,pt.scrollTop!==xr&&Oe(pt,xr,Jr-10)}))}function oe(pt,xr){var Jr=xr.onLeftRight,Vr=xr.onCtrlLeftRight,Vn=xr.onUpDown,sn=xr.onPageUpDown,zr=xr.onEnter,qn=pt.which,en=pt.ctrlKey,Un=pt.metaKey;switch(qn){case G.a.LEFT:if(en||Un){if(Vr)return Vr(-1),!0}else if(Jr)return Jr(-1),!0;break;case G.a.RIGHT:if(en||Un){if(Vr)return Vr(1),!0}else if(Jr)return Jr(1),!0;break;case G.a.UP:if(Vn)return Vn(-1),!0;break;case G.a.DOWN:if(Vn)return Vn(1),!0;break;case G.a.PAGE_UP:if(sn)return sn(-1),!0;break;case G.a.PAGE_DOWN:if(sn)return sn(1),!0;break;case G.a.ENTER:if(zr)return zr(),!0;break}return!1}function st(pt,xr,Jr,Vr){var Vn=pt;if(!Vn)switch(xr){case"time":Vn=Vr?"hh:mm:ss a":"HH:mm:ss";break;case"week":Vn="gggg-wo";break;case"month":Vn="YYYY-MM";break;case"quarter":Vn="YYYY-[Q]Q";break;case"year":Vn="YYYY";break;default:Vn=Jr?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Vn}function he(pt,xr){var Jr=pt==="time"?8:10;return Math.max(Jr,xr.length)+2}var J=null,Y=new Set;function $(pt){return!J&&typeof window!="undefined"&&window.addEventListener&&(J=function(Jr){Object(We.a)(Y).forEach(function(Vr){Vr(Jr)})},window.addEventListener("mousedown",J)),Y.add(pt),function(){Y.delete(pt),Y.size===0&&(window.removeEventListener("mousedown",J),J=null)}}var fe=function(xr){return xr==="month"||xr==="date"?"year":xr},we=function(xr){return xr==="date"?"month":xr},Ne=function(xr){return xr==="month"||xr==="date"?"quarter":xr},Ee=function(xr){return xr==="date"?"week":xr},de={year:fe,month:we,quarter:Ne,week:Ee,time:null,date:null};function me(pt,xr){return pt.some(function(Jr){return Jr&&Jr.contains(xr)})}function Le(pt){var xr=pt.prefixCls,Jr=pt.units,Vr=pt.onSelect,Vn=pt.value,sn=pt.active,zr=pt.hideDisabledOptions,qn="".concat(xr,"-cell"),en=u.useContext(ce),Un=en.open,si=u.useRef(null),ui=u.useRef(new Map);return u.useLayoutEffect(function(){var oi=ui.current.get(Vn);oi&&Un!==!1&&Oe(si.current,oi.offsetTop,120)},[Vn]),u.useLayoutEffect(function(){if(Un){var oi=ui.current.get(Vn);oi&&Oe(si.current,oi.offsetTop,0)}},[Un]),u.createElement("ul",{className:_()("".concat(xr,"-column"),Object(j.a)({},"".concat(xr,"-column-active"),sn)),ref:si,style:{position:"relative"}},Jr.map(function(oi){var Ei;return zr&&oi.disabled?null:u.createElement("li",{key:oi.value,ref:function(Ai){ui.current.set(oi.value,Ai)},className:_()(qn,(Ei={},Object(j.a)(Ei,"".concat(qn,"-disabled"),oi.disabled),Object(j.a)(Ei,"".concat(qn,"-selected"),Vn===oi.value),Ei)),onClick:function(){if(oi.disabled)return;Vr(oi.value)}},u.createElement("div",{className:"".concat(qn,"-inner")},oi.label))}))}var tt=Le;function At(pt,xr){for(var Jr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Vr=String(pt);Vr.length<xr;)Vr="".concat(Jr).concat(pt);return Vr}var ht=function(){for(var xr=arguments.length,Jr=new Array(xr),Vr=0;Vr<xr;Vr++)Jr[Vr]=arguments[Vr];return Jr};function Ke(pt){return pt==null?[]:Array.isArray(pt)?pt:[pt]}function Jt(pt){var xr={};return Object.keys(pt).forEach(function(Jr){(Jr.substr(0,5)==="data-"||Jr.substr(0,5)==="aria-"||Jr==="role"||Jr==="name")&&Jr.substr(0,7)!=="data-__"&&(xr[Jr]=pt[Jr])}),xr}function ct(pt,xr){return pt?pt[xr]:null}function Gt(pt,xr,Jr){var Vr=[ct(pt,0),ct(pt,1)];return Vr[Jr]=typeof xr=="function"?xr(Vr[Jr]):xr,!Vr[0]&&!Vr[1]?null:Vr}function dr(pt,xr,Jr,Vr,Vn){var sn=pt.setHour(xr,Jr);return sn=pt.setMinute(sn,Vr),sn=pt.setSecond(sn,Vn),sn}function zt(pt,xr,Jr,Vr,Vn,sn){var zr=Math.floor(pt/Vr)*Vr;if(zr<pt)return[zr,60-Vn,60-sn];var qn=Math.floor(xr/Vn)*Vn;if(qn<xr)return[zr,qn,60-sn];var en=Math.floor(Jr/sn)*sn;return[zr,qn,en]}function kt(pt,xr){if(pt.length!==xr.length)return!0;for(var Jr=0;Jr<pt.length;Jr+=1)if(pt[Jr].disabled!==xr[Jr].disabled)return!0;return!1}function Vt(pt,xr,Jr,Vr){for(var Vn=[],sn=pt;sn<=xr;sn+=Jr)Vn.push({label:At(sn,2),value:sn,disabled:(Vr||[]).includes(sn)});return Vn}function Xe(pt){var xr=pt.generateConfig,Jr=pt.prefixCls,Vr=pt.operationRef,Vn=pt.activeColumnIndex,sn=pt.value,zr=pt.showHour,qn=pt.showMinute,en=pt.showSecond,Un=pt.use12Hours,si=pt.hourStep,ui=si===void 0?1:si,oi=pt.minuteStep,Ei=oi===void 0?1:oi,pi=pt.secondStep,Ai=pi===void 0?1:pi,Oi=pt.disabledHours,na=pt.disabledMinutes,Hi=pt.disabledSeconds,fa=pt.hideDisabledOptions,Xa=pt.onSelect,xa=[],wa="".concat(Jr,"-content"),Da="".concat(Jr,"-time-panel"),ja,ko=sn?xr.getHour(sn):-1,ro=sn?xr.getMinute(sn):-1,pa=sn?xr.getSecond(sn):-1,Ea=function(Ao,$a,ss,Cs){var Fo=sn||xr.getNow(),il=Math.max(0,$a),Eo=Math.max(0,ss),zo=Math.max(0,Cs);return Fo=dr(xr,Fo,!Un||!Ao?il:il+12,Eo,zo),Fo},Fa=Vt(0,23,ui,Oi&&Oi()),Ka=Object(Qe.a)(function(){return Fa},Fa,kt);Un&&(ja=ko>=12,ko%=12);var lo=u.useMemo(function(){if(!Un)return[!1,!1];var co=[!0,!0];return Ka.forEach(function(Ao){var $a=Ao.disabled,ss=Ao.value;if($a)return;ss>=12?co[1]=!1:co[0]=!1}),co},[Un,Ka]),so=Object(z.a)(lo,2),Co=so[0],Lo=so[1],is=u.useMemo(function(){return Un?Ka.filter(ja?function(co){return co.value>=12}:function(co){return co.value<12}).map(function(co){var Ao=co.value%12,$a=Ao===0?"12":At(Ao,2);return Object(W.a)(Object(W.a)({},co),{},{label:$a,value:Ao})}):Ka},[Un,Ka]),cs=Vt(0,59,Ei,na&&na(ko)),Rs=Vt(0,59,Ai,Hi&&Hi(ko,ro));Vr.current={onUpDown:function(Ao){var $a=xa[Vn];if($a)for(var ss=$a.units.findIndex(function(Eo){return Eo.value===$a.value}),Cs=$a.units.length,Fo=1;Fo<Cs;Fo+=1){var il=$a.units[(ss+Ao*Fo+Cs)%Cs];if(il.disabled!==!0){$a.onSelect(il.value);break}}}};function Ko(co,Ao,$a,ss,Cs){co!==!1&&xa.push({node:u.cloneElement(Ao,{prefixCls:Da,value:$a,active:Vn===xa.length,onSelect:Cs,units:ss,hideDisabledOptions:fa}),onSelect:Cs,value:$a,units:ss})}Ko(zr,u.createElement(tt,{key:"hour"}),ko,is,function(co){Xa(Ea(ja,co,ro,pa),"mouse")}),Ko(qn,u.createElement(tt,{key:"minute"}),ro,cs,function(co){Xa(Ea(ja,ko,co,pa),"mouse")}),Ko(en,u.createElement(tt,{key:"second"}),pa,Rs,function(co){Xa(Ea(ja,ko,ro,co),"mouse")});var as=-1;return typeof ja=="boolean"&&(as=ja?1:0),Ko(Un===!0,u.createElement(tt,{key:"12hours"}),as,[{label:"AM",value:0,disabled:Co},{label:"PM",value:1,disabled:Lo}],function(co){Xa(Ea(!!co,ko,ro,pa),"mouse")}),u.createElement("div",{className:wa},xa.map(function(co){var Ao=co.node;return Ao}))}var pe=Xe,te=function(xr){return xr.filter(function(Jr){return Jr!==!1}).length};function $e(pt){var xr=pt.generateConfig,Jr=pt.format,Vr=Jr===void 0?"HH:mm:ss":Jr,Vn=pt.prefixCls,sn=pt.active,zr=pt.operationRef,qn=pt.showHour,en=pt.showMinute,Un=pt.showSecond,si=pt.use12Hours,ui=si===void 0?!1:si,oi=pt.onSelect,Ei=pt.value,pi="".concat(Vn,"-time-panel"),Ai=u.useRef(),Oi=u.useState(-1),na=Object(z.a)(Oi,2),Hi=na[0],fa=na[1],Xa=te([qn,en,Un,ui]);return zr.current={onKeyDown:function(wa){return oe(wa,{onLeftRight:function(ja){fa((Hi+ja+Xa)%Xa)},onUpDown:function(ja){Hi===-1?fa(0):Ai.current&&Ai.current.onUpDown(ja)},onEnter:function(){oi(Ei||xr.getNow(),"key"),fa(-1)}})},onBlur:function(){fa(-1)}},u.createElement("div",{className:_()(pi,Object(j.a)({},"".concat(pi,"-active"),sn))},u.createElement(Re,Object.assign({},pt,{format:Vr,prefixCls:Vn})),u.createElement(pe,Object.assign({},pt,{prefixCls:Vn,activeColumnIndex:Hi,operationRef:Ai})))}var He=$e,ae=7;function ft(pt,xr){return!pt&&!xr?!0:!pt||!xr?!1:void 0}function Mt(pt,xr,Jr){var Vr=ft(xr,Jr);if(typeof Vr=="boolean")return Vr;var Vn=Math.floor(pt.getYear(xr)/10),sn=Math.floor(pt.getYear(Jr)/10);return Vn===sn}function mt(pt,xr,Jr){var Vr=ft(xr,Jr);return typeof Vr=="boolean"?Vr:pt.getYear(xr)===pt.getYear(Jr)}function or(pt,xr){var Jr=Math.floor(pt.getMonth(xr)/3);return Jr+1}function vr(pt,xr,Jr){var Vr=ft(xr,Jr);return typeof Vr=="boolean"?Vr:mt(pt,xr,Jr)&&or(pt,xr)===or(pt,Jr)}function fn(pt,xr,Jr){var Vr=ft(xr,Jr);return typeof Vr=="boolean"?Vr:mt(pt,xr,Jr)&&pt.getMonth(xr)===pt.getMonth(Jr)}function sr(pt,xr,Jr){var Vr=ft(xr,Jr);return typeof Vr=="boolean"?Vr:pt.getYear(xr)===pt.getYear(Jr)&&pt.getMonth(xr)===pt.getMonth(Jr)&&pt.getDate(xr)===pt.getDate(Jr)}function Ir(pt,xr,Jr){var Vr=ft(xr,Jr);return typeof Vr=="boolean"?Vr:pt.getHour(xr)===pt.getHour(Jr)&&pt.getMinute(xr)===pt.getMinute(Jr)&&pt.getSecond(xr)===pt.getSecond(Jr)}function lr(pt,xr,Jr,Vr){var Vn=ft(Jr,Vr);return typeof Vn=="boolean"?Vn:pt.locale.getWeek(xr,Jr)===pt.locale.getWeek(xr,Vr)}function Wt(pt,xr,Jr){return sr(pt,xr,Jr)&&Ir(pt,xr,Jr)}function xt(pt,xr,Jr,Vr){return!xr||!Jr||!Vr?!1:!sr(pt,xr,Vr)&&!sr(pt,Jr,Vr)&&pt.isAfter(Vr,xr)&&pt.isAfter(Jr,Vr)}function rn(pt,xr,Jr){var Vr=xr.locale.getWeekFirstDay(pt),Vn=xr.setDate(Jr,1),sn=xr.getWeekDay(Vn),zr=xr.addDate(Vn,Vr-sn);return xr.getMonth(zr)===xr.getMonth(Jr)&&xr.getDate(zr)>1&&(zr=xr.addDate(zr,-7)),zr}function Dn(pt,xr,Jr){var Vr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(xr){case"year":return Jr.addYear(pt,Vr*10);case"quarter":case"month":return Jr.addYear(pt,Vr);default:return Jr.addMonth(pt,Vr)}}var Xn=u.createContext({}),ri=Xn;function Ui(pt){var xr=pt.cellPrefixCls,Jr=pt.generateConfig,Vr=pt.rangedValue,Vn=pt.hoverRangedValue,sn=pt.isInView,zr=pt.isSameCell,qn=pt.offsetCell,en=pt.today,Un=pt.value;function si(ui){var oi,Ei=qn(ui,-1),pi=qn(ui,1),Ai=ct(Vr,0),Oi=ct(Vr,1),na=ct(Vn,0),Hi=ct(Vn,1),fa=xt(Jr,na,Hi,ui);function Xa(ro){return zr(Ai,ro)}function xa(ro){return zr(Oi,ro)}var wa=zr(na,ui),Da=zr(Hi,ui),ja=(fa||Da)&&(!sn(Ei)||xa(Ei)),ko=(fa||wa)&&(!sn(pi)||Xa(pi));return oi={},Object(j.a)(oi,"".concat(xr,"-in-view"),sn(ui)),Object(j.a)(oi,"".concat(xr,"-in-range"),xt(Jr,Ai,Oi,ui)),Object(j.a)(oi,"".concat(xr,"-range-start"),Xa(ui)),Object(j.a)(oi,"".concat(xr,"-range-end"),xa(ui)),Object(j.a)(oi,"".concat(xr,"-range-start-single"),Xa(ui)&&!Oi),Object(j.a)(oi,"".concat(xr,"-range-end-single"),xa(ui)&&!Ai),Object(j.a)(oi,"".concat(xr,"-range-start-near-hover"),Xa(ui)&&(zr(Ei,na)||xt(Jr,na,Hi,Ei))),Object(j.a)(oi,"".concat(xr,"-range-end-near-hover"),xa(ui)&&(zr(pi,Hi)||xt(Jr,na,Hi,pi))),Object(j.a)(oi,"".concat(xr,"-range-hover"),fa),Object(j.a)(oi,"".concat(xr,"-range-hover-start"),wa),Object(j.a)(oi,"".concat(xr,"-range-hover-end"),Da),Object(j.a)(oi,"".concat(xr,"-range-hover-edge-start"),ja),Object(j.a)(oi,"".concat(xr,"-range-hover-edge-end"),ko),Object(j.a)(oi,"".concat(xr,"-range-hover-edge-start-near-range"),ja&&zr(Ei,Oi)),Object(j.a)(oi,"".concat(xr,"-range-hover-edge-end-near-range"),ko&&zr(pi,Ai)),Object(j.a)(oi,"".concat(xr,"-today"),zr(en,ui)),Object(j.a)(oi,"".concat(xr,"-selected"),zr(Un,ui)),oi}return si}function Bn(pt){for(var xr=pt.prefixCls,Jr=pt.disabledDate,Vr=pt.onSelect,Vn=pt.rowNum,sn=pt.colNum,zr=pt.prefixColumn,qn=pt.rowClassName,en=pt.baseDate,Un=pt.getCellClassName,si=pt.getCellText,ui=pt.getCellNode,oi=pt.getCellDate,Ei=pt.titleCell,pi=pt.headerCells,Ai=u.useContext(ce),Oi=Ai.onDateMouseEnter,na=Ai.onDateMouseLeave,Hi="".concat(xr,"-cell"),fa=[],Xa=0;Xa<Vn;Xa+=1){for(var xa=[],wa=void 0,Da=function(ro){var pa=Xa*sn+ro,Ea=oi(en,pa),Fa=Jr&&Jr(Ea);ro===0&&(wa=Ea,zr&&xa.push(zr(wa))),xa.push(u.createElement("td",{key:ro,title:Ei&&Ei(Ea),className:_()(Hi,Object(W.a)(Object(j.a)({},"".concat(Hi,"-disabled"),Fa),Un(Ea))),onClick:function(){Fa||Vr(Ea)},onMouseEnter:function(){!Fa&&Oi&&Oi(Ea)},onMouseLeave:function(){!Fa&&na&&na(Ea)}},ui?ui(Ea):u.createElement("div",{className:"".concat(Hi,"-inner")},si(Ea))))},ja=0;ja<sn;ja+=1)Da(ja);fa.push(u.createElement("tr",{key:Xa,className:qn&&qn(wa)},xa))}return u.createElement("div",{className:"".concat(xr,"-body")},u.createElement("table",{className:"".concat(xr,"-content")},pi&&u.createElement("thead",null,u.createElement("tr",null,pi)),u.createElement("tbody",null,fa)))}function Jn(pt){var xr=pt.prefixCls,Jr=pt.generateConfig,Vr=pt.prefixColumn,Vn=pt.locale,sn=pt.rowCount,zr=pt.viewDate,qn=pt.value,en=pt.dateRender,Un=u.useContext(ri),si=Un.rangedValue,ui=Un.hoverRangedValue,oi=rn(Vn.locale,Jr,zr),Ei="".concat(xr,"-cell"),pi=Jr.locale.getWeekFirstDay(Vn.locale),Ai=Jr.getNow(),Oi=[],na=Vn.shortWeekDays||(Jr.locale.getShortWeekDays?Jr.locale.getShortWeekDays(Vn.locale):[]);Vr&&Oi.push(u.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var Hi=0;Hi<ae;Hi+=1)Oi.push(u.createElement("th",{key:Hi},na[(Hi+pi)%ae]));var fa=Ui({cellPrefixCls:Ei,today:Ai,value:qn,generateConfig:Jr,rangedValue:Vr?null:si,hoverRangedValue:Vr?null:ui,isSameCell:function(wa,Da){return sr(Jr,wa,Da)},isInView:function(wa){return fn(Jr,wa,zr)},offsetCell:function(wa,Da){return Jr.addDate(wa,Da)}}),Xa=en?function(xa){return en(xa,Ai)}:void 0;return u.createElement(Bn,Object.assign({},pt,{rowNum:sn,colNum:ae,baseDate:oi,getCellNode:Xa,getCellText:Jr.getDate,getCellClassName:fa,getCellDate:Jr.addDate,titleCell:function(wa){return Jr.locale.format(Vn.locale,wa,"YYYY-MM-DD")},headerCells:Oi}))}var Xt=Jn;function _t(pt){var xr=pt.prefixCls,Jr=pt.generateConfig,Vr=pt.locale,Vn=pt.viewDate,sn=pt.onNextMonth,zr=pt.onPrevMonth,qn=pt.onNextYear,en=pt.onPrevYear,Un=pt.onYearClick,si=pt.onMonthClick,ui=u.useContext(ce),oi=ui.hideHeader;if(oi)return null;var Ei="".concat(xr,"-header"),pi=Vr.shortMonths||(Jr.locale.getShortMonths?Jr.locale.getShortMonths(Vr.locale):[]),Ai=Jr.getMonth(Vn),Oi=u.createElement("button",{type:"button",key:"year",onClick:Un,tabIndex:-1,className:"".concat(xr,"-year-btn")},Jr.locale.format(Vr.locale,Vn,Vr.yearFormat)),na=u.createElement("button",{type:"button",key:"month",onClick:si,tabIndex:-1,className:"".concat(xr,"-month-btn")},Vr.monthFormat?Jr.locale.format(Vr.locale,Vn,Vr.monthFormat):pi[Ai]),Hi=Vr.monthBeforeYear?[na,Oi]:[Oi,na];return u.createElement(Ie,Object.assign({},pt,{prefixCls:Ei,onSuperPrev:en,onPrev:zr,onNext:sn,onSuperNext:qn}),Hi)}var Fe=_t,Pe=6;function Be(pt){var xr=pt.prefixCls,Jr=pt.panelName,Vr=Jr===void 0?"date":Jr,Vn=pt.keyboardConfig,sn=pt.active,zr=pt.operationRef,qn=pt.generateConfig,en=pt.value,Un=pt.viewDate,si=pt.onViewDateChange,ui=pt.onPanelChange,oi=pt.onSelect,Ei="".concat(xr,"-").concat(Vr,"-panel");zr.current={onKeyDown:function(na){return oe(na,Object(W.a)({onLeftRight:function(fa){oi(qn.addDate(en||Un,fa),"key")},onCtrlLeftRight:function(fa){oi(qn.addYear(en||Un,fa),"key")},onUpDown:function(fa){oi(qn.addDate(en||Un,fa*ae),"key")},onPageUpDown:function(fa){oi(qn.addMonth(en||Un,fa),"key")}},Vn))}};var pi=function(na){var Hi=qn.addYear(Un,na);si(Hi),ui(null,Hi)},Ai=function(na){var Hi=qn.addMonth(Un,na);si(Hi),ui(null,Hi)};return u.createElement("div",{className:_()(Ei,Object(j.a)({},"".concat(Ei,"-active"),sn))},u.createElement(Fe,Object.assign({},pt,{prefixCls:xr,value:en,viewDate:Un,onPrevYear:function(){pi(-1)},onNextYear:function(){pi(1)},onPrevMonth:function(){Ai(-1)},onNextMonth:function(){Ai(1)},onMonthClick:function(){ui("month",Un)},onYearClick:function(){ui("year",Un)}})),u.createElement(Xt,Object.assign({},pt,{onSelect:function(na){return oi(na,"mouse")},prefixCls:xr,value:en,viewDate:Un,rowCount:Pe})))}var nt=Be;function vt(pt,xr,Jr){if(!Jr)return xr;var Vr=xr;return Vr=pt.setHour(Vr,pt.getHour(Jr)),Vr=pt.setMinute(Vr,pt.getMinute(Jr)),Vr=pt.setSecond(Vr,pt.getSecond(Jr)),Vr}var ar=ht("date","time");function kr(pt){var xr=pt.prefixCls,Jr=pt.operationRef,Vr=pt.generateConfig,Vn=pt.value,sn=pt.defaultValue,zr=pt.disabledTime,qn=pt.showTime,en=pt.onSelect,Un="".concat(xr,"-datetime-panel"),si=u.useState(null),ui=Object(z.a)(si,2),oi=ui[0],Ei=ui[1],pi=u.useRef({}),Ai=u.useRef({}),Oi=Object(Q.a)(qn)==="object"?Object(W.a)({},qn):{};function na(xa){var wa=ar.indexOf(oi)+xa,Da=ar[wa]||null;return Da}var Hi=function(wa){Ai.current.onBlur&&Ai.current.onBlur(wa),Ei(null)};Jr.current={onKeyDown:function(wa){if(wa.which===G.a.TAB){var Da=na(wa.shiftKey?-1:1);return Ei(Da),Da&&wa.preventDefault(),!0}if(oi){var ja=oi==="date"?pi:Ai;return ja.current&&ja.current.onKeyDown&&ja.current.onKeyDown(wa),!0}return[G.a.LEFT,G.a.RIGHT,G.a.UP,G.a.DOWN].includes(wa.which)?(Ei("date"),!0):!1},onBlur:Hi,onClose:Hi};var fa=function(wa,Da){var ja=wa;Da==="date"&&!Vn&&Oi.defaultValue?(ja=Vr.setHour(ja,Vr.getHour(Oi.defaultValue)),ja=Vr.setMinute(ja,Vr.getMinute(Oi.defaultValue)),ja=Vr.setSecond(ja,Vr.getSecond(Oi.defaultValue))):Da==="time"&&!Vn&&sn&&(ja=Vr.setYear(ja,Vr.getYear(sn)),ja=Vr.setMonth(ja,Vr.getMonth(sn)),ja=Vr.setDate(ja,Vr.getDate(sn))),en&&en(ja,"mouse")},Xa=zr?zr(Vn||null):{};return u.createElement("div",{className:_()(Un,Object(j.a)({},"".concat(Un,"-active"),oi))},u.createElement(nt,Object.assign({},pt,{operationRef:pi,active:oi==="date",onSelect:function(wa){fa(vt(Vr,wa,qn&&Object(Q.a)(qn)==="object"?qn.defaultValue:null),"date")}})),u.createElement(He,Object.assign({},pt,{format:void 0},Oi,Xa,{defaultValue:void 0,operationRef:Ai,active:oi==="time",onSelect:function(wa){fa(wa,"time")}})))}var mn=kr;function Zn(pt){var xr=pt.prefixCls,Jr=pt.generateConfig,Vr=pt.locale,Vn=pt.value,sn="".concat(xr,"-cell"),zr=function(si){return u.createElement("td",{key:"week",className:_()(sn,"".concat(sn,"-week"))},Jr.locale.getWeek(Vr.locale,si))},qn="".concat(xr,"-week-panel-row"),en=function(si){return _()(qn,Object(j.a)({},"".concat(qn,"-selected"),lr(Jr,Vr.locale,Vn,si)))};return u.createElement(nt,Object.assign({},pt,{panelName:"week",prefixColumn:zr,rowClassName:en,keyboardConfig:{onLeftRight:null}}))}var ni=Zn;function ur(pt){var xr=pt.prefixCls,Jr=pt.generateConfig,Vr=pt.locale,Vn=pt.viewDate,sn=pt.onNextYear,zr=pt.onPrevYear,qn=pt.onYearClick,en=u.useContext(ce),Un=en.hideHeader;if(Un)return null;var si="".concat(xr,"-header");return u.createElement(Ie,Object.assign({},pt,{prefixCls:si,onSuperPrev:zr,onSuperNext:sn}),u.createElement("button",{type:"button",onClick:qn,className:"".concat(xr,"-year-btn")},Jr.locale.format(Vr.locale,Vn,Vr.yearFormat)))}var Nt=ur,bt=3,gr=4;function Yt(pt){var xr=pt.prefixCls,Jr=pt.locale,Vr=pt.value,Vn=pt.viewDate,sn=pt.generateConfig,zr=pt.monthCellRender,qn=u.useContext(ri),en=qn.rangedValue,Un=qn.hoverRangedValue,si="".concat(xr,"-cell"),ui=Ui({cellPrefixCls:si,value:Vr,generateConfig:sn,rangedValue:en,hoverRangedValue:Un,isSameCell:function(Oi,na){return fn(sn,Oi,na)},isInView:function(){return!0},offsetCell:function(Oi,na){return sn.addMonth(Oi,na)}}),oi=Jr.shortMonths||(sn.locale.getShortMonths?sn.locale.getShortMonths(Jr.locale):[]),Ei=sn.setMonth(Vn,0),pi=zr?function(Ai){return zr(Ai,Jr)}:void 0;return u.createElement(Bn,Object.assign({},pt,{rowNum:gr,colNum:bt,baseDate:Ei,getCellNode:pi,getCellText:function(Oi){return Jr.monthFormat?sn.locale.format(Jr.locale,Oi,Jr.monthFormat):oi[sn.getMonth(Oi)]},getCellClassName:ui,getCellDate:sn.addMonth,titleCell:function(Oi){return sn.locale.format(Jr.locale,Oi,"YYYY-MM")}}))}var Pt=Yt;function rr(pt){var xr=pt.prefixCls,Jr=pt.operationRef,Vr=pt.onViewDateChange,Vn=pt.generateConfig,sn=pt.value,zr=pt.viewDate,qn=pt.onPanelChange,en=pt.onSelect,Un="".concat(xr,"-month-panel");Jr.current={onKeyDown:function(oi){return oe(oi,{onLeftRight:function(pi){en(Vn.addMonth(sn||zr,pi),"key")},onCtrlLeftRight:function(pi){en(Vn.addYear(sn||zr,pi),"key")},onUpDown:function(pi){en(Vn.addMonth(sn||zr,pi*bt),"key")},onEnter:function(){qn("date",sn||zr)}})}};var si=function(oi){var Ei=Vn.addYear(zr,oi);Vr(Ei),qn(null,Ei)};return u.createElement("div",{className:Un},u.createElement(Nt,Object.assign({},pt,{prefixCls:xr,onPrevYear:function(){si(-1)},onNextYear:function(){si(1)},onYearClick:function(){qn("year",zr)}})),u.createElement(Pt,Object.assign({},pt,{prefixCls:xr,onSelect:function(oi){en(oi,"mouse"),qn("date",oi)}})))}var Rt=rr;function qt(pt){var xr=pt.prefixCls,Jr=pt.generateConfig,Vr=pt.locale,Vn=pt.viewDate,sn=pt.onNextYear,zr=pt.onPrevYear,qn=pt.onYearClick,en=u.useContext(ce),Un=en.hideHeader;if(Un)return null;var si="".concat(xr,"-header");return u.createElement(Ie,Object.assign({},pt,{prefixCls:si,onSuperPrev:zr,onSuperNext:sn}),u.createElement("button",{type:"button",onClick:qn,className:"".concat(xr,"-year-btn")},Jr.locale.format(Vr.locale,Vn,Vr.yearFormat)))}var Yr=qt,Mr=4,Dr=1;function un(pt){var xr=pt.prefixCls,Jr=pt.locale,Vr=pt.value,Vn=pt.viewDate,sn=pt.generateConfig,zr=u.useContext(ri),qn=zr.rangedValue,en=zr.hoverRangedValue,Un="".concat(xr,"-cell"),si=Ui({cellPrefixCls:Un,value:Vr,generateConfig:sn,rangedValue:qn,hoverRangedValue:en,isSameCell:function(Ei,pi){return vr(sn,Ei,pi)},isInView:function(){return!0},offsetCell:function(Ei,pi){return sn.addMonth(Ei,pi*3)}}),ui=sn.setDate(sn.setMonth(Vn,0),1);return u.createElement(Bn,Object.assign({},pt,{rowNum:Dr,colNum:Mr,baseDate:ui,getCellText:function(Ei){return sn.locale.format(Jr.locale,Ei,Jr.quarterFormat||"[Q]Q")},getCellClassName:si,getCellDate:function(Ei,pi){return sn.addMonth(Ei,pi*3)},titleCell:function(Ei){return sn.locale.format(Jr.locale,Ei,"YYYY-[Q]Q")}}))}var wn=un;function ai(pt){var xr=pt.prefixCls,Jr=pt.operationRef,Vr=pt.onViewDateChange,Vn=pt.generateConfig,sn=pt.value,zr=pt.viewDate,qn=pt.onPanelChange,en=pt.onSelect,Un="".concat(xr,"-quarter-panel");Jr.current={onKeyDown:function(oi){return oe(oi,{onLeftRight:function(pi){en(Vn.addMonth(sn||zr,pi*3),"key")},onCtrlLeftRight:function(pi){en(Vn.addYear(sn||zr,pi),"key")},onUpDown:function(pi){en(Vn.addYear(sn||zr,pi),"key")}})}};var si=function(oi){var Ei=Vn.addYear(zr,oi);Vr(Ei),qn(null,Ei)};return u.createElement("div",{className:Un},u.createElement(Yr,Object.assign({},pt,{prefixCls:xr,onPrevYear:function(){si(-1)},onNextYear:function(){si(1)},onYearClick:function(){qn("year",zr)}})),u.createElement(wn,Object.assign({},pt,{prefixCls:xr,onSelect:function(oi){en(oi,"mouse")}})))}var ei=ai;function gi(pt){var xr=pt.prefixCls,Jr=pt.generateConfig,Vr=pt.viewDate,Vn=pt.onPrevDecade,sn=pt.onNextDecade,zr=pt.onDecadeClick,qn=u.useContext(ce),en=qn.hideHeader;if(en)return null;var Un="".concat(xr,"-header"),si=Jr.getYear(Vr),ui=Math.floor(si/je)*je,oi=ui+je-1;return u.createElement(Ie,Object.assign({},pt,{prefixCls:Un,onSuperPrev:Vn,onSuperNext:sn}),u.createElement("button",{type:"button",onClick:zr,className:"".concat(xr,"-decade-btn")},ui,"-",oi))}var Ii=gi,ki=3,Qi=4;function it(pt){var xr=pt.prefixCls,Jr=pt.value,Vr=pt.viewDate,Vn=pt.locale,sn=pt.generateConfig,zr=u.useContext(ri),qn=zr.rangedValue,en=zr.hoverRangedValue,Un="".concat(xr,"-cell"),si=sn.getYear(Vr),ui=Math.floor(si/je)*je,oi=ui+je-1,Ei=sn.setYear(Vr,ui-Math.ceil((ki*Qi-je)/2)),pi=function(na){var Hi=sn.getYear(na);return ui<=Hi&&Hi<=oi},Ai=Ui({cellPrefixCls:Un,value:Jr,generateConfig:sn,rangedValue:qn,hoverRangedValue:en,isSameCell:function(na,Hi){return mt(sn,na,Hi)},isInView:pi,offsetCell:function(na,Hi){return sn.addYear(na,Hi)}});return u.createElement(Bn,Object.assign({},pt,{rowNum:Qi,colNum:ki,baseDate:Ei,getCellText:sn.getYear,getCellClassName:Ai,getCellDate:sn.addYear,titleCell:function(na){return sn.locale.format(Vn.locale,na,"YYYY")}}))}var Me=it,je=10;function Ye(pt){var xr=pt.prefixCls,Jr=pt.operationRef,Vr=pt.onViewDateChange,Vn=pt.generateConfig,sn=pt.value,zr=pt.viewDate,qn=pt.sourceMode,en=pt.onSelect,Un=pt.onPanelChange,si="".concat(xr,"-year-panel");Jr.current={onKeyDown:function(Ei){return oe(Ei,{onLeftRight:function(Ai){en(Vn.addYear(sn||zr,Ai),"key")},onCtrlLeftRight:function(Ai){en(Vn.addYear(sn||zr,Ai*je),"key")},onUpDown:function(Ai){en(Vn.addYear(sn||zr,Ai*ki),"key")},onEnter:function(){Un(qn==="date"?"date":"month",sn||zr)}})}};var ui=function(Ei){var pi=Vn.addYear(zr,Ei*10);Vr(pi),Un(null,pi)};return u.createElement("div",{className:si},u.createElement(Ii,Object.assign({},pt,{prefixCls:xr,onPrevDecade:function(){ui(-1)},onNextDecade:function(){ui(1)},onDecadeClick:function(){Un("decade",zr)}})),u.createElement(Me,Object.assign({},pt,{prefixCls:xr,onSelect:function(Ei){Un(qn==="date"?"date":"month",Ei),en(Ei,"mouse")}})))}var rt=Ye;function qe(pt){var xr=pt.prefixCls,Jr=pt.generateConfig,Vr=pt.viewDate,Vn=pt.onPrevDecades,sn=pt.onNextDecades,zr=u.useContext(ce),qn=zr.hideHeader;if(qn)return null;var en="".concat(xr,"-header"),Un=Jr.getYear(Vr),si=Math.floor(Un/dn)*dn,ui=si+dn-1;return u.createElement(Ie,Object.assign({},pt,{prefixCls:en,onSuperPrev:Vn,onSuperNext:sn}),si,"-",ui)}var at=qe,St=3,gt=4;function hr(pt){var xr=Xr-1,Jr=pt.prefixCls,Vr=pt.viewDate,Vn=pt.generateConfig,sn=pt.disabledDate,zr="".concat(Jr,"-cell"),qn=Vn.getYear(Vr),en=Math.floor(qn/Xr)*Xr,Un=Math.floor(qn/dn)*dn,si=Un+dn-1,ui=Vn.setYear(Vr,Un-Math.ceil((St*gt*Xr-dn)/2)),oi=function(pi){var Ai,Oi=sn&&sn(pi),na=Vn.getYear(pi),Hi=na+xr;return Ai={},Object(j.a)(Ai,"".concat(zr,"-disabled"),Oi),Object(j.a)(Ai,"".concat(zr,"-in-view"),Un<=na&&Hi<=si),Object(j.a)(Ai,"".concat(zr,"-selected"),na===en),Ai};return u.createElement(Bn,Object.assign({},pt,{rowNum:gt,colNum:St,baseDate:ui,getCellText:function(pi){var Ai=Vn.getYear(pi);return"".concat(Ai,"-").concat(Ai+xr)},getCellClassName:oi,getCellDate:function(pi,Ai){return Vn.addYear(pi,Ai*Xr)}}))}var Qr=hr,Xr=10,dn=Xr*10;function mr(pt){var xr=pt.prefixCls,Jr=pt.onViewDateChange,Vr=pt.generateConfig,Vn=pt.viewDate,sn=pt.operationRef,zr=pt.onSelect,qn=pt.onPanelChange,en="".concat(xr,"-decade-panel");sn.current={onKeyDown:function(oi){return oe(oi,{onLeftRight:function(pi){zr(Vr.addYear(Vn,pi*Xr),"key")},onCtrlLeftRight:function(pi){zr(Vr.addYear(Vn,pi*dn),"key")},onUpDown:function(pi){zr(Vr.addYear(Vn,pi*Xr*St),"key")},onEnter:function(){qn("year",Vn)}})}};var Un=function(oi){var Ei=Vr.addYear(Vn,oi*dn);Jr(Ei),qn(null,Ei)},si=function(oi){zr(oi,"mouse"),qn("year",oi)};return u.createElement("div",{className:en},u.createElement(at,Object.assign({},pt,{prefixCls:xr,onPrevDecades:function(){Un(-1)},onNextDecades:function(){Un(1)}})),u.createElement(Qr,Object.assign({},pt,{prefixCls:xr,onSelect:si})))}var Kn=mr;function Rr(pt,xr,Jr){return Jr?u.createElement("div",{className:"".concat(pt,"-footer-extra")},Jr(xr)):null}function Rn(pt){var xr=pt.prefixCls,Jr=pt.rangeList,Vr=Jr===void 0?[]:Jr,Vn=pt.components,sn=Vn===void 0?{}:Vn,zr=pt.needConfirmButton,qn=pt.onNow,en=pt.onOk,Un=pt.okDisabled,si=pt.showNow,ui=pt.locale,oi,Ei;if(Vr.length){var pi=sn.rangeItem||"span";oi=u.createElement(u.Fragment,null,Vr.map(function(Oi){var na=Oi.label,Hi=Oi.onClick,fa=Oi.onMouseEnter,Xa=Oi.onMouseLeave;return u.createElement("li",{key:na,className:"".concat(xr,"-preset")},u.createElement(pi,{onClick:Hi,onMouseEnter:fa,onMouseLeave:Xa},na))}))}if(zr){var Ai=sn.button||"button";qn&&!oi&&si!==!1&&(oi=u.createElement("li",{className:"".concat(xr,"-now")},u.createElement("a",{className:"".concat(xr,"-now-btn"),onClick:qn},ui.now))),Ei=zr&&u.createElement("li",{className:"".concat(xr,"-ok")},u.createElement(Ai,{disabled:Un,onClick:en},ui.ok))}return!oi&&!Ei?null:u.createElement("ul",{className:"".concat(xr,"-ranges")},oi,Ei)}function An(pt){var xr,Jr=pt.prefixCls,Vr=Jr===void 0?"rc-picker":Jr,Vn=pt.className,sn=pt.style,zr=pt.locale,qn=pt.generateConfig,en=pt.value,Un=pt.defaultValue,si=pt.pickerValue,ui=pt.defaultPickerValue,oi=pt.disabledDate,Ei=pt.mode,pi=pt.picker,Ai=pi===void 0?"date":pi,Oi=pt.tabIndex,na=Oi===void 0?0:Oi,Hi=pt.showNow,fa=pt.showTime,Xa=pt.showToday,xa=pt.renderExtraFooter,wa=pt.hideHeader,Da=pt.onSelect,ja=pt.onChange,ko=pt.onPanelChange,ro=pt.onMouseDown,pa=pt.onPickerValueChange,Ea=pt.onOk,Fa=pt.components,Ka=pt.direction,lo=pt.hourStep,so=lo===void 0?1:lo,Co=pt.minuteStep,Lo=Co===void 0?1:Co,is=pt.secondStep,cs=is===void 0?1:is,Rs=Ai==="date"&&!!fa||Ai==="time",Ko=24%so===0,as=60%Lo===0,co=60%cs===0,Ao=u.useContext(ce),$a=Ao.operationRef,ss=Ao.panelRef,Cs=Ao.onSelect,Fo=Ao.hideRanges,il=Ao.defaultOpenValue,Eo=u.useContext(ri),zo=Eo.inRange,Bs=Eo.panelPosition,ms=Eo.rangedValue,hs=Eo.hoverRangedValue,gn=u.useRef({}),Ns=u.useRef(!0),Ll=Object(V.a)(null,{value:en,defaultValue:Un,postState:function(mi){return!mi&&il&&Ai==="time"?il:mi}}),el=Object(z.a)(Ll,2),Gs=el[0],ds=el[1],ks=Object(V.a)(null,{value:si,defaultValue:ui||Gs,postState:function(mi){return mi||qn.getNow()}}),Qs=Object(z.a)(ks,2),tl=Qs[0],xs=Qs[1],Us=function(mi){xs(mi),pa&&pa(mi)},al=function(mi){var Gi=de[Ai];return Gi?Gi(mi):mi},Js=Object(V.a)(function(){return Ai==="time"?"time":al("date")},{value:Ei}),Vo=Object(z.a)(Js,2),No=Vo[0],fs=Vo[1];u.useEffect(function(){fs(Ai)},[Ai]);var Ds=u.useState(function(){return No}),go=Object(z.a)(Ds,2),Ft=go[0],er=go[1],Cn=function(mi,Gi){var sa=al(mi||No);er(No),fs(sa),ko&&(No!==sa||Wt(qn,tl,tl))&&ko(Gi,sa)},di=function(mi,Gi){var sa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(No===Ai||sa)&&(ds(mi),Da&&Da(mi),Cs&&Cs(mi,Gi),ja&&!Wt(qn,mi,Gs)&&ja(mi))},It=function(mi){return gn.current&&gn.current.onKeyDown?([G.a.LEFT,G.a.RIGHT,G.a.UP,G.a.DOWN,G.a.PAGE_UP,G.a.PAGE_DOWN,G.a.ENTER].includes(mi.which)&&mi.preventDefault(),gn.current.onKeyDown(mi)):(Object(x.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},ue=function(mi){gn.current&&gn.current.onBlur&&gn.current.onBlur(mi)};$a&&Bs!=="right"&&($a.current={onKeyDown:It,onClose:function(){gn.current&&gn.current.onClose&&gn.current.onClose()}}),u.useEffect(function(){en&&!Ns.current&&xs(en)},[en]),u.useEffect(function(){Ns.current=!1},[]);var Se,_e=Object(W.a)(Object(W.a)({},pt),{},{operationRef:gn,prefixCls:Vr,viewDate:tl,value:Gs,onViewDateChange:Us,sourceMode:Ft,onPanelChange:Cn,disabledDate:No!=="decade"?oi:void 0});delete _e.onChange,delete _e.onSelect;switch(No){case"decade":Se=u.createElement(Kn,Object.assign({},_e,{onSelect:function(mi,Gi){Us(mi),di(mi,Gi)}}));break;case"year":Se=u.createElement(rt,Object.assign({},_e,{onSelect:function(mi,Gi){Us(mi),di(mi,Gi)}}));break;case"month":Se=u.createElement(Rt,Object.assign({},_e,{onSelect:function(mi,Gi){Us(mi),di(mi,Gi)}}));break;case"quarter":Se=u.createElement(ei,Object.assign({},_e,{onSelect:function(mi,Gi){Us(mi),di(mi,Gi)}}));break;case"week":Se=u.createElement(ni,Object.assign({},_e,{onSelect:function(mi,Gi){Us(mi),di(mi,Gi)}}));break;case"time":delete _e.showTime,Se=u.createElement(He,Object.assign({},_e,Object(Q.a)(fa)==="object"?fa:null,{onSelect:function(mi,Gi){Us(mi),di(mi,Gi)}}));break;default:fa?Se=u.createElement(mn,Object.assign({},_e,{onSelect:function(mi,Gi){Us(mi),di(mi,Gi)}})):Se=u.createElement(nt,Object.assign({},_e,{onSelect:function(mi,Gi){Us(mi),di(mi,Gi)}}))}var Je,Lt,tr=function(){var mi=qn.getNow(),Gi=zt(qn.getHour(mi),qn.getMinute(mi),qn.getSecond(mi),Ko?so:1,as?Lo:1,co?cs:1),sa=dr(qn,mi,Gi[0],Gi[1],Gi[2]);di(sa,"submit")};Fo||(Je=Rr(Vr,No,xa),Lt=Rn({prefixCls:Vr,components:Fa,needConfirmButton:Rs,okDisabled:!Gs||oi&&oi(Gs),locale:zr,showNow:Hi,onNow:Rs&&tr,onOk:function(){Gs&&(di(Gs,"submit",!0),Ea&&Ea(Gs))}}));var Gr;if(Xa&&No==="date"&&Ai==="date"&&!fa){var cn=qn.getNow(),_n="".concat(Vr,"-today-btn"),li=oi&&oi(cn);Gr=u.createElement("a",{className:_()(_n,li&&"".concat(_n,"-disabled")),"aria-disabled":li,onClick:function(){li||di(cn,"mouse",!0)}},zr.today)}return u.createElement(ce.Provider,{value:Object(W.a)(Object(W.a)({},Ao),{},{hideHeader:"hideHeader"in pt?wa:Ao.hideHeader,hidePrevBtn:zo&&Bs==="right",hideNextBtn:zo&&Bs==="left"})},u.createElement("div",{tabIndex:na,className:_()("".concat(Vr,"-panel"),Vn,(xr={},Object(j.a)(xr,"".concat(Vr,"-panel-has-range"),ms&&ms[0]&&ms[1]),Object(j.a)(xr,"".concat(Vr,"-panel-has-range-hover"),hs&&hs[0]&&hs[1]),Object(j.a)(xr,"".concat(Vr,"-panel-rtl"),Ka==="rtl"),xr)),style:sn,onKeyDown:It,onBlur:ue,onMouseDown:ro,ref:ss},Se,Je||Lt||Gr?u.createElement("div",{className:"".concat(Vr,"-footer")},Je,Lt,Gr):null))}var Zr=An,hi=n("JX7q"),Mi=n("i8i4"),Zi=n.n(Mi),qr=n("l4aY"),xn=n("m+aA"),zn=n("c+Xe"),Ht=n("zT1h"),Tt=n("QC+M");function Dt(pt,xr,Jr){return Jr?pt[0]===xr[0]:pt[0]===xr[0]&&pt[1]===xr[1]}function Bt(pt,xr,Jr){var Vr=pt[xr]||{};return Object(W.a)(Object(W.a)({},Vr),Jr)}function jt(pt,xr,Jr,Vr){for(var Vn=Jr.points,sn=Object.keys(pt),zr=0;zr<sn.length;zr+=1){var qn=sn[zr];if(Dt(pt[qn].points,Vn,Vr))return"".concat(xr,"-placement-").concat(qn)}return""}var Ot=n("Ff2n"),nr=n("xEkU"),pr=n.n(nr),Ar=n("9mu1"),Nr=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function Hn(pt,xr){var Jr={};return Jr[pt.toLowerCase()]=xr.toLowerCase(),Jr["Webkit".concat(pt)]="webkit".concat(xr),Jr["Moz".concat(pt)]="moz".concat(xr),Jr["ms".concat(pt)]="MS".concat(xr),Jr["O".concat(pt)]="o".concat(xr.toLowerCase()),Jr}function Ln(pt,xr){var Jr={animationend:Hn("Animation","AnimationEnd"),transitionend:Hn("Transition","TransitionEnd")};return pt&&("AnimationEvent"in xr||delete Jr.animationend.animation,"TransitionEvent"in xr||delete Jr.transitionend.transition),Jr}var ci=Ln(Nr,typeof window!="undefined"?window:{}),hn={};if(Nr){var Fr=document.createElement("div");hn=Fr.style}var En={};function Wn(pt){if(En[pt])return En[pt];var xr=ci[pt];if(xr)for(var Jr=Object.keys(xr),Vr=Jr.length,Vn=0;Vn<Vr;Vn+=1){var sn=Jr[Vn];if(Object.prototype.hasOwnProperty.call(xr,sn)&&sn in hn)return En[pt]=xr[sn],En[pt]}return""}var Yn=Wn("animationend"),ii=Wn("transitionend"),xi=!!(Yn&&ii);function Ni(pt,xr){if(!pt)return null;if(Object(Q.a)(pt)==="object"){var Jr=xr.replace(/-\w/g,function(Vr){return Vr[1].toUpperCase()});return pt[Jr]}return"".concat(pt,"-").concat(xr)}var Li="none",oa="appear",ma="enter",ia="leave";function ba(pt){var xr=pt,Jr=!!u.forwardRef;Object(Q.a)(pt)==="object"&&(xr=pt.transitionSupport,Jr="forwardRef"in pt?pt.forwardRef:Jr);function Vr(sn){return!!(sn.motionName&&xr)}var Vn=function(sn){Object(X.a)(qn,sn);var zr=Object(B.a)(qn);function qn(){var en;return Object(F.a)(this,qn),en=zr.apply(this,arguments),en.$cacheEle=null,en.node=null,en.raf=null,en.destroyed=!1,en.deadlineId=null,en.state={status:Li,statusActive:!1,newStatus:!1,statusStyle:null},en.onDomUpdate=function(){var Un=en.state,si=Un.status,ui=Un.newStatus,oi=en.props,Ei=oi.onAppearStart,pi=oi.onEnterStart,Ai=oi.onLeaveStart,Oi=oi.onAppearActive,na=oi.onEnterActive,Hi=oi.onLeaveActive,fa=oi.motionAppear,Xa=oi.motionEnter,xa=oi.motionLeave;if(!Vr(en.props))return;var wa=en.getElement();en.$cacheEle!==wa&&(en.removeEventListener(en.$cacheEle),en.addEventListener(wa),en.$cacheEle=wa),ui&&si===oa&&fa?en.updateStatus(Ei,null,null,function(){en.updateActiveStatus(Oi,oa)}):ui&&si===ma&&Xa?en.updateStatus(pi,null,null,function(){en.updateActiveStatus(na,ma)}):ui&&si===ia&&xa&&en.updateStatus(Ai,null,null,function(){en.updateActiveStatus(Hi,ia)})},en.onMotionEnd=function(Un){if(Un&&!Un.deadline&&Un.target!==en.getElement())return;var si=en.state,ui=si.status,oi=si.statusActive,Ei=en.props,pi=Ei.onAppearEnd,Ai=Ei.onEnterEnd,Oi=Ei.onLeaveEnd;ui===oa&&oi?en.updateStatus(pi,{status:Li},Un):ui===ma&&oi?en.updateStatus(Ai,{status:Li},Un):ui===ia&&oi&&en.updateStatus(Oi,{status:Li},Un)},en.setNodeRef=function(Un){var si=en.props.internalRef;en.node=Un,Object(zn.b)(si,Un)},en.getElement=function(){try{return Object(xn.a)(en.node||Object(hi.a)(en))}catch(Un){return en.$cacheEle}},en.addEventListener=function(Un){if(!Un)return;Un.addEventListener(ii,en.onMotionEnd),Un.addEventListener(Yn,en.onMotionEnd)},en.removeEventListener=function(Un){if(!Un)return;Un.removeEventListener(ii,en.onMotionEnd),Un.removeEventListener(Yn,en.onMotionEnd)},en.updateStatus=function(Un,si,ui,oi){var Ei=Un?Un(en.getElement(),ui):null;if(Ei===!1||en.destroyed)return;var pi;oi&&(pi=function(){en.nextFrame(oi)}),en.setState(Object(W.a)({statusStyle:Object(Q.a)(Ei)==="object"?Ei:null,newStatus:!1},si),pi)},en.updateActiveStatus=function(Un,si){en.nextFrame(function(){var ui=en.state.status;if(ui!==si)return;var oi=en.props.motionDeadline;en.updateStatus(Un,{statusActive:!0}),oi>0&&(en.deadlineId=setTimeout(function(){en.onMotionEnd({deadline:!0})},oi))})},en.nextFrame=function(Un){en.cancelNextFrame(),en.raf=pr()(Un)},en.cancelNextFrame=function(){en.raf&&(pr.a.cancel(en.raf),en.raf=null)},en}return Object(P.a)(qn,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this.destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame(),clearTimeout(this.deadlineId)}},{key:"render",value:function(){var Un,si=this.state,ui=si.status,oi=si.statusActive,Ei=si.statusStyle,pi=this.props,Ai=pi.children,Oi=pi.motionName,na=pi.visible,Hi=pi.removeOnLeave,fa=pi.leavedClassName,Xa=pi.eventProps;return Ai?ui===Li||!Vr(this.props)?na?Ai(Object(W.a)({},Xa),this.setNodeRef):Hi?null:Ai(Object(W.a)(Object(W.a)({},Xa),{},{className:fa}),this.setNodeRef):Ai(Object(W.a)(Object(W.a)({},Xa),{},{className:_()(Ni(Oi,ui),(Un={},Object(j.a)(Un,Ni(Oi,"".concat(ui,"-active")),oi),Object(j.a)(Un,Oi,typeof Oi=="string"),Un)),style:Ei}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(Un,si){var ui=si.prevProps,oi=si.status;if(!Vr(Un))return{};var Ei=Un.visible,pi=Un.motionAppear,Ai=Un.motionEnter,Oi=Un.motionLeave,na=Un.motionLeaveImmediately,Hi={prevProps:Un};return(oi===oa&&!pi||oi===ma&&!Ai||oi===ia&&!Oi)&&(Hi.status=Li,Hi.statusActive=!1,Hi.newStatus=!1),!ui&&Ei&&pi&&(Hi.status=oa,Hi.statusActive=!1,Hi.newStatus=!0),ui&&!ui.visible&&Ei&&Ai&&(Hi.status=ma,Hi.statusActive=!1,Hi.newStatus=!0),(ui&&ui.visible&&!Ei&&Oi||!ui&&na&&!Ei&&Oi)&&(Hi.status=ia,Hi.statusActive=!1,Hi.newStatus=!0),Hi}}]),qn}(u.Component);return Vn.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},Jr?u.forwardRef(function(sn,zr){return u.createElement(Vn,Object.assign({internalRef:zr},sn))}):Vn}var vi=ba(xi),On="add",Fi="keep",ha="remove",ea="removed";function aa(pt){var xr;return pt&&Object(Q.a)(pt)==="object"&&"key"in pt?xr=pt:xr={key:pt},Object(W.a)(Object(W.a)({},xr),{},{key:String(xr.key)})}function Or(){var pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return pt.map(aa)}function wr(){var pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Jr=[],Vr=0,Vn=xr.length,sn=Or(pt),zr=Or(xr);sn.forEach(function(Un){for(var si=!1,ui=Vr;ui<Vn;ui+=1){var oi=zr[ui];if(oi.key===Un.key){Vr<ui&&(Jr=Jr.concat(zr.slice(Vr,ui).map(function(Ei){return Object(W.a)(Object(W.a)({},Ei),{},{status:On})})),Vr=ui),Jr.push(Object(W.a)(Object(W.a)({},oi),{},{status:Fi})),Vr+=1,si=!0;break}}si||Jr.push(Object(W.a)(Object(W.a)({},Un),{},{status:ha}))}),Vr<Vn&&(Jr=Jr.concat(zr.slice(Vr).map(function(Un){return Object(W.a)(Object(W.a)({},Un),{},{status:On})})));var qn={};Jr.forEach(function(Un){var si=Un.key;qn[si]=(qn[si]||0)+1});var en=Object.keys(qn).filter(function(Un){return qn[Un]>1});return en.forEach(function(Un){Jr=Jr.filter(function(si){var ui=si.key,oi=si.status;return ui!==Un||oi!==ha}),Jr.forEach(function(si){si.key===Un&&(si.status=Fi)})}),Jr}var Sn=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function cr(pt){var xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vi,Jr=function(Vr){Object(X.a)(sn,Vr);var Vn=Object(B.a)(sn);function sn(){var zr;return Object(F.a)(this,sn),zr=Vn.apply(this,arguments),zr.state={keyEntities:[]},zr.removeKey=function(qn){zr.setState(function(en){var Un=en.keyEntities;return{keyEntities:Un.map(function(si){return si.key!==qn?si:Object(W.a)(Object(W.a)({},si),{},{status:ea})})}})},zr}return Object(P.a)(sn,[{key:"render",value:function(){var qn=this,en=this.state.keyEntities,Un=this.props,si=Un.component,ui=Un.children,oi=Object(Ot.a)(Un,["component","children"]),Ei=si||u.Fragment,pi={};return Sn.forEach(function(Ai){pi[Ai]=oi[Ai],delete oi[Ai]}),delete oi.keys,u.createElement(Ei,Object.assign({},oi),en.map(function(Ai){var Oi=Ai.status,na=Object(Ot.a)(Ai,["status"]),Hi=Oi===On||Oi===Fi;return u.createElement(xr,Object.assign({},pi,{key:na.key,visible:Hi,eventProps:na,onLeaveEnd:function(){pi.onLeaveEnd&&pi.onLeaveEnd.apply(pi,arguments),qn.removeKey(na.key)}}),ui)}))}}],[{key:"getDerivedStateFromProps",value:function(qn,en){var Un=qn.keys,si=en.keyEntities,ui=Or(Un);if(!pt)return{keyEntities:ui.map(function(pi){return Object(W.a)(Object(W.a)({},pi),{},{status:Fi})})};var oi=wr(si,ui),Ei=si.length;return{keyEntities:oi.filter(function(pi){for(var Ai=null,Oi=0;Oi<Ei;Oi+=1){var na=si[Oi];if(na.key===pi.key){Ai=na;break}}return!(Ai&&Ai.status===ea&&pi.status===ha)})}}}]),sn}(u.Component);return Jr.defaultProps={component:"div"},Jr}var Lr=cr(xi),Wr=vi,on=function(xr,Jr){var Vr=xr.prefixCls,Vn=xr.className,sn=xr.style,zr=xr.children,qn=xr.onMouseEnter,en=xr.onMouseLeave,Un=xr.onMouseDown,si=xr.onTouchStart,ui=zr;return u.Children.count(zr)>1&&(ui=u.createElement("div",{className:"".concat(Vr,"-content")},zr)),u.createElement("div",{ref:Jr,className:Vn,onMouseEnter:qn,onMouseLeave:en,onMouseDown:Un,onTouchStart:si,style:sn},ui)},Nn=u.forwardRef(on);Nn.displayName="PopupInner";var Et=Nn;function Cr(pt){var xr=pt.prefixCls,Jr=pt.motion,Vr=pt.animation,Vn=pt.transitionName;return Jr||(Vr?{motionName:"".concat(xr,"-").concat(Vr)}:Vn?{motionName:Vn}:null)}function _r(pt){return pt&&pt.motionName}var $r=function(pt){Object(X.a)(Jr,pt);var xr=Object(B.a)(Jr);function Jr(){var Vr;return Object(F.a)(this,Jr),Vr=xr.apply(this,arguments),Vr.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},Vr.popupRef=a.a.createRef(),Vr.alignRef=a.a.createRef(),Vr.nextFrameState=null,Vr.nextFrameId=null,Vr.onAlign=function(Vn,sn){var zr=Vr.state.status,qn=Vr.props,en=qn.getClassNameFromAlign,Un=qn.onAlign,si=en(sn);zr==="align"?Vr.setState({alignClassName:si,status:"aligned"},function(){Vr.alignRef.current.forceAlign()}):zr==="aligned"?(Vr.setState({alignClassName:si,status:"afterAlign"}),Un(Vn,sn)):Vr.setState({alignClassName:si})},Vr.onMotionEnd=function(){var Vn=Vr.props.visible;Vr.setState({status:Vn?"AfterMotion":"stable",inMotion:!1})},Vr.setStateOnNextFrame=function(Vn){Vr.cancelFrameState(),Vr.nextFrameState=Object(W.a)(Object(W.a)({},Vr.nextFrameState),Vn),Vr.nextFrameId=pr()(function(){var sn=Object(W.a)({},Vr.nextFrameState);Vr.nextFrameState=null,Vr.setState(sn)})},Vr.getMotion=function(){return Object(W.a)({},Cr(Vr.props))},Vr.getAlignTarget=function(){var Vn=Vr.props,sn=Vn.point,zr=Vn.getRootDomNode;return sn||zr},Vr.cancelFrameState=function(){pr.a.cancel(Vr.nextFrameId)},Vr.renderPopupElement=function(){var Vn=Vr.state,sn=Vn.status,zr=Vn.targetHeight,qn=Vn.targetWidth,en=Vn.alignClassName,Un=Vr.props,si=Un.prefixCls,ui=Un.className,oi=Un.style,Ei=Un.stretch,pi=Un.visible,Ai=Un.align,Oi=Un.destroyPopupOnHide,na=Un.onMouseEnter,Hi=Un.onMouseLeave,fa=Un.onMouseDown,Xa=Un.onTouchStart,xa=Un.children,wa=_()(si,ui,en),Da="".concat(si,"-hidden"),ja={};Ei&&(Ei.indexOf("height")!==-1?ja.height=zr:Ei.indexOf("minHeight")!==-1&&(ja.minHeight=zr),Ei.indexOf("width")!==-1?ja.width=qn:Ei.indexOf("minWidth")!==-1&&(ja.minWidth=qn));var ko=Object(W.a)(Object(W.a)(Object(W.a)(Object(W.a)({},ja),Vr.getZIndexStyle()),oi),{},{opacity:sn==="stable"||!pi?void 0:0,pointerEvents:sn==="stable"||!pi?void 0:"none"}),ro=Vr.getMotion(),pa=pi;pi&&sn!=="beforeMotion"&&sn!=="motion"&&sn!=="stable"&&(ro.motionAppear=!1,ro.motionEnter=!1,ro.motionLeave=!1),(sn==="afterAlign"||sn==="beforeMotion")&&(pa=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(Ka){var lo=ro==null?void 0:ro[Ka];ro[Ka]=function(){for(var so=arguments.length,Co=new Array(so),Lo=0;Lo<so;Lo++)Co[Lo]=arguments[Lo];lo==null||lo.apply(void 0,Co),Vr.setState({inMotion:!0})}});var Ea=!pi||sn!=="align"&&sn!=="aligned"&&sn!=="stable",Fa=!0;return sn==="stable"&&(Fa=pi),Oi&&!Fa?null:a.a.createElement(Wr,Object.assign({visible:pa},ro,{removeOnLeave:!1,onEnterEnd:Vr.onMotionEnd,onLeaveEnd:Vr.onMotionEnd,leavedClassName:Da}),function(Ka,lo){var so=Ka.style,Co=Ka.className;return a.a.createElement(Ar.a,{target:Vr.getAlignTarget(),key:"popup",ref:Vr.alignRef,monitorWindowResize:!0,disabled:Ea,align:Ai,onAlign:Vr.onAlign},a.a.createElement(Et,{prefixCls:si,className:_()(wa,Co),ref:Object(zn.a)(lo,Vr.popupRef),onMouseEnter:na,onMouseLeave:Hi,onMouseDown:fa,onTouchStart:Xa,style:Object(W.a)(Object(W.a)({},ko),so)},xa))})},Vr.renderMaskElement=function(){var Vn=Vr.props,sn=Vn.mask,zr=Vn.maskMotion,qn=Vn.maskTransitionName,en=Vn.maskAnimation,Un=Vn.prefixCls,si=Vn.visible;if(!sn)return null;var ui={};return zr&&zr.motionName&&(ui=Object(W.a)({motionAppear:!0},Cr({motion:zr,prefixCls:Un,transitionName:qn,animation:en}))),a.a.createElement(Wr,Object.assign({},ui,{visible:si,removeOnLeave:!0}),function(oi){var Ei=oi.className;return a.a.createElement("div",{style:Vr.getZIndexStyle(),key:"mask",className:_()("".concat(Un,"-mask"),Ei)})})},Vr}return Object(P.a)(Jr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Vn=this.state.status,sn=this.props,zr=sn.getRootDomNode,qn=sn.visible,en=sn.stretch;if(this.cancelFrameState(),qn&&Vn!=="stable")switch(Vn){case null:{this.setStateOnNextFrame({status:en?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:_r(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var Un=["measure","align",null,"beforeMotion","motion"],si=Un.indexOf(Vn),ui=Un[si+1];si!==-1&&ui&&this.setStateOnNextFrame({status:ui})}}if(Vn==="measure"){var oi=zr();oi&&this.setStateOnNextFrame({targetHeight:oi.offsetHeight,targetWidth:oi.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Vn=this.props.zIndex;return{zIndex:Vn}}},{key:"render",value:function(){return a.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Vn,sn){var zr=Vn.visible,qn=Object(Ot.a)(Vn,["visible"]),en=sn.prevVisible,Un=sn.status,si=sn.inMotion,ui={prevVisible:zr,status:Un},oi=Cr(qn);return en===null&&zr===!1?(ui.status="stable",ui.inMotion=!1):zr!==en&&(ui.inMotion=!1,zr||_r(oi)&&si?ui.status=null:ui.status="stable",zr&&(ui.alignClassName=null)),ui}}]),Jr}(u.Component),yn=$r,Tn=u.createContext(null),vn=Tn;function Qn(){}function Fn(){return""}function fi(){return window.document}var Ri=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function yi(pt){var xr=function(Jr){Object(X.a)(Vn,Jr);var Vr=Object(B.a)(Vn);function Vn(sn){var zr;Object(F.a)(this,Vn),zr=Vr.call(this,sn),zr.popupRef=a.a.createRef(),zr.triggerRef=a.a.createRef(),zr.onMouseEnter=function(en){var Un=zr.props.mouseEnterDelay;zr.fireEvents("onMouseEnter",en),zr.delaySetPopupVisible(!0,Un,Un?null:en)},zr.onMouseMove=function(en){zr.fireEvents("onMouseMove",en),zr.setPoint(en)},zr.onMouseLeave=function(en){zr.fireEvents("onMouseLeave",en),zr.delaySetPopupVisible(!1,zr.props.mouseLeaveDelay)},zr.onPopupMouseEnter=function(){zr.clearDelayTimer()},zr.onPopupMouseLeave=function(en){if(en.relatedTarget&&!en.relatedTarget.setTimeout&&zr.popupRef.current&&zr.popupRef.current.popupRef.current&&Object(qr.a)(zr.popupRef.current.popupRef.current,en.relatedTarget))return;zr.delaySetPopupVisible(!1,zr.props.mouseLeaveDelay)},zr.onFocus=function(en){zr.fireEvents("onFocus",en),zr.clearDelayTimer(),zr.isFocusToShow()&&(zr.focusTime=Date.now(),zr.delaySetPopupVisible(!0,zr.props.focusDelay))},zr.onMouseDown=function(en){zr.fireEvents("onMouseDown",en),zr.preClickTime=Date.now()},zr.onTouchStart=function(en){zr.fireEvents("onTouchStart",en),zr.preTouchTime=Date.now()},zr.onBlur=function(en){zr.fireEvents("onBlur",en),zr.clearDelayTimer(),zr.isBlurToHide()&&zr.delaySetPopupVisible(!1,zr.props.blurDelay)},zr.onContextMenu=function(en){en.preventDefault(),zr.fireEvents("onContextMenu",en),zr.setPopupVisible(!0,en)},zr.onContextMenuClose=function(){zr.isContextMenuToShow()&&zr.close()},zr.onClick=function(en){if(zr.fireEvents("onClick",en),zr.focusTime){var Un;if(zr.preClickTime&&zr.preTouchTime?Un=Math.min(zr.preClickTime,zr.preTouchTime):zr.preClickTime?Un=zr.preClickTime:zr.preTouchTime&&(Un=zr.preTouchTime),Math.abs(Un-zr.focusTime)<20)return;zr.focusTime=0}zr.preClickTime=0,zr.preTouchTime=0,zr.isClickToShow()&&(zr.isClickToHide()||zr.isBlurToHide())&&en&&en.preventDefault&&en.preventDefault();var si=!zr.state.popupVisible;(zr.isClickToHide()&&!si||si&&zr.isClickToShow())&&zr.setPopupVisible(!zr.state.popupVisible,en)},zr.onPopupMouseDown=function(){if(zr.hasPopupMouseDown=!0,clearTimeout(zr.mouseDownTimeout),zr.mouseDownTimeout=window.setTimeout(function(){zr.hasPopupMouseDown=!1},0),zr.context){var en;(en=zr.context).onPopupMouseDown.apply(en,arguments)}},zr.onDocumentClick=function(en){if(zr.props.mask&&!zr.props.maskClosable)return;var Un=en.target,si=zr.getRootDomNode(),ui=zr.getPopupDomNode();!Object(qr.a)(si,Un)&&!Object(qr.a)(ui,Un)&&!zr.hasPopupMouseDown&&zr.close()},zr.getRootDomNode=function(){var en=zr.props.getTriggerDOMNode;if(en)return en(zr.triggerRef.current);try{var Un=Object(xn.a)(zr.triggerRef.current);if(Un)return Un}catch(si){}return Zi.a.findDOMNode(Object(hi.a)(zr))},zr.getPopupClassNameFromAlign=function(en){var Un=[],si=zr.props,ui=si.popupPlacement,oi=si.builtinPlacements,Ei=si.prefixCls,pi=si.alignPoint,Ai=si.getPopupClassNameFromAlign;return ui&&oi&&Un.push(jt(oi,Ei,en,pi)),Ai&&Un.push(Ai(en)),Un.join(" ")},zr.getComponent=function(){var en=zr.props,Un=en.prefixCls,si=en.destroyPopupOnHide,ui=en.popupClassName,oi=en.onPopupAlign,Ei=en.popupMotion,pi=en.popupAnimation,Ai=en.popupTransitionName,Oi=en.popupStyle,na=en.mask,Hi=en.maskAnimation,fa=en.maskTransitionName,Xa=en.maskMotion,xa=en.zIndex,wa=en.popup,Da=en.stretch,ja=en.alignPoint,ko=zr.state,ro=ko.popupVisible,pa=ko.point,Ea=zr.getPopupAlign(),Fa={};return zr.isMouseEnterToShow()&&(Fa.onMouseEnter=zr.onPopupMouseEnter),zr.isMouseLeaveToHide()&&(Fa.onMouseLeave=zr.onPopupMouseLeave),Fa.onMouseDown=zr.onPopupMouseDown,Fa.onTouchStart=zr.onPopupMouseDown,a.a.createElement(yn,Object.assign({prefixCls:Un,destroyPopupOnHide:si,visible:ro,point:ja&&pa,className:ui,align:Ea,onAlign:oi,animation:pi,getClassNameFromAlign:zr.getPopupClassNameFromAlign},Fa,{stretch:Da,getRootDomNode:zr.getRootDomNode,style:Oi,mask:na,zIndex:xa,transitionName:Ai,maskAnimation:Hi,maskTransitionName:fa,maskMotion:Xa,ref:zr.popupRef,motion:Ei}),typeof wa=="function"?wa():wa)},zr.getContainer=function(){var en=Object(hi.a)(zr),Un=en.props,si=document.createElement("div");si.style.position="absolute",si.style.top="0",si.style.left="0",si.style.width="100%";var ui=Un.getPopupContainer?Un.getPopupContainer(zr.getRootDomNode()):Un.getDocument().body;return ui.appendChild(si),si},zr.setPoint=function(en){var Un=zr.props.alignPoint;if(!Un||!en)return;zr.setState({point:{pageX:en.pageX,pageY:en.pageY}})},zr.handlePortalUpdate=function(){zr.state.prevPopupVisible!==zr.state.popupVisible&&zr.props.afterPopupVisibleChange(zr.state.popupVisible)};var qn;return"popupVisible"in sn?qn=!!sn.popupVisible:qn=!!sn.defaultPopupVisible,zr.state={prevPopupVisible:qn,popupVisible:qn},Ri.forEach(function(en){zr["fire".concat(en)]=function(Un){zr.fireEvents(en,Un)}}),zr}return Object(P.a)(Vn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var zr=this.props,qn=this.state;if(qn.popupVisible){var en;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(en=zr.getDocument(),this.clickOutsideHandler=Object(Ht.a)(en,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(en=en||zr.getDocument(),this.touchOutsideHandler=Object(Ht.a)(en,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(en=en||zr.getDocument(),this.contextMenuOutsideHandler1=Object(Ht.a)(en,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Ht.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)}},{key:"getPopupDomNode",value:function(){return this.popupRef.current&&this.popupRef.current.popupRef.current?this.popupRef.current.popupRef.current:null}},{key:"getPopupAlign",value:function(){var zr=this.props,qn=zr.popupPlacement,en=zr.popupAlign,Un=zr.builtinPlacements;return qn&&Un?Bt(Un,qn,en):en}},{key:"setPopupVisible",value:function(zr,qn){var en=this.props.alignPoint,Un=this.state.popupVisible;this.clearDelayTimer(),Un!==zr&&("popupVisible"in this.props||this.setState({popupVisible:zr,prevPopupVisible:Un}),this.props.onPopupVisibleChange(zr)),en&&qn&&this.setPoint(qn)}},{key:"delaySetPopupVisible",value:function(zr,qn,en){var Un=this,si=qn*1e3;if(this.clearDelayTimer(),si){var ui=en?{pageX:en.pageX,pageY:en.pageY}:null;this.delayTimer=window.setTimeout(function(){Un.setPopupVisible(zr,ui),Un.clearDelayTimer()},si)}else this.setPopupVisible(zr,en)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(zr){var qn=this.props.children.props,en=this.props;return qn[zr]&&en[zr]?this["fire".concat(zr)]:qn[zr]||en[zr]}},{key:"isClickToShow",value:function(){var zr=this.props,qn=zr.action,en=zr.showAction;return qn.indexOf("click")!==-1||en.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var zr=this.props,qn=zr.action,en=zr.showAction;return qn.indexOf("contextMenu")!==-1||en.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var zr=this.props,qn=zr.action,en=zr.hideAction;return qn.indexOf("click")!==-1||en.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var zr=this.props,qn=zr.action,en=zr.showAction;return qn.indexOf("hover")!==-1||en.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var zr=this.props,qn=zr.action,en=zr.hideAction;return qn.indexOf("hover")!==-1||en.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var zr=this.props,qn=zr.action,en=zr.showAction;return qn.indexOf("focus")!==-1||en.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var zr=this.props,qn=zr.action,en=zr.hideAction;return qn.indexOf("focus")!==-1||en.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){this.state.popupVisible&&this.popupRef.current&&this.popupRef.current.alignRef.current&&this.popupRef.current.alignRef.current.forceAlign()}},{key:"fireEvents",value:function(zr,qn){var en=this.props.children.props[zr];en&&en(qn);var Un=this.props[zr];Un&&Un(qn)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var zr=this.state.popupVisible,qn=this.props,en=qn.children,Un=qn.forceRender,si=qn.alignPoint,ui=qn.className,oi=qn.autoDestroy,Ei=a.a.Children.only(en),pi={key:"trigger"};this.isContextMenuToShow()?pi.onContextMenu=this.onContextMenu:pi.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(pi.onClick=this.onClick,pi.onMouseDown=this.onMouseDown,pi.onTouchStart=this.onTouchStart):(pi.onClick=this.createTwoChains("onClick"),pi.onMouseDown=this.createTwoChains("onMouseDown"),pi.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(pi.onMouseEnter=this.onMouseEnter,si&&(pi.onMouseMove=this.onMouseMove)):pi.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?pi.onMouseLeave=this.onMouseLeave:pi.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(pi.onFocus=this.onFocus,pi.onBlur=this.onBlur):(pi.onFocus=this.createTwoChains("onFocus"),pi.onBlur=this.createTwoChains("onBlur"));var Ai=_()(Ei&&Ei.props&&Ei.props.className,ui);Ai&&(pi.className=Ai);var Oi=Object(W.a)({},pi);Object(zn.c)(Ei)&&(Oi.ref=Object(zn.a)(this.triggerRef,Ei.ref));var na=a.a.cloneElement(Ei,Oi),Hi;return(zr||this.popupRef.current||Un)&&(Hi=a.a.createElement(pt,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!zr&&oi&&(Hi=null),a.a.createElement(vn.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},na,Hi)}}],[{key:"getDerivedStateFromProps",value:function(zr,qn){var en=zr.popupVisible,Un={};return en!==void 0&&qn.popupVisible!==en&&(Un.popupVisible=en,Un.prevPopupVisible=qn.popupVisible),Un}}]),Vn}(a.a.Component);return xr.contextType=vn,xr.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Fn,getDocument:fi,onPopupVisibleChange:Qn,afterPopupVisibleChange:Qn,onPopupAlign:Qn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},xr}var Ci=yi(Tt.a),Wi={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 qi(pt){var xr,Jr=pt.prefixCls,Vr=pt.popupElement,Vn=pt.popupStyle,sn=pt.visible,zr=pt.dropdownClassName,qn=pt.dropdownAlign,en=pt.transitionName,Un=pt.getPopupContainer,si=pt.children,ui=pt.range,oi=pt.popupPlacement,Ei=pt.direction,pi="".concat(Jr,"-dropdown"),Ai=function(){return oi!==void 0?oi:Ei==="rtl"?"bottomRight":"bottomLeft"};return u.createElement(Ci,{showAction:[],hideAction:[],popupPlacement:Ai(),builtinPlacements:Wi,prefixCls:pi,popupTransitionName:en,popup:Vr,popupAlign:qn,popupVisible:sn,popupClassName:_()(zr,(xr={},Object(j.a)(xr,"".concat(pi,"-range"),ui),Object(j.a)(xr,"".concat(pi,"-rtl"),Ei==="rtl"),xr)),popupStyle:Vn,getPopupContainer:Un},si)}var zi=qi;function Ki(pt){var xr=pt.open,Jr=pt.value,Vr=pt.isClickOutside,Vn=pt.triggerOpen,sn=pt.forwardKeyDown,zr=pt.blurToCancel,qn=pt.onSubmit,en=pt.onCancel,Un=pt.onFocus,si=pt.onBlur,ui=Object(u.useState)(!1),oi=Object(z.a)(ui,2),Ei=oi[0],pi=oi[1],Ai=Object(u.useState)(!1),Oi=Object(z.a)(Ai,2),na=Oi[0],Hi=Oi[1],fa=Object(u.useRef)(!1),Xa=Object(u.useRef)(!1),xa={onMouseDown:function(){pi(!0),Vn(!0)},onKeyDown:function(Da){switch(Da.which){case G.a.ENTER:{xr?qn()!==!1&&pi(!0):Vn(!0),Da.preventDefault();return}case G.a.TAB:{Ei&&xr&&!Da.shiftKey?(pi(!1),Da.preventDefault()):!Ei&&xr&&(!sn(Da)&&Da.shiftKey&&(pi(!0),Da.preventDefault()));return}case G.a.ESC:{pi(!0),en();return}}!xr&&![G.a.SHIFT].includes(Da.which)?Vn(!0):Ei||sn(Da)},onFocus:function(Da){pi(!0),Hi(!0),Un&&Un(Da)},onBlur:function(Da){if(fa.current||!Vr(document.activeElement)){fa.current=!1;return}zr?setTimeout(function(){Vr(document.activeElement)&&en()},0):xr&&(Vn(!1),Xa.current&&qn()),Hi(!1),si&&si(Da)}};return Object(u.useEffect)(function(){Xa.current=!1},[xr]),Object(u.useEffect)(function(){Xa.current=!0},[Jr]),Object(u.useEffect)(function(){return $(function(wa){var Da=wa.target;xr&&(Vr(Da)?na||Vn(!1):(fa.current=!0,requestAnimationFrame(function(){fa.current=!1})))})}),[xa,{focused:na,typing:Ei}]}function ji(pt){var xr=pt.valueTexts,Jr=pt.onTextChange,Vr=u.useState(""),Vn=Object(z.a)(Vr,2),sn=Vn[0],zr=Vn[1],qn=u.useRef([]);qn.current=xr;function en(si){zr(si),Jr(si)}function Un(){zr(qn.current[0])}return u.useEffect(function(){xr.every(function(si){return si!==sn})&&Un()},[xr.join("||")]),[sn,en,Un]}var Yi=n("Gytx"),ca=n.n(Yi);function Ca(pt,xr){var Jr=xr.formatList,Vr=xr.generateConfig,Vn=xr.locale;return Object(Qe.a)(function(){if(!pt)return[[""],""];for(var sn="",zr=[],qn=0;qn<Jr.length;qn+=1){var en=Jr[qn],Un=Vr.locale.format(Vn.locale,pt,en);zr.push(Un),qn===0&&(sn=Un)}return[zr,sn]},[pt,Jr],function(sn,zr){return sn[0]!==zr[0]||!ca()(sn[1],zr[1])})}function ra(pt,xr){var Jr=xr.formatList,Vr=xr.generateConfig,Vn=xr.locale,sn=Object(u.useState)(null),zr=Object(z.a)(sn,2),qn=zr[0],en=zr[1],Un=Object(u.useRef)(null);function si(Oi){var na=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(Un.current),na){en(Oi);return}Un.current=requestAnimationFrame(function(){en(Oi)})}var ui=Ca(qn,{formatList:Jr,generateConfig:Vr,locale:Vn}),oi=Object(z.a)(ui,2),Ei=oi[1];function pi(Oi){si(Oi)}function Ai(){var Oi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;si(null,Oi)}return Object(u.useEffect)(function(){Ai(!0)},[pt]),Object(u.useEffect)(function(){return function(){return cancelAnimationFrame(Un.current)}},[]),[Ei,pi,Ai]}function Ma(pt){var xr,Jr=pt.prefixCls,Vr=Jr===void 0?"rc-picker":Jr,Vn=pt.id,sn=pt.tabIndex,zr=pt.style,qn=pt.className,en=pt.dropdownClassName,Un=pt.dropdownAlign,si=pt.popupStyle,ui=pt.transitionName,oi=pt.generateConfig,Ei=pt.locale,pi=pt.inputReadOnly,Ai=pt.allowClear,Oi=pt.autoFocus,na=pt.showTime,Hi=pt.picker,fa=Hi===void 0?"date":Hi,Xa=pt.format,xa=pt.use12Hours,wa=pt.value,Da=pt.defaultValue,ja=pt.open,ko=pt.defaultOpen,ro=pt.defaultOpenValue,pa=pt.suffixIcon,Ea=pt.clearIcon,Fa=pt.disabled,Ka=pt.disabledDate,lo=pt.placeholder,so=pt.getPopupContainer,Co=pt.pickerRef,Lo=pt.panelRender,is=pt.onChange,cs=pt.onOpenChange,Rs=pt.onFocus,Ko=pt.onBlur,as=pt.onMouseDown,co=pt.onMouseUp,Ao=pt.onMouseEnter,$a=pt.onMouseLeave,ss=pt.onContextMenu,Cs=pt.onClick,Fo=pt.direction,il=pt.autoComplete,Eo=il===void 0?"off":il,zo=u.useRef(null),Bs=fa==="date"&&!!na||fa==="time",ms=Ke(st(Xa,fa,na,xa)),hs=u.useRef(null),gn=u.useRef(null),Ns=Object(V.a)(null,{value:wa,defaultValue:Da}),Ll=Object(z.a)(Ns,2),el=Ll[0],Gs=Ll[1],ds=u.useState(el),ks=Object(z.a)(ds,2),Qs=ks[0],tl=ks[1],xs=u.useRef(null),Us=Object(V.a)(!1,{value:ja,defaultValue:ko,postState:function(vo){return Fa?!1:vo},onChange:function(vo){cs&&cs(vo),!vo&&xs.current&&xs.current.onClose&&xs.current.onClose()}}),al=Object(z.a)(Us,2),Js=al[0],Vo=al[1],No=Ca(Qs,{formatList:ms,generateConfig:oi,locale:Ei}),fs=Object(z.a)(No,2),Ds=fs[0],go=fs[1],Ft=ji({valueTexts:Ds,onTextChange:function(vo){var Ms=oi.locale.parse(Ei.locale,vo,ms);Ms&&(!Ka||!Ka(Ms))&&tl(Ms)}}),er=Object(z.a)(Ft,3),Cn=er[0],di=er[1],It=er[2],ue=function(vo){tl(vo),Gs(vo),is&&!Wt(oi,el,vo)&&is(vo,vo?oi.locale.format(Ei.locale,vo,ms[0]):"")},Se=function(vo){if(Fa&&vo)return;Vo(vo)},_e=function(vo){return Js&&xs.current&&xs.current.onKeyDown?xs.current.onKeyDown(vo):(Object(x.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Je=function(){co&&co.apply(void 0,arguments),zo.current&&(zo.current.focus(),Se(!0))},Lt=Ki({blurToCancel:Bs,open:Js,value:Cn,triggerOpen:Se,forwardKeyDown:_e,isClickOutside:function(vo){return!me([hs.current,gn.current],vo)},onSubmit:function(){return Ka&&Ka(Qs)?!1:(ue(Qs),Se(!1),It(),!0)},onCancel:function(){Se(!1),tl(el),It()},onFocus:Rs,onBlur:Ko}),tr=Object(z.a)(Lt,2),Gr=tr[0],cn=tr[1],_n=cn.focused,li=cn.typing;u.useEffect(function(){Js||(tl(el),!Ds.length||Ds[0]===""?di(""):go!==Cn&&It())},[Js,Ds]),u.useEffect(function(){Js||It()},[fa]),u.useEffect(function(){tl(el)},[el]),Co&&(Co.current={focus:function(){zo.current&&zo.current.focus()},blur:function(){zo.current&&zo.current.blur()}});var wi=Object(W.a)(Object(W.a)({},pt),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),mi=u.createElement(Zr,Object.assign({},wi,{generateConfig:oi,className:_()(Object(j.a)({},"".concat(Vr,"-panel-focused"),!li)),value:Qs,locale:Ei,tabIndex:-1,onChange:tl,direction:Fo}));Lo&&(mi=Lo(mi));var Gi=u.createElement("div",{className:"".concat(Vr,"-panel-container"),onMouseDown:function(vo){vo.preventDefault()}},mi),sa;pa&&(sa=u.createElement("span",{className:"".concat(Vr,"-suffix")},pa));var Ua;Ai&&el&&!Fa&&(Ua=u.createElement("span",{onMouseDown:function(vo){vo.preventDefault(),vo.stopPropagation()},onMouseUp:function(vo){vo.preventDefault(),vo.stopPropagation(),ue(null),Se(!1)},className:"".concat(Vr,"-clear")},Ea||u.createElement("span",{className:"".concat(Vr,"-clear-btn")})));var no=function(vo,Ms){(Ms==="submit"||Ms!=="key"&&!Bs)&&(ue(vo),Se(!1))},Wo=Fo==="rtl"?"bottomRight":"bottomLeft",Zo=ra(Cn,{formatList:ms,generateConfig:oi,locale:Ei}),Bo=Object(z.a)(Zo,3),Es=Bo[0],As=Bo[1],$o=Bo[2];return u.createElement(ce.Provider,{value:{operationRef:xs,hideHeader:fa==="time",panelRef:hs,onSelect:no,open:Js,defaultOpenValue:ro,onDateMouseEnter:As,onDateMouseLeave:$o}},u.createElement(zi,{visible:Js,popupElement:Gi,popupStyle:si,prefixCls:Vr,dropdownClassName:en,dropdownAlign:Un,getPopupContainer:so,transitionName:ui,popupPlacement:Wo,direction:Fo},u.createElement("div",{className:_()(Vr,qn,(xr={},Object(j.a)(xr,"".concat(Vr,"-disabled"),Fa),Object(j.a)(xr,"".concat(Vr,"-focused"),_n),Object(j.a)(xr,"".concat(Vr,"-rtl"),Fo==="rtl"),xr)),style:zr,onMouseDown:as,onMouseUp:Je,onMouseEnter:Ao,onMouseLeave:$a,onContextMenu:ss,onClick:Cs},u.createElement("div",{className:_()("".concat(Vr,"-input"),Object(j.a)({},"".concat(Vr,"-input-placeholder"),!!Es)),ref:gn},u.createElement("input",Object.assign({id:Vn,tabIndex:sn,disabled:Fa,readOnly:pi||!li,value:Es||Cn,onChange:function(vo){di(vo.target.value)},autoFocus:Oi,placeholder:lo,ref:zo,title:Cn},Gr,{size:he(fa,ms[0])},Jt(pt),{autoComplete:Eo})),sa,Ua))))}var La=function(pt){Object(X.a)(Jr,pt);var xr=Object(B.a)(Jr);function Jr(){var Vr;return Object(F.a)(this,Jr),Vr=xr.apply(this,arguments),Vr.pickerRef=u.createRef(),Vr.focus=function(){Vr.pickerRef.current&&Vr.pickerRef.current.focus()},Vr.blur=function(){Vr.pickerRef.current&&Vr.pickerRef.current.blur()},Vr}return Object(P.a)(Jr,[{key:"render",value:function(){return u.createElement(Ma,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Jr}(u.Component),va=La;function ga(pt,xr,Jr){var Vr=pt.picker,Vn=pt.locale,sn=pt.selectedValue,zr=pt.disabledDate,qn=pt.disabled,en=pt.generateConfig,Un=ct(sn,0),si=ct(sn,1);function ui(Oi){var na=en.getYear(Oi),Hi=en.locale.getWeek(Vn.locale,Oi);return na*100+Hi}function oi(Oi){var na=en.getYear(Oi),Hi=en.getMonth(Oi);return na*100+Hi}function Ei(Oi){var na=en.getYear(Oi),Hi=or(en,Oi);return na*10+Hi}var pi=u.useCallback(function(Oi){if(zr&&zr(Oi))return!0;if(qn[1]&&si)return!sr(en,Oi,si)&&en.isAfter(Oi,si);if(xr&&si)switch(Vr){case"quarter":return Ei(Oi)>Ei(si);case"month":return oi(Oi)>oi(si);case"week":return ui(Oi)>ui(si);default:return!sr(en,Oi,si)&&en.isAfter(Oi,si)}return!1},[zr,qn[1],si,xr]),Ai=u.useCallback(function(Oi){if(zr&&zr(Oi))return!0;if(qn[0]&&Un)return!sr(en,Oi,si)&&en.isAfter(Un,Oi);if(Jr&&Un)switch(Vr){case"quarter":return Ei(Oi)<Ei(Un);case"month":return oi(Oi)<oi(Un);case"week":return ui(Oi)<ui(Un);default:return!sr(en,Oi,Un)&&en.isAfter(Un,Oi)}return!1},[zr,qn[0],Un,Jr]);return[pi,Ai]}function Oa(pt,xr,Jr,Vr){var Vn=Dn(pt,Jr,Vr,1);function sn(zr){return zr(pt,xr)?"same":zr(Vn,xr)?"closing":"far"}switch(Jr){case"year":return sn(function(zr,qn){return Mt(Vr,zr,qn)});case"quarter":case"month":return sn(function(zr,qn){return mt(Vr,zr,qn)});default:return sn(function(zr,qn){return fn(Vr,zr,qn)})}}function Aa(pt,xr,Jr,Vr){var Vn=ct(pt,0),sn=ct(pt,1);if(xr===0)return Vn;if(Vn&&sn){var zr=Oa(Vn,sn,Jr,Vr);switch(zr){case"same":return Vn;case"closing":return Vn;default:return Dn(sn,Jr,Vr,-1)}}return Vn}function Ga(pt){var xr=pt.values,Jr=pt.picker,Vr=pt.defaultDates,Vn=pt.generateConfig,sn=u.useState(function(){return[ct(Vr,0),ct(Vr,1)]}),zr=Object(z.a)(sn,2),qn=zr[0],en=zr[1],Un=u.useState(null),si=Object(z.a)(Un,2),ui=si[0],oi=si[1],Ei=ct(xr,0),pi=ct(xr,1);function Ai(na){return qn[na]?qn[na]:ct(ui,na)||Aa(xr,na,Jr,Vn)||Ei||pi||Vn.getNow()}function Oi(na,Hi){if(na){var fa=Gt(ui,na,Hi);en(Gt(qn,null,Hi)||[null,null]);var Xa=(Hi+1)%2;ct(xr,Xa)||(fa=Gt(fa,na,Xa)),oi(fa)}else(Ei||pi)&&oi(null)}return[Ai,Oi]}function _a(pt,xr){return pt&&pt[0]&&pt[1]&&xr.isAfter(pt[0],pt[1])?[pt[1],pt[0]]:pt}function Va(pt,xr,Jr,Vr){return pt||Vr&&Vr[xr]?!0:!!Jr[(xr+1)%2]}function Bi(pt){var xr,Jr,Vr,Vn=pt.prefixCls,sn=Vn===void 0?"rc-picker":Vn,zr=pt.id,qn=pt.style,en=pt.className,Un=pt.popupStyle,si=pt.dropdownClassName,ui=pt.transitionName,oi=pt.dropdownAlign,Ei=pt.getPopupContainer,pi=pt.generateConfig,Ai=pt.locale,Oi=pt.placeholder,na=pt.autoFocus,Hi=pt.disabled,fa=pt.format,Xa=pt.picker,xa=Xa===void 0?"date":Xa,wa=pt.showTime,Da=pt.use12Hours,ja=pt.separator,ko=ja===void 0?"~":ja,ro=pt.value,pa=pt.defaultValue,Ea=pt.defaultPickerValue,Fa=pt.open,Ka=pt.defaultOpen,lo=pt.disabledDate,so=pt.disabledTime,Co=pt.dateRender,Lo=pt.panelRender,is=pt.ranges,cs=pt.allowEmpty,Rs=pt.allowClear,Ko=pt.suffixIcon,as=pt.clearIcon,co=pt.pickerRef,Ao=pt.inputReadOnly,$a=pt.mode,ss=pt.renderExtraFooter,Cs=pt.onChange,Fo=pt.onOpenChange,il=pt.onPanelChange,Eo=pt.onCalendarChange,zo=pt.onFocus,Bs=pt.onBlur,ms=pt.onOk,hs=pt.components,gn=pt.order,Ns=pt.direction,Ll=pt.activePickerIndex,el=pt.autoComplete,Gs=el===void 0?"off":el,ds=xa==="date"&&!!wa||xa==="time",ks=Object(u.useRef)({}),Qs=Object(u.useRef)(null),tl=Object(u.useRef)(null),xs=Object(u.useRef)(null),Us=Object(u.useRef)(null),al=Object(u.useRef)(null),Js=Object(u.useRef)(null),Vo=Object(u.useRef)(null),No=Ke(st(fa,xa,wa,Da)),fs=Object(V.a)(0,{value:Ll}),Ds=Object(z.a)(fs,2),go=Ds[0],Ft=Ds[1],er=Object(u.useRef)(null),Cn=u.useMemo(function(){return Array.isArray(Hi)?Hi:[Hi||!1,Hi||!1]},[Hi]),di=Object(V.a)(null,{value:ro,defaultValue:pa,postState:function(Ae){return xa==="time"&&!gn?Ae:_a(Ae,pi)}}),It=Object(z.a)(di,2),ue=It[0],Se=It[1],_e=Ga({values:ue,picker:xa,defaultDates:Ea,generateConfig:pi}),Je=Object(z.a)(_e,2),Lt=Je[0],tr=Je[1],Gr=Object(V.a)(ue,{postState:function(Ae){var Te=Ae;if(Cn[0]&&Cn[1])return Te;for(var Ge=0;Ge<2;Ge+=1)Cn[Ge]&&!ct(Te,Ge)&&!ct(cs,Ge)&&(Te=Gt(Te,pi.getNow(),Ge));return Te}}),cn=Object(z.a)(Gr,2),_n=cn[0],li=cn[1],wi=Object(V.a)([xa,xa],{value:$a}),mi=Object(z.a)(wi,2),Gi=mi[0],sa=mi[1];Object(u.useEffect)(function(){sa([xa,xa])},[xa]);var Ua=function(Ae,Te){sa(Ae),il&&il(Te,Ae)},no=ga({picker:xa,selectedValue:_n,locale:Ai,disabled:Cn,disabledDate:lo,generateConfig:pi},ks.current[1],ks.current[0]),Wo=Object(z.a)(no,2),Zo=Wo[0],Bo=Wo[1],Es=Object(V.a)(!1,{value:Fa,defaultValue:Ka,postState:function(Ae){return Cn[go]?!1:Ae},onChange:function(Ae){Fo&&Fo(Ae),!Ae&&er.current&&er.current.onClose&&er.current.onClose()}}),As=Object(z.a)(Es,2),$o=As[0],Do=As[1],vo=$o&&go===0,Ms=$o&&go===1,rl=Object(u.useState)(0),gs=Object(z.a)(rl,2),Ra=gs[0],dl=gs[1];Object(u.useEffect)(function(){!$o&&Qs.current&&dl(Qs.current.offsetWidth)},[$o]);var fl=u.useRef();function js(re,Ae){if(re)clearTimeout(fl.current),ks.current[Ae]=!0,Ft(Ae),Do(re),$o||tr(null,Ae);else if(go===Ae){Do(re);var Te=ks.current;fl.current=setTimeout(function(){Te===ks.current&&(ks.current={})})}}function _s(re){js(!0,re),setTimeout(function(){var Ae=[Js,Vo][re];Ae.current&&Ae.current.focus()},0)}function Xs(re,Ae){var Te=re,Ge=ct(Te,0),lt=ct(Te,1);Ge&<&&pi.isAfter(Ge,lt)&&(xa==="week"&&!lr(pi,Ai.locale,Ge,lt)||xa==="quarter"&&!vr(pi,Ge,lt)||xa!=="week"&&xa!=="quarter"&&xa!=="time"&&!sr(pi,Ge,lt)?(Ae===0?(Te=[Ge,null],lt=null):(Ge=null,Te=[null,lt]),ks.current=Object(j.a)({},Ae,!0)):(xa!=="time"||gn!==!1)&&(Te=_a(Te,pi))),li(Te);var dt=Te&&Te[0]?pi.locale.format(Ai.locale,Te[0],No[0]):"",Kt=Te&&Te[1]?pi.locale.format(Ai.locale,Te[1],No[0]):"";if(Eo){var Er={range:Ae===0?"start":"end"};Eo(Te,[dt,Kt],Er)}var br=Va(Ge,0,Cn,cs),jr=Va(lt,1,Cn,cs),Kr=Te===null||br&&jr;Kr&&(Se(Te),Cs&&(!Wt(pi,ct(ue,0),Ge)||!Wt(pi,ct(ue,1),lt))&&Cs(Te,[dt,Kt]));var In=null;Ae===0&&!Cn[1]?In=1:Ae===1&&!Cn[0]&&(In=0),In!==null&&In!==go&&(!ks.current[In]||!ct(Te,In))&&ct(Te,Ae)?_s(In):js(!1,Ae)}var Ql=function(Ae){return $o&&er.current&&er.current.onKeyDown?er.current.onKeyDown(Ae):(Object(x.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ul={formatList:No,generateConfig:pi,locale:Ai},wl=Ca(ct(_n,0),Ul),Ts=Object(z.a)(wl,2),Ks=Ts[0],Tl=Ts[1],pl=Ca(ct(_n,1),Ul),jo=Object(z.a)(pl,2),yo=jo[0],qo=jo[1],ps=function(Ae,Te){var Ge=pi.locale.parse(Ai.locale,Ae,No),lt=Te===0?Zo:Bo;Ge&&!lt(Ge)&&(li(Gt(_n,Ge,Te)),tr(Ge,Te))},Os=ji({valueTexts:Ks,onTextChange:function(Ae){return ps(Ae,0)}}),es=Object(z.a)(Os,3),Is=es[0],Ps=es[1],ml=es[2],Rl=ji({valueTexts:yo,onTextChange:function(Ae){return ps(Ae,1)}}),_l=Object(z.a)(Rl,3),Bl=_l[0],jl=_l[1],kl=_l[2],Xl=Object(u.useState)(null),ol=Object(z.a)(Xl,2),Ys=ol[0],sl=ol[1],nl=Object(u.useState)(null),xl=Object(z.a)(nl,2),Ml=xl[0],Wl=xl[1],au=ra(Is,{formatList:No,generateConfig:pi,locale:Ai}),Nl=Object(z.a)(au,3),$l=Nl[0],tu=Nl[1],Iu=Nl[2],pu=ra(Bl,{formatList:No,generateConfig:pi,locale:Ai}),mu=Object(z.a)(pu,3),gu=mu[0],ql=mu[1],Cl=mu[2],ll=function(Ae){Wl(Gt(_n,Ae,go)),go===0?tu(Ae):ql(Ae)},Hl=function(){Wl(Gt(_n,null,go)),go===0?Iu():Cl()},Sl=function(Ae,Te){return{blurToCancel:ds,forwardKeyDown:Ql,onBlur:Bs,isClickOutside:function(lt){return!me([tl.current,xs.current,Us.current],lt)},onFocus:function(lt){Ft(Ae),zo&&zo(lt)},triggerOpen:function(lt){js(lt,Ae)},onSubmit:function(){Xs(_n,Ae),Te()},onCancel:function(){js(!1,Ae),li(ue),Te()}}},Su=Ki(Object(W.a)(Object(W.a)({},Sl(0,ml)),{},{open:vo,value:Is})),vu=Object(z.a)(Su,2),Au=vu[0],Ol=vu[1],cu=Ol.focused,du=Ol.typing,Lu=Ki(Object(W.a)(Object(W.a)({},Sl(1,kl)),{},{open:Ms,value:Bl})),zl=Object(z.a)(Lu,2),ru=zl[0],ou=zl[1],su=ou.focused,Jl=ou.typing,Du=function(Ae){!$o&&!Js.current.contains(Ae.target)&&!Vo.current.contains(Ae.target)&&(Cn[0]?Cn[1]||_s(1):_s(0))},Ru=function(Ae){$o&&(cu||su)&&!Js.current.contains(Ae.target)&&!Vo.current.contains(Ae.target)&&Ae.preventDefault()},Zl=ue&&ue[0]?pi.locale.format(Ai.locale,ue[0],"YYYYMMDDHHmmss"):"",yu=ue&&ue[1]?pi.locale.format(Ai.locale,ue[1],"YYYYMMDDHHmmss"):"";Object(u.useEffect)(function(){$o||(li(ue),!Ks.length||Ks[0]===""?Ps(""):Tl!==Is&&ml(),!yo.length||yo[0]===""?jl(""):qo!==Bl&&kl())},[$o,Ks,yo]),Object(u.useEffect)(function(){li(ue)},[Zl,yu]),co&&(co.current={focus:function(){Js.current&&Js.current.focus()},blur:function(){Js.current&&Js.current.blur(),Vo.current&&Vo.current.blur()}});var xu=Object.keys(is||{}),bu=xu.map(function(re){var Ae=is[re],Te=typeof Ae=="function"?Ae():Ae;return{label:re,onClick:function(){Xs(Te,null),js(!1,go)},onMouseEnter:function(){sl(Te)},onMouseLeave:function(){sl(null)}}});function hl(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Te=null;$o&&Ml&&Ml[0]&&Ml[1]&&pi.isAfter(Ml[1],Ml[0])&&(Te=Ml);var Ge=wa;if(wa&&Object(Q.a)(wa)==="object"&&wa.defaultValue){var lt=wa.defaultValue;Ge=Object(W.a)(Object(W.a)({},wa),{},{defaultValue:ct(lt,go)||void 0})}var dt=null;return Co&&(dt=function(Er,br){return Co(Er,br,{range:go?"end":"start"})}),u.createElement(ri.Provider,{value:{inRange:!0,panelPosition:re,rangedValue:Ys||_n,hoverRangedValue:Te}},u.createElement(Zr,Object.assign({},pt,Ae,{dateRender:dt,showTime:Ge,mode:Gi[go],generateConfig:pi,style:void 0,direction:Ns,disabledDate:go===0?Zo:Bo,disabledTime:function(Er){return so?so(Er,go===0?"start":"end"):!1},className:_()(Object(j.a)({},"".concat(sn,"-panel-focused"),go===0?!du:!Jl)),value:ct(_n,go),locale:Ai,tabIndex:-1,onPanelChange:function(Er,br){Ua(Gt(Gi,br,go),Gt(_n,Er,go));var jr=Er;re==="right"&&Gi[go]===br&&(jr=Dn(jr,br,pi,-1)),tr(jr,go)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Dl=0,nu=0;go&&xs.current&&al.current&&tl.current&&(Dl=xs.current.offsetWidth+al.current.offsetWidth,tl.current.offsetWidth&&Dl>tl.current.offsetWidth&&(nu=Dl));var Nu=Ns==="rtl"?{right:Dl}:{left:Dl};function hu(){var re,Ae=Rr(sn,Gi[go],ss),Te=Rn({prefixCls:sn,components:hs,needConfirmButton:ds,okDisabled:!ct(_n,go)||lo&&lo(_n[go]),locale:Ai,rangeList:bu,onOk:function(){ct(_n,go)&&(Xs(_n,go),ms&&ms(_n))}});if(xa!=="time"&&!wa){var Ge=Lt(go),lt=Dn(Ge,xa,pi),dt=Gi[go],Kt=dt===xa,Er=hl(Kt?"left":!1,{pickerValue:Ge,onPickerValueChange:function(In){tr(In,go)}}),br=hl("right",{pickerValue:lt,onPickerValueChange:function(In){tr(Dn(In,xa,pi,-1),go)}});Ns==="rtl"?re=u.createElement(u.Fragment,null,br,Kt&&Er):re=u.createElement(u.Fragment,null,Er,Kt&&br)}else re=hl();var jr=u.createElement(u.Fragment,null,u.createElement("div",{className:"".concat(sn,"-panels")},re),(Ae||Te)&&u.createElement("div",{className:"".concat(sn,"-footer")},Ae,Te));return Lo&&(jr=Lo(jr)),u.createElement("div",{className:"".concat(sn,"-panel-container"),style:{marginLeft:nu},ref:tl,onMouseDown:function(In){In.preventDefault()}},jr)}var fu=u.createElement("div",{className:_()("".concat(sn,"-range-wrapper"),"".concat(sn,"-").concat(xa,"-range-wrapper")),style:{minWidth:Ra}},u.createElement("div",{className:"".concat(sn,"-range-arrow"),style:Nu}),hu()),iu;Ko&&(iu=u.createElement("span",{className:"".concat(sn,"-suffix")},Ko));var ve;Rs&&(ct(ue,0)&&!Cn[0]||ct(ue,1)&&!Cn[1])&&(ve=u.createElement("span",{onMouseDown:function(Ae){Ae.preventDefault(),Ae.stopPropagation()},onMouseUp:function(Ae){Ae.preventDefault(),Ae.stopPropagation();var Te=ue;Cn[0]||(Te=Gt(Te,null,0)),Cn[1]||(Te=Gt(Te,null,1)),Xs(Te,null),js(!1,go)},className:"".concat(sn,"-clear")},as||u.createElement("span",{className:"".concat(sn,"-clear-btn")})));var q={size:he(xa,No[0])},L=0,K=0;xs.current&&Us.current&&al.current&&(go===0?K=xs.current.offsetWidth:(L=Dl,K=Us.current.offsetWidth));var H=Ns==="rtl"?{right:L}:{left:L},Z=function(Ae,Te){var Ge=Gt(_n,Ae,go);Te==="submit"||Te!=="key"&&!ds?(Xs(Ge,go),go===0?Iu():Cl()):li(Ge)};return u.createElement(ce.Provider,{value:{operationRef:er,hideHeader:xa==="time",onDateMouseEnter:ll,onDateMouseLeave:Hl,hideRanges:!0,onSelect:Z,open:$o}},u.createElement(zi,{visible:$o,popupElement:fu,popupStyle:Un,prefixCls:sn,dropdownClassName:si,dropdownAlign:oi,getPopupContainer:Ei,transitionName:ui,range:!0,direction:Ns},u.createElement("div",Object.assign({ref:Qs,className:_()(sn,"".concat(sn,"-range"),en,(xr={},Object(j.a)(xr,"".concat(sn,"-disabled"),Cn[0]&&Cn[1]),Object(j.a)(xr,"".concat(sn,"-focused"),go===0?cu:su),Object(j.a)(xr,"".concat(sn,"-rtl"),Ns==="rtl"),xr)),style:qn,onClick:Du,onMouseDown:Ru},Jt(pt)),u.createElement("div",{className:_()("".concat(sn,"-input"),(Jr={},Object(j.a)(Jr,"".concat(sn,"-input-active"),go===0),Object(j.a)(Jr,"".concat(sn,"-input-placeholder"),!!$l),Jr)),ref:xs},u.createElement("input",Object.assign({id:zr,disabled:Cn[0],readOnly:Ao||!du,value:$l||Is,onChange:function(Ae){Ps(Ae.target.value)},autoFocus:na,placeholder:ct(Oi,0)||"",ref:Js},Au,q,{autoComplete:Gs}))),u.createElement("div",{className:"".concat(sn,"-range-separator"),ref:al},ko),u.createElement("div",{className:_()("".concat(sn,"-input"),(Vr={},Object(j.a)(Vr,"".concat(sn,"-input-active"),go===1),Object(j.a)(Vr,"".concat(sn,"-input-placeholder"),!!gu),Vr)),ref:Us},u.createElement("input",Object.assign({disabled:Cn[1],readOnly:Ao||!Jl,value:gu||Bl,onChange:function(Ae){jl(Ae.target.value)},placeholder:ct(Oi,1)||"",ref:Vo},ru,q,{autoComplete:Gs}))),u.createElement("div",{className:"".concat(sn,"-active-bar"),style:Object(W.a)(Object(W.a)({},H),{},{width:K,position:"absolute"})}),iu,ve)))}var io=function(pt){Object(X.a)(Jr,pt);var xr=Object(B.a)(Jr);function Jr(){var Vr;return Object(F.a)(this,Jr),Vr=xr.apply(this,arguments),Vr.pickerRef=u.createRef(),Vr.focus=function(){Vr.pickerRef.current&&Vr.pickerRef.current.focus()},Vr.blur=function(){Vr.pickerRef.current&&Vr.pickerRef.current.blur()},Vr}return Object(P.a)(Jr,[{key:"render",value:function(){return u.createElement(Bi,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Jr}(u.Component),oo=io,Qo=va,mo=n("61s2");function To(pt,xr,Jr){return Jr!==void 0?Jr:pt==="year"&&xr.lang.yearPlaceholder?xr.lang.yearPlaceholder:pt==="quarter"&&xr.lang.quarterPlaceholder?xr.lang.quarterPlaceholder:pt==="month"&&xr.lang.monthPlaceholder?xr.lang.monthPlaceholder:pt==="week"&&xr.lang.weekPlaceholder?xr.lang.weekPlaceholder:pt==="time"&&xr.timePickerLocale.placeholder?xr.timePickerLocale.placeholder:xr.lang.placeholder}function ao(pt,xr,Jr){return Jr!==void 0?Jr:pt==="year"&&xr.lang.yearPlaceholder?xr.lang.rangeYearPlaceholder:pt==="month"&&xr.lang.monthPlaceholder?xr.lang.rangeMonthPlaceholder:pt==="week"&&xr.lang.weekPlaceholder?xr.lang.rangeWeekPlaceholder:pt==="time"&&xr.timePickerLocale.placeholder?xr.timePickerLocale.rangePlaceholder:xr.lang.rangePlaceholder}var So=n("uaoM"),bo=n("H84U"),to=n("YMnH"),Jo=n("3Nzz"),Uo=function(pt,xr){var Jr={};for(var Vr in pt)Object.prototype.hasOwnProperty.call(pt,Vr)&&xr.indexOf(Vr)<0&&(Jr[Vr]=pt[Vr]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vn=0,Vr=Object.getOwnPropertySymbols(pt);Vn<Vr.length;Vn++)xr.indexOf(Vr[Vn])<0&&Object.prototype.propertyIsEnumerable.call(pt,Vr[Vn])&&(Jr[Vr[Vn]]=pt[Vr[Vn]]);return Jr};function wo(pt){function xr(en,Un){var si=function(ui){b()(Ei,ui);var oi=E()(Ei);function Ei(pi){var Ai;return c()(this,Ei),Ai=oi.call(this,pi),Ai.pickerRef=u.createRef(),Ai.focus=function(){Ai.pickerRef.current&&Ai.pickerRef.current.focus()},Ai.blur=function(){Ai.pickerRef.current&&Ai.pickerRef.current.blur()},Ai.getDefaultLocale=function(){var Oi=Ai.props.locale,na=h()(h()({},mo.a),Oi);return na.lang=h()(h()({},na.lang),(Oi||{}).lang),na},Ai.renderPicker=function(Oi){var na=Ai.context,Hi=na.getPrefixCls,fa=na.direction,Xa=na.getPopupContainer,xa=Ai.props,wa=xa.prefixCls,Da=xa.getPopupContainer,ja=xa.className,ko=xa.size,ro=xa.bordered,pa=ro===void 0?!0:ro,Ea=xa.placeholder,Fa=Uo(xa,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),Ka=Ai.props,lo=Ka.format,so=Ka.showTime,Co=Hi("picker",wa),Lo={showToday:!0},is={};en&&(is.picker=en);var cs=en||Ai.props.picker;return is=h()(h()(h()({},is),so?rs(h()({format:lo,picker:cs},so)):{}),cs==="time"?rs(h()(h()({format:lo},Ai.props),{picker:cs})):{}),u.createElement(Jo.b.Consumer,null,function(Rs){var Ko,as=ko||Rs;return u.createElement(Qo,h()({ref:Ai.pickerRef,placeholder:To(cs,Oi,Ea),suffixIcon:cs==="time"?u.createElement(I.a,null):u.createElement(w.a,null),clearIcon:u.createElement(M.a,null),allowClear:!0,transitionName:"slide-up"},Lo,Fa,is,{locale:Oi.lang,className:_()(ja,(Ko={},r()(Ko,"".concat(Co,"-").concat(as),as),r()(Ko,"".concat(Co,"-borderless"),!pa),Ko)),prefixCls:Co,getPopupContainer:Da||Xa,generateConfig:pt,prevIcon:u.createElement("span",{className:"".concat(Co,"-prev-icon")}),nextIcon:u.createElement("span",{className:"".concat(Co,"-next-icon")}),superPrevIcon:u.createElement("span",{className:"".concat(Co,"-super-prev-icon")}),superNextIcon:u.createElement("span",{className:"".concat(Co,"-super-next-icon")}),components:os,direction:fa}))})},Object(So.a)(en!=="quarter",Un,"DatePicker.".concat(Un," is legacy usage. Please use DatePicker[picker='").concat(en,"'] directly.")),Ai}return g()(Ei,[{key:"render",value:function(){return u.createElement(to.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),Ei}(u.Component);return si.contextType=bo.b,Un&&(si.displayName=Un),si}var Jr=xr(),Vr=xr("week","WeekPicker"),Vn=xr("month","MonthPicker"),sn=xr("year","YearPicker"),zr=xr("time","TimePicker"),qn=xr("quarter","QuarterPicker");return{DatePicker:Jr,WeekPicker:Vr,MonthPicker:Vn,YearPicker:sn,TimePicker:zr,QuarterPicker:qn}}var ts=n("W1kz"),Ia=n.n(ts),Oo=function(pt,xr){var Jr={};for(var Vr in pt)Object.prototype.hasOwnProperty.call(pt,Vr)&&xr.indexOf(Vr)<0&&(Jr[Vr]=pt[Vr]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vn=0,Vr=Object.getOwnPropertySymbols(pt);Vn<Vr.length;Vn++)xr.indexOf(Vr[Vn])<0&&Object.prototype.propertyIsEnumerable.call(pt,Vr[Vn])&&(Jr[Vr[Vn]]=pt[Vr[Vn]]);return Jr};function Io(pt){var xr=function(Jr){b()(Vn,Jr);var Vr=E()(Vn);function Vn(){var sn;return c()(this,Vn),sn=Vr.apply(this,arguments),sn.pickerRef=u.createRef(),sn.focus=function(){sn.pickerRef.current&&sn.pickerRef.current.focus()},sn.blur=function(){sn.pickerRef.current&&sn.pickerRef.current.blur()},sn.getDefaultLocale=function(){var zr=sn.props.locale,qn=h()(h()({},mo.a),zr);return qn.lang=h()(h()({},qn.lang),(zr||{}).lang),qn},sn.renderPicker=function(zr){var qn=sn.context,en=qn.getPrefixCls,Un=qn.direction,si=qn.getPopupContainer,ui=sn.props,oi=ui.prefixCls,Ei=ui.getPopupContainer,pi=ui.className,Ai=ui.size,Oi=ui.bordered,na=Oi===void 0?!0:Oi,Hi=ui.placeholder,fa=Oo(ui,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),Xa=sn.props,xa=Xa.format,wa=Xa.showTime,Da=Xa.picker,ja=en("picker",oi),ko={};return ko=h()(h()(h()({},ko),wa?rs(h()({format:xa,picker:Da},wa)):{}),Da==="time"?rs(h()(h()({format:xa},sn.props),{picker:Da})):{}),u.createElement(Jo.b.Consumer,null,function(ro){var pa,Ea=Ai||ro;return u.createElement(oo,h()({separator:u.createElement("span",{"aria-label":"to",className:"".concat(ja,"-separator")},u.createElement(Ia.a,null)),ref:sn.pickerRef,placeholder:ao(Da,zr,Hi),suffixIcon:Da==="time"?u.createElement(I.a,null):u.createElement(w.a,null),clearIcon:u.createElement(M.a,null),allowClear:!0,transitionName:"slide-up"},fa,ko,{className:_()(pi,(pa={},r()(pa,"".concat(ja,"-").concat(Ea),Ea),r()(pa,"".concat(ja,"-borderless"),!na),pa)),locale:zr.lang,prefixCls:ja,getPopupContainer:Ei||si,generateConfig:pt,prevIcon:u.createElement("span",{className:"".concat(ja,"-prev-icon")}),nextIcon:u.createElement("span",{className:"".concat(ja,"-next-icon")}),superPrevIcon:u.createElement("span",{className:"".concat(ja,"-super-prev-icon")}),superNextIcon:u.createElement("span",{className:"".concat(ja,"-super-next-icon")}),components:os,direction:Un}))})},sn}return g()(Vn,[{key:"render",value:function(){return u.createElement(to.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),Vn}(u.Component);return xr.contextType=bo.b,xr}var os={button:t,rangeItem:e};function xo(pt){return pt?Array.isArray(pt)?pt:[pt]:[]}function rs(pt){var xr=pt.format,Jr=pt.picker,Vr=pt.showHour,Vn=pt.showMinute,sn=pt.showSecond,zr=pt.use12Hours,qn=xo(xr)[0],en=h()({},pt);return qn&&(!qn.includes("s")&&sn===void 0&&(en.showSecond=!1),!qn.includes("m")&&Vn===void 0&&(en.showMinute=!1),!qn.includes("H")&&!qn.includes("h")&&Vr===void 0&&(en.showHour=!1),(qn.includes("a")||qn.includes("A"))&&zr===void 0&&(en.use12Hours=!0)),Jr==="time"?en:{showTime:en}}function Ho(pt){var xr=wo(pt),Jr=xr.DatePicker,Vr=xr.WeekPicker,Vn=xr.MonthPicker,sn=xr.YearPicker,zr=xr.TimePicker,qn=xr.QuarterPicker,en=Io(pt),Un=Jr;return Un.WeekPicker=Vr,Un.MonthPicker=Vn,Un.YearPicker=sn,Un.RangePicker=en,Un.TimePicker=zr,Un.QuarterPicker=qn,Un}var _o=Ho,uo=_o(m),Ha=D.a=uo},"+lIL":function(k,D,n){var y=n("ProS");n("/ry/"),n("3OrL");var p=n("L5E0"),x=n("7Phj");y.registerVisual(p),y.registerLayout(x)},"+nKL":function(k,D,n){"use strict";var y=n("wx14"),p=n("rePB"),x=n("VTBJ"),A=n("ODXe"),m=n("Ff2n"),f=n("q1tI"),h=n("TSYQ"),u=n.n(h),a=n("t23M"),i=f.forwardRef(function(le,Ie){var ke=le.height,Re=le.offset,Qe=le.children,We=le.prefixCls,ot=le.onInnerResize,Oe=le.innerProps,oe={},st={display:"flex",flexDirection:"column"};return Re!==void 0&&(oe={height:ke,position:"relative",overflow:"hidden"},st=Object(x.a)(Object(x.a)({},st),{},{transform:"translateY(".concat(Re,"px)"),position:"absolute",left:0,right:0,top:0})),f.createElement("div",{style:oe},f.createElement(a.a,{onResize:function(J){var Y=J.offsetHeight;Y&&ot&&ot()}},f.createElement("div",Object(y.a)({style:st,className:u()(Object(p.a)({},"".concat(We,"-holder-inner"),We)),ref:Ie},Oe),Qe)))});i.displayName="Filler";var t=i,o=n("1OyB"),e=n("vuIU"),l=n("Ji7U"),r=n("LK+K"),s=n("wgJM"),c=20;function d(le){return"touches"in le?le.touches[0].pageY:le.pageY}var g=function(le){Object(l.a)(ke,le);var Ie=Object(r.a)(ke);function ke(){var Re;Object(o.a)(this,ke);for(var Qe=arguments.length,We=new Array(Qe),ot=0;ot<Qe;ot++)We[ot]=arguments[ot];return Re=Ie.call.apply(Ie,[this].concat(We)),Re.moveRaf=null,Re.scrollbarRef=f.createRef(),Re.thumbRef=f.createRef(),Re.visibleTimeout=null,Re.state={dragging:!1,pageY:null,startTop:null,visible:!1},Re.delayHidden=function(){clearTimeout(Re.visibleTimeout),Re.setState({visible:!0}),Re.visibleTimeout=setTimeout(function(){Re.setState({visible:!1})},2e3)},Re.onScrollbarTouchStart=function(Oe){Oe.preventDefault()},Re.onContainerMouseDown=function(Oe){Oe.stopPropagation(),Oe.preventDefault()},Re.patchEvents=function(){window.addEventListener("mousemove",Re.onMouseMove),window.addEventListener("mouseup",Re.onMouseUp),Re.thumbRef.current.addEventListener("touchmove",Re.onMouseMove),Re.thumbRef.current.addEventListener("touchend",Re.onMouseUp)},Re.removeEvents=function(){var Oe;window.removeEventListener("mousemove",Re.onMouseMove),window.removeEventListener("mouseup",Re.onMouseUp),(Oe=Re.scrollbarRef.current)===null||Oe===void 0||Oe.removeEventListener("touchstart",Re.onScrollbarTouchStart),Re.thumbRef.current&&(Re.thumbRef.current.removeEventListener("touchstart",Re.onMouseDown),Re.thumbRef.current.removeEventListener("touchmove",Re.onMouseMove),Re.thumbRef.current.removeEventListener("touchend",Re.onMouseUp)),s.a.cancel(Re.moveRaf)},Re.onMouseDown=function(Oe){var oe=Re.props.onStartMove;Re.setState({dragging:!0,pageY:d(Oe),startTop:Re.getTop()}),oe(),Re.patchEvents(),Oe.stopPropagation(),Oe.preventDefault()},Re.onMouseMove=function(Oe){var oe=Re.state,st=oe.dragging,he=oe.pageY,J=oe.startTop,Y=Re.props.onScroll;if(s.a.cancel(Re.moveRaf),st){var $=d(Oe)-he,fe=J+$,we=Re.getEnableScrollRange(),Ne=Re.getEnableHeightRange(),Ee=Ne?fe/Ne:0,de=Math.ceil(Ee*we);Re.moveRaf=Object(s.a)(function(){Y(de)})}},Re.onMouseUp=function(){var Oe=Re.props.onStopMove;Re.setState({dragging:!1}),Oe(),Re.removeEvents()},Re.getSpinHeight=function(){var Oe=Re.props,oe=Oe.height,st=Oe.count,he=oe/st*10;return he=Math.max(he,c),he=Math.min(he,oe/2),Math.floor(he)},Re.getEnableScrollRange=function(){var Oe=Re.props,oe=Oe.scrollHeight,st=Oe.height;return oe-st||0},Re.getEnableHeightRange=function(){var Oe=Re.props.height,oe=Re.getSpinHeight();return Oe-oe||0},Re.getTop=function(){var Oe=Re.props.scrollTop,oe=Re.getEnableScrollRange(),st=Re.getEnableHeightRange();if(Oe===0||oe===0)return 0;var he=Oe/oe;return he*st},Re.showScroll=function(){var Oe=Re.props,oe=Oe.height,st=Oe.scrollHeight;return st>oe},Re}return Object(e.a)(ke,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(Qe){Qe.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var Qe=this.state,We=Qe.dragging,ot=Qe.visible,Oe=this.props,oe=Oe.prefixCls,st=Oe.direction,he=this.getSpinHeight(),J=this.getTop(),Y=this.showScroll(),$=Y&&ot,fe=st==="rtl"?{left:0}:{right:0};return f.createElement("div",{ref:this.scrollbarRef,className:u()("".concat(oe,"-scrollbar"),Object(p.a)({},"".concat(oe,"-scrollbar-show"),Y)),style:Object(x.a)(Object(x.a)({width:8,top:0,bottom:0},fe),{},{position:"absolute",display:$?null:"none"}),onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},f.createElement("div",{ref:this.thumbRef,className:u()("".concat(oe,"-scrollbar-thumb"),Object(p.a)({},"".concat(oe,"-scrollbar-thumb-moving"),We)),style:{width:"100%",height:he,top:J,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),ke}(f.Component);function v(le){var Ie=le.children,ke=le.setRef,Re=f.useCallback(function(Qe){ke(Qe)},[]);return f.cloneElement(Ie,{ref:Re})}function b(le,Ie,ke,Re,Qe,We){var ot=We.getKey;return le.slice(Ie,ke+1).map(function(Oe,oe){var st=Ie+oe,he=Qe(Oe,st,{}),J=ot(Oe);return f.createElement(v,{key:J,setRef:function($){return Re(Oe,$)}},he)})}var S=n("m+aA"),E=function(){function le(){Object(o.a)(this,le),this.maps=void 0,this.maps=Object.create(null)}return Object(e.a)(le,[{key:"set",value:function(ke,Re){this.maps[ke]=Re}},{key:"get",value:function(ke){return this.maps[ke]}}]),le}(),C=E;function _(le,Ie,ke){var Re=f.useState(0),Qe=Object(A.a)(Re,2),We=Qe[0],ot=Qe[1],Oe=Object(f.useRef)(new Map),oe=Object(f.useRef)(new C),st=Object(f.useRef)();function he(){s.a.cancel(st.current)}function J(){he(),st.current=Object(s.a)(function(){Oe.current.forEach(function($,fe){if($&&$.offsetParent){var we=Object(S.a)($),Ne=we.offsetHeight;oe.current.get(fe)!==Ne&&oe.current.set(fe,we.offsetHeight)}}),ot(function($){return $+1})})}function Y($,fe){var we=le($),Ne=Oe.current.get(we);fe?(Oe.current.set(we,fe),J()):Oe.current.delete(we),!Ne!==!fe&&(fe?Ie==null||Ie($):ke==null||ke($))}return Object(f.useEffect)(function(){return he},[]),[Y,J,oe.current,We]}var T=n("U8pU");function w(le,Ie,ke,Re,Qe,We,ot,Oe){var oe=f.useRef();return function(st){if(st==null){Oe();return}if(s.a.cancel(oe.current),typeof st=="number")ot(st);else if(st&&Object(T.a)(st)==="object"){var he,J=st.align;"index"in st?he=st.index:he=Ie.findIndex(function(we){return Qe(we)===st.key});var Y=st.offset,$=Y===void 0?0:Y,fe=function we(Ne,Ee){if(Ne<0||!le.current)return;var de=le.current.clientHeight,me=!1,Le=Ee;if(de){for(var tt=Ee||J,At=0,ht=0,Ke=0,Jt=Math.min(Ie.length,he),ct=0;ct<=Jt;ct+=1){var Gt=Qe(Ie[ct]);ht=At;var dr=ke.get(Gt);Ke=ht+(dr===void 0?Re:dr),At=Ke,ct===he&&dr===void 0&&(me=!0)}var zt=null;switch(tt){case"top":zt=ht-$;break;case"bottom":zt=Ke-de+$;break;default:{var kt=le.current.scrollTop,Vt=kt+de;ht<kt?Le="top":Ke>Vt&&(Le="bottom")}}zt!==null&&zt!==le.current.scrollTop&&ot(zt)}oe.current=Object(s.a)(function(){me&&We(),we(Ne-1,Le)},2)};fe(3)}}}function O(le,Ie,ke,Re){var Qe=ke-le,We=Ie-ke,ot=Math.min(Qe,We)*2;if(Re<=ot){var Oe=Math.floor(Re/2);return Re%2?ke+Oe+1:ke-Oe}return Qe>We?ke-(Re-We):ke+(Re-Qe)}function I(le,Ie,ke){var Re=le.length,Qe=Ie.length,We,ot;if(Re===0&&Qe===0)return null;Re<Qe?(We=le,ot=Ie):(We=Ie,ot=le);var Oe={__EMPTY_ITEM__:!0};function oe(fe){return fe!==void 0?ke(fe):Oe}for(var st=null,he=Math.abs(Re-Qe)!==1,J=0;J<ot.length;J+=1){var Y=oe(We[J]),$=oe(ot[J]);if(Y!==$){st=J,he=he||Y!==oe(ot[J+1]);break}}return st===null?null:{index:st,multiple:he}}function R(le,Ie,ke){var Re=f.useState(le),Qe=Object(A.a)(Re,2),We=Qe[0],ot=Qe[1],Oe=f.useState(null),oe=Object(A.a)(Oe,2),st=oe[0],he=oe[1];return f.useEffect(function(){var J=I(We||[],le||[],Ie);(J==null?void 0:J.index)!==void 0&&(ke==null||ke(J.index),he(le[J.index])),ot(le)},[le]),[st]}var M=(typeof navigator=="undefined"?"undefined":Object(T.a)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),F=M,P=function(le,Ie){var ke=Object(f.useRef)(!1),Re=Object(f.useRef)(null);function Qe(){clearTimeout(Re.current),ke.current=!0,Re.current=setTimeout(function(){ke.current=!1},50)}var We=Object(f.useRef)({top:le,bottom:Ie});return We.current.top=le,We.current.bottom=Ie,function(ot){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,oe=ot<0&&We.current.top||ot>0&&We.current.bottom;return Oe&&oe?(clearTimeout(Re.current),ke.current=!1):(!oe||ke.current)&&Qe(),!ke.current&&oe}};function X(le,Ie,ke,Re){var Qe=Object(f.useRef)(0),We=Object(f.useRef)(null),ot=Object(f.useRef)(null),Oe=Object(f.useRef)(!1),oe=P(Ie,ke);function st(J){if(!le)return;s.a.cancel(We.current);var Y=J.deltaY;if(Qe.current+=Y,ot.current=Y,oe(Y))return;F||J.preventDefault(),We.current=Object(s.a)(function(){var $=Oe.current?10:1;Re(Qe.current*$),Qe.current=0})}function he(J){if(!le)return;Oe.current=J.detail===ot.current}return[st,he]}var B=n("TNol"),j=14/15;function W(le,Ie,ke){var Re=Object(f.useRef)(!1),Qe=Object(f.useRef)(0),We=Object(f.useRef)(null),ot=Object(f.useRef)(null),Oe,oe=function(Y){if(Re.current){var $=Math.ceil(Y.touches[0].pageY),fe=Qe.current-$;Qe.current=$,ke(fe)&&Y.preventDefault(),clearInterval(ot.current),ot.current=setInterval(function(){fe*=j,(!ke(fe,!0)||Math.abs(fe)<=.1)&&clearInterval(ot.current)},16)}},st=function(){Re.current=!1,Oe()},he=function(Y){Oe(),Y.touches.length===1&&!Re.current&&(Re.current=!0,Qe.current=Math.ceil(Y.touches[0].pageY),We.current=Y.target,We.current.addEventListener("touchmove",oe),We.current.addEventListener("touchend",st))};Oe=function(){We.current&&(We.current.removeEventListener("touchmove",oe),We.current.removeEventListener("touchend",st))},Object(B.a)(function(){return le&&Ie.current.addEventListener("touchstart",he),function(){var J;(J=Ie.current)===null||J===void 0||J.removeEventListener("touchstart",he),Oe(),clearInterval(ot.current)}},[le])}var z=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],V=[],Q={overflowY:"auto",overflowAnchor:"none"};function G(le,Ie){var ke=le.prefixCls,Re=ke===void 0?"rc-virtual-list":ke,Qe=le.className,We=le.height,ot=le.itemHeight,Oe=le.fullHeight,oe=Oe===void 0?!0:Oe,st=le.style,he=le.data,J=le.children,Y=le.itemKey,$=le.virtual,fe=le.direction,we=le.component,Ne=we===void 0?"div":we,Ee=le.onScroll,de=le.onVisibleChange,me=le.innerProps,Le=Object(m.a)(le,z),tt=!!($!==!1&&We&&ot),At=tt&&he&&ot*he.length>We,ht=Object(f.useState)(0),Ke=Object(A.a)(ht,2),Jt=Ke[0],ct=Ke[1],Gt=Object(f.useState)(!1),dr=Object(A.a)(Gt,2),zt=dr[0],kt=dr[1],Vt=u()(Re,Qe),Xe=he||V,pe=Object(f.useRef)(),te=Object(f.useRef)(),$e=Object(f.useRef)(),He=f.useCallback(function(bt){return typeof Y=="function"?Y(bt):bt==null?void 0:bt[Y]},[Y]),ae={getKey:He};function ft(bt){ct(function(gr){var Yt;typeof bt=="function"?Yt=bt(gr):Yt=bt;var Pt=_t(Yt);return pe.current.scrollTop=Pt,Pt})}var Mt=Object(f.useRef)({start:0,end:Xe.length}),mt=Object(f.useRef)(),or=R(Xe,He),vr=Object(A.a)(or,1),fn=vr[0];mt.current=fn;var sr=_(He,null,null),Ir=Object(A.a)(sr,4),lr=Ir[0],Wt=Ir[1],xt=Ir[2],rn=Ir[3],Dn=f.useMemo(function(){if(!tt)return{scrollHeight:void 0,start:0,end:Xe.length-1,offset:void 0};if(!At){var bt;return{scrollHeight:((bt=te.current)===null||bt===void 0?void 0:bt.offsetHeight)||0,start:0,end:Xe.length-1,offset:void 0}}for(var gr=0,Yt,Pt,rr,Rt=Xe.length,qt=0;qt<Rt;qt+=1){var Yr=Xe[qt],Mr=He(Yr),Dr=xt.get(Mr),un=gr+(Dr===void 0?ot:Dr);un>=Jt&&Yt===void 0&&(Yt=qt,Pt=gr),un>Jt+We&&rr===void 0&&(rr=qt),gr=un}return Yt===void 0&&(Yt=0,Pt=0,rr=Math.ceil(We/ot)),rr===void 0&&(rr=Xe.length-1),rr=Math.min(rr+1,Xe.length),{scrollHeight:gr,start:Yt,end:rr,offset:Pt}},[At,tt,Jt,Xe,rn,We]),Xn=Dn.scrollHeight,ri=Dn.start,Ui=Dn.end,Bn=Dn.offset;Mt.current.start=ri,Mt.current.end=Ui;var Jn=Xn-We,Xt=Object(f.useRef)(Jn);Xt.current=Jn;function _t(bt){var gr=bt;return Number.isNaN(Xt.current)||(gr=Math.min(gr,Xt.current)),gr=Math.max(gr,0),gr}var Fe=Jt<=0,Pe=Jt>=Jn,Be=P(Fe,Pe);function nt(bt){var gr=bt;ft(gr)}function vt(bt){var gr=bt.currentTarget.scrollTop;gr!==Jt&&ft(gr),Ee==null||Ee(bt)}var ar=X(tt,Fe,Pe,function(bt){ft(function(gr){var Yt=gr+bt;return Yt})}),kr=Object(A.a)(ar,2),mn=kr[0],Zn=kr[1];W(tt,pe,function(bt,gr){return Be(bt,gr)?!1:(mn({preventDefault:function(){},deltaY:bt}),!0)}),Object(B.a)(function(){function bt(gr){tt&&gr.preventDefault()}return pe.current.addEventListener("wheel",mn),pe.current.addEventListener("DOMMouseScroll",Zn),pe.current.addEventListener("MozMousePixelScroll",bt),function(){pe.current&&(pe.current.removeEventListener("wheel",mn),pe.current.removeEventListener("DOMMouseScroll",Zn),pe.current.removeEventListener("MozMousePixelScroll",bt))}},[tt]);var ni=w(pe,Xe,xt,ot,He,Wt,ft,function(){var bt;(bt=$e.current)===null||bt===void 0||bt.delayHidden()});f.useImperativeHandle(Ie,function(){return{scrollTo:ni}}),Object(B.a)(function(){if(de){var bt=Xe.slice(ri,Ui+1);de(bt,Xe)}},[ri,Ui,Xe]);var ur=b(Xe,ri,Ui,lr,J,ae),Nt=null;return We&&(Nt=Object(x.a)(Object(p.a)({},oe?"height":"maxHeight",We),Q),tt&&(Nt.overflowY="hidden",zt&&(Nt.pointerEvents="none"))),f.createElement("div",Object(y.a)({style:Object(x.a)(Object(x.a)({},st),{},{position:"relative"}),className:Vt},Le),f.createElement(Ne,{className:"".concat(Re,"-holder"),style:Nt,ref:pe,onScroll:vt},f.createElement(t,{prefixCls:Re,height:Xn,offset:Bn,onInnerResize:Wt,ref:te,innerProps:me},ur)),tt&&f.createElement(g,{ref:$e,prefixCls:Re,scrollTop:Jt,height:We,scrollHeight:Xn,count:Xe.length,direction:fe,onScroll:nt,onStartMove:function(){kt(!0)},onStopMove:function(){kt(!1)}}))}var ee=f.forwardRef(G);ee.displayName="List";var ce=ee,be=D.a=ce},"+rIm":function(k,D,n){var y=n("bYtY"),p=y.retrieve,x=y.defaults,A=y.extend,m=y.each,f=n("7aKB"),h=n("IwbS"),u=n("Qxkt"),a=n("OELB"),i=a.isRadianAroundZero,t=a.remRadian,o=n("oVpE"),e=o.createSymbol,l=n("Fofx"),r=n("QBsz"),s=r.applyTransform,c=n("aX7z"),d=c.shouldShowAllLabels,g=Math.PI,v=function(B,j){this.opt=j,this.axisModel=B,x(j,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new h.Group;var W=new h.Group({position:j.position.slice(),rotation:j.rotation});W.updateTransform(),this._transform=W.transform,this._dumbGroup=W};v.prototype={constructor:v,hasBuilder:function(B){return!!b[B]},add:function(B){b[B].call(this)},getGroup:function(){return this.group}};var b={axisLine:function(){var B=this.opt,j=this.axisModel;if(!j.get("axisLine.show"))return;var W=this.axisModel.axis.getExtent(),z=this._transform,V=[W[0],0],Q=[W[1],0];z&&(s(V,V,z),s(Q,Q,z));var G=A({lineCap:"round"},j.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new h.Line({anid:"line",subPixelOptimize:!0,shape:{x1:V[0],y1:V[1],x2:Q[0],y2:Q[1]},style:G,strokeContainThreshold:B.strokeContainThreshold||5,silent:!0,z2:1}));var ee=j.get("axisLine.symbol"),ce=j.get("axisLine.symbolSize"),be=j.get("axisLine.symbolOffset")||0;if(typeof be=="number"&&(be=[be,be]),ee!=null){typeof ee=="string"&&(ee=[ee,ee]),(typeof ce=="string"||typeof ce=="number")&&(ce=[ce,ce]);var le=ce[0],Ie=ce[1];m([{rotate:B.rotation+Math.PI/2,offset:be[0],r:0},{rotate:B.rotation-Math.PI/2,offset:be[1],r:Math.sqrt((V[0]-Q[0])*(V[0]-Q[0])+(V[1]-Q[1])*(V[1]-Q[1]))}],function(ke,Re){if(ee[Re]!=="none"&&ee[Re]!=null){var Qe=e(ee[Re],-le/2,-Ie/2,le,Ie,G.stroke,!0),We=ke.r+ke.offset,ot=[V[0]+We*Math.cos(B.rotation),V[1]-We*Math.sin(B.rotation)];Qe.attr({rotation:ke.rotate,position:ot,silent:!0,z2:11}),this.group.add(Qe)}},this)}},axisTickLabel:function(){var B=this.axisModel,j=this.opt,W=M(this,B,j),z=P(this,B,j);T(B,z,W),F(this,B,j)},axisName:function(){var B=this.opt,j=this.axisModel,W=p(B.axisName,j.get("name"));if(!W)return;var z=j.get("nameLocation"),V=B.nameDirection,Q=j.getModel("nameTextStyle"),G=j.get("nameGap")||0,ee=this.axisModel.axis.getExtent(),ce=ee[0]>ee[1]?-1:1,be=[z==="start"?ee[0]-ce*G:z==="end"?ee[1]+ce*G:(ee[0]+ee[1])/2,I(z)?B.labelOffset+V*G:0],le,Ie=j.get("nameRotate");Ie!=null&&(Ie=Ie*g/180);var ke;I(z)?le=E(B.rotation,Ie!=null?Ie:B.rotation,V):(le=C(B,z,Ie||0,ee),ke=B.axisNameAvailableWidth,ke!=null&&(ke=Math.abs(ke/Math.sin(le.rotation)),!isFinite(ke)&&(ke=null)));var Re=Q.getFont(),Qe=j.get("nameTruncate",!0)||{},We=Qe.ellipsis,ot=p(B.nameTruncateMaxWidth,Qe.maxWidth,ke),Oe=We!=null&&ot!=null?f.truncateText(W,ot,Re,We,{minChar:2,placeholder:Qe.placeholder}):W,oe=j.get("tooltip",!0),st=j.mainType,he={componentType:st,name:W,$vars:["name"]};he[st+"Index"]=j.componentIndex;var J=new h.Text({anid:"name",__fullText:W,__truncatedText:Oe,position:be,rotation:le.rotation,silent:_(j),z2:1,tooltip:oe&&oe.show?A({content:W,formatter:function(){return W},formatterParams:he},oe):null});h.setTextStyle(J.style,Q,{text:Oe,textFont:Re,textFill:Q.getTextColor()||j.get("axisLine.lineStyle.color"),textAlign:Q.get("align")||le.textAlign,textVerticalAlign:Q.get("verticalAlign")||le.textVerticalAlign}),j.get("triggerEvent")&&(J.eventData=S(j),J.eventData.targetType="axisName",J.eventData.name=W),this._dumbGroup.add(J),J.updateTransform(),this.group.add(J),J.decomposeTransform()}},S=v.makeAxisEventDataBase=function(B){var j={componentType:B.mainType,componentIndex:B.componentIndex};return j[B.mainType+"Index"]=B.componentIndex,j},E=v.innerTextLayout=function(B,j,W){var z=t(j-B),V,Q;return i(z)?(Q=W>0?"top":"bottom",V="center"):i(z-g)?(Q=W>0?"bottom":"top",V="center"):(Q="middle",z>0&&z<g?V=W>0?"right":"left":V=W>0?"left":"right"),{rotation:z,textAlign:V,textVerticalAlign:Q}};function C(B,j,W,z){var V=t(W-B.rotation),Q,G,ee=z[0]>z[1],ce=j==="start"&&!ee||j!=="start"&ⅇreturn i(V-g/2)?(G=ce?"bottom":"top",Q="center"):i(V-g*1.5)?(G=ce?"top":"bottom",Q="center"):(G="middle",V<g*1.5&&V>g/2?Q=ce?"left":"right":Q=ce?"right":"left"),{rotation:V,textAlign:Q,textVerticalAlign:G}}var _=v.isLabelSilent=function(B){var j=B.get("tooltip");return B.get("silent")||!(B.get("triggerEvent")||j&&j.show)};function T(B,j,W){if(d(B.axis))return;var z=B.get("axisLabel.showMinLabel"),V=B.get("axisLabel.showMaxLabel");j=j||[],W=W||[];var Q=j[0],G=j[1],ee=j[j.length-1],ce=j[j.length-2],be=W[0],le=W[1],Ie=W[W.length-1],ke=W[W.length-2];z===!1?(w(Q),w(be)):O(Q,G)&&(z?(w(G),w(le)):(w(Q),w(be))),V===!1?(w(ee),w(Ie)):O(ce,ee)&&(V?(w(ce),w(ke)):(w(ee),w(Ie)))}function w(B){B&&(B.ignore=!0)}function O(B,j,W){var z=B&&B.getBoundingRect().clone(),V=j&&j.getBoundingRect().clone();if(!z||!V)return;var Q=l.identity([]);return l.rotate(Q,Q,-B.rotation),z.applyTransform(l.mul([],Q,B.getLocalTransform())),V.applyTransform(l.mul([],Q,j.getLocalTransform())),z.intersect(V)}function I(B){return B==="middle"||B==="center"}function R(B,j,W,z,V){for(var Q=[],G=[],ee=[],ce=0;ce<B.length;ce++){var be=B[ce].coord;G[0]=be,G[1]=0,ee[0]=be,ee[1]=W,j&&(s(G,G,j),s(ee,ee,j));var le=new h.Line({anid:V+"_"+B[ce].tickValue,subPixelOptimize:!0,shape:{x1:G[0],y1:G[1],x2:ee[0],y2:ee[1]},style:z,z2:2,silent:!0});Q.push(le)}return Q}function M(B,j,W){var z=j.axis,V=j.getModel("axisTick");if(!V.get("show")||z.scale.isBlank())return;for(var Q=V.getModel("lineStyle"),G=W.tickDirection*V.get("length"),ee=z.getTicksCoords(),ce=R(ee,B._transform,G,x(Q.getLineStyle(),{stroke:j.get("axisLine.lineStyle.color")}),"ticks"),be=0;be<ce.length;be++)B.group.add(ce[be]);return ce}function F(B,j,W){var z=j.axis,V=j.getModel("minorTick");if(!V.get("show")||z.scale.isBlank())return;var Q=z.getMinorTicksCoords();if(!Q.length)return;for(var G=V.getModel("lineStyle"),ee=W.tickDirection*V.get("length"),ce=x(G.getLineStyle(),x(j.getModel("axisTick").getLineStyle(),{stroke:j.get("axisLine.lineStyle.color")})),be=0;be<Q.length;be++)for(var le=R(Q[be],B._transform,ee,ce,"minorticks_"+be),Ie=0;Ie<le.length;Ie++)B.group.add(le[Ie])}function P(B,j,W){var z=j.axis,V=p(W.axisLabelShow,j.get("axisLabel.show"));if(!V||z.scale.isBlank())return;var Q=j.getModel("axisLabel"),G=Q.get("margin"),ee=z.getViewLabels(),ce=(p(W.labelRotate,Q.get("rotate"))||0)*g/180,be=E(W.rotation,ce,W.labelDirection),le=j.getCategories&&j.getCategories(!0),Ie=[],ke=_(j),Re=j.get("triggerEvent");return m(ee,function(Qe,We){var ot=Qe.tickValue,Oe=Qe.formattedLabel,oe=Qe.rawLabel,st=Q;le&&le[ot]&&le[ot].textStyle&&(st=new u(le[ot].textStyle,Q,j.ecModel));var he=st.getTextColor()||j.get("axisLine.lineStyle.color"),J=z.dataToCoord(ot),Y=[J,W.labelOffset+W.labelDirection*G],$=new h.Text({anid:"label_"+ot,position:Y,rotation:be.rotation,silent:ke,z2:10});h.setTextStyle($.style,st,{text:Oe,textAlign:st.getShallow("align",!0)||be.textAlign,textVerticalAlign:st.getShallow("verticalAlign",!0)||st.getShallow("baseline",!0)||be.textVerticalAlign,textFill:typeof he=="function"?he(z.type==="category"?oe:z.type==="value"?ot+"":ot,We):he}),Re&&($.eventData=S(j),$.eventData.targetType="axisLabel",$.eventData.value=oe),B._dumbGroup.add($),$.updateTransform(),Ie.push($),B.group.add($),$.decomposeTransform()}),Ie}var X=v;k.exports=X},"+wW9":function(k,D,n){var y=n("bYtY"),p=y.each,x=y.isArray,A=y.isObject,m=n("JuEJ"),f=n("4NO4"),h=f.normalizeToArray;function u(l,r){r=r.split(",");for(var s=l,c=0;c<r.length&&!(s=s&&s[r[c]],s==null);c++);return s}function a(l,r,s,c){r=r.split(",");for(var d=l,g,v=0;v<r.length-1;v++)g=r[v],d[g]==null&&(d[g]={}),d=d[g];(c||d[r[v]]==null)&&(d[r[v]]=s)}function i(l){p(t,function(r){r[0]in l&&!(r[1]in l)&&(l[r[1]]=l[r[0]])})}var t=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],o=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];function e(l,r){m(l,r),l.series=h(l.series),p(l.series,function(s){if(!A(s))return;var c=s.type;if(c==="line")s.clipOverflow!=null&&(s.clip=s.clipOverflow);else if(c==="pie"||c==="gauge")s.clockWise!=null&&(s.clockwise=s.clockWise);else if(c==="gauge"){var d=u(s,"pointer.color");d!=null&&a(s,"itemStyle.color",d)}i(s)}),l.dataRange&&(l.visualMap=l.dataRange),p(o,function(s){var c=l[s];c&&(x(c)||(c=[c]),p(c,function(d){i(d)}))})}k.exports=e},"/IIm":function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=n("H6uX"),m=n("IwbS"),f=n("pP6R"),h=n("gPAo"),u=x.curry,a=x.each,i=x.map,t=Math.min,o=Math.max,e=Math.pow,l=1e4,r=6,s=6,c="globalPan",d={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},g={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},v={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},b=0;function S(de){A.call(this),this._zr=de,this.group=new m.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+b++,this._handlers={},a(Y,function(me,Le){this._handlers[Le]=x.bind(me,this)},this)}S.prototype={constructor:S,enableBrush:function(de){return this._brushType&&C(this),de.brushType&&E(this,de),this},setPanels:function(de){if(de&&de.length){var me=this._panels={};x.each(de,function(Le){me[Le.panelId]=x.clone(Le)})}else this._panels=null;return this},mount:function(de){de=de||{},this._enableGlobalPan=de.enableGlobalPan;var me=this.group;return this._zr.add(me),me.attr({position:de.position||[0,0],rotation:de.rotation||0,scale:de.scale||[1,1]}),this._transform=me.getLocalTransform(),this},eachCover:function(de,me){a(this._covers,de,me)},updateCovers:function(de){de=x.map(de,function(dr){return x.merge(x.clone(v),dr,!0)});var me="\0-brush-index-",Le=this._covers,tt=this._covers=[],At=this,ht=this._creatingCover;return new h(Le,de,Jt,Ke).add(ct).update(ct).remove(Gt).execute(),this;function Ke(dr,zt){return(dr.id!=null?dr.id:me+zt)+"-"+dr.brushType}function Jt(dr,zt){return Ke(dr.__brushOption,zt)}function ct(dr,zt){var kt=de[dr];if(zt!=null&&Le[zt]===ht)tt[dr]=Le[zt];else{var Vt=tt[dr]=zt!=null?(Le[zt].__brushOption=kt,Le[zt]):O(At,w(At,kt));M(At,Vt)}}function Gt(dr){Le[dr]!==ht&&At.group.remove(Le[dr])}},unmount:function(){return this.enableBrush(!1),B(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},x.mixin(S,A);function E(de,me){var Le=de._zr;de._enableGlobalPan||f.take(Le,c,de._uid),_(Le,de._handlers),de._brushType=me.brushType,de._brushOption=x.merge(x.clone(v),me,!0)}function C(de){var me=de._zr;f.release(me,c,de._uid),T(me,de._handlers),de._brushType=de._brushOption=null}function _(de,me){a(me,function(Le,tt){de.on(tt,Le)})}function T(de,me){a(me,function(Le,tt){de.off(tt,Le)})}function w(de,me){var Le=we[me.brushType].createCover(de,me);return Le.__brushOption=me,R(Le,me),de.group.add(Le),Le}function O(de,me){var Le=F(me);return Le.endCreating&&(Le.endCreating(de,me),R(me,me.__brushOption)),me}function I(de,me){var Le=me.__brushOption;F(me).updateCoverShape(de,me,Le.range,Le)}function R(de,me){var Le=me.z;Le==null&&(Le=l),de.traverse(function(tt){tt.z=Le,tt.z2=Le})}function M(de,me){F(me).updateCommon(de,me),I(de,me)}function F(de){return we[de.__brushOption.brushType]}function P(de,me,Le){var tt=de._panels;if(!tt)return!0;var At,ht=de._transform;return a(tt,function(Ke){Ke.isTargetByCursor(me,Le,ht)&&(At=Ke)}),At}function X(de,me){var Le=de._panels;if(!Le)return!0;var tt=me.__brushOption.panelId;return tt!=null?Le[tt]:!0}function B(de){var me=de._covers,Le=me.length;return a(me,function(tt){de.group.remove(tt)},de),me.length=0,!!Le}function j(de,me){var Le=i(de._covers,function(tt){var At=tt.__brushOption,ht=x.clone(At.range);return{brushType:At.brushType,panelId:At.panelId,range:ht}});de.trigger("brush",Le,{isEnd:!!me.isEnd,removeOnClick:!!me.removeOnClick})}function W(de){var me=de._track;if(!me.length)return!1;var Le=me[me.length-1],tt=me[0],At=Le[0]-tt[0],ht=Le[1]-tt[1],Ke=e(At*At+ht*ht,.5);return Ke>r}function z(de){var me=de.length-1;return me<0&&(me=0),[de[0],de[me]]}function V(de,me,Le,tt){var At=new m.Group;return At.add(new m.Rect({name:"main",style:ce(Le),silent:!0,draggable:!0,cursor:"move",drift:u(de,me,At,"nswe"),ondragend:u(j,me,{isEnd:!0})})),a(tt,function(ht){At.add(new m.Rect({name:ht,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:u(de,me,At,ht),ondragend:u(j,me,{isEnd:!0})}))}),At}function Q(de,me,Le,tt){var At=tt.brushStyle.lineWidth||0,ht=o(At,s),Ke=Le[0][0],Jt=Le[1][0],ct=Ke-At/2,Gt=Jt-At/2,dr=Le[0][1],zt=Le[1][1],kt=dr-ht+At/2,Vt=zt-ht+At/2,Xe=dr-Ke,pe=zt-Jt,te=Xe+At,$e=pe+At;ee(de,me,"main",Ke,Jt,Xe,pe),tt.transformable&&(ee(de,me,"w",ct,Gt,ht,$e),ee(de,me,"e",kt,Gt,ht,$e),ee(de,me,"n",ct,Gt,te,ht),ee(de,me,"s",ct,Vt,te,ht),ee(de,me,"nw",ct,Gt,ht,ht),ee(de,me,"ne",kt,Gt,ht,ht),ee(de,me,"sw",ct,Vt,ht,ht),ee(de,me,"se",kt,Vt,ht,ht))}function G(de,me){var Le=me.__brushOption,tt=Le.transformable,At=me.childAt(0);At.useStyle(ce(Le)),At.attr({silent:!tt,cursor:tt?"move":"default"}),a(["w","e","n","s","se","sw","ne","nw"],function(ht){var Ke=me.childOfName(ht),Jt=Ie(de,ht);Ke&&Ke.attr({silent:!tt,invisible:!tt,cursor:tt?g[Jt]+"-resize":null})})}function ee(de,me,Le,tt,At,ht,Ke){var Jt=me.childOfName(Le);Jt&&Jt.setShape(ot(We(de,me,[[tt,At],[tt+ht,At+Ke]])))}function ce(de){return x.defaults({strokeNoScale:!0},de.brushStyle)}function be(de,me,Le,tt){var At=[t(de,Le),t(me,tt)],ht=[o(de,Le),o(me,tt)];return[[At[0],ht[0]],[At[1],ht[1]]]}function le(de){return m.getTransform(de.group)}function Ie(de,me){if(me.length>1){me=me.split("");var Le=[Ie(de,me[0]),Ie(de,me[1])];return(Le[0]==="e"||Le[0]==="w")&&Le.reverse(),Le.join("")}else{var tt={w:"left",e:"right",n:"top",s:"bottom"},At={left:"w",right:"e",top:"n",bottom:"s"},Le=m.transformDirection(tt[me],le(de));return At[Le]}}function ke(de,me,Le,tt,At,ht,Ke,Jt){var ct=tt.__brushOption,Gt=de(ct.range),dr=Qe(Le,ht,Ke);a(At.split(""),function(zt){var kt=d[zt];Gt[kt[0]][kt[1]]+=dr[kt[0]]}),ct.range=me(be(Gt[0][0],Gt[1][0],Gt[0][1],Gt[1][1])),M(Le,tt),j(Le,{isEnd:!1})}function Re(de,me,Le,tt,At){var ht=me.__brushOption.range,Ke=Qe(de,Le,tt);a(ht,function(Jt){Jt[0]+=Ke[0],Jt[1]+=Ke[1]}),M(de,me),j(de,{isEnd:!1})}function Qe(de,me,Le){var tt=de.group,At=tt.transformCoordToLocal(me,Le),ht=tt.transformCoordToLocal(0,0);return[At[0]-ht[0],At[1]-ht[1]]}function We(de,me,Le){var tt=X(de,me);return tt&&tt!==!0?tt.clipPath(Le,de._transform):x.clone(Le)}function ot(de){var me=t(de[0][0],de[1][0]),Le=t(de[0][1],de[1][1]),tt=o(de[0][0],de[1][0]),At=o(de[0][1],de[1][1]);return{x:me,y:Le,width:tt-me,height:At-Le}}function Oe(de,me,Le){if(!de._brushType||fe(de,me))return;var tt=de._zr,At=de._covers,ht=P(de,me,Le);if(!de._dragging)for(var Ke=0;Ke<At.length;Ke++){var Jt=At[Ke].__brushOption;if(ht&&(ht===!0||Jt.panelId===ht.panelId)&&we[Jt.brushType].contain(At[Ke],Le[0],Le[1]))return}ht&&tt.setCursorStyle("crosshair")}function oe(de){var me=de.event;me.preventDefault&&me.preventDefault()}function st(de,me,Le){return de.childOfName("main").contain(me,Le)}function he(de,me,Le,tt){var At=de._creatingCover,ht=de._creatingPanel,Ke=de._brushOption,Jt;if(de._track.push(Le.slice()),W(de)||At){if(ht&&!At){Ke.brushMode==="single"&&B(de);var ct=x.clone(Ke);ct.brushType=J(ct.brushType,ht),ct.panelId=ht===!0?null:ht.panelId,At=de._creatingCover=w(de,ct),de._covers.push(At)}if(At){var Gt=we[J(de._brushType,ht)],dr=At.__brushOption;dr.range=Gt.getCreatingRange(We(de,At,de._track)),tt&&(O(de,At),Gt.updateCommon(de,At)),I(de,At),Jt={isEnd:tt}}}else tt&&Ke.brushMode==="single"&&Ke.removeOnClick&&(P(de,me,Le)&&B(de)&&(Jt={isEnd:tt,removeOnClick:!0}));return Jt}function J(de,me){return de==="auto"?me.defaultBrushType:de}var Y={mousedown:function(de){if(this._dragging)$(this,de);else if(!de.target||!de.target.draggable){oe(de);var me=this.group.transformCoordToLocal(de.offsetX,de.offsetY);this._creatingCover=null;var Le=this._creatingPanel=P(this,de,me);Le&&(this._dragging=!0,this._track=[me.slice()])}},mousemove:function(de){var me=de.offsetX,Le=de.offsetY,tt=this.group.transformCoordToLocal(me,Le);if(Oe(this,de,tt),this._dragging){oe(de);var At=he(this,de,tt,!1);At&&j(this,At)}},mouseup:function(de){$(this,de)}};function $(de,me){if(de._dragging){oe(me);var Le=me.offsetX,tt=me.offsetY,At=de.group.transformCoordToLocal(Le,tt),ht=he(de,me,At,!0);de._dragging=!1,de._track=[],de._creatingCover=null,ht&&j(de,ht)}}function fe(de,me,Le){var tt=de._zr;return me<0||me>tt.getWidth()||Le<0||Le>tt.getHeight()}var we={lineX:Ne(0),lineY:Ne(1),rect:{createCover:function(de,me){return V(u(ke,function(Le){return Le},function(Le){return Le}),de,me,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(de){var me=z(de);return be(me[1][0],me[1][1],me[0][0],me[0][1])},updateCoverShape:function(de,me,Le,tt){Q(de,me,Le,tt)},updateCommon:G,contain:st},polygon:{createCover:function(de,me){var Le=new m.Group;return Le.add(new m.Polyline({name:"main",style:ce(me),silent:!0})),Le},getCreatingRange:function(de){return de},endCreating:function(de,me){me.remove(me.childAt(0)),me.add(new m.Polygon({name:"main",draggable:!0,drift:u(Re,de,me),ondragend:u(j,de,{isEnd:!0})}))},updateCoverShape:function(de,me,Le,tt){me.childAt(0).setShape({points:We(de,me,Le)})},updateCommon:G,contain:st}};function Ne(de){return{createCover:function(me,Le){return V(u(ke,function(tt){var At=[tt,[0,100]];return de&&At.reverse(),At},function(tt){return tt[de]}),me,Le,[["w","e"],["n","s"]][de])},getCreatingRange:function(me){var Le=z(me),tt=t(Le[0][de],Le[1][de]),At=o(Le[0][de],Le[1][de]);return[tt,At]},updateCoverShape:function(me,Le,tt,At){var ht,Ke=X(me,Le);if(Ke!==!0&&Ke.getLinearBrushOtherExtent)ht=Ke.getLinearBrushOtherExtent(de,me._transform);else{var Jt=me._zr;ht=[0,[Jt.getWidth(),Jt.getHeight()][1-de]]}var ct=[tt,ht];de&&ct.reverse(),Q(me,Le,ct,At)},updateCommon:G,contain:st}}var Ee=S;k.exports=Ee},"/MfK":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={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=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="DeleteOutlined";var h=D.a=p.forwardRef(f)},"/POA":function(k,D,n){!function(y,p){if(!0)k.exports=p();else var x,A}(window,function(){return function(y){var p={};function x(A){if(p[A])return p[A].exports;var m=p[A]={i:A,l:!1,exports:{}};return y[A].call(m.exports,m,m.exports,x),m.l=!0,m.exports}return x.m=y,x.c=p,x.d=function(A,m,f){x.o(A,m)||Object.defineProperty(A,m,{enumerable:!0,get:f})},x.r=function(A){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},x.t=function(A,m){if(1&m&&(A=x(A)),8&m)return A;if(4&m&&typeof A=="object"&&A&&A.__esModule)return A;var f=Object.create(null);if(x.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:A}),2&m&&typeof A!="string")for(var h in A)x.d(f,h,function(u){return A[u]}.bind(null,h));return f},x.n=function(A){var m=A&&A.__esModule?function(){return A.default}:function(){return A};return x.d(m,"a",m),m},x.o=function(A,m){return Object.prototype.hasOwnProperty.call(A,m)},x.p="",x(x.s=34)}([function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.forwardEvent=p.EventEmitter=void 0;var A=function(){function m(){this._listeners=[],this._disposed=!1}return Object.defineProperty(m.prototype,"event",{get:function(){var h=this;return this._event||(this._event=function(u){return h._listeners.push(u),{dispose:function(){if(!h._disposed){for(var i=0;i<h._listeners.length;i++)if(h._listeners[i]===u)return void h._listeners.splice(i,1)}}}}),this._event},enumerable:!1,configurable:!0}),m.prototype.fire=function(f,h){for(var u=[],a=0;a<this._listeners.length;a++)u.push(this._listeners[a]);for(a=0;a<u.length;a++)u[a].call(void 0,f,h)},m.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},m}();p.EventEmitter=A,p.forwardEvent=function(m,f){return m(function(h){return f.fire(h)})}},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.IUnicodeService=p.IOptionsService=p.ILogService=p.IInstantiationService=p.IDirtyRowService=p.ICharsetService=p.ICoreService=p.ICoreMouseService=p.IBufferService=void 0;var A=x(14);p.IBufferService=A.createDecorator("BufferService"),p.ICoreMouseService=A.createDecorator("CoreMouseService"),p.ICoreService=A.createDecorator("CoreService"),p.ICharsetService=A.createDecorator("CharsetService"),p.IDirtyRowService=A.createDecorator("DirtyRowService"),p.IInstantiationService=A.createDecorator("InstantiationService"),p.ILogService=A.createDecorator("LogService"),p.IOptionsService=A.createDecorator("OptionsService"),p.IUnicodeService=A.createDecorator("UnicodeService")},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getDisposeArrayDisposable=p.disposeArray=p.Disposable=void 0;var A=function(){function f(){this._disposables=[],this._isDisposed=!1}return f.prototype.dispose=function(){this._isDisposed=!0;for(var h=0,u=this._disposables;h<u.length;h++)u[h].dispose();this._disposables.length=0},f.prototype.register=function(h){return this._disposables.push(h),h},f.prototype.unregister=function(h){var u=this._disposables.indexOf(h);u!==-1&&this._disposables.splice(u,1)},f}();function m(f){for(var h=0,u=f;h<u.length;h++)u[h].dispose();f.length=0}p.Disposable=A,p.disposeArray=m,p.getDisposeArrayDisposable=function(f){return{dispose:function(){return m(f)}}}},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.WHITESPACE_CELL_CODE=p.WHITESPACE_CELL_WIDTH=p.WHITESPACE_CELL_CHAR=p.NULL_CELL_CODE=p.NULL_CELL_WIDTH=p.NULL_CELL_CHAR=p.CHAR_DATA_CODE_INDEX=p.CHAR_DATA_WIDTH_INDEX=p.CHAR_DATA_CHAR_INDEX=p.CHAR_DATA_ATTR_INDEX=p.DEFAULT_ATTR=p.DEFAULT_COLOR=void 0,p.DEFAULT_COLOR=256,p.DEFAULT_ATTR=256|p.DEFAULT_COLOR<<9,p.CHAR_DATA_ATTR_INDEX=0,p.CHAR_DATA_CHAR_INDEX=1,p.CHAR_DATA_WIDTH_INDEX=2,p.CHAR_DATA_CODE_INDEX=3,p.NULL_CELL_CHAR="",p.NULL_CELL_WIDTH=1,p.NULL_CELL_CODE=0,p.WHITESPACE_CELL_CHAR=" ",p.WHITESPACE_CELL_WIDTH=1,p.WHITESPACE_CELL_CODE=32},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(t,o){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var r in l)l.hasOwnProperty(r)&&(e[r]=l[r])})(t,o)},function(i,t){function o(){this.constructor=i}A(i,t),i.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(p,"__esModule",{value:!0}),p.CellData=void 0;var f=x(8),h=x(3),u=x(6),a=function(i){function t(){var o=i!==null&&i.apply(this,arguments)||this;return o.content=0,o.fg=0,o.bg=0,o.extended=new u.ExtendedAttrs,o.combinedData="",o}return m(t,i),t.fromCharData=function(o){var e=new t;return e.setFromCharData(o),e},t.prototype.isCombined=function(){return 2097152&this.content},t.prototype.getWidth=function(){return this.content>>22},t.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?f.stringFromCodePoint(2097151&this.content):""},t.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},t.prototype.setFromCharData=function(o){this.fg=o[h.CHAR_DATA_ATTR_INDEX],this.bg=0;var e=!1;if(o[h.CHAR_DATA_CHAR_INDEX].length>2)e=!0;else if(o[h.CHAR_DATA_CHAR_INDEX].length===2){var l=o[h.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=l&&l<=56319){var r=o[h.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=r&&r<=57343?this.content=1024*(l-55296)+r-56320+65536|o[h.CHAR_DATA_WIDTH_INDEX]<<22:e=!0}else e=!0}else this.content=o[h.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|o[h.CHAR_DATA_WIDTH_INDEX]<<22;e&&(this.combinedData=o[h.CHAR_DATA_CHAR_INDEX],this.content=2097152|o[h.CHAR_DATA_WIDTH_INDEX]<<22)},t.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},t}(u.AttributeData);p.CellData=a},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ISoundService=p.ISelectionService=p.IRenderService=p.IMouseService=p.ICoreBrowserService=p.ICharSizeService=void 0;var A=x(14);p.ICharSizeService=A.createDecorator("CharSizeService"),p.ICoreBrowserService=A.createDecorator("CoreBrowserService"),p.IMouseService=A.createDecorator("MouseService"),p.IRenderService=A.createDecorator("RenderService"),p.ISelectionService=A.createDecorator("SelectionService"),p.ISoundService=A.createDecorator("SoundService")},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ExtendedAttrs=p.AttributeData=void 0;var A=function(){function f(){this.fg=0,this.bg=0,this.extended=new m}return f.toColorRGB=function(h){return[h>>>16&255,h>>>8&255,255&h]},f.fromColorRGB=function(h){return(255&h[0])<<16|(255&h[1])<<8|255&h[2]},f.prototype.clone=function(){var h=new f;return h.fg=this.fg,h.bg=this.bg,h.extended=this.extended.clone(),h},f.prototype.isInverse=function(){return 67108864&this.fg},f.prototype.isBold=function(){return 134217728&this.fg},f.prototype.isUnderline=function(){return 268435456&this.fg},f.prototype.isBlink=function(){return 536870912&this.fg},f.prototype.isInvisible=function(){return 1073741824&this.fg},f.prototype.isItalic=function(){return 67108864&this.bg},f.prototype.isDim=function(){return 134217728&this.bg},f.prototype.getFgColorMode=function(){return 50331648&this.fg},f.prototype.getBgColorMode=function(){return 50331648&this.bg},f.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},f.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},f.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},f.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},f.prototype.isFgDefault=function(){return(50331648&this.fg)==0},f.prototype.isBgDefault=function(){return(50331648&this.bg)==0},f.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},f.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},f.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},f.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},f.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},f.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()},f.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},f.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},f.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},f.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},f.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},f}();p.AttributeData=A;var m=function(){function f(h,u){h===void 0&&(h=0),u===void 0&&(u=-1),this.underlineStyle=h,this.underlineColor=u}return f.prototype.clone=function(){return new f(this.underlineStyle,this.underlineColor)},f.prototype.isEmpty=function(){return this.underlineStyle===0},f}();p.ExtendedAttrs=m},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.addDisposableDomListener=void 0,p.addDisposableDomListener=function(A,m,f,h){A.addEventListener(m,f,h);var u=!1;return{dispose:function(){u||(u=!0,A.removeEventListener(m,f,h))}}}},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.Utf8ToUtf32=p.StringToUtf32=p.utf32ToString=p.stringFromCodePoint=void 0,p.stringFromCodePoint=function(f){return f>65535?(f-=65536,String.fromCharCode(55296+(f>>10))+String.fromCharCode(f%1024+56320)):String.fromCharCode(f)},p.utf32ToString=function(f,h,u){h===void 0&&(h=0),u===void 0&&(u=f.length);for(var a="",i=h;i<u;++i){var t=f[i];t>65535?(t-=65536,a+=String.fromCharCode(55296+(t>>10))+String.fromCharCode(t%1024+56320)):a+=String.fromCharCode(t)}return a};var A=function(){function f(){this._interim=0}return f.prototype.clear=function(){this._interim=0},f.prototype.decode=function(h,u){var a=h.length;if(!a)return 0;var i=0,t=0;this._interim&&(56320<=(l=h.charCodeAt(t++))&&l<=57343?u[i++]=1024*(this._interim-55296)+l-56320+65536:(u[i++]=this._interim,u[i++]=l),this._interim=0);for(var o=t;o<a;++o){var e=h.charCodeAt(o);if(55296<=e&&e<=56319){if(++o>=a)return this._interim=e,i;var l;56320<=(l=h.charCodeAt(o))&&l<=57343?u[i++]=1024*(e-55296)+l-56320+65536:(u[i++]=e,u[i++]=l)}else u[i++]=e}return i},f}();p.StringToUtf32=A;var m=function(){function f(){this.interim=new Uint8Array(3)}return f.prototype.clear=function(){this.interim.fill(0)},f.prototype.decode=function(h,u){var a=h.length;if(!a)return 0;var i,t,o,e,l=0,r=0,s=0;if(this.interim[0]){var c=!1,d=this.interim[0];d&=(224&d)==192?31:(240&d)==224?15:7;for(var g=0,v=void 0;(v=63&this.interim[++g])&&g<4;)d<<=6,d|=v;for(var b=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,S=b-g;s<S;){if(s>=a)return 0;if((192&(v=h[s++]))!=128){s--,c=!0;break}this.interim[g++]=v,d<<=6,d|=63&v}c||(b===2?d<128?s--:u[l++]=d:b===3?d<2048||d>=55296&&d<=57343||(u[l++]=d):d<65536||d>1114111||(u[l++]=d)),this.interim.fill(0)}for(var E=a-4,C=s;C<a;){for(;!(!(C<E)||128&(i=h[C])||128&(t=h[C+1])||128&(o=h[C+2])||128&(e=h[C+3]));)u[l++]=i,u[l++]=t,u[l++]=o,u[l++]=e,C+=4;if((i=h[C++])<128)u[l++]=i;else if((224&i)==192){if(C>=a)return this.interim[0]=i,l;if((192&(t=h[C++]))!=128){C--;continue}if((r=(31&i)<<6|63&t)<128){C--;continue}u[l++]=r}else if((240&i)==224){if(C>=a)return this.interim[0]=i,l;if((192&(t=h[C++]))!=128){C--;continue}if(C>=a)return this.interim[0]=i,this.interim[1]=t,l;if((192&(o=h[C++]))!=128){C--;continue}if((r=(15&i)<<12|(63&t)<<6|63&o)<2048||r>=55296&&r<=57343)continue;u[l++]=r}else if((248&i)==240){if(C>=a)return this.interim[0]=i,l;if((192&(t=h[C++]))!=128){C--;continue}if(C>=a)return this.interim[0]=i,this.interim[1]=t,l;if((192&(o=h[C++]))!=128){C--;continue}if(C>=a)return this.interim[0]=i,this.interim[1]=t,this.interim[2]=o,l;if((192&(e=h[C++]))!=128){C--;continue}if((r=(7&i)<<18|(63&t)<<12|(63&o)<<6|63&e)<65536||r>1114111)continue;u[l++]=r}}return l},f}();p.Utf8ToUtf32=m},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CHAR_ATLAS_CELL_SPACING=p.DIM_OPACITY=p.INVERTED_DEFAULT_COLOR=void 0,p.INVERTED_DEFAULT_COLOR=257,p.DIM_OPACITY=.5,p.CHAR_ATLAS_CELL_SPACING=1},function(y,p,x){"use strict";var A,m,f,h;function u(i){var t=i.toString(16);return t.length<2?"0"+t:t}function a(i,t){return i<t?(t+.05)/(i+.05):(i+.05)/(t+.05)}Object.defineProperty(p,"__esModule",{value:!0}),p.contrastRatio=p.toPaddedHex=p.rgba=p.rgb=p.css=p.color=p.channels=void 0,function(i){i.toCss=function(t,o,e,l){return l!==void 0?"#"+u(t)+u(o)+u(e)+u(l):"#"+u(t)+u(o)+u(e)},i.toRgba=function(t,o,e,l){return l===void 0&&(l=255),(t<<24|o<<16|e<<8|l)>>>0}}(A=p.channels||(p.channels={})),(m=p.color||(p.color={})).blend=function(i,t){var o=(255&t.rgba)/255;if(o===1)return{css:t.css,rgba:t.rgba};var e=t.rgba>>24&255,l=t.rgba>>16&255,r=t.rgba>>8&255,s=i.rgba>>24&255,c=i.rgba>>16&255,d=i.rgba>>8&255,g=s+Math.round((e-s)*o),v=c+Math.round((l-c)*o),b=d+Math.round((r-d)*o);return{css:A.toCss(g,v,b),rgba:A.toRgba(g,v,b)}},m.isOpaque=function(i){return(255&i.rgba)==255},m.ensureContrastRatio=function(i,t,o){var e=h.ensureContrastRatio(i.rgba,t.rgba,o);if(e)return h.toColor(e>>24&255,e>>16&255,e>>8&255)},m.opaque=function(i){var t=(255|i.rgba)>>>0,o=h.toChannels(t),e=o[0],l=o[1],r=o[2];return{css:A.toCss(e,l,r),rgba:t}},m.opacity=function(i,t){var o=Math.round(255*t),e=h.toChannels(i.rgba),l=e[0],r=e[1],s=e[2];return{css:A.toCss(l,r,s,o),rgba:A.toRgba(l,r,s,o)}},(p.css||(p.css={})).toColor=function(i){switch(i.length){case 7:return{css:i,rgba:(parseInt(i.slice(1),16)<<8|255)>>>0};case 9:return{css:i,rgba:parseInt(i.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(i){function t(o,e,l){var r=o/255,s=e/255,c=l/255;return .2126*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.7152*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))+.0722*(c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4))}i.relativeLuminance=function(o){return t(o>>16&255,o>>8&255,255&o)},i.relativeLuminance2=t}(f=p.rgb||(p.rgb={})),function(i){function t(e,l,r){for(var s=e>>24&255,c=e>>16&255,d=e>>8&255,g=l>>24&255,v=l>>16&255,b=l>>8&255,S=a(f.relativeLuminance2(g,b,v),f.relativeLuminance2(s,c,d));S<r&&(g>0||v>0||b>0);)g-=Math.max(0,Math.ceil(.1*g)),v-=Math.max(0,Math.ceil(.1*v)),b-=Math.max(0,Math.ceil(.1*b)),S=a(f.relativeLuminance2(g,b,v),f.relativeLuminance2(s,c,d));return(g<<24|v<<16|b<<8|255)>>>0}function o(e,l,r){for(var s=e>>24&255,c=e>>16&255,d=e>>8&255,g=l>>24&255,v=l>>16&255,b=l>>8&255,S=a(f.relativeLuminance2(g,b,v),f.relativeLuminance2(s,c,d));S<r&&(g<255||v<255||b<255);)g=Math.min(255,g+Math.ceil(.1*(255-g))),v=Math.min(255,v+Math.ceil(.1*(255-v))),b=Math.min(255,b+Math.ceil(.1*(255-b))),S=a(f.relativeLuminance2(g,b,v),f.relativeLuminance2(s,c,d));return(g<<24|v<<16|b<<8|255)>>>0}i.ensureContrastRatio=function(e,l,r){var s=f.relativeLuminance(e>>8),c=f.relativeLuminance(l>>8);if(a(s,c)<r)return c<s?t(e,l,r):o(e,l,r)},i.reduceLuminance=t,i.increaseLuminance=o,i.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},i.toColor=function(e,l,r){return{css:A.toCss(e,l,r),rgba:A.toRgba(e,l,r)}}}(h=p.rgba||(p.rgba={})),p.toPaddedHex=u,p.contrastRatio=a},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.isLinux=p.isWindows=p.isIphone=p.isIpad=p.isMac=p.isSafari=p.isFirefox=void 0;var A=typeof navigator=="undefined",m=A?"node":navigator.userAgent,f=A?"node":navigator.platform;function h(u,a){return u.indexOf(a)>=0}p.isFirefox=!!~m.indexOf("Firefox"),p.isSafari=/^((?!chrome|android).)*safari/i.test(m),p.isMac=h(["Macintosh","MacIntel","MacPPC","Mac68K"],f),p.isIpad=f==="iPad",p.isIphone=f==="iPhone",p.isWindows=h(["Windows","Win16","Win32","WinCE"],f),p.isLinux=f.indexOf("Linux")>=0},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.C1=p.C0=void 0,function(A){A.NUL="\0",A.SOH="",A.STX="",A.ETX="",A.EOT="",A.ENQ="",A.ACK="",A.BEL="\x07",A.BS="\b",A.HT=" ",A.LF=`
|
|
|
`,A.VT="\v",A.FF="\f",A.CR="\r",A.SO="",A.SI="",A.DLE="",A.DC1="",A.DC2="",A.DC3="",A.DC4="",A.NAK="",A.SYN="",A.ETB="",A.CAN="",A.EM="",A.SUB="",A.ESC="",A.FS="",A.GS="",A.RS="",A.US="",A.SP=" ",A.DEL="\x7F"}(p.C0||(p.C0={})),function(A){A.PAD="\x80",A.HOP="\x81",A.BPH="\x82",A.NBH="\x83",A.IND="\x84",A.NEL="\x85",A.SSA="\x86",A.ESA="\x87",A.HTS="\x88",A.HTJ="\x89",A.VTS="\x8A",A.PLD="\x8B",A.PLU="\x8C",A.RI="\x8D",A.SS2="\x8E",A.SS3="\x8F",A.DCS="\x90",A.PU1="\x91",A.PU2="\x92",A.STS="\x93",A.CCH="\x94",A.MW="\x95",A.SPA="\x96",A.EPA="\x97",A.SOS="\x98",A.SGCI="\x99",A.SCI="\x9A",A.CSI="\x9B",A.ST="\x9C",A.OSC="\x9D",A.PM="\x9E",A.APC="\x9F"}(p.C1||(p.C1={}))},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BaseRenderLayer=void 0;var A=x(3),m=x(9),f=x(25),h=x(6),u=x(28),a=x(10),i=x(17),t=function(){function o(e,l,r,s,c,d,g,v){this._container=e,this._alpha=s,this._colors=c,this._rendererId=d,this._bufferService=g,this._optionsService=v,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=r.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return o.prototype.dispose=function(){var e;i.removeElementFromParent(this._canvas),(e=this._charAtlas)===null||e===void 0||e.dispose()},o.prototype._initCanvas=function(){this._ctx=u.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},o.prototype.onOptionsChanged=function(){},o.prototype.onBlur=function(){},o.prototype.onFocus=function(){},o.prototype.onCursorMove=function(){},o.prototype.onGridChanged=function(e,l){},o.prototype.onSelectionChanged=function(e,l,r){r===void 0&&(r=!1)},o.prototype.setColors=function(e){this._refreshCharAtlas(e)},o.prototype._setTransparency=function(e){if(e!==this._alpha){var l=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,l),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},o.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=f.acquireCharAtlas(this._optionsService.options,this._rendererId,e,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},o.prototype.resize=function(e){this._scaledCellWidth=e.scaledCellWidth,this._scaledCellHeight=e.scaledCellHeight,this._scaledCharWidth=e.scaledCharWidth,this._scaledCharHeight=e.scaledCharHeight,this._scaledCharLeft=e.scaledCharLeft,this._scaledCharTop=e.scaledCharTop,this._canvas.width=e.scaledCanvasWidth,this._canvas.height=e.scaledCanvasHeight,this._canvas.style.width=e.canvasWidth+"px",this._canvas.style.height=e.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},o.prototype._fillCells=function(e,l,r,s){this._ctx.fillRect(e*this._scaledCellWidth,l*this._scaledCellHeight,r*this._scaledCellWidth,s*this._scaledCellHeight)},o.prototype._fillBottomLineAtCells=function(e,l,r){r===void 0&&(r=1),this._ctx.fillRect(e*this._scaledCellWidth,(l+1)*this._scaledCellHeight-window.devicePixelRatio-1,r*this._scaledCellWidth,window.devicePixelRatio)},o.prototype._fillLeftLineAtCell=function(e,l,r){this._ctx.fillRect(e*this._scaledCellWidth,l*this._scaledCellHeight,window.devicePixelRatio*r,this._scaledCellHeight)},o.prototype._strokeRectAtCell=function(e,l,r,s){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,l*this._scaledCellHeight+window.devicePixelRatio/2,r*this._scaledCellWidth-window.devicePixelRatio,s*this._scaledCellHeight-window.devicePixelRatio)},o.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))},o.prototype._clearCells=function(e,l,r,s){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,l*this._scaledCellHeight,r*this._scaledCellWidth,s*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,l*this._scaledCellHeight,r*this._scaledCellWidth,s*this._scaledCellHeight))},o.prototype._fillCharTrueColor=function(e,l,r){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(r),this._ctx.fillText(e.getChars(),l*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},o.prototype._drawChars=function(e,l,r){var s,c,d=this._getContrastColor(e);d||e.isFgRGB()||e.isBgRGB()?this._drawUncachedChars(e,l,r,d):(e.isInverse()?(s=e.isBgDefault()?m.INVERTED_DEFAULT_COLOR:e.getBgColor(),c=e.isFgDefault()?m.INVERTED_DEFAULT_COLOR:e.getFgColor()):(c=e.isBgDefault()?A.DEFAULT_COLOR:e.getBgColor(),s=e.isFgDefault()?A.DEFAULT_COLOR:e.getFgColor()),s+=this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&s<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||A.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||A.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=c,this._currentGlyphIdentifier.fg=s,this._currentGlyphIdentifier.bold=!!e.isBold(),this._currentGlyphIdentifier.dim=!!e.isDim(),this._currentGlyphIdentifier.italic=!!e.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,l*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(e,l,r))},o.prototype._drawUncachedChars=function(e,l,r,s){if(this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline="middle",e.isInverse())if(s)this._ctx.fillStyle=s.css;else if(e.isBgDefault())this._ctx.fillStyle=a.color.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+h.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var c=e.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&c<8&&(c+=8),this._ctx.fillStyle=this._colors.ansi[c].css}else if(s)this._ctx.fillStyle=s.css;else if(e.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(e.isFgRGB())this._ctx.fillStyle="rgb("+h.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var d=e.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&d<8&&(d+=8),this._ctx.fillStyle=this._colors.ansi[d].css}this._clipRow(r),e.isDim()&&(this._ctx.globalAlpha=m.DIM_OPACITY),this._ctx.fillText(e.getChars(),l*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},o.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},o.prototype._getFont=function(e,l){return(l?"italic":"")+" "+(e?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},o.prototype._getContrastColor=function(e){if(this._optionsService.options.minimumContrastRatio!==1){var l=this._colors.contrastCache.getColor(e.bg,e.fg);if(l!==void 0)return l||void 0;var r=e.getFgColor(),s=e.getFgColorMode(),c=e.getBgColor(),d=e.getBgColorMode(),g=!!e.isInverse(),v=!!e.isInverse();if(g){var b=r;r=c,c=b;var S=s;s=d,d=S}var E=this._resolveBackgroundRgba(d,c,g),C=this._resolveForegroundRgba(s,r,g,v),_=a.rgba.ensureContrastRatio(E,C,this._optionsService.options.minimumContrastRatio);if(_){var T={css:a.channels.toCss(_>>24&255,_>>16&255,_>>8&255),rgba:_};return this._colors.contrastCache.setColor(e.bg,e.fg,T),T}this._colors.contrastCache.setColor(e.bg,e.fg,null)}},o.prototype._resolveBackgroundRgba=function(e,l,r){switch(e){case 16777216:case 33554432:return this._colors.ansi[l].rgba;case 50331648:return l<<8;case 0:default:return r?this._colors.foreground.rgba:this._colors.background.rgba}},o.prototype._resolveForegroundRgba=function(e,l,r,s){switch(e){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 r?this._colors.background.rgba:this._colors.foreground.rgba}},o}();p.BaseRenderLayer=t},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.createDecorator=p.getServiceDependencies=p.serviceRegistry=void 0;function A(m,f,h){f.di$target===f?f.di$dependencies.push({id:m,index:h}):(f.di$dependencies=[{id:m,index:h}],f.di$target=f)}p.serviceRegistry=new Map,p.getServiceDependencies=function(m){return m.di$dependencies||[]},p.createDecorator=function(m){if(p.serviceRegistry.has(m))return p.serviceRegistry.get(m);var f=function h(u,a,i){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");A(h,u,i)};return f.toString=function(){return m},p.serviceRegistry.set(m,f),f}},function(y,p,x){"use strict";function A(m,f,h,u){if(h===void 0&&(h=0),u===void 0&&(u=m.length),h>=m.length)return m;h=(m.length+h)%m.length,u=u>=m.length?m.length:(m.length+u)%m.length;for(var a=h;a<u;++a)m[a]=f;return m}Object.defineProperty(p,"__esModule",{value:!0}),p.concat=p.fillFallback=p.fill=void 0,p.fill=function(m,f,h,u){return m.fill?m.fill(f,h,u):A(m,f,h,u)},p.fillFallback=A,p.concat=function(m,f){var h=new m.constructor(m.length+f.length);return h.set(m),h.set(f,m.length),h}},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BufferLine=p.DEFAULT_ATTR_DATA=void 0;var A=x(8),m=x(3),f=x(4),h=x(6);p.DEFAULT_ATTR_DATA=Object.freeze(new h.AttributeData);var u=function(){function a(i,t,o){o===void 0&&(o=!1),this.isWrapped=o,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*i);for(var e=t||f.CellData.fromCharData([0,m.NULL_CELL_CHAR,m.NULL_CELL_WIDTH,m.NULL_CELL_CODE]),l=0;l<i;++l)this.setCell(l,e);this.length=i}return a.prototype.get=function(i){var t=this._data[3*i+0],o=2097151&t;return[this._data[3*i+1],2097152&t?this._combined[i]:o?A.stringFromCodePoint(o):"",t>>22,2097152&t?this._combined[i].charCodeAt(this._combined[i].length-1):o]},a.prototype.set=function(i,t){this._data[3*i+1]=t[m.CHAR_DATA_ATTR_INDEX],t[m.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[i]=t[1],this._data[3*i+0]=2097152|i|t[m.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*i+0]=t[m.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[m.CHAR_DATA_WIDTH_INDEX]<<22},a.prototype.getWidth=function(i){return this._data[3*i+0]>>22},a.prototype.hasWidth=function(i){return 12582912&this._data[3*i+0]},a.prototype.getFg=function(i){return this._data[3*i+1]},a.prototype.getBg=function(i){return this._data[3*i+2]},a.prototype.hasContent=function(i){return 4194303&this._data[3*i+0]},a.prototype.getCodePoint=function(i){var t=this._data[3*i+0];return 2097152&t?this._combined[i].charCodeAt(this._combined[i].length-1):2097151&t},a.prototype.isCombined=function(i){return 2097152&this._data[3*i+0]},a.prototype.getString=function(i){var t=this._data[3*i+0];return 2097152&t?this._combined[i]:2097151&t?A.stringFromCodePoint(2097151&t):""},a.prototype.loadCell=function(i,t){var o=3*i;return t.content=this._data[o+0],t.fg=this._data[o+1],t.bg=this._data[o+2],2097152&t.content&&(t.combinedData=this._combined[i]),268435456&t.bg&&(t.extended=this._extendedAttrs[i]),t},a.prototype.setCell=function(i,t){2097152&t.content&&(this._combined[i]=t.combinedData),268435456&t.bg&&(this._extendedAttrs[i]=t.extended),this._data[3*i+0]=t.content,this._data[3*i+1]=t.fg,this._data[3*i+2]=t.bg},a.prototype.setCellFromCodePoint=function(i,t,o,e,l,r){268435456&l&&(this._extendedAttrs[i]=r),this._data[3*i+0]=t|o<<22,this._data[3*i+1]=e,this._data[3*i+2]=l},a.prototype.addCodepointToCell=function(i,t){var o=this._data[3*i+0];2097152&o?this._combined[i]+=A.stringFromCodePoint(t):(2097151&o?(this._combined[i]=A.stringFromCodePoint(2097151&o)+A.stringFromCodePoint(t),o&=-2097152,o|=2097152):o=t|1<<22,this._data[3*i+0]=o)},a.prototype.insertCells=function(i,t,o,e){if((i%=this.length)&&this.getWidth(i-1)===2&&this.setCellFromCodePoint(i-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new h.ExtendedAttrs),t<this.length-i){for(var l=new f.CellData,r=this.length-i-t-1;r>=0;--r)this.setCell(i+t+r,this.loadCell(i+r,l));for(r=0;r<t;++r)this.setCell(i+r,o)}else for(r=i;r<this.length;++r)this.setCell(r,o);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new h.ExtendedAttrs)},a.prototype.deleteCells=function(i,t,o,e){if(i%=this.length,t<this.length-i){for(var l=new f.CellData,r=0;r<this.length-i-t;++r)this.setCell(i+r,this.loadCell(i+t+r,l));for(r=this.length-t;r<this.length;++r)this.setCell(r,o)}else for(r=i;r<this.length;++r)this.setCell(r,o);i&&this.getWidth(i-1)===2&&this.setCellFromCodePoint(i-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new h.ExtendedAttrs),this.getWidth(i)!==0||this.hasContent(i)||this.setCellFromCodePoint(i,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new h.ExtendedAttrs)},a.prototype.replaceCells=function(i,t,o,e){for(i&&this.getWidth(i-1)===2&&this.setCellFromCodePoint(i-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new h.ExtendedAttrs),t<this.length&&this.getWidth(t-1)===2&&this.setCellFromCodePoint(t,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new h.ExtendedAttrs);i<t&&i<this.length;)this.setCell(i++,o)},a.prototype.resize=function(i,t){if(i!==this.length){if(i>this.length){var o=new Uint32Array(3*i);this.length&&(3*i<this._data.length?o.set(this._data.subarray(0,3*i)):o.set(this._data)),this._data=o;for(var e=this.length;e<i;++e)this.setCell(e,t)}else if(i){(o=new Uint32Array(3*i)).set(this._data.subarray(0,3*i)),this._data=o;var l=Object.keys(this._combined);for(e=0;e<l.length;e++){var r=parseInt(l[e],10);r>=i&&delete this._combined[r]}}else this._data=new Uint32Array(0),this._combined={};this.length=i}},a.prototype.fill=function(i){this._combined={},this._extendedAttrs={};for(var t=0;t<this.length;++t)this.setCell(t,i)},a.prototype.copyFrom=function(i){for(var t in this.length!==i.length?this._data=new Uint32Array(i._data):this._data.set(i._data),this.length=i.length,this._combined={},i._combined)this._combined[t]=i._combined[t];for(var t in this._extendedAttrs={},i._extendedAttrs)this._extendedAttrs[t]=i._extendedAttrs[t];this.isWrapped=i.isWrapped},a.prototype.clone=function(){var i=new a(0);for(var t in i._data=new Uint32Array(this._data),i.length=this.length,this._combined)i._combined[t]=this._combined[t];for(var t in this._extendedAttrs)i._extendedAttrs[t]=this._extendedAttrs[t];return i.isWrapped=this.isWrapped,i},a.prototype.getTrimmedLength=function(){for(var i=this.length-1;i>=0;--i)if(4194303&this._data[3*i+0])return i+(this._data[3*i+0]>>22);return 0},a.prototype.copyCellsFrom=function(i,t,o,e,l){var r=i._data;if(l)for(var s=e-1;s>=0;s--)for(var c=0;c<3;c++)this._data[3*(o+s)+c]=r[3*(t+s)+c];else for(s=0;s<e;s++)for(c=0;c<3;c++)this._data[3*(o+s)+c]=r[3*(t+s)+c];var d=Object.keys(i._combined);for(c=0;c<d.length;c++){var g=parseInt(d[c],10);g>=t&&(this._combined[g-t+o]=i._combined[g])}},a.prototype.translateToString=function(i,t,o){i===void 0&&(i=!1),t===void 0&&(t=0),o===void 0&&(o=this.length),i&&(o=Math.min(o,this.getTrimmedLength()));for(var e="";t<o;){var l=this._data[3*t+0],r=2097151&l;e+=2097152&l?this._combined[t]:r?A.stringFromCodePoint(r):m.WHITESPACE_CELL_CHAR,t+=l>>22||1}return e},a}();p.BufferLine=u},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.removeElementFromParent=void 0,p.removeElementFromParent=function(){for(var A,m=[],f=0;f<arguments.length;f++)m[f]=arguments[f];for(var h=0,u=m;h<u.length;h++){var a=u[h];(A=a==null?void 0:a.parentElement)===null||A===void 0||A.removeChild(a)}}},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.tooMuchOutput=p.promptLabel=void 0,p.promptLabel="Terminal input",p.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(_,T){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,O){w.__proto__=O}||function(w,O){for(var I in O)O.hasOwnProperty(I)&&(w[I]=O[I])})(_,T)},function(C,_){function T(){this.constructor=C}A(C,_),C.prototype=_===null?Object.create(_):(T.prototype=_.prototype,new T)});Object.defineProperty(p,"__esModule",{value:!0}),p.InputHandler=p.WindowsOptionsReportType=void 0;var f,h=x(12),u=x(20),a=x(39),i=x(2),t=x(15),o=x(8),e=x(16),l=x(0),r=x(3),s=x(4),c=x(6),d=x(22),g=x(24),v={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function b(C,_){if(C>24)return _.setWinLines||!1;switch(C){case 1:return!!_.restoreWin;case 2:return!!_.minimizeWin;case 3:return!!_.setWinPosition;case 4:return!!_.setWinSizePixels;case 5:return!!_.raiseWin;case 6:return!!_.lowerWin;case 7:return!!_.refreshWin;case 8:return!!_.setWinSizeChars;case 9:return!!_.maximizeWin;case 10:return!!_.fullscreenWin;case 11:return!!_.getWinState;case 13:return!!_.getWinPosition;case 14:return!!_.getWinSizePixels;case 15:return!!_.getScreenSizePixels;case 16:return!!_.getCellSizePixels;case 18:return!!_.getWinSizeChars;case 19:return!!_.getScreenSizeChars;case 20:return!!_.getIconTitle;case 21:return!!_.getWinTitle;case 22:return!!_.pushTitle;case 23:return!!_.popTitle;case 24:return!!_.setWinLines}return!1}!function(C){C[C.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",C[C.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(f=p.WindowsOptionsReportType||(p.WindowsOptionsReportType={}));var S=function(){function C(_,T,w,O){this._bufferService=_,this._coreService=T,this._logService=w,this._optionsService=O,this._data=new Uint32Array(0)}return C.prototype.hook=function(_){this._data=new Uint32Array(0)},C.prototype.put=function(_,T,w){this._data=t.concat(this._data,_.subarray(T,w))},C.prototype.unhook=function(_){if(_){var T=o.utf32ToString(this._data);switch(this._data=new Uint32Array(0),T){case'"q':return this._coreService.triggerDataEvent(h.C0.ESC+'P1$r0"q'+h.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(h.C0.ESC+'P1$r61;1"p'+h.C0.ESC+"\\");case"r":var w=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(h.C0.ESC+"P1$r"+w+h.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(h.C0.ESC+"P1$r0m"+h.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(h.C0.ESC+"P1$r"+O+" q"+h.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",T),this._coreService.triggerDataEvent(h.C0.ESC+"P0$r"+h.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},C}(),E=function(C){function _(T,w,O,I,R,M,F,P,X){X===void 0&&(X=new a.EscapeSequenceParser);var B=C.call(this)||this;B._bufferService=T,B._charsetService=w,B._coreService=O,B._dirtyRowService=I,B._logService=R,B._optionsService=M,B._coreMouseService=F,B._unicodeService=P,B._parser=X,B._parseBuffer=new Uint32Array(4096),B._stringDecoder=new o.StringToUtf32,B._utf8Decoder=new o.Utf8ToUtf32,B._workCell=new s.CellData,B._windowTitle="",B._iconName="",B._windowTitleStack=[],B._iconNameStack=[],B._curAttrData=e.DEFAULT_ATTR_DATA.clone(),B._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone(),B._onRequestBell=new l.EventEmitter,B._onRequestRefreshRows=new l.EventEmitter,B._onRequestReset=new l.EventEmitter,B._onRequestScroll=new l.EventEmitter,B._onRequestSyncScrollBar=new l.EventEmitter,B._onRequestWindowsOptionsReport=new l.EventEmitter,B._onA11yChar=new l.EventEmitter,B._onA11yTab=new l.EventEmitter,B._onCursorMove=new l.EventEmitter,B._onLineFeed=new l.EventEmitter,B._onScroll=new l.EventEmitter,B._onTitleChange=new l.EventEmitter,B.register(B._parser),B._parser.setCsiHandlerFallback(function(V,Q){B._logService.debug("Unknown CSI code: ",{identifier:B._parser.identToString(V),params:Q.toArray()})}),B._parser.setEscHandlerFallback(function(V){B._logService.debug("Unknown ESC code: ",{identifier:B._parser.identToString(V)})}),B._parser.setExecuteHandlerFallback(function(V){B._logService.debug("Unknown EXECUTE code: ",{code:V})}),B._parser.setOscHandlerFallback(function(V,Q,G){B._logService.debug("Unknown OSC code: ",{identifier:V,action:Q,data:G})}),B._parser.setDcsHandlerFallback(function(V,Q,G){Q==="HOOK"&&(G=G.toArray()),B._logService.debug("Unknown DCS code: ",{identifier:B._parser.identToString(V),action:Q,payload:G})}),B._parser.setPrintHandler(function(V,Q,G){return B.print(V,Q,G)}),B._parser.setCsiHandler({final:"@"},function(V){return B.insertChars(V)}),B._parser.setCsiHandler({intermediates:" ",final:"@"},function(V){return B.scrollLeft(V)}),B._parser.setCsiHandler({final:"A"},function(V){return B.cursorUp(V)}),B._parser.setCsiHandler({intermediates:" ",final:"A"},function(V){return B.scrollRight(V)}),B._parser.setCsiHandler({final:"B"},function(V){return B.cursorDown(V)}),B._parser.setCsiHandler({final:"C"},function(V){return B.cursorForward(V)}),B._parser.setCsiHandler({final:"D"},function(V){return B.cursorBackward(V)}),B._parser.setCsiHandler({final:"E"},function(V){return B.cursorNextLine(V)}),B._parser.setCsiHandler({final:"F"},function(V){return B.cursorPrecedingLine(V)}),B._parser.setCsiHandler({final:"G"},function(V){return B.cursorCharAbsolute(V)}),B._parser.setCsiHandler({final:"H"},function(V){return B.cursorPosition(V)}),B._parser.setCsiHandler({final:"I"},function(V){return B.cursorForwardTab(V)}),B._parser.setCsiHandler({final:"J"},function(V){return B.eraseInDisplay(V)}),B._parser.setCsiHandler({prefix:"?",final:"J"},function(V){return B.eraseInDisplay(V)}),B._parser.setCsiHandler({final:"K"},function(V){return B.eraseInLine(V)}),B._parser.setCsiHandler({prefix:"?",final:"K"},function(V){return B.eraseInLine(V)}),B._parser.setCsiHandler({final:"L"},function(V){return B.insertLines(V)}),B._parser.setCsiHandler({final:"M"},function(V){return B.deleteLines(V)}),B._parser.setCsiHandler({final:"P"},function(V){return B.deleteChars(V)}),B._parser.setCsiHandler({final:"S"},function(V){return B.scrollUp(V)}),B._parser.setCsiHandler({final:"T"},function(V){return B.scrollDown(V)}),B._parser.setCsiHandler({final:"X"},function(V){return B.eraseChars(V)}),B._parser.setCsiHandler({final:"Z"},function(V){return B.cursorBackwardTab(V)}),B._parser.setCsiHandler({final:"`"},function(V){return B.charPosAbsolute(V)}),B._parser.setCsiHandler({final:"a"},function(V){return B.hPositionRelative(V)}),B._parser.setCsiHandler({final:"b"},function(V){return B.repeatPrecedingCharacter(V)}),B._parser.setCsiHandler({final:"c"},function(V){return B.sendDeviceAttributesPrimary(V)}),B._parser.setCsiHandler({prefix:">",final:"c"},function(V){return B.sendDeviceAttributesSecondary(V)}),B._parser.setCsiHandler({final:"d"},function(V){return B.linePosAbsolute(V)}),B._parser.setCsiHandler({final:"e"},function(V){return B.vPositionRelative(V)}),B._parser.setCsiHandler({final:"f"},function(V){return B.hVPosition(V)}),B._parser.setCsiHandler({final:"g"},function(V){return B.tabClear(V)}),B._parser.setCsiHandler({final:"h"},function(V){return B.setMode(V)}),B._parser.setCsiHandler({prefix:"?",final:"h"},function(V){return B.setModePrivate(V)}),B._parser.setCsiHandler({final:"l"},function(V){return B.resetMode(V)}),B._parser.setCsiHandler({prefix:"?",final:"l"},function(V){return B.resetModePrivate(V)}),B._parser.setCsiHandler({final:"m"},function(V){return B.charAttributes(V)}),B._parser.setCsiHandler({final:"n"},function(V){return B.deviceStatus(V)}),B._parser.setCsiHandler({prefix:"?",final:"n"},function(V){return B.deviceStatusPrivate(V)}),B._parser.setCsiHandler({intermediates:"!",final:"p"},function(V){return B.softReset(V)}),B._parser.setCsiHandler({intermediates:" ",final:"q"},function(V){return B.setCursorStyle(V)}),B._parser.setCsiHandler({final:"r"},function(V){return B.setScrollRegion(V)}),B._parser.setCsiHandler({final:"s"},function(V){return B.saveCursor(V)}),B._parser.setCsiHandler({final:"t"},function(V){return B.windowOptions(V)}),B._parser.setCsiHandler({final:"u"},function(V){return B.restoreCursor(V)}),B._parser.setCsiHandler({intermediates:"'",final:"}"},function(V){return B.insertColumns(V)}),B._parser.setCsiHandler({intermediates:"'",final:"~"},function(V){return B.deleteColumns(V)}),B._parser.setExecuteHandler(h.C0.BEL,function(){return B.bell()}),B._parser.setExecuteHandler(h.C0.LF,function(){return B.lineFeed()}),B._parser.setExecuteHandler(h.C0.VT,function(){return B.lineFeed()}),B._parser.setExecuteHandler(h.C0.FF,function(){return B.lineFeed()}),B._parser.setExecuteHandler(h.C0.CR,function(){return B.carriageReturn()}),B._parser.setExecuteHandler(h.C0.BS,function(){return B.backspace()}),B._parser.setExecuteHandler(h.C0.HT,function(){return B.tab()}),B._parser.setExecuteHandler(h.C0.SO,function(){return B.shiftOut()}),B._parser.setExecuteHandler(h.C0.SI,function(){return B.shiftIn()}),B._parser.setExecuteHandler(h.C1.IND,function(){return B.index()}),B._parser.setExecuteHandler(h.C1.NEL,function(){return B.nextLine()}),B._parser.setExecuteHandler(h.C1.HTS,function(){return B.tabSet()}),B._parser.setOscHandler(0,new d.OscHandler(function(V){B.setTitle(V),B.setIconName(V)})),B._parser.setOscHandler(1,new d.OscHandler(function(V){return B.setIconName(V)})),B._parser.setOscHandler(2,new d.OscHandler(function(V){return B.setTitle(V)})),B._parser.setEscHandler({final:"7"},function(){return B.saveCursor()}),B._parser.setEscHandler({final:"8"},function(){return B.restoreCursor()}),B._parser.setEscHandler({final:"D"},function(){return B.index()}),B._parser.setEscHandler({final:"E"},function(){return B.nextLine()}),B._parser.setEscHandler({final:"H"},function(){return B.tabSet()}),B._parser.setEscHandler({final:"M"},function(){return B.reverseIndex()}),B._parser.setEscHandler({final:"="},function(){return B.keypadApplicationMode()}),B._parser.setEscHandler({final:">"},function(){return B.keypadNumericMode()}),B._parser.setEscHandler({final:"c"},function(){return B.fullReset()}),B._parser.setEscHandler({final:"n"},function(){return B.setgLevel(2)}),B._parser.setEscHandler({final:"o"},function(){return B.setgLevel(3)}),B._parser.setEscHandler({final:"|"},function(){return B.setgLevel(3)}),B._parser.setEscHandler({final:"}"},function(){return B.setgLevel(2)}),B._parser.setEscHandler({final:"~"},function(){return B.setgLevel(1)}),B._parser.setEscHandler({intermediates:"%",final:"@"},function(){return B.selectDefaultCharset()}),B._parser.setEscHandler({intermediates:"%",final:"G"},function(){return B.selectDefaultCharset()});var j=function(Q){W._parser.setEscHandler({intermediates:"(",final:Q},function(){return B.selectCharset("("+Q)}),W._parser.setEscHandler({intermediates:")",final:Q},function(){return B.selectCharset(")"+Q)}),W._parser.setEscHandler({intermediates:"*",final:Q},function(){return B.selectCharset("*"+Q)}),W._parser.setEscHandler({intermediates:"+",final:Q},function(){return B.selectCharset("+"+Q)}),W._parser.setEscHandler({intermediates:"-",final:Q},function(){return B.selectCharset("-"+Q)}),W._parser.setEscHandler({intermediates:".",final:Q},function(){return B.selectCharset("."+Q)}),W._parser.setEscHandler({intermediates:"/",final:Q},function(){return B.selectCharset("/"+Q)})},W=this;for(var z in u.CHARSETS)j(z);return B._parser.setEscHandler({intermediates:"#",final:"8"},function(){return B.screenAlignmentPattern()}),B._parser.setErrorHandler(function(V){return B._logService.error("Parsing error: ",V),V}),B._parser.setDcsHandler({intermediates:"$",final:"q"},new S(B._bufferService,B._coreService,B._logService,B._optionsService)),B}return m(_,C),Object.defineProperty(_.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),_.prototype.dispose=function(){C.prototype.dispose.call(this)},_.prototype.parse=function(T){var w=this._bufferService.buffer,O=w.x,I=w.y;if(this._logService.debug("parsing data",T),this._parseBuffer.length<T.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(T.length,131072))),this._dirtyRowService.clearRange(),T.length>131072)for(var R=0;R<T.length;R+=131072){var M=R+131072<T.length?R+131072:T.length,F=typeof T=="string"?this._stringDecoder.decode(T.substring(R,M),this._parseBuffer):this._utf8Decoder.decode(T.subarray(R,M),this._parseBuffer);this._parser.parse(this._parseBuffer,F)}else F=typeof T=="string"?this._stringDecoder.decode(T,this._parseBuffer):this._utf8Decoder.decode(T,this._parseBuffer),this._parser.parse(this._parseBuffer,F);(w=this._bufferService.buffer).x===O&&w.y===I||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},_.prototype.print=function(T,w,O){var I,R,M=this._bufferService.buffer,F=this._charsetService.charset,P=this._optionsService.options.screenReaderMode,X=this._bufferService.cols,B=this._coreService.decPrivateModes.wraparound,j=this._coreService.modes.insertMode,W=this._curAttrData,z=M.lines.get(M.ybase+M.y);this._dirtyRowService.markDirty(M.y),M.x&&O-w>0&&z.getWidth(M.x-1)===2&&z.setCellFromCodePoint(M.x-1,0,1,W.fg,W.bg,W.extended);for(var V=w;V<O;++V){if(I=T[V],R=this._unicodeService.wcwidth(I),I<127&&F){var Q=F[String.fromCharCode(I)];Q&&(I=Q.charCodeAt(0))}if(P&&this._onA11yChar.fire(o.stringFromCodePoint(I)),R||!M.x){if(M.x+R-1>=X){if(B){for(;M.x<X;)z.setCellFromCodePoint(M.x++,0,1,W.fg,W.bg,W.extended);M.x=0,M.y++,M.y===M.scrollBottom+1?(M.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(M.y>=this._bufferService.rows&&(M.y=this._bufferService.rows-1),M.lines.get(M.ybase+M.y).isWrapped=!0),z=M.lines.get(M.ybase+M.y)}else if(M.x=X-1,R===2)continue}if(j&&(z.insertCells(M.x,R,M.getNullCell(W),W),z.getWidth(X-1)===2&&z.setCellFromCodePoint(X-1,r.NULL_CELL_CODE,r.NULL_CELL_WIDTH,W.fg,W.bg,W.extended)),z.setCellFromCodePoint(M.x++,I,R,W.fg,W.bg,W.extended),R>0)for(;--R;)z.setCellFromCodePoint(M.x++,0,0,W.fg,W.bg,W.extended)}else z.getWidth(M.x-1)?z.addCodepointToCell(M.x-1,I):z.addCodepointToCell(M.x-2,I)}O-w>0&&(z.loadCell(M.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),M.x<X&&O-w>0&&z.getWidth(M.x)===0&&!z.hasContent(M.x)&&z.setCellFromCodePoint(M.x,0,1,W.fg,W.bg,W.extended),this._dirtyRowService.markDirty(M.y)},_.prototype.addCsiHandler=function(T,w){var O=this;return T.final!=="t"||T.prefix||T.intermediates?this._parser.addCsiHandler(T,w):this._parser.addCsiHandler(T,function(I){return!b(I.params[0],O._optionsService.options.windowOptions)||w(I)})},_.prototype.addDcsHandler=function(T,w){return this._parser.addDcsHandler(T,new g.DcsHandler(w))},_.prototype.addEscHandler=function(T,w){return this._parser.addEscHandler(T,w)},_.prototype.addOscHandler=function(T,w){return this._parser.addOscHandler(T,new d.OscHandler(w))},_.prototype.bell=function(){this._onRequestBell.fire()},_.prototype.lineFeed=function(){var T=this._bufferService.buffer;this._dirtyRowService.markDirty(T.y),this._optionsService.options.convertEol&&(T.x=0),T.y++,T.y===T.scrollBottom+1?(T.y--,this._onRequestScroll.fire(this._eraseAttrData())):T.y>=this._bufferService.rows&&(T.y=this._bufferService.rows-1),T.x>=this._bufferService.cols&&T.x--,this._dirtyRowService.markDirty(T.y),this._onLineFeed.fire()},_.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},_.prototype.backspace=function(){var T,w=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(w.x>0&&w.x--);if(this._restrictCursor(this._bufferService.cols),w.x>0)w.x--;else if(w.x===0&&w.y>w.scrollTop&&w.y<=w.scrollBottom&&((T=w.lines.get(w.ybase+w.y))===null||T===void 0?void 0:T.isWrapped)){w.lines.get(w.ybase+w.y).isWrapped=!1,w.y--,w.x=this._bufferService.cols-1;var O=w.lines.get(w.ybase+w.y);O.hasWidth(w.x)&&!O.hasContent(w.x)&&w.x--}this._restrictCursor()},_.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var T=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-T)}},_.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},_.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},_.prototype._restrictCursor=function(T){T===void 0&&(T=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(T,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)},_.prototype._setCursor=function(T,w){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=T,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+w):(this._bufferService.buffer.x=T,this._bufferService.buffer.y=w),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},_.prototype._moveCursor=function(T,w){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+T,this._bufferService.buffer.y+w)},_.prototype.cursorUp=function(T){var w=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;w>=0?this._moveCursor(0,-Math.min(w,T.params[0]||1)):this._moveCursor(0,-(T.params[0]||1))},_.prototype.cursorDown=function(T){var w=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;w>=0?this._moveCursor(0,Math.min(w,T.params[0]||1)):this._moveCursor(0,T.params[0]||1)},_.prototype.cursorForward=function(T){this._moveCursor(T.params[0]||1,0)},_.prototype.cursorBackward=function(T){this._moveCursor(-(T.params[0]||1),0)},_.prototype.cursorNextLine=function(T){this.cursorDown(T),this._bufferService.buffer.x=0},_.prototype.cursorPrecedingLine=function(T){this.cursorUp(T),this._bufferService.buffer.x=0},_.prototype.cursorCharAbsolute=function(T){this._setCursor((T.params[0]||1)-1,this._bufferService.buffer.y)},_.prototype.cursorPosition=function(T){this._setCursor(T.length>=2?(T.params[1]||1)-1:0,(T.params[0]||1)-1)},_.prototype.charPosAbsolute=function(T){this._setCursor((T.params[0]||1)-1,this._bufferService.buffer.y)},_.prototype.hPositionRelative=function(T){this._moveCursor(T.params[0]||1,0)},_.prototype.linePosAbsolute=function(T){this._setCursor(this._bufferService.buffer.x,(T.params[0]||1)-1)},_.prototype.vPositionRelative=function(T){this._moveCursor(0,T.params[0]||1)},_.prototype.hVPosition=function(T){this.cursorPosition(T)},_.prototype.tabClear=function(T){var w=T.params[0];w===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:w===3&&(this._bufferService.buffer.tabs={})},_.prototype.cursorForwardTab=function(T){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var w=T.params[0]||1;w--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},_.prototype.cursorBackwardTab=function(T){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var w=T.params[0]||1,O=this._bufferService.buffer;w--;)O.x=O.prevStop()},_.prototype._eraseInBufferLine=function(T,w,O,I){I===void 0&&(I=!1);var R=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+T);R.replaceCells(w,O,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),I&&(R.isWrapped=!1)},_.prototype._resetBufferLine=function(T){var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+T);w.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),w.isWrapped=!1},_.prototype.eraseInDisplay=function(T){var w;switch(this._restrictCursor(),T.params[0]){case 0:for(w=this._bufferService.buffer.y,this._dirtyRowService.markDirty(w),this._eraseInBufferLine(w++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);w<this._bufferService.rows;w++)this._resetBufferLine(w);this._dirtyRowService.markDirty(w);break;case 1:for(w=this._bufferService.buffer.y,this._dirtyRowService.markDirty(w),this._eraseInBufferLine(w,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(w+1).isWrapped=!1);w--;)this._resetBufferLine(w);this._dirtyRowService.markDirty(0);break;case 2:for(w=this._bufferService.rows,this._dirtyRowService.markDirty(w-1);w--;)this._resetBufferLine(w);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))}},_.prototype.eraseInLine=function(T){switch(this._restrictCursor(),T.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)},_.prototype.insertLines=function(T){this._restrictCursor();var w=T.params[0]||1,O=this._bufferService.buffer;if(!(O.y>O.scrollBottom||O.y<O.scrollTop)){for(var I=O.ybase+O.y,R=this._bufferService.rows-1-O.scrollBottom,M=this._bufferService.rows-1+O.ybase-R+1;w--;)O.lines.splice(M-1,1),O.lines.splice(I,0,O.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(O.y,O.scrollBottom),O.x=0}},_.prototype.deleteLines=function(T){this._restrictCursor();var w=T.params[0]||1,O=this._bufferService.buffer;if(!(O.y>O.scrollBottom||O.y<O.scrollTop)){var I,R=O.ybase+O.y;for(I=this._bufferService.rows-1-O.scrollBottom,I=this._bufferService.rows-1+O.ybase-I;w--;)O.lines.splice(R,1),O.lines.splice(I,0,O.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(O.y,O.scrollBottom),O.x=0}},_.prototype.insertChars=function(T){this._restrictCursor();var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);w&&(w.insertCells(this._bufferService.buffer.x,T.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},_.prototype.deleteChars=function(T){this._restrictCursor();var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);w&&(w.deleteCells(this._bufferService.buffer.x,T.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},_.prototype.scrollUp=function(T){for(var w=T.params[0]||1,O=this._bufferService.buffer;w--;)O.lines.splice(O.ybase+O.scrollTop,1),O.lines.splice(O.ybase+O.scrollBottom,0,O.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(O.scrollTop,O.scrollBottom)},_.prototype.scrollDown=function(T){for(var w=T.params[0]||1,O=this._bufferService.buffer;w--;)O.lines.splice(O.ybase+O.scrollBottom,1),O.lines.splice(O.ybase+O.scrollTop,0,O.getBlankLine(e.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(O.scrollTop,O.scrollBottom)},_.prototype.scrollLeft=function(T){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var O=T.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var R=w.lines.get(w.ybase+I);R.deleteCells(0,O,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),R.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},_.prototype.scrollRight=function(T){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var O=T.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var R=w.lines.get(w.ybase+I);R.insertCells(0,O,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),R.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},_.prototype.insertColumns=function(T){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var O=T.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var R=this._bufferService.buffer.lines.get(w.ybase+I);R.insertCells(w.x,O,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),R.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},_.prototype.deleteColumns=function(T){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var O=T.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var R=w.lines.get(w.ybase+I);R.deleteCells(w.x,O,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),R.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},_.prototype.eraseChars=function(T){this._restrictCursor();var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);w&&(w.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(T.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},_.prototype.repeatPrecedingCharacter=function(T){if(this._parser.precedingCodepoint){for(var w=T.params[0]||1,O=new Uint32Array(w),I=0;I<w;++I)O[I]=this._parser.precedingCodepoint;this.print(O,0,O.length)}},_.prototype.sendDeviceAttributesPrimary=function(T){T.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(h.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(h.C0.ESC+"[?6c"))},_.prototype.sendDeviceAttributesSecondary=function(T){T.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(h.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(h.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(T.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(h.C0.ESC+"[>83;40003;0c"))},_.prototype._is=function(T){return(this._optionsService.options.termName+"").indexOf(T)===0},_.prototype.setMode=function(T){for(var w=0;w<T.length;w++)switch(T.params[w]){case 4:this._coreService.modes.insertMode=!0}},_.prototype.setModePrivate=function(T){for(var w=0;w<T.length;w++)switch(T.params[w]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,u.DEFAULT_CHARSET),this._charsetService.setgCharset(1,u.DEFAULT_CHARSET),this._charsetService.setgCharset(2,u.DEFAULT_CHARSET),this._charsetService.setgCharset(3,u.DEFAULT_CHARSET);break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0;break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}},_.prototype.resetMode=function(T){for(var w=0;w<T.length;w++)switch(T.params[w]){case 4:this._coreService.modes.insertMode=!1}},_.prototype.resetModePrivate=function(T){for(var w=0;w<T.length;w++)switch(T.params[w]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),T.params[w]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}},_.prototype._updateAttrColor=function(T,w,O,I,R){return w===2?(T|=50331648,T&=-16777216,T|=c.AttributeData.fromColorRGB([O,I,R])):w===5&&(T&=-50331904,T|=33554432|255&O),T},_.prototype._extractColor=function(T,w,O){var I=[0,0,-1,0,0,0],R=0,M=0;do{if(I[M+R]=T.params[w+M],T.hasSubParams(w+M)){var F=T.getSubParams(w+M),P=0;do I[1]===5&&(R=1),I[M+P+1+R]=F[P];while(++P<F.length&&P+M+1+R<I.length);break}if(I[1]===5&&M+R>=2||I[1]===2&&M+R>=5)break;I[1]&&(R=1)}while(++M+w<T.length&&M+R<I.length);for(P=2;P<I.length;++P)I[P]===-1&&(I[P]=0);switch(I[0]){case 38:O.fg=this._updateAttrColor(O.fg,I[1],I[3],I[4],I[5]);break;case 48:O.bg=this._updateAttrColor(O.bg,I[1],I[3],I[4],I[5]);break;case 58:O.extended=O.extended.clone(),O.extended.underlineColor=this._updateAttrColor(O.extended.underlineColor,I[1],I[3],I[4],I[5])}return M},_.prototype._processUnderline=function(T,w){w.extended=w.extended.clone(),(!~T||T>5)&&(T=1),w.extended.underlineStyle=T,w.fg|=268435456,T===0&&(w.fg&=-268435457),w.updateExtended()},_.prototype.charAttributes=function(T){if(T.length===1&&T.params[0]===0)return this._curAttrData.fg=e.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=e.DEFAULT_ATTR_DATA.bg);for(var w,O=T.length,I=this._curAttrData,R=0;R<O;R++)(w=T.params[R])>=30&&w<=37?(I.fg&=-50331904,I.fg|=16777216|w-30):w>=40&&w<=47?(I.bg&=-50331904,I.bg|=16777216|w-40):w>=90&&w<=97?(I.fg&=-50331904,I.fg|=16777224|w-90):w>=100&&w<=107?(I.bg&=-50331904,I.bg|=16777224|w-100):w===0?(I.fg=e.DEFAULT_ATTR_DATA.fg,I.bg=e.DEFAULT_ATTR_DATA.bg):w===1?I.fg|=134217728:w===3?I.bg|=67108864:w===4?(I.fg|=268435456,this._processUnderline(T.hasSubParams(R)?T.getSubParams(R)[0]:1,I)):w===5?I.fg|=536870912:w===7?I.fg|=67108864:w===8?I.fg|=1073741824:w===2?I.bg|=134217728:w===21?this._processUnderline(2,I):w===22?(I.fg&=-134217729,I.bg&=-134217729):w===23?I.bg&=-67108865:w===24?I.fg&=-268435457:w===25?I.fg&=-536870913:w===27?I.fg&=-67108865:w===28?I.fg&=-1073741825:w===39?(I.fg&=-67108864,I.fg|=16777215&e.DEFAULT_ATTR_DATA.fg):w===49?(I.bg&=-67108864,I.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):w===38||w===48||w===58?R+=this._extractColor(T,R,I):w===59?(I.extended=I.extended.clone(),I.extended.underlineColor=-1,I.updateExtended()):w===100?(I.fg&=-67108864,I.fg|=16777215&e.DEFAULT_ATTR_DATA.fg,I.bg&=-67108864,I.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",w)},_.prototype.deviceStatus=function(T){switch(T.params[0]){case 5:this._coreService.triggerDataEvent(h.C0.ESC+"[0n");break;case 6:var w=this._bufferService.buffer.y+1,O=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(h.C0.ESC+"["+w+";"+O+"R")}},_.prototype.deviceStatusPrivate=function(T){switch(T.params[0]){case 6:var w=this._bufferService.buffer.y+1,O=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(h.C0.ESC+"[?"+w+";"+O+"R")}},_.prototype.softReset=function(T){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=e.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},_.prototype.setCursorStyle=function(T){var w=T.params[0]||1;switch(w){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=w%2==1;this._optionsService.options.cursorBlink=O},_.prototype.setScrollRegion=function(T){var w,O=T.params[0]||1;(T.length<2||(w=T.params[1])>this._bufferService.rows||w===0)&&(w=this._bufferService.rows),w>O&&(this._bufferService.buffer.scrollTop=O-1,this._bufferService.buffer.scrollBottom=w-1,this._setCursor(0,0))},_.prototype.windowOptions=function(T){if(b(T.params[0],this._optionsService.options.windowOptions)){var w=T.length>1?T.params[1]:0;switch(T.params[0]){case 14:w!==2&&this._onRequestWindowsOptionsReport.fire(f.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(f.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(h.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:w!==0&&w!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),w!==0&&w!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:w!==0&&w!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),w!==0&&w!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},_.prototype.saveCursor=function(T){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},_.prototype.restoreCursor=function(T){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()},_.prototype.setTitle=function(T){this._windowTitle=T,this._onTitleChange.fire(T)},_.prototype.setIconName=function(T){this._iconName=T},_.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},_.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},_.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},_.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,u.DEFAULT_CHARSET)},_.prototype.selectCharset=function(T){T.length===2?T[0]!=="/"&&this._charsetService.setgCharset(v[T[0]],u.CHARSETS[T[1]]||u.DEFAULT_CHARSET):this.selectDefaultCharset()},_.prototype.index=function(){this._restrictCursor();var T=this._bufferService.buffer;this._bufferService.buffer.y++,T.y===T.scrollBottom+1?(T.y--,this._onRequestScroll.fire(this._eraseAttrData())):T.y>=this._bufferService.rows&&(T.y=this._bufferService.rows-1),this._restrictCursor()},_.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},_.prototype.reverseIndex=function(){this._restrictCursor();var T=this._bufferService.buffer;if(T.y===T.scrollTop){var w=T.scrollBottom-T.scrollTop;T.lines.shiftElements(T.ybase+T.y,w,1),T.lines.set(T.ybase+T.y,T.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(T.scrollTop,T.scrollBottom)}else T.y--,this._restrictCursor()},_.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},_.prototype.reset=function(){this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone()},_.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},_.prototype.setgLevel=function(T){this._charsetService.setgLevel(T)},_.prototype.screenAlignmentPattern=function(){var T=new s.CellData;T.content=1<<22|"E".charCodeAt(0),T.fg=this._curAttrData.fg,T.bg=this._curAttrData.bg;var w=this._bufferService.buffer;this._setCursor(0,0);for(var O=0;O<this._bufferService.rows;++O){var I=w.ybase+w.y+O,R=w.lines.get(I);R&&(R.fill(T),R.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},_}(i.Disposable);p.InputHandler=E},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DEFAULT_CHARSET=p.CHARSETS=void 0,p.CHARSETS={},p.DEFAULT_CHARSET=p.CHARSETS.B,p.CHARSETS[0]={"`":"\u25C6",a:"\u2592",b:"\u2409",c:"\u240C",d:"\u240D",e:"\u240A",f:"\xB0",g:"\xB1",h:"\u2424",i:"\u240B",j:"\u2518",k:"\u2510",l:"\u250C",m:"\u2514",n:"\u253C",o:"\u23BA",p:"\u23BB",q:"\u2500",r:"\u23BC",s:"\u23BD",t:"\u251C",u:"\u2524",v:"\u2534",w:"\u252C",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03C0","|":"\u2260","}":"\xA3","~":"\xB7"},p.CHARSETS.A={"#":"\xA3"},p.CHARSETS.B=void 0,p.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},p.CHARSETS.C=p.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},p.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},p.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},p.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},p.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},p.CHARSETS.E=p.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},p.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},p.CHARSETS.H=p.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},p.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.Params=void 0;var A=function(){function m(f,h){if(f===void 0&&(f=32),h===void 0&&(h=32),this.maxLength=f,this.maxSubParamsLength=h,h>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(f),this.length=0,this._subParams=new Int32Array(h),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(f),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return m.fromArray=function(f){var h=new m;if(!f.length)return h;for(var u=f[0]instanceof Array?1:0;u<f.length;++u){var a=f[u];if(a instanceof Array)for(var i=0;i<a.length;++i)h.addSubParam(a[i]);else h.addParam(a)}return h},m.prototype.clone=function(){var f=new m(this.maxLength,this.maxSubParamsLength);return f.params.set(this.params),f.length=this.length,f._subParams.set(this._subParams),f._subParamsLength=this._subParamsLength,f._subParamsIdx.set(this._subParamsIdx),f._rejectDigits=this._rejectDigits,f._rejectSubDigits=this._rejectSubDigits,f._digitIsSub=this._digitIsSub,f},m.prototype.toArray=function(){for(var f=[],h=0;h<this.length;++h){f.push(this.params[h]);var u=this._subParamsIdx[h]>>8,a=255&this._subParamsIdx[h];a-u>0&&f.push(Array.prototype.slice.call(this._subParams,u,a))}return f},m.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},m.prototype.addParam=function(f){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(f<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=f>2147483647?2147483647:f}},m.prototype.addSubParam=function(f){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(f<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=f>2147483647?2147483647:f,this._subParamsIdx[this.length-1]++}},m.prototype.hasSubParams=function(f){return(255&this._subParamsIdx[f])-(this._subParamsIdx[f]>>8)>0},m.prototype.getSubParams=function(f){var h=this._subParamsIdx[f]>>8,u=255&this._subParamsIdx[f];return u-h>0?this._subParams.subarray(h,u):null},m.prototype.getSubParamsAll=function(){for(var f={},h=0;h<this.length;++h){var u=this._subParamsIdx[h]>>8,a=255&this._subParamsIdx[h];a-u>0&&(f[h]=this._subParams.slice(u,a))}return f},m.prototype.addDigit=function(f){var h;if(!(this._rejectDigits||!(h=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var u=this._digitIsSub?this._subParams:this.params,a=u[h-1];u[h-1]=~a?Math.min(10*a+f,2147483647):f}},m}();p.Params=A},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.OscHandler=p.OscParser=void 0;var A=x(23),m=x(8),f=function(){function u(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return u.prototype.addHandler=function(a,i){this._handlers[a]===void 0&&(this._handlers[a]=[]);var t=this._handlers[a];return t.push(i),{dispose:function(){var e=t.indexOf(i);e!==-1&&t.splice(e,1)}}},u.prototype.setHandler=function(a,i){this._handlers[a]=[i]},u.prototype.clearHandler=function(a){this._handlers[a]&&delete this._handlers[a]},u.prototype.setHandlerFallback=function(a){this._handlerFb=a},u.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},u.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},u.prototype._start=function(){var a=this._handlers[this._id];if(a)for(var i=a.length-1;i>=0;i--)a[i].start();else this._handlerFb(this._id,"START")},u.prototype._put=function(a,i,t){var o=this._handlers[this._id];if(o)for(var e=o.length-1;e>=0;e--)o[e].put(a,i,t);else this._handlerFb(this._id,"PUT",m.utf32ToString(a,i,t))},u.prototype._end=function(a){var i=this._handlers[this._id];if(i){for(var t=i.length-1;t>=0&&i[t].end(a)===!1;t--);for(t--;t>=0;t--)i[t].end(!1)}else this._handlerFb(this._id,"END",a)},u.prototype.start=function(){this.reset(),this._id=-1,this._state=1},u.prototype.put=function(a,i,t){if(this._state!==3){if(this._state===1)for(;i<t;){var o=a[i++];if(o===59){this._state=2,this._start();break}if(o<48||57<o)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+o-48}this._state===2&&t-i>0&&this._put(a,i,t)}},u.prototype.end=function(a){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(a)),this._id=-1,this._state=0)},u}();p.OscParser=f;var h=function(){function u(a){this._handler=a,this._data="",this._hitLimit=!1}return u.prototype.start=function(){this._data="",this._hitLimit=!1},u.prototype.put=function(a,i,t){this._hitLimit||(this._data+=m.utf32ToString(a,i,t),this._data.length>A.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},u.prototype.end=function(a){var i;return this._hitLimit?i=!1:a&&(i=this._handler(this._data)),this._data="",this._hitLimit=!1,i},u}();p.OscHandler=h},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PAYLOAD_LIMIT=void 0,p.PAYLOAD_LIMIT=1e7},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DcsHandler=p.DcsParser=void 0;var A=x(8),m=x(21),f=x(23),h=[],u=function(){function i(){this._handlers=Object.create(null),this._active=h,this._ident=0,this._handlerFb=function(){}}return i.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},i.prototype.addHandler=function(t,o){this._handlers[t]===void 0&&(this._handlers[t]=[]);var e=this._handlers[t];return e.push(o),{dispose:function(){var r=e.indexOf(o);r!==-1&&e.splice(r,1)}}},i.prototype.setHandler=function(t,o){this._handlers[t]=[o]},i.prototype.clearHandler=function(t){this._handlers[t]&&delete this._handlers[t]},i.prototype.setHandlerFallback=function(t){this._handlerFb=t},i.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=h,this._ident=0},i.prototype.hook=function(t,o){if(this.reset(),this._ident=t,this._active=this._handlers[t]||h,this._active.length)for(var e=this._active.length-1;e>=0;e--)this._active[e].hook(o);else this._handlerFb(this._ident,"HOOK",o)},i.prototype.put=function(t,o,e){if(this._active.length)for(var l=this._active.length-1;l>=0;l--)this._active[l].put(t,o,e);else this._handlerFb(this._ident,"PUT",A.utf32ToString(t,o,e))},i.prototype.unhook=function(t){if(this._active.length){for(var o=this._active.length-1;o>=0&&this._active[o].unhook(t)===!1;o--);for(o--;o>=0;o--)this._active[o].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",t);this._active=h,this._ident=0},i}();p.DcsParser=u;var a=function(){function i(t){this._handler=t,this._data="",this._hitLimit=!1}return i.prototype.hook=function(t){this._params=t.clone(),this._data="",this._hitLimit=!1},i.prototype.put=function(t,o,e){this._hitLimit||(this._data+=A.utf32ToString(t,o,e),this._data.length>f.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},i.prototype.unhook=function(t){var o;return this._hitLimit?o=!1:t&&(o=this._handler(this._data,this._params||new m.Params)),this._params=void 0,this._data="",this._hitLimit=!1,o},i}();p.DcsHandler=a},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.removeTerminalFromCache=p.acquireCharAtlas=void 0;var A=x(26),m=x(43),f=[];p.acquireCharAtlas=function(h,u,a,i,t){for(var o=A.generateConfig(i,t,h,a),e=0;e<f.length;e++){var l=(r=f[e]).ownedBy.indexOf(u);if(l>=0){if(A.configEquals(r.config,o))return r.atlas;r.ownedBy.length===1?(r.atlas.dispose(),f.splice(e,1)):r.ownedBy.splice(l,1);break}}for(e=0;e<f.length;e++){var r=f[e];if(A.configEquals(r.config,o))return r.ownedBy.push(u),r.atlas}var s={atlas:new m.DynamicCharAtlas(document,o),config:o,ownedBy:[u]};return f.push(s),s.atlas},p.removeTerminalFromCache=function(h){for(var u=0;u<f.length;u++){var a=f[u].ownedBy.indexOf(h);if(a!==-1){f[u].ownedBy.length===1?(f[u].atlas.dispose(),f.splice(u,1)):f[u].ownedBy.splice(a,1);break}}}},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.is256Color=p.configEquals=p.generateConfig=void 0;var A=x(3);p.generateConfig=function(m,f,h,u){var a={foreground:u.foreground,background:u.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:u.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:m,scaledCharHeight:f,fontFamily:h.fontFamily,fontSize:h.fontSize,fontWeight:h.fontWeight,fontWeightBold:h.fontWeightBold,allowTransparency:h.allowTransparency,colors:a}},p.configEquals=function(m,f){for(var h=0;h<m.colors.ansi.length;h++)if(m.colors.ansi[h].rgba!==f.colors.ansi[h].rgba)return!1;return m.devicePixelRatio===f.devicePixelRatio&&m.fontFamily===f.fontFamily&&m.fontSize===f.fontSize&&m.fontWeight===f.fontWeight&&m.fontWeightBold===f.fontWeightBold&&m.allowTransparency===f.allowTransparency&&m.scaledCharWidth===f.scaledCharWidth&&m.scaledCharHeight===f.scaledCharHeight&&m.colors.foreground===f.colors.foreground&&m.colors.background===f.colors.background},p.is256Color=function(m){return m<A.DEFAULT_COLOR}},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ColorManager=p.DEFAULT_ANSI_COLORS=void 0;var A=x(10),m=x(45),f=A.css.toColor("#ffffff"),h=A.css.toColor("#000000"),u=A.css.toColor("#ffffff"),a=A.css.toColor("#000000"),i={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};p.DEFAULT_ANSI_COLORS=function(){for(var o=[A.css.toColor("#2e3436"),A.css.toColor("#cc0000"),A.css.toColor("#4e9a06"),A.css.toColor("#c4a000"),A.css.toColor("#3465a4"),A.css.toColor("#75507b"),A.css.toColor("#06989a"),A.css.toColor("#d3d7cf"),A.css.toColor("#555753"),A.css.toColor("#ef2929"),A.css.toColor("#8ae234"),A.css.toColor("#fce94f"),A.css.toColor("#729fcf"),A.css.toColor("#ad7fa8"),A.css.toColor("#34e2e2"),A.css.toColor("#eeeeec")],e=[0,95,135,175,215,255],l=0;l<216;l++){var r=e[l/36%6|0],s=e[l/6%6|0],c=e[l%6];o.push({css:A.channels.toCss(r,s,c),rgba:A.channels.toRgba(r,s,c)})}for(l=0;l<24;l++){var d=8+10*l;o.push({css:A.channels.toCss(d,d,d),rgba:A.channels.toRgba(d,d,d)})}return o}();var t=function(){function o(e,l){this.allowTransparency=l;var r=e.createElement("canvas");r.width=1,r.height=1;var s=r.getContext("2d");if(!s)throw new Error("Could not get rendering context");this._ctx=s,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new m.ColorContrastCache,this.colors={foreground:f,background:h,cursor:u,cursorAccent:a,selectionTransparent:i,selectionOpaque:A.color.blend(h,i),ansi:p.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return o.prototype.onOptionsChange=function(e){e==="minimumContrastRatio"&&this._contrastCache.clear()},o.prototype.setTheme=function(e){(e===void 0&&(e={}),this.colors.foreground=this._parseColor(e.foreground,f),this.colors.background=this._parseColor(e.background,h),this.colors.cursor=this._parseColor(e.cursor,u,!0),this.colors.cursorAccent=this._parseColor(e.cursorAccent,a,!0),this.colors.selectionTransparent=this._parseColor(e.selection,i,!0),this.colors.selectionOpaque=A.color.blend(this.colors.background,this.colors.selectionTransparent),A.color.isOpaque(this.colors.selectionTransparent))&&(this.colors.selectionTransparent=A.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(e.black,p.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(e.red,p.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(e.green,p.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(e.yellow,p.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(e.blue,p.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(e.magenta,p.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(e.cyan,p.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(e.white,p.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(e.brightBlack,p.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(e.brightRed,p.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(e.brightGreen,p.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(e.brightYellow,p.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(e.brightBlue,p.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(e.brightMagenta,p.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(e.brightCyan,p.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(e.brightWhite,p.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},o.prototype._parseColor=function(e,l,r){if(r===void 0&&(r=this.allowTransparency),e===void 0)return l;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=e,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+e+" is invalid using fallback "+l.css),l;this._ctx.fillRect(0,0,1,1);var s=this._ctx.getImageData(0,0,1,1).data;if(s[3]!==255){if(!r)return console.warn("Color: "+e+" is using transparency, but allowTransparency is false. Using fallback "+l.css+"."),l;var c=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(E){return Number(E)}),d=c[0],g=c[1],v=c[2],b=c[3],S=Math.round(255*b);return{rgba:A.channels.toRgba(d,g,v,S),css:e}}return{css:this._ctx.fillStyle,rgba:A.channels.toRgba(s[0],s[1],s[2],s[3])}},o}();p.ColorManager=t},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.throwIfFalsy=void 0,p.throwIfFalsy=function(A){if(!A)throw new Error("value must not be falsy");return A}},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(o,e){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,r){l.__proto__=r}||function(l,r){for(var s in r)r.hasOwnProperty(s)&&(l[s]=r[s])})(o,e)},function(t,o){function e(){this.constructor=t}A(t,o),t.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)});Object.defineProperty(p,"__esModule",{value:!0}),p.CharacterJoinerRegistry=p.JoinedCellData=void 0;var f=x(6),h=x(3),u=x(4),a=function(t){function o(e,l,r){var s=t.call(this)||this;return s.content=0,s.combinedData="",s.fg=e.fg,s.bg=e.bg,s.combinedData=l,s._width=r,s}return m(o,t),o.prototype.isCombined=function(){return 2097152},o.prototype.getWidth=function(){return this._width},o.prototype.getChars=function(){return this.combinedData},o.prototype.getCode=function(){return 2097151},o.prototype.setFromCharData=function(e){throw new Error("not implemented")},o.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},o}(f.AttributeData);p.JoinedCellData=a;var i=function(){function t(o){this._bufferService=o,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new u.CellData}return t.prototype.registerCharacterJoiner=function(o){var e={id:this._nextCharacterJoinerId++,handler:o};return this._characterJoiners.push(e),e.id},t.prototype.deregisterCharacterJoiner=function(o){for(var e=0;e<this._characterJoiners.length;e++)if(this._characterJoiners[e].id===o)return this._characterJoiners.splice(e,1),!0;return!1},t.prototype.getJoinedCharacters=function(o){if(this._characterJoiners.length===0)return[];var e=this._bufferService.buffer.lines.get(o);if(!e||e.length===0)return[];for(var l=[],r=e.translateToString(!0),s=0,c=0,d=0,g=e.getFg(0),v=e.getBg(0),b=0;b<e.getTrimmedLength();b++)if(e.loadCell(b,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==g||this._workCell.bg!==v){if(b-s>1)for(var S=this._getJoinedRanges(r,d,c,e,s),E=0;E<S.length;E++)l.push(S[E]);s=b,d=c,g=this._workCell.fg,v=this._workCell.bg}c+=this._workCell.getChars().length||h.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-s>1)for(S=this._getJoinedRanges(r,d,c,e,s),E=0;E<S.length;E++)l.push(S[E]);return l},t.prototype._getJoinedRanges=function(o,e,l,r,s){for(var c=o.substring(e,l),d=this._characterJoiners[0].handler(c),g=1;g<this._characterJoiners.length;g++)for(var v=this._characterJoiners[g].handler(c),b=0;b<v.length;b++)t._mergeRanges(d,v[b]);return this._stringRangesToCellRanges(d,r,s),d},t.prototype._stringRangesToCellRanges=function(o,e,l){var r=0,s=!1,c=0,d=o[r];if(d){for(var g=l;g<this._bufferService.cols;g++){var v=e.getWidth(g),b=e.getString(g).length||h.WHITESPACE_CELL_CHAR.length;if(v!==0){if(!s&&d[0]<=c&&(d[0]=g,s=!0),d[1]<=c){if(d[1]=g,!(d=o[++r]))break;d[0]<=c?(d[0]=g,s=!0):s=!1}c+=b}}d&&(d[1]=this._bufferService.cols)}},t._mergeRanges=function(o,e){for(var l=!1,r=0;r<o.length;r++){var s=o[r];if(l){if(e[1]<=s[0])return o[r-1][1]=e[1],o;if(e[1]<=s[1])return o[r-1][1]=Math.max(e[1],s[1]),o.splice(r,1),o;o.splice(r,1),r--}else{if(e[1]<=s[0])return o.splice(r,0,e),o;if(e[1]<=s[1])return s[0]=Math.min(e[0],s[0]),o;e[0]<s[1]&&(s[0]=Math.min(e[0],s[0]),l=!0)}}return l?o[o.length-1][1]=e[1]:o.push(e),o},t}();p.CharacterJoinerRegistry=i},function(y,p,x){"use strict";function A(m,f){var h=f.getBoundingClientRect();return[m.clientX-h.left,m.clientY-h.top]}Object.defineProperty(p,"__esModule",{value:!0}),p.getRawByteCoords=p.getCoords=p.getCoordsRelativeToElement=void 0,p.getCoordsRelativeToElement=A,p.getCoords=function(m,f,h,u,a,i,t,o){if(a){var e=A(m,f);if(e)return e[0]=Math.ceil((e[0]+(o?i/2:0))/i),e[1]=Math.ceil(e[1]/t),e[0]=Math.min(Math.max(e[0],1),h+(o?1:0)),e[1]=Math.min(Math.max(e[1],1),u),e}},p.getRawByteCoords=function(m){if(m)return{x:m[0]+32,y:m[1]+32}}},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.RenderDebouncer=void 0;var A=function(){function m(f){this._renderCallback=f}return m.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},m.prototype.refresh=function(f,h,u){var a=this;this._rowCount=u,f=f!==void 0?f:0,h=h!==void 0?h:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,f):f,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,h):h,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return a._innerRefresh()}))},m.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var f=Math.max(this._rowStart,0),h=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(f,h)}},m}();p.RenderDebouncer=A},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(u,a){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,t){i.__proto__=t}||function(i,t){for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o])})(u,a)},function(h,u){function a(){this.constructor=h}A(h,u),h.prototype=u===null?Object.create(u):(a.prototype=u.prototype,new a)});Object.defineProperty(p,"__esModule",{value:!0}),p.ScreenDprMonitor=void 0;var f=function(h){function u(){var a=h!==null&&h.apply(this,arguments)||this;return a._currentDevicePixelRatio=window.devicePixelRatio,a}return m(u,h),u.prototype.setListener=function(a){var i=this;this._listener&&this.clearListener(),this._listener=a,this._outerListener=function(){i._listener&&(i._listener(window.devicePixelRatio,i._currentDevicePixelRatio),i._updateDpr())},this._updateDpr()},u.prototype.dispose=function(){h.prototype.dispose.call(this),this.clearListener()},u.prototype._updateDpr=function(){var a;this._outerListener&&((a=this._resolutionMediaMatchList)===null||a===void 0||a.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},u.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},u}(x(2).Disposable);p.ScreenDprMonitor=f},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.clone=void 0,p.clone=function A(m,f){if(f===void 0&&(f=5),typeof m!="object")return m;var h=Array.isArray(m)?[]:{};for(var u in m)h[u]=f<=1?m[u]:m[u]?A(m[u],f-1):m[u];return h}},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.Terminal=void 0;var A=x(4),m=x(35),f=x(18),h=x(0),u=x(83),a=function(){function r(s){this._core=new m.Terminal(s),this._addonManager=new u.AddonManager}return r.prototype._checkProposedApi=function(){if(!this._core.optionsService.options.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(r.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new e(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"unicode",{get:function(){return this._checkProposedApi(),new l(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"buffer",{get:function(){return this._checkProposedApi(),new t(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),r.prototype.blur=function(){this._core.blur()},r.prototype.focus=function(){this._core.focus()},r.prototype.resize=function(s,c){this._verifyIntegers(s,c),this._core.resize(s,c)},r.prototype.open=function(s){this._core.open(s)},r.prototype.attachCustomKeyEventHandler=function(s){this._core.attachCustomKeyEventHandler(s)},r.prototype.registerLinkMatcher=function(s,c,d){return this._checkProposedApi(),this._core.registerLinkMatcher(s,c,d)},r.prototype.deregisterLinkMatcher=function(s){this._checkProposedApi(),this._core.deregisterLinkMatcher(s)},r.prototype.registerLinkProvider=function(s){return this._checkProposedApi(),this._core.registerLinkProvider(s)},r.prototype.registerCharacterJoiner=function(s){return this._checkProposedApi(),this._core.registerCharacterJoiner(s)},r.prototype.deregisterCharacterJoiner=function(s){this._checkProposedApi(),this._core.deregisterCharacterJoiner(s)},r.prototype.registerMarker=function(s){return this._checkProposedApi(),this._verifyIntegers(s),this._core.addMarker(s)},r.prototype.addMarker=function(s){return this.registerMarker(s)},r.prototype.hasSelection=function(){return this._core.hasSelection()},r.prototype.select=function(s,c,d){this._verifyIntegers(s,c,d),this._core.select(s,c,d)},r.prototype.getSelection=function(){return this._core.getSelection()},r.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},r.prototype.clearSelection=function(){this._core.clearSelection()},r.prototype.selectAll=function(){this._core.selectAll()},r.prototype.selectLines=function(s,c){this._verifyIntegers(s,c),this._core.selectLines(s,c)},r.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},r.prototype.scrollLines=function(s){this._verifyIntegers(s),this._core.scrollLines(s)},r.prototype.scrollPages=function(s){this._verifyIntegers(s),this._core.scrollPages(s)},r.prototype.scrollToTop=function(){this._core.scrollToTop()},r.prototype.scrollToBottom=function(){this._core.scrollToBottom()},r.prototype.scrollToLine=function(s){this._verifyIntegers(s),this._core.scrollToLine(s)},r.prototype.clear=function(){this._core.clear()},r.prototype.write=function(s,c){this._core.write(s,c)},r.prototype.writeUtf8=function(s,c){this._core.write(s,c)},r.prototype.writeln=function(s,c){this._core.write(s),this._core.write(`\r
|
|
|
`,c)},r.prototype.paste=function(s){this._core.paste(s)},r.prototype.getOption=function(s){return this._core.optionsService.getOption(s)},r.prototype.setOption=function(s,c){this._core.optionsService.setOption(s,c)},r.prototype.refresh=function(s,c){this._verifyIntegers(s,c),this._core.refresh(s,c)},r.prototype.reset=function(){this._core.reset()},r.prototype.loadAddon=function(s){return this._addonManager.loadAddon(this,s)},Object.defineProperty(r,"strings",{get:function(){return f},enumerable:!1,configurable:!0}),r.prototype._verifyIntegers=function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];for(var d=0,g=s;d<g.length;d++){var v=g[d];if(v===1/0||isNaN(v)||v%1!=0)throw new Error("This API only accepts integers")}},r}();p.Terminal=a;var i=function(){function r(s,c){this._buffer=s,this.type=c}return r.prototype.init=function(s){return this._buffer=s,this},Object.defineProperty(r.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),r.prototype.getLine=function(s){var c=this._buffer.lines.get(s);if(c)return new o(c)},r.prototype.getNullCell=function(){return new A.CellData},r}(),t=function(){function r(s){var c=this;this._buffers=s,this._onBufferChange=new h.EventEmitter,this._normal=new i(this._buffers.normal,"normal"),this._alternate=new i(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return c._onBufferChange.fire(c.active)})}return Object.defineProperty(r.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"active",{get:function(){if(this._buffers.active===this._buffers.normal)return this.normal;if(this._buffers.active===this._buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),r}(),o=function(){function r(s){this._line=s}return Object.defineProperty(r.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),r.prototype.getCell=function(s,c){if(!(s<0||s>=this._line.length))return c?(this._line.loadCell(s,c),c):this._line.loadCell(s,new A.CellData)},r.prototype.translateToString=function(s,c,d){return this._line.translateToString(s,c,d)},r}(),e=function(){function r(s){this._core=s}return r.prototype.registerCsiHandler=function(s,c){return this._core.addCsiHandler(s,function(d){return c(d.toArray())})},r.prototype.addCsiHandler=function(s,c){return this.registerCsiHandler(s,c)},r.prototype.registerDcsHandler=function(s,c){return this._core.addDcsHandler(s,function(d,g){return c(d,g.toArray())})},r.prototype.addDcsHandler=function(s,c){return this.registerDcsHandler(s,c)},r.prototype.registerEscHandler=function(s,c){return this._core.addEscHandler(s,c)},r.prototype.addEscHandler=function(s,c){return this.registerEscHandler(s,c)},r.prototype.registerOscHandler=function(s,c){return this._core.addOscHandler(s,c)},r.prototype.addOscHandler=function(s,c){return this.registerOscHandler(s,c)},r}(),l=function(){function r(s){this._core=s}return r.prototype.register=function(s){this._core.unicodeService.register(s)},Object.defineProperty(r.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(c){this._core.unicodeService.activeVersion=c},enumerable:!1,configurable:!0}),r}()},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(B,j){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,z){W.__proto__=z}||function(W,z){for(var V in z)z.hasOwnProperty(V)&&(W[V]=z[V])})(B,j)},function(X,B){function j(){this.constructor=X}A(X,B),X.prototype=B===null?Object.create(B):(j.prototype=B.prototype,new j)});Object.defineProperty(p,"__esModule",{value:!0}),p.Terminal=void 0;var f=x(36),h=x(37),u=x(38),a=x(12),i=x(19),t=x(40),o=x(50),e=x(51),l=x(11),r=x(7),s=x(18),c=x(54),d=x(55),g=x(56),v=x(57),b=x(59),S=x(0),E=x(16),C=x(27),_=x(60),T=x(5),w=x(61),O=x(62),I=x(63),R=x(64),M=x(65),F=typeof window!="undefined"?window.document:null,P=function(X){function B(j){j===void 0&&(j={});var W=X.call(this,j)||this;return W.browser=l,W._keyDownHandled=!1,W._onCursorMove=new S.EventEmitter,W._onKey=new S.EventEmitter,W._onRender=new S.EventEmitter,W._onSelectionChange=new S.EventEmitter,W._onTitleChange=new S.EventEmitter,W._onFocus=new S.EventEmitter,W._onBlur=new S.EventEmitter,W._onA11yCharEmitter=new S.EventEmitter,W._onA11yTabEmitter=new S.EventEmitter,W._setup(),W.linkifier=W._instantiationService.createInstance(o.Linkifier),W.linkifier2=W.register(W._instantiationService.createInstance(I.Linkifier2)),W.register(W._inputHandler.onRequestBell(function(){return W.bell()})),W.register(W._inputHandler.onRequestRefreshRows(function(z,V){return W.refresh(z,V)})),W.register(W._inputHandler.onRequestReset(function(){return W.reset()})),W.register(W._inputHandler.onRequestScroll(function(z,V){return W.scroll(z,V||void 0)})),W.register(W._inputHandler.onRequestWindowsOptionsReport(function(z){return W._reportWindowsOptions(z)})),W.register(S.forwardEvent(W._inputHandler.onCursorMove,W._onCursorMove)),W.register(S.forwardEvent(W._inputHandler.onTitleChange,W._onTitleChange)),W.register(S.forwardEvent(W._inputHandler.onA11yChar,W._onA11yCharEmitter)),W.register(S.forwardEvent(W._inputHandler.onA11yTab,W._onA11yTabEmitter)),W.register(W._bufferService.onResize(function(z){return W._afterResize(z.cols,z.rows)})),W}return m(B,X),Object.defineProperty(B.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),B.prototype.dispose=function(){var j,W,z;this._isDisposed||(X.prototype.dispose.call(this),(j=this._renderService)===null||j===void 0||j.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(z=(W=this.element)===null||W===void 0?void 0:W.parentNode)===null||z===void 0||z.removeChild(this.element))},B.prototype._setup=function(){X.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(B.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),B.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},B.prototype._updateOptions=function(j){var W,z,V,Q;switch(X.prototype._updateOptions.call(this,j),j){case"fontFamily":case"fontSize":(W=this._renderService)===null||W===void 0||W.clear(),(z=this._charSizeService)===null||z===void 0||z.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":(V=this.viewport)===null||V===void 0||V.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new g.AccessibilityManager(this,this._renderService)):((Q=this._accessibilityManager)===null||Q===void 0||Q.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},B.prototype._onTextAreaFocus=function(j){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(a.C0.ESC+"[I"),this.updateCursorStyle(j),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},B.prototype.blur=function(){var j;return(j=this.textarea)===null||j===void 0?void 0:j.blur()},B.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(a.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},B.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var j=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),W=this._bufferService.buffer.y*j,z=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=z+"px",this.textarea.style.top=W+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=j+"px",this.textarea.style.lineHeight=j+"px",this.textarea.style.zIndex="-5"}},B.prototype._initGlobal=function(){var j=this;this._bindKeys(),this.register(r.addDisposableDomListener(this.element,"copy",function(z){j.hasSelection()&&u.copyHandler(z,j._selectionService)}));var W=function(V){return u.handlePasteEvent(V,j.textarea,j._coreService)};this.register(r.addDisposableDomListener(this.textarea,"paste",W)),this.register(r.addDisposableDomListener(this.element,"paste",W)),l.isFirefox?this.register(r.addDisposableDomListener(this.element,"mousedown",function(z){z.button===2&&u.rightClickHandler(z,j.textarea,j.screenElement,j._selectionService,j.options.rightClickSelectsWord)})):this.register(r.addDisposableDomListener(this.element,"contextmenu",function(z){u.rightClickHandler(z,j.textarea,j.screenElement,j._selectionService,j.options.rightClickSelectsWord)})),l.isLinux&&this.register(r.addDisposableDomListener(this.element,"auxclick",function(z){z.button===1&&u.moveTextAreaUnderMouseCursor(z,j.textarea,j.screenElement)}))},B.prototype._bindKeys=function(){var j=this;this.register(r.addDisposableDomListener(this.textarea,"keyup",function(W){return j._keyUp(W)},!0)),this.register(r.addDisposableDomListener(this.textarea,"keydown",function(W){return j._keyDown(W)},!0)),this.register(r.addDisposableDomListener(this.textarea,"keypress",function(W){return j._keyPress(W)},!0)),this.register(r.addDisposableDomListener(this.textarea,"compositionstart",function(){return j._compositionHelper.compositionstart()})),this.register(r.addDisposableDomListener(this.textarea,"compositionupdate",function(W){return j._compositionHelper.compositionupdate(W)})),this.register(r.addDisposableDomListener(this.textarea,"compositionend",function(){return j._compositionHelper.compositionend()})),this.register(this.onRender(function(){return j._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(W){return j._queueLinkification(W.start,W.end)}))},B.prototype.open=function(j){var W=this;if(!j)throw new Error("Terminal requires a parent element.");F.body.contains(j)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=j.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"),j.appendChild(this.element);var z=F.createDocumentFragment();this._viewportElement=F.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),z.appendChild(this._viewportElement),this._viewportScrollArea=F.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=F.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=F.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),z.appendChild(this.screenElement),this.textarea=F.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(r.addDisposableDomListener(this.textarea,"focus",function(G){return W._onTextAreaFocus(G)})),this.register(r.addDisposableDomListener(this.textarea,"blur",function(){return W._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var V=this._instantiationService.createInstance(R.CoreBrowserService,this.textarea);this._instantiationService.setService(T.ICoreBrowserService,V),this._charSizeService=this._instantiationService.createInstance(w.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(T.ICharSizeService,this._charSizeService),this._compositionView=F.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(f.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(z),this._theme=this.options.theme||this._theme,this._colorManager=new C.ColorManager(F,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(G){return W._colorManager.onOptionsChange(G)})),this._colorManager.setTheme(this._theme);var Q=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(_.RenderService,Q,this.rows,this.screenElement)),this._instantiationService.setService(T.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(G){return W._onRender.fire(G)})),this.onResize(function(G){return W._renderService.resize(G.cols,G.rows)}),this._soundService=this._instantiationService.createInstance(c.SoundService),this._instantiationService.setService(T.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(O.MouseService),this._instantiationService.setService(T.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(h.Viewport,function(G,ee){return W.scrollLines(G,ee)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return W.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){W._renderService.onCursorMove(),W._syncTextArea()})),this.register(this.onResize(function(){return W._renderService.onResize(W.cols,W.rows)})),this.register(this.onBlur(function(){return W._renderService.onBlur()})),this.register(this.onFocus(function(){return W._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return W.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(e.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(T.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(G){return W.scrollLines(G.amount,G.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return W._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(G){return W._renderService.onSelectionChanged(G.start,G.end,G.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(G){W.textarea.value=G,W.textarea.focus(),W.textarea.select()})),this.register(this.onScroll(function(){W.viewport.syncScrollArea(),W._selectionService.refresh()})),this.register(r.addDisposableDomListener(this._viewportElement,"scroll",function(){return W._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(d.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return W._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(r.addDisposableDomListener(this.element,"mousedown",function(G){return W._selectionService.onMouseDown(G)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new g.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},B.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(t.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(v.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},B.prototype._setTheme=function(j){var W,z,V;this._theme=j,(W=this._colorManager)===null||W===void 0||W.setTheme(j),(z=this._renderService)===null||z===void 0||z.setColors(this._colorManager.colors),(V=this.viewport)===null||V===void 0||V.onThemeChange(this._colorManager.colors)},B.prototype.bindMouse=function(){var j=this,W=this,z=this.element;function V(le){var Ie,ke,Re=W._mouseService.getRawByteCoords(le,W.screenElement,W.cols,W.rows);if(!Re)return!1;switch(le.overrideType||le.type){case"mousemove":ke=32,le.buttons===void 0?(Ie=3,le.button!==void 0&&(Ie=le.button<3?le.button:3)):Ie=1&le.buttons?0:4&le.buttons?1:2&le.buttons?2:3;break;case"mouseup":ke=0,Ie=le.button<3?le.button:3;break;case"mousedown":ke=1,Ie=le.button<3?le.button:3;break;case"wheel":le.deltaY!==0&&(ke=le.deltaY<0?0:1),Ie=4;break;default:return!1}return!(ke===void 0||Ie===void 0||Ie>4)&&W._coreMouseService.triggerMouseEvent({col:Re.x-33,row:Re.y-33,button:Ie,action:ke,ctrl:le.ctrlKey,alt:le.altKey,shift:le.shiftKey})}var Q={mouseup:null,wheel:null,mousedrag:null,mousemove:null},G=function(Ie){return V(Ie),Ie.buttons||(j._document.removeEventListener("mouseup",Q.mouseup),Q.mousedrag&&j._document.removeEventListener("mousemove",Q.mousedrag)),j.cancel(Ie)},ee=function(Ie){return V(Ie),Ie.preventDefault(),j.cancel(Ie)},ce=function(Ie){Ie.buttons&&V(Ie)},be=function(Ie){Ie.buttons||V(Ie)};this.register(this._coreMouseService.onProtocolChange(function(le){le?(j.optionsService.options.logLevel==="debug"&&j._logService.debug("Binding to mouse events:",j._coreMouseService.explainEvents(le)),j.element.classList.add("enable-mouse-events"),j._selectionService.disable()):(j._logService.debug("Unbinding from mouse events."),j.element.classList.remove("enable-mouse-events"),j._selectionService.enable()),8&le?Q.mousemove||(z.addEventListener("mousemove",be),Q.mousemove=be):(z.removeEventListener("mousemove",Q.mousemove),Q.mousemove=null),16&le?Q.wheel||(z.addEventListener("wheel",ee,{passive:!1}),Q.wheel=ee):(z.removeEventListener("wheel",Q.wheel),Q.wheel=null),2&le?Q.mouseup||(Q.mouseup=G):(j._document.removeEventListener("mouseup",Q.mouseup),Q.mouseup=null),4&le?Q.mousedrag||(Q.mousedrag=ce):(j._document.removeEventListener("mousemove",Q.mousedrag),Q.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(r.addDisposableDomListener(z,"mousedown",function(le){if(le.preventDefault(),j.focus(),j._coreMouseService.areMouseEventsActive&&!j._selectionService.shouldForceSelection(le))return V(le),Q.mouseup&&j._document.addEventListener("mouseup",Q.mouseup),Q.mousedrag&&j._document.addEventListener("mousemove",Q.mousedrag),j.cancel(le)})),this.register(r.addDisposableDomListener(z,"wheel",function(le){if(!Q.wheel){if(!j.buffer.hasScrollback){var Ie=j.viewport.getLinesScrolled(le);if(Ie===0)return;for(var ke=a.C0.ESC+(j._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(le.deltaY<0?"A":"B"),Re="",Qe=0;Qe<Math.abs(Ie);Qe++)Re+=ke;j._coreService.triggerDataEvent(Re,!0)}}},{passive:!0})),this.register(r.addDisposableDomListener(z,"wheel",function(le){if(!Q.wheel)return j.viewport.onWheel(le)?void 0:j.cancel(le)},{passive:!1})),this.register(r.addDisposableDomListener(z,"touchstart",function(le){if(!j._coreMouseService.areMouseEventsActive)return j.viewport.onTouchStart(le),j.cancel(le)},{passive:!0})),this.register(r.addDisposableDomListener(z,"touchmove",function(le){if(!j._coreMouseService.areMouseEventsActive)return j.viewport.onTouchMove(le)?void 0:j.cancel(le)},{passive:!1}))},B.prototype.refresh=function(j,W){var z;(z=this._renderService)===null||z===void 0||z.refreshRows(j,W)},B.prototype._queueLinkification=function(j,W){var z;(z=this.linkifier)===null||z===void 0||z.linkifyRows(j,W)},B.prototype.updateCursorStyle=function(j){this._selectionService&&this._selectionService.shouldColumnSelect(j)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},B.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},B.prototype.scrollLines=function(j,W){X.prototype.scrollLines.call(this,j,W),this.refresh(0,this.rows-1)},B.prototype.paste=function(j){u.paste(j,this.textarea,this._coreService)},B.prototype.attachCustomKeyEventHandler=function(j){this._customKeyEventHandler=j},B.prototype.registerLinkMatcher=function(j,W,z){var V=this.linkifier.registerLinkMatcher(j,W,z);return this.refresh(0,this.rows-1),V},B.prototype.deregisterLinkMatcher=function(j){this.linkifier.deregisterLinkMatcher(j)&&this.refresh(0,this.rows-1)},B.prototype.registerLinkProvider=function(j){return this.linkifier2.registerLinkProvider(j)},B.prototype.registerCharacterJoiner=function(j){var W=this._renderService.registerCharacterJoiner(j);return this.refresh(0,this.rows-1),W},B.prototype.deregisterCharacterJoiner=function(j){this._renderService.deregisterCharacterJoiner(j)&&this.refresh(0,this.rows-1)},Object.defineProperty(B.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),B.prototype.addMarker=function(j){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+j)},B.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},B.prototype.select=function(j,W,z){this._selectionService.setSelection(j,W,z)},B.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},B.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},B.prototype.clearSelection=function(){var j;(j=this._selectionService)===null||j===void 0||j.clearSelection()},B.prototype.selectAll=function(){var j;(j=this._selectionService)===null||j===void 0||j.selectAll()},B.prototype.selectLines=function(j,W){var z;(z=this._selectionService)===null||z===void 0||z.selectLines(j,W)},B.prototype._keyDown=function(j){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(j)===!1)return!1;if(!this._compositionHelper.keydown(j))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var W=b.evaluateKeyboardEvent(j,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(j),W.type===3||W.type===2){var z=this.rows-1;return this.scrollLines(W.type===2?-z:z),this.cancel(j,!0)}return W.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,j)||(W.cancel&&this.cancel(j,!0),!W.key||(W.key!==a.C0.ETX&&W.key!==a.C0.CR||(this.textarea.value=""),this._onKey.fire({key:W.key,domEvent:j}),this._showCursor(),this._coreService.triggerDataEvent(W.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(j,!0)))},B.prototype._isThirdLevelShift=function(j,W){var z=j.isMac&&!this.options.macOptionIsMeta&&W.altKey&&!W.ctrlKey&&!W.metaKey||j.isWindows&&W.altKey&&W.ctrlKey&&!W.metaKey;return W.type==="keypress"?z:z&&(!W.keyCode||W.keyCode>47)},B.prototype._keyUp=function(j){this._customKeyEventHandler&&this._customKeyEventHandler(j)===!1||(function(W){return W.keyCode===16||W.keyCode===17||W.keyCode===18}(j)||this.focus(),this.updateCursorStyle(j))},B.prototype._keyPress=function(j){var W;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&this._customKeyEventHandler(j)===!1)return!1;if(this.cancel(j),j.charCode)W=j.charCode;else if(j.which===null||j.which===void 0)W=j.keyCode;else{if(j.which===0||j.charCode===0)return!1;W=j.which}return!(!W||(j.altKey||j.ctrlKey||j.metaKey)&&!this._isThirdLevelShift(this.browser,j))&&(W=String.fromCharCode(W),this._onKey.fire({key:W,domEvent:j}),this._showCursor(),this._coreService.triggerDataEvent(W,!0),!0)},B.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},B.prototype.resize=function(j,W){j!==this.cols||W!==this.rows?X.prototype.resize.call(this,j,W):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},B.prototype._afterResize=function(j,W){var z,V;(z=this._charSizeService)===null||z===void 0||z.measure(),(V=this.viewport)===null||V===void 0||V.syncScrollArea(!0)},B.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 j=1;j<this.rows;j++)this.buffer.lines.push(this.buffer.getBlankLine(E.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},B.prototype.reset=function(){var j,W;this.options.rows=this.rows,this.options.cols=this.cols;var z=this._customKeyEventHandler;this._setup(),X.prototype.reset.call(this),(j=this._selectionService)===null||j===void 0||j.reset(),this._customKeyEventHandler=z,this.refresh(0,this.rows-1),(W=this.viewport)===null||W===void 0||W.syncScrollArea()},B.prototype._reportWindowsOptions=function(j){if(this._renderService)switch(j){case i.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var W=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),z=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(a.C0.ESC+"[4;"+z+";"+W+"t");break;case i.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var V=this._renderService.dimensions.scaledCellWidth.toFixed(0),Q=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(a.C0.ESC+"[6;"+Q+";"+V+"t")}},B.prototype.cancel=function(j,W){if(this.options.cancelEvents||W)return j.preventDefault(),j.stopPropagation(),!1},B.prototype._visualBell=function(){return!1},B.prototype._soundBell=function(){return this.options.bellStyle==="sound"},B}(M.CoreTerminal);p.Terminal=P},function(y,p,x){"use strict";var A=this&&this.__decorate||function(a,i,t,o){var e,l=arguments.length,r=l<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,t):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(a,i,t,o);else for(var s=a.length-1;s>=0;s--)(e=a[s])&&(r=(l<3?e(r):l>3?e(i,t,r):e(i,t))||r);return l>3&&r&&Object.defineProperty(i,t,r),r},m=this&&this.__param||function(a,i){return function(t,o){i(t,o,a)}};Object.defineProperty(p,"__esModule",{value:!0}),p.CompositionHelper=void 0;var f=x(5),h=x(1),u=function(){function a(i,t,o,e,l,r){this._textarea=i,this._compositionView=t,this._bufferService=o,this._optionsService=e,this._charSizeService=l,this._coreService=r,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(a.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),a.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},a.prototype.compositionupdate=function(i){var t=this;this._compositionView.textContent=i.data,this.updateCompositionElements(),setTimeout(function(){t._compositionPosition.end=t._textarea.value.length},0)},a.prototype.compositionend=function(){this._finalizeComposition(!0)},a.prototype.keydown=function(i){if(this._isComposing||this._isSendingComposition){if(i.keyCode===229)return!1;if(i.keyCode===16||i.keyCode===17||i.keyCode===18)return!1;this._finalizeComposition(!1)}return i.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},a.prototype._finalizeComposition=function(i){var t=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,i){var o={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(t._isSendingComposition){t._isSendingComposition=!1;var l=void 0;l=t._isComposing?t._textarea.value.substring(o.start,o.end):t._textarea.value.substring(o.start),t._coreService.triggerDataEvent(l,!0)}},0)}else{this._isSendingComposition=!1;var e=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(e,!0)}},a.prototype._handleAnyTextareaChanges=function(){var i=this,t=this._textarea.value;setTimeout(function(){if(!i._isComposing){var o=i._textarea.value.replace(t,"");o.length>0&&i._coreService.triggerDataEvent(o,!0)}},0)},a.prototype.updateCompositionElements=function(i){var t=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var o=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),e=this._bufferService.buffer.y*o,l=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=l+"px",this._compositionView.style.top=e+"px",this._compositionView.style.height=o+"px",this._compositionView.style.lineHeight=o+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var r=this._compositionView.getBoundingClientRect();this._textarea.style.left=l+"px",this._textarea.style.top=e+"px",this._textarea.style.width=r.width+"px",this._textarea.style.height=r.height+"px",this._textarea.style.lineHeight=r.height+"px"}i||setTimeout(function(){return t.updateCompositionElements(!0)},0)}},a=A([m(2,h.IBufferService),m(3,h.IOptionsService),m(4,f.ICharSizeService),m(5,h.ICoreService)],a)}();p.CompositionHelper=u},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(l,r){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var d in c)c.hasOwnProperty(d)&&(s[d]=c[d])})(l,r)},function(e,l){function r(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(r.prototype=l.prototype,new r)}),f=this&&this.__decorate||function(e,l,r,s){var c,d=arguments.length,g=d<3?l:s===null?s=Object.getOwnPropertyDescriptor(l,r):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,l,r,s);else for(var v=e.length-1;v>=0;v--)(c=e[v])&&(g=(d<3?c(g):d>3?c(l,r,g):c(l,r))||g);return d>3&&g&&Object.defineProperty(l,r,g),g},h=this&&this.__param||function(e,l){return function(r,s){l(r,s,e)}};Object.defineProperty(p,"__esModule",{value:!0}),p.Viewport=void 0;var u=x(2),a=x(7),i=x(5),t=x(1),o=function(e){function l(r,s,c,d,g,v,b){var S=e.call(this)||this;return S._scrollLines=r,S._viewportElement=s,S._scrollArea=c,S._bufferService=d,S._optionsService=g,S._charSizeService=v,S._renderService=b,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(a.addDisposableDomListener(S._viewportElement,"scroll",S._onScroll.bind(S))),setTimeout(function(){return S.syncScrollArea()},0),S}return m(l,e),l.prototype.onThemeChange=function(r){this._viewportElement.style.backgroundColor=r.background.css},l.prototype._refresh=function(r){var s=this;if(r)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 r=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==r&&(this._lastRecordedBufferHeight=r,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(r){if(r===void 0&&(r=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(r);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(r)}else this._refresh(r)},l.prototype._onScroll=function(r){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(r,s){var c=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(s<0&&this._viewportElement.scrollTop!==0||s>0&&c<this._lastRecordedBufferHeight)||(r.cancelable&&r.preventDefault(),!1)},l.prototype.onWheel=function(r){var s=this._getPixelsScrolled(r);return s!==0&&(this._viewportElement.scrollTop+=s,this._bubbleScroll(r,s))},l.prototype._getPixelsScrolled=function(r){if(r.deltaY===0)return 0;var s=this._applyScrollModifier(r.deltaY,r);return r.deltaMode===WheelEvent.DOM_DELTA_LINE?s*=this._currentRowHeight:r.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(s*=this._currentRowHeight*this._bufferService.rows),s},l.prototype.getLinesScrolled=function(r){if(r.deltaY===0)return 0;var s=this._applyScrollModifier(r.deltaY,r);return r.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(s/=this._currentRowHeight+0,this._wheelPartialScroll+=s,s=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):r.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(s*=this._bufferService.rows),s},l.prototype._applyScrollModifier=function(r,s){var c=this._optionsService.options.fastScrollModifier;return c==="alt"&&s.altKey||c==="ctrl"&&s.ctrlKey||c==="shift"&&s.shiftKey?r*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:r*this._optionsService.options.scrollSensitivity},l.prototype.onTouchStart=function(r){this._lastTouchY=r.touches[0].pageY},l.prototype.onTouchMove=function(r){var s=this._lastTouchY-r.touches[0].pageY;return this._lastTouchY=r.touches[0].pageY,s!==0&&(this._viewportElement.scrollTop+=s,this._bubbleScroll(r,s))},l=f([h(3,t.IBufferService),h(4,t.IOptionsService),h(5,i.ICharSizeService),h(6,i.IRenderService)],l)}(u.Disposable);p.Viewport=o},function(y,p,x){"use strict";function A(u){return u.replace(/\r?\n/g,"\r")}function m(u,a){return a?"[200~"+u+"[201~":u}function f(u,a,i){u=m(u=A(u),i.decPrivateModes.bracketedPasteMode),i.triggerDataEvent(u,!0),a.value=""}function h(u,a,i){var t=i.getBoundingClientRect(),o=u.clientX-t.left-10,e=u.clientY-t.top-10;a.style.width="20px",a.style.height="20px",a.style.left=o+"px",a.style.top=e+"px",a.style.zIndex="1000",a.focus()}Object.defineProperty(p,"__esModule",{value:!0}),p.rightClickHandler=p.moveTextAreaUnderMouseCursor=p.paste=p.handlePasteEvent=p.copyHandler=p.bracketTextForPaste=p.prepareTextForTerminal=void 0,p.prepareTextForTerminal=A,p.bracketTextForPaste=m,p.copyHandler=function(u,a){u.clipboardData&&u.clipboardData.setData("text/plain",a.selectionText),u.preventDefault()},p.handlePasteEvent=function(u,a,i){u.stopPropagation(),u.clipboardData&&f(u.clipboardData.getData("text/plain"),a,i)},p.paste=f,p.moveTextAreaUnderMouseCursor=h,p.rightClickHandler=function(u,a,i,t,o){h(u,a,i),o&&!t.isClickInSelection(u)&&t.selectWordAtCursor(u),a.value=t.selectionText,a.select()}},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(l,r){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var d in c)c.hasOwnProperty(d)&&(s[d]=c[d])})(l,r)},function(e,l){function r(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(r.prototype=l.prototype,new r)});Object.defineProperty(p,"__esModule",{value:!0}),p.EscapeSequenceParser=p.VT500_TRANSITION_TABLE=p.TransitionTable=void 0;var f=x(2),h=x(15),u=x(21),a=x(22),i=x(24),t=function(){function e(l){this.table=new Uint8Array(l)}return e.prototype.setDefault=function(l,r){h.fill(this.table,l<<4|r)},e.prototype.add=function(l,r,s,c){this.table[r<<8|l]=s<<4|c},e.prototype.addMany=function(l,r,s,c){for(var d=0;d<l.length;d++)this.table[r<<8|l[d]]=s<<4|c},e}();p.TransitionTable=t,p.VT500_TRANSITION_TABLE=function(){var e=new t(4095),l=Array.apply(null,Array(256)).map(function(v,b){return b}),r=function(b,S){return l.slice(b,S)},s=r(32,127),c=r(0,24);c.push(25),c.push.apply(c,r(28,32));var d,g=r(0,14);for(d in e.setDefault(1,0),e.addMany(s,0,2,0),g)e.addMany([24,26,153,154],d,3,0),e.addMany(r(128,144),d,3,0),e.addMany(r(144,152),d,3,0),e.add(156,d,0,0),e.add(27,d,11,1),e.add(157,d,4,8),e.addMany([152,158,159],d,0,7),e.add(155,d,11,3),e.add(144,d,11,9);return e.addMany(c,0,3,0),e.addMany(c,1,3,1),e.add(127,1,0,1),e.addMany(c,8,0,8),e.addMany(c,3,3,3),e.add(127,3,0,3),e.addMany(c,4,3,4),e.add(127,4,0,4),e.addMany(c,6,3,6),e.addMany(c,5,3,5),e.add(127,5,0,5),e.addMany(c,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(s,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(r(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(s,7,0,7),e.addMany(c,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(r(64,127),3,7,0),e.addMany(r(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(r(48,60),4,8,4),e.addMany(r(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(r(32,64),6,0,6),e.add(127,6,0,6),e.addMany(r(64,127),6,0,0),e.addMany(r(32,48),3,9,5),e.addMany(r(32,48),5,9,5),e.addMany(r(48,64),5,0,6),e.addMany(r(64,127),5,7,0),e.addMany(r(32,48),4,9,5),e.addMany(r(32,48),1,9,2),e.addMany(r(32,48),2,9,2),e.addMany(r(48,127),2,10,0),e.addMany(r(48,80),1,10,0),e.addMany(r(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(r(96,127),1,10,0),e.add(80,1,11,9),e.addMany(c,9,0,9),e.add(127,9,0,9),e.addMany(r(28,32),9,0,9),e.addMany(r(32,48),9,9,12),e.addMany(r(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(c,11,0,11),e.addMany(r(32,128),11,0,11),e.addMany(r(28,32),11,0,11),e.addMany(c,10,0,10),e.add(127,10,0,10),e.addMany(r(28,32),10,0,10),e.addMany(r(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(r(32,48),10,9,12),e.addMany(c,12,0,12),e.add(127,12,0,12),e.addMany(r(28,32),12,0,12),e.addMany(r(32,48),12,9,12),e.addMany(r(48,64),12,0,11),e.addMany(r(64,127),12,12,13),e.addMany(r(64,127),10,12,13),e.addMany(r(64,127),9,12,13),e.addMany(c,13,13,13),e.addMany(s,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(160,0,2,0),e.add(160,8,5,8),e.add(160,6,0,6),e.add(160,11,0,11),e.add(160,13,13,13),e}();var o=function(e){function l(r){r===void 0&&(r=p.VT500_TRANSITION_TABLE);var s=e.call(this)||this;return s._transitions=r,s.initialState=0,s.currentState=s.initialState,s._params=new u.Params,s._params.addParam(0),s._collect=0,s.precedingCodepoint=0,s._printHandlerFb=function(c,d,g){},s._executeHandlerFb=function(c){},s._csiHandlerFb=function(c,d){},s._escHandlerFb=function(c){},s._errorHandlerFb=function(c){return c},s._printHandler=s._printHandlerFb,s._executeHandlers=Object.create(null),s._csiHandlers=Object.create(null),s._escHandlers=Object.create(null),s._oscParser=new a.OscParser,s._dcsParser=new i.DcsParser,s._errorHandler=s._errorHandlerFb,s.setEscHandler({final:"\\"},function(){}),s}return m(l,e),l.prototype._identifier=function(r,s){s===void 0&&(s=[64,126]);var c=0;if(r.prefix){if(r.prefix.length>1)throw new Error("only one byte as prefix supported");if((c=r.prefix.charCodeAt(0))&&60>c||c>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(r.intermediates){if(r.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var d=0;d<r.intermediates.length;++d){var g=r.intermediates.charCodeAt(d);if(32>g||g>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");c<<=8,c|=g}}if(r.final.length!==1)throw new Error("final must be a single byte");var v=r.final.charCodeAt(0);if(s[0]>v||v>s[1])throw new Error("final must be in range "+s[0]+" .. "+s[1]);return c<<=8,c|=v},l.prototype.identToString=function(r){for(var s=[];r;)s.push(String.fromCharCode(255&r)),r>>=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(r){this._printHandler=r},l.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},l.prototype.addEscHandler=function(r,s){var c=this._identifier(r,[48,126]);this._escHandlers[c]===void 0&&(this._escHandlers[c]=[]);var d=this._escHandlers[c];return d.push(s),{dispose:function(){var v=d.indexOf(s);v!==-1&&d.splice(v,1)}}},l.prototype.setEscHandler=function(r,s){this._escHandlers[this._identifier(r,[48,126])]=[s]},l.prototype.clearEscHandler=function(r){this._escHandlers[this._identifier(r,[48,126])]&&delete this._escHandlers[this._identifier(r,[48,126])]},l.prototype.setEscHandlerFallback=function(r){this._escHandlerFb=r},l.prototype.setExecuteHandler=function(r,s){this._executeHandlers[r.charCodeAt(0)]=s},l.prototype.clearExecuteHandler=function(r){this._executeHandlers[r.charCodeAt(0)]&&delete this._executeHandlers[r.charCodeAt(0)]},l.prototype.setExecuteHandlerFallback=function(r){this._executeHandlerFb=r},l.prototype.addCsiHandler=function(r,s){var c=this._identifier(r);this._csiHandlers[c]===void 0&&(this._csiHandlers[c]=[]);var d=this._csiHandlers[c];return d.push(s),{dispose:function(){var v=d.indexOf(s);v!==-1&&d.splice(v,1)}}},l.prototype.setCsiHandler=function(r,s){this._csiHandlers[this._identifier(r)]=[s]},l.prototype.clearCsiHandler=function(r){this._csiHandlers[this._identifier(r)]&&delete this._csiHandlers[this._identifier(r)]},l.prototype.setCsiHandlerFallback=function(r){this._csiHandlerFb=r},l.prototype.addDcsHandler=function(r,s){return this._dcsParser.addHandler(this._identifier(r),s)},l.prototype.setDcsHandler=function(r,s){this._dcsParser.setHandler(this._identifier(r),s)},l.prototype.clearDcsHandler=function(r){this._dcsParser.clearHandler(this._identifier(r))},l.prototype.setDcsHandlerFallback=function(r){this._dcsParser.setHandlerFallback(r)},l.prototype.addOscHandler=function(r,s){return this._oscParser.addHandler(r,s)},l.prototype.setOscHandler=function(r,s){this._oscParser.setHandler(r,s)},l.prototype.clearOscHandler=function(r){this._oscParser.clearHandler(r)},l.prototype.setOscHandlerFallback=function(r){this._oscParser.setHandlerFallback(r)},l.prototype.setErrorHandler=function(r){this._errorHandler=r},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(r,s){for(var c=0,d=0,g=this.currentState,v=this._oscParser,b=this._dcsParser,S=this._collect,E=this._params,C=this._transitions.table,_=0;_<s;++_){switch((d=C[g<<8|((c=r[_])<160?c:160)])>>4){case 2:for(var T=_+1;;++T){if(T>=s||(c=r[T])<32||c>126&&c<160){this._printHandler(r,_,T),_=T-1;break}if(++T>=s||(c=r[T])<32||c>126&&c<160){this._printHandler(r,_,T),_=T-1;break}if(++T>=s||(c=r[T])<32||c>126&&c<160){this._printHandler(r,_,T),_=T-1;break}if(++T>=s||(c=r[T])<32||c>126&&c<160){this._printHandler(r,_,T),_=T-1;break}}break;case 3:this._executeHandlers[c]?this._executeHandlers[c]():this._executeHandlerFb(c),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:_,code:c,currentState:g,collect:S,params:E,abort:!1}).abort)return;break;case 7:for(var w=this._csiHandlers[S<<8|c],O=w?w.length-1:-1;O>=0&&w[O](E)===!1;O--);O<0&&this._csiHandlerFb(S<<8|c,E),this.precedingCodepoint=0;break;case 8:do switch(c){case 59:E.addParam(0);break;case 58:E.addSubParam(-1);break;default:E.addDigit(c-48)}while(++_<s&&(c=r[_])>47&&c<60);_--;break;case 9:S<<=8,S|=c;break;case 10:for(var I=this._escHandlers[S<<8|c],R=I?I.length-1:-1;R>=0&&I[R]()===!1;R--);R<0&&this._escHandlerFb(S<<8|c),this.precedingCodepoint=0;break;case 11:E.reset(),E.addParam(0),S=0;break;case 12:b.hook(S<<8|c,E);break;case 13:for(var M=_+1;;++M)if(M>=s||(c=r[M])===24||c===26||c===27||c>127&&c<160){b.put(r,_,M),_=M-1;break}break;case 14:b.unhook(c!==24&&c!==26),c===27&&(d|=1),E.reset(),E.addParam(0),S=0,this.precedingCodepoint=0;break;case 4:v.start();break;case 5:for(var F=_+1;;F++)if(F>=s||(c=r[F])<32||c>127&&c<=159){v.put(r,_,F),_=F-1;break}break;case 6:v.end(c!==24&&c!==26),c===27&&(d|=1),E.reset(),E.addParam(0),S=0,this.precedingCodepoint=0}g=15&d}this._collect=S,this.currentState=g},l}(f.Disposable);p.EscapeSequenceParser=o},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(b,S){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,C){E.__proto__=C}||function(E,C){for(var _ in C)C.hasOwnProperty(_)&&(E[_]=C[_])})(b,S)},function(v,b){function S(){this.constructor=v}A(v,b),v.prototype=b===null?Object.create(b):(S.prototype=b.prototype,new S)}),f=this&&this.__decorate||function(v,b,S,E){var C,_=arguments.length,T=_<3?b:E===null?E=Object.getOwnPropertyDescriptor(b,S):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(v,b,S,E);else for(var w=v.length-1;w>=0;w--)(C=v[w])&&(T=(_<3?C(T):_>3?C(b,S,T):C(b,S))||T);return _>3&&T&&Object.defineProperty(b,S,T),T},h=this&&this.__param||function(v,b){return function(S,E){b(S,E,v)}};Object.defineProperty(p,"__esModule",{value:!0}),p.Renderer=void 0;var u=x(41),a=x(47),i=x(48),t=x(49),o=x(29),e=x(2),l=x(5),r=x(1),s=x(25),c=x(0),d=1,g=function(v){function b(S,E,C,_,T,w,O,I,R){var M=v.call(this)||this;M._colors=S,M._screenElement=E,M._bufferService=T,M._charSizeService=w,M._optionsService=O,M._id=d++,M._onRequestRedraw=new c.EventEmitter;var F=M._optionsService.options.allowTransparency;return M._characterJoinerRegistry=new o.CharacterJoinerRegistry(M._bufferService),M._renderLayers=[new u.TextRenderLayer(M._screenElement,0,M._colors,M._characterJoinerRegistry,F,M._id,M._bufferService,O),new a.SelectionRenderLayer(M._screenElement,1,M._colors,M._id,M._bufferService,O),new t.LinkRenderLayer(M._screenElement,2,M._colors,M._id,C,_,M._bufferService,O),new i.CursorRenderLayer(M._screenElement,3,M._colors,M._id,M._onRequestRedraw,M._bufferService,O,I,R)],M.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},M._devicePixelRatio=window.devicePixelRatio,M._updateDimensions(),M.onOptionsChanged(),M}return m(b,v),Object.defineProperty(b.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){for(var S=0,E=this._renderLayers;S<E.length;S++)E[S].dispose();v.prototype.dispose.call(this),s.removeTerminalFromCache(this._id)},b.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},b.prototype.setColors=function(S){this._colors=S;for(var E=0,C=this._renderLayers;E<C.length;E++){var _=C[E];_.setColors(this._colors),_.reset()}},b.prototype.onResize=function(S,E){this._updateDimensions();for(var C=0,_=this._renderLayers;C<_.length;C++)_[C].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},b.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},b.prototype.onBlur=function(){this._runOperation(function(S){return S.onBlur()})},b.prototype.onFocus=function(){this._runOperation(function(S){return S.onFocus()})},b.prototype.onSelectionChanged=function(S,E,C){C===void 0&&(C=!1),this._runOperation(function(_){return _.onSelectionChanged(S,E,C)})},b.prototype.onCursorMove=function(){this._runOperation(function(S){return S.onCursorMove()})},b.prototype.onOptionsChanged=function(){this._runOperation(function(S){return S.onOptionsChanged()})},b.prototype.clear=function(){this._runOperation(function(S){return S.reset()})},b.prototype._runOperation=function(S){for(var E=0,C=this._renderLayers;E<C.length;E++)S(C[E])},b.prototype.renderRows=function(S,E){for(var C=0,_=this._renderLayers;C<_.length;C++)_[C].onGridChanged(S,E)},b.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharTop=this._optionsService.options.lineHeight===1?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},b.prototype.registerCharacterJoiner=function(S){return this._characterJoinerRegistry.registerCharacterJoiner(S)},b.prototype.deregisterCharacterJoiner=function(S){return this._characterJoinerRegistry.deregisterCharacterJoiner(S)},b=f([h(4,r.IBufferService),h(5,l.ICharSizeService),h(6,r.IOptionsService),h(7,r.ICoreService),h(8,l.ICoreBrowserService)],b)}(e.Disposable);p.Renderer=g},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(l,r){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var d in c)c.hasOwnProperty(d)&&(s[d]=c[d])})(l,r)},function(e,l){function r(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(r.prototype=l.prototype,new r)});Object.defineProperty(p,"__esModule",{value:!0}),p.TextRenderLayer=void 0;var f=x(42),h=x(13),u=x(6),a=x(3),i=x(29),t=x(4),o=function(e){function l(r,s,c,d,g,v,b,S){var E=e.call(this,r,"text",s,g,c,v,b,S)||this;return E._characterWidth=0,E._characterFont="",E._characterOverlapCache={},E._workCell=new t.CellData,E._state=new f.GridCache,E._characterJoinerRegistry=d,E}return m(l,e),l.prototype.resize=function(r){e.prototype.resize.call(this,r);var s=this._getFont(!1,!1);this._characterWidth===r.scaledCharWidth&&this._characterFont===s||(this._characterWidth=r.scaledCharWidth,this._characterFont=s,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},l.prototype.reset=function(){this._state.clear(),this._clearAll()},l.prototype._forEachCell=function(r,s,c,d){for(var g=r;g<=s;g++)for(var v=g+this._bufferService.buffer.ydisp,b=this._bufferService.buffer.lines.get(v),S=c?c.getJoinedCharacters(v):[],E=0;E<this._bufferService.cols;E++){b.loadCell(E,this._workCell);var C=this._workCell,_=!1,T=E;if(C.getWidth()!==0){if(S.length>0&&E===S[0][0]){_=!0;var w=S.shift();C=new i.JoinedCellData(this._workCell,b.translateToString(!0,w[0],w[1]),w[1]-w[0]),T=w[1]-1}!_&&this._isOverlapping(C)&&T<b.length-1&&b.getCodePoint(T+1)===a.NULL_CELL_CODE&&(C.content&=-12582913,C.content|=2<<22),d(C,E,g),E=T}}},l.prototype._drawBackground=function(r,s){var c=this,d=this._ctx,g=this._bufferService.cols,v=0,b=0,S=null;d.save(),this._forEachCell(r,s,null,function(E,C,_){var T=null;E.isInverse()?T=E.isFgDefault()?c._colors.foreground.css:E.isFgRGB()?"rgb("+u.AttributeData.toColorRGB(E.getFgColor()).join(",")+")":c._colors.ansi[E.getFgColor()].css:E.isBgRGB()?T="rgb("+u.AttributeData.toColorRGB(E.getBgColor()).join(",")+")":E.isBgPalette()&&(T=c._colors.ansi[E.getBgColor()].css),S===null&&(v=C,b=_),_!==b?(d.fillStyle=S||"",c._fillCells(v,b,g-v,1),v=C,b=_):S!==T&&(d.fillStyle=S||"",c._fillCells(v,b,C-v,1),v=C,b=_),S=T}),S!==null&&(d.fillStyle=S,this._fillCells(v,b,g-v,1)),d.restore()},l.prototype._drawForeground=function(r,s){var c=this;this._forEachCell(r,s,this._characterJoinerRegistry,function(d,g,v){if(!d.isInvisible()&&(c._drawChars(d,g,v),d.isUnderline())){if(c._ctx.save(),d.isInverse())if(d.isBgDefault())c._ctx.fillStyle=c._colors.background.css;else if(d.isBgRGB())c._ctx.fillStyle="rgb("+u.AttributeData.toColorRGB(d.getBgColor()).join(",")+")";else{var b=d.getBgColor();c._optionsService.options.drawBoldTextInBrightColors&&d.isBold()&&b<8&&(b+=8),c._ctx.fillStyle=c._colors.ansi[b].css}else if(d.isFgDefault())c._ctx.fillStyle=c._colors.foreground.css;else if(d.isFgRGB())c._ctx.fillStyle="rgb("+u.AttributeData.toColorRGB(d.getFgColor()).join(",")+")";else{var S=d.getFgColor();c._optionsService.options.drawBoldTextInBrightColors&&d.isBold()&&S<8&&(S+=8),c._ctx.fillStyle=c._colors.ansi[S].css}c._fillBottomLineAtCells(g,v,d.getWidth()),c._ctx.restore()}})},l.prototype.onGridChanged=function(r,s){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,r,this._bufferService.cols,s-r+1),this._drawBackground(r,s),this._drawForeground(r,s))},l.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},l.prototype._isOverlapping=function(r){if(r.getWidth()!==1)return!1;if(r.getCode()<256)return!1;var s=r.getChars();if(this._characterOverlapCache.hasOwnProperty(s))return this._characterOverlapCache[s];this._ctx.save(),this._ctx.font=this._characterFont;var c=Math.floor(this._ctx.measureText(s).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[s]=c,c},l}(h.BaseRenderLayer);p.TextRenderLayer=o},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GridCache=void 0;var A=function(){function m(){this.cache=[]}return m.prototype.resize=function(f,h){for(var u=0;u<f;u++){this.cache.length<=u&&this.cache.push([]);for(var a=this.cache[u].length;a<h;a++)this.cache[u].push(void 0);this.cache[u].length=h}this.cache.length=f},m.prototype.clear=function(){for(var f=0;f<this.cache.length;f++)for(var h=0;h<this.cache[f].length;h++)this.cache[f][h]=void 0},m}();p.GridCache=A},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(d,g){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var S in b)b.hasOwnProperty(S)&&(v[S]=b[S])})(d,g)},function(c,d){function g(){this.constructor=c}A(c,d),c.prototype=d===null?Object.create(d):(g.prototype=d.prototype,new g)});Object.defineProperty(p,"__esModule",{value:!0}),p.NoneCharAtlas=p.DynamicCharAtlas=p.getGlyphCacheKey=void 0;var f=x(9),h=x(44),u=x(27),a=x(46),i=x(11),t=x(28),o=x(10),e={css:"rgba(0, 0, 0, 0)",rgba:0};function l(c){return c.code<<21|c.bg<<12|c.fg<<3|(c.bold?0:4)+(c.dim?0:2)+(c.italic?0:1)}p.getGlyphCacheKey=l;var r=function(c){function d(g,v){var b=c.call(this)||this;b._config=v,b._drawToCacheCount=0,b._glyphsWaitingOnBitmap=[],b._bitmapCommitTimeout=null,b._bitmap=null,b._cacheCanvas=g.createElement("canvas"),b._cacheCanvas.width=1024,b._cacheCanvas.height=1024,b._cacheCtx=t.throwIfFalsy(b._cacheCanvas.getContext("2d",{alpha:!0}));var S=g.createElement("canvas");S.width=b._config.scaledCharWidth,S.height=b._config.scaledCharHeight,b._tmpCtx=t.throwIfFalsy(S.getContext("2d",{alpha:b._config.allowTransparency})),b._width=Math.floor(1024/b._config.scaledCharWidth),b._height=Math.floor(1024/b._config.scaledCharHeight);var E=b._width*b._height;return b._cacheMap=new a.LRUMap(E),b._cacheMap.prealloc(E),b}return m(d,c),d.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},d.prototype.beginFrame=function(){this._drawToCacheCount=0},d.prototype.draw=function(g,v,b,S){if(v.code===32)return!0;if(!this._canCache(v))return!1;var E=l(v),C=this._cacheMap.get(E);if(C!=null)return this._drawFromCache(g,C,b,S),!0;if(this._drawToCacheCount<100){var _=void 0;_=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var T=this._drawToCache(v,_);return this._cacheMap.set(E,T),this._drawFromCache(g,T,b,S),!0}return!1},d.prototype._canCache=function(g){return g.code<256},d.prototype._toCoordinateX=function(g){return g%this._width*this._config.scaledCharWidth},d.prototype._toCoordinateY=function(g){return Math.floor(g/this._width)*this._config.scaledCharHeight},d.prototype._drawFromCache=function(g,v,b,S){if(!v.isEmpty){var E=this._toCoordinateX(v.index),C=this._toCoordinateY(v.index);g.drawImage(v.inBitmap?this._bitmap:this._cacheCanvas,E,C,this._config.scaledCharWidth,this._config.scaledCharHeight,b,S,this._config.scaledCharWidth,this._config.scaledCharHeight)}},d.prototype._getColorFromAnsiIndex=function(g){return g<this._config.colors.ansi.length?this._config.colors.ansi[g]:u.DEFAULT_ANSI_COLORS[g]},d.prototype._getBackgroundColor=function(g){return this._config.allowTransparency?e:g.bg===f.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:g.bg<256?this._getColorFromAnsiIndex(g.bg):this._config.colors.background},d.prototype._getForegroundColor=function(g){return g.fg===f.INVERTED_DEFAULT_COLOR?o.color.opaque(this._config.colors.background):g.fg<256?this._getColorFromAnsiIndex(g.fg):this._config.colors.foreground},d.prototype._drawToCache=function(g,v){this._drawToCacheCount++,this._tmpCtx.save();var b=this._getBackgroundColor(g);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=b.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var S=g.bold?this._config.fontWeightBold:this._config.fontWeight,E=g.italic?"italic":"";this._tmpCtx.font=E+" "+S+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(g).css,g.dim&&(this._tmpCtx.globalAlpha=f.DIM_OPACITY),this._tmpCtx.fillText(g.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var C=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),_=!1;this._config.allowTransparency||(_=function(I,R){for(var M=!0,F=R.rgba>>>24,P=R.rgba>>>16&255,X=R.rgba>>>8&255,B=0;B<I.data.length;B+=4)I.data[B]===F&&I.data[B+1]===P&&I.data[B+2]===X?I.data[B+3]=0:M=!1;return M}(C,b));var T=this._toCoordinateX(v),w=this._toCoordinateY(v);this._cacheCtx.putImageData(C,T,w);var O={index:v,isEmpty:_,inBitmap:!1};return this._addGlyphToBitmap(O),O},d.prototype._addGlyphToBitmap=function(g){var v=this;!("createImageBitmap"in window)||i.isFirefox||i.isSafari||(this._glyphsWaitingOnBitmap.push(g),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return v._generateBitmap()},100)))},d.prototype._generateBitmap=function(){var g=this,v=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(b){g._bitmap=b;for(var S=0;S<v.length;S++)v[S].inBitmap=!0}),this._bitmapCommitTimeout=null},d}(h.BaseCharAtlas);p.DynamicCharAtlas=r;var s=function(c){function d(g,v){return c.call(this)||this}return m(d,c),d.prototype.draw=function(g,v,b,S){return!1},d}(h.BaseCharAtlas);p.NoneCharAtlas=s},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BaseCharAtlas=void 0;var A=function(){function m(){this._didWarmUp=!1}return m.prototype.dispose=function(){},m.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},m.prototype._doWarmUp=function(){},m.prototype.beginFrame=function(){},m}();p.BaseCharAtlas=A},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ColorContrastCache=void 0;var A=function(){function m(){this._color={},this._rgba={}}return m.prototype.clear=function(){this._color={},this._rgba={}},m.prototype.setCss=function(f,h,u){this._rgba[f]||(this._rgba[f]={}),this._rgba[f][h]=u},m.prototype.getCss=function(f,h){return this._rgba[f]?this._rgba[f][h]:void 0},m.prototype.setColor=function(f,h,u){this._color[f]||(this._color[f]={}),this._color[f][h]=u},m.prototype.getColor=function(f,h){return this._color[f]?this._color[f][h]:void 0},m}();p.ColorContrastCache=A},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.LRUMap=void 0;var A=function(){function m(f){this.capacity=f,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return m.prototype._unlinkNode=function(f){var h=f.prev,u=f.next;f===this._head&&(this._head=u),f===this._tail&&(this._tail=h),h!==null&&(h.next=u),u!==null&&(u.prev=h)},m.prototype._appendNode=function(f){var h=this._tail;h!==null&&(h.next=f),f.prev=h,f.next=null,this._tail=f,this._head===null&&(this._head=f)},m.prototype.prealloc=function(f){for(var h=this._nodePool,u=0;u<f;u++)h.push({prev:null,next:null,key:null,value:null})},m.prototype.get=function(f){var h=this._map[f];return h!==void 0?(this._unlinkNode(h),this._appendNode(h),h.value):null},m.prototype.peekValue=function(f){var h=this._map[f];return h!==void 0?h.value:null},m.prototype.peek=function(){var f=this._head;return f===null?null:f.value},m.prototype.set=function(f,h){var u=this._map[f];if(u!==void 0)u=this._map[f],this._unlinkNode(u),u.value=h;else if(this.size>=this.capacity)u=this._head,this._unlinkNode(u),delete this._map[u.key],u.key=f,u.value=h,this._map[f]=u;else{var a=this._nodePool;a.length>0?((u=a.pop()).key=f,u.value=h):u={prev:null,next:null,key:f,value:h},this._map[f]=u,this.size++}this._appendNode(u)},m}();p.LRUMap=A},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(u,a){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,t){i.__proto__=t}||function(i,t){for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o])})(u,a)},function(h,u){function a(){this.constructor=h}A(h,u),h.prototype=u===null?Object.create(u):(a.prototype=u.prototype,new a)});Object.defineProperty(p,"__esModule",{value:!0}),p.SelectionRenderLayer=void 0;var f=function(h){function u(a,i,t,o,e,l){var r=h.call(this,a,"selection",i,!0,t,o,e,l)||this;return r._clearState(),r}return m(u,h),u.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},u.prototype.resize=function(a){h.prototype.resize.call(this,a),this._clearState()},u.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},u.prototype.onSelectionChanged=function(a,i,t){if(this._didStateChange(a,i,t,this._bufferService.buffer.ydisp))if(this._clearAll(),a&&i){var o=a[1]-this._bufferService.buffer.ydisp,e=i[1]-this._bufferService.buffer.ydisp,l=Math.max(o,0),r=Math.min(e,this._bufferService.rows-1);if(!(l>=this._bufferService.rows||r<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,t){var s=a[0],c=i[0]-s,d=r-l+1;this._fillCells(s,l,c,d)}else{s=o===l?a[0]:0;var g=l===r?i[0]:this._bufferService.cols;this._fillCells(s,l,g-s,1);var v=Math.max(r-l-1,0);if(this._fillCells(0,l+1,this._bufferService.cols,v),l!==r){var b=e===r?i[0]:this._bufferService.cols;this._fillCells(0,r,b,1)}}this._state.start=[a[0],a[1]],this._state.end=[i[0],i[1]],this._state.columnSelectMode=t,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},u.prototype._didStateChange=function(a,i,t,o){return!this._areCoordinatesEqual(a,this._state.start)||!this._areCoordinatesEqual(i,this._state.end)||t!==this._state.columnSelectMode||o!==this._state.ydisp},u.prototype._areCoordinatesEqual=function(a,i){return!(!a||!i)&&a[0]===i[0]&&a[1]===i[1]},u}(x(13).BaseRenderLayer);p.SelectionRenderLayer=f},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(t,o){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var r in l)l.hasOwnProperty(r)&&(e[r]=l[r])})(t,o)},function(i,t){function o(){this.constructor=i}A(i,t),i.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(p,"__esModule",{value:!0}),p.CursorRenderLayer=void 0;var f=x(13),h=x(4),u=function(i){function t(o,e,l,r,s,c,d,g,v){var b=i.call(this,o,"cursor",e,!0,l,r,c,d)||this;return b._onRequestRedraw=s,b._coreService=g,b._coreBrowserService=v,b._cell=new h.CellData,b._state={x:0,y:0,isFocused:!1,style:"",width:0},b._cursorRenderers={bar:b._renderBarCursor.bind(b),block:b._renderBlockCursor.bind(b),underline:b._renderUnderlineCursor.bind(b)},b}return m(t,i),t.prototype.resize=function(o){i.prototype.resize.call(this,o),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},t.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},t.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onOptionsChanged=function(){var o,e=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new a(this._coreBrowserService.isFocused,function(){e._render(!0)})):((o=this._cursorBlinkStateManager)===null||o===void 0||o.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype.onGridChanged=function(o,e){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype._render=function(o){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var e=this._bufferService.buffer.ybase+this._bufferService.buffer.y,l=e-this._bufferService.buffer.ydisp;if(l<0||l>=this._bufferService.rows)this._clearCursor();else{var r=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(e).loadCell(r,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](r,l,this._cell):this._renderBlurCursor(r,l,this._cell),this._ctx.restore(),this._state.x=r,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===r&&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"](r,l,this._cell),this._ctx.restore(),this._state.x=r,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()},t.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})},t.prototype._renderBarCursor=function(o,e,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(o,e,this._optionsService.options.cursorWidth),this._ctx.restore()},t.prototype._renderBlockCursor=function(o,e,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(o,e,l.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(l,o,e),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(o,e,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(o,e),this._ctx.restore()},t.prototype._renderBlurCursor=function(o,e,l){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(o,e,l.getWidth(),1),this._ctx.restore()},t}(f.BaseRenderLayer);p.CursorRenderLayer=u;var a=function(){function i(t,o){this._renderCallback=o,this.isCursorVisible=!0,t&&this._restartInterval()}return Object.defineProperty(i.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),i.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)},i.prototype.restartBlinkAnimation=function(){var t=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0})))},i.prototype._restartInterval=function(t){var o=this;t===void 0&&(t=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(o._animationTimeRestarted){var e=600-(Date.now()-o._animationTimeRestarted);if(o._animationTimeRestarted=void 0,e>0)return void o._restartInterval(e)}o.isCursorVisible=!1,o._animationFrame=window.requestAnimationFrame(function(){o._renderCallback(),o._animationFrame=void 0}),o._blinkInterval=window.setInterval(function(){if(o._animationTimeRestarted){var l=600-(Date.now()-o._animationTimeRestarted);return o._animationTimeRestarted=void 0,void o._restartInterval(l)}o.isCursorVisible=!o.isCursorVisible,o._animationFrame=window.requestAnimationFrame(function(){o._renderCallback(),o._animationFrame=void 0})},600)},t)},i.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)},i.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},i}()},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(t,o){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var r in l)l.hasOwnProperty(r)&&(e[r]=l[r])})(t,o)},function(i,t){function o(){this.constructor=i}A(i,t),i.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(p,"__esModule",{value:!0}),p.LinkRenderLayer=void 0;var f=x(13),h=x(9),u=x(26),a=function(i){function t(o,e,l,r,s,c,d,g){var v=i.call(this,o,"link",e,!0,l,r,d,g)||this;return s.onShowLinkUnderline(function(b){return v._onShowLinkUnderline(b)}),s.onHideLinkUnderline(function(b){return v._onHideLinkUnderline(b)}),c.onShowLinkUnderline(function(b){return v._onShowLinkUnderline(b)}),c.onHideLinkUnderline(function(b){return v._onHideLinkUnderline(b)}),v}return m(t,i),t.prototype.resize=function(o){i.prototype.resize.call(this,o),this._state=void 0},t.prototype.reset=function(){this._clearCurrentLink()},t.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var o=this._state.y2-this._state.y1-1;o>0&&this._clearCells(0,this._state.y1+1,this._state.cols,o),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},t.prototype._onShowLinkUnderline=function(o){if(o.fg===h.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:o.fg&&u.is256Color(o.fg)?this._ctx.fillStyle=this._colors.ansi[o.fg].css:this._ctx.fillStyle=this._colors.foreground.css,o.y1===o.y2)this._fillBottomLineAtCells(o.x1,o.y1,o.x2-o.x1);else{this._fillBottomLineAtCells(o.x1,o.y1,o.cols-o.x1);for(var e=o.y1+1;e<o.y2;e++)this._fillBottomLineAtCells(0,e,o.cols);this._fillBottomLineAtCells(0,o.y2,o.x2)}this._state=o},t.prototype._onHideLinkUnderline=function(o){this._clearCurrentLink()},t}(f.BaseRenderLayer);p.LinkRenderLayer=a},function(y,p,x){"use strict";var A=this&&this.__decorate||function(i,t,o,e){var l,r=arguments.length,s=r<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,o):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(i,t,o,e);else for(var c=i.length-1;c>=0;c--)(l=i[c])&&(s=(r<3?l(s):r>3?l(t,o,s):l(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},m=this&&this.__param||function(i,t){return function(o,e){t(o,e,i)}};Object.defineProperty(p,"__esModule",{value:!0}),p.MouseZone=p.Linkifier=void 0;var f=x(0),h=x(1),u=function(){function i(t,o,e){this._bufferService=t,this._logService=o,this._unicodeService=e,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new f.EventEmitter,this._onHideLinkUnderline=new f.EventEmitter,this._onLinkTooltip=new f.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(i.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),i.prototype.attachToDom=function(t,o){this._element=t,this._mouseZoneManager=o},i.prototype.linkifyRows=function(t,o){var e=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=t,this._rowsToLinkify.end=o):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,t),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,o)),this._mouseZoneManager.clearAll(t,o),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return e._linkifyRows()},i._timeBeforeLatency))},i.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var t=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var o=t.ydisp+this._rowsToLinkify.start;if(!(o>=t.lines.length)){for(var e=t.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,l=Math.ceil(2e3/this._bufferService.cols),r=this._bufferService.buffer.iterator(!1,o,e,l,l);r.hasNext();)for(var s=r.next(),c=0;c<this._linkMatchers.length;c++)this._doLinkifyRow(s.range.first,s.content,this._linkMatchers[c]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},i.prototype.registerLinkMatcher=function(t,o,e){if(e===void 0&&(e={}),!o)throw new Error("handler must be defined");var l={id:this._nextLinkMatcherId++,regex:t,handler:o,matchIndex:e.matchIndex,validationCallback:e.validationCallback,hoverTooltipCallback:e.tooltipCallback,hoverLeaveCallback:e.leaveCallback,willLinkActivate:e.willLinkActivate,priority:e.priority||0};return this._addLinkMatcherToList(l),l.id},i.prototype._addLinkMatcherToList=function(t){if(this._linkMatchers.length!==0){for(var o=this._linkMatchers.length-1;o>=0;o--)if(t.priority<=this._linkMatchers[o].priority)return void this._linkMatchers.splice(o+1,0,t);this._linkMatchers.splice(0,0,t)}else this._linkMatchers.push(t)},i.prototype.deregisterLinkMatcher=function(t){for(var o=0;o<this._linkMatchers.length;o++)if(this._linkMatchers[o].id===t)return this._linkMatchers.splice(o,1),!0;return!1},i.prototype._doLinkifyRow=function(t,o,e){for(var l,r=this,s=new RegExp(e.regex.source,(e.regex.flags||"")+"g"),c=-1,d=function(){var b=l[typeof e.matchIndex!="number"?0:e.matchIndex];if(!b)return g._logService.debug("match found without corresponding matchIndex",l,e),"break";if(c=o.indexOf(b,c+1),s.lastIndex=c+b.length,c<0)return"break";var S=g._bufferService.buffer.stringIndexToBufferIndex(t,c);if(S[0]<0)return"break";var E=g._bufferService.buffer.lines.get(S[0]);if(!E)return"break";var C=E.getFg(S[1]),_=C?C>>9&511:void 0;e.validationCallback?e.validationCallback(b,function(T){r._rowsTimeoutId||T&&r._addLink(S[1],S[0]-r._bufferService.buffer.ydisp,b,e,_)}):g._addLink(S[1],S[0]-g._bufferService.buffer.ydisp,b,e,_)},g=this;(l=s.exec(o))!==null&&!(d()==="break"););},i.prototype._addLink=function(t,o,e,l,r){var s=this;if(this._mouseZoneManager&&this._element){var c=this._unicodeService.getStringCellWidth(e),d=t%this._bufferService.cols,g=o+Math.floor(t/this._bufferService.cols),v=(d+c)%this._bufferService.cols,b=g+Math.floor((d+c)/this._bufferService.cols);v===0&&(v=this._bufferService.cols,b--),this._mouseZoneManager.add(new a(d+1,g+1,v+1,b+1,function(S){if(l.handler)return l.handler(S,e);var E=window.open();E?(E.opener=null,E.location.href=e):console.warn("Opening link blocked as opener could not be cleared")},function(){s._onShowLinkUnderline.fire(s._createLinkHoverEvent(d,g,v,b,r)),s._element.classList.add("xterm-cursor-pointer")},function(S){s._onLinkTooltip.fire(s._createLinkHoverEvent(d,g,v,b,r)),l.hoverTooltipCallback&&l.hoverTooltipCallback(S,e,{start:{x:d,y:g},end:{x:v,y:b}})},function(){s._onHideLinkUnderline.fire(s._createLinkHoverEvent(d,g,v,b,r)),s._element.classList.remove("xterm-cursor-pointer"),l.hoverLeaveCallback&&l.hoverLeaveCallback()},function(S){return!l.willLinkActivate||l.willLinkActivate(S,e)}))}},i.prototype._createLinkHoverEvent=function(t,o,e,l,r){return{x1:t,y1:o,x2:e,y2:l,cols:this._bufferService.cols,fg:r}},i._timeBeforeLatency=200,i=A([m(0,h.IBufferService),m(1,h.ILogService),m(2,h.IUnicodeService)],i)}();p.Linkifier=u;var a=function(t,o,e,l,r,s,c,d,g){this.x1=t,this.y1=o,this.x2=e,this.y2=l,this.clickCallback=r,this.hoverCallback=s,this.tooltipCallback=c,this.leaveCallback=d,this.willLinkActivate=g};p.MouseZone=a},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(b,S){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,C){E.__proto__=C}||function(E,C){for(var _ in C)C.hasOwnProperty(_)&&(E[_]=C[_])})(b,S)},function(v,b){function S(){this.constructor=v}A(v,b),v.prototype=b===null?Object.create(b):(S.prototype=b.prototype,new S)}),f=this&&this.__decorate||function(v,b,S,E){var C,_=arguments.length,T=_<3?b:E===null?E=Object.getOwnPropertyDescriptor(b,S):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(v,b,S,E);else for(var w=v.length-1;w>=0;w--)(C=v[w])&&(T=(_<3?C(T):_>3?C(b,S,T):C(b,S))||T);return _>3&&T&&Object.defineProperty(b,S,T),T},h=this&&this.__param||function(v,b){return function(S,E){b(S,E,v)}};Object.defineProperty(p,"__esModule",{value:!0}),p.SelectionService=void 0;var u=x(11),a=x(52),i=x(4),t=x(0),o=x(5),e=x(1),l=x(30),r=x(53),s=x(2),c=String.fromCharCode(160),d=new RegExp(c,"g"),g=function(v){function b(S,E,C,_,T,w,O){var I=v.call(this)||this;return I._element=S,I._screenElement=E,I._bufferService=C,I._coreService=_,I._mouseService=T,I._optionsService=w,I._renderService=O,I._dragScrollAmount=0,I._enabled=!0,I._workCell=new i.CellData,I._mouseDownTimeStamp=0,I._onLinuxMouseSelection=I.register(new t.EventEmitter),I._onRedrawRequest=I.register(new t.EventEmitter),I._onSelectionChange=I.register(new t.EventEmitter),I._onRequestScrollLines=I.register(new t.EventEmitter),I._mouseMoveListener=function(R){return I._onMouseMove(R)},I._mouseUpListener=function(R){return I._onMouseUp(R)},I._coreService.onUserInput(function(){I.hasSelection&&I.clearSelection()}),I._trimListener=I._bufferService.buffer.lines.onTrim(function(R){return I._onTrim(R)}),I.register(I._bufferService.buffers.onBufferActivate(function(R){return I._onBufferActivate(R)})),I.enable(),I._model=new a.SelectionModel(I._bufferService),I._activeSelectionMode=0,I}return m(b,v),Object.defineProperty(b.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){this._removeMouseDownListeners()},b.prototype.reset=function(){this.clearSelection()},b.prototype.disable=function(){this.clearSelection(),this._enabled=!1},b.prototype.enable=function(){this._enabled=!0},Object.defineProperty(b.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"hasSelection",{get:function(){var E=this._model.finalSelectionStart,C=this._model.finalSelectionEnd;return!(!E||!C)&&(E[0]!==C[0]||E[1]!==C[1])},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"selectionText",{get:function(){var E=this._model.finalSelectionStart,C=this._model.finalSelectionEnd;if(!E||!C)return"";var _=this._bufferService.buffer,T=[];if(this._activeSelectionMode===3){if(E[0]===C[0])return"";for(var w=E[1];w<=C[1];w++){var O=_.translateBufferLineToString(w,!0,E[0],C[0]);T.push(O)}}else{var I=E[1]===C[1]?C[0]:void 0;for(T.push(_.translateBufferLineToString(E[1],!0,E[0],I)),w=E[1]+1;w<=C[1]-1;w++){var R=_.lines.get(w);O=_.translateBufferLineToString(w,!0),R&&R.isWrapped?T[T.length-1]+=O:T.push(O)}E[1]!==C[1]&&(R=_.lines.get(C[1]),O=_.translateBufferLineToString(C[1],!0,0,C[0]),R&&R.isWrapped?T[T.length-1]+=O:T.push(O))}return T.map(function(M){return M.replace(d," ")}).join(u.isWindows?`\r
|
|
|
`:`
|
|
|
`)},enumerable:!1,configurable:!0}),b.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},b.prototype.refresh=function(S){var E=this;(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return E._refresh()})),u.isLinux&&S)&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},b.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},b.prototype.isClickInSelection=function(S){var E=this._getMouseBufferCoords(S),C=this._model.finalSelectionStart,_=this._model.finalSelectionEnd;return!!(C&&_&&E)&&this._areCoordsInSelection(E,C,_)},b.prototype._areCoordsInSelection=function(S,E,C){return S[1]>E[1]&&S[1]<C[1]||E[1]===C[1]&&S[1]===E[1]&&S[0]>=E[0]&&S[0]<C[0]||E[1]<C[1]&&S[1]===C[1]&&S[0]<C[0]||E[1]<C[1]&&S[1]===E[1]&&S[0]>=E[0]},b.prototype.selectWordAtCursor=function(S){var E=this._getMouseBufferCoords(S);E&&(this._selectWordAt(E,!1),this._model.selectionEnd=void 0,this.refresh(!0))},b.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},b.prototype.selectLines=function(S,E){this._model.clearSelection(),S=Math.max(S,0),E=Math.min(E,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,S],this._model.selectionEnd=[this._bufferService.cols,E],this.refresh(),this._onSelectionChange.fire()},b.prototype._onTrim=function(S){this._model.onTrim(S)&&this.refresh()},b.prototype._getMouseBufferCoords=function(S){var E=this._mouseService.getCoords(S,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(E)return E[0]--,E[1]--,E[1]+=this._bufferService.buffer.ydisp,E},b.prototype._getMouseEventScrollAmount=function(S){var E=l.getCoordsRelativeToElement(S,this._screenElement)[1],C=this._renderService.dimensions.canvasHeight;return E>=0&&E<=C?0:(E>C&&(E-=C),E=Math.min(Math.max(E,-50),50),(E/=50)/Math.abs(E)+Math.round(14*E))},b.prototype.shouldForceSelection=function(S){return u.isMac?S.altKey&&this._optionsService.options.macOptionClickForcesSelection:S.shiftKey},b.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)}},b.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)},b.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},b.prototype._onIncrementalClick=function(S){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(S))},b.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 E=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);E&&E.length!==this._model.selectionStart[0]&&E.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},b.prototype._onDoubleClick=function(S){var E=this._getMouseBufferCoords(S);E&&(this._activeSelectionMode=1,this._selectWordAt(E,!0))},b.prototype._onTripleClick=function(S){var E=this._getMouseBufferCoords(S);E&&(this._activeSelectionMode=2,this._selectLineAt(E[1]))},b.prototype.shouldColumnSelect=function(S){return S.altKey&&!(u.isMac&&this._optionsService.options.macOptionClickForcesSelection)},b.prototype._onMouseMove=function(S){if(S.stopImmediatePropagation(),this._model.selectionStart){var E=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]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(S),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var C=this._bufferService.buffer;if(this._model.selectionEnd[1]<C.lines.length){var _=C.lines.get(this._model.selectionEnd[1]);_&&_.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}E&&E[0]===this._model.selectionEnd[0]&&E[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},b.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var S=this._bufferService.buffer;this._dragScrollAmount>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()}},b.prototype._onMouseUp=function(S){var E=S.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&E<500&&S.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var C=this._mouseService.getCoords(S,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(C&&C[0]!==void 0&&C[1]!==void 0){var _=r.moveToCellSequence(C[0]-1,C[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(_,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},b.prototype._onBufferActivate=function(S){var E=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=S.activeBuffer.lines.onTrim(function(C){return E._onTrim(C)})},b.prototype._convertViewportColToCharacterIndex=function(S,E){for(var C=E[0],_=0;E[0]>=_;_++){var T=S.loadCell(_,this._workCell).getChars().length;this._workCell.getWidth()===0?C--:T>1&&E[0]!==_&&(C+=T-1)}return C},b.prototype.setSelection=function(S,E,C){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[S,E],this._model.selectionStartLength=C,this.refresh()},b.prototype._getWordAt=function(S,E,C,_){if(C===void 0&&(C=!0),_===void 0&&(_=!0),!(S[0]>=this._bufferService.cols)){var T=this._bufferService.buffer,w=T.lines.get(S[1]);if(w){var O=T.translateBufferLineToString(S[1],!1),I=this._convertViewportColToCharacterIndex(w,S),R=I,M=S[0]-I,F=0,P=0,X=0,B=0;if(O.charAt(I)===" "){for(;I>0&&O.charAt(I-1)===" ";)I--;for(;R<O.length&&O.charAt(R+1)===" ";)R++}else{var j=S[0],W=S[0];w.getWidth(j)===0&&(F++,j--),w.getWidth(W)===2&&(P++,W++);var z=w.getString(W).length;for(z>1&&(B+=z-1,R+=z-1);j>0&&I>0&&!this._isCharWordSeparator(w.loadCell(j-1,this._workCell));){w.loadCell(j-1,this._workCell);var V=this._workCell.getChars().length;this._workCell.getWidth()===0?(F++,j--):V>1&&(X+=V-1,I-=V-1),I--,j--}for(;W<w.length&&R+1<O.length&&!this._isCharWordSeparator(w.loadCell(W+1,this._workCell));){w.loadCell(W+1,this._workCell);var Q=this._workCell.getChars().length;this._workCell.getWidth()===2?(P++,W++):Q>1&&(B+=Q-1,R+=Q-1),R++,W++}}R++;var G=I+M-F+X,ee=Math.min(this._bufferService.cols,R-I+F+P-X-B);if(E||O.slice(I,R).trim()!==""){if(C&&G===0&&w.getCodePoint(0)!==32){var ce=T.lines.get(S[1]-1);if(ce&&w.isWrapped&&ce.getCodePoint(this._bufferService.cols-1)!==32){var be=this._getWordAt([this._bufferService.cols-1,S[1]-1],!1,!0,!1);if(be){var le=this._bufferService.cols-be.start;G-=le,ee+=le}}}if(_&&G+ee===this._bufferService.cols&&w.getCodePoint(this._bufferService.cols-1)!==32){var Ie=T.lines.get(S[1]+1);if(Ie&&Ie.isWrapped&&Ie.getCodePoint(0)!==32){var ke=this._getWordAt([0,S[1]+1],!1,!1,!0);ke&&(ee+=ke.length)}}return{start:G,length:ee}}}}},b.prototype._selectWordAt=function(S,E){var C=this._getWordAt(S,E);if(C){for(;C.start<0;)C.start+=this._bufferService.cols,S[1]--;this._model.selectionStart=[C.start,S[1]],this._model.selectionStartLength=C.length}},b.prototype._selectToWordAt=function(S){var E=this._getWordAt(S,!0);if(E){for(var C=S[1];E.start<0;)E.start+=this._bufferService.cols,C--;if(!this._model.areSelectionValuesReversed())for(;E.start+E.length>this._bufferService.cols;)E.length-=this._bufferService.cols,C++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?E.start:E.start+E.length,C]}},b.prototype._isCharWordSeparator=function(S){return S.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(S.getChars())>=0},b.prototype._selectLineAt=function(S){var E=this._bufferService.buffer.getWrappedRangeForLine(S);this._model.selectionStart=[0,E.first],this._model.selectionEnd=[this._bufferService.cols,E.last],this._model.selectionStartLength=0},b=f([h(2,e.IBufferService),h(3,e.ICoreService),h(4,o.IMouseService),h(5,e.IOptionsService),h(6,o.IRenderService)],b)}(s.Disposable);p.SelectionService=g},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SelectionModel=void 0;var A=function(){function m(f){this._bufferService=f,this.isSelectAllActive=!1,this.selectionStartLength=0}return m.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(m.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(m.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 h=this.selectionStart[0]+this.selectionStartLength;return h>this._bufferService.cols?[h%this._bufferService.cols,this.selectionStart[1]+Math.floor(h/this._bufferService.cols)]:[h,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}),m.prototype.areSelectionValuesReversed=function(){var f=this.selectionStart,h=this.selectionEnd;return!(!f||!h)&&(f[1]>h[1]||f[1]===h[1]&&f[0]>h[0])},m.prototype.onTrim=function(f){return this.selectionStart&&(this.selectionStart[1]-=f),this.selectionEnd&&(this.selectionEnd[1]-=f),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},m}();p.SelectionModel=A},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.moveToCellSequence=void 0;var A=x(12);function m(t,o,e,l){var r=t-f(e,t),s=o-f(e,o);return i(Math.abs(r-s)-function(c,d,g){for(var v=0,b=c-f(g,c),S=d-f(g,d),E=0;E<Math.abs(b-S);E++){var C=h(c,d)==="A"?-1:1,_=g.buffer.lines.get(b+C*E);_&&_.isWrapped&&v++}return v}(t,o,e),a(h(t,o),l))}function f(t,o){for(var e=0,l=t.buffer.lines.get(o),r=l&&l.isWrapped;r&&o>=0&&o<t.rows;)e++,r=(l=t.buffer.lines.get(--o))&&l.isWrapped;return e}function h(t,o){return t>o?"A":"B"}function u(t,o,e,l,r,s){for(var c=t,d=o,g="";c!==e||d!==l;)c+=r?1:-1,r&&c>s.cols-1?(g+=s.buffer.translateBufferLineToString(d,!1,t,c),c=0,t=0,d++):!r&&c<0&&(g+=s.buffer.translateBufferLineToString(d,!1,0,t+1),t=c=s.cols-1,d--);return g+s.buffer.translateBufferLineToString(d,!1,t,c)}function a(t,o){var e=o?"O":"[";return A.C0.ESC+e+t}function i(t,o){t=Math.floor(t);for(var e="",l=0;l<t;l++)e+=o;return e}p.moveToCellSequence=function(t,o,e,l){var r,s=e.buffer.x,c=e.buffer.y;if(!e.buffer.hasScrollback)return function(g,v,b,S,E,C){return m(v,S,E,C).length===0?"":i(u(g,v,g,v-f(E,v),!1,E).length,a("D",C))}(s,c,0,o,e,l)+m(c,o,e,l)+function(g,v,b,S,E,C){var _;_=m(v,S,E,C).length>0?S-f(E,S):v;var T=S,w=function(O,I,R,M,F,P){var X;return X=m(R,M,F,P).length>0?M-f(F,M):I,O<R&&X<=M||O>=R&&X<M?"C":"D"}(g,v,b,S,E,C);return i(u(g,_,b,T,w==="C",E).length,a(w,C))}(s,c,t,o,e,l);if(c===o)return r=s>t?"D":"C",i(Math.abs(s-t),a(r,l));r=c>o?"D":"C";var d=Math.abs(c-o);return i(function(g,v){return v.cols-g}(c>o?t:s,e)+(d-1)*e.cols+1+((c>o?s:t)-1),a(r,l))}},function(y,p,x){"use strict";var A=this&&this.__decorate||function(u,a,i,t){var o,e=arguments.length,l=e<3?a:t===null?t=Object.getOwnPropertyDescriptor(a,i):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(u,a,i,t);else for(var r=u.length-1;r>=0;r--)(o=u[r])&&(l=(e<3?o(l):e>3?o(a,i,l):o(a,i))||l);return e>3&&l&&Object.defineProperty(a,i,l),l},m=this&&this.__param||function(u,a){return function(i,t){a(i,t,u)}};Object.defineProperty(p,"__esModule",{value:!0}),p.SoundService=void 0;var f=x(1),h=function(){function u(a){this._optionsService=a}return Object.defineProperty(u,"audioContext",{get:function(){if(!u._audioContext){var i=window.AudioContext||window.webkitAudioContext;if(!i)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;u._audioContext=new i}return u._audioContext},enumerable:!1,configurable:!0}),u.prototype.playBellSound=function(){var a=u.audioContext;if(a){var i=a.createBufferSource();a.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(t){i.buffer=t,i.connect(a.destination),i.start(0)})}},u.prototype._base64ToArrayBuffer=function(a){for(var i=window.atob(a),t=i.length,o=new Uint8Array(t),e=0;e<t;e++)o[e]=i.charCodeAt(e);return o.buffer},u.prototype._removeMimeType=function(a){return a.split(",")[1]},u=A([m(0,f.IOptionsService)],u)}();p.SoundService=h},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(l,r){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var d in c)c.hasOwnProperty(d)&&(s[d]=c[d])})(l,r)},function(e,l){function r(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(r.prototype=l.prototype,new r)}),f=this&&this.__decorate||function(e,l,r,s){var c,d=arguments.length,g=d<3?l:s===null?s=Object.getOwnPropertyDescriptor(l,r):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,l,r,s);else for(var v=e.length-1;v>=0;v--)(c=e[v])&&(g=(d<3?c(g):d>3?c(l,r,g):c(l,r))||g);return d>3&&g&&Object.defineProperty(l,r,g),g},h=this&&this.__param||function(e,l){return function(r,s){l(r,s,e)}};Object.defineProperty(p,"__esModule",{value:!0}),p.MouseZoneManager=void 0;var u=x(2),a=x(7),i=x(5),t=x(1),o=function(e){function l(r,s,c,d,g,v){var b=e.call(this)||this;return b._element=r,b._screenElement=s,b._bufferService=c,b._mouseService=d,b._selectionService=g,b._optionsService=v,b._zones=[],b._areZonesActive=!1,b._lastHoverCoords=[void 0,void 0],b._initialSelectionLength=0,b.register(a.addDisposableDomListener(b._element,"mousedown",function(S){return b._onMouseDown(S)})),b._mouseMoveListener=function(S){return b._onMouseMove(S)},b._mouseLeaveListener=function(S){return b._onMouseLeave(S)},b._clickListener=function(S){return b._onClick(S)},b}return m(l,e),l.prototype.dispose=function(){e.prototype.dispose.call(this),this._deactivate()},l.prototype.add=function(r){this._zones.push(r),this._zones.length===1&&this._activate()},l.prototype.clearAll=function(r,s){if(this._zones.length!==0){r&&s||(r=0,s=this._bufferService.rows-1);for(var c=0;c<this._zones.length;c++){var d=this._zones[c];(d.y1>r&&d.y1<=s+1||d.y2>r&&d.y2<=s+1||d.y1<r&&d.y2>s+1)&&(this._currentZone&&this._currentZone===d&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(c--,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(r){this._lastHoverCoords[0]===r.pageX&&this._lastHoverCoords[1]===r.pageY||(this._onHover(r),this._lastHoverCoords=[r.pageX,r.pageY])},l.prototype._onHover=function(r){var s=this,c=this._findZoneEventAt(r);c!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),c&&(this._currentZone=c,c.hoverCallback&&c.hoverCallback(r),this._tooltipTimeout=window.setTimeout(function(){return s._onTooltip(r)},this._optionsService.options.linkTooltipHoverDuration)))},l.prototype._onTooltip=function(r){this._tooltipTimeout=void 0;var s=this._findZoneEventAt(r);s&&s.tooltipCallback&&s.tooltipCallback(r)},l.prototype._onMouseDown=function(r){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var s=this._findZoneEventAt(r);(s==null?void 0:s.willLinkActivate(r))&&(r.preventDefault(),r.stopImmediatePropagation())}},l.prototype._onMouseLeave=function(r){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},l.prototype._onClick=function(r){var s=this._findZoneEventAt(r),c=this._getSelectionLength();s&&c===this._initialSelectionLength&&(s.clickCallback(r),r.preventDefault(),r.stopImmediatePropagation())},l.prototype._getSelectionLength=function(){var r=this._selectionService.selectionText;return r?r.length:0},l.prototype._findZoneEventAt=function(r){var s=this._mouseService.getCoords(r,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(s)for(var c=s[0],d=s[1],g=0;g<this._zones.length;g++){var v=this._zones[g];if(v.y1===v.y2){if(d===v.y1&&c>=v.x1&&c<v.x2)return v}else if(d===v.y1&&c>=v.x1||d===v.y2&&c<v.x2||d>v.y1&&d<v.y2)return v}},l=f([h(2,t.IBufferService),h(3,i.IMouseService),h(4,i.ISelectionService),h(5,t.IOptionsService)],l)}(u.Disposable);p.MouseZoneManager=o},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(r,s){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var g in d)d.hasOwnProperty(g)&&(c[g]=d[g])})(r,s)},function(l,r){function s(){this.constructor=l}A(l,r),l.prototype=r===null?Object.create(r):(s.prototype=r.prototype,new s)});Object.defineProperty(p,"__esModule",{value:!0}),p.AccessibilityManager=void 0;var f=x(18),h=x(11),u=x(31),a=x(7),i=x(2),t=x(32),o=x(17),e=function(l){function r(s,c){var d=l.call(this)||this;d._terminal=s,d._renderService=c,d._liveRegionLineCount=0,d._charsToConsume=[],d._charsToAnnounce="",d._accessibilityTreeRoot=document.createElement("div"),d._accessibilityTreeRoot.classList.add("xterm-accessibility"),d._rowContainer=document.createElement("div"),d._rowContainer.classList.add("xterm-accessibility-tree"),d._rowContainer.setAttribute("role","list"),d._rowElements=[];for(var g=0;g<d._terminal.rows;g++)d._rowElements[g]=d._createAccessibilityTreeNode(),d._rowContainer.appendChild(d._rowElements[g]);if(d._topBoundaryFocusListener=function(v){return d._onBoundaryFocus(v,0)},d._bottomBoundaryFocusListener=function(v){return d._onBoundaryFocus(v,1)},d._rowElements[0].addEventListener("focus",d._topBoundaryFocusListener),d._rowElements[d._rowElements.length-1].addEventListener("focus",d._bottomBoundaryFocusListener),d._refreshRowsDimensions(),d._accessibilityTreeRoot.appendChild(d._rowContainer),d._renderRowsDebouncer=new u.RenderDebouncer(d._renderRows.bind(d)),d._refreshRows(),d._liveRegion=document.createElement("div"),d._liveRegion.classList.add("live-region"),d._liveRegion.setAttribute("aria-live","assertive"),d._accessibilityTreeRoot.appendChild(d._liveRegion),!d._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return d._terminal.element.insertAdjacentElement("afterbegin",d._accessibilityTreeRoot),d.register(d._renderRowsDebouncer),d.register(d._terminal.onResize(function(v){return d._onResize(v.rows)})),d.register(d._terminal.onRender(function(v){return d._refreshRows(v.start,v.end)})),d.register(d._terminal.onScroll(function(){return d._refreshRows()})),d.register(d._terminal.onA11yChar(function(v){return d._onChar(v)})),d.register(d._terminal.onLineFeed(function(){return d._onChar(`
|
|
|
`)})),d.register(d._terminal.onA11yTab(function(v){return d._onTab(v)})),d.register(d._terminal.onKey(function(v){return d._onKey(v.key)})),d.register(d._terminal.onBlur(function(){return d._clearLiveRegion()})),d.register(d._renderService.onDimensionsChange(function(){return d._refreshRowsDimensions()})),d._screenDprMonitor=new t.ScreenDprMonitor,d.register(d._screenDprMonitor),d._screenDprMonitor.setListener(function(){return d._refreshRowsDimensions()}),d.register(a.addDisposableDomListener(window,"resize",function(){return d._refreshRowsDimensions()})),d}return m(r,l),r.prototype.dispose=function(){l.prototype.dispose.call(this),o.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},r.prototype._onBoundaryFocus=function(s,c){var d=s.target,g=this._rowElements[c===0?1:this._rowElements.length-2];if(d.getAttribute("aria-posinset")!==(c===0?"1":""+this._terminal.buffer.lines.length)&&s.relatedTarget===g){var v,b;if(c===0?(v=d,b=this._rowElements.pop(),this._rowContainer.removeChild(b)):(v=this._rowElements.shift(),b=d,this._rowContainer.removeChild(v)),v.removeEventListener("focus",this._topBoundaryFocusListener),b.removeEventListener("focus",this._bottomBoundaryFocusListener),c===0){var S=this._createAccessibilityTreeNode();this._rowElements.unshift(S),this._rowContainer.insertAdjacentElement("afterbegin",S)}else S=this._createAccessibilityTreeNode(),this._rowElements.push(S),this._rowContainer.appendChild(S);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(c===0?-1:1),this._rowElements[c===0?1:this._rowElements.length-2].focus(),s.preventDefault(),s.stopImmediatePropagation()}},r.prototype._onResize=function(s){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var c=this._rowContainer.children.length;c<this._terminal.rows;c++)this._rowElements[c]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[c]);for(;this._rowElements.length>s;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},r.prototype._createAccessibilityTreeNode=function(){var s=document.createElement("div");return s.setAttribute("role","listitem"),s.tabIndex=-1,this._refreshRowDimensions(s),s},r.prototype._onTab=function(s){for(var c=0;c<s;c++)this._onChar(" ")},r.prototype._onChar=function(s){var c=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==s&&(this._charsToAnnounce+=s):this._charsToAnnounce+=s,s===`
|
|
|
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=f.tooMuchOutput)),h.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){c._accessibilityTreeRoot.appendChild(c._liveRegion)},0))},r.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,h.isMac&&o.removeElementFromParent(this._liveRegion)},r.prototype._onKey=function(s){this._clearLiveRegion(),this._charsToConsume.push(s)},r.prototype._refreshRows=function(s,c){this._renderRowsDebouncer.refresh(s,c,this._terminal.rows)},r.prototype._renderRows=function(s,c){for(var d=this._terminal.buffer,g=d.lines.length.toString(),v=s;v<=c;v++){var b=d.translateBufferLineToString(d.ydisp+v,!0),S=(d.ydisp+v+1).toString(),E=this._rowElements[v];E&&(b.length===0?E.innerHTML=" ":E.textContent=b,E.setAttribute("aria-posinset",S),E.setAttribute("aria-setsize",g))}this._announceCharacters()},r.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var s=0;s<this._terminal.rows;s++)this._refreshRowDimensions(this._rowElements[s])}},r.prototype._refreshRowDimensions=function(s){s.style.height=this._renderService.dimensions.actualCellHeight+"px"},r.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},r}(i.Disposable);p.AccessibilityManager=e},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(g,v){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var E in S)S.hasOwnProperty(E)&&(b[E]=S[E])})(g,v)},function(d,g){function v(){this.constructor=d}A(d,g),d.prototype=g===null?Object.create(g):(v.prototype=g.prototype,new v)}),f=this&&this.__decorate||function(d,g,v,b){var S,E=arguments.length,C=E<3?g:b===null?b=Object.getOwnPropertyDescriptor(g,v):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(d,g,v,b);else for(var _=d.length-1;_>=0;_--)(S=d[_])&&(C=(E<3?S(C):E>3?S(g,v,C):S(g,v))||C);return E>3&&C&&Object.defineProperty(g,v,C),C},h=this&&this.__param||function(d,g){return function(v,b){g(v,b,d)}};Object.defineProperty(p,"__esModule",{value:!0}),p.DomRenderer=void 0;var u=x(58),a=x(9),i=x(2),t=x(5),o=x(1),e=x(0),l=x(10),r=x(17),s=1,c=function(d){function g(v,b,S,E,C,_,T,w,O){var I=d.call(this)||this;return I._colors=v,I._element=b,I._screenElement=S,I._viewportElement=E,I._linkifier=C,I._linkifier2=_,I._charSizeService=T,I._optionsService=w,I._bufferService=O,I._terminalClass=s++,I._rowElements=[],I._rowContainer=document.createElement("div"),I._rowContainer.classList.add("xterm-rows"),I._rowContainer.style.lineHeight="normal",I._rowContainer.setAttribute("aria-hidden","true"),I._refreshRowElements(I._bufferService.cols,I._bufferService.rows),I._selectionContainer=document.createElement("div"),I._selectionContainer.classList.add("xterm-selection"),I._selectionContainer.setAttribute("aria-hidden","true"),I.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},I._updateDimensions(),I._injectCss(),I._rowFactory=new u.DomRendererRowFactory(document,I._optionsService,I._colors),I._element.classList.add("xterm-dom-renderer-owner-"+I._terminalClass),I._screenElement.appendChild(I._rowContainer),I._screenElement.appendChild(I._selectionContainer),I._linkifier.onShowLinkUnderline(function(R){return I._onLinkHover(R)}),I._linkifier.onHideLinkUnderline(function(R){return I._onLinkLeave(R)}),I._linkifier2.onShowLinkUnderline(function(R){return I._onLinkHover(R)}),I._linkifier2.onHideLinkUnderline(function(R){return I._onLinkLeave(R)}),I}return m(g,d),Object.defineProperty(g.prototype,"onRequestRedraw",{get:function(){return new e.EventEmitter().event},enumerable:!1,configurable:!0}),g.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),r.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),d.prototype.dispose.call(this)},g.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 v=0,b=this._rowElements;v<b.length;v++){var S=b[v];S.style.width=this.dimensions.canvasWidth+"px",S.style.height=this.dimensions.actualCellHeight+"px",S.style.lineHeight=this.dimensions.actualCellHeight+"px",S.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var E=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=E,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},g.prototype.setColors=function(v){this._colors=v,this._injectCss()},g.prototype._injectCss=function(){var v=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var b=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";b+=this._terminalSelector+" span:not(."+u.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+u.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+u.ITALIC_CLASS+" { font-style: italic;}",b+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",b+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",b+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+u.CURSOR_CLASS+"."+u.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+u.CURSOR_CLASS+"."+u.CURSOR_BLINK_CLASS+":not(."+u.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+u.CURSOR_CLASS+"."+u.CURSOR_BLINK_CLASS+"."+u.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+u.CURSOR_CLASS+"."+u.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+u.CURSOR_CLASS+"."+u.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+u.CURSOR_CLASS+"."+u.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",b+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionTransparent.css+";}",this._colors.ansi.forEach(function(S,E){b+=v._terminalSelector+" .xterm-fg-"+E+" { color: "+S.css+"; }"+v._terminalSelector+" .xterm-bg-"+E+" { background-color: "+S.css+"; }"}),b+=this._terminalSelector+" .xterm-fg-"+a.INVERTED_DEFAULT_COLOR+" { color: "+l.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+a.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=b},g.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},g.prototype._refreshRowElements=function(v,b){for(var S=this._rowElements.length;S<=b;S++){var E=document.createElement("div");this._rowContainer.appendChild(E),this._rowElements.push(E)}for(;this._rowElements.length>b;)this._rowContainer.removeChild(this._rowElements.pop())},g.prototype.onResize=function(v,b){this._refreshRowElements(v,b),this._updateDimensions()},g.prototype.onCharSizeChanged=function(){this._updateDimensions()},g.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},g.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},g.prototype.onSelectionChanged=function(v,b,S){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(v&&b){var E=v[1]-this._bufferService.buffer.ydisp,C=b[1]-this._bufferService.buffer.ydisp,_=Math.max(E,0),T=Math.min(C,this._bufferService.rows-1);if(!(_>=this._bufferService.rows||T<0)){var w=document.createDocumentFragment();if(S)w.appendChild(this._createSelectionElement(_,v[0],b[0],T-_+1));else{var O=E===_?v[0]:0,I=_===T?b[0]:this._bufferService.cols;w.appendChild(this._createSelectionElement(_,O,I));var R=T-_-1;if(w.appendChild(this._createSelectionElement(_+1,0,this._bufferService.cols,R)),_!==T){var M=C===T?b[0]:this._bufferService.cols;w.appendChild(this._createSelectionElement(T,0,M))}}this._selectionContainer.appendChild(w)}}},g.prototype._createSelectionElement=function(v,b,S,E){E===void 0&&(E=1);var C=document.createElement("div");return C.style.height=E*this.dimensions.actualCellHeight+"px",C.style.top=v*this.dimensions.actualCellHeight+"px",C.style.left=b*this.dimensions.actualCellWidth+"px",C.style.width=this.dimensions.actualCellWidth*(S-b)+"px",C},g.prototype.onCursorMove=function(){},g.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},g.prototype.clear=function(){for(var v=0,b=this._rowElements;v<b.length;v++)b[v].innerHTML=""},g.prototype.renderRows=function(v,b){for(var S=this._bufferService.buffer.ybase+this._bufferService.buffer.y,E=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),C=this._optionsService.options.cursorBlink,_=v;_<=b;_++){var T=this._rowElements[_];T.innerHTML="";var w=_+this._bufferService.buffer.ydisp,O=this._bufferService.buffer.lines.get(w),I=this._optionsService.options.cursorStyle;T.appendChild(this._rowFactory.createRow(O,w===S,I,E,C,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(g.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),g.prototype.registerCharacterJoiner=function(v){return-1},g.prototype.deregisterCharacterJoiner=function(v){return!1},g.prototype._onLinkHover=function(v){this._setCellUnderline(v.x1,v.x2,v.y1,v.y2,v.cols,!0)},g.prototype._onLinkLeave=function(v){this._setCellUnderline(v.x1,v.x2,v.y1,v.y2,v.cols,!1)},g.prototype._setCellUnderline=function(v,b,S,E,C,_){for(;v!==b||S!==E;){var T=this._rowElements[S];if(!T)return;var w=T.children[v];w&&(w.style.textDecoration=_?"underline":"none"),++v>=C&&(v=0,S++)}},g=f([h(6,t.ICharSizeService),h(7,o.IOptionsService),h(8,o.IBufferService)],g)}(i.Disposable);p.DomRenderer=c},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DomRendererRowFactory=p.CURSOR_STYLE_UNDERLINE_CLASS=p.CURSOR_STYLE_BAR_CLASS=p.CURSOR_STYLE_BLOCK_CLASS=p.CURSOR_BLINK_CLASS=p.CURSOR_CLASS=p.UNDERLINE_CLASS=p.ITALIC_CLASS=p.DIM_CLASS=p.BOLD_CLASS=void 0;var A=x(9),m=x(3),f=x(4),h=x(10);p.BOLD_CLASS="xterm-bold",p.DIM_CLASS="xterm-dim",p.ITALIC_CLASS="xterm-italic",p.UNDERLINE_CLASS="xterm-underline",p.CURSOR_CLASS="xterm-cursor",p.CURSOR_BLINK_CLASS="xterm-cursor-blink",p.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",p.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",p.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var u=function(){function i(t,o,e){this._document=t,this._optionsService=o,this._colors=e,this._workCell=new f.CellData}return i.prototype.setColors=function(t){this._colors=t},i.prototype.createRow=function(t,o,e,l,r,s,c){for(var d=this._document.createDocumentFragment(),g=0,v=Math.min(t.length,c)-1;v>=0;v--)if(t.loadCell(v,this._workCell).getCode()!==m.NULL_CELL_CODE||o&&v===l){g=v+1;break}for(v=0;v<g;v++){t.loadCell(v,this._workCell);var b=this._workCell.getWidth();if(b!==0){var S=this._document.createElement("span");if(b>1&&(S.style.width=s*b+"px"),o&&v===l)switch(S.classList.add(p.CURSOR_CLASS),r&&S.classList.add(p.CURSOR_BLINK_CLASS),e){case"bar":S.classList.add(p.CURSOR_STYLE_BAR_CLASS);break;case"underline":S.classList.add(p.CURSOR_STYLE_UNDERLINE_CLASS);break;default:S.classList.add(p.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&S.classList.add(p.BOLD_CLASS),this._workCell.isItalic()&&S.classList.add(p.ITALIC_CLASS),this._workCell.isDim()&&S.classList.add(p.DIM_CLASS),this._workCell.isUnderline()&&S.classList.add(p.UNDERLINE_CLASS),this._workCell.isInvisible()?S.textContent=m.WHITESPACE_CELL_CHAR:S.textContent=this._workCell.getChars()||m.WHITESPACE_CELL_CHAR;var E=this._workCell.getFgColor(),C=this._workCell.getFgColorMode(),_=this._workCell.getBgColor(),T=this._workCell.getBgColorMode(),w=!!this._workCell.isInverse();if(w){var O=E;E=_,_=O;var I=C;C=T,T=I}switch(C){case 16777216:case 33554432:this._workCell.isBold()&&E<8&&this._optionsService.options.drawBoldTextInBrightColors&&(E+=8),this._applyMinimumContrast(S,this._colors.background,this._colors.ansi[E])||S.classList.add("xterm-fg-"+E);break;case 50331648:var R=h.rgba.toColor(E>>16&255,E>>8&255,255&E);this._applyMinimumContrast(S,this._colors.background,R)||this._addStyle(S,"color:#"+a(E.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(S,this._colors.background,this._colors.foreground)||w&&S.classList.add("xterm-fg-"+A.INVERTED_DEFAULT_COLOR)}switch(T){case 16777216:case 33554432:S.classList.add("xterm-bg-"+_);break;case 50331648:this._addStyle(S,"background-color:#"+a(_.toString(16),"0",6));break;case 0:default:w&&S.classList.add("xterm-bg-"+A.INVERTED_DEFAULT_COLOR)}d.appendChild(S)}}return d},i.prototype._applyMinimumContrast=function(t,o,e){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=h.color.ensureContrastRatio(o,e,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,l!=null?l:null)),!!l&&(this._addStyle(t,"color:"+l.css),!0)},i.prototype._addStyle=function(t,o){t.setAttribute("style",""+(t.getAttribute("style")||"")+o+";")},i}();function a(i,t,o){for(;i.length<o;)i=t+i;return i}p.DomRendererRowFactory=u},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.evaluateKeyboardEvent=void 0;var A=x(12),m={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};p.evaluateKeyboardEvent=function(f,h,u,a){var i={type:0,cancel:!1,key:void 0},t=(f.shiftKey?1:0)|(f.altKey?2:0)|(f.ctrlKey?4:0)|(f.metaKey?8:0);switch(f.keyCode){case 0:f.key==="UIKeyInputUpArrow"?i.key=h?A.C0.ESC+"OA":A.C0.ESC+"[A":f.key==="UIKeyInputLeftArrow"?i.key=h?A.C0.ESC+"OD":A.C0.ESC+"[D":f.key==="UIKeyInputRightArrow"?i.key=h?A.C0.ESC+"OC":A.C0.ESC+"[C":f.key==="UIKeyInputDownArrow"&&(i.key=h?A.C0.ESC+"OB":A.C0.ESC+"[B");break;case 8:if(f.shiftKey){i.key=A.C0.BS;break}if(f.altKey){i.key=A.C0.ESC+A.C0.DEL;break}i.key=A.C0.DEL;break;case 9:if(f.shiftKey){i.key=A.C0.ESC+"[Z";break}i.key=A.C0.HT,i.cancel=!0;break;case 13:i.key=f.altKey?A.C0.ESC+A.C0.CR:A.C0.CR,i.cancel=!0;break;case 27:i.key=A.C0.ESC,f.altKey&&(i.key=A.C0.ESC+A.C0.ESC),i.cancel=!0;break;case 37:if(f.metaKey)break;t?(i.key=A.C0.ESC+"[1;"+(t+1)+"D",i.key===A.C0.ESC+"[1;3D"&&(i.key=A.C0.ESC+(u?"b":"[1;5D"))):i.key=h?A.C0.ESC+"OD":A.C0.ESC+"[D";break;case 39:if(f.metaKey)break;t?(i.key=A.C0.ESC+"[1;"+(t+1)+"C",i.key===A.C0.ESC+"[1;3C"&&(i.key=A.C0.ESC+(u?"f":"[1;5C"))):i.key=h?A.C0.ESC+"OC":A.C0.ESC+"[C";break;case 38:if(f.metaKey)break;t?(i.key=A.C0.ESC+"[1;"+(t+1)+"A",u||i.key!==A.C0.ESC+"[1;3A"||(i.key=A.C0.ESC+"[1;5A")):i.key=h?A.C0.ESC+"OA":A.C0.ESC+"[A";break;case 40:if(f.metaKey)break;t?(i.key=A.C0.ESC+"[1;"+(t+1)+"B",u||i.key!==A.C0.ESC+"[1;3B"||(i.key=A.C0.ESC+"[1;5B")):i.key=h?A.C0.ESC+"OB":A.C0.ESC+"[B";break;case 45:f.shiftKey||f.ctrlKey||(i.key=A.C0.ESC+"[2~");break;case 46:i.key=t?A.C0.ESC+"[3;"+(t+1)+"~":A.C0.ESC+"[3~";break;case 36:i.key=t?A.C0.ESC+"[1;"+(t+1)+"H":h?A.C0.ESC+"OH":A.C0.ESC+"[H";break;case 35:i.key=t?A.C0.ESC+"[1;"+(t+1)+"F":h?A.C0.ESC+"OF":A.C0.ESC+"[F";break;case 33:f.shiftKey?i.type=2:i.key=A.C0.ESC+"[5~";break;case 34:f.shiftKey?i.type=3:i.key=A.C0.ESC+"[6~";break;case 112:i.key=t?A.C0.ESC+"[1;"+(t+1)+"P":A.C0.ESC+"OP";break;case 113:i.key=t?A.C0.ESC+"[1;"+(t+1)+"Q":A.C0.ESC+"OQ";break;case 114:i.key=t?A.C0.ESC+"[1;"+(t+1)+"R":A.C0.ESC+"OR";break;case 115:i.key=t?A.C0.ESC+"[1;"+(t+1)+"S":A.C0.ESC+"OS";break;case 116:i.key=t?A.C0.ESC+"[15;"+(t+1)+"~":A.C0.ESC+"[15~";break;case 117:i.key=t?A.C0.ESC+"[17;"+(t+1)+"~":A.C0.ESC+"[17~";break;case 118:i.key=t?A.C0.ESC+"[18;"+(t+1)+"~":A.C0.ESC+"[18~";break;case 119:i.key=t?A.C0.ESC+"[19;"+(t+1)+"~":A.C0.ESC+"[19~";break;case 120:i.key=t?A.C0.ESC+"[20;"+(t+1)+"~":A.C0.ESC+"[20~";break;case 121:i.key=t?A.C0.ESC+"[21;"+(t+1)+"~":A.C0.ESC+"[21~";break;case 122:i.key=t?A.C0.ESC+"[23;"+(t+1)+"~":A.C0.ESC+"[23~";break;case 123:i.key=t?A.C0.ESC+"[24;"+(t+1)+"~":A.C0.ESC+"[24~";break;default:if(!f.ctrlKey||f.shiftKey||f.altKey||f.metaKey)if(u&&!a||!f.altKey||f.metaKey)u&&!f.altKey&&!f.ctrlKey&&f.metaKey?f.keyCode===65&&(i.type=1):f.key&&!f.ctrlKey&&!f.altKey&&!f.metaKey&&f.keyCode>=48&&f.key.length===1?i.key=f.key:f.key&&f.ctrlKey&&f.key==="_"&&(i.key=A.C0.US);else{var o=m[f.keyCode],e=o&&o[f.shiftKey?1:0];if(e)i.key=A.C0.ESC+e;else if(f.keyCode>=65&&f.keyCode<=90){var l=f.ctrlKey?f.keyCode-64:f.keyCode+32;i.key=A.C0.ESC+String.fromCharCode(l)}}else f.keyCode>=65&&f.keyCode<=90?i.key=String.fromCharCode(f.keyCode-64):f.keyCode===32?i.key=A.C0.NUL:f.keyCode>=51&&f.keyCode<=55?i.key=String.fromCharCode(f.keyCode-51+27):f.keyCode===56?i.key=A.C0.DEL:f.keyCode===219?i.key=A.C0.ESC:f.keyCode===220?i.key=A.C0.FS:f.keyCode===221&&(i.key=A.C0.GS)}return i}},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(c,d){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var b in v)v.hasOwnProperty(b)&&(g[b]=v[b])})(c,d)},function(s,c){function d(){this.constructor=s}A(s,c),s.prototype=c===null?Object.create(c):(d.prototype=c.prototype,new d)}),f=this&&this.__decorate||function(s,c,d,g){var v,b=arguments.length,S=b<3?c:g===null?g=Object.getOwnPropertyDescriptor(c,d):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(s,c,d,g);else for(var E=s.length-1;E>=0;E--)(v=s[E])&&(S=(b<3?v(S):b>3?v(c,d,S):v(c,d))||S);return b>3&&S&&Object.defineProperty(c,d,S),S},h=this&&this.__param||function(s,c){return function(d,g){c(d,g,s)}};Object.defineProperty(p,"__esModule",{value:!0}),p.RenderService=void 0;var u=x(31),a=x(0),i=x(2),t=x(32),o=x(7),e=x(1),l=x(5),r=function(s){function c(d,g,v,b,S,E){var C=s.call(this)||this;if(C._renderer=d,C._rowCount=g,C._isPaused=!1,C._needsFullRefresh=!1,C._isNextRenderRedrawOnly=!0,C._needsSelectionRefresh=!1,C._canvasWidth=0,C._canvasHeight=0,C._selectionState={start:void 0,end:void 0,columnSelectMode:!1},C._onDimensionsChange=new a.EventEmitter,C._onRender=new a.EventEmitter,C._onRefreshRequest=new a.EventEmitter,C.register({dispose:function(){return C._renderer.dispose()}}),C._renderDebouncer=new u.RenderDebouncer(function(T,w){return C._renderRows(T,w)}),C.register(C._renderDebouncer),C._screenDprMonitor=new t.ScreenDprMonitor,C._screenDprMonitor.setListener(function(){return C.onDevicePixelRatioChange()}),C.register(C._screenDprMonitor),C.register(E.onResize(function(T){return C._fullRefresh()})),C.register(b.onOptionChange(function(){return C._renderer.onOptionsChanged()})),C.register(S.onCharSizeChange(function(){return C.onCharSizeChanged()})),C._renderer.onRequestRedraw(function(T){return C.refreshRows(T.start,T.end,!0)}),C.register(o.addDisposableDomListener(window,"resize",function(){return C.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var _=new IntersectionObserver(function(T){return C._onIntersectionChange(T[T.length-1])},{threshold:0});_.observe(v),C.register({dispose:function(){return _.disconnect()}})}return C}return m(c,s),Object.defineProperty(c.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),c.prototype._onIntersectionChange=function(d){this._isPaused=d.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},c.prototype.refreshRows=function(d,g,v){v===void 0&&(v=!1),this._isPaused?this._needsFullRefresh=!0:(v||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(d,g,this._rowCount))},c.prototype._renderRows=function(d,g){this._renderer.renderRows(d,g),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:d,end:g}),this._isNextRenderRedrawOnly=!0},c.prototype.resize=function(d,g){this._rowCount=g,this._fireOnCanvasResize()},c.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},c.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},c.prototype.dispose=function(){s.prototype.dispose.call(this)},c.prototype.setRenderer=function(d){var g=this;this._renderer.dispose(),this._renderer=d,this._renderer.onRequestRedraw(function(v){return g.refreshRows(v.start,v.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},c.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},c.prototype.setColors=function(d){this._renderer.setColors(d),this._fullRefresh()},c.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},c.prototype.onResize=function(d,g){this._renderer.onResize(d,g),this._fullRefresh()},c.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},c.prototype.onBlur=function(){this._renderer.onBlur()},c.prototype.onFocus=function(){this._renderer.onFocus()},c.prototype.onSelectionChanged=function(d,g,v){this._selectionState.start=d,this._selectionState.end=g,this._selectionState.columnSelectMode=v,this._renderer.onSelectionChanged(d,g,v)},c.prototype.onCursorMove=function(){this._renderer.onCursorMove()},c.prototype.clear=function(){this._renderer.clear()},c.prototype.registerCharacterJoiner=function(d){return this._renderer.registerCharacterJoiner(d)},c.prototype.deregisterCharacterJoiner=function(d){return this._renderer.deregisterCharacterJoiner(d)},c=f([h(3,e.IOptionsService),h(4,l.ICharSizeService),h(5,e.IBufferService)],c)}(i.Disposable);p.RenderService=r},function(y,p,x){"use strict";var A=this&&this.__decorate||function(i,t,o,e){var l,r=arguments.length,s=r<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,o):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(i,t,o,e);else for(var c=i.length-1;c>=0;c--)(l=i[c])&&(s=(r<3?l(s):r>3?l(t,o,s):l(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},m=this&&this.__param||function(i,t){return function(o,e){t(o,e,i)}};Object.defineProperty(p,"__esModule",{value:!0}),p.CharSizeService=void 0;var f=x(1),h=x(0),u=function(){function i(t,o,e){this._optionsService=e,this.width=0,this.height=0,this._onCharSizeChange=new h.EventEmitter,this._measureStrategy=new a(t,o,this._optionsService)}return Object.defineProperty(i.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),i.prototype.measure=function(){var t=this._measureStrategy.measure();t.width===this.width&&t.height===this.height||(this.width=t.width,this.height=t.height,this._onCharSizeChange.fire())},i=A([m(2,f.IOptionsService)],i)}();p.CharSizeService=u;var a=function(){function i(t,o,e){this._document=t,this._parentElement=o,this._optionsService=e,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 i.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var t=this._measureElement.getBoundingClientRect();return t.width!==0&&t.height!==0&&(this._result.width=t.width,this._result.height=Math.ceil(t.height)),this._result},i}()},function(y,p,x){"use strict";var A=this&&this.__decorate||function(a,i,t,o){var e,l=arguments.length,r=l<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,t):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(a,i,t,o);else for(var s=a.length-1;s>=0;s--)(e=a[s])&&(r=(l<3?e(r):l>3?e(i,t,r):e(i,t))||r);return l>3&&r&&Object.defineProperty(i,t,r),r},m=this&&this.__param||function(a,i){return function(t,o){i(t,o,a)}};Object.defineProperty(p,"__esModule",{value:!0}),p.MouseService=void 0;var f=x(5),h=x(30),u=function(){function a(i,t){this._renderService=i,this._charSizeService=t}return a.prototype.getCoords=function(i,t,o,e,l){return h.getCoords(i,t,o,e,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,l)},a.prototype.getRawByteCoords=function(i,t,o,e){var l=this.getCoords(i,t,o,e);return h.getRawByteCoords(l)},a=A([m(0,f.IRenderService),m(1,f.ICharSizeService)],a)}();p.MouseService=u},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(l,r){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var d in c)c.hasOwnProperty(d)&&(s[d]=c[d])})(l,r)},function(e,l){function r(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(r.prototype=l.prototype,new r)}),f=this&&this.__decorate||function(e,l,r,s){var c,d=arguments.length,g=d<3?l:s===null?s=Object.getOwnPropertyDescriptor(l,r):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,l,r,s);else for(var v=e.length-1;v>=0;v--)(c=e[v])&&(g=(d<3?c(g):d>3?c(l,r,g):c(l,r))||g);return d>3&&g&&Object.defineProperty(l,r,g),g},h=this&&this.__param||function(e,l){return function(r,s){l(r,s,e)}};Object.defineProperty(p,"__esModule",{value:!0}),p.Linkifier2=void 0;var u=x(1),a=x(0),i=x(2),t=x(7),o=function(e){function l(r){var s=e.call(this)||this;return s._bufferService=r,s._linkProviders=[],s._linkCacheDisposables=[],s._isMouseOut=!0,s._activeLine=-1,s._onShowLinkUnderline=s.register(new a.EventEmitter),s._onHideLinkUnderline=s.register(new a.EventEmitter),s.register(i.getDisposeArrayDisposable(s._linkCacheDisposables)),s}return m(l,e),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(r){var s=this;return this._linkProviders.push(r),{dispose:function(){var d=s._linkProviders.indexOf(r);d!==-1&&s._linkProviders.splice(d,1)}}},l.prototype.attachToDom=function(r,s,c){var d=this;this._element=r,this._mouseService=s,this._renderService=c,this.register(t.addDisposableDomListener(this._element,"mouseleave",function(){d._isMouseOut=!0,d._clearCurrentLink()})),this.register(t.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(t.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},l.prototype._onMouseMove=function(r){if(this._lastMouseEvent=r,this._element&&this._mouseService){var s=this._positionFromMouseEvent(r,this._element,this._mouseService);if(s){this._isMouseOut=!1;for(var c=r.composedPath(),d=0;d<c.length;d++){var g=c[d];if(g.classList.contains("xterm"))break;if(g.classList.contains("xterm-hover"))return}this._lastBufferCell&&s.x===this._lastBufferCell.x&&s.y===this._lastBufferCell.y||(this._onHover(s),this._lastBufferCell=s)}}},l.prototype._onHover=function(r){if(this._activeLine!==r.y)return this._clearCurrentLink(),void this._askForLink(r,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,r)||(this._clearCurrentLink(),this._askForLink(r,!0))},l.prototype._askForLink=function(r,s){var c=this;this._activeProviderReplies&&s||(this._activeProviderReplies=new Map,this._activeLine=r.y);var d=!1;this._linkProviders.forEach(function(g,v){var b;s?((b=c._activeProviderReplies)===null||b===void 0?void 0:b.get(v))&&(d=c._checkLinkProviderResult(v,r,d)):g.provideLinks(r.y,function(S){var E,C;if(!c._isMouseOut){var _=S==null?void 0:S.map(function(T){return{link:T}});(E=c._activeProviderReplies)===null||E===void 0||E.set(v,_),d=c._checkLinkProviderResult(v,r,d),((C=c._activeProviderReplies)===null||C===void 0?void 0:C.size)===c._linkProviders.length&&c._removeIntersectingLinks(r.y,c._activeProviderReplies)}})})},l.prototype._removeIntersectingLinks=function(r,s){for(var c=new Set,d=0;d<s.size;d++){var g=s.get(d);if(g)for(var v=0;v<g.length;v++)for(var b=g[v],S=b.link.range.start.y<r?0:b.link.range.start.x,E=b.link.range.end.y>r?this._bufferService.cols:b.link.range.end.x,C=S;C<=E;C++){if(c.has(C)){g.splice(v--,1);break}c.add(C)}}},l.prototype._checkLinkProviderResult=function(r,s,c){var d,g=this;if(!this._activeProviderReplies)return c;for(var v=this._activeProviderReplies.get(r),b=!1,S=0;S<r;S++)this._activeProviderReplies.has(S)&&!this._activeProviderReplies.get(S)||(b=!0);if(!b&&v){var E=v.find(function(_){return g._linkAtPosition(_.link,s)});E&&(c=!0,this._handleNewLink(E))}if(this._activeProviderReplies.size===this._linkProviders.length&&!c)for(S=0;S<this._activeProviderReplies.size;S++){var C=(d=this._activeProviderReplies.get(S))===null||d===void 0?void 0:d.find(function(_){return g._linkAtPosition(_.link,s)});if(C){c=!0,this._handleNewLink(C);break}}return c},l.prototype._onClick=function(r){if(this._element&&this._mouseService&&this._currentLink){var s=this._positionFromMouseEvent(r,this._element,this._mouseService);s&&this._linkAtPosition(this._currentLink.link,s)&&this._currentLink.link.activate(r,this._currentLink.link.text)}},l.prototype._clearCurrentLink=function(r,s){this._element&&this._currentLink&&this._lastMouseEvent&&(!r||!s||this._currentLink.link.range.start.y>=r&&this._currentLink.link.range.end.y<=s)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,i.disposeArray(this._linkCacheDisposables))},l.prototype._handleNewLink=function(r){var s=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var c=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);c&&this._linkAtPosition(r.link,c)&&(this._currentLink=r,this._currentLink.state={decorations:{underline:r.link.decorations===void 0||r.link.decorations.underline,pointerCursor:r.link.decorations===void 0||r.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,r.link,this._lastMouseEvent),r.link.decorations={},Object.defineProperties(r.link.decorations,{pointerCursor:{get:function(){var g,v;return(v=(g=s._currentLink)===null||g===void 0?void 0:g.state)===null||v===void 0?void 0:v.decorations.pointerCursor},set:function(g){var v,b;((v=s._currentLink)===null||v===void 0?void 0:v.state)&&s._currentLink.state.decorations.pointerCursor!==g&&(s._currentLink.state.decorations.pointerCursor=g,s._currentLink.state.isHovered&&((b=s._element)===null||b===void 0||b.classList.toggle("xterm-cursor-pointer",g)))}},underline:{get:function(){var g,v;return(v=(g=s._currentLink)===null||g===void 0?void 0:g.state)===null||v===void 0?void 0:v.decorations.underline},set:function(g){var v,b,S;((v=s._currentLink)===null||v===void 0?void 0:v.state)&&((S=(b=s._currentLink)===null||b===void 0?void 0:b.state)===null||S===void 0?void 0:S.decorations.underline)!==g&&(s._currentLink.state.decorations.underline=g,s._currentLink.state.isHovered&&s._fireUnderlineEvent(r.link,g))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(d){var g=d.start===0?0:d.start+1+s._bufferService.buffer.ydisp;s._clearCurrentLink(g,d.end+1+s._bufferService.buffer.ydisp)})))}},l.prototype._linkHover=function(r,s,c){var d;((d=this._currentLink)===null||d===void 0?void 0:d.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!0),this._currentLink.state.decorations.pointerCursor&&r.classList.add("xterm-cursor-pointer")),s.hover&&s.hover(c,s.text)},l.prototype._fireUnderlineEvent=function(r,s){var c=r.range,d=this._bufferService.buffer.ydisp,g=this._createLinkUnderlineEvent(c.start.x-1,c.start.y-d-1,c.end.x,c.end.y-d-1,void 0);(s?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(g)},l.prototype._linkLeave=function(r,s,c){var d;((d=this._currentLink)===null||d===void 0?void 0:d.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!1),this._currentLink.state.decorations.pointerCursor&&r.classList.remove("xterm-cursor-pointer")),s.leave&&s.leave(c,s.text)},l.prototype._linkAtPosition=function(r,s){var c=r.range.start.y===r.range.end.y,d=r.range.start.y<s.y,g=r.range.end.y>s.y;return(c&&r.range.start.x<=s.x&&r.range.end.x>=s.x||d&&r.range.end.x>=s.x||g&&r.range.start.x<=s.x||d&&g)&&r.range.start.y<=s.y&&r.range.end.y>=s.y},l.prototype._positionFromMouseEvent=function(r,s,c){var d=c.getCoords(r,s,this._bufferService.cols,this._bufferService.rows);if(d)return{x:d[0],y:d[1]+this._bufferService.buffer.ydisp}},l.prototype._createLinkUnderlineEvent=function(r,s,c,d,g){return{x1:r,y1:s,x2:c,y2:d,cols:this._bufferService.cols,fg:g}},l=f([h(0,u.IBufferService)],l)}(i.Disposable);p.Linkifier2=o},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CoreBrowserService=void 0;var A=function(){function m(f){this._textarea=f}return Object.defineProperty(m.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),m}();p.CoreBrowserService=A},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(E,C){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,T){_.__proto__=T}||function(_,T){for(var w in T)T.hasOwnProperty(w)&&(_[w]=T[w])})(E,C)},function(S,E){function C(){this.constructor=S}A(S,E),S.prototype=E===null?Object.create(E):(C.prototype=E.prototype,new C)});Object.defineProperty(p,"__esModule",{value:!0}),p.CoreTerminal=void 0;var f=x(2),h=x(1),u=x(66),a=x(67),i=x(68),t=x(74),o=x(75),e=x(0),l=x(76),r=x(77),s=x(78),c=x(80),d=x(81),g=x(19),v=x(82),b=function(S){function E(C){var _=S.call(this)||this;return _._onBinary=new e.EventEmitter,_._onData=new e.EventEmitter,_._onLineFeed=new e.EventEmitter,_._onResize=new e.EventEmitter,_._onScroll=new e.EventEmitter,_._instantiationService=new u.InstantiationService,_.optionsService=new t.OptionsService(C),_._instantiationService.setService(h.IOptionsService,_.optionsService),_._bufferService=_.register(_._instantiationService.createInstance(i.BufferService)),_._instantiationService.setService(h.IBufferService,_._bufferService),_._logService=_._instantiationService.createInstance(a.LogService),_._instantiationService.setService(h.ILogService,_._logService),_._coreService=_.register(_._instantiationService.createInstance(o.CoreService,function(){return _.scrollToBottom()})),_._instantiationService.setService(h.ICoreService,_._coreService),_._coreMouseService=_._instantiationService.createInstance(l.CoreMouseService),_._instantiationService.setService(h.ICoreMouseService,_._coreMouseService),_._dirtyRowService=_._instantiationService.createInstance(r.DirtyRowService),_._instantiationService.setService(h.IDirtyRowService,_._dirtyRowService),_.unicodeService=_._instantiationService.createInstance(s.UnicodeService),_._instantiationService.setService(h.IUnicodeService,_.unicodeService),_._charsetService=_._instantiationService.createInstance(c.CharsetService),_._instantiationService.setService(h.ICharsetService,_._charsetService),_._inputHandler=new g.InputHandler(_._bufferService,_._charsetService,_._coreService,_._dirtyRowService,_._logService,_.optionsService,_._coreMouseService,_.unicodeService),_.register(e.forwardEvent(_._inputHandler.onLineFeed,_._onLineFeed)),_.register(_._inputHandler),_.register(e.forwardEvent(_._bufferService.onResize,_._onResize)),_.register(e.forwardEvent(_._coreService.onData,_._onData)),_.register(e.forwardEvent(_._coreService.onBinary,_._onBinary)),_.register(_.optionsService.onOptionChange(function(T){return _._updateOptions(T)})),_._writeBuffer=new v.WriteBuffer(function(T){return _._inputHandler.parse(T)}),_}return m(E,S),Object.defineProperty(E.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),E.prototype.dispose=function(){var C;this._isDisposed||(S.prototype.dispose.call(this),(C=this._windowsMode)===null||C===void 0||C.dispose(),this._windowsMode=void 0)},E.prototype.write=function(C,_){this._writeBuffer.write(C,_)},E.prototype.writeSync=function(C){this._writeBuffer.writeSync(C)},E.prototype.resize=function(C,_){isNaN(C)||isNaN(_)||(C=Math.max(C,i.MINIMUM_COLS),_=Math.max(_,i.MINIMUM_ROWS),this._bufferService.resize(C,_))},E.prototype.scroll=function(C,_){_===void 0&&(_=!1);var T,w=this._bufferService.buffer;(T=this._cachedBlankLine)&&T.length===this.cols&&T.getFg(0)===C.fg&&T.getBg(0)===C.bg||(T=w.getBlankLine(C,_),this._cachedBlankLine=T),T.isWrapped=_;var O=w.ybase+w.scrollTop,I=w.ybase+w.scrollBottom;if(w.scrollTop===0){var R=w.lines.isFull;I===w.lines.length-1?R?w.lines.recycle().copyFrom(T):w.lines.push(T.clone()):w.lines.splice(I+1,0,T.clone()),R?this._bufferService.isUserScrolling&&(w.ydisp=Math.max(w.ydisp-1,0)):(w.ybase++,this._bufferService.isUserScrolling||w.ydisp++)}else{var M=I-O+1;w.lines.shiftElements(O+1,M-1,-1),w.lines.set(I,T.clone())}this._bufferService.isUserScrolling||(w.ydisp=w.ybase),this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom),this._onScroll.fire(w.ydisp)},E.prototype.scrollLines=function(C,_){var T=this._bufferService.buffer;if(C<0){if(T.ydisp===0)return;this._bufferService.isUserScrolling=!0}else C+T.ydisp>=T.ybase&&(this._bufferService.isUserScrolling=!1);var w=T.ydisp;T.ydisp=Math.max(Math.min(T.ydisp+C,T.ybase),0),w!==T.ydisp&&(_||this._onScroll.fire(T.ydisp))},E.prototype.scrollPages=function(C){this.scrollLines(C*(this.rows-1))},E.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},E.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},E.prototype.scrollToLine=function(C){var _=C-this._bufferService.buffer.ydisp;_!==0&&this.scrollLines(_)},E.prototype.addEscHandler=function(C,_){return this._inputHandler.addEscHandler(C,_)},E.prototype.addDcsHandler=function(C,_){return this._inputHandler.addDcsHandler(C,_)},E.prototype.addCsiHandler=function(C,_){return this._inputHandler.addCsiHandler(C,_)},E.prototype.addOscHandler=function(C,_){return this._inputHandler.addOscHandler(C,_)},E.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},E.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},E.prototype._updateOptions=function(C){var _;switch(C){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((_=this._windowsMode)===null||_===void 0||_.dispose(),this._windowsMode=void 0)}},E.prototype._enableWindowsMode=function(){var C=this;if(!this._windowsMode){var _=[];_.push(this.onLineFeed(d.updateWindowsModeWrappedState.bind(null,this._bufferService))),_.push(this.addCsiHandler({final:"H"},function(){return d.updateWindowsModeWrappedState(C._bufferService),!1})),this._windowsMode={dispose:function(){for(var w=0,O=_;w<O.length;w++)O[w].dispose()}}}},E}(f.Disposable);p.CoreTerminal=b},function(y,p,x){"use strict";var A=this&&this.__spreadArrays||function(){for(var a=0,i=0,t=arguments.length;i<t;i++)a+=arguments[i].length;var o=Array(a),e=0;for(i=0;i<t;i++)for(var l=arguments[i],r=0,s=l.length;r<s;r++,e++)o[e]=l[r];return o};Object.defineProperty(p,"__esModule",{value:!0}),p.InstantiationService=p.ServiceCollection=void 0;var m=x(1),f=x(14),h=function(){function a(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];this._entries=new Map;for(var o=0,e=i;o<e.length;o++){var l=e[o],r=l[0],s=l[1];this.set(r,s)}}return a.prototype.set=function(i,t){var o=this._entries.get(i);return this._entries.set(i,t),o},a.prototype.forEach=function(i){this._entries.forEach(function(t,o){return i(o,t)})},a.prototype.has=function(i){return this._entries.has(i)},a.prototype.get=function(i){return this._entries.get(i)},a}();p.ServiceCollection=h;var u=function(){function a(){this._services=new h,this._services.set(m.IInstantiationService,this)}return a.prototype.setService=function(i,t){this._services.set(i,t)},a.prototype.getService=function(i){return this._services.get(i)},a.prototype.createInstance=function(i){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];for(var e=f.getServiceDependencies(i).sort(function(v,b){return v.index-b.index}),l=[],r=0,s=e;r<s.length;r++){var c=s[r],d=this._services.get(c.id);if(!d)throw new Error("[createInstance] "+i.name+" depends on UNKNOWN service "+c.id+".");l.push(d)}var g=e.length>0?e[0].index:t.length;if(t.length!==g)throw new Error("[createInstance] First service dependency of "+i.name+" at position "+(g+1)+" conflicts with "+t.length+" static arguments");return new(i.bind.apply(i,A([void 0],A(t,l))))},a}();p.InstantiationService=u},function(y,p,x){"use strict";var A=this&&this.__decorate||function(t,o,e,l){var r,s=arguments.length,c=s<3?o:l===null?l=Object.getOwnPropertyDescriptor(o,e):l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(t,o,e,l);else for(var d=t.length-1;d>=0;d--)(r=t[d])&&(c=(s<3?r(c):s>3?r(o,e,c):r(o,e))||c);return s>3&&c&&Object.defineProperty(o,e,c),c},m=this&&this.__param||function(t,o){return function(e,l){o(e,l,t)}},f=this&&this.__spreadArrays||function(){for(var t=0,o=0,e=arguments.length;o<e;o++)t+=arguments[o].length;var l=Array(t),r=0;for(o=0;o<e;o++)for(var s=arguments[o],c=0,d=s.length;c<d;c++,r++)l[r]=s[c];return l};Object.defineProperty(p,"__esModule",{value:!0}),p.LogService=p.LogLevel=void 0;var h,u=x(1);!function(t){t[t.DEBUG=0]="DEBUG",t[t.INFO=1]="INFO",t[t.WARN=2]="WARN",t[t.ERROR=3]="ERROR",t[t.OFF=4]="OFF"}(h=p.LogLevel||(p.LogLevel={}));var a={debug:h.DEBUG,info:h.INFO,warn:h.WARN,error:h.ERROR,off:h.OFF},i=function(){function t(o){var e=this;this._optionsService=o,this._updateLogLevel(),this._optionsService.onOptionChange(function(l){l==="logLevel"&&e._updateLogLevel()})}return t.prototype._updateLogLevel=function(){this._logLevel=a[this._optionsService.options.logLevel]},t.prototype._evalLazyOptionalParams=function(o){for(var e=0;e<o.length;e++)typeof o[e]=="function"&&(o[e]=o[e]())},t.prototype._log=function(o,e,l){this._evalLazyOptionalParams(l),o.call.apply(o,f([console,"xterm.js: "+e],l))},t.prototype.debug=function(o){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=h.DEBUG&&this._log(console.log,o,e)},t.prototype.info=function(o){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=h.INFO&&this._log(console.info,o,e)},t.prototype.warn=function(o){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=h.WARN&&this._log(console.warn,o,e)},t.prototype.error=function(o){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=h.ERROR&&this._log(console.error,o,e)},t=A([m(0,u.IOptionsService)],t)}();p.LogService=i},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(l,r){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var d in c)c.hasOwnProperty(d)&&(s[d]=c[d])})(l,r)},function(e,l){function r(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(r.prototype=l.prototype,new r)}),f=this&&this.__decorate||function(e,l,r,s){var c,d=arguments.length,g=d<3?l:s===null?s=Object.getOwnPropertyDescriptor(l,r):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,l,r,s);else for(var v=e.length-1;v>=0;v--)(c=e[v])&&(g=(d<3?c(g):d>3?c(l,r,g):c(l,r))||g);return d>3&&g&&Object.defineProperty(l,r,g),g},h=this&&this.__param||function(e,l){return function(r,s){l(r,s,e)}};Object.defineProperty(p,"__esModule",{value:!0}),p.BufferService=p.MINIMUM_ROWS=p.MINIMUM_COLS=void 0;var u=x(1),a=x(69),i=x(0),t=x(2);p.MINIMUM_COLS=2,p.MINIMUM_ROWS=1;var o=function(e){function l(r){var s=e.call(this)||this;return s._optionsService=r,s.isUserScrolling=!1,s._onResize=new i.EventEmitter,s.cols=Math.max(r.options.cols,p.MINIMUM_COLS),s.rows=Math.max(r.options.rows,p.MINIMUM_ROWS),s.buffers=new a.BufferSet(r,s),s}return m(l,e),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(){e.prototype.dispose.call(this),this.buffers.dispose()},l.prototype.resize=function(r,s){this.cols=r,this.rows=s,this.buffers.resize(r,s),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:r,rows:s})},l.prototype.reset=function(){this.buffers.dispose(),this.buffers=new a.BufferSet(this._optionsService,this),this.isUserScrolling=!1},l=f([h(0,u.IOptionsService)],l)}(t.Disposable);p.BufferService=o},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(i,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var l in e)e.hasOwnProperty(l)&&(o[l]=e[l])})(i,t)},function(a,i){function t(){this.constructor=a}A(a,i),a.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)});Object.defineProperty(p,"__esModule",{value:!0}),p.BufferSet=void 0;var f=x(70),h=x(0),u=function(a){function i(t,o){var e=a.call(this)||this;return e._onBufferActivate=e.register(new h.EventEmitter),e._normal=new f.Buffer(!0,t,o),e._normal.fillViewportRows(),e._alt=new f.Buffer(!1,t,o),e._activeBuffer=e._normal,e.setupTabStops(),e}return m(i,a),Object.defineProperty(i.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),i.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}))},i.prototype.activateAltBuffer=function(t){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(t),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}))},i.prototype.resize=function(t,o){this._normal.resize(t,o),this._alt.resize(t,o)},i.prototype.setupTabStops=function(t){this._normal.setupTabStops(t),this._alt.setupTabStops(t)},i}(x(2).Disposable);p.BufferSet=u},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BufferStringIterator=p.Buffer=p.MAX_BUFFER_SIZE=void 0;var A=x(71),m=x(16),f=x(4),h=x(3),u=x(72),a=x(73),i=x(20),t=x(6);p.MAX_BUFFER_SIZE=4294967295;var o=function(){function l(r,s,c){this._hasScrollback=r,this._optionsService=s,this._bufferService=c,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=m.DEFAULT_ATTR_DATA.clone(),this.savedCharset=i.DEFAULT_CHARSET,this.markers=[],this._nullCell=f.CellData.fromCharData([0,h.NULL_CELL_CHAR,h.NULL_CELL_WIDTH,h.NULL_CELL_CODE]),this._whitespaceCell=f.CellData.fromCharData([0,h.WHITESPACE_CELL_CHAR,h.WHITESPACE_CELL_WIDTH,h.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new A.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return l.prototype.getNullCell=function(r){return r?(this._nullCell.fg=r.fg,this._nullCell.bg=r.bg,this._nullCell.extended=r.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new t.ExtendedAttrs),this._nullCell},l.prototype.getWhitespaceCell=function(r){return r?(this._whitespaceCell.fg=r.fg,this._whitespaceCell.bg=r.bg,this._whitespaceCell.extended=r.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new t.ExtendedAttrs),this._whitespaceCell},l.prototype.getBlankLine=function(r,s){return new m.BufferLine(this._bufferService.cols,this.getNullCell(r),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&&s<this._rows},enumerable:!1,configurable:!0}),l.prototype._getCorrectBufferLength=function(r){if(!this._hasScrollback)return r;var s=r+this._optionsService.options.scrollback;return s>p.MAX_BUFFER_SIZE?p.MAX_BUFFER_SIZE:s},l.prototype.fillViewportRows=function(r){if(this.lines.length===0){r===void 0&&(r=m.DEFAULT_ATTR_DATA);for(var s=this._rows;s--;)this.lines.push(this.getBlankLine(r))}},l.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new A.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},l.prototype.resize=function(r,s){var c=this.getNullCell(m.DEFAULT_ATTR_DATA),d=this._getCorrectBufferLength(s);if(d>this.lines.maxLength&&(this.lines.maxLength=d),this.lines.length>0){if(this._cols<r)for(var g=0;g<this.lines.length;g++)this.lines.get(g).resize(r,c);var v=0;if(this._rows<s)for(var b=this._rows;b<s;b++)this.lines.length<s+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new m.BufferLine(r,c)):this.ybase>0&&this.lines.length<=this.ybase+this.y+v+1?(this.ybase--,v++,this.ydisp>0&&this.ydisp--):this.lines.push(new m.BufferLine(r,c)));else for(b=this._rows;b>s;b--)this.lines.length>s+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(d<this.lines.maxLength){var S=this.lines.length-d;S>0&&(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=d}this.x=Math.min(this.x,r-1),this.y=Math.min(this.y,s-1),v&&(this.y+=v),this.savedX=Math.min(this.savedX,r-1),this.scrollTop=0}if(this.scrollBottom=s-1,this._isReflowEnabled&&(this._reflow(r,s),this._cols>r))for(g=0;g<this.lines.length;g++)this.lines.get(g).resize(r,c);this._cols=r,this._rows=s},Object.defineProperty(l.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),l.prototype._reflow=function(r,s){this._cols!==r&&(r>this._cols?this._reflowLarger(r,s):this._reflowSmaller(r,s))},l.prototype._reflowLarger=function(r,s){var c=u.reflowLargerGetLinesToRemove(this.lines,this._cols,r,this.ybase+this.y,this.getNullCell(m.DEFAULT_ATTR_DATA));if(c.length>0){var d=u.reflowLargerCreateNewLayout(this.lines,c);u.reflowLargerApplyNewLayout(this.lines,d.layout),this._reflowLargerAdjustViewport(r,s,d.countRemoved)}},l.prototype._reflowLargerAdjustViewport=function(r,s,c){for(var d=this.getNullCell(m.DEFAULT_ATTR_DATA),g=c;g-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<s&&this.lines.push(new m.BufferLine(r,d))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-c,0)},l.prototype._reflowSmaller=function(r,s){for(var c=this.getNullCell(m.DEFAULT_ATTR_DATA),d=[],g=0,v=this.lines.length-1;v>=0;v--){var b=this.lines.get(v);if(!(!b||!b.isWrapped&&b.getTrimmedLength()<=r)){for(var S=[b];b.isWrapped&&v>0;)b=this.lines.get(--v),S.unshift(b);var E=this.ybase+this.y;if(!(E>=v&&E<v+S.length)){var C=S[S.length-1].getTrimmedLength(),_=u.reflowSmallerGetNewLineLengths(S,this._cols,r),T=_.length-S.length,w=void 0;w=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+T):Math.max(0,this.lines.length-this.lines.maxLength+T);for(var O=[],I=0;I<T;I++){var R=this.getBlankLine(m.DEFAULT_ATTR_DATA,!0);O.push(R)}O.length>0&&(d.push({start:v+S.length+g,newLines:O}),g+=O.length),S.push.apply(S,O);var M=_.length-1,F=_[M];F===0&&(F=_[--M]);for(var P=S.length-T-1,X=C;P>=0;){var B=Math.min(X,F);if(S[M].copyCellsFrom(S[P],X-B,F-B,B,!0),(F-=B)===0&&(F=_[--M]),(X-=B)===0){P--;var j=Math.max(P,0);X=u.getWrappedLineTrimmedLength(S,j,this._cols)}}for(I=0;I<S.length;I++)_[I]<r&&S[I].setCell(_[I],c);for(var W=T-w;W-- >0;)this.ybase===0?this.y<s-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+g)-s&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+T,this.ybase+s-1)}}}if(d.length>0){var z=[],V=[];for(I=0;I<this.lines.length;I++)V.push(this.lines.get(I));var Q=this.lines.length,G=Q-1,ee=0,ce=d[ee];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+g);var be=0;for(I=Math.min(this.lines.maxLength-1,Q+g-1);I>=0;I--)if(ce&&ce.start>G+be){for(var le=ce.newLines.length-1;le>=0;le--)this.lines.set(I--,ce.newLines[le]);I++,z.push({index:G+1,amount:ce.newLines.length}),be+=ce.newLines.length,ce=d[++ee]}else this.lines.set(I,V[G--]);var Ie=0;for(I=z.length-1;I>=0;I--)z[I].index+=Ie,this.lines.onInsertEmitter.fire(z[I]),Ie+=z[I].amount;var ke=Math.max(0,Q+g-this.lines.maxLength);ke>0&&this.lines.onTrimEmitter.fire(ke)}},l.prototype.stringIndexToBufferIndex=function(r,s,c){for(c===void 0&&(c=!1);s;){var d=this.lines.get(r);if(!d)return[-1,-1];for(var g=c?d.getTrimmedLength():d.length,v=0;v<g;++v)if(d.get(v)[h.CHAR_DATA_WIDTH_INDEX]&&(s-=d.get(v)[h.CHAR_DATA_CHAR_INDEX].length||1),s<0)return[r,v];r++}return[r,0]},l.prototype.translateBufferLineToString=function(r,s,c,d){c===void 0&&(c=0);var g=this.lines.get(r);return g?g.translateToString(s,c,d):""},l.prototype.getWrappedRangeForLine=function(r){for(var s=r,c=r;s>0&&this.lines.get(s).isWrapped;)s--;for(;c+1<this.lines.length&&this.lines.get(c+1).isWrapped;)c++;return{first:s,last:c}},l.prototype.setupTabStops=function(r){for(r!=null?this.tabs[r]||(r=this.prevStop(r)):(this.tabs={},r=0);r<this._cols;r+=this._optionsService.options.tabStopWidth)this.tabs[r]=!0},l.prototype.prevStop=function(r){for(r==null&&(r=this.x);!this.tabs[--r]&&r>0;);return r>=this._cols?this._cols-1:r<0?0:r},l.prototype.nextStop=function(r){for(r==null&&(r=this.x);!this.tabs[++r]&&r<this._cols;);return r>=this._cols?this._cols-1:r<0?0:r},l.prototype.addMarker=function(r){var s=this,c=new a.Marker(r);return this.markers.push(c),c.register(this.lines.onTrim(function(d){c.line-=d,c.line<0&&c.dispose()})),c.register(this.lines.onInsert(function(d){c.line>=d.index&&(c.line+=d.amount)})),c.register(this.lines.onDelete(function(d){c.line>=d.index&&c.line<d.index+d.amount&&c.dispose(),c.line>d.index&&(c.line-=d.amount)})),c.register(c.onDispose(function(){return s._removeMarker(c)})),c},l.prototype._removeMarker=function(r){this.markers.splice(this.markers.indexOf(r),1)},l.prototype.iterator=function(r,s,c,d,g){return new e(this,r,s,c,d,g)},l}();p.Buffer=o;var e=function(){function l(r,s,c,d,g,v){c===void 0&&(c=0),d===void 0&&(d=r.lines.length),g===void 0&&(g=0),v===void 0&&(v=0),this._buffer=r,this._trimRight=s,this._startIndex=c,this._endIndex=d,this._startOverscan=g,this._endOverscan=v,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._current<this._endIndex},l.prototype.next=function(){var r=this._buffer.getWrappedRangeForLine(this._current);r.first<this._startIndex-this._startOverscan&&(r.first=this._startIndex-this._startOverscan),r.last>this._endIndex+this._endOverscan&&(r.last=this._endIndex+this._endOverscan),r.first=Math.max(r.first,0),r.last=Math.min(r.last,this._buffer.lines.length);for(var s="",c=r.first;c<=r.last;++c)s+=this._buffer.translateBufferLineToString(c,this._trimRight);return this._current=r.last+1,{range:r,content:s}},l}();p.BufferStringIterator=e},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CircularList=void 0;var A=x(0),m=function(){function f(h){this._maxLength=h,this.onDeleteEmitter=new A.EventEmitter,this.onInsertEmitter=new A.EventEmitter,this.onTrimEmitter=new A.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(f.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"maxLength",{get:function(){return this._maxLength},set:function(u){if(this._maxLength!==u){for(var a=new Array(u),i=0;i<Math.min(u,this.length);i++)a[i]=this._array[this._getCyclicIndex(i)];this._array=a,this._maxLength=u,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"length",{get:function(){return this._length},set:function(u){if(u>this._length)for(var a=this._length;a<u;a++)this._array[a]=void 0;this._length=u},enumerable:!1,configurable:!0}),f.prototype.get=function(h){return this._array[this._getCyclicIndex(h)]},f.prototype.set=function(h,u){this._array[this._getCyclicIndex(h)]=u},f.prototype.push=function(h){this._array[this._getCyclicIndex(this._length)]=h,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},f.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(f.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),f.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},f.prototype.splice=function(h,u){for(var a=[],i=2;i<arguments.length;i++)a[i-2]=arguments[i];if(u){for(var t=h;t<this._length-u;t++)this._array[this._getCyclicIndex(t)]=this._array[this._getCyclicIndex(t+u)];this._length-=u}for(t=this._length-1;t>=h;t--)this._array[this._getCyclicIndex(t+a.length)]=this._array[this._getCyclicIndex(t)];for(t=0;t<a.length;t++)this._array[this._getCyclicIndex(h+t)]=a[t];if(this._length+a.length>this._maxLength){var o=this._length+a.length-this._maxLength;this._startIndex+=o,this._length=this._maxLength,this.onTrimEmitter.fire(o)}else this._length+=a.length},f.prototype.trimStart=function(h){h>this._length&&(h=this._length),this._startIndex+=h,this._length-=h,this.onTrimEmitter.fire(h)},f.prototype.shiftElements=function(h,u,a){if(!(u<=0)){if(h<0||h>=this._length)throw new Error("start argument out of range");if(h+a<0)throw new Error("Cannot shift elements in list beyond index 0");if(a>0){for(var i=u-1;i>=0;i--)this.set(h+i+a,this.get(h+i));var t=h+u+a-this._length;if(t>0)for(this._length+=t;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(i=0;i<u;i++)this.set(h+i+a,this.get(h+i))}},f.prototype._getCyclicIndex=function(h){return(this._startIndex+h)%this._maxLength},f}();p.CircularList=m},function(y,p,x){"use strict";function A(m,f,h){if(f===m.length-1)return m[f].getTrimmedLength();var u=!m[f].hasContent(h-1)&&m[f].getWidth(h-1)===1,a=m[f+1].getWidth(0)===2;return u&&a?h-1:h}Object.defineProperty(p,"__esModule",{value:!0}),p.getWrappedLineTrimmedLength=p.reflowSmallerGetNewLineLengths=p.reflowLargerApplyNewLayout=p.reflowLargerCreateNewLayout=p.reflowLargerGetLinesToRemove=void 0,p.reflowLargerGetLinesToRemove=function(m,f,h,u,a){for(var i=[],t=0;t<m.length-1;t++){var o=t,e=m.get(++o);if(e.isWrapped){for(var l=[m.get(t)];o<m.length&&e.isWrapped;)l.push(e),e=m.get(++o);if(u>=t&&u<o)t+=l.length-1;else{for(var r=0,s=A(l,r,f),c=1,d=0;c<l.length;){var g=A(l,c,f),v=g-d,b=h-s,S=Math.min(v,b);l[r].copyCellsFrom(l[c],d,s,S,!1),(s+=S)===h&&(r++,s=0),(d+=S)===g&&(c++,d=0),s===0&&r!==0&&l[r-1].getWidth(h-1)===2&&(l[r].copyCellsFrom(l[r-1],h-1,s++,1,!1),l[r-1].setCell(h-1,a))}l[r].replaceCells(s,h,a);for(var E=0,C=l.length-1;C>0&&(C>r||l[C].getTrimmedLength()===0);C--)E++;E>0&&(i.push(t+l.length-E),i.push(E)),t+=l.length-1}}}return i},p.reflowLargerCreateNewLayout=function(m,f){for(var h=[],u=0,a=f[u],i=0,t=0;t<m.length;t++)if(a===t){var o=f[++u];m.onDeleteEmitter.fire({index:t-i,amount:o}),t+=o-1,i+=o,a=f[++u]}else h.push(t);return{layout:h,countRemoved:i}},p.reflowLargerApplyNewLayout=function(m,f){for(var h=[],u=0;u<f.length;u++)h.push(m.get(f[u]));for(u=0;u<h.length;u++)m.set(u,h[u]);m.length=f.length},p.reflowSmallerGetNewLineLengths=function(m,f,h){for(var u=[],a=m.map(function(s,c){return A(m,c,f)}).reduce(function(s,c){return s+c}),i=0,t=0,o=0;o<a;){if(a-o<h){u.push(a-o);break}i+=h;var e=A(m,t,f);i>e&&(i-=e,t++);var l=m[t].getWidth(i-1)===2;l&&i--;var r=l?h-1:h;u.push(r),o+=r}return u},p.getWrappedLineTrimmedLength=A},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(a,i){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var e in o)o.hasOwnProperty(e)&&(t[e]=o[e])})(a,i)},function(u,a){function i(){this.constructor=u}A(u,a),u.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)});Object.defineProperty(p,"__esModule",{value:!0}),p.Marker=void 0;var f=x(0),h=function(u){function a(i){var t=u.call(this)||this;return t.line=i,t._id=a._nextId++,t.isDisposed=!1,t._onDispose=new f.EventEmitter,t}return m(a,u),Object.defineProperty(a.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),a.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},a._nextId=1,a}(x(2).Disposable);p.Marker=h},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.OptionsService=p.DEFAULT_OPTIONS=p.DEFAULT_BELL_SOUND=void 0;var A=x(0),m=x(11),f=x(33);p.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",p.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:p.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:m.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var h=["cols","rows"],u=function(){function a(i){this._onOptionChange=new A.EventEmitter,this.options=f.clone(p.DEFAULT_OPTIONS);for(var t=0,o=Object.keys(i);t<o.length;t++){var e=o[t];if(e in this.options){var l=i[e];this.options[e]=l}}}return Object.defineProperty(a.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),a.prototype.setOption=function(i,t){if(!(i in p.DEFAULT_OPTIONS))throw new Error('No option with key "'+i+'"');if(h.indexOf(i)!==-1)throw new Error('Option "'+i+'" can only be set in the constructor');this.options[i]!==t&&(t=this._sanitizeAndValidateOption(i,t),this.options[i]!==t&&(this.options[i]=t,this._onOptionChange.fire(i)))},a.prototype._sanitizeAndValidateOption=function(i,t){switch(i){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":t||(t=p.DEFAULT_OPTIONS[i]);break;case"cursorWidth":t=Math.floor(t);case"lineHeight":case"tabStopWidth":if(t<1)throw new Error(i+" cannot be less than 1, value: "+t);break;case"minimumContrastRatio":t=Math.max(1,Math.min(21,Math.round(10*t)/10));break;case"scrollback":if((t=Math.min(t,4294967295))<0)throw new Error(i+" cannot be less than 0, value: "+t);break;case"fastScrollSensitivity":case"scrollSensitivity":if(t<=0)throw new Error(i+" cannot be less than or equal to 0, value: "+t)}return t},a.prototype.getOption=function(i){if(!(i in p.DEFAULT_OPTIONS))throw new Error('No option with key "'+i+'"');return this.options[i]},a}();p.OptionsService=u},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(s,c){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,g){d.__proto__=g}||function(d,g){for(var v in g)g.hasOwnProperty(v)&&(d[v]=g[v])})(s,c)},function(r,s){function c(){this.constructor=r}A(r,s),r.prototype=s===null?Object.create(s):(c.prototype=s.prototype,new c)}),f=this&&this.__decorate||function(r,s,c,d){var g,v=arguments.length,b=v<3?s:d===null?d=Object.getOwnPropertyDescriptor(s,c):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(r,s,c,d);else for(var S=r.length-1;S>=0;S--)(g=r[S])&&(b=(v<3?g(b):v>3?g(s,c,b):g(s,c))||b);return v>3&&b&&Object.defineProperty(s,c,b),b},h=this&&this.__param||function(r,s){return function(c,d){s(c,d,r)}};Object.defineProperty(p,"__esModule",{value:!0}),p.CoreService=void 0;var u=x(1),a=x(0),i=x(33),t=x(2),o=Object.freeze({insertMode:!1}),e=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),l=function(r){function s(c,d,g,v){var b=r.call(this)||this;return b._bufferService=d,b._logService=g,b._optionsService=v,b.isCursorInitialized=!1,b.isCursorHidden=!1,b._onData=b.register(new a.EventEmitter),b._onUserInput=b.register(new a.EventEmitter),b._onBinary=b.register(new a.EventEmitter),b._scrollToBottom=c,b.register({dispose:function(){return b._scrollToBottom=void 0}}),b.modes=i.clone(o),b.decPrivateModes=i.clone(e),b}return m(s,r),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=i.clone(o),this.decPrivateModes=i.clone(e)},s.prototype.triggerDataEvent=function(c,d){if(d===void 0&&(d=!1),!this._optionsService.options.disableStdin){var g=this._bufferService.buffer;g.ybase!==g.ydisp&&this._scrollToBottom(),d&&this._onUserInput.fire(),this._logService.debug('sending data "'+c+'"',function(){return c.split("").map(function(v){return v.charCodeAt(0)})}),this._onData.fire(c)}},s.prototype.triggerBinaryEvent=function(c){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+c+'"',function(){return c.split("").map(function(d){return d.charCodeAt(0)})}),this._onBinary.fire(c))},s=f([h(1,u.IBufferService),h(2,u.ILogService),h(3,u.IOptionsService)],s)}(t.Disposable);p.CoreService=l},function(y,p,x){"use strict";var A=this&&this.__decorate||function(e,l,r,s){var c,d=arguments.length,g=d<3?l:s===null?s=Object.getOwnPropertyDescriptor(l,r):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,l,r,s);else for(var v=e.length-1;v>=0;v--)(c=e[v])&&(g=(d<3?c(g):d>3?c(l,r,g):c(l,r))||g);return d>3&&g&&Object.defineProperty(l,r,g),g},m=this&&this.__param||function(e,l){return function(r,s){l(r,s,e)}};Object.defineProperty(p,"__esModule",{value:!0}),p.CoreMouseService=void 0;var f=x(1),h=x(0),u={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 a(e,l){var r=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return e.button===4?(r|=64,r|=e.action):(r|=3&e.button,4&e.button&&(r|=64),8&e.button&&(r|=128),e.action===32?r|=32:e.action!==0||l||(r|=3)),r}var i=String.fromCharCode,t={DEFAULT:function(l){var r=[a(l,!1)+32,l.col+32,l.row+32];return r[0]>255||r[1]>255||r[2]>255?"":"[M"+i(r[0])+i(r[1])+i(r[2])},SGR:function(l){var r=l.action===0&&l.button!==4?"m":"M";return"[<"+a(l,!0)+";"+l.col+";"+l.row+r}},o=function(){function e(l,r){this._bufferService=l,this._coreService=r,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new h.EventEmitter,this._lastEvent=null;for(var s=0,c=Object.keys(u);s<c.length;s++){var d=c[s];this.addProtocol(d,u[d])}for(var g=0,v=Object.keys(t);g<v.length;g++){var b=v[g];this.addEncoding(b,t[b])}this.reset()}return e.prototype.addProtocol=function(l,r){this._protocols[l]=r},e.prototype.addEncoding=function(l,r){this._encodings[l]=r},Object.defineProperty(e.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(r){if(!this._protocols[r])throw new Error('unknown protocol "'+r+'"');this._activeProtocol=r,this._onProtocolChange.fire(this._protocols[r].events)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(r){if(!this._encodings[r])throw new Error('unknown encoding "'+r+'"');this._activeEncoding=r},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(e.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),e.prototype.triggerMouseEvent=function(l){if(l.col<0||l.col>=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 r=this._encodings[this._activeEncoding](l);return r&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(r):this._coreService.triggerDataEvent(r,!0)),this._lastEvent=l,!0},e.prototype.explainEvents=function(l){return{down:!!(1&l),up:!!(2&l),drag:!!(4&l),move:!!(8&l),wheel:!!(16&l)}},e.prototype._compareEvents=function(l,r){return l.col===r.col&&l.row===r.row&&l.button===r.button&&l.action===r.action&&l.ctrl===r.ctrl&&l.alt===r.alt&&l.shift===r.shift},e=A([m(0,f.IBufferService),m(1,f.ICoreService)],e)}();p.CoreMouseService=o},function(y,p,x){"use strict";var A=this&&this.__decorate||function(u,a,i,t){var o,e=arguments.length,l=e<3?a:t===null?t=Object.getOwnPropertyDescriptor(a,i):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(u,a,i,t);else for(var r=u.length-1;r>=0;r--)(o=u[r])&&(l=(e<3?o(l):e>3?o(a,i,l):o(a,i))||l);return e>3&&l&&Object.defineProperty(a,i,l),l},m=this&&this.__param||function(u,a){return function(i,t){a(i,t,u)}};Object.defineProperty(p,"__esModule",{value:!0}),p.DirtyRowService=void 0;var f=x(1),h=function(){function u(a){this._bufferService=a,this.clearRange()}return Object.defineProperty(u.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),u.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},u.prototype.markDirty=function(a){a<this._start?this._start=a:a>this._end&&(this._end=a)},u.prototype.markRangeDirty=function(a,i){if(a>i){var t=a;a=i,i=t}a<this._start&&(this._start=a),i>this._end&&(this._end=i)},u.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},u=A([m(0,f.IBufferService)],u)}();p.DirtyRowService=h},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.UnicodeService=void 0;var A=x(0),m=x(79),f=function(){function h(){this._providers=Object.create(null),this._active="",this._onChange=new A.EventEmitter;var u=new m.UnicodeV6;this.register(u),this._active=u.version,this._activeProvider=u}return Object.defineProperty(h.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"activeVersion",{get:function(){return this._active},set:function(a){if(!this._providers[a])throw new Error('unknown Unicode version "'+a+'"');this._active=a,this._activeProvider=this._providers[a],this._onChange.fire(a)},enumerable:!1,configurable:!0}),h.prototype.register=function(u){this._providers[u.version]=u},h.prototype.wcwidth=function(u){return this._activeProvider.wcwidth(u)},h.prototype.getStringCellWidth=function(u){for(var a=0,i=u.length,t=0;t<i;++t){var o=u.charCodeAt(t);if(55296<=o&&o<=56319){if(++t>=i)return a+this.wcwidth(o);var e=u.charCodeAt(t);56320<=e&&e<=57343?o=1024*(o-55296)+e-56320+65536:a+=this.wcwidth(e)}a+=this.wcwidth(o)}return a},h}();p.UnicodeService=f},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.UnicodeV6=void 0;var A,m=x(15),f=[[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]],h=[[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]],u=function(){function a(){if(this.version="6",!A){A=new Uint8Array(65536),m.fill(A,1),A[0]=0,m.fill(A,0,1,32),m.fill(A,0,127,160),m.fill(A,2,4352,4448),A[9001]=2,A[9002]=2,m.fill(A,2,11904,42192),A[12351]=1,m.fill(A,2,44032,55204),m.fill(A,2,63744,64256),m.fill(A,2,65040,65050),m.fill(A,2,65072,65136),m.fill(A,2,65280,65377),m.fill(A,2,65504,65511);for(var i=0;i<f.length;++i)m.fill(A,0,f[i][0],f[i][1]+1)}}return a.prototype.wcwidth=function(i){return i<32?0:i<127?1:i<65536?A[i]:function(t,o){var e,l=0,r=o.length-1;if(t<o[0][0]||t>o[r][1])return!1;for(;r>=l;)if(t>o[e=l+r>>1][1])l=e+1;else{if(!(t<o[e][0]))return!0;r=e-1}return!1}(i,h)?0:i>=131072&&i<=196605||i>=196608&&i<=262141?2:1},a}();p.UnicodeV6=u},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CharsetService=void 0;var A=function(){function m(){this.glevel=0,this._charsets=[]}return m.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},m.prototype.setgLevel=function(f){this.glevel=f,this.charset=this._charsets[f]},m.prototype.setgCharset=function(f,h){this._charsets[f]=h,this.glevel===f&&(this.charset=h)},m}();p.CharsetService=A},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.updateWindowsModeWrappedState=void 0;var A=x(3);p.updateWindowsModeWrappedState=function(m){var f=m.buffer.lines.get(m.buffer.ybase+m.buffer.y-1),h=f==null?void 0:f.get(m.cols-1),u=m.buffer.lines.get(m.buffer.ybase+m.buffer.y);u&&h&&(u.isWrapped=h[A.CHAR_DATA_CODE_INDEX]!==A.NULL_CELL_CODE&&h[A.CHAR_DATA_CODE_INDEX]!==A.WHITESPACE_CELL_CODE)}},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.WriteBuffer=void 0;var A=function(){function m(f){this._action=f,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return m.prototype.writeSync=function(f){if(this._writeBuffer.length){for(var h=this._bufferOffset;h<this._writeBuffer.length;++h){var u=this._writeBuffer[h],a=this._callbacks[h];this._action(u),a&&a()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(f)},m.prototype.write=function(f,h){var u=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return u._innerWrite()})),this._pendingData+=f.length,this._writeBuffer.push(f),this._callbacks.push(h)},m.prototype._innerWrite=function(){for(var f=this,h=Date.now();this._writeBuffer.length>this._bufferOffset;){var u=this._writeBuffer[this._bufferOffset],a=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(u),this._pendingData-=u.length,a&&a(),Date.now()-h>=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 f._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},m}();p.WriteBuffer=A},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AddonManager=void 0;var A=function(){function m(){this._addons=[]}return m.prototype.dispose=function(){for(var f=this._addons.length-1;f>=0;f--)this._addons[f].instance.dispose()},m.prototype.loadAddon=function(f,h){var u=this,a={instance:h,dispose:h.dispose,isDisposed:!1};this._addons.push(a),h.dispose=function(){return u._wrappedAddonDispose(a)},h.activate(f)},m.prototype._wrappedAddonDispose=function(f){if(!f.isDisposed){for(var h=-1,u=0;u<this._addons.length;u++)if(this._addons[u]===f){h=u;break}if(h===-1)throw new Error("Could not dispose an addon that has not been loaded");f.isDisposed=!0,f.dispose.apply(f.instance),this._addons.splice(h,1)}},m}();p.AddonManager=A}])})},"/SeX":function(k,D,n){var y=n("knOB"),p=n("qZFw"),x=function(m){this.name=m||"",this.cx=0,this.cy=0,this._radiusAxis=new y,this._angleAxis=new p,this._radiusAxis.polar=this._angleAxis.polar=this};x.prototype={type:"polar",axisPointerEnabled:!0,constructor:x,dimensions:["radius","angle"],model:null,containPoint:function(m){var f=this.pointToCoord(m);return this._radiusAxis.contain(f[0])&&this._angleAxis.contain(f[1])},containData:function(m){return this._radiusAxis.containData(m[0])&&this._angleAxis.containData(m[1])},getAxis:function(m){return this["_"+m+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(m){var f=[],h=this._angleAxis,u=this._radiusAxis;return h.scale.type===m&&f.push(h),u.scale.type===m&&f.push(u),f},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(m){var f=this._angleAxis;return m===f?this._radiusAxis:f},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(m){var f=m!=null&&m!=="auto"?this.getAxis(m):this.getBaseAxis();return{baseAxes:[f],otherAxes:[this.getOtherAxis(f)]}},dataToPoint:function(m,f){return this.coordToPoint([this._radiusAxis.dataToRadius(m[0],f),this._angleAxis.dataToAngle(m[1],f)])},pointToData:function(m,f){var h=this.pointToCoord(m);return[this._radiusAxis.radiusToData(h[0],f),this._angleAxis.angleToData(h[1],f)]},pointToCoord:function(m){var f=m[0]-this.cx,h=m[1]-this.cy,u=this.getAngleAxis(),a=u.getExtent(),i=Math.min(a[0],a[1]),t=Math.max(a[0],a[1]);u.inverse?i=t-360:t=i+360;var o=Math.sqrt(f*f+h*h);f/=o,h/=o;for(var e=Math.atan2(-h,f)/Math.PI*180,l=e<i?1:-1;e<i||e>t;)e+=l*360;return[o,e]},coordToPoint:function(m){var f=m[0],h=m[1]/180*Math.PI,u=Math.cos(h)*f+this.cx,a=-Math.sin(h)*f+this.cy;return[u,a]},getArea:function(){var m=this.getAngleAxis(),f=this.getRadiusAxis(),h=f.getExtent().slice();h[0]>h[1]&&h.reverse();var u=m.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:h[0],r:h[1],startAngle:-u[0]*a,endAngle:-u[1]*a,clockwise:m.inverse,contain:function(i,t){var o=i-this.cx,e=t-this.cy,l=o*o+e*e,r=this.r,s=this.r0;return l<=r*r&&l>=s*s}}}};var A=x;k.exports=A},"/WM3":function(k,D,n){var y=n("QuXc"),p=n("bYtY"),x=p.isFunction,A={createOnAllSeries:!0,performRawSeries:!0,reset:function(m,f){var h=m.getData(),u=(m.visualColorAccessPath||"itemStyle.color").split("."),a=m.get(u),i=x(a)&&!(a instanceof y)?a:null;(!a||i)&&(a=m.getColorFromPalette(m.name,null,f.getSeriesCount())),h.setVisual("color",a);var t=(m.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),o=m.get(t);if(h.setVisual("borderColor",o),!f.isSeriesFiltered(m)){i&&h.each(function(l){h.setItemVisual(l,"color",i(m.getDataParams(l)))});var e=function(l,r){var s=l.getItemModel(r),c=s.get(u,!0),d=s.get(t,!0);c!=null&&l.setItemVisual(r,"color",c),d!=null&&l.setItemVisual(r,"borderColor",d)};return{dataEach:h.hasItemOption?e:null}}}};k.exports=A},"/d5a":function(k,D){var n={average:function(x){for(var A=0,m=0,f=0;f<x.length;f++)isNaN(x[f])||(A+=x[f],m++);return m===0?NaN:A/m},sum:function(x){for(var A=0,m=0;m<x.length;m++)A+=x[m]||0;return A},max:function(x){for(var A=-Infinity,m=0;m<x.length;m++)x[m]>A&&(A=x[m]);return isFinite(A)?A:NaN},min:function(x){for(var A=Infinity,m=0;m<x.length;m++)x[m]<A&&(A=x[m]);return isFinite(A)?A:NaN},nearest:function(x){return x[0]}},y=function(x,A){return Math.round(x.length/2)};function p(x){return{seriesType:x,modifyOutputEnd:!0,reset:function(A,m,f){var h=A.getData(),u=A.get("sampling"),a=A.coordinateSystem;if(a.type==="cartesian2d"&&u){var i=a.getBaseAxis(),t=a.getOtherAxis(i),o=i.getExtent(),e=o[1]-o[0],l=Math.round(h.count()/e);if(l>1){var r;typeof u=="string"?r=n[u]:typeof u=="function"&&(r=u),r&&A.setData(h.downSample(h.mapDimension(t.dim),1/l,r,y))}}}}}k.exports=p},"/ezw":function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),A=n.n(x),m=n("cDf5"),f=n.n(m),h=n("q1tI"),u=n("TSYQ"),a=n.n(u),i=function(W){var z=W.prefixCls,V=W.className,Q=W.width,G=W.style;return h.createElement("h3",{className:a()(z,V),style:A()({width:Q},G)})},t=i,o=n("RIqP"),e=n.n(o),l=function(W){var z=function(le){var Ie=W.width,ke=W.rows,Re=ke===void 0?2:ke;return Array.isArray(Ie)?Ie[le]:Re-1===le?Ie:void 0},V=W.prefixCls,Q=W.className,G=W.style,ee=W.rows,ce=e()(Array(ee)).map(function(be,le){return h.createElement("li",{key:le,style:{width:z(le)}})});return h.createElement("ul",{className:a()(V,Q),style:G},ce)},r=l,s=n("H84U"),c=function(W){var z,V,Q=W.prefixCls,G=W.className,ee=W.style,ce=W.size,be=W.shape,le=a()((z={},p()(z,"".concat(Q,"-lg"),ce==="large"),p()(z,"".concat(Q,"-sm"),ce==="small"),z)),Ie=a()((V={},p()(V,"".concat(Q,"-circle"),be==="circle"),p()(V,"".concat(Q,"-square"),be==="square"),p()(V,"".concat(Q,"-round"),be==="round"),V)),ke=typeof ce=="number"?{width:ce,height:ce,lineHeight:"".concat(ce,"px")}:{};return h.createElement("span",{className:a()(Q,G,le,Ie),style:A()(A()({},ke),ee)})},d=c,g=n("BGR+"),v=function(W){var z=function(Q){var G=Q.getPrefixCls,ee=W.prefixCls,ce=W.className,be=W.active,le=G("skeleton",ee),Ie=Object(g.default)(W,["prefixCls"]),ke=a()(le,ce,"".concat(le,"-element"),p()({},"".concat(le,"-active"),be));return h.createElement("div",{className:ke},h.createElement(d,A()({prefixCls:"".concat(le,"-avatar")},Ie)))};return h.createElement(s.a,null,z)};v.defaultProps={size:"default",shape:"circle"};var b=v,S=function(W){var z=function(Q){var G=Q.getPrefixCls,ee=W.prefixCls,ce=W.className,be=W.active,le=G("skeleton",ee),Ie=Object(g.default)(W,["prefixCls"]),ke=a()(le,ce,"".concat(le,"-element"),p()({},"".concat(le,"-active"),be));return h.createElement("div",{className:ke},h.createElement(d,A()({prefixCls:"".concat(le,"-button")},Ie)))};return h.createElement(s.a,null,z)};S.defaultProps={size:"default"};var E=S,C=function(W){var z=function(Q){var G=Q.getPrefixCls,ee=W.prefixCls,ce=W.className,be=W.active,le=G("skeleton",ee),Ie=Object(g.default)(W,["prefixCls"]),ke=a()(le,ce,"".concat(le,"-element"),p()({},"".concat(le,"-active"),be));return h.createElement("div",{className:ke},h.createElement(d,A()({prefixCls:"".concat(le,"-input")},Ie)))};return h.createElement(s.a,null,z)};C.defaultProps={size:"default"};var _=C,T="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",w=function(W){var z=function(Q){var G=Q.getPrefixCls,ee=W.prefixCls,ce=W.className,be=W.style,le=G("skeleton",ee),Ie=a()(le,ce,"".concat(le,"-element"));return h.createElement("div",{className:Ie},h.createElement("div",{className:a()("".concat(le,"-image"),ce),style:be},h.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(le,"-image-svg")},h.createElement("path",{d:T,className:"".concat(le,"-image-path")}))))};return h.createElement(s.a,null,z)},O=w;function I(j){return j&&f()(j)==="object"?j:{}}function R(j,W){return j&&!W?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function M(j,W){return!j&&W?{width:"38%"}:j&&W?{width:"50%"}:{}}function F(j,W){var z={};return(!j||!W)&&(z.width="61%"),!j&&W?z.rows=3:z.rows=2,z}var P=function(W){var z=function(Q){var G=Q.getPrefixCls,ee=Q.direction,ce=W.prefixCls,be=W.loading,le=W.className,Ie=W.children,ke=W.avatar,Re=W.title,Qe=W.paragraph,We=W.active,ot=W.round,Oe=G("skeleton",ce);if(be||!("loading"in W)){var oe,st=!!ke,he=!!Re,J=!!Qe,Y;if(st){var $=A()(A()({prefixCls:"".concat(Oe,"-avatar")},R(he,J)),I(ke));Y=h.createElement("div",{className:"".concat(Oe,"-header")},h.createElement(d,$))}var fe;if(he||J){var we;if(he){var Ne=A()(A()({prefixCls:"".concat(Oe,"-title")},M(st,J)),I(Re));we=h.createElement(t,Ne)}var Ee;if(J){var de=A()(A()({prefixCls:"".concat(Oe,"-paragraph")},F(st,he)),I(Qe));Ee=h.createElement(r,de)}fe=h.createElement("div",{className:"".concat(Oe,"-content")},we,Ee)}var me=a()(Oe,le,(oe={},p()(oe,"".concat(Oe,"-with-avatar"),st),p()(oe,"".concat(Oe,"-active"),We),p()(oe,"".concat(Oe,"-rtl"),ee==="rtl"),p()(oe,"".concat(Oe,"-round"),ot),oe));return h.createElement("div",{className:me},Y,fe)}return Ie};return h.createElement(s.a,null,z)};P.defaultProps={avatar:!1,title:!0,paragraph:!0},P.Button=E,P.Avatar=b,P.Input=_,P.Image=O;var X=P,B=D.a=X},"/hr5":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("Gfru"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},"/iHx":function(k,D,n){var y=n("6GrX"),p=n("IwbS"),x=["textStyle","color"],A={getTextColor:function(m){var f=this.ecModel;return this.getShallow("color")||(!m&&f?f.get(x):null)},getFont:function(){return p.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(m){return y.getBoundingRect(m,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};k.exports=A},"/ry/":function(k,D,n){var y=n("bYtY"),p=n("T4UG"),x=n("5GhG"),A=x.seriesModelMixin,m=p.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}});y.mixin(m,A,!0);var f=m;k.exports=f},"/rzN":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("R4DB"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},"/stD":function(k,D,n){var y=n("bYtY"),p=n("IUWy"),x=n("Kagy"),A=x.toolbox.brush;function m(u,a,i){this.model=u,this.ecModel=a,this.api=i,this._brushType,this._brushMode}m.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:y.clone(A.title)};var f=m.prototype;f.render=f.updateView=function(u,a,i){var t,o,e;a.eachComponent({mainType:"brush"},function(l){t=l.brushType,o=l.brushOption.brushMode||"single",e|=l.areas.length}),this._brushType=t,this._brushMode=o,y.each(u.get("type",!0),function(l){u.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?e:l===t)?"emphasis":"normal")})},f.getIcons=function(){var u=this.model,a=u.get("icon",!0),i={};return y.each(u.get("type",!0),function(t){a[t]&&(i[t]=a[t])}),i},f.onclick=function(u,a,i){var t=this._brushType,o=this._brushMode;i==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?t:t===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},p.register("brush",m);var h=m;k.exports=h},"/wGt":function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),A=n.n(x),m=n("lwsE"),f=n.n(m),h=n("W8MJ"),u=n.n(h),a=n("PJYZ"),i=n.n(a),t=n("7W2i"),o=n.n(t),e=n("LQ03"),l=n.n(e),r=n("q1tI"),s=n("Ff2n"),c=n("1OyB"),d=n("vuIU"),g=n("Ji7U"),v=n("md7G"),b=n("foSv"),S=n("1W/9"),E=n("rePB"),C=n("JX7q"),_=n("TSYQ"),T=n.n(_),w=n("qx4F"),O=n("4IlW");function I(we){return Array.isArray(we)?we:[we]}var R={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},M=Object.keys(R).filter(function(we){if(typeof document=="undefined")return!1;var Ne=document.getElementsByTagName("html")[0];return we in(Ne?Ne.style:{})})[0],F=R[M];function P(we,Ne,Ee,de){we.addEventListener?we.addEventListener(Ne,Ee,de):we.attachEvent&&we.attachEvent("on".concat(Ne),Ee)}function X(we,Ne,Ee,de){we.removeEventListener?we.removeEventListener(Ne,Ee,de):we.attachEvent&&we.detachEvent("on".concat(Ne),Ee)}function B(we,Ne){var Ee=typeof we=="function"?we(Ne):we;return Array.isArray(Ee)?Ee.length===2?Ee:[Ee[0],Ee[1]]:[Ee]}var j=function(Ne){return!isNaN(parseFloat(Ne))&&isFinite(Ne)},W=!(typeof window!="undefined"&&window.document&&window.document.createElement),z=function we(Ne,Ee,de,me){if(!Ee||Ee===document||Ee instanceof Document)return!1;if(Ee===Ne.parentNode)return!0;var Le=Math.max(Math.abs(de),Math.abs(me))===Math.abs(me),tt=Math.max(Math.abs(de),Math.abs(me))===Math.abs(de),At=Ee.scrollHeight-Ee.clientHeight,ht=Ee.scrollWidth-Ee.clientWidth,Ke=document.defaultView.getComputedStyle(Ee),Jt=Ke.overflowY==="auto"||Ke.overflowY==="scroll",ct=Ke.overflowX==="auto"||Ke.overflowX==="scroll",Gt=At&&Jt,dr=ht&&ct;return Le&&(!Gt||Gt&&(Ee.scrollTop>=At&&me<0||Ee.scrollTop<=0&&me>0))||tt&&(!dr||dr&&(Ee.scrollLeft>=ht&&de<0||Ee.scrollLeft<=0&&de>0))?we(Ne,Ee.parentNode,de,me):!1};function V(we){var Ne=Q();return function(){var de=Object(b.a)(we),me;if(Ne){var Le=Object(b.a)(this).constructor;me=Reflect.construct(de,arguments,Le)}else me=de.apply(this,arguments);return Object(v.a)(this,me)}}function Q(){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(we){return!1}}var G={},ee=function(we){Object(g.a)(Ee,we);var Ne=V(Ee);function Ee(de){var me;return Object(c.a)(this,Ee),me=Ne.call(this,de),me.domFocus=function(){me.dom&&me.dom.focus()},me.removeStartHandler=function(Le){if(Le.touches.length>1)return;me.startPos={x:Le.touches[0].clientX,y:Le.touches[0].clientY}},me.removeMoveHandler=function(Le){if(Le.changedTouches.length>1)return;var tt=Le.currentTarget,At=Le.changedTouches[0].clientX-me.startPos.x,ht=Le.changedTouches[0].clientY-me.startPos.y;(tt===me.maskDom||tt===me.handlerDom||tt===me.contentDom&&z(tt,Le.target,At,ht))&&Le.cancelable&&Le.preventDefault()},me.transitionEnd=function(Le){var tt=Le.target;X(tt,F,me.transitionEnd),tt.style.transition=""},me.onKeyDown=function(Le){if(Le.keyCode===O.a.ESC){var tt=me.props.onClose;Le.stopPropagation(),tt&&tt(Le)}},me.onWrapperTransitionEnd=function(Le){var tt=me.props,At=tt.open,ht=tt.afterVisibleChange;Le.target===me.contentWrapper&&Le.propertyName.match(/transform$/)&&(me.dom.style.transition="",!At&&me.getCurrentDrawerSome()&&(document.body.style.overflowX="",me.maskDom&&(me.maskDom.style.left="",me.maskDom.style.width="")),ht&&ht(!!At))},me.openLevelTransition=function(){var Le=me.props,tt=Le.open,At=Le.width,ht=Le.height,Ke=me.getHorizontalBoolAndPlacementName(),Jt=Ke.isHorizontal,ct=Ke.placementName,Gt=me.contentDom?me.contentDom.getBoundingClientRect()[Jt?"width":"height"]:0,dr=(Jt?At:ht)||Gt;me.setLevelAndScrolling(tt,ct,dr)},me.setLevelTransform=function(Le,tt,At,ht){var Ke=me.props,Jt=Ke.placement,ct=Ke.levelMove,Gt=Ke.duration,dr=Ke.ease,zt=Ke.showMask;me.levelDom.forEach(function(kt){kt.style.transition="transform ".concat(Gt," ").concat(dr),P(kt,F,me.transitionEnd);var Vt=Le?At:0;if(ct){var Xe=B(ct,{target:kt,open:Le});Vt=Le?Xe[0]:Xe[1]||0}var pe=typeof Vt=="number"?"".concat(Vt,"px"):Vt,te=Jt==="left"||Jt==="top"?pe:"-".concat(pe);te=zt&&Jt==="right"&&ht?"calc(".concat(te," + ").concat(ht,"px)"):te,kt.style.transform=Vt?"".concat(tt,"(").concat(te,")"):""})},me.setLevelAndScrolling=function(Le,tt,At){var ht=me.props.onChange;if(!W){var Ke=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(w.a)(!0):0;me.setLevelTransform(Le,tt,At,Ke),me.toggleScrollingToDrawerAndBody(Ke)}ht&&ht(Le)},me.toggleScrollingToDrawerAndBody=function(Le){var tt=me.props,At=tt.getOpenCount,ht=tt.getContainer,Ke=tt.showMask,Jt=tt.open,ct=ht&&ht(),Gt=At&&At();if(ct&&ct.parentNode===document.body&&Ke){var dr=["touchstart"],zt=[document.body,me.maskDom,me.handlerDom,me.contentDom];Jt&&document.body.style.overflow!=="hidden"?(Le&&me.addScrollingEffect(Le),Gt===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",zt.forEach(function(kt,Vt){if(!kt)return;P(kt,dr[Vt]||"touchmove",Vt?me.removeMoveHandler:me.removeStartHandler,me.passive)})):me.getCurrentDrawerSome()&&(Gt||(document.body.style.overflow=""),document.body.style.touchAction="",Le&&me.remScrollingEffect(Le),zt.forEach(function(kt,Vt){if(!kt)return;X(kt,dr[Vt]||"touchmove",Vt?me.removeMoveHandler:me.removeStartHandler,me.passive)}))}},me.addScrollingEffect=function(Le){var tt=me.props,At=tt.placement,ht=tt.duration,Ke=tt.ease,Jt=tt.getOpenCount,ct=tt.switchScrollingEffect,Gt=Jt&&Jt();Gt===1&&ct();var dr="width ".concat(ht," ").concat(Ke),zt="transform ".concat(ht," ").concat(Ke);me.dom.style.transition="none";switch(At){case"right":me.dom.style.transform="translateX(-".concat(Le,"px)");break;case"top":case"bottom":me.dom.style.width="calc(100% - ".concat(Le,"px)"),me.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(me.timeout),me.timeout=setTimeout(function(){me.dom&&(me.dom.style.transition="".concat(zt,",").concat(dr),me.dom.style.width="",me.dom.style.transform="")})},me.remScrollingEffect=function(Le){var tt=me.props,At=tt.placement,ht=tt.duration,Ke=tt.ease,Jt=tt.getOpenCount,ct=tt.switchScrollingEffect,Gt=Jt&&Jt();Gt||ct(!0),M&&(document.body.style.overflowX="hidden"),me.dom.style.transition="none";var dr,zt="width ".concat(ht," ").concat(Ke),kt="transform ".concat(ht," ").concat(Ke);switch(At){case"left":{me.dom.style.width="100%",zt="width 0s ".concat(Ke," ").concat(ht);break}case"right":{me.dom.style.transform="translateX(".concat(Le,"px)"),me.dom.style.width="100%",zt="width 0s ".concat(Ke," ").concat(ht),me.maskDom&&(me.maskDom.style.left="-".concat(Le,"px"),me.maskDom.style.width="calc(100% + ".concat(Le,"px)"));break}case"top":case"bottom":{me.dom.style.width="calc(100% + ".concat(Le,"px)"),me.dom.style.height="100%",me.dom.style.transform="translateZ(0)",dr="height 0s ".concat(Ke," ").concat(ht);break}default:break}clearTimeout(me.timeout),me.timeout=setTimeout(function(){me.dom&&(me.dom.style.transition="".concat(kt,",").concat(dr?"".concat(dr,","):"").concat(zt),me.dom.style.transform="",me.dom.style.width="",me.dom.style.height="")})},me.getCurrentDrawerSome=function(){return!Object.keys(G).some(function(Le){return G[Le]})},me.getLevelDom=function(Le){var tt=Le.level,At=Le.getContainer;if(W)return;var ht=At&&At(),Ke=ht?ht.parentNode:null;if(me.levelDom=[],tt==="all"){var Jt=Ke?Array.prototype.slice.call(Ke.children):[];Jt.forEach(function(ct){ct.nodeName!=="SCRIPT"&&ct.nodeName!=="STYLE"&&ct.nodeName!=="LINK"&&ct!==ht&&me.levelDom.push(ct)})}else tt&&I(tt).forEach(function(ct){document.querySelectorAll(ct).forEach(function(Gt){me.levelDom.push(Gt)})})},me.getHorizontalBoolAndPlacementName=function(){var Le=me.props.placement,tt=Le==="left"||Le==="right",At="translate".concat(tt?"X":"Y");return{isHorizontal:tt,placementName:At}},me.state={_self:Object(C.a)(me)},me}return Object(d.a)(Ee,[{key:"componentDidMount",value:function(){var me=this;if(!W){var Le=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Le=!0,null}}))}catch(Jt){}this.passive=Le?{passive:!1}:!1}var tt=this.props,At=tt.open,ht=tt.getContainer,Ke=ht&&ht();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),At&&(Ke&&Ke.parentNode===document.body&&(G[this.drawerId]=At),this.openLevelTransition(),this.forceUpdate(function(){me.domFocus()}))}},{key:"componentDidUpdate",value:function(me){var Le=this.props,tt=Le.open,At=Le.getContainer,ht=At&&At();tt!==me.open&&(tt&&this.domFocus(),ht&&ht.parentNode===document.body&&(G[this.drawerId]=!!tt),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var me=this.props,Le=me.getOpenCount,tt=me.open,At=me.switchScrollingEffect,ht=typeof Le=="function"&&Le();delete G[this.drawerId],tt&&(this.setLevelTransform(!1),document.body.style.touchAction=""),ht||(document.body.style.overflow="",At(!0))}},{key:"render",value:function(){var me,Le=this,tt=this.props,At=tt.className,ht=tt.children,Ke=tt.style,Jt=tt.width,ct=tt.height,Gt=tt.defaultOpen,dr=tt.open,zt=tt.prefixCls,kt=tt.placement,Vt=tt.level,Xe=tt.levelMove,pe=tt.ease,te=tt.duration,$e=tt.getContainer,He=tt.handler,ae=tt.onChange,ft=tt.afterVisibleChange,Mt=tt.showMask,mt=tt.maskClosable,or=tt.maskStyle,vr=tt.onClose,fn=tt.onHandleClick,sr=tt.keyboard,Ir=tt.getOpenCount,lr=tt.switchScrollingEffect,Wt=Object(s.a)(tt,["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"]),xt=this.dom?dr:!1,rn=T()(zt,(me={},Object(E.a)(me,"".concat(zt,"-").concat(kt),!0),Object(E.a)(me,"".concat(zt,"-open"),xt),Object(E.a)(me,At||"",!!At),Object(E.a)(me,"no-mask",!Mt),me)),Dn=this.getHorizontalBoolAndPlacementName(),Xn=Dn.placementName,ri=kt==="left"||kt==="top"?"-100%":"100%",Ui=xt?"":"".concat(Xn,"(").concat(ri,")"),Bn=He&&r.cloneElement(He,{onClick:function(Xt){He.props.onClick&&He.props.onClick(),fn&&fn(Xt)},ref:function(Xt){Le.handlerDom=Xt}});return r.createElement("div",Object.assign({},Wt,{tabIndex:-1,className:rn,style:Ke,ref:function(Xt){Le.dom=Xt},onKeyDown:xt&&sr?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),Mt&&r.createElement("div",{className:"".concat(zt,"-mask"),onClick:mt?vr:void 0,style:or,ref:function(Xt){Le.maskDom=Xt}}),r.createElement("div",{className:"".concat(zt,"-content-wrapper"),style:{transform:Ui,msTransform:Ui,width:j(Jt)?"".concat(Jt,"px"):Jt,height:j(ct)?"".concat(ct,"px"):ct},ref:function(Xt){Le.contentWrapper=Xt}},r.createElement("div",{className:"".concat(zt,"-content"),ref:function(Xt){Le.contentDom=Xt},onTouchStart:xt&&Mt?this.removeStartHandler:void 0,onTouchMove:xt&&Mt?this.removeMoveHandler:void 0},ht),Bn))}}],[{key:"getDerivedStateFromProps",value:function(me,Le){var tt=Le.prevProps,At=Le._self,ht={prevProps:me};if(tt!==void 0){var Ke=me.placement,Jt=me.level;Ke!==tt.placement&&(At.contentDom=null),Jt!==tt.level&&At.getLevelDom(me)}return ht}}]),Ee}(r.Component);ee.defaultProps={switchScrollingEffect:function(){}};var ce=ee;function be(we){var Ne=le();return function(){var de=Object(b.a)(we),me;if(Ne){var Le=Object(b.a)(this).constructor;me=Reflect.construct(de,arguments,Le)}else me=de.apply(this,arguments);return Object(v.a)(this,me)}}function le(){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(we){return!1}}var Ie=function(we){Object(g.a)(Ee,we);var Ne=be(Ee);function Ee(de){var me;Object(c.a)(this,Ee),me=Ne.call(this,de),me.onHandleClick=function(tt){var At=me.props,ht=At.onHandleClick,Ke=At.open;if(ht&&ht(tt),typeof Ke=="undefined"){var Jt=me.state.open;me.setState({open:!Jt})}},me.onClose=function(tt){var At=me.props,ht=At.onClose,Ke=At.open;ht&&ht(tt),typeof Ke=="undefined"&&me.setState({open:!1})};var Le=typeof de.open!="undefined"?de.open:!!de.defaultOpen;return me.state={open:Le},"onMaskClick"in de&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),me}return Object(d.a)(Ee,[{key:"render",value:function(){var me=this,Le=this.props,tt=Le.defaultOpen,At=Le.getContainer,ht=Le.wrapperClassName,Ke=Le.forceRender,Jt=Le.handler,ct=Object(s.a)(Le,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),Gt=this.state.open;if(!At)return r.createElement("div",{className:ht,ref:function(kt){me.dom=kt}},r.createElement(ce,Object.assign({},ct,{open:Gt,handler:Jt,getContainer:function(){return me.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var dr=!!Jt||Ke;return r.createElement(S.a,{visible:Gt,forceRender:dr,getContainer:At,wrapperClassName:ht},function(zt){var kt=zt.visible,Vt=zt.afterClose,Xe=Object(s.a)(zt,["visible","afterClose"]);return r.createElement(ce,Object.assign({},ct,Xe,{open:kt!==void 0?kt:Gt,afterVisibleChange:Vt!==void 0?Vt:ct.afterVisibleChange,handler:Jt,onClose:me.onClose,onHandleClick:me.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(me,Le){var tt=Le.prevProps,At={prevProps:me};return typeof tt!="undefined"&&me.open!==tt.open&&(At.open=me.open),At}}]),Ee}(r.Component);Ie.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:r.createElement("div",{className:"drawer-handle"},r.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var ke=Ie,Re=ke,Qe=n("1S0Z"),We=n.n(Qe),ot=n("BGR+"),Oe=n("H84U"),oe=n("CWQg"),st=function(we,Ne){var Ee={};for(var de in we)Object.prototype.hasOwnProperty.call(we,de)&&Ne.indexOf(de)<0&&(Ee[de]=we[de]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,de=Object.getOwnPropertySymbols(we);me<de.length;me++)Ne.indexOf(de[me])<0&&Object.prototype.propertyIsEnumerable.call(we,de[me])&&(Ee[de[me]]=we[de[me]]);return Ee},he=r.createContext(null),J=Object(oe.a)("top","right","bottom","left"),Y={distance:180},$=function(we){o()(Ee,we);var Ne=l()(Ee);function Ee(){var de;return f()(this,Ee),de=Ne.apply(this,arguments),de.state={push:!1},de.push=function(){de.props.push&&de.setState({push:!0})},de.pull=function(){de.props.push&&de.setState({push:!1})},de.onDestroyTransitionEnd=function(){var me=de.getDestroyOnClose();if(!me)return;de.props.visible||(de.destroyClose=!0,de.forceUpdate())},de.getDestroyOnClose=function(){return de.props.destroyOnClose&&!de.props.visible},de.getPushDistance=function(){var me=de.props.push,Le;return typeof me=="boolean"?Le=me?Y.distance:0:Le=me.distance,parseFloat(String(Le||0))},de.getPushTransform=function(me){var Le=de.getPushDistance();if(me==="left"||me==="right")return"translateX(".concat(me==="left"?Le:-Le,"px)");if(me==="top"||me==="bottom")return"translateY(".concat(me==="top"?Le:-Le,"px)")},de.getRcDrawerStyle=function(){var me=de.props,Le=me.zIndex,tt=me.placement,At=me.mask,ht=me.style,Ke=de.state.push,Jt=At?{}:de.getOffsetStyle();return A()(A()({zIndex:Le,transform:Ke?de.getPushTransform(tt):void 0},Jt),ht)},de.renderBody=function(){var me=de.props,Le=me.bodyStyle,tt=me.drawerStyle,At=me.prefixCls,ht=me.visible;if(de.destroyClose&&!ht)return null;de.destroyClose=!1;var Ke={},Jt=de.getDestroyOnClose();return Jt&&(Ke.opacity=0,Ke.transition="opacity .3s"),r.createElement("div",{className:"".concat(At,"-wrapper-body"),style:A()(A()({},Ke),tt),onTransitionEnd:de.onDestroyTransitionEnd},de.renderHeader(),r.createElement("div",{className:"".concat(At,"-body"),style:Le},de.props.children),de.renderFooter())},de.renderProvider=function(me){return de.parentDrawer=me,r.createElement(Oe.a,null,function(Le){var tt=Le.getPopupContainer,At=Le.getPrefixCls,ht=de.props,Ke=ht.prefixCls,Jt=ht.placement,ct=ht.className,Gt=ht.mask,dr=ht.direction,zt=ht.visible,kt=st(ht,["prefixCls","placement","className","mask","direction","visible"]),Vt=At("select",Ke),Xe=T()(ct,p()({"no-mask":!Gt},"".concat(Vt,"-rtl"),dr==="rtl")),pe=Gt?de.getOffsetStyle():{};return r.createElement(he.Provider,{value:i()(de)},r.createElement(Re,A()({handler:!1},Object(ot.default)(kt,["zIndex","style","closable","closeIcon","destroyOnClose","drawerStyle","headerStyle","bodyStyle","footerStyle","footer","locale","title","push","visible","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","pageHeader","autoInsertSpaceInButton","width","height","dropdownMatchSelectWidth","getTargetContainer"]),{getContainer:kt.getContainer===void 0&&tt?function(){return tt(document.body)}:kt.getContainer},pe,{prefixCls:Vt,open:zt,showMask:Gt,placement:Jt,style:de.getRcDrawerStyle(),className:Xe}),de.renderBody()))})},de}return u()(Ee,[{key:"componentDidMount",value:function(){var me=this.props.visible;me&&this.parentDrawer&&this.parentDrawer.push()}},{key:"componentDidUpdate",value:function(me){var Le=this.props.visible;me.visible!==Le&&this.parentDrawer&&(Le?this.parentDrawer.push():this.parentDrawer.pull())}},{key:"componentWillUnmount",value:function(){this.parentDrawer&&(this.parentDrawer.pull(),this.parentDrawer=null)}},{key:"getOffsetStyle",value:function(){var me=this.props,Le=me.placement,tt=me.width,At=me.height,ht=me.visible,Ke=me.mask;if(!ht&&!Ke)return{};var Jt={};return Le==="left"||Le==="right"?Jt.width=tt:Jt.height=At,Jt}},{key:"renderHeader",value:function(){var me=this.props,Le=me.title,tt=me.prefixCls,At=me.closable,ht=me.headerStyle;if(!Le&&!At)return null;var Ke=Le?"".concat(tt,"-header"):"".concat(tt,"-header-no-title");return r.createElement("div",{className:Ke,style:ht},Le&&r.createElement("div",{className:"".concat(tt,"-title")},Le),At&&this.renderCloseIcon())}},{key:"renderFooter",value:function(){var me=this.props,Le=me.footer,tt=me.footerStyle,At=me.prefixCls;if(!Le)return null;var ht="".concat(At,"-footer");return r.createElement("div",{className:ht,style:tt},Le)}},{key:"renderCloseIcon",value:function(){var me=this.props,Le=me.closable,tt=me.closeIcon,At=tt===void 0?r.createElement(We.a,null):tt,ht=me.prefixCls,Ke=me.onClose;return Le&&r.createElement("button",{onClick:Ke,"aria-label":"Close",className:"".concat(ht,"-close"),style:{"--scroll-bar":"".concat(Object(w.a)(),"px")}},At)}},{key:"render",value:function(){return r.createElement(he.Consumer,null,this.renderProvider)}}]),Ee}(r.Component);$.defaultProps={width:256,height:256,closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:Y};var fe=D.a=Object(Oe.c)({prefixCls:"drawer"})($)},"/y7N":function(k,D,n){var y=n("bYtY"),p=n("IwbS"),x=n("6GrX"),A=n("7aKB"),m=n("Fofx"),f=n("aX7z"),h=n("+rIm");function u(c){var d=c.get("type"),g=c.getModel(d+"Style"),v;return d==="line"?(v=g.getLineStyle(),v.fill=null):d==="shadow"&&(v=g.getAreaStyle(),v.stroke=null),v}function a(c,d,g,v,b){var S=g.get("value"),E=t(S,d.axis,d.ecModel,g.get("seriesDataIndices"),{precision:g.get("label.precision"),formatter:g.get("label.formatter")}),C=g.getModel("label"),_=A.normalizeCssArray(C.get("padding")||0),T=C.getFont(),w=x.getBoundingRect(E,T),O=b.position,I=w.width+_[1]+_[3],R=w.height+_[0]+_[2],M=b.align;M==="right"&&(O[0]-=I),M==="center"&&(O[0]-=I/2);var F=b.verticalAlign;F==="bottom"&&(O[1]-=R),F==="middle"&&(O[1]-=R/2),i(O,I,R,v);var P=C.get("backgroundColor");(!P||P==="auto")&&(P=d.get("axisLine.lineStyle.color")),c.label={shape:{x:0,y:0,width:I,height:R,r:C.get("borderRadius")},position:O.slice(),style:{text:E,textFont:T,textFill:C.getTextColor(),textPosition:"inside",textPadding:_,fill:P,stroke:C.get("borderColor")||"transparent",lineWidth:C.get("borderWidth")||0,shadowBlur:C.get("shadowBlur"),shadowColor:C.get("shadowColor"),shadowOffsetX:C.get("shadowOffsetX"),shadowOffsetY:C.get("shadowOffsetY")},z2:10}}function i(c,d,g,v){var b=v.getWidth(),S=v.getHeight();c[0]=Math.min(c[0]+d,b)-d,c[1]=Math.min(c[1]+g,S)-g,c[0]=Math.max(c[0],0),c[1]=Math.max(c[1],0)}function t(c,d,g,v,b){c=d.scale.parse(c);var S=d.scale.getLabel(c,{precision:b.precision}),E=b.formatter;if(E){var C={value:f.getAxisRawValue(d,c),axisDimension:d.dim,axisIndex:d.index,seriesData:[]};y.each(v,function(_){var T=g.getSeriesByIndex(_.seriesIndex),w=_.dataIndexInside,O=T&&T.getDataParams(w);O&&C.seriesData.push(O)}),y.isString(E)?S=E.replace("{value}",S):y.isFunction(E)&&(S=E(C))}return S}function o(c,d,g){var v=m.create();return m.rotate(v,v,g.rotation),m.translate(v,v,g.position),p.applyTransform([c.dataToCoord(d),(g.labelOffset||0)+(g.labelDirection||1)*(g.labelMargin||0)],v)}function e(c,d,g,v,b,S){var E=h.innerTextLayout(g.rotation,0,g.labelDirection);g.labelMargin=b.get("label.margin"),a(d,v,b,S,{position:o(v.axis,c,g),align:E.textAlign,verticalAlign:E.textVerticalAlign})}function l(c,d,g){return g=g||0,{x1:c[g],y1:c[1-g],x2:d[g],y2:d[1-g]}}function r(c,d,g){return g=g||0,{x:c[g],y:c[1-g],width:d[g],height:d[1-g]}}function s(c,d,g,v,b,S){return{cx:c,cy:d,r0:g,r:v,startAngle:b,endAngle:S,clockwise:!0}}D.buildElStyle=u,D.buildLabelElOption=a,D.getValueLabel=t,D.getTransformedPosition=o,D.buildCartesianSingleLabelElOption=e,D.makeLineShape=l,D.makeRectShape=r,D.makeSectorShape=s},"/zsF":function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("bE4E"),A=n.n(x)},"0/Rx":function(k,D){function n(y){return{seriesType:y,reset:function(p,x){var A=x.findComponents({mainType:"legend"});if(!A||!A.length)return;var m=p.getData();m.filterSelf(function(f){for(var h=m.getName(f),u=0;u<A.length;u++)if(!A[u].isSelected(h))return!1;return!0})}}}k.exports=n},"01d+":function(k,D,n){var y=n("bYtY"),p=y.each,x=n("HF/U"),A=x.simpleLayout,m=x.simpleLayoutEdge;function f(h,u){h.eachSeriesByType("graph",function(a){var i=a.get("layout"),t=a.coordinateSystem;if(t&&t.type!=="view"){var o=a.getData(),e=[];p(t.dimensions,function(g){e=e.concat(o.mapDimension(g,!0))});for(var l=0;l<o.count();l++){for(var r=[],s=!1,c=0;c<e.length;c++){var d=o.get(e[c],l);isNaN(d)||(s=!0),r.push(d)}s?o.setItemLayout(l,t.dataToPoint(r)):o.setItemLayout(l,[NaN,NaN])}m(o.graph)}else(!i||i==="none")&&A(a)})}k.exports=f},"03A+":function(k,D,n){var y=n("JTzB"),p=n("ExA7"),x=Object.prototype,A=x.hasOwnProperty,m=x.propertyIsEnumerable,f=y(function(){return arguments}())?y:function(h){return p(h)&&A.call(h,"callee")&&!m.call(h,"callee")};k.exports=f},"06DH":function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("Kagy"),A=n("IUWy"),m=x.toolbox.magicType,f="__ec_magicType_stack__";function h(o){this.model=o}h.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:p.clone(m.title),option:{},seriesIndex:{}};var u=h.prototype;u.getIcons=function(){var o=this.model,e=o.get("icon"),l={};return p.each(o.get("type"),function(r){e[r]&&(l[r]=e[r])}),l};var a={line:function(o,e,l,r){if(o==="bar")return p.merge({id:e,type:"line",data:l.get("data"),stack:l.get("stack"),markPoint:l.get("markPoint"),markLine:l.get("markLine")},r.get("option.line")||{},!0)},bar:function(o,e,l,r){if(o==="line")return p.merge({id:e,type:"bar",data:l.get("data"),stack:l.get("stack"),markPoint:l.get("markPoint"),markLine:l.get("markLine")},r.get("option.bar")||{},!0)},stack:function(o,e,l,r){var s=l.get("stack")===f;if(o==="line"||o==="bar")return r.setIconStatus("stack",s?"normal":"emphasis"),p.merge({id:e,stack:s?"":f},r.get("option.stack")||{},!0)}},i=[["line","bar"],["stack"]];u.onclick=function(o,e,l){var r=this.model,s=r.get("seriesIndex."+l);if(!a[l])return;var c={series:[]},d=function(b){var S=b.subType,E=b.id,C=a[l](S,E,b,r);C&&(p.defaults(C,b.option),c.series.push(C));var _=b.coordinateSystem;if(_&&_.type==="cartesian2d"&&(l==="line"||l==="bar")){var T=_.getAxesByScale("ordinal")[0];if(T){var w=T.dim,O=w+"Axis",I=o.queryComponents({mainType:O,index:b.get(name+"Index"),id:b.get(name+"Id")})[0],R=I.componentIndex;c[O]=c[O]||[];for(var M=0;M<=R;M++)c[O][R]=c[O][R]||{};c[O][R].boundaryGap=l==="bar"}}};p.each(i,function(b){p.indexOf(b,l)>=0&&p.each(b,function(S){r.setIconStatus(S,"normal")})}),r.setIconStatus(l,"emphasis"),o.eachComponent({mainType:"series",query:s==null?null:{seriesIndex:s}},d);var g;if(l==="stack"){var v=c.series&&c.series[0]&&c.series[0].stack===f;g=v?p.merge({stack:m.title.tiled},m.title):p.clone(m.title)}e.dispatchAction({type:"changeMagicType",currentType:l,newOption:c,newTitle:g,featureName:"magicType"})},y.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(o,e){e.mergeOption(o.newOption)}),A.register("magicType",h);var t=h;k.exports=t},"06Qe":function(k,D,n){var y=n("ItGF"),p="urn:schemas-microsoft-com:vml",x=typeof window=="undefined"?null:window,A=!1,m=x&&x.document;function f(a){return h(a)}var h;if(m&&!y.canvasSupported)try{!m.namespaces.zrvml&&m.namespaces.add("zrvml",p),h=function(i){return m.createElement("<zrvml:"+i+' class="zrvml">')}}catch(a){h=function(t){return m.createElement("<"+t+' xmlns="'+p+'" class="zrvml">')}}function u(){if(A||!m)return;A=!0;var a=m.styleSheets;a.length<31?m.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):a[0].addRule(".zrvml","behavior:url(#default#VML)")}D.doc=m,D.createNode=f,D.initVML=u},"09Wf":function(k,D,n){"use strict";n.d(D,"b",function(){return p}),n.d(D,"a",function(){return x});var y=n("CWQg"),p=Object(y.a)("success","processing","error","default","warning"),x=Object(y.a)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},"0Bwj":function(k,D,n){var y=n("T4UG"),p=n("I3/A"),x=n("7aKB"),A=x.encodeHTML,m=n("Qxkt"),f=n("Tghj"),h=f.__DEV__,u=y.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(i,t){for(var o=i.edges||i.links,e=i.data||i.nodes,l=i.levels,r=this.levelModels={},s=0;s<l.length;s++)l[s].depth!=null&&l[s].depth>=0&&(r[l[s].depth]=new m(l[s],this,t));if(e&&o){var c=p(e,o,this,!0,d);return c.data}function d(g,v){g.wrapMethod("getItemModel",function(b,S){return b.customizeGetParent(function(E){var C=this.parentModel,_=C.getData().getItemLayout(S).depth,T=C.levelModels[_];return T||this.parentModel}),b}),v.wrapMethod("getItemModel",function(b,S){return b.customizeGetParent(function(E){var C=this.parentModel,_=C.getGraph().getEdgeByIndex(S),T=_.node1.getLayout().depth,w=C.levelModels[T];return w||this.parentModel}),b})}},setNodePosition:function(i,t){var o=this.option.data[i];o.localX=t[0],o.localY=t[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(i,t,o){if(o==="edge"){var e=this.getDataParams(i,o),l=e.data,r=l.source+" -- "+l.target;return e.value&&(r+=" : "+e.value),A(r)}else if(o==="node"){var s=this.getGraph().getNodeByIndex(i),c=s.getLayout().value,d=this.getDataParams(i,o).data.name;if(c)var r=d+" : "+c;return A(r)}return u.superCall(this,"formatTooltip",i,t)},optionUpdated:function(){var i=this.option;i.focusNodeAdjacency===!0&&(i.focusNodeAdjacency="allEdges")},getDataParams:function(i,t){var o=u.superCall(this,"getDataParams",i,t);if(o.value==null&&t==="node"){var e=this.getGraph().getNodeByIndex(i),l=e.getLayout().value;o.value=l}return o},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}}),a=u;k.exports=a},"0Cz8":function(k,D,n){var y=n("Xi7e"),p=n("ebwN"),x=n("e4Nc"),A=200;function m(f,h){var u=this.__data__;if(u instanceof y){var a=u.__data__;if(!p||a.length<A-1)return a.push([f,h]),this.size=++u.size,this;u=this.__data__=new x(a)}return u.set(f,h),this.size=u.size,this}k.exports=m},"0HBW":function(k,D,n){var y=n("ProS"),p=n("bYtY");n("Hxpc"),n("7uqq"),n("dmGj"),n("SehX");function x(A,m){m.update="updateView",y.registerAction(m,function(f,h){var u={};return h.eachComponent({mainType:"geo",query:f},function(a){a[A](f.name);var i=a.coordinateSystem;p.each(i.regions,function(t){u[t.name]=a.isSelected(t.name)||!1})}),{selected:u,name:f.name}})}x("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),x("select",{type:"geoSelect",event:"geoselected"}),x("unSelect",{type:"geoUnSelect",event:"geounselected"})},"0JAE":function(k,D,n){var y=n("bYtY"),p=n("+TT/"),x=n("OELB"),A=n("IDmD"),m=864e5;function f(a,i,t){this._model=a}f.prototype={constructor:f,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(a){a=x.parseDate(a);var i=a.getFullYear(),t=a.getMonth()+1;t=t<10?"0"+t:t;var o=a.getDate();o=o<10?"0"+o:o;var e=a.getDay();return e=Math.abs((e+7-this.getFirstDayOfWeek())%7),{y:i,m:t,d:o,day:e,time:a.getTime(),formatedDate:i+"-"+t+"-"+o,date:a}},getNextNDay:function(a,i){return i=i||0,i===0?this.getDateInfo(a):(a=new Date(this.getDateInfo(a).time),a.setDate(a.getDate()+i),this.getDateInfo(a))},update:function(a,i){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var t=this._rangeInfo.weeks||1,o=["width","height"],e=this._model.get("cellSize").slice(),l=this._model.getBoxLayoutParams(),r=this._orient==="horizontal"?[t,7]:[7,t];y.each([0,1],function(g){d(e,g)&&(l[o[g]]=e[g]*r[g])});var s={width:i.getWidth(),height:i.getHeight()},c=this._rect=p.getLayoutRect(l,s);y.each([0,1],function(g){d(e,g)||(e[g]=c[o[g]]/r[g])});function d(g,v){return g[v]!=null&&g[v]!=="auto"}this._sw=e[0],this._sh=e[1]},dataToPoint:function(a,i){y.isArray(a)&&(a=a[0]),i==null&&(i=!0);var t=this.getDateInfo(a),o=this._rangeInfo,e=t.formatedDate;if(i&&!(t.time>=o.start.time&&t.time<o.end.time+m))return[NaN,NaN];var l=t.day,r=this._getRangeInfo([o.start.time,e]).nthWeek;return this._orient==="vertical"?[this._rect.x+l*this._sw+this._sw/2,this._rect.y+r*this._sh+this._sh/2]:[this._rect.x+r*this._sw+this._sw/2,this._rect.y+l*this._sh+this._sh/2]},pointToData:function(a){var i=this.pointToDate(a);return i&&i.time},dataToRect:function(a,i){var t=this.dataToPoint(a,i);return{contentShape:{x:t[0]-(this._sw-this._lineWidth)/2,y:t[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:t,tl:[t[0]-this._sw/2,t[1]-this._sh/2],tr:[t[0]+this._sw/2,t[1]-this._sh/2],br:[t[0]+this._sw/2,t[1]+this._sh/2],bl:[t[0]-this._sw/2,t[1]+this._sh/2]}},pointToDate:function(a){var i=Math.floor((a[0]-this._rect.x)/this._sw)+1,t=Math.floor((a[1]-this._rect.y)/this._sh)+1,o=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(t,i-1,o):this._getDateByWeeksAndDay(i,t-1,o)},convertToPixel:y.curry(h,"dataToPoint"),convertFromPixel:y.curry(h,"pointToData"),_initRangeOption:function(){var a=this._model.get("range"),i=a;if(y.isArray(i)&&i.length===1&&(i=i[0]),/^\d{4}$/.test(i)&&(a=[i+"-01-01",i+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(i)){var t=this.getDateInfo(i),o=t.date;o.setMonth(o.getMonth()+1);var e=this.getNextNDay(o,-1);a=[t.formatedDate,e.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(i)&&(a=[i,i]);var l=this._getRangeInfo(a);return l.start.time>l.end.time&&a.reverse(),a},_getRangeInfo:function(a){a=[this.getDateInfo(a[0]),this.getDateInfo(a[1])];var i;a[0].time>a[1].time&&(i=!0,a.reverse());var t=Math.floor(a[1].time/m)-Math.floor(a[0].time/m)+1,o=new Date(a[0].time),e=o.getDate(),l=a[1].date.getDate();o.setDate(e+t-1);var r=o.getDate();if(r!==l)for(var s=o.getTime()-a[1].time>0?1:-1;(r=o.getDate())!==l&&(o.getTime()-a[1].time)*s>0;)t-=s,o.setDate(r-s);var c=Math.floor((t+a[0].day+6)/7),d=i?-c+1:c-1;return i&&a.reverse(),{range:[a[0].formatedDate,a[1].formatedDate],start:a[0],end:a[1],allDay:t,weeks:c,nthWeek:d,fweek:a[0].day,lweek:a[1].day}},_getDateByWeeksAndDay:function(a,i,t){var o=this._getRangeInfo(t);if(a>o.weeks||a===0&&i<o.fweek||a===o.weeks&&i>o.lweek)return!1;var e=(a-1)*7-o.fweek+i,l=new Date(o.start.time);return l.setDate(o.start.d+e),this.getDateInfo(l)}},f.dimensions=f.prototype.dimensions,f.getDimensionsInfo=f.prototype.getDimensionsInfo,f.create=function(a,i){var t=[];return a.eachComponent("calendar",function(o){var e=new f(o,a,i);t.push(e),o.coordinateSystem=e}),a.eachSeries(function(o){o.get("coordinateSystem")==="calendar"&&(o.coordinateSystem=t[o.get("calendarIndex")||0])}),t};function h(a,i,t,o){var e=t.calendarModel,l=t.seriesModel,r=e?e.coordinateSystem:l?l.coordinateSystem:null;return r===this?r[a](o):null}A.register("calendar",f);var u=f;k.exports=u},"0JQy":function(k,D){var n="\\ud800-\\udfff",y="\\u0300-\\u036f",p="\\ufe20-\\ufe2f",x="\\u20d0-\\u20ff",A=y+p+x,m="\\ufe0e\\ufe0f",f="["+n+"]",h="["+A+"]",u="\\ud83c[\\udffb-\\udfff]",a="(?:"+h+"|"+u+")",i="[^"+n+"]",t="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",e="\\u200d",l=a+"?",r="["+m+"]?",s="(?:"+e+"(?:"+[i,t,o].join("|")+")"+r+l+")*",c=r+l+s,d="(?:"+[i+h+"?",h,t,o,f].join("|")+")",g=RegExp(u+"(?="+u+")|"+d+c,"g");function v(b){return b.match(g)||[]}k.exports=v},"0NbB":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={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=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="CaretDownOutlined";var h=D.a=p.forwardRef(f)},"0PSX":function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("ygfH")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="CheckOutlined";var i=A.forwardRef(a);D.default=i},"0V0F":function(k,D,n){var y=n("bYtY"),p=y.createHashMap,x=y.each;function A(f){var h=p();f.eachSeries(function(u){var a=u.get("stack");if(a){var i=h.get(a)||h.set(a,[]),t=u.getData(),o={stackResultDimension:t.getCalculationInfo("stackResultDimension"),stackedOverDimension:t.getCalculationInfo("stackedOverDimension"),stackedDimension:t.getCalculationInfo("stackedDimension"),stackedByDimension:t.getCalculationInfo("stackedByDimension"),isStackedByIndex:t.getCalculationInfo("isStackedByIndex"),data:t,seriesModel:u};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&t.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),h.each(m)}function m(f){x(f,function(h,u){var a=[],i=[NaN,NaN],t=[h.stackResultDimension,h.stackedOverDimension],o=h.data,e=h.isStackedByIndex,l=o.map(t,function(r,s,c){var d=o.get(h.stackedDimension,c);if(isNaN(d))return i;var g,v;e?v=o.getRawIndex(c):g=o.get(h.stackedByDimension,c);for(var b=NaN,S=u-1;S>=0;S--){var E=f[S];if(e||(v=E.data.rawIndexOf(E.stackedByDimension,g)),v>=0){var C=E.data.getByRawIndex(E.stackResultDimension,v);if(d>=0&&C>0||d<=0&&C<0){d+=C,b=C;break}}}return a[0]=d,a[1]=b,a});o.hostModel.setData(l),h.data=l})}k.exports=A},"0XgM":function(k,D,n){},"0dAU":function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("X2/X")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="PlusSquareOutlined";var i=A.forwardRef(a);D.default=i},"0fbx":function(k,D,n){},"0o9m":function(k,D,n){var y=n("ProS");n("hNWo"),n("RlCK"),n("XpcN");var p=n("kDyi"),x=n("bLfw");y.registerProcessor(y.PRIORITY.PROCESSOR.SERIES_FILTER,p),x.registerSubTypeDefaulter("legend",function(){return"plain"})},"0qV/":function(k,D,n){var y=n("ProS");y.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),y.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){})},"0r65":function(k,D){var n=arguments[3],y=arguments[4],p=arguments[5],x=JSON.stringify;k.exports=function(A,m){for(var f,h=Object.keys(p),u=0,a=h.length;u<a;u++){var i=h[u],t=p[i].exports;if(t===A||t&&t.default===A){f=i;break}}if(!f){f=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var o={},u=0,a=h.length;u<a;u++){var i=h[u];o[i]=i}y[f]=["function(require,module,exports){"+A+"(self); }",o]}var e=Math.floor(Math.pow(16,8)*Math.random()).toString(16),l={};l[f]=f,y[e]=["function(require,module,exports){var f = require("+x(f)+");(f.default ? f.default : f)(self);}",l];var r={};s(e);function s(S){r[S]=!0;for(var E in y[S][1]){var C=y[S][1][E];r[C]||s(C)}}var c="("+n+")({"+Object.keys(r).map(function(S){return x(S)+":["+y[S][0]+","+x(y[S][1])+"]"}).join(",")+"},{},["+x(e)+"])",d=window.URL||window.webkitURL||window.mozURL||window.msURL,g=new Blob([c],{type:"text/javascript"});if(m&&m.bare)return g;var v=d.createObjectURL(g),b=new Worker(v);return b.objectURL=v,b}},"0s+r":function(k,D,n){var y=n("bYtY"),p=n("QBsz"),x=n("y23F"),A=n("H6uX"),m=n("YH21"),f=n("C0SR"),h="silent";function u(s,c,d){return{type:s,event:d,target:c.target,topTarget:c.topTarget,cancelBubble:!1,offsetX:d.zrX,offsetY:d.zrY,gestureEvent:d.gestureEvent,pinchX:d.pinchX,pinchY:d.pinchY,pinchScale:d.pinchScale,wheelDelta:d.zrDelta,zrByTouch:d.zrByTouch,which:d.which,stop:a}}function a(){m.stop(this.event)}function i(){}i.prototype.dispose=function(){};var t=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],o=function(c,d,g,v){A.call(this),this.storage=c,this.painter=d,this.painterRoot=v,g=g||new i,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,x.call(this),this.setHandlerProxy(g)};o.prototype={constructor:o,setHandlerProxy:function(c){this.proxy&&this.proxy.dispose(),c&&(y.each(t,function(d){c.on&&c.on(d,this[d],this)},this),c.handler=this),this.proxy=c},mousemove:function(c){var d=c.zrX,g=c.zrY,v=l(this,d,g),b=this._hovered,S=b.target;S&&!S.__zr&&(b=this.findHover(b.x,b.y),S=b.target);var E=this._hovered=v?{x:d,y:g}:this.findHover(d,g),C=E.target,_=this.proxy;_.setCursor&&_.setCursor(C?C.cursor:"default"),S&&C!==S&&this.dispatchToElement(b,"mouseout",c),this.dispatchToElement(E,"mousemove",c),C&&C!==S&&this.dispatchToElement(E,"mouseover",c)},mouseout:function(c){var d=c.zrEventControl,g=c.zrIsToLocalDOM;d!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",c),d!=="no_globalout"&&(!g&&this.trigger("globalout",{type:"globalout",event:c}))},resize:function(c){this._hovered={}},dispatch:function(c,d){var g=this[c];g&&g.call(this,d)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(c){var d=this.proxy;d.setCursor&&d.setCursor(c)},dispatchToElement:function(c,d,g){c=c||{};var v=c.target;if(v&&v.silent)return;for(var b="on"+d,S=u(d,c,g);v&&!(v[b]&&(S.cancelBubble=v[b].call(v,S)),v.trigger(d,S),v=v.parent,S.cancelBubble););S.cancelBubble||(this.trigger(d,S),this.painter&&this.painter.eachOtherLayer(function(E){typeof E[b]=="function"&&E[b].call(E,S),E.trigger&&E.trigger(d,S)}))},findHover:function(c,d,g){for(var v=this.storage.getDisplayList(),b={x:c,y:d},S=v.length-1;S>=0;S--){var E;if(v[S]!==g&&!v[S].ignore&&(E=e(v[S],c,d))&&(!b.topTarget&&(b.topTarget=v[S]),E!==h)){b.target=v[S];break}}return b},processGesture:function(c,d){this._gestureMgr||(this._gestureMgr=new f);var g=this._gestureMgr;d==="start"&&g.clear();var v=g.recognize(c,this.findHover(c.zrX,c.zrY,null).target,this.proxy.dom);if(d==="end"&&g.clear(),v){var b=v.type;c.gestureEvent=b,this.dispatchToElement({target:v.target},b,v.event)}}},y.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(s){o.prototype[s]=function(c){var d=c.zrX,g=c.zrY,v=l(this,d,g),b,S;if((s!=="mouseup"||!v)&&(b=this.findHover(d,g),S=b.target),s==="mousedown")this._downEl=S,this._downPoint=[c.zrX,c.zrY],this._upEl=S;else if(s==="mouseup")this._upEl=S;else if(s==="click"){if(this._downEl!==this._upEl||!this._downPoint||p.dist(this._downPoint,[c.zrX,c.zrY])>4)return;this._downPoint=null}this.dispatchToElement(b,s,c)}});function e(s,c,d){if(s[s.rectHover?"rectContain":"contain"](c,d)){for(var g=s,v;g;){if(g.clipPath&&!g.clipPath.contain(c,d))return!1;g.silent&&(v=!0),g=g.parent}return v?h:!0}return!1}function l(s,c,d){var g=s.painter;return c<0||c>g.getWidth()||d<0||d>g.getHeight()}y.mixin(o,A),y.mixin(o,x);var r=o;k.exports=r},"0ycA":function(k,D){function n(){return[]}k.exports=n},"10cm":function(k,D,n){var y=n("ProS"),p=n("2B6p"),x=p.updateCenterAndZoom;n("0qV/");var A={type:"graphRoam",event:"graphRoam",update:"none"};y.registerAction(A,function(m,f){f.eachComponent({mainType:"series",query:m},function(h){var u=h.coordinateSystem,a=x(u,m);h.setCenter&&h.setCenter(a.center),h.setZoom&&h.setZoom(a.zoom)})})},"15/o":function(k,D,n){},"19Vz":function(k,D,n){(function(y){y(n("VrN/"))})(function(y){y.defineOption("placeholder","",function(u,a,i){var t=i&&i!=y.Init;if(a&&!t)u.on("blur",m),u.on("change",f),u.on("swapDoc",f),y.on(u.getInputField(),"compositionupdate",u.state.placeholderCompose=function(){A(u)}),f(u);else if(!a&&t){u.off("blur",m),u.off("change",f),u.off("swapDoc",f),y.off(u.getInputField(),"compositionupdate",u.state.placeholderCompose),p(u);var o=u.getWrapperElement();o.className=o.className.replace(" CodeMirror-empty","")}a&&!u.hasFocus()&&m(u)});function p(u){u.state.placeholder&&(u.state.placeholder.parentNode.removeChild(u.state.placeholder),u.state.placeholder=null)}function x(u){p(u);var a=u.state.placeholder=document.createElement("pre");a.style.cssText="height: 0; overflow: visible",a.style.direction=u.getOption("direction"),a.className="CodeMirror-placeholder CodeMirror-line-like";var i=u.getOption("placeholder");typeof i=="string"&&(i=document.createTextNode(i)),a.appendChild(i),u.display.lineSpace.insertBefore(a,u.display.lineSpace.firstChild)}function A(u){setTimeout(function(){var a=!1,i=u.getInputField();i.nodeName=="TEXTAREA"?a=!i.value:u.lineCount()==1&&(a=!/[^\u200b]/.test(i.querySelector(".CodeMirror-line").textContent)),a?x(u):p(u)},20)}function m(u){h(u)&&x(u)}function f(u){var a=u.getWrapperElement(),i=h(u);a.className=a.className.replace(" CodeMirror-empty","")+(i?" CodeMirror-empty":""),i?x(u):p(u)}function h(u){return u.lineCount()===1&&u.getLine(0)===""}})},"1Jh7":function(k,D,n){var y=n("y+Vt"),p=n("T6xi"),x=y.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(m,f){p.buildPath(m,f,!1)}});k.exports=x},"1LEl":function(k,D,n){var y=n("ProS"),p=n("F9bG"),x=y.extendComponentView({type:"axisPointer",render:function(m,f,h){var u=f.getComponent("tooltip"),a=m.get("triggerOn")||u&&u.get("triggerOn")||"mousemove|click";p.register("axisPointer",h,function(i,t,o){a!=="none"&&(i==="leave"||a.indexOf(i)>=0)&&o({type:"updateAxisPointer",currTrigger:i,x:t&&t.offsetX,y:t&&t.offsetY})})},remove:function(m,f){p.unregister(f.getZr(),"axisPointer"),x.superApply(this._model,"remove",arguments)},dispose:function(m,f){p.unregister("axisPointer",f),x.superApply(this._model,"dispose",arguments)}}),A=x;k.exports=A},"1MYJ":function(k,D,n){var y=n("y+Vt"),p=y.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var A=this.__dirtyPath,m=this.shape.paths,f=0;f<m.length;f++)A=A||m[f].__dirtyPath;this.__dirtyPath=A,this.__dirty=this.__dirty||A},beforeBrush:function(){this._updatePathDirty();for(var A=this.shape.paths||[],m=this.getGlobalScale(),f=0;f<A.length;f++)A[f].path||A[f].createPathProxy(),A[f].path.setScale(m[0],m[1],A[f].segmentIgnoreThreshold)},buildPath:function(A,m){for(var f=m.paths||[],h=0;h<f.length;h++)f[h].buildPath(A,f[h].shape,!0)},afterBrush:function(){for(var A=this.shape.paths||[],m=0;m<A.length;m++)A[m].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),y.prototype.getBoundingRect.call(this)}});k.exports=p},"1NG9":function(k,D,n){var y=n("y+Vt"),p=n("QBsz"),x=n("iXp4"),A=p.min,m=p.max,f=p.scaleAndAdd,h=p.copy,u=[],a=[],i=[];function t(d){return isNaN(d[0])||isNaN(d[1])}function o(d,g,v,b,S,E,C,_,T,w,O){return w==="none"||!w?l.apply(this,arguments):e.apply(this,arguments)}function e(d,g,v,b,S,E,C,_,T,w,O){for(var I=0,R=v,M=0;M<b;M++){var F=g[R];if(R>=S||R<0)break;if(t(F)){if(O){R+=E;continue}break}if(R===v)d[E>0?"moveTo":"lineTo"](F[0],F[1]);else if(T>0){var P=g[I],X=w==="y"?1:0,B=(F[X]-P[X])*T;h(a,P),a[X]=P[X]+B,h(i,F),i[X]=F[X]-B,d.bezierCurveTo(a[0],a[1],i[0],i[1],F[0],F[1])}else d.lineTo(F[0],F[1]);I=R,R+=E}return M}function l(d,g,v,b,S,E,C,_,T,w,O){for(var I=0,R=v,M=0;M<b;M++){var F=g[R];if(R>=S||R<0)break;if(t(F)){if(O){R+=E;continue}break}if(R===v)d[E>0?"moveTo":"lineTo"](F[0],F[1]),h(a,F);else if(T>0){var P=R+E,X=g[P];if(O)for(;X&&t(g[P]);)P+=E,X=g[P];var B=.5,j=g[I],X=g[P];if(!X||t(X))h(i,F);else{t(X)&&!O&&(X=F),p.sub(u,X,j);var W,z;if(w==="x"||w==="y"){var V=w==="x"?0:1;W=Math.abs(F[V]-j[V]),z=Math.abs(F[V]-X[V])}else W=p.dist(F,j),z=p.dist(F,X);B=z/(z+W),f(i,F,u,-T*(1-B))}A(a,a,_),m(a,a,C),A(i,i,_),m(i,i,C),d.bezierCurveTo(a[0],a[1],i[0],i[1],F[0],F[1]),f(a,F,u,T*B)}else d.lineTo(F[0],F[1]);I=R,R+=E}return M}function r(d,g){var v=[Infinity,Infinity],b=[-Infinity,-Infinity];if(g)for(var S=0;S<d.length;S++){var E=d[S];E[0]<v[0]&&(v[0]=E[0]),E[1]<v[1]&&(v[1]=E[1]),E[0]>b[0]&&(b[0]=E[0]),E[1]>b[1]&&(b[1]=E[1])}return{min:g?v:b,max:g?b:v}}var s=y.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:x(y.prototype.brush),buildPath:function(d,g){var v=g.points,b=0,S=v.length,E=r(v,g.smoothConstraint);if(g.connectNulls){for(;S>0&&t(v[S-1]);S--);for(;b<S&&t(v[b]);b++);}for(;b<S;)b+=o(d,v,b,S,S,1,E.min,E.max,g.smooth,g.smoothMonotone,g.connectNulls)+1}}),c=y.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:x(y.prototype.brush),buildPath:function(d,g){var v=g.points,b=g.stackedOnPoints,S=0,E=v.length,C=g.smoothMonotone,_=r(v,g.smoothConstraint),T=r(b,g.smoothConstraint);if(g.connectNulls){for(;E>0&&t(v[E-1]);E--);for(;S<E&&t(v[S]);S++);}for(;S<E;){var w=o(d,v,S,E,E,1,_.min,_.max,g.smooth,C,g.connectNulls);o(d,b,S+w-1,w,E,-1,T.min,T.max,g.stackedOnSmooth,C,g.connectNulls),S+=w+1,d.closePath()}}});D.Polyline=s,D.Polygon=c},"1PJx":function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("XuBP")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="DownOutlined";var i=A.forwardRef(a);D.default=i},"1RvN":function(k,D){var n=function(){this.head=null,this.tail=null,this._len=0},y=n.prototype;y.insert=function(f){var h=new p(f);return this.insertEntry(h),h},y.insertEntry=function(f){this.head?(this.tail.next=f,f.prev=this.tail,f.next=null,this.tail=f):this.head=this.tail=f,this._len++},y.remove=function(f){var h=f.prev,u=f.next;h?h.next=u:this.head=u,u?u.prev=h:this.tail=h,f.next=f.prev=null,this._len--},y.len=function(){return this._len},y.clear=function(){this.head=this.tail=null,this._len=0};var p=function(h){this.value=h,this.next,this.prev},x=function(h){this._list=new n,this._map={},this._maxSize=h||10,this._lastRemovedEntry=null},A=x.prototype;A.put=function(f,h){var u=this._list,a=this._map,i=null;if(a[f]==null){var t=u.len(),o=this._lastRemovedEntry;if(t>=this._maxSize&&t>0){var e=u.head;u.remove(e),delete a[e.key],i=e.value,this._lastRemovedEntry=e}o?o.value=h:o=new p(h),o.key=f,u.insertEntry(o),a[f]=o}return i},A.get=function(f){var h=this._map[f],u=this._list;if(h!=null)return h!==u.tail&&(u.remove(h),u.insertEntry(h)),h.value},A.clear=function(){this._list.clear(),this._map={}};var m=x;k.exports=m},"1bdT":function(k,D,n){var y=n("3gBT"),p=n("H6uX"),x=n("DN4a"),A=n("vWvF"),m=n("bYtY"),f=function(a){x.call(this,a),p.call(this,a),A.call(this,a),this.id=a.id||y()};f.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(a,i){switch(this.draggable){case"horizontal":i=0;break;case"vertical":a=0;break}var t=this.transform;t||(t=this.transform=[1,0,0,1,0,0]),t[4]+=a,t[5]+=i,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(a,i){},attrKV:function(a,i){if(a==="position"||a==="scale"||a==="origin"){if(i){var t=this[a];t||(t=this[a]=[]),t[0]=i[0],t[1]=i[1]}}else this[a]=i},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(a,i){if(typeof a=="string")this.attrKV(a,i);else if(m.isObject(a))for(var t in a)a.hasOwnProperty(t)&&this.attrKV(t,a[t]);return this.dirty(!1),this},setClipPath:function(a){var i=this.__zr;i&&a.addSelfToZr(i),this.clipPath&&this.clipPath!==a&&this.removeClipPath(),this.clipPath=a,a.__zr=i,a.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var a=this.clipPath;a&&(a.__zr&&a.removeSelfFromZr(a.__zr),a.__zr=null,a.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(a){this.__zr=a;var i=this.animators;if(i)for(var t=0;t<i.length;t++)a.animation.addAnimator(i[t]);this.clipPath&&this.clipPath.addSelfToZr(a)},removeSelfFromZr:function(a){this.__zr=null;var i=this.animators;if(i)for(var t=0;t<i.length;t++)a.animation.removeAnimator(i[t]);this.clipPath&&this.clipPath.removeSelfFromZr(a)}},m.mixin(f,A),m.mixin(f,x),m.mixin(f,p);var h=f;k.exports=h},"1dTM":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=n("GQ8N"),p=w(n("Lo0S")),x=n("VSMT"),A=n("GdRQ"),m=n("SZEN"),f=n("vewr"),h=_(n("YJ9k")),u=_(n("MZdM")),a=_(n("ItS6")),i=_(n("whVF")),t=_(n("Fv0C")),o=_(n("LCi9")),e=_(n("rwxt")),l=_(n("Mmt2")),r=_(n("iUHT")),s=_(n("mHUz")),c=_(n("P2ho")),d=n("NBmB");n("mdZa");var g=_(n("34/K")),v=_(n("hXwI")),b=_(n("SgaC")),S=_(n("3690")),E=_(n("8K/p")),C=_(n("xO64"));function _(fe){return fe&&fe.__esModule?fe:{default:fe}}function T(){if(typeof WeakMap!="function")return null;var fe=new WeakMap;return T=function(){return fe},fe}function w(fe){if(fe&&fe.__esModule)return fe;if(fe===null||O(fe)!=="object"&&typeof fe!="function")return{default:fe};var we=T();if(we&&we.has(fe))return we.get(fe);var Ne={},Ee=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var de in fe)if(Object.prototype.hasOwnProperty.call(fe,de)){var me=Ee?Object.getOwnPropertyDescriptor(fe,de):null;me&&(me.get||me.set)?Object.defineProperty(Ne,de,me):Ne[de]=fe[de]}return Ne.default=fe,we&&we.set(fe,Ne),Ne}function O(fe){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(Ne){return typeof Ne}:O=function(Ne){return Ne&&typeof Symbol=="function"&&Ne.constructor===Symbol&&Ne!==Symbol.prototype?"symbol":typeof Ne},O(fe)}function I(fe,we){if(!(fe instanceof we))throw new TypeError("Cannot call a class as a function")}function R(fe,we){for(var Ne=0;Ne<we.length;Ne++){var Ee=we[Ne];Ee.enumerable=Ee.enumerable||!1,Ee.configurable=!0,"value"in Ee&&(Ee.writable=!0),Object.defineProperty(fe,Ee.key,Ee)}}function M(fe,we,Ne){return we&&R(fe.prototype,we),Ne&&R(fe,Ne),fe}function F(fe,we){if(typeof we!="function"&&we!==null)throw new TypeError("Super expression must either be null or a function");fe.prototype=Object.create(we&&we.prototype,{constructor:{value:fe,writable:!0,configurable:!0}}),we&&P(fe,we)}function P(fe,we){return P=Object.setPrototypeOf||function(Ee,de){return Ee.__proto__=de,Ee},P(fe,we)}function X(fe){var we=W();return function(){var Ee=z(fe),de;if(we){var me=z(this).constructor;de=Reflect.construct(Ee,arguments,me)}else de=Ee.apply(this,arguments);return B(this,de)}}function B(fe,we){return we&&(O(we)==="object"||typeof we=="function")?we:j(fe)}function j(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}function W(){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(fe){return!1}}function z(fe){return z=Object.setPrototypeOf?Object.getPrototypeOf:function(Ne){return Ne.__proto__||Object.getPrototypeOf(Ne)},z(fe)}var V=3,Q="rgb(40, 40, 40)",G=17,ee=50,ce=19,be=75,le=50,Ie=1e3,ke=50,Re=1,Qe=1<<1,We=1<<2,ot=1<<3,Oe=1<<4,oe=1<<24,st=1<<25,he=1<<26,J=1<<27,Y=1<<28,$=function(fe){F(Ne,fe);var we=X(Ne);function Ne(Ee,de,me){var Le;if(I(this,Ne),!Ee)throw new Error("Must specify target");if(!de)throw new Error("Must specify URL");Le=we.call(this),Le._target=Ee,Le._url=de,me=me||{},Le._rfbCredentials=me.credentials||{},Le._shared="shared"in me?!!me.shared:!0,Le._repeaterID=me.repeaterID||"",Le._wsProtocols=me.wsProtocols||[],Le._rfbConnectionState="",Le._rfbInitState="",Le._rfbAuthScheme=-1,Le._rfbCleanDisconnect=!0,Le._rfbVersion=0,Le._rfbMaxVersion=3.8,Le._rfbTightVNC=!1,Le._rfbVeNCryptState=0,Le._rfbXvpVer=0,Le._fbWidth=0,Le._fbHeight=0,Le._fbName="",Le._capabilities={power:!1},Le._supportsFence=!1,Le._supportsContinuousUpdates=!1,Le._enabledContinuousUpdates=!1,Le._supportsSetDesktopSize=!1,Le._screenID=0,Le._screenFlags=0,Le._qemuExtKeyEventSupported=!1,Le._clipboardText=null,Le._clipboardServerCapabilitiesActions={},Le._clipboardServerCapabilitiesFormats={},Le._sock=null,Le._display=null,Le._flushing=!1,Le._keyboard=null,Le._gestures=null,Le._disconnTimer=null,Le._resizeTimeout=null,Le._mouseMoveTimer=null,Le._decoders={},Le._FBU={rects:0,x:0,y:0,width:0,height:0,encoding:null},Le._mousePos={},Le._mouseButtonMask=0,Le._mouseLastMoveTime=0,Le._viewportDragging=!1,Le._viewportDragPos={},Le._viewportHasMoved=!1,Le._accumulatedWheelDeltaX=0,Le._accumulatedWheelDeltaY=0,Le._gestureLastTapTime=null,Le._gestureFirstDoubleTapEv=null,Le._gestureLastMagnitudeX=0,Le._gestureLastMagnitudeY=0,Le._eventHandlers={focusCanvas:Le._focusCanvas.bind(j(Le)),windowResize:Le._windowResize.bind(j(Le)),handleMouse:Le._handleMouse.bind(j(Le)),handleWheel:Le._handleWheel.bind(j(Le)),handleGesture:Le._handleGesture.bind(j(Le))},p.Debug(">> 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=Q,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 e.default,Le._cursorImage=Ne.cursors.none,Le._decoders[d.encodings.encodingRaw]=new g.default,Le._decoders[d.encodings.encodingCopyRect]=new v.default,Le._decoders[d.encodings.encodingRRE]=new b.default,Le._decoders[d.encodings.encodingHextile]=new S.default,Le._decoders[d.encodings.encodingTight]=new E.default,Le._decoders[d.encodings.encodingTightPNG]=new C.default;try{Le._display=new u.default(Le._canvas)}catch(tt){throw p.Error("Display exception: "+tt),tt}return Le._display.onflush=Le._onFlush.bind(j(Le)),Le._keyboard=new t.default(Le._canvas),Le._keyboard.onkeyevent=Le._handleKeyEvent.bind(j(Le)),Le._gestures=new o.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",p.Debug("Starting VNC handshake")):Le._fail("Unexpected server connection while "+Le._rfbConnectionState)}),Le._sock.on("close",function(tt){p.Debug("WebSocket on-close event");var At="";tt.code&&(At="(code: "+tt.code,tt.reason&&(At+=", reason: "+tt.reason),At+=")");switch(Le._rfbConnectionState){case"connecting":Le._fail("Connection closed "+At);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 "+At);break;default:Le._fail("Unexpected server disconnect before connecting "+At);break}Le._sock.off("close")}),Le._sock.on("error",function(tt){return p.Warn("WebSocket on-error event")}),setTimeout(Le._updateConnectionState.bind(j(Le),"connecting")),p.Debug("<< RFB.constructor"),Le.dragViewport=!1,Le.focusOnClick=!0,Le._viewOnly=!1,Le._clipViewport=!1,Le._scaleViewport=!1,Le._resizeSession=!1,Le._showDotCursor=!1,me.showDotCursor!==void 0&&(p.Warn("Specifying showDotCursor as a RFB constructor argument is deprecated"),Le._showDotCursor=me.showDotCursor),Le._qualityLevel=6,Le._compressionLevel=2,Le}return M(Ne,[{key:"disconnect",value:function(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open")}},{key:"sendCredentials",value:function(de){this._rfbCredentials=de,setTimeout(this._initMsg.bind(this),0)}},{key:"sendCtrlAltDel",value:function(){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;p.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(de,me,Le){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(Le===void 0){this.sendKey(de,me,!0),this.sendKey(de,me,!1);return}var tt=c.default[me];if(this._qemuExtKeyEventSupported&&tt)de=de||0,p.Info("Sending key ("+(Le?"down":"up")+"): keysym "+de+", scancode "+tt),Ne.messages.QEMUExtendedKeyEvent(this._sock,de,Le,tt);else{if(!de)return;p.Info("Sending keysym ("+(Le?"down":"up")+"): "+de),Ne.messages.keyEvent(this._sock,de,Le?1:0)}}},{key:"focus",value:function(){this._canvas.focus()}},{key:"blur",value:function(){this._canvas.blur()}},{key:"clipboardPasteFrom",value:function(de){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(this._clipboardServerCapabilitiesFormats[Re]&&this._clipboardServerCapabilitiesActions[J])this._clipboardText=de,Ne.messages.extendedClipboardNotify(this._sock,[Re]);else{for(var me=new Uint8Array(de.length),Le=0;Le<de.length;Le++)me[Le]=de.charCodeAt(Le);Ne.messages.clientCutText(this._sock,me)}}},{key:"_connect",value:function(){p.Debug(">> RFB.connect"),p.Info("connecting to "+this._url);try{this._sock.open(this._url,this._wsProtocols)}catch(de){de.name==="SyntaxError"?this._fail("Invalid host or port ("+de+")"):this._fail("Error when opening socket ("+de+")")}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),p.Debug("<< RFB.connect")}},{key:"_disconnect",value:function(){p.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(de){if(!(de.name==="NotFoundError"))throw de}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),p.Debug("<< RFB.disconnect")}},{key:"_focusCanvas",value:function(de){if(!this.focusOnClick)return;this.focus()}},{key:"_setDesktopName",value:function(de){this._fbName=de,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}},{key:"_windowResize",value:function(de){var me=this;window.requestAnimationFrame(function(){me._updateClip(),me._updateScale()}),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500))}},{key:"_updateClip",value:function(){var de=this._display.clipViewport,me=this._clipViewport;if(this._scaleViewport&&(me=!1),de!==me&&(this._display.clipViewport=me),me){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 de=this._screenSize();this._display.autoscale(de.w,de.h)}this._fixScrollbars()}},{key:"_requestRemoteResize",value:function(){if(clearTimeout(this._resizeTimeout),this._resizeTimeout=null,!this._resizeSession||this._viewOnly||!this._supportsSetDesktopSize)return;var de=this._screenSize();Ne.messages.setDesktopSize(this._sock,Math.floor(de.w),Math.floor(de.h),this._screenID,this._screenFlags),p.Debug("Requested new desktop size: "+de.w+"x"+de.h)}},{key:"_screenSize",value:function(){var de=this._screen.getBoundingClientRect();return{w:de.width,h:de.height}}},{key:"_fixScrollbars",value:function(){var de=this._screen.style.overflow;this._screen.style.overflow="hidden",this._screen.getBoundingClientRect(),this._screen.style.overflow=de}},{key:"_updateConnectionState",value:function(de){var me=this,Le=this._rfbConnectionState;if(de===Le){p.Debug("Already in state '"+de+"', ignoring");return}if(Le==="disconnected"){p.Error("Tried changing state of a disconnected RFB object");return}switch(de){case"connected":if(Le!=="connecting"){p.Error("Bad transition to connected state, previous connection state: "+Le);return}break;case"disconnected":if(Le!=="disconnecting"){p.Error("Bad transition to disconnected state, previous connection state: "+Le);return}break;case"connecting":if(Le!==""){p.Error("Bad transition to connecting state, previous connection state: "+Le);return}break;case"disconnecting":if(Le!=="connected"&&Le!=="connecting"){p.Error("Bad transition to disconnecting state, previous connection state: "+Le);return}break;default:p.Error("Unknown connection state: "+de);return}this._rfbConnectionState=de,p.Debug("New state '"+de+"', was '"+Le+"'."),this._disconnTimer&&de!=="disconnecting"&&(p.Debug("Clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close"));switch(de){case"connecting":this._connect();break;case"connected":this.dispatchEvent(new CustomEvent("connect",{detail:{}}));break;case"disconnecting":this._disconnect(),this._disconnTimer=setTimeout(function(){p.Error("Disconnection timed out."),me._updateConnectionState("disconnected")},V*1e3);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}));break}}},{key:"_fail",value:function(de){switch(this._rfbConnectionState){case"disconnecting":p.Error("Failed when disconnecting: "+de);break;case"connected":p.Error("Failed while connected: "+de);break;case"connecting":p.Error("Failed when connecting: "+de);break;default:p.Error("RFB failure: "+de);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}},{key:"_setCapability",value:function(de,me){this._capabilities[de]=me,this.dispatchEvent(new CustomEvent("capabilities",{detail:{capabilities:this._capabilities}}))}},{key:"_handleMessage",value:function(){if(this._sock.rQlen===0){p.Warn("handleMessage called on an empty receive queue");return}switch(this._rfbConnectionState){case"disconnected":p.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(de,me,Le){this.sendKey(de,me,Le)}},{key:"_handleMouse",value:function(de){if(de.type==="click"&&de.target!==this._canvas)return;if(de.stopPropagation(),de.preventDefault(),de.type==="click"||de.type==="contextmenu")return;var me=(0,m.clientToElement)(de.clientX,de.clientY,this._canvas);switch(de.type){case"mousedown":(0,f.setCapture)(this._canvas),this._handleMouseButton(me.x,me.y,!0,1<<de.button);break;case"mouseup":this._handleMouseButton(me.x,me.y,!1,1<<de.button);break;case"mousemove":this._handleMouseMove(me.x,me.y);break}}},{key:"_handleMouseButton",value:function(de,me,Le,tt){if(this.dragViewport)if(Le&&!this._viewportDragging){this._viewportDragging=!0,this._viewportDragPos={x:de,y:me},this._viewportHasMoved=!1;return}else{if(this._viewportDragging=!1,this._viewportHasMoved)return;this._sendMouse(de,me,tt)}this._mouseMoveTimer!==null&&(clearTimeout(this._mouseMoveTimer),this._mouseMoveTimer=null,this._sendMouse(de,me,this._mouseButtonMask)),Le?this._mouseButtonMask|=tt:this._mouseButtonMask&=~tt,this._sendMouse(de,me,this._mouseButtonMask)}},{key:"_handleMouseMove",value:function(de,me){var Le=this;if(this._viewportDragging){var tt=this._viewportDragPos.x-de,At=this._viewportDragPos.y-me;(this._viewportHasMoved||Math.abs(tt)>A.dragThreshold||Math.abs(At)>A.dragThreshold)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:de,y:me},this._display.viewportChangePos(tt,At));return}if(this._mousePos={x:de,y:me},this._mouseMoveTimer==null){var ht=Date.now()-this._mouseLastMoveTime;ht>G?(this._sendMouse(de,me,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout(function(){Le._handleDelayedMouseMove()},G-ht)}}},{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(de,me,Le){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;Ne.messages.pointerEvent(this._sock,this._display.absX(de),this._display.absY(me),Le)}},{key:"_handleWheel",value:function(de){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;de.stopPropagation(),de.preventDefault();var me=(0,m.clientToElement)(de.clientX,de.clientY,this._canvas),Le=de.deltaX,tt=de.deltaY;de.deltaMode!==0&&(Le*=ce,tt*=ce),this._accumulatedWheelDeltaX+=Le,this._accumulatedWheelDeltaY+=tt,Math.abs(this._accumulatedWheelDeltaX)>=ee&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(me.x,me.y,!0,1<<5),this._handleMouseButton(me.x,me.y,!1,1<<5)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(me.x,me.y,!0,1<<6),this._handleMouseButton(me.x,me.y,!1,1<<6)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=ee&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(me.x,me.y,!0,1<<3),this._handleMouseButton(me.x,me.y,!1,1<<3)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(me.x,me.y,!0,1<<4),this._handleMouseButton(me.x,me.y,!1,1<<4)),this._accumulatedWheelDeltaY=0)}},{key:"_fakeMouseMove",value:function(de,me,Le){this._handleMouseMove(me,Le),this._cursor.move(de.detail.clientX,de.detail.clientY)}},{key:"_handleTapEvent",value:function(de,me){var Le=(0,m.clientToElement)(de.detail.clientX,de.detail.clientY,this._canvas);if(this._gestureLastTapTime!==null&&Date.now()-this._gestureLastTapTime<Ie&&this._gestureFirstDoubleTapEv.detail.type===de.detail.type){var tt=this._gestureFirstDoubleTapEv.detail.clientX-de.detail.clientX,At=this._gestureFirstDoubleTapEv.detail.clientY-de.detail.clientY,ht=Math.hypot(tt,At);ht<ke?Le=(0,m.clientToElement)(this._gestureFirstDoubleTapEv.detail.clientX,this._gestureFirstDoubleTapEv.detail.clientY,this._canvas):this._gestureFirstDoubleTapEv=de}else this._gestureFirstDoubleTapEv=de;this._gestureLastTapTime=Date.now(),this._fakeMouseMove(this._gestureFirstDoubleTapEv,Le.x,Le.y),this._handleMouseButton(Le.x,Le.y,!0,me),this._handleMouseButton(Le.x,Le.y,!1,me)}},{key:"_handleGesture",value:function(de){var me,Le=(0,m.clientToElement)(de.detail.clientX,de.detail.clientY,this._canvas);switch(de.type){case"gesturestart":switch(de.detail.type){case"onetap":this._handleTapEvent(de,1);break;case"twotap":this._handleTapEvent(de,4);break;case"threetap":this._handleTapEvent(de,2);break;case"drag":this._fakeMouseMove(de,Le.x,Le.y),this._handleMouseButton(Le.x,Le.y,!0,1);break;case"longpress":this._fakeMouseMove(de,Le.x,Le.y),this._handleMouseButton(Le.x,Le.y,!0,4);break;case"twodrag":this._gestureLastMagnitudeX=de.detail.magnitudeX,this._gestureLastMagnitudeY=de.detail.magnitudeY,this._fakeMouseMove(de,Le.x,Le.y);break;case"pinch":this._gestureLastMagnitudeX=Math.hypot(de.detail.magnitudeX,de.detail.magnitudeY),this._fakeMouseMove(de,Le.x,Le.y);break}break;case"gesturemove":switch(de.detail.type){case"onetap":case"twotap":case"threetap":break;case"drag":case"longpress":this._fakeMouseMove(de,Le.x,Le.y);break;case"twodrag":for(this._fakeMouseMove(de,Le.x,Le.y);de.detail.magnitudeY-this._gestureLastMagnitudeY>le;)this._handleMouseButton(Le.x,Le.y,!0,8),this._handleMouseButton(Le.x,Le.y,!1,8),this._gestureLastMagnitudeY+=le;for(;de.detail.magnitudeY-this._gestureLastMagnitudeY<-le;)this._handleMouseButton(Le.x,Le.y,!0,16),this._handleMouseButton(Le.x,Le.y,!1,16),this._gestureLastMagnitudeY-=le;for(;de.detail.magnitudeX-this._gestureLastMagnitudeX>le;)this._handleMouseButton(Le.x,Le.y,!0,32),this._handleMouseButton(Le.x,Le.y,!1,32),this._gestureLastMagnitudeX+=le;for(;de.detail.magnitudeX-this._gestureLastMagnitudeX<-le;)this._handleMouseButton(Le.x,Le.y,!0,64),this._handleMouseButton(Le.x,Le.y,!1,64),this._gestureLastMagnitudeX-=le;break;case"pinch":if(this._fakeMouseMove(de,Le.x,Le.y),me=Math.hypot(de.detail.magnitudeX,de.detail.magnitudeY),Math.abs(me-this._gestureLastMagnitudeX)>be){for(this._handleKeyEvent(s.default.XK_Control_L,"ControlLeft",!0);me-this._gestureLastMagnitudeX>be;)this._handleMouseButton(Le.x,Le.y,!0,8),this._handleMouseButton(Le.x,Le.y,!1,8),this._gestureLastMagnitudeX+=be;for(;me-this._gestureLastMagnitudeX<-be;)this._handleMouseButton(Le.x,Le.y,!0,16),this._handleMouseButton(Le.x,Le.y,!1,16),this._gestureLastMagnitudeX-=be}this._handleKeyEvent(s.default.XK_Control_L,"ControlLeft",!1);break}break;case"gestureend":switch(de.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(de,Le.x,Le.y),this._handleMouseButton(Le.x,Le.y,!1,1);break;case"longpress":this._fakeMouseMove(de,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 de=this._sock.rQshiftStr(12).substr(4,7);p.Info("Server ProtocolVersion: "+de);var me=0;switch(de){case"000.000":me=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 "+de)}if(me){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 tt="00"+parseInt(this._rfbVersion,10)+".00"+this._rfbVersion*10%10;this._sock.sendString("RFB "+tt+`
|
|
|
`),p.Debug("Sent ProtocolVersion: "+tt),this._rfbInitState="Security"}},{key:"_negotiateSecurity",value:function(){function de(tt,At){for(var ht=0;ht<At.length;ht++)if(At[ht]===tt)return!0;return!1}if(this._rfbVersion>=3.7){var me=this._sock.rQshift8();if(this._sock.rQwait("security type",me,1))return!1;if(me===0)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,this._initMsg();var Le=this._sock.rQshiftBytes(me);if(p.Debug("Server security types: "+Le),de(1,Le))this._rfbAuthScheme=1;else if(de(22,Le))this._rfbAuthScheme=22;else if(de(16,Le))this._rfbAuthScheme=16;else if(de(2,Le))this._rfbAuthScheme=2;else if(de(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",p.Debug("Authenticating using scheme: "+this._rfbAuthScheme),this._initMsg()}},{key:"_handleSecurityReason",value:function(){if(this._sock.rQwait("reason length",4))return!1;var de=this._sock.rQshift32(),me="";if(de>0){if(this._sock.rQwait("reason",de,4))return!1;me=this._sock.rQshiftStr(de)}return me!==""?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:me}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+me+")")):(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 de=String.fromCharCode(this._rfbCredentials.username.length)+String.fromCharCode(this._rfbCredentials.target.length)+this._rfbCredentials.username+this._rfbCredentials.target;return this._sock.sendString(de),this._rfbAuthScheme=2,this._negotiateAuthentication()}},{key:"_negotiateVeNCryptAuth",value:function(){if(this._rfbVeNCryptState==0){if(this._sock.rQwait("vencrypt version",2))return!1;var de=this._sock.rQshift8(),me=this._sock.rQshift8();if(!(de==0&&me==2))return this._fail("Unsupported VeNCrypt version "+de+"."+me);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 tt=this._sock.rQshift8();if(tt<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=tt,this._rfbVeNCryptState=3}if(this._rfbVeNCryptState==3){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;for(var At=[],ht=0;ht<this._rfbVeNCryptSubtypesLength;ht++)At.push(this._sock.rQshift32());if(At.indexOf(256)!=-1)this._sock.send([0,0,1,0]),this._rfbVeNCryptState=4;else return this._fail("VeNCrypt Plain subtype not offered by server")}if(this._rfbVeNCryptState==4){if(!this._rfbCredentials.username||!this._rfbCredentials.password)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}})),!1;var Ke=(0,x.encodeUTF8)(this._rfbCredentials.username),Jt=(0,x.encodeUTF8)(this._rfbCredentials.password);return this._sock.send([0,0,0,Ke.length]),this._sock.send([0,0,0,Jt.length]),this._sock.sendString(Ke),this._sock.sendString(Jt),this._rfbInitState="SecurityResult",!0}}},{key:"_negotiateStdVNCAuth",value:function(){if(this._sock.rQwait("auth challenge",16))return!1;if(this._rfbCredentials.password===void 0)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["password"]}})),!1;var de=Array.prototype.slice.call(this._sock.rQshiftBytes(16)),me=Ne.genDES(this._rfbCredentials.password,de);return this._sock.send(me),this._rfbInitState="SecurityResult",!0}},{key:"_negotiateTightUnixAuth",value:function(){return this._rfbCredentials.username===void 0||this._rfbCredentials.password===void 0?(this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}})),!1):(this._sock.send([0,0,0,this._rfbCredentials.username.length]),this._sock.send([0,0,0,this._rfbCredentials.password.length]),this._sock.sendString(this._rfbCredentials.username),this._sock.sendString(this._rfbCredentials.password),this._rfbInitState="SecurityResult",!0)}},{key:"_negotiateTightTunnels",value:function(de){for(var me={0:{vendor:"TGHT",signature:"NOTUNNEL"}},Le={},tt=0;tt<de;tt++){var At=this._sock.rQshift32(),ht=this._sock.rQshiftStr(4),Ke=this._sock.rQshiftStr(8);Le[At]={vendor:ht,signature:Ke}}return p.Debug("Server Tight tunnel types: "+Le),Le[1]&&Le[1].vendor==="SICR"&&Le[1].signature==="SCHANNEL"&&(p.Debug("Detected Siemens server. Assuming NOTUNNEL support."),Le[0]={vendor:"TGHT",signature:"NOTUNNEL"}),Le[0]?Le[0].vendor!=me[0].vendor||Le[0].signature!=me[0].signature?this._fail("Client's tunnel type had the incorrect vendor or signature"):(p.Debug("Selected tunnel type: "+me[0]),this._sock.send([0,0,0,0]),!1):this._fail("Server wanted tunnels, but doesn't support the notunnel type")}},{key:"_negotiateTightAuth",value:function(){if(!this._rfbTightVNC){if(this._sock.rQwait("num tunnels",4))return!1;var de=this._sock.rQshift32();if(de>0&&this._sock.rQwait("tunnel capabilities",16*de,4))return!1;if(this._rfbTightVNC=!0,de>0)return this._negotiateTightTunnels(de),!1}if(this._sock.rQwait("sub auth count",4))return!1;var me=this._sock.rQshift32();if(me===0)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*me,4))return!1;for(var Le={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},tt=[],At=0;At<me;At++){this._sock.rQshift32();var ht=this._sock.rQshiftStr(12);tt.push(ht)}p.Debug("Server Tight authentication types: "+tt);for(var Ke in Le)if(tt.indexOf(Ke)!=-1){this._sock.send([0,0,0,Le[Ke]]),p.Debug("Selected authentication type: "+Ke);switch(Ke){case"STDVNOAUTH__":return this._rfbInitState="SecurityResult",!0;case"STDVVNCAUTH_":return this._rfbAuthScheme=2,this._initMsg();case"TGHTULGNAUTH":return this._rfbAuthScheme=129,this._initMsg();default:return this._fail("Unsupported tiny auth scheme (scheme: "+Ke+")")}}return this._fail("No supported sub-auth types!")}},{key:"_negotiateAuthentication",value:function(){switch(this._rfbAuthScheme){case 1:return this._rfbVersion>=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 de=this._sock.rQshift32();return de===0?(this._rfbInitState="ClientInitialisation",p.Debug("Authentication OK"),this._initMsg()):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=de,this._initMsg()):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:de}})),this._fail("Security handshake failed"))}},{key:"_negotiateServerInit",value:function(){if(this._sock.rQwait("server initialization",24))return!1;var de=this._sock.rQshift16(),me=this._sock.rQshift16(),Le=this._sock.rQshift8(),tt=this._sock.rQshift8(),At=this._sock.rQshift8(),ht=this._sock.rQshift8(),Ke=this._sock.rQshift16(),Jt=this._sock.rQshift16(),ct=this._sock.rQshift16(),Gt=this._sock.rQshift8(),dr=this._sock.rQshift8(),zt=this._sock.rQshift8();this._sock.rQskipBytes(3);var kt=this._sock.rQshift32();if(this._sock.rQwait("server init name",kt,24))return!1;var Vt=this._sock.rQshiftStr(kt);if(Vt=(0,x.decodeUTF8)(Vt,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+kt))return!1;var Xe=this._sock.rQshift16(),pe=this._sock.rQshift16(),te=this._sock.rQshift16();this._sock.rQskipBytes(2);var $e=(Xe+pe+te)*16;if(this._sock.rQwait("TightVNC extended server init header",$e,32+kt))return!1;this._sock.rQskipBytes(16*Xe),this._sock.rQskipBytes(16*pe),this._sock.rQskipBytes(16*te)}return p.Info("Screen: "+de+"x"+me+", bpp: "+Le+", depth: "+tt+", bigEndian: "+At+", trueColor: "+ht+", redMax: "+Ke+", greenMax: "+Jt+", blueMax: "+ct+", redShift: "+Gt+", greenShift: "+dr+", blueShift: "+zt),this._setDesktopName(Vt),this._resize(de,me),this._viewOnly||this._keyboard.grab(),this._fbDepth=24,this._fbName==="Intel(r) AMT KVM"&&(p.Warn("Intel AMT KVM only supports 8/16 bit depths. Using low color mode."),this._fbDepth=8),Ne.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),Ne.messages.fbUpdateRequest(this._sock,!1,0,0,this._fbWidth,this._fbHeight),this._updateConnectionState("connected"),!0}},{key:"_sendEncodings",value:function(){var de=[];de.push(d.encodings.encodingCopyRect),this._fbDepth==24&&(de.push(d.encodings.encodingTight),de.push(d.encodings.encodingTightPNG),de.push(d.encodings.encodingHextile),de.push(d.encodings.encodingRRE)),de.push(d.encodings.encodingRaw),de.push(d.encodings.pseudoEncodingQualityLevel0+this._qualityLevel),de.push(d.encodings.pseudoEncodingCompressLevel0+this._compressionLevel),de.push(d.encodings.pseudoEncodingDesktopSize),de.push(d.encodings.pseudoEncodingLastRect),de.push(d.encodings.pseudoEncodingQEMUExtendedKeyEvent),de.push(d.encodings.pseudoEncodingExtendedDesktopSize),de.push(d.encodings.pseudoEncodingXvp),de.push(d.encodings.pseudoEncodingFence),de.push(d.encodings.pseudoEncodingContinuousUpdates),de.push(d.encodings.pseudoEncodingDesktopName),de.push(d.encodings.pseudoEncodingExtendedClipboard),this._fbDepth==24&&(de.push(d.encodings.pseudoEncodingVMwareCursor),de.push(d.encodings.pseudoEncodingCursor)),Ne.messages.clientEncodings(this._sock,de)}},{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 p.Debug("SetColorMapEntries"),this._fail("Unexpected SetColorMapEntries message")}},{key:"_handleServerCutText",value:function(){if(p.Debug("ServerCutText"),this._sock.rQwait("ServerCutText header",7,1))return!1;this._sock.rQskipBytes(3);var de=this._sock.rQshift32();if(de=(0,y.toSigned32bit)(de),this._sock.rQwait("ServerCutText content",Math.abs(de),8))return!1;if(de>=0){var me=this._sock.rQshiftStr(de);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:me}}))}else{de=Math.abs(de);var Le=this._sock.rQshift32(),tt=Le&65535,At=Le&4278190080,ht=!!(At&oe);if(ht){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(var Ke=0;Ke<=15;Ke++){var Jt=1<<Ke;tt&Jt&&(this._clipboardServerCapabilitiesFormats[Jt]=!0,this._sock.rQshift32())}for(var ct=24;ct<=31;ct++){var Gt=1<<ct;this._clipboardServerCapabilitiesActions[Gt]=!!(At&Gt)}var dr=[oe,st,he,J,Y];Ne.messages.extendedClipboardCaps(this._sock,dr,{extendedClipboardFormatText:0})}else if(At===st){if(this._viewOnly)return!0;this._clipboardText!=null&&this._clipboardServerCapabilitiesActions[Y]&&(tt&Re&&Ne.messages.extendedClipboardProvide(this._sock,[Re],[this._clipboardText]))}else if(At===he){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[J]&&(this._clipboardText!=null?Ne.messages.extendedClipboardNotify(this._sock,[Re]):Ne.messages.extendedClipboardNotify(this._sock,[]))}else if(At===J){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[st]&&(tt&Re&&Ne.messages.extendedClipboardRequest(this._sock,[Re]))}else if(At===Y){if(this._viewOnly)return!0;if(!(tt&Re))return!0;this._clipboardText=null;var zt=this._sock.rQshiftBytes(de-4),kt=new a.default,Vt=null;kt.setInput(zt);for(var Xe=0;Xe<=15;Xe++){var pe=1<<Xe;if(tt&pe){var te=0,$e=kt.inflate(4);te|=$e[0]<<24,te|=$e[1]<<16,te|=$e[2]<<8,te|=$e[3];var He=kt.inflate(te);pe===Re&&(Vt=He)}}if(kt.setInput(null),Vt!==null){for(var ae="",ft=0;ft<Vt.length;ft++)ae+=String.fromCharCode(Vt[ft]);Vt=ae,Vt=(0,x.decodeUTF8)(Vt),Vt.length>0&&Vt.charAt(Vt.length-1)==="\0"&&(Vt=Vt.slice(0,-1)),Vt=Vt.replace(`\r
|
|
|
`,`
|
|
|
`),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:Vt}}))}}else return this._fail("Unexpected action in extended clipboard message: "+At)}return!0}},{key:"_handleServerFenceMsg",value:function(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);var de=this._sock.rQshift32(),me=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",me,9))return!1;me>64&&(p.Warn("Bad payload length ("+me+") in fence response"),me=64);var Le=this._sock.rQshiftStr(me);return this._supportsFence=!0,de&1<<31?(de&=1<<0|1<<1,Ne.messages.clientFence(this._sock,de,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 de=this._sock.rQshift8(),me=this._sock.rQshift8();switch(me){case 0:p.Error("XVP Operation Failed");break;case 1:this._rfbXvpVer=de,p.Info("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+me+")");break}return!0}},{key:"_normalMsg",value:function(){var de;this._FBU.rects>0?de=0:de=this._sock.rQshift8();var me,Le;switch(de){case 0:return Le=this._framebufferUpdate(),Le&&!this._enabledContinuousUpdates&&Ne.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),Le;case 1:return this._handleSetColourMapMsg();case 2:return p.Debug("Bell"),this.dispatchEvent(new CustomEvent("bell",{detail:{}})),!0;case 3:return this._handleServerCutText();case 150:return me=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,me&&(this._enabledContinuousUpdates=!0,this._updateContinuousUpdates(),p.Info("Enabling continuous updates.")),!0;case 248:return this._handleServerFenceMsg();case 250:return this._handleXvpMsg();default:return this._fail("Unexpected server message (type "+de+")"),p.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 de=this._sock.rQshiftBytes(12);this._FBU.x=(de[0]<<8)+de[1],this._FBU.y=(de[2]<<8)+de[3],this._FBU.width=(de[4]<<8)+de[5],this._FBU.height=(de[6]<<8)+de[7],this._FBU.encoding=parseInt((de[8]<<24)+(de[9]<<16)+(de[10]<<8)+de[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 d.encodings.pseudoEncodingLastRect:return this._FBU.rects=1,!0;case d.encodings.pseudoEncodingVMwareCursor:return this._handleVMwareCursor();case d.encodings.pseudoEncodingCursor:return this._handleCursor();case d.encodings.pseudoEncodingQEMUExtendedKeyEvent:try{var de=document.createEvent("keyboardEvent");de.code!==void 0&&(this._qemuExtKeyEventSupported=!0)}catch(me){}return!0;case d.encodings.pseudoEncodingDesktopName:return this._handleDesktopName();case d.encodings.pseudoEncodingDesktopSize:return this._resize(this._FBU.width,this._FBU.height),!0;case d.encodings.pseudoEncodingExtendedDesktopSize:return this._handleExtendedDesktopSize();default:return this._handleDataRect()}}},{key:"_handleVMwareCursor",value:function(){var de=this._FBU.x,me=this._FBU.y,Le=this._FBU.width,tt=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;var At=this._sock.rQshift8();this._sock.rQshift8();var ht,Ke=4;if(At==0){var Jt=4294967040|0;if(ht=new Array(Le*tt*Ke),this._sock.rQwait("VMware cursor classic encoding",Le*tt*Ke*2,2))return!1;for(var ct=new Array(Le*tt),Gt=0;Gt<Le*tt;Gt++)ct[Gt]=this._sock.rQshift32();for(var dr=new Array(Le*tt),zt=0;zt<Le*tt;zt++)dr[zt]=this._sock.rQshift32();for(var kt=0;kt<Le*tt;kt++)if(ct[kt]==0){var Vt=dr[kt],Xe=Vt>>8&255,pe=Vt>>16&255,te=Vt>>24&255;ht[kt*Ke]=Xe,ht[kt*Ke+1]=pe,ht[kt*Ke+2]=te,ht[kt*Ke+3]=255}else(ct[kt]&Jt)==Jt?dr[kt]==0?(ht[kt*Ke]=0,ht[kt*Ke+1]=0,ht[kt*Ke+2]=0,ht[kt*Ke+3]=0):((dr[kt]&Jt)==Jt,ht[kt*Ke]=0,ht[kt*Ke+1]=0,ht[kt*Ke+2]=0,ht[kt*Ke+3]=255):(ht[kt*Ke]=0,ht[kt*Ke+1]=0,ht[kt*Ke+2]=0,ht[kt*Ke+3]=255)}else if(At==1){if(this._sock.rQwait("VMware cursor alpha encoding",Le*tt*4,2))return!1;ht=new Array(Le*tt*Ke);for(var $e=0;$e<Le*tt;$e++){var He=this._sock.rQshift32();ht[$e*4]=He>>24&255,ht[$e*4+1]=He>>16&255,ht[$e*4+2]=He>>8&255,ht[$e*4+3]=He&255}}else return p.Warn("The given cursor type is not supported: "+At+" given."),!1;return this._updateCursor(ht,de,me,Le,tt),!0}},{key:"_handleCursor",value:function(){var de=this._FBU.x,me=this._FBU.y,Le=this._FBU.width,tt=this._FBU.height,At=Le*tt*4,ht=Math.ceil(Le/8)*tt,Ke=At+ht;if(this._sock.rQwait("cursor encoding",Ke))return!1;for(var Jt=this._sock.rQshiftBytes(At),ct=this._sock.rQshiftBytes(ht),Gt=new Uint8Array(Le*tt*4),dr=0,zt=0;zt<tt;zt++)for(var kt=0;kt<Le;kt++){var Vt=zt*Math.ceil(Le/8)+Math.floor(kt/8),Xe=ct[Vt]<<kt%8&128?255:0;Gt[dr]=Jt[dr+2],Gt[dr+1]=Jt[dr+1],Gt[dr+2]=Jt[dr],Gt[dr+3]=Xe,dr+=4}return this._updateCursor(Gt,de,me,Le,tt),!0}},{key:"_handleDesktopName",value:function(){if(this._sock.rQwait("DesktopName",4))return!1;var de=this._sock.rQshift32();if(this._sock.rQwait("DesktopName",de,4))return!1;var me=this._sock.rQshiftStr(de);return me=(0,x.decodeUTF8)(me,!0),this._setDesktopName(me),!0}},{key:"_handleExtendedDesktopSize",value:function(){if(this._sock.rQwait("ExtendedDesktopSize",4))return!1;var de=this._sock.rQpeek8(),me=4+de*16;if(this._sock.rQwait("ExtendedDesktopSize",me))return!1;var Le=!this._supportsSetDesktopSize;this._supportsSetDesktopSize=!0,Le&&this._requestRemoteResize(),this._sock.rQskipBytes(1),this._sock.rQskipBytes(3);for(var tt=0;tt<de;tt+=1)tt===0?(this._screenID=this._sock.rQshiftBytes(4),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._screenFlags=this._sock.rQshiftBytes(4)):this._sock.rQskipBytes(16);if(this._FBU.x===1&&this._FBU.y!==0){var At="";switch(this._FBU.y){case 1:At="Resize is administratively prohibited";break;case 2:At="Out of resources";break;case 3:At="Invalid screen layout";break;default:At="Unknown reason";break}p.Warn("Server did not accept the resize request: "+At)}else this._resize(this._FBU.width,this._FBU.height);return!0}},{key:"_handleDataRect",value:function(){var de=this._decoders[this._FBU.encoding];if(!de)return this._fail("Unsupported encoding (encoding: "+this._FBU.encoding+")"),!1;try{return de.decodeRect(this._FBU.x,this._FBU.y,this._FBU.width,this._FBU.height,this._sock,this._display,this._fbDepth)}catch(me){return this._fail("Error decoding rect: "+me),!1}}},{key:"_updateContinuousUpdates",value:function(){if(!this._enabledContinuousUpdates)return;Ne.messages.enableContinuousUpdates(this._sock,!0,0,0,this._fbWidth,this._fbHeight)}},{key:"_resize",value:function(de,me){this._fbWidth=de,this._fbHeight=me,this._display.resize(this._fbWidth,this._fbHeight),this._updateClip(),this._updateScale(),this._updateContinuousUpdates()}},{key:"_xvpOp",value:function(de,me){if(this._rfbXvpVer<de)return;p.Info("Sending XVP operation "+me+" (version "+de+")"),Ne.messages.xvpOp(this._sock,de,me)}},{key:"_updateCursor",value:function(de,me,Le,tt,At){this._cursorImage={rgbaPixels:de,hotx:me,hoty:Le,w:tt,h:At},this._refreshCursor()}},{key:"_shouldShowDotCursor",value:function(){if(!this._showDotCursor)return!1;for(var de=3;de<this._cursorImage.rgbaPixels.length;de+=4)if(this._cursorImage.rgbaPixels[de])return!1;return!0}},{key:"_refreshCursor",value:function(){if(this._rfbConnectionState!=="connecting"&&this._rfbConnectionState!=="connected")return;var de=this._shouldShowDotCursor()?Ne.cursors.dot:this._cursorImage;this._cursor.change(de.rgbaPixels,de.hotx,de.hoty,de.w,de.h)}},{key:"viewOnly",get:function(){return this._viewOnly},set:function(de){this._viewOnly=de,(this._rfbConnectionState==="connecting"||this._rfbConnectionState==="connected")&&(de?this._keyboard.ungrab():this._keyboard.grab())}},{key:"capabilities",get:function(){return this._capabilities}},{key:"touchButton",get:function(){return 0},set:function(de){p.Warn("Using old API!")}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(de){this._clipViewport=de,this._updateClip()}},{key:"scaleViewport",get:function(){return this._scaleViewport},set:function(de){this._scaleViewport=de,de&&this._clipViewport&&this._updateClip(),this._updateScale(),!de&&this._clipViewport&&this._updateClip()}},{key:"resizeSession",get:function(){return this._resizeSession},set:function(de){this._resizeSession=de,de&&this._requestRemoteResize()}},{key:"showDotCursor",get:function(){return this._showDotCursor},set:function(de){this._showDotCursor=de,this._refreshCursor()}},{key:"background",get:function(){return this._screen.style.background},set:function(de){this._screen.style.background=de}},{key:"qualityLevel",get:function(){return this._qualityLevel},set:function(de){if(!Number.isInteger(de)||de<0||de>9){p.Error("qualityLevel must be an integer between 0 and 9");return}if(this._qualityLevel===de)return;this._qualityLevel=de,this._rfbConnectionState==="connected"&&this._sendEncodings()}},{key:"compressionLevel",get:function(){return this._compressionLevel},set:function(de){if(!Number.isInteger(de)||de<0||de>9){p.Error("compressionLevel must be an integer between 0 and 9");return}if(this._compressionLevel===de)return;this._compressionLevel=de,this._rfbConnectionState==="connected"&&this._sendEncodings()}}],[{key:"genDES",value:function(de,me){var Le=de.split("").map(function(tt){return tt.charCodeAt(0)});return new r.default(Le).encrypt(me)}}]),Ne}(h.default);D.default=$,$.messages={keyEvent:function(we,Ne,Ee){var de=we._sQ,me=we._sQlen;de[me]=4,de[me+1]=Ee,de[me+2]=0,de[me+3]=0,de[me+4]=Ne>>24,de[me+5]=Ne>>16,de[me+6]=Ne>>8,de[me+7]=Ne,we._sQlen+=8,we.flush()},QEMUExtendedKeyEvent:function(we,Ne,Ee,de){function me(ht){var Ke=de>>8,Jt=de&255;return Ke===224&&Jt<127?Jt|128:ht}var Le=we._sQ,tt=we._sQlen;Le[tt]=255,Le[tt+1]=0,Le[tt+2]=Ee>>8,Le[tt+3]=Ee,Le[tt+4]=Ne>>24,Le[tt+5]=Ne>>16,Le[tt+6]=Ne>>8,Le[tt+7]=Ne;var At=me(de);Le[tt+8]=At>>24,Le[tt+9]=At>>16,Le[tt+10]=At>>8,Le[tt+11]=At,we._sQlen+=12,we.flush()},pointerEvent:function(we,Ne,Ee,de){var me=we._sQ,Le=we._sQlen;me[Le]=5,me[Le+1]=de,me[Le+2]=Ne>>8,me[Le+3]=Ne,me[Le+4]=Ee>>8,me[Le+5]=Ee,we._sQlen+=6,we.flush()},_buildExtendedClipboardFlags:function(we,Ne){for(var Ee=new Uint8Array(4),de=0,me=0,Le=0;Le<we.length;Le++)me|=we[Le];for(var tt=0;tt<Ne.length;tt++)de|=Ne[tt];return Ee[0]=me>>24,Ee[1]=0,Ee[2]=0,Ee[3]=de,Ee},extendedClipboardProvide:function(we,Ne,Ee){for(var de=new i.default,me=[],Le=0;Le<Ne.length;Le++){if(Ne[Le]!=Re)throw new Error("Unsupported extended clipboard format for Provide message.");Ee[Le]=Ee[Le].replace(/\r\n|\r|\n/gm,`\r
|
|
|
`);var tt=(0,x.encodeUTF8)(Ee[Le]+"\0");me.push(tt.length>>24&255,tt.length>>16&255,tt.length>>8&255,tt.length&255);for(var At=0;At<tt.length;At++)me.push(tt.charCodeAt(At))}var ht=de.deflate(new Uint8Array(me)),Ke=new Uint8Array(4+ht.length);Ke.set($.messages._buildExtendedClipboardFlags([Y],Ne)),Ke.set(ht,4),$.messages.clientCutText(we,Ke,!0)},extendedClipboardNotify:function(we,Ne){var Ee=$.messages._buildExtendedClipboardFlags([J],Ne);$.messages.clientCutText(we,Ee,!0)},extendedClipboardRequest:function(we,Ne){var Ee=$.messages._buildExtendedClipboardFlags([st],Ne);$.messages.clientCutText(we,Ee,!0)},extendedClipboardCaps:function(we,Ne,Ee){var de=Object.keys(Ee),me=new Uint8Array(4+4*de.length);de.map(function(At){return parseInt(At)}),de.sort(function(At,ht){return At-ht}),me.set($.messages._buildExtendedClipboardFlags(Ne,[]));for(var Le=4,tt=0;tt<de.length;tt++)me[Le]=Ee[de[tt]]>>24,me[Le+1]=Ee[de[tt]]>>16,me[Le+2]=Ee[de[tt]]>>8,me[Le+3]=Ee[de[tt]]>>0,Le+=4,me[3]|=1<<de[tt];$.messages.clientCutText(we,me,!0)},clientCutText:function(we,Ne){var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,de=we._sQ,me=we._sQlen;de[me]=6,de[me+1]=0,de[me+2]=0,de[me+3]=0;var Le;Ee?Le=(0,y.toUnsigned32bit)(-Ne.length):Le=Ne.length,de[me+4]=Le>>24,de[me+5]=Le>>16,de[me+6]=Le>>8,de[me+7]=Le,we._sQlen+=8;for(var tt=0,At=Ne.length;At>0;){for(var ht=Math.min(At,we._sQbufferSize-we._sQlen),Ke=0;Ke<ht;Ke++)de[we._sQlen+Ke]=Ne[tt+Ke];we._sQlen+=ht,we.flush(),At-=ht,tt+=ht}},setDesktopSize:function(we,Ne,Ee,de,me){var Le=we._sQ,tt=we._sQlen;Le[tt]=251,Le[tt+1]=0,Le[tt+2]=Ne>>8,Le[tt+3]=Ne,Le[tt+4]=Ee>>8,Le[tt+5]=Ee,Le[tt+6]=1,Le[tt+7]=0,Le[tt+8]=de>>24,Le[tt+9]=de>>16,Le[tt+10]=de>>8,Le[tt+11]=de,Le[tt+12]=0,Le[tt+13]=0,Le[tt+14]=0,Le[tt+15]=0,Le[tt+16]=Ne>>8,Le[tt+17]=Ne,Le[tt+18]=Ee>>8,Le[tt+19]=Ee,Le[tt+20]=me>>24,Le[tt+21]=me>>16,Le[tt+22]=me>>8,Le[tt+23]=me,we._sQlen+=24,we.flush()},clientFence:function(we,Ne,Ee){var de=we._sQ,me=we._sQlen;de[me]=248,de[me+1]=0,de[me+2]=0,de[me+3]=0,de[me+4]=Ne>>24,de[me+5]=Ne>>16,de[me+6]=Ne>>8,de[me+7]=Ne;var Le=Ee.length;de[me+8]=Le;for(var tt=0;tt<Le;tt++)de[me+9+tt]=Ee.charCodeAt(tt);we._sQlen+=9+Le,we.flush()},enableContinuousUpdates:function(we,Ne,Ee,de,me,Le){var tt=we._sQ,At=we._sQlen;tt[At]=150,tt[At+1]=Ne,tt[At+2]=Ee>>8,tt[At+3]=Ee,tt[At+4]=de>>8,tt[At+5]=de,tt[At+6]=me>>8,tt[At+7]=me,tt[At+8]=Le>>8,tt[At+9]=Le,we._sQlen+=10,we.flush()},pixelFormat:function(we,Ne,Ee){var de=we._sQ,me=we._sQlen,Le;Ne>16?Le=32:Ne>8?Le=16:Le=8;var tt=Math.floor(Ne/3);de[me]=0,de[me+1]=0,de[me+2]=0,de[me+3]=0,de[me+4]=Le,de[me+5]=Ne,de[me+6]=0,de[me+7]=Ee?1:0,de[me+8]=0,de[me+9]=(1<<tt)-1,de[me+10]=0,de[me+11]=(1<<tt)-1,de[me+12]=0,de[me+13]=(1<<tt)-1,de[me+14]=tt*2,de[me+15]=tt*1,de[me+16]=tt*0,de[me+17]=0,de[me+18]=0,de[me+19]=0,we._sQlen+=20,we.flush()},clientEncodings:function(we,Ne){var Ee=we._sQ,de=we._sQlen;Ee[de]=2,Ee[de+1]=0,Ee[de+2]=Ne.length>>8,Ee[de+3]=Ne.length;for(var me=de+4,Le=0;Le<Ne.length;Le++){var tt=Ne[Le];Ee[me]=tt>>24,Ee[me+1]=tt>>16,Ee[me+2]=tt>>8,Ee[me+3]=tt,me+=4}we._sQlen+=me-de,we.flush()},fbUpdateRequest:function(we,Ne,Ee,de,me,Le){var tt=we._sQ,At=we._sQlen;typeof Ee=="undefined"&&(Ee=0),typeof de=="undefined"&&(de=0),tt[At]=3,tt[At+1]=Ne?1:0,tt[At+2]=Ee>>8&255,tt[At+3]=Ee&255,tt[At+4]=de>>8&255,tt[At+5]=de&255,tt[At+6]=me>>8&255,tt[At+7]=me&255,tt[At+8]=Le>>8&255,tt[At+9]=Le&255,we._sQlen+=10,we.flush()},xvpOp:function(we,Ne,Ee){var de=we._sQ,me=we._sQlen;de[me]=250,de[me+1]=0,de[me+2]=Ne,de[me+3]=Ee,we._sQlen+=4,we.flush()}},$.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(k,D,n){(function(y){y(n("VrN/"))})(function(y){"use strict";var p={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},x={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};y.defineMode("xml",function(A,m){var f=A.indentUnit,h={},u=m.htmlMode?p:x;for(var a in u)h[a]=u[a];for(var a in m)h[a]=m[a];var i,t;function o(I,R){function M(X){return R.tokenize=X,X(I,R)}var F=I.next();if(F=="<")return I.eat("!")?I.eat("[")?I.match("CDATA[")?M(r("atom","]]>")):null:I.match("--")?M(r("comment","-->")):I.match("DOCTYPE",!0,!0)?(I.eatWhile(/[\w\._\-]/),M(s(1))):null:I.eat("?")?(I.eatWhile(/[\w\._\-]/),R.tokenize=r("meta","?>"),"meta"):(i=I.eat("/")?"closeTag":"openTag",R.tokenize=e,"tag bracket");if(F=="&"){var P;return I.eat("#")?I.eat("x")?P=I.eatWhile(/[a-fA-F\d]/)&&I.eat(";"):P=I.eatWhile(/[\d]/)&&I.eat(";"):P=I.eatWhile(/[\w\.\-:]/)&&I.eat(";"),P?"atom":"error"}else return I.eatWhile(/[^&<]/),null}o.isInText=!0;function e(I,R){var M=I.next();if(M==">"||M=="/"&&I.eat(">"))return R.tokenize=o,i=M==">"?"endTag":"selfcloseTag","tag bracket";if(M=="=")return i="equals",null;if(M=="<"){R.tokenize=o,R.state=v,R.tagName=R.tagStart=null;var F=R.tokenize(I,R);return F?F+" tag error":"tag error"}else return/[\'\"]/.test(M)?(R.tokenize=l(M),R.stringStartCol=I.column(),R.tokenize(I,R)):(I.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function l(I){var R=function(F,P){for(;!F.eol();)if(F.next()==I){P.tokenize=e;break}return"string"};return R.isInAttribute=!0,R}function r(I,R){return function(M,F){for(;!M.eol();){if(M.match(R)){F.tokenize=o;break}M.next()}return I}}function s(I){return function(R,M){for(var F;(F=R.next())!=null;){if(F=="<")return M.tokenize=s(I+1),M.tokenize(R,M);if(F==">")if(I==1){M.tokenize=o;break}else return M.tokenize=s(I-1),M.tokenize(R,M)}return"meta"}}function c(I,R,M){this.prev=I.context,this.tagName=R,this.indent=I.indented,this.startOfLine=M,(h.doNotIndent.hasOwnProperty(R)||I.context&&I.context.noIndent)&&(this.noIndent=!0)}function d(I){I.context&&(I.context=I.context.prev)}function g(I,R){for(var M;;){if(!I.context)return;if(M=I.context.tagName,!h.contextGrabbers.hasOwnProperty(M)||!h.contextGrabbers[M].hasOwnProperty(R))return;d(I)}}function v(I,R,M){return I=="openTag"?(M.tagStart=R.column(),b):I=="closeTag"?S:v}function b(I,R,M){return I=="word"?(M.tagName=R.current(),t="tag",_):h.allowMissingTagName&&I=="endTag"?(t="tag bracket",_(I,R,M)):(t="error",b)}function S(I,R,M){if(I=="word"){var F=R.current();return M.context&&M.context.tagName!=F&&h.implicitlyClosed.hasOwnProperty(M.context.tagName)&&d(M),M.context&&M.context.tagName==F||h.matchClosing===!1?(t="tag",E):(t="tag error",C)}else return h.allowMissingTagName&&I=="endTag"?(t="tag bracket",E(I,R,M)):(t="error",C)}function E(I,R,M){return I!="endTag"?(t="error",E):(d(M),v)}function C(I,R,M){return t="error",E(I,R,M)}function _(I,R,M){if(I=="word")return t="attribute",T;if(I=="endTag"||I=="selfcloseTag"){var F=M.tagName,P=M.tagStart;return M.tagName=M.tagStart=null,I=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(F)?g(M,F):(g(M,F),M.context=new c(M,F,P==M.indented)),v}return t="error",_}function T(I,R,M){return I=="equals"?w:(h.allowMissing||(t="error"),_(I,R,M))}function w(I,R,M){return I=="string"?O:I=="word"&&h.allowUnquoted?(t="string",_):(t="error",_(I,R,M))}function O(I,R,M){return I=="string"?O:_(I,R,M)}return{startState:function(R){var M={tokenize:o,state:v,indented:R||0,tagName:null,tagStart:null,context:null};return R!=null&&(M.baseIndent=R),M},token:function(R,M){if(!M.tagName&&R.sol()&&(M.indented=R.indentation()),R.eatSpace())return null;i=null;var F=M.tokenize(R,M);return(F||i)&&F!="comment"&&(t=null,M.state=M.state(i||F,R,M),t&&(F=t=="error"?F+" error":t)),F},indent:function(R,M,F){var P=R.context;if(R.tokenize.isInAttribute)return R.tagStart==R.indented?R.stringStartCol+1:R.indented+f;if(P&&P.noIndent)return y.Pass;if(R.tokenize!=e&&R.tokenize!=o)return F?F.match(/^(\s*)/)[0].length:0;if(R.tagName)return h.multilineTagIndentPastTag!==!1?R.tagStart+R.tagName.length+2:R.tagStart+f*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(M))return 0;var X=M&&/^<(\/)?([\w_:\.-]*)/.exec(M);if(X&&X[1])for(;P;)if(P.tagName==X[2]){P=P.prev;break}else if(h.implicitlyClosed.hasOwnProperty(P.tagName))P=P.prev;else break;else if(X)for(;P;){var B=h.contextGrabbers[P.tagName];if(B&&B.hasOwnProperty(X[2]))P=P.prev;else break}for(;P&&P.prev&&!P.startOfLine;)P=P.prev;return P?P.indent+f:R.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(R){R.state==w&&(R.state=_)},xmlCurrentTag:function(R){return R.tagName?{name:R.tagName,close:R.type=="closeTag"}:null},xmlCurrentContext:function(R){for(var M=[],F=R.context;F;F=F.prev)F.tagName&&M.push(F.tagName);return M.reverse()}}}),y.defineMIME("text/xml","xml"),y.defineMIME("application/xml","xml"),y.mimeModes.hasOwnProperty("text/html")||y.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1hJj":function(k,D,n){var y=n("e4Nc"),p=n("ftKO"),x=n("3A9y");function A(m){var f=-1,h=m==null?0:m.length;for(this.__data__=new y;++f<h;)this.add(m[f])}A.prototype.add=A.prototype.push=p,A.prototype.has=x,k.exports=A},"1n7x":function(k,D,n){(function(y,p){/*!
|
|
|
* html2pdf.js v0.10.1
|
|
|
* Copyright (c) 2021 Erik Koopmans
|
|
|
* Released under the MIT License.
|
|
|
*/(function(A,m){k.exports=m(n("dtIV"),n("wOnQ"))})(self,function(x,A){return function(){var m={"./src/plugin/hyperlinks.js":function(i,t,o){"use strict";o.r(t);var e=o("./node_modules/core-js/modules/web.dom-collections.for-each.js"),l=o.n(e),r=o("./node_modules/core-js/modules/es.string.link.js"),s=o.n(r),c=o("./src/worker.js"),d=o("./src/utils.js"),g=[],v={toContainer:c.default.prototype.toContainer,toPdf:c.default.prototype.toPdf};c.default.prototype.toContainer=function(){return v.toContainer.call(this).then(function(){if(this.opt.enableLinks){var E=this.prop.container,C=E.querySelectorAll("a"),_=(0,d.unitConvert)(E.getBoundingClientRect(),this.prop.pageSize.k);g=[],Array.prototype.forEach.call(C,function(T){for(var w=T.getClientRects(),O=0;O<w.length;O++){var I=(0,d.unitConvert)(w[O],this.prop.pageSize.k);I.left-=_.left,I.top-=_.top;var R=Math.floor(I.top/this.prop.pageSize.inner.height)+1,M=this.opt.margin[0]+I.top%this.prop.pageSize.inner.height,F=this.opt.margin[1]+I.left;g.push({page:R,top:M,left:F,clientRect:I,link:T})}},this)}})},c.default.prototype.toPdf=function(){return v.toPdf.call(this).then(function(){if(this.opt.enableLinks){g.forEach(function(C){this.prop.pdf.setPage(C.page),this.prop.pdf.link(C.left,C.top,C.clientRect.width,C.clientRect.height,{url:C.link.href})},this);var E=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(E)}})}},"./src/plugin/jspdf-plugin.js":function(i,t,o){"use strict";o.r(t);var e=o("./node_modules/core-js/modules/es.symbol.js"),l=o.n(e),r=o("./node_modules/core-js/modules/es.symbol.description.js"),s=o.n(r),c=o("./node_modules/core-js/modules/es.object.to-string.js"),d=o.n(c),g=o("./node_modules/core-js/modules/es.symbol.iterator.js"),v=o.n(g),b=o("./node_modules/core-js/modules/es.array.iterator.js"),S=o.n(b),E=o("./node_modules/core-js/modules/es.string.iterator.js"),C=o.n(E),_=o("./node_modules/core-js/modules/web.dom-collections.iterator.js"),T=o.n(_),w=o("jspdf"),O=o.n(w);function I(R){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(F){return typeof F}:I=function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},I(R)}w.jsPDF.getPageSize=function(R,M,F){if(I(R)==="object"){var P=R;R=P.orientation,M=P.unit||M,F=P.format||F}M=M||"mm",F=F||"a4",R=(""+(R||"P")).toLowerCase();var X=(""+F).toLowerCase(),B={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(M){case"pt":var j=1;break;case"mm":var j=72/25.4;break;case"cm":var j=72/2.54;break;case"in":var j=72;break;case"px":var j=72/96;break;case"pc":var j=12;break;case"em":var j=12;break;case"ex":var j=6;break;default:throw"Invalid unit: "+M}if(B.hasOwnProperty(X))var W=B[X][1]/j,z=B[X][0]/j;else try{var W=F[1],z=F[0]}catch(G){throw new Error("Invalid format: "+F)}if(R==="p"||R==="portrait"){if(R="p",z>W){var V=z;z=W,W=V}}else if(R==="l"||R==="landscape"){if(R="l",W>z){var V=z;z=W,W=V}}else throw"Invalid orientation: "+R;var Q={width:z,height:W,unit:M,k:j};return Q},t.default=w.jsPDF},"./src/plugin/pagebreaks.js":function(i,t,o){"use strict";o.r(t);var e=o("./node_modules/core-js/modules/es.array.concat.js"),l=o.n(e),r=o("./node_modules/core-js/modules/es.array.slice.js"),s=o.n(r),c=o("./node_modules/core-js/modules/es.array.join.js"),d=o.n(c),g=o("./node_modules/core-js/modules/web.dom-collections.for-each.js"),v=o.n(g),b=o("./node_modules/core-js/modules/es.object.keys.js"),S=o.n(b),E=o("./src/worker.js"),C=o("./src/utils.js"),_={toContainer:E.default.prototype.toContainer};E.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},E.default.prototype.toContainer=function(){return _.toContainer.call(this).then(function(){var O=this.prop.container,I=this.prop.pageSize.inner.px.height,R=[].concat(this.opt.pagebreak.mode),M={avoidAll:R.indexOf("avoid-all")!==-1,css:R.indexOf("css")!==-1,legacy:R.indexOf("legacy")!==-1},F={},P=this;["before","after","avoid"].forEach(function(j){var W=M.avoidAll&&j==="avoid";F[j]=W?[]:[].concat(P.opt.pagebreak[j]||[]),F[j].length>0&&(F[j]=Array.prototype.slice.call(O.querySelectorAll(F[j].join(", "))))});var X=O.querySelectorAll(".html2pdf__page-break");X=Array.prototype.slice.call(X);var B=O.querySelectorAll("*");Array.prototype.forEach.call(B,function(W){var z={before:!1,after:M.legacy&&X.indexOf(W)!==-1,avoid:M.avoidAll};if(M.css){var V=window.getComputedStyle(W),Q=["always","page","left","right"],G=["avoid","avoid-page"];z={before:z.before||Q.indexOf(V.breakBefore||V.pageBreakBefore)!==-1,after:z.after||Q.indexOf(V.breakAfter||V.pageBreakAfter)!==-1,avoid:z.avoid||G.indexOf(V.breakInside||V.pageBreakInside)!==-1}}Object.keys(z).forEach(function(ke){z[ke]=z[ke]||F[ke].indexOf(W)!==-1});var ee=W.getBoundingClientRect();if(z.avoid&&!z.before){var ce=Math.floor(ee.top/I),be=Math.floor(ee.bottom/I),le=Math.abs(ee.bottom-ee.top)/I;be!==ce&&le<=1&&(z.before=!0)}if(z.before){var Ie=(0,C.createElement)("div",{style:{display:"block",height:I-ee.top%I+"px"}});W.parentNode.insertBefore(Ie,W)}if(z.after){var Ie=(0,C.createElement)("div",{style:{display:"block",height:I-ee.bottom%I+"px"}});W.parentNode.insertBefore(Ie,W.nextSibling)}})})}},"./src/utils.js":function(i,t,o){"use strict";o.r(t),o.d(t,{objType:function(){return R},createElement:function(){return M},cloneNode:function(){return F},unitConvert:function(){return P},toPx:function(){return X}});var e=o("./node_modules/core-js/modules/es.number.constructor.js"),l=o.n(e),r=o("./node_modules/core-js/modules/es.symbol.js"),s=o.n(r),c=o("./node_modules/core-js/modules/es.symbol.description.js"),d=o.n(c),g=o("./node_modules/core-js/modules/es.object.to-string.js"),v=o.n(g),b=o("./node_modules/core-js/modules/es.symbol.iterator.js"),S=o.n(b),E=o("./node_modules/core-js/modules/es.array.iterator.js"),C=o.n(E),_=o("./node_modules/core-js/modules/es.string.iterator.js"),T=o.n(_),w=o("./node_modules/core-js/modules/web.dom-collections.iterator.js"),O=o.n(w);function I(B){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(W){return typeof W}:I=function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},I(B)}var R=function(j){var W=I(j);return W==="undefined"?"undefined":W==="string"||j instanceof String?"string":W==="number"||j instanceof Number?"number":W==="function"||j instanceof Function?"function":!!j&&j.constructor===Array?"array":j&&j.nodeType===1?"element":W==="object"?"object":"unknown"},M=function(j,W){var z=document.createElement(j);if(W.className&&(z.className=W.className),W.innerHTML){z.innerHTML=W.innerHTML;for(var V=z.getElementsByTagName("script"),Q=V.length;Q-- >0;null)V[Q].parentNode.removeChild(V[Q])}for(var G in W.style)z.style[G]=W.style[G];return z},F=function B(j,W){for(var z=j.nodeType===3?document.createTextNode(j.nodeValue):j.cloneNode(!1),V=j.firstChild;V;V=V.nextSibling)(W===!0||V.nodeType!==1||V.nodeName!=="SCRIPT")&&z.appendChild(B(V,W));return j.nodeType===1&&(j.nodeName==="CANVAS"?(z.width=j.width,z.height=j.height,z.getContext("2d").drawImage(j,0,0)):(j.nodeName==="TEXTAREA"||j.nodeName==="SELECT")&&(z.value=j.value),z.addEventListener("load",function(){z.scrollTop=j.scrollTop,z.scrollLeft=j.scrollLeft},!0)),z},P=function(j,W){if(R(j)==="number")return j*72/96/W;var z={};for(var V in j)z[V]=j[V]*72/96/W;return z},X=function(j,W){return Math.floor(j*W/72*96)}},"./src/worker.js":function(i,t,o){"use strict";o.r(t);var e=o("./node_modules/core-js/modules/es.object.assign.js"),l=o.n(e),r=o("./node_modules/core-js/modules/es.array.map.js"),s=o.n(r),c=o("./node_modules/core-js/modules/es.object.keys.js"),d=o.n(c),g=o("./node_modules/core-js/modules/es.array.concat.js"),v=o.n(g),b=o("./node_modules/core-js/modules/es.object.to-string.js"),S=o.n(b),E=o("./node_modules/core-js/modules/es.regexp.to-string.js"),C=o.n(E),_=o("./node_modules/core-js/modules/es.function.name.js"),T=o.n(_),w=o("./node_modules/core-js/modules/web.dom-collections.for-each.js"),O=o.n(w),I=o("jspdf"),R=o.n(I),M=o("html2canvas"),F=o.n(M),P=o("./src/utils.js"),X=o("./node_modules/es6-promise/dist/es6-promise.js"),B=o.n(X),j=B().Promise,W=function z(V){var Q=Object.assign(z.convert(j.resolve()),JSON.parse(JSON.stringify(z.template))),G=z.convert(j.resolve(),Q);return G=G.setProgress(1,z,1,[z]),G=G.set(V),G};W.prototype=Object.create(j.prototype),W.prototype.constructor=W,W.convert=function(V,Q){return V.__proto__=Q||W.prototype,V},W.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},W.prototype.from=function(V,Q){function G(ee){switch((0,P.objType)(ee)){case"string":return"string";case"element":return ee.nodeName.toLowerCase==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){Q=Q||G(V);switch(Q){case"string":return this.set({src:(0,P.createElement)("div",{innerHTML:V})});case"element":return this.set({src:V});case"canvas":return this.set({canvas:V});case"img":return this.set({img:V});default:return this.error("Unknown source type.")}})},W.prototype.to=function(V){switch(V){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},W.prototype.toContainer=function(){var V=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(V).then(function(){var G={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},ee={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};G.opacity=0;var ce=(0,P.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,P.createElement)("div",{className:"html2pdf__overlay",style:G}),this.prop.container=(0,P.createElement)("div",{className:"html2pdf__container",style:ee}),this.prop.container.appendChild(ce),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},W.prototype.toCanvas=function(){var V=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(V).then(function(){var G=Object.assign({},this.opt.html2canvas);return delete G.onrendered,M(this.prop.container,G)}).then(function(G){var ee=this.opt.html2canvas.onrendered||function(){};ee(G),this.prop.canvas=G,document.body.removeChild(this.prop.overlay)})},W.prototype.toImg=function(){var V=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(V).then(function(){var G=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=G})},W.prototype.toPdf=function(){var V=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(V).then(function(){var G=this.prop.canvas,ee=this.opt,ce=G.height,be=Math.floor(G.width*this.prop.pageSize.inner.ratio),le=Math.ceil(ce/be),Ie=this.prop.pageSize.inner.height,ke=document.createElement("canvas"),Re=ke.getContext("2d");ke.width=G.width,ke.height=be,this.prop.pdf=this.prop.pdf||new I.jsPDF(ee.jsPDF);for(var Qe=0;Qe<le;Qe++){Qe===le-1&&ce%be!==0&&(ke.height=ce%be,Ie=ke.height*this.prop.pageSize.inner.width/ke.width);var We=ke.width,ot=ke.height;Re.fillStyle="white",Re.fillRect(0,0,We,ot),Re.drawImage(G,0,Qe*be,We,ot,0,0,We,ot),Qe&&this.prop.pdf.addPage();var Oe=ke.toDataURL("image/"+ee.image.type,ee.image.quality);this.prop.pdf.addImage(Oe,ee.image.type,ee.margin[1],ee.margin[0],this.prop.pageSize.inner.width,Ie)}})},W.prototype.output=function(V,Q,G){return G=G||"pdf",G.toLowerCase()==="img"||G.toLowerCase()==="image"?this.outputImg(V,Q):this.outputPdf(V,Q)},W.prototype.outputPdf=function(V,Q){var G=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(G).then(function(){return this.prop.pdf.output(V,Q)})},W.prototype.outputImg=function(V,Q){var G=[function(){return this.prop.img||this.toImg()}];return this.thenList(G).then(function(){switch(V){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+V+'" is not supported.'}})},W.prototype.save=function(V){var Q=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(Q).set(V?{filename:V}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},W.prototype.set=function(V){if((0,P.objType)(V)!=="object")return this;var Q=Object.keys(V||{}).map(function(G){switch(G){case"margin":return this.setMargin.bind(this,V.margin);case"jsPDF":return function(){return this.opt.jsPDF=V.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,V.pageSize);default:return G in W.template.prop?function(){this.prop[G]=V[G]}:function(){this.opt[G]=V[G]}}},this);return this.then(function(){return this.thenList(Q)})},W.prototype.get=function(V,Q){return this.then(function(){var ee=V in W.template.prop?this.prop[V]:this.opt[V];return Q?Q(ee):ee})},W.prototype.setMargin=function(V){return this.then(function(){switch((0,P.objType)(V)){case"number":V=[V,V,V,V];case"array":if(V.length===2&&(V=[V[0],V[1],V[0],V[1]]),V.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=V}).then(this.setPageSize)},W.prototype.setPageSize=function(V){return this.then(function(){V=V||I.jsPDF.getPageSize(this.opt.jsPDF),V.hasOwnProperty("inner")||(V.inner={width:V.width-this.opt.margin[1]-this.opt.margin[3],height:V.height-this.opt.margin[0]-this.opt.margin[2]},V.inner.px={width:(0,P.toPx)(V.inner.width,V.k),height:(0,P.toPx)(V.inner.height,V.k)},V.inner.ratio=V.inner.height/V.inner.width),this.prop.pageSize=V})},W.prototype.setProgress=function(V,Q,G,ee){return V!=null&&(this.progress.val=V),Q!=null&&(this.progress.state=Q),G!=null&&(this.progress.n=G),ee!=null&&(this.progress.stack=ee),this.progress.ratio=this.progress.val/this.progress.state,this},W.prototype.updateProgress=function(V,Q,G,ee){return this.setProgress(V?this.progress.val+V:null,Q||null,G?this.progress.n+G:null,ee?this.progress.stack.concat(ee):null)},W.prototype.then=function(V,Q){var G=this;return this.thenCore(V,Q,function(ce,be){return G.updateProgress(null,null,1,[ce]),j.prototype.then.call(this,function(Ie){return G.updateProgress(null,ce),Ie}).then(ce,be).then(function(Ie){return G.updateProgress(1),Ie})})},W.prototype.thenCore=function(V,Q,G){G=G||j.prototype.then;var ee=this;V&&(V=V.bind(ee)),Q&&(Q=Q.bind(ee));var ce=j.toString().indexOf("[native code]")!==-1&&j.name==="Promise",be=ce?ee:W.convert(Object.assign({},ee),j.prototype),le=G.call(be,V,Q);return W.convert(le,ee.__proto__)},W.prototype.thenExternal=function(V,Q){return j.prototype.then.call(this,V,Q)},W.prototype.thenList=function(V){var Q=this;return V.forEach(function(ee){Q=Q.thenCore(ee)}),Q},W.prototype.catch=function(z){z&&(z=z.bind(this));var V=j.prototype.catch.call(this,z);return W.convert(V,this)},W.prototype.catchExternal=function(V){return j.prototype.catch.call(this,V)},W.prototype.error=function(V){return this.then(function(){throw new Error(V)})},W.prototype.using=W.prototype.set,W.prototype.saveAs=W.prototype.save,W.prototype.export=W.prototype.output,W.prototype.run=W.prototype.then,t.default=W},"./node_modules/core-js/internals/a-function.js":function(i){i.exports=function(t){if(typeof t!="function")throw TypeError(String(t)+" is not a function");return t}},"./node_modules/core-js/internals/a-possible-prototype.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-object.js");i.exports=function(l){if(!e(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"./node_modules/core-js/internals/add-to-unscopables.js":function(i,t,o){var e=o("./node_modules/core-js/internals/well-known-symbol.js"),l=o("./node_modules/core-js/internals/object-create.js"),r=o("./node_modules/core-js/internals/object-define-property.js"),s=e("unscopables"),c=Array.prototype;c[s]==null&&r.f(c,s,{configurable:!0,value:l(null)}),i.exports=function(d){c[s][d]=!0}},"./node_modules/core-js/internals/an-object.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-object.js");i.exports=function(l){if(!e(l))throw TypeError(String(l)+" is not an object");return l}},"./node_modules/core-js/internals/array-for-each.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/array-iteration.js").forEach,l=o("./node_modules/core-js/internals/array-method-is-strict.js"),r=l("forEach");i.exports=r?[].forEach:function(c){return e(this,c,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-indexed-object.js"),l=o("./node_modules/core-js/internals/to-length.js"),r=o("./node_modules/core-js/internals/to-absolute-index.js"),s=function(d){return function(g,v,b){var S=e(g),E=l(S.length),C=r(b,E),_;if(d&&v!=v){for(;E>C;)if(_=S[C++],_!=_)return!0}else for(;E>C;C++)if((d||C in S)&&S[C]===v)return d||C||0;return!d&&-1}};i.exports={includes:s(!0),indexOf:s(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(i,t,o){var e=o("./node_modules/core-js/internals/function-bind-context.js"),l=o("./node_modules/core-js/internals/indexed-object.js"),r=o("./node_modules/core-js/internals/to-object.js"),s=o("./node_modules/core-js/internals/to-length.js"),c=o("./node_modules/core-js/internals/array-species-create.js"),d=[].push,g=function(b){var S=b==1,E=b==2,C=b==3,_=b==4,T=b==6,w=b==7,O=b==5||T;return function(I,R,M,F){for(var P=r(I),X=l(P),B=e(R,M,3),j=s(X.length),W=0,z=F||c,V=S?z(I,j):E||w?z(I,0):void 0,Q,G;j>W;W++)if((O||W in X)&&(Q=X[W],G=B(Q,W,P),b))if(S)V[W]=G;else if(G)switch(b){case 3:return!0;case 5:return Q;case 6:return W;case 2:d.call(V,Q)}else switch(b){case 4:return!1;case 7:d.call(V,Q)}return T?-1:C||_?_:V}};i.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterReject:g(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(i,t,o){var e=o("./node_modules/core-js/internals/fails.js"),l=o("./node_modules/core-js/internals/well-known-symbol.js"),r=o("./node_modules/core-js/internals/engine-v8-version.js"),s=l("species");i.exports=function(c){return r>=51||!e(function(){var d=[],g=d.constructor={};return g[s]=function(){return{foo:1}},d[c](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/fails.js");i.exports=function(l,r){var s=[][l];return!!s&&e(function(){s.call(null,r||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-object.js"),l=o("./node_modules/core-js/internals/is-array.js"),r=o("./node_modules/core-js/internals/well-known-symbol.js"),s=r("species");i.exports=function(c){var d;return l(c)&&(d=c.constructor,typeof d=="function"&&(d===Array||l(d.prototype))?d=void 0:e(d)&&(d=d[s],d===null&&(d=void 0))),d===void 0?Array:d}},"./node_modules/core-js/internals/array-species-create.js":function(i,t,o){var e=o("./node_modules/core-js/internals/array-species-constructor.js");i.exports=function(l,r){return new(e(l))(r===0?0:r)}},"./node_modules/core-js/internals/classof-raw.js":function(i){var t={}.toString;i.exports=function(o){return t.call(o).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-string-tag-support.js"),l=o("./node_modules/core-js/internals/classof-raw.js"),r=o("./node_modules/core-js/internals/well-known-symbol.js"),s=r("toStringTag"),c=l(function(){return arguments}())=="Arguments",d=function(v,b){try{return v[b]}catch(S){}};i.exports=e?l:function(g){var v,b,S;return g===void 0?"Undefined":g===null?"Null":typeof(b=d(v=Object(g),s))=="string"?b:c?l(v):(S=l(v))=="Object"&&typeof v.callee=="function"?"Arguments":S}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(i,t,o){var e=o("./node_modules/core-js/internals/has.js"),l=o("./node_modules/core-js/internals/own-keys.js"),r=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),s=o("./node_modules/core-js/internals/object-define-property.js");i.exports=function(c,d){for(var g=l(d),v=s.f,b=r.f,S=0;S<g.length;S++){var E=g[S];e(c,E)||v(c,E,b(d,E))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(i,t,o){var e=o("./node_modules/core-js/internals/fails.js");i.exports=!e(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},"./node_modules/core-js/internals/create-html.js":function(i,t,o){var e=o("./node_modules/core-js/internals/require-object-coercible.js"),l=o("./node_modules/core-js/internals/to-string.js"),r=/"/g;i.exports=function(s,c,d,g){var v=l(e(s)),b="<"+c;return d!==""&&(b+=" "+d+'="'+l(g).replace(r,""")+'"'),b+">"+v+"</"+c+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,l=o("./node_modules/core-js/internals/object-create.js"),r=o("./node_modules/core-js/internals/create-property-descriptor.js"),s=o("./node_modules/core-js/internals/set-to-string-tag.js"),c=o("./node_modules/core-js/internals/iterators.js"),d=function(){return this};i.exports=function(g,v,b){var S=v+" Iterator";return g.prototype=l(e,{next:r(1,b)}),s(g,S,!1,!0),c[S]=d,g}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(i,t,o){var e=o("./node_modules/core-js/internals/descriptors.js"),l=o("./node_modules/core-js/internals/object-define-property.js"),r=o("./node_modules/core-js/internals/create-property-descriptor.js");i.exports=e?function(s,c,d){return l.f(s,c,r(1,d))}:function(s,c,d){return s[c]=d,s}},"./node_modules/core-js/internals/create-property-descriptor.js":function(i){i.exports=function(t,o){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:o}}},"./node_modules/core-js/internals/create-property.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/to-property-key.js"),l=o("./node_modules/core-js/internals/object-define-property.js"),r=o("./node_modules/core-js/internals/create-property-descriptor.js");i.exports=function(s,c,d){var g=e(c);g in s?l.f(s,g,r(0,d)):s[g]=d}},"./node_modules/core-js/internals/define-iterator.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/create-iterator-constructor.js"),r=o("./node_modules/core-js/internals/object-get-prototype-of.js"),s=o("./node_modules/core-js/internals/object-set-prototype-of.js"),c=o("./node_modules/core-js/internals/set-to-string-tag.js"),d=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),g=o("./node_modules/core-js/internals/redefine.js"),v=o("./node_modules/core-js/internals/well-known-symbol.js"),b=o("./node_modules/core-js/internals/is-pure.js"),S=o("./node_modules/core-js/internals/iterators.js"),E=o("./node_modules/core-js/internals/iterators-core.js"),C=E.IteratorPrototype,_=E.BUGGY_SAFARI_ITERATORS,T=v("iterator"),w="keys",O="values",I="entries",R=function(){return this};i.exports=function(M,F,P,X,B,j,W){l(P,F,X);var z=function(Qe){if(Qe===B&&ce)return ce;if(!_&&Qe in G)return G[Qe];switch(Qe){case w:return function(){return new P(this,Qe)};case O:return function(){return new P(this,Qe)};case I:return function(){return new P(this,Qe)}}return function(){return new P(this)}},V=F+" Iterator",Q=!1,G=M.prototype,ee=G[T]||G["@@iterator"]||B&&G[B],ce=!_&&ee||z(B),be=F=="Array"&&G.entries||ee,le,Ie,ke;if(be&&(le=r(be.call(new M)),C!==Object.prototype&&le.next&&(!b&&r(le)!==C&&(s?s(le,C):typeof le[T]!="function"&&d(le,T,R)),c(le,V,!0,!0),b&&(S[V]=R))),B==O&&ee&&ee.name!==O&&(Q=!0,ce=function(){return ee.call(this)}),(!b||W)&&G[T]!==ce&&d(G,T,ce),S[F]=ce,B)if(Ie={values:z(O),keys:j?ce:z(w),entries:z(I)},W)for(ke in Ie)(_||Q||!(ke in G))&&g(G,ke,Ie[ke]);else e({target:F,proto:!0,forced:_||Q},Ie);return Ie}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(i,t,o){var e=o("./node_modules/core-js/internals/path.js"),l=o("./node_modules/core-js/internals/has.js"),r=o("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),s=o("./node_modules/core-js/internals/object-define-property.js").f;i.exports=function(c){var d=e.Symbol||(e.Symbol={});l(d,c)||s(d,c,{value:r.f(c)})}},"./node_modules/core-js/internals/descriptors.js":function(i,t,o){var e=o("./node_modules/core-js/internals/fails.js");i.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=o("./node_modules/core-js/internals/is-object.js"),r=e.document,s=l(r)&&l(r.createElement);i.exports=function(c){return s?r.createElement(c):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(i){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/engine-user-agent.js":function(i,t,o){var e=o("./node_modules/core-js/internals/get-built-in.js");i.exports=e("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=o("./node_modules/core-js/internals/engine-user-agent.js"),r=e.process,s=e.Deno,c=r&&r.versions||s&&s.version,d=c&&c.v8,g,v;d?(g=d.split("."),v=g[0]<4?1:g[0]+g[1]):l&&(g=l.match(/Edge\/(\d+)/),(!g||g[1]>=74)&&(g=l.match(/Chrome\/(\d+)/),g&&(v=g[1]))),i.exports=v&&+v},"./node_modules/core-js/internals/enum-bug-keys.js":function(i){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,r=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),s=o("./node_modules/core-js/internals/redefine.js"),c=o("./node_modules/core-js/internals/set-global.js"),d=o("./node_modules/core-js/internals/copy-constructor-properties.js"),g=o("./node_modules/core-js/internals/is-forced.js");i.exports=function(v,b){var S=v.target,E=v.global,C=v.stat,_,T,w,O,I,R;if(E?T=e:C?T=e[S]||c(S,{}):T=(e[S]||{}).prototype,T)for(w in b){if(I=b[w],v.noTargetGet?(R=l(T,w),O=R&&R.value):O=T[w],_=g(E?w:S+(C?".":"#")+w,v.forced),!_&&O!==void 0){if(typeof I===typeof O)continue;d(I,O)}(v.sham||O&&O.sham)&&r(I,"sham",!0),s(T,w,I,v)}}},"./node_modules/core-js/internals/fails.js":function(i){i.exports=function(t){try{return!!t()}catch(o){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(i,t,o){var e=o("./node_modules/core-js/internals/a-function.js");i.exports=function(l,r,s){if(e(l),r===void 0)return l;switch(s){case 0:return function(){return l.call(r)};case 1:return function(c){return l.call(r,c)};case 2:return function(c,d){return l.call(r,c,d)};case 3:return function(c,d,g){return l.call(r,c,d,g)}}return function(){return l.apply(r,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=function(s){return typeof s=="function"?s:void 0};i.exports=function(r,s){return arguments.length<2?l(e[r]):e[r]&&e[r][s]}},"./node_modules/core-js/internals/global.js":function(i){var t=function(e){return e&&e.Math==Math&&e};i.exports=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof y=="object"&&y)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-object.js"),l={}.hasOwnProperty;i.exports=Object.hasOwn||function(s,c){return l.call(e(s),c)}},"./node_modules/core-js/internals/hidden-keys.js":function(i){i.exports={}},"./node_modules/core-js/internals/html.js":function(i,t,o){var e=o("./node_modules/core-js/internals/get-built-in.js");i.exports=e("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(i,t,o){var e=o("./node_modules/core-js/internals/descriptors.js"),l=o("./node_modules/core-js/internals/fails.js"),r=o("./node_modules/core-js/internals/document-create-element.js");i.exports=!e&&!l(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(i,t,o){var e=o("./node_modules/core-js/internals/fails.js"),l=o("./node_modules/core-js/internals/classof-raw.js"),r="".split;i.exports=e(function(){return!Object("z").propertyIsEnumerable(0)})?function(s){return l(s)=="String"?r.call(s,""):Object(s)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-object.js"),l=o("./node_modules/core-js/internals/object-set-prototype-of.js");i.exports=function(r,s,c){var d,g;return l&&typeof(d=s.constructor)=="function"&&d!==c&&e(g=d.prototype)&&g!==c.prototype&&l(r,g),r}},"./node_modules/core-js/internals/inspect-source.js":function(i,t,o){var e=o("./node_modules/core-js/internals/shared-store.js"),l=Function.toString;typeof e.inspectSource!="function"&&(e.inspectSource=function(r){return l.call(r)}),i.exports=e.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(i,t,o){var e=o("./node_modules/core-js/internals/native-weak-map.js"),l=o("./node_modules/core-js/internals/global.js"),r=o("./node_modules/core-js/internals/is-object.js"),s=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),c=o("./node_modules/core-js/internals/has.js"),d=o("./node_modules/core-js/internals/shared-store.js"),g=o("./node_modules/core-js/internals/shared-key.js"),v=o("./node_modules/core-js/internals/hidden-keys.js"),b="Object already initialized",S=l.WeakMap,E,C,_,T=function(X){return _(X)?C(X):E(X,{})},w=function(X){return function(B){var j;if(!r(B)||(j=C(B)).type!==X)throw TypeError("Incompatible receiver, "+X+" required");return j}};if(e||d.state){var O=d.state||(d.state=new S),I=O.get,R=O.has,M=O.set;E=function(X,B){if(R.call(O,X))throw new TypeError(b);return B.facade=X,M.call(O,X,B),B},C=function(X){return I.call(O,X)||{}},_=function(X){return R.call(O,X)}}else{var F=g("state");v[F]=!0,E=function(X,B){if(c(X,F))throw new TypeError(b);return B.facade=X,s(X,F,B),B},C=function(X){return c(X,F)?X[F]:{}},_=function(X){return c(X,F)}}i.exports={set:E,get:C,has:_,enforce:T,getterFor:w}},"./node_modules/core-js/internals/is-array.js":function(i,t,o){var e=o("./node_modules/core-js/internals/classof-raw.js");i.exports=Array.isArray||function(r){return e(r)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(i,t,o){var e=o("./node_modules/core-js/internals/fails.js"),l=/#|\.prototype\./,r=function(b,S){var E=c[s(b)];return E==g?!0:E==d?!1:typeof S=="function"?e(S):!!S},s=r.normalize=function(v){return String(v).replace(l,".").toLowerCase()},c=r.data={},d=r.NATIVE="N",g=r.POLYFILL="P";i.exports=r},"./node_modules/core-js/internals/is-object.js":function(i){i.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}},"./node_modules/core-js/internals/is-pure.js":function(i){i.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(i,t,o){var e=o("./node_modules/core-js/internals/get-built-in.js"),l=o("./node_modules/core-js/internals/use-symbol-as-uid.js");i.exports=l?function(r){return typeof r=="symbol"}:function(r){var s=e("Symbol");return typeof s=="function"&&Object(r)instanceof s}},"./node_modules/core-js/internals/iterators-core.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/fails.js"),l=o("./node_modules/core-js/internals/object-get-prototype-of.js"),r=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),s=o("./node_modules/core-js/internals/has.js"),c=o("./node_modules/core-js/internals/well-known-symbol.js"),d=o("./node_modules/core-js/internals/is-pure.js"),g=c("iterator"),v=!1,b=function(){return this},S,E,C;[].keys&&(C=[].keys(),"next"in C?(E=l(l(C)),E!==Object.prototype&&(S=E)):v=!0);var _=S==null||e(function(){var T={};return S[g].call(T)!==T});_&&(S={}),(!d||_)&&!s(S,g)&&r(S,g,b),i.exports={IteratorPrototype:S,BUGGY_SAFARI_ITERATORS:v}},"./node_modules/core-js/internals/iterators.js":function(i){i.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(i,t,o){var e=o("./node_modules/core-js/internals/engine-v8-version.js"),l=o("./node_modules/core-js/internals/fails.js");i.exports=!!Object.getOwnPropertySymbols&&!l(function(){var r=Symbol();return!String(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&e&&e<41})},"./node_modules/core-js/internals/native-weak-map.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=o("./node_modules/core-js/internals/inspect-source.js"),r=e.WeakMap;i.exports=typeof r=="function"&&/native code/.test(l(r))},"./node_modules/core-js/internals/object-assign.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/descriptors.js"),l=o("./node_modules/core-js/internals/fails.js"),r=o("./node_modules/core-js/internals/object-keys.js"),s=o("./node_modules/core-js/internals/object-get-own-property-symbols.js"),c=o("./node_modules/core-js/internals/object-property-is-enumerable.js"),d=o("./node_modules/core-js/internals/to-object.js"),g=o("./node_modules/core-js/internals/indexed-object.js"),v=Object.assign,b=Object.defineProperty;i.exports=!v||l(function(){if(e&&v({b:1},v(b({},"a",{enumerable:!0,get:function(){b(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var S={},E={},C=Symbol(),_="abcdefghijklmnopqrst";return S[C]=7,_.split("").forEach(function(T){E[T]=T}),v({},S)[C]!=7||r(v({},E)).join("")!=_})?function(E,C){for(var _=d(E),T=arguments.length,w=1,O=s.f,I=c.f;T>w;)for(var R=g(arguments[w++]),M=O?r(R).concat(O(R)):r(R),F=M.length,P=0,X;F>P;)X=M[P++],(!e||I.call(R,X))&&(_[X]=R[X]);return _}:v},"./node_modules/core-js/internals/object-create.js":function(i,t,o){var e=o("./node_modules/core-js/internals/an-object.js"),l=o("./node_modules/core-js/internals/object-define-properties.js"),r=o("./node_modules/core-js/internals/enum-bug-keys.js"),s=o("./node_modules/core-js/internals/hidden-keys.js"),c=o("./node_modules/core-js/internals/html.js"),d=o("./node_modules/core-js/internals/document-create-element.js"),g=o("./node_modules/core-js/internals/shared-key.js"),v=">",b="<",S="prototype",E="script",C=g("IE_PROTO"),_=function(){},T=function(F){return b+E+v+F+b+"/"+E+v},w=function(F){F.write(T("")),F.close();var P=F.parentWindow.Object;return F=null,P},O=function(){var F=d("iframe"),P="java"+E+":",X;if(F.style)return F.style.display="none",c.appendChild(F),F.src=String(P),X=F.contentWindow.document,X.open(),X.write(T("document.F=Object")),X.close(),X.F},I,R=function(){try{I=new ActiveXObject("htmlfile")}catch(P){}R=document.domain&&I?w(I):O()||w(I);for(var F=r.length;F--;)delete R[S][r[F]];return R()};s[C]=!0,i.exports=Object.create||function(F,P){var X;return F!==null?(_[S]=e(F),X=new _,_[S]=null,X[C]=F):X=R(),P===void 0?X:l(X,P)}},"./node_modules/core-js/internals/object-define-properties.js":function(i,t,o){var e=o("./node_modules/core-js/internals/descriptors.js"),l=o("./node_modules/core-js/internals/object-define-property.js"),r=o("./node_modules/core-js/internals/an-object.js"),s=o("./node_modules/core-js/internals/object-keys.js");i.exports=e?Object.defineProperties:function(d,g){r(d);for(var v=s(g),b=v.length,S=0,E;b>S;)l.f(d,E=v[S++],g[E]);return d}},"./node_modules/core-js/internals/object-define-property.js":function(i,t,o){var e=o("./node_modules/core-js/internals/descriptors.js"),l=o("./node_modules/core-js/internals/ie8-dom-define.js"),r=o("./node_modules/core-js/internals/an-object.js"),s=o("./node_modules/core-js/internals/to-property-key.js"),c=Object.defineProperty;t.f=e?c:function(g,v,b){if(r(g),v=s(v),r(b),l)try{return c(g,v,b)}catch(S){}if("get"in b||"set"in b)throw TypeError("Accessors not supported");return"value"in b&&(g[v]=b.value),g}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(i,t,o){var e=o("./node_modules/core-js/internals/descriptors.js"),l=o("./node_modules/core-js/internals/object-property-is-enumerable.js"),r=o("./node_modules/core-js/internals/create-property-descriptor.js"),s=o("./node_modules/core-js/internals/to-indexed-object.js"),c=o("./node_modules/core-js/internals/to-property-key.js"),d=o("./node_modules/core-js/internals/has.js"),g=o("./node_modules/core-js/internals/ie8-dom-define.js"),v=Object.getOwnPropertyDescriptor;t.f=e?v:function(S,E){if(S=s(S),E=c(E),g)try{return v(S,E)}catch(C){}if(d(S,E))return r(!l.f.call(S,E),S[E])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-indexed-object.js"),l=o("./node_modules/core-js/internals/object-get-own-property-names.js").f,r={}.toString,s=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(g){try{return l(g)}catch(v){return s.slice()}};i.exports.f=function(g){return s&&r.call(g)=="[object Window]"?c(g):l(e(g))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(i,t,o){var e=o("./node_modules/core-js/internals/object-keys-internal.js"),l=o("./node_modules/core-js/internals/enum-bug-keys.js"),r=l.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(c){return e(c,r)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(i,t){t.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(i,t,o){var e=o("./node_modules/core-js/internals/has.js"),l=o("./node_modules/core-js/internals/to-object.js"),r=o("./node_modules/core-js/internals/shared-key.js"),s=o("./node_modules/core-js/internals/correct-prototype-getter.js"),c=r("IE_PROTO"),d=Object.prototype;i.exports=s?Object.getPrototypeOf:function(g){return g=l(g),e(g,c)?g[c]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?d:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(i,t,o){var e=o("./node_modules/core-js/internals/has.js"),l=o("./node_modules/core-js/internals/to-indexed-object.js"),r=o("./node_modules/core-js/internals/array-includes.js").indexOf,s=o("./node_modules/core-js/internals/hidden-keys.js");i.exports=function(c,d){var g=l(c),v=0,b=[],S;for(S in g)!e(s,S)&&e(g,S)&&b.push(S);for(;d.length>v;)e(g,S=d[v++])&&(~r(b,S)||b.push(S));return b}},"./node_modules/core-js/internals/object-keys.js":function(i,t,o){var e=o("./node_modules/core-js/internals/object-keys-internal.js"),l=o("./node_modules/core-js/internals/enum-bug-keys.js");i.exports=Object.keys||function(s){return e(s,l)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(i,t){"use strict";var o={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,l=e&&!o.call({1:2},1);t.f=l?function(s){var c=e(this,s);return!!c&&c.enumerable}:o},"./node_modules/core-js/internals/object-set-prototype-of.js":function(i,t,o){var e=o("./node_modules/core-js/internals/an-object.js"),l=o("./node_modules/core-js/internals/a-possible-prototype.js");i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r=!1,s={},c;try{c=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,c.call(s,[]),r=s instanceof Array}catch(d){}return function(g,v){return e(g),l(v),r?c.call(g,v):g.__proto__=v,g}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/to-string-tag-support.js"),l=o("./node_modules/core-js/internals/classof.js");i.exports=e?{}.toString:function(){return"[object "+l(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-object.js");i.exports=function(l,r){var s,c;if(r==="string"&&typeof(s=l.toString)=="function"&&!e(c=s.call(l)))return c;if(typeof(s=l.valueOf)=="function"&&!e(c=s.call(l)))return c;if(r!=="string"&&typeof(s=l.toString)=="function"&&!e(c=s.call(l)))return c;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(i,t,o){var e=o("./node_modules/core-js/internals/get-built-in.js"),l=o("./node_modules/core-js/internals/object-get-own-property-names.js"),r=o("./node_modules/core-js/internals/object-get-own-property-symbols.js"),s=o("./node_modules/core-js/internals/an-object.js");i.exports=e("Reflect","ownKeys")||function(d){var g=l.f(s(d)),v=r.f;return v?g.concat(v(d)):g}},"./node_modules/core-js/internals/path.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js");i.exports=e},"./node_modules/core-js/internals/redefine.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),r=o("./node_modules/core-js/internals/has.js"),s=o("./node_modules/core-js/internals/set-global.js"),c=o("./node_modules/core-js/internals/inspect-source.js"),d=o("./node_modules/core-js/internals/internal-state.js"),g=d.get,v=d.enforce,b=String(String).split("String");(i.exports=function(S,E,C,_){var T=_?!!_.unsafe:!1,w=_?!!_.enumerable:!1,O=_?!!_.noTargetGet:!1,I;if(typeof C=="function"&&(typeof E=="string"&&!r(C,"name")&&l(C,"name",E),I=v(C),I.source||(I.source=b.join(typeof E=="string"?E:""))),S===e){w?S[E]=C:s(E,C);return}else T?!O&&S[E]&&(w=!0):delete S[E];w?S[E]=C:l(S,E,C)})(Function.prototype,"toString",function(){return typeof this=="function"&&g(this).source||c(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/an-object.js");i.exports=function(){var l=e(this),r="";return l.global&&(r+="g"),l.ignoreCase&&(r+="i"),l.multiline&&(r+="m"),l.dotAll&&(r+="s"),l.unicode&&(r+="u"),l.sticky&&(r+="y"),r}},"./node_modules/core-js/internals/require-object-coercible.js":function(i){i.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},"./node_modules/core-js/internals/set-global.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js");i.exports=function(l,r){try{Object.defineProperty(e,l,{value:r,configurable:!0,writable:!0})}catch(s){e[l]=r}return r}},"./node_modules/core-js/internals/set-to-string-tag.js":function(i,t,o){var e=o("./node_modules/core-js/internals/object-define-property.js").f,l=o("./node_modules/core-js/internals/has.js"),r=o("./node_modules/core-js/internals/well-known-symbol.js"),s=r("toStringTag");i.exports=function(c,d,g){c&&!l(c=g?c:c.prototype,s)&&e(c,s,{configurable:!0,value:d})}},"./node_modules/core-js/internals/shared-key.js":function(i,t,o){var e=o("./node_modules/core-js/internals/shared.js"),l=o("./node_modules/core-js/internals/uid.js"),r=e("keys");i.exports=function(s){return r[s]||(r[s]=l(s))}},"./node_modules/core-js/internals/shared-store.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=o("./node_modules/core-js/internals/set-global.js"),r="__core-js_shared__",s=e[r]||l(r,{});i.exports=s},"./node_modules/core-js/internals/shared.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-pure.js"),l=o("./node_modules/core-js/internals/shared-store.js");(i.exports=function(r,s){return l[r]||(l[r]=s!==void 0?s:{})})("versions",[]).push({version:"3.16.0",mode:e?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(i,t,o){var e=o("./node_modules/core-js/internals/fails.js");i.exports=function(l){return e(function(){var r=""[l]('"');return r!==r.toLowerCase()||r.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-integer.js"),l=o("./node_modules/core-js/internals/to-string.js"),r=o("./node_modules/core-js/internals/require-object-coercible.js"),s=function(d){return function(g,v){var b=l(r(g)),S=e(v),E=b.length,C,_;return S<0||S>=E?d?"":void 0:(C=b.charCodeAt(S),C<55296||C>56319||S+1===E||(_=b.charCodeAt(S+1))<56320||_>57343?d?b.charAt(S):C:d?b.slice(S,S+2):(C-55296<<10)+(_-56320)+65536)}};i.exports={codeAt:s(!1),charAt:s(!0)}},"./node_modules/core-js/internals/string-trim.js":function(i,t,o){var e=o("./node_modules/core-js/internals/require-object-coercible.js"),l=o("./node_modules/core-js/internals/to-string.js"),r=o("./node_modules/core-js/internals/whitespaces.js"),s="["+r+"]",c=RegExp("^"+s+s+"*"),d=RegExp(s+s+"*$"),g=function(b){return function(S){var E=l(e(S));return b&1&&(E=E.replace(c,"")),b&2&&(E=E.replace(d,"")),E}};i.exports={start:g(1),end:g(2),trim:g(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-integer.js"),l=Math.max,r=Math.min;i.exports=function(s,c){var d=e(s);return d<0?l(d+c,0):r(d,c)}},"./node_modules/core-js/internals/to-indexed-object.js":function(i,t,o){var e=o("./node_modules/core-js/internals/indexed-object.js"),l=o("./node_modules/core-js/internals/require-object-coercible.js");i.exports=function(r){return e(l(r))}},"./node_modules/core-js/internals/to-integer.js":function(i){var t=Math.ceil,o=Math.floor;i.exports=function(e){return isNaN(e=+e)?0:(e>0?o:t)(e)}},"./node_modules/core-js/internals/to-length.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-integer.js"),l=Math.min;i.exports=function(r){return r>0?l(e(r),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(i,t,o){var e=o("./node_modules/core-js/internals/require-object-coercible.js");i.exports=function(l){return Object(e(l))}},"./node_modules/core-js/internals/to-primitive.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-object.js"),l=o("./node_modules/core-js/internals/is-symbol.js"),r=o("./node_modules/core-js/internals/ordinary-to-primitive.js"),s=o("./node_modules/core-js/internals/well-known-symbol.js"),c=s("toPrimitive");i.exports=function(d,g){if(!e(d)||l(d))return d;var v=d[c],b;if(v!==void 0){if(g===void 0&&(g="default"),b=v.call(d,g),!e(b)||l(b))return b;throw TypeError("Can't convert object to primitive value")}return g===void 0&&(g="number"),r(d,g)}},"./node_modules/core-js/internals/to-property-key.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-primitive.js"),l=o("./node_modules/core-js/internals/is-symbol.js");i.exports=function(r){var s=e(r,"string");return l(s)?s:String(s)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(i,t,o){var e=o("./node_modules/core-js/internals/well-known-symbol.js"),l=e("toStringTag"),r={};r[l]="z",i.exports=String(r)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-symbol.js");i.exports=function(l){if(e(l))throw TypeError("Cannot convert a Symbol value to a string");return String(l)}},"./node_modules/core-js/internals/uid.js":function(i){var t=0,o=Math.random();i.exports=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++t+o).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(i,t,o){var e=o("./node_modules/core-js/internals/native-symbol.js");i.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(i,t,o){var e=o("./node_modules/core-js/internals/well-known-symbol.js");t.f=e},"./node_modules/core-js/internals/well-known-symbol.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=o("./node_modules/core-js/internals/shared.js"),r=o("./node_modules/core-js/internals/has.js"),s=o("./node_modules/core-js/internals/uid.js"),c=o("./node_modules/core-js/internals/native-symbol.js"),d=o("./node_modules/core-js/internals/use-symbol-as-uid.js"),g=l("wks"),v=e.Symbol,b=d?v:v&&v.withoutSetter||s;i.exports=function(S){return(!r(g,S)||!(c||typeof g[S]=="string"))&&(c&&r(v,S)?g[S]=v[S]:g[S]=b("Symbol."+S)),g[S]}},"./node_modules/core-js/internals/whitespaces.js":function(i){i.exports=`
|
|
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},"./node_modules/core-js/modules/es.array.concat.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/fails.js"),r=o("./node_modules/core-js/internals/is-array.js"),s=o("./node_modules/core-js/internals/is-object.js"),c=o("./node_modules/core-js/internals/to-object.js"),d=o("./node_modules/core-js/internals/to-length.js"),g=o("./node_modules/core-js/internals/create-property.js"),v=o("./node_modules/core-js/internals/array-species-create.js"),b=o("./node_modules/core-js/internals/array-method-has-species-support.js"),S=o("./node_modules/core-js/internals/well-known-symbol.js"),E=o("./node_modules/core-js/internals/engine-v8-version.js"),C=S("isConcatSpreadable"),_=9007199254740991,T="Maximum allowed index exceeded",w=E>=51||!l(function(){var M=[];return M[C]=!1,M.concat()[0]!==M}),O=b("concat"),I=function(F){if(!s(F))return!1;var P=F[C];return P!==void 0?!!P:r(F)},R=!w||!O;e({target:"Array",proto:!0,forced:R},{concat:function(F){var P=c(this),X=v(P,0),B=0,j,W,z,V,Q;for(j=-1,z=arguments.length;j<z;j++)if(Q=j===-1?P:arguments[j],I(Q)){if(V=d(Q.length),B+V>_)throw TypeError(T);for(W=0;W<V;W++,B++)W in Q&&g(X,B,Q[W])}else{if(B>=_)throw TypeError(T);g(X,B++,Q)}return X.length=B,X}})},"./node_modules/core-js/modules/es.array.iterator.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/to-indexed-object.js"),l=o("./node_modules/core-js/internals/add-to-unscopables.js"),r=o("./node_modules/core-js/internals/iterators.js"),s=o("./node_modules/core-js/internals/internal-state.js"),c=o("./node_modules/core-js/internals/define-iterator.js"),d="Array Iterator",g=s.set,v=s.getterFor(d);i.exports=c(Array,"Array",function(b,S){g(this,{type:d,target:e(b),index:0,kind:S})},function(){var b=v(this),S=b.target,E=b.kind,C=b.index++;return!S||C>=S.length?(b.target=void 0,{value:void 0,done:!0}):E=="keys"?{value:C,done:!1}:E=="values"?{value:S[C],done:!1}:{value:[C,S[C]],done:!1}},"values"),r.Arguments=r.Array,l("keys"),l("values"),l("entries")},"./node_modules/core-js/modules/es.array.join.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/indexed-object.js"),r=o("./node_modules/core-js/internals/to-indexed-object.js"),s=o("./node_modules/core-js/internals/array-method-is-strict.js"),c=[].join,d=l!=Object,g=s("join",",");e({target:"Array",proto:!0,forced:d||!g},{join:function(b){return c.call(r(this),b===void 0?",":b)}})},"./node_modules/core-js/modules/es.array.map.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/array-iteration.js").map,r=o("./node_modules/core-js/internals/array-method-has-species-support.js"),s=r("map");e({target:"Array",proto:!0,forced:!s},{map:function(d){return l(this,d,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/is-object.js"),r=o("./node_modules/core-js/internals/is-array.js"),s=o("./node_modules/core-js/internals/to-absolute-index.js"),c=o("./node_modules/core-js/internals/to-length.js"),d=o("./node_modules/core-js/internals/to-indexed-object.js"),g=o("./node_modules/core-js/internals/create-property.js"),v=o("./node_modules/core-js/internals/well-known-symbol.js"),b=o("./node_modules/core-js/internals/array-method-has-species-support.js"),S=b("slice"),E=v("species"),C=[].slice,_=Math.max;e({target:"Array",proto:!0,forced:!S},{slice:function(w,O){var I=d(this),R=c(I.length),M=s(w,R),F=s(O===void 0?R:O,R),P,X,B;if(r(I)&&(P=I.constructor,typeof P=="function"&&(P===Array||r(P.prototype))?P=void 0:l(P)&&(P=P[E],P===null&&(P=void 0)),P===Array||P===void 0))return C.call(I,M,F);for(X=new(P===void 0?Array:P)(_(F-M,0)),B=0;M<F;M++,B++)M in I&&g(X,B,I[M]);return X.length=B,X}})},"./node_modules/core-js/modules/es.function.name.js":function(i,t,o){var e=o("./node_modules/core-js/internals/descriptors.js"),l=o("./node_modules/core-js/internals/object-define-property.js").f,r=Function.prototype,s=r.toString,c=/^\s*function ([^ (]*)/,d="name";e&&!(d in r)&&l(r,d,{configurable:!0,get:function(){try{return s.call(this).match(c)[1]}catch(v){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/descriptors.js"),l=o("./node_modules/core-js/internals/global.js"),r=o("./node_modules/core-js/internals/is-forced.js"),s=o("./node_modules/core-js/internals/redefine.js"),c=o("./node_modules/core-js/internals/has.js"),d=o("./node_modules/core-js/internals/classof-raw.js"),g=o("./node_modules/core-js/internals/inherit-if-required.js"),v=o("./node_modules/core-js/internals/is-symbol.js"),b=o("./node_modules/core-js/internals/to-primitive.js"),S=o("./node_modules/core-js/internals/fails.js"),E=o("./node_modules/core-js/internals/object-create.js"),C=o("./node_modules/core-js/internals/object-get-own-property-names.js").f,_=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,T=o("./node_modules/core-js/internals/object-define-property.js").f,w=o("./node_modules/core-js/internals/string-trim.js").trim,O="Number",I=l[O],R=I.prototype,M=d(E(R))==O,F=function(z){if(v(z))throw TypeError("Cannot convert a Symbol value to a number");var V=b(z,"number"),Q,G,ee,ce,be,le,Ie,ke;if(typeof V=="string"&&V.length>2){if(V=w(V),Q=V.charCodeAt(0),Q===43||Q===45){if(G=V.charCodeAt(2),G===88||G===120)return NaN}else if(Q===48){switch(V.charCodeAt(1)){case 66:case 98:ee=2,ce=49;break;case 79:case 111:ee=8,ce=55;break;default:return+V}for(be=V.slice(2),le=be.length,Ie=0;Ie<le;Ie++)if(ke=be.charCodeAt(Ie),ke<48||ke>ce)return NaN;return parseInt(be,ee)}}return+V};if(r(O,!I(" 0o1")||!I("0b1")||I("+0x1"))){for(var P=function(z){var V=arguments.length<1?0:z,Q=this;return Q instanceof P&&(M?S(function(){R.valueOf.call(Q)}):d(Q)!=O)?g(new I(F(V)),Q,P):F(V)},X=e?C(I):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),B=0,j;X.length>B;B++)c(I,j=X[B])&&!c(P,j)&&T(P,j,_(I,j));P.prototype=R,R.constructor=P,s(l,O,P)}},"./node_modules/core-js/modules/es.object.assign.js":function(i,t,o){var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/object-assign.js");e({target:"Object",stat:!0,forced:Object.assign!==l},{assign:l})},"./node_modules/core-js/modules/es.object.keys.js":function(i,t,o){var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/to-object.js"),r=o("./node_modules/core-js/internals/object-keys.js"),s=o("./node_modules/core-js/internals/fails.js"),c=s(function(){r(1)});e({target:"Object",stat:!0,forced:c},{keys:function(g){return r(l(g))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-string-tag-support.js"),l=o("./node_modules/core-js/internals/redefine.js"),r=o("./node_modules/core-js/internals/object-to-string.js");e||l(Object.prototype,"toString",r,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/redefine.js"),l=o("./node_modules/core-js/internals/an-object.js"),r=o("./node_modules/core-js/internals/to-string.js"),s=o("./node_modules/core-js/internals/fails.js"),c=o("./node_modules/core-js/internals/regexp-flags.js"),d="toString",g=RegExp.prototype,v=g[d],b=s(function(){return v.call({source:"a",flags:"b"})!="/a/b"}),S=v.name!=d;(b||S)&&e(RegExp.prototype,d,function(){var C=l(this),_=r(C.source),T=C.flags,w=r(T===void 0&&C instanceof RegExp&&!("flags"in g)?c.call(C):T);return"/"+_+"/"+w},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/string-multibyte.js").charAt,l=o("./node_modules/core-js/internals/to-string.js"),r=o("./node_modules/core-js/internals/internal-state.js"),s=o("./node_modules/core-js/internals/define-iterator.js"),c="String Iterator",d=r.set,g=r.getterFor(c);s(String,"String",function(v){d(this,{type:c,string:l(v),index:0})},function(){var b=g(this),S=b.string,E=b.index,C;return E>=S.length?{value:void 0,done:!0}:(C=e(S,E),b.index+=C.length,{value:C,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/create-html.js"),r=o("./node_modules/core-js/internals/string-html-forced.js");e({target:"String",proto:!0,forced:r("link")},{link:function(c){return l(this,"a","href",c)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/descriptors.js"),r=o("./node_modules/core-js/internals/global.js"),s=o("./node_modules/core-js/internals/has.js"),c=o("./node_modules/core-js/internals/is-object.js"),d=o("./node_modules/core-js/internals/object-define-property.js").f,g=o("./node_modules/core-js/internals/copy-constructor-properties.js"),v=r.Symbol;if(l&&typeof v=="function"&&(!("description"in v.prototype)||v().description!==void 0)){var b={},S=function(){var O=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),I=this instanceof S?new v(O):O===void 0?v():v(O);return O===""&&(b[I]=!0),I};g(S,v);var E=S.prototype=v.prototype;E.constructor=S;var C=E.toString,_=String(v("test"))=="Symbol(test)",T=/^Symbol\((.*)\)[^)]+$/;d(E,"description",{configurable:!0,get:function(){var O=c(this)?this.valueOf():this,I=C.call(O);if(s(b,O))return"";var R=_?I.slice(7,-1):I.replace(T,"$1");return R===""?void 0:R}}),e({global:!0,forced:!0},{Symbol:S})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(i,t,o){var e=o("./node_modules/core-js/internals/define-well-known-symbol.js");e("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/global.js"),r=o("./node_modules/core-js/internals/get-built-in.js"),s=o("./node_modules/core-js/internals/is-pure.js"),c=o("./node_modules/core-js/internals/descriptors.js"),d=o("./node_modules/core-js/internals/native-symbol.js"),g=o("./node_modules/core-js/internals/fails.js"),v=o("./node_modules/core-js/internals/has.js"),b=o("./node_modules/core-js/internals/is-array.js"),S=o("./node_modules/core-js/internals/is-object.js"),E=o("./node_modules/core-js/internals/is-symbol.js"),C=o("./node_modules/core-js/internals/an-object.js"),_=o("./node_modules/core-js/internals/to-object.js"),T=o("./node_modules/core-js/internals/to-indexed-object.js"),w=o("./node_modules/core-js/internals/to-property-key.js"),O=o("./node_modules/core-js/internals/to-string.js"),I=o("./node_modules/core-js/internals/create-property-descriptor.js"),R=o("./node_modules/core-js/internals/object-create.js"),M=o("./node_modules/core-js/internals/object-keys.js"),F=o("./node_modules/core-js/internals/object-get-own-property-names.js"),P=o("./node_modules/core-js/internals/object-get-own-property-names-external.js"),X=o("./node_modules/core-js/internals/object-get-own-property-symbols.js"),B=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),j=o("./node_modules/core-js/internals/object-define-property.js"),W=o("./node_modules/core-js/internals/object-property-is-enumerable.js"),z=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),V=o("./node_modules/core-js/internals/redefine.js"),Q=o("./node_modules/core-js/internals/shared.js"),G=o("./node_modules/core-js/internals/shared-key.js"),ee=o("./node_modules/core-js/internals/hidden-keys.js"),ce=o("./node_modules/core-js/internals/uid.js"),be=o("./node_modules/core-js/internals/well-known-symbol.js"),le=o("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Ie=o("./node_modules/core-js/internals/define-well-known-symbol.js"),ke=o("./node_modules/core-js/internals/set-to-string-tag.js"),Re=o("./node_modules/core-js/internals/internal-state.js"),Qe=o("./node_modules/core-js/internals/array-iteration.js").forEach,We=G("hidden"),ot="Symbol",Oe="prototype",oe=be("toPrimitive"),st=Re.set,he=Re.getterFor(ot),J=Object[Oe],Y=l.Symbol,$=r("JSON","stringify"),fe=B.f,we=j.f,Ne=P.f,Ee=W.f,de=Q("symbols"),me=Q("op-symbols"),Le=Q("string-to-symbol-registry"),tt=Q("symbol-to-string-registry"),At=Q("wks"),ht=l.QObject,Ke=!ht||!ht[Oe]||!ht[Oe].findChild,Jt=c&&g(function(){return R(we({},"a",{get:function(){return we(this,"a",{value:7}).a}})).a!=7})?function($e,He,ae){var ft=fe(J,He);ft&&delete J[He],we($e,He,ae),ft&&$e!==J&&we(J,He,ft)}:we,ct=function(He,ae){var ft=de[He]=R(Y[Oe]);return st(ft,{type:ot,tag:He,description:ae}),c||(ft.description=ae),ft},Gt=function(He,ae,ft){He===J&&Gt(me,ae,ft),C(He);var Mt=w(ae);return C(ft),v(de,Mt)?(ft.enumerable?(v(He,We)&&He[We][Mt]&&(He[We][Mt]=!1),ft=R(ft,{enumerable:I(0,!1)})):(v(He,We)||we(He,We,I(1,{})),He[We][Mt]=!0),Jt(He,Mt,ft)):we(He,Mt,ft)},dr=function(He,ae){C(He);var ft=T(ae),Mt=M(ft).concat(pe(ft));return Qe(Mt,function(mt){(!c||kt.call(ft,mt))&&Gt(He,mt,ft[mt])}),He},zt=function(He,ae){return ae===void 0?R(He):dr(R(He),ae)},kt=function(He){var ae=w(He),ft=Ee.call(this,ae);return this===J&&v(de,ae)&&!v(me,ae)?!1:ft||!v(this,ae)||!v(de,ae)||v(this,We)&&this[We][ae]?ft:!0},Vt=function(He,ae){var ft=T(He),Mt=w(ae);if(ft===J&&v(de,Mt)&&!v(me,Mt))return;var mt=fe(ft,Mt);return mt&&v(de,Mt)&&!(v(ft,We)&&ft[We][Mt])&&(mt.enumerable=!0),mt},Xe=function(He){var ae=Ne(T(He)),ft=[];return Qe(ae,function(Mt){!v(de,Mt)&&!v(ee,Mt)&&ft.push(Mt)}),ft},pe=function(He){var ae=He===J,ft=Ne(ae?me:T(He)),Mt=[];return Qe(ft,function(mt){v(de,mt)&&(!ae||v(J,mt))&&Mt.push(de[mt])}),Mt};if(d||(Y=function(){if(this instanceof Y)throw TypeError("Symbol is not a constructor");var He=!arguments.length||arguments[0]===void 0?void 0:O(arguments[0]),ae=ce(He),ft=function Mt(mt){this===J&&Mt.call(me,mt),v(this,We)&&v(this[We],ae)&&(this[We][ae]=!1),Jt(this,ae,I(1,mt))};return c&&Ke&&Jt(J,ae,{configurable:!0,set:ft}),ct(ae,He)},V(Y[Oe],"toString",function(){return he(this).tag}),V(Y,"withoutSetter",function($e){return ct(ce($e),$e)}),W.f=kt,j.f=Gt,B.f=Vt,F.f=P.f=Xe,X.f=pe,le.f=function($e){return ct(be($e),$e)},c&&(we(Y[Oe],"description",{configurable:!0,get:function(){return he(this).description}}),s||V(J,"propertyIsEnumerable",kt,{unsafe:!0}))),e({global:!0,wrap:!0,forced:!d,sham:!d},{Symbol:Y}),Qe(M(At),function($e){Ie($e)}),e({target:ot,stat:!0,forced:!d},{for:function(He){var ae=O(He);if(v(Le,ae))return Le[ae];var ft=Y(ae);return Le[ae]=ft,tt[ft]=ae,ft},keyFor:function(He){if(!E(He))throw TypeError(He+" is not a symbol");if(v(tt,He))return tt[He]},useSetter:function(){Ke=!0},useSimple:function(){Ke=!1}}),e({target:"Object",stat:!0,forced:!d,sham:!c},{create:zt,defineProperty:Gt,defineProperties:dr,getOwnPropertyDescriptor:Vt}),e({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:Xe,getOwnPropertySymbols:pe}),e({target:"Object",stat:!0,forced:g(function(){X.f(1)})},{getOwnPropertySymbols:function(He){return X.f(_(He))}}),$){var te=!d||g(function(){var $e=Y();return $([$e])!="[null]"||$({a:$e})!="{}"||$(Object($e))!="{}"});e({target:"JSON",stat:!0,forced:te},{stringify:function(He,ae,ft){for(var Mt=[He],mt=1,or;arguments.length>mt;)Mt.push(arguments[mt++]);return or=ae,!S(ae)&&He===void 0||E(He)?void 0:(b(ae)||(ae=function(fn,sr){if(typeof or=="function"&&(sr=or.call(this,fn,sr)),!E(sr))return sr}),Mt[1]=ae,$.apply(null,Mt))}})}Y[Oe][oe]||z(Y[Oe],oe,Y[Oe].valueOf),ke(Y,ot),ee[We]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=o("./node_modules/core-js/internals/dom-iterables.js"),r=o("./node_modules/core-js/internals/array-for-each.js"),s=o("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var c in l){var d=e[c],g=d&&d.prototype;if(g&&g.forEach!==r)try{s(g,"forEach",r)}catch(v){g.forEach=r}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=o("./node_modules/core-js/internals/dom-iterables.js"),r=o("./node_modules/core-js/modules/es.array.iterator.js"),s=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),c=o("./node_modules/core-js/internals/well-known-symbol.js"),d=c("iterator"),g=c("toStringTag"),v=r.values;for(var b in l){var S=e[b],E=S&&S.prototype;if(E){if(E[d]!==v)try{s(E,d,v)}catch(_){E[d]=v}if(E[g]||s(E,g,b),l[b]){for(var C in r)if(E[C]!==r[C])try{s(E,C,r[C])}catch(_){E[C]=r[C]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(i){/*!
|
|
|
* @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.8+1e68dce6
|
|
|
*/(function(t,o){i.exports=o()})(this,function(){"use strict";function t(ht){var Ke=typeof ht;return ht!==null&&(Ke==="object"||Ke==="function")}function o(ht){return typeof ht=="function"}var e=void 0;Array.isArray?e=Array.isArray:e=function(Ke){return Object.prototype.toString.call(Ke)==="[object Array]"};var l=e,r=0,s=void 0,c=void 0,d=function(Ke,Jt){M[r]=Ke,M[r+1]=Jt,r+=2,r===2&&(c?c(F):X())};function g(ht){c=ht}function v(ht){d=ht}var b=typeof window!="undefined"?window:void 0,S=b||{},E=S.MutationObserver||S.WebKitMutationObserver,C=typeof self=="undefined"&&typeof p!="undefined"&&{}.toString.call(p)==="[object process]",_=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function T(){return function(){return p.nextTick(F)}}function w(){return typeof s!="undefined"?function(){s(F)}:R()}function O(){var ht=0,Ke=new E(F),Jt=document.createTextNode("");return Ke.observe(Jt,{characterData:!0}),function(){Jt.data=ht=++ht%2}}function I(){var ht=new MessageChannel;return ht.port1.onmessage=F,function(){return ht.port2.postMessage(0)}}function R(){var ht=setTimeout;return function(){return ht(F,1)}}var M=new Array(1e3);function F(){for(var ht=0;ht<r;ht+=2){var Ke=M[ht],Jt=M[ht+1];Ke(Jt),M[ht]=void 0,M[ht+1]=void 0}r=0}function P(){try{var ht=Function("return this")().require("vertx");return s=ht.runOnLoop||ht.runOnContext,w()}catch(Ke){return R()}}var X=void 0;C?X=T():E?X=O():_?X=I():b===void 0&&!0?X=P():X=R();function B(ht,Ke){var Jt=this,ct=new this.constructor(z);ct[W]===void 0&&$(ct);var Gt=Jt._state;if(Gt){var dr=arguments[Gt-1];d(function(){return st(Gt,ct,dr,Jt._result)})}else Oe(Jt,ct,ht,Ke);return ct}function j(ht){var Ke=this;if(ht&&typeof ht=="object"&&ht.constructor===Ke)return ht;var Jt=new Ke(z);return Re(Jt,ht),Jt}var W=Math.random().toString(36).substring(2);function z(){}var V=void 0,Q=1,G=2;function ee(){return new TypeError("You cannot resolve a promise with itself")}function ce(){return new TypeError("A promises callback cannot return that same promise.")}function be(ht,Ke,Jt,ct){try{ht.call(Ke,Jt,ct)}catch(Gt){return Gt}}function le(ht,Ke,Jt){d(function(ct){var Gt=!1,dr=be(Jt,Ke,function(zt){if(Gt)return;Gt=!0,Ke!==zt?Re(ct,zt):We(ct,zt)},function(zt){if(Gt)return;Gt=!0,ot(ct,zt)},"Settle: "+(ct._label||" unknown promise"));!Gt&&dr&&(Gt=!0,ot(ct,dr))},ht)}function Ie(ht,Ke){Ke._state===Q?We(ht,Ke._result):Ke._state===G?ot(ht,Ke._result):Oe(Ke,void 0,function(Jt){return Re(ht,Jt)},function(Jt){return ot(ht,Jt)})}function ke(ht,Ke,Jt){Ke.constructor===ht.constructor&&Jt===B&&Ke.constructor.resolve===j?Ie(ht,Ke):Jt===void 0?We(ht,Ke):o(Jt)?le(ht,Ke,Jt):We(ht,Ke)}function Re(ht,Ke){if(ht===Ke)ot(ht,ee());else if(t(Ke)){var Jt=void 0;try{Jt=Ke.then}catch(ct){ot(ht,ct);return}ke(ht,Ke,Jt)}else We(ht,Ke)}function Qe(ht){ht._onerror&&ht._onerror(ht._result),oe(ht)}function We(ht,Ke){if(ht._state!==V)return;ht._result=Ke,ht._state=Q,ht._subscribers.length!==0&&d(oe,ht)}function ot(ht,Ke){if(ht._state!==V)return;ht._state=G,ht._result=Ke,d(Qe,ht)}function Oe(ht,Ke,Jt,ct){var Gt=ht._subscribers,dr=Gt.length;ht._onerror=null,Gt[dr]=Ke,Gt[dr+Q]=Jt,Gt[dr+G]=ct,dr===0&&ht._state&&d(oe,ht)}function oe(ht){var Ke=ht._subscribers,Jt=ht._state;if(Ke.length===0)return;for(var ct=void 0,Gt=void 0,dr=ht._result,zt=0;zt<Ke.length;zt+=3)ct=Ke[zt],Gt=Ke[zt+Jt],ct?st(Jt,ct,Gt,dr):Gt(dr);ht._subscribers.length=0}function st(ht,Ke,Jt,ct){var Gt=o(Jt),dr=void 0,zt=void 0,kt=!0;if(Gt){try{dr=Jt(ct)}catch(Vt){kt=!1,zt=Vt}if(Ke===dr){ot(Ke,ce());return}}else dr=ct;Ke._state!==V||(Gt&&kt?Re(Ke,dr):kt===!1?ot(Ke,zt):ht===Q?We(Ke,dr):ht===G&&ot(Ke,dr))}function he(ht,Ke){try{Ke(function(ct){Re(ht,ct)},function(ct){ot(ht,ct)})}catch(Jt){ot(ht,Jt)}}var J=0;function Y(){return J++}function $(ht){ht[W]=J++,ht._state=void 0,ht._result=void 0,ht._subscribers=[]}function fe(){return new Error("Array Methods must be provided an Array")}var we=function(){function ht(Ke,Jt){this._instanceConstructor=Ke,this.promise=new Ke(z),this.promise[W]||$(this.promise),l(Jt)?(this.length=Jt.length,this._remaining=Jt.length,this._result=new Array(this.length),this.length===0?We(this.promise,this._result):(this.length=this.length||0,this._enumerate(Jt),this._remaining===0&&We(this.promise,this._result))):ot(this.promise,fe())}return ht.prototype._enumerate=function(Jt){for(var ct=0;this._state===V&&ct<Jt.length;ct++)this._eachEntry(Jt[ct],ct)},ht.prototype._eachEntry=function(Jt,ct){var Gt=this._instanceConstructor,dr=Gt.resolve;if(dr===j){var zt=void 0,kt=void 0,Vt=!1;try{zt=Jt.then}catch(pe){Vt=!0,kt=pe}if(zt===B&&Jt._state!==V)this._settledAt(Jt._state,ct,Jt._result);else if(typeof zt!="function")this._remaining--,this._result[ct]=Jt;else if(Gt===tt){var Xe=new Gt(z);Vt?ot(Xe,kt):ke(Xe,Jt,zt),this._willSettleAt(Xe,ct)}else this._willSettleAt(new Gt(function(pe){return pe(Jt)}),ct)}else this._willSettleAt(dr(Jt),ct)},ht.prototype._settledAt=function(Jt,ct,Gt){var dr=this.promise;dr._state===V&&(this._remaining--,Jt===G?ot(dr,Gt):this._result[ct]=Gt),this._remaining===0&&We(dr,this._result)},ht.prototype._willSettleAt=function(Jt,ct){var Gt=this;Oe(Jt,void 0,function(dr){return Gt._settledAt(Q,ct,dr)},function(dr){return Gt._settledAt(G,ct,dr)})},ht}();function Ne(ht){return new we(this,ht).promise}function Ee(ht){var Ke=this;return l(ht)?new Ke(function(Jt,ct){for(var Gt=ht.length,dr=0;dr<Gt;dr++)Ke.resolve(ht[dr]).then(Jt,ct)}):new Ke(function(Jt,ct){return ct(new TypeError("You must pass an array to race."))})}function de(ht){var Ke=this,Jt=new Ke(z);return ot(Jt,ht),Jt}function me(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Le(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var tt=function(){function ht(Ke){this[W]=Y(),this._result=this._state=void 0,this._subscribers=[],z!==Ke&&(typeof Ke!="function"&&me(),this instanceof ht?he(this,Ke):Le())}return ht.prototype.catch=function(Jt){return this.then(null,Jt)},ht.prototype.finally=function(Jt){var ct=this,Gt=ct.constructor;return o(Jt)?ct.then(function(dr){return Gt.resolve(Jt()).then(function(){return dr})},function(dr){return Gt.resolve(Jt()).then(function(){throw dr})}):ct.then(Jt,Jt)},ht}();tt.prototype.then=B,tt.all=Ne,tt.race=Ee,tt.resolve=j,tt.reject=de,tt._setScheduler=g,tt._setAsap=v,tt._asap=d;function At(){var ht=void 0;if(typeof y!="undefined")ht=y;else if(typeof self!="undefined")ht=self;else try{ht=Function("return this")()}catch(ct){throw new Error("polyfill failed because global object is unavailable in this environment")}var Ke=ht.Promise;if(Ke){var Jt=null;try{Jt=Object.prototype.toString.call(Ke.resolve())}catch(ct){}if(Jt==="[object Promise]"&&!Ke.cast)return}ht.Promise=tt}return tt.polyfill=At,tt.Promise=tt,tt})},html2canvas:function(i){"use strict";i.exports=A},jspdf:function(i){"use strict";i.exports=x}},f={};function h(a){var i=f[a];if(i!==void 0)return i.exports;var t=f[a]={exports:{}};return m[a].call(t.exports,t,t.exports,h),t.exports}!function(){h.n=function(a){var i=a&&a.__esModule?function(){return a.default}:function(){return a};return h.d(i,{a:i}),i}}(),!function(){h.d=function(a,i){for(var t in i)h.o(i,t)&&!h.o(a,t)&&Object.defineProperty(a,t,{enumerable:!0,get:i[t]})}}(),!function(){h.o=function(a,i){return Object.prototype.hasOwnProperty.call(a,i)}}(),!function(){h.r=function(a){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})}}();var u={};return!function(){"use strict";/*!**********************!*\
|
|
|
!*** ./src/index.js ***!
|
|
|
\**********************/h.r(u);var a=h("./src/worker.js"),i=h("./src/plugin/jspdf-plugin.js"),t=h("./src/plugin/pagebreaks.js"),o=h("./src/plugin/hyperlinks.js"),e=function l(r,s){var c=new l.Worker(s);return r?c.from(r).save():c};e.Worker=a.default,u.default=e}(),u=u.default,u}()})}).call(this,n("yLpj"),n("Q2Ig"))},"1q3G":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=y;function y(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},"1tlw":function(k,D,n){var y=n("MBQ8"),p=y.extend({type:"series.pictorialBar",dependencies:["grid"],defaultOption:{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,hoverAnimation:!1},getInitialData:function(A){return A.stack=null,p.superApply(this,"getInitialData",arguments)}}),x=p;k.exports=x},"1u/T":function(k,D,n){var y=n("ProS"),p={type:"selectDataRange",event:"dataRangeSelected",update:"update"};y.registerAction(p,function(x,A){A.eachComponent({mainType:"visualMap",query:x},function(m){m.setSelected(x.selected)})})},"1uat":function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("MlIO"))})(this,function(y){return function(){var p=y,x=p.lib,A=x.Hasher,m=p.x64,f=m.Word,h=m.WordArray,u=p.algo;function a(){return f.create.apply(f,arguments)}var i=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],t=[];(function(){for(var e=0;e<80;e++)t[e]=a()})();var o=u.SHA512=A.extend({_doReset:function(){this._hash=new h.init([new f.init(1779033703,4089235720),new f.init(3144134277,2227873595),new f.init(1013904242,4271175723),new f.init(2773480762,1595750129),new f.init(1359893119,2917565137),new f.init(2600822924,725511199),new f.init(528734635,4215389547),new f.init(1541459225,327033209)])},_doProcessBlock:function(l,r){for(var s=this._hash.words,c=s[0],d=s[1],g=s[2],v=s[3],b=s[4],S=s[5],E=s[6],C=s[7],_=c.high,T=c.low,w=d.high,O=d.low,I=g.high,R=g.low,M=v.high,F=v.low,P=b.high,X=b.low,B=S.high,j=S.low,W=E.high,z=E.low,V=C.high,Q=C.low,G=_,ee=T,ce=w,be=O,le=I,Ie=R,ke=M,Re=F,Qe=P,We=X,ot=B,Oe=j,oe=W,st=z,he=V,J=Q,Y=0;Y<80;Y++){var $,fe,we=t[Y];if(Y<16)fe=we.high=l[r+Y*2]|0,$=we.low=l[r+Y*2+1]|0;else{var Ne=t[Y-15],Ee=Ne.high,de=Ne.low,me=(Ee>>>1|de<<31)^(Ee>>>8|de<<24)^Ee>>>7,Le=(de>>>1|Ee<<31)^(de>>>8|Ee<<24)^(de>>>7|Ee<<25),tt=t[Y-2],At=tt.high,ht=tt.low,Ke=(At>>>19|ht<<13)^(At<<3|ht>>>29)^At>>>6,Jt=(ht>>>19|At<<13)^(ht<<3|At>>>29)^(ht>>>6|At<<26),ct=t[Y-7],Gt=ct.high,dr=ct.low,zt=t[Y-16],kt=zt.high,Vt=zt.low;$=Le+dr,fe=me+Gt+($>>>0<Le>>>0?1:0),$=$+Jt,fe=fe+Ke+($>>>0<Jt>>>0?1:0),$=$+Vt,fe=fe+kt+($>>>0<Vt>>>0?1:0),we.high=fe,we.low=$}var Xe=Qe&ot^~Qe&oe,pe=We&Oe^~We&st,te=G&ce^G&le^ce&le,$e=ee&be^ee&Ie^be&Ie,He=(G>>>28|ee<<4)^(G<<30|ee>>>2)^(G<<25|ee>>>7),ae=(ee>>>28|G<<4)^(ee<<30|G>>>2)^(ee<<25|G>>>7),ft=(Qe>>>14|We<<18)^(Qe>>>18|We<<14)^(Qe<<23|We>>>9),Mt=(We>>>14|Qe<<18)^(We>>>18|Qe<<14)^(We<<23|Qe>>>9),mt=i[Y],or=mt.high,vr=mt.low,fn=J+Mt,sr=he+ft+(fn>>>0<J>>>0?1:0),fn=fn+pe,sr=sr+Xe+(fn>>>0<pe>>>0?1:0),fn=fn+vr,sr=sr+or+(fn>>>0<vr>>>0?1:0),fn=fn+$,sr=sr+fe+(fn>>>0<$>>>0?1:0),Ir=ae+$e,lr=He+te+(Ir>>>0<ae>>>0?1:0);he=oe,J=st,oe=ot,st=Oe,ot=Qe,Oe=We,We=Re+fn|0,Qe=ke+sr+(We>>>0<Re>>>0?1:0)|0,ke=le,Re=Ie,le=ce,Ie=be,ce=G,be=ee,ee=fn+Ir|0,G=sr+lr+(ee>>>0<fn>>>0?1:0)|0}T=c.low=T+ee,c.high=_+G+(T>>>0<ee>>>0?1:0),O=d.low=O+be,d.high=w+ce+(O>>>0<be>>>0?1:0),R=g.low=R+Ie,g.high=I+le+(R>>>0<Ie>>>0?1:0),F=v.low=F+Re,v.high=M+ke+(F>>>0<Re>>>0?1:0),X=b.low=X+We,b.high=P+Qe+(X>>>0<We>>>0?1:0),j=S.low=j+Oe,S.high=B+ot+(j>>>0<Oe>>>0?1:0),z=E.low=z+st,E.high=W+oe+(z>>>0<st>>>0?1:0),Q=C.low=Q+J,C.high=V+he+(Q>>>0<J>>>0?1:0)},_doFinalize:function(){var l=this._data,r=l.words,s=this._nDataBytes*8,c=l.sigBytes*8;r[c>>>5]|=128<<24-c%32,r[(c+128>>>10<<5)+30]=Math.floor(s/4294967296),r[(c+128>>>10<<5)+31]=s,l.sigBytes=r.length*4,this._process();var d=this._hash.toX32();return d},clone:function(){var l=A.clone.call(this);return l._hash=this._hash.clone(),l},blockSize:1024/32});p.SHA512=A._createHelper(o),p.HmacSHA512=A._createHmacHelper(o)}(),y.SHA512})},"1vzs":function(k,D,n){"use strict";n.d(D,"a",function(){return r});var y=n("q1tI"),p=n.n(y),x=n("Ved0"),A=n.n(x),m=n("zU+y"),f=n.n(m),h=n("Eh2f"),u=n.n(h),a=n("1S0Z"),i=n.n(a),t=n("f0uV"),o=n.n(t),e=n("SymL"),l=n.n(e);function r(s){var c=s.suffixIcon,d=s.clearIcon,g=s.menuItemSelectedIcon,v=s.removeIcon,b=s.loading,S=s.multiple,E=s.prefixCls,C=d;d||(C=y.createElement(o.a,null));var _=null;if(c!==void 0)_=c;else if(b)_=y.createElement(f.a,{spin:!0});else{var T="".concat(E,"-suffix");_=function(R){var M=R.open,F=R.showSearch;return M&&F?y.createElement(l.a,{className:T}):y.createElement(A.a,{className:T})}}var w=null;g!==void 0?w=g:S?w=y.createElement(u.a,null):w=null;var O=null;return v!==void 0?O=v:O=y.createElement(i.a,null),{clearIcon:C,suffixIcon:_,itemIcon:w,removeIcon:O}}},"1xaR":function(k,D,n){var y=n("ProS"),p=n("bYtY");n("qgGe"),n("NA0q"),n("RPvy");var x=n("mOdp"),A=n("y3NT"),m=n("0/Rx");y.registerVisual(p.curry(x,"sunburst")),y.registerLayout(p.curry(A,"sunburst")),y.registerProcessor(p.curry(m,"sunburst"))},"24YM":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.SensorTabIndex=D.SensorClassName=D.SizeSensorId=void 0;var y="size-sensor-id";D.SizeSensorId=y;var p="size-sensor-object";D.SensorClassName=p;var x="-1";D.SensorTabIndex=x},"2548":function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("6GrX"),A=n("IUWy"),m=n("IwbS"),f=n("Qxkt"),h=n("gPAo"),u=n("eRkO"),a=y.extendComponentView({type:"toolbox",render:function(t,o,e,l){var r=this.group;if(r.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),c=t.get("feature")||{},d=this._features||(this._features={}),g=[];p.each(c,function(S,E){g.push(E)}),new h(this._featureNames||[],g).add(v).update(v).remove(p.curry(v,null)).execute(),this._featureNames=g;function v(S,E){var C=g[S],_=g[E],T=c[C],w=new f(T,t,t.ecModel),O;if(l&&l.newTitle!=null&&l.featureName===C&&(T.title=l.newTitle),C&&!_){if(i(C))O={model:w,onclick:w.option.onclick,featureName:C};else{var I=A.get(C);if(!I)return;O=new I(w,o,e)}d[C]=O}else{if(O=d[_],!O)return;O.model=w,O.ecModel=o,O.api=e}if(!C&&_){O.dispose&&O.dispose(o,e);return}if(!w.get("show")||O.unusable){O.remove&&O.remove(o,e);return}b(w,O,C),w.setIconStatus=function(R,M){var F=this.option,P=this.iconPaths;F.iconStatus=F.iconStatus||{},F.iconStatus[R]=M,P[R]&&P[R].trigger(M)},O.render&&O.render(w,o,e,l)}function b(S,E,C){var _=S.getModel("iconStyle"),T=S.getModel("emphasis.iconStyle"),w=E.getIcons?E.getIcons():S.get("icon"),O=S.get("title")||{};if(typeof w=="string"){var I=w,R=O;w={},O={},w[C]=I,O[C]=R}var M=S.iconPaths={};p.each(w,function(F,P){var X=m.createIcon(F,{},{x:-s/2,y:-s/2,width:s,height:s});X.setStyle(_.getItemStyle()),X.hoverStyle=T.getItemStyle(),X.setStyle({text:O[P],textAlign:T.get("textAlign"),textBorderRadius:T.get("textBorderRadius"),textPadding:T.get("textPadding"),textFill:null});var B=t.getModel("tooltip");B&&B.get("show")&&X.attr("tooltip",p.extend({content:O[P],formatter:B.get("formatter",!0)||function(){return O[P]},formatterParams:{componentType:"toolbox",name:P,title:O[P],$vars:["name","title"]},position:B.get("position",!0)||"bottom"},B.option)),m.setHoverStyle(X),t.get("showTitle")&&(X.__title=O[P],X.on("mouseover",function(){var j=T.getItemStyle(),W=t.get("orient")==="vertical"?t.get("right")==null?"right":"left":t.get("bottom")==null?"bottom":"top";X.setStyle({textFill:T.get("textFill")||j.fill||j.stroke||"#000",textBackgroundColor:T.get("textBackgroundColor"),textPosition:T.get("textPosition")||W})}).on("mouseout",function(){X.setStyle({textFill:null,textBackgroundColor:null})})),X.trigger(S.get("iconStatus."+P)||"normal"),r.add(X),X.on("click",p.bind(E.onclick,E,o,e,P)),M[P]=X})}u.layout(r,t,e),r.add(u.makeBackground(r.getBoundingRect(),t)),r.eachChild(function(S){var E=S.__title,C=S.hoverStyle;if(C&&E){var _=x.getBoundingRect(E,x.makeFont(C)),T=S.position[0]+r.position[0],w=S.position[1]+r.position[1]+s,O=!1;w+_.height>e.getHeight()&&(C.textPosition="top",O=!0);var I=O?-5-_.height:s+8;T+_.width/2>e.getWidth()?(C.textPosition=["100%",I],C.textAlign="right"):T-_.width/2<0&&(C.textPosition=[0,I],C.textAlign="left")}})},updateView:function(t,o,e,l){p.each(this._features,function(r){r.updateView&&r.updateView(r.model,o,e,l)})},remove:function(t,o){p.each(this._features,function(e){e.remove&&e.remove(t,o)}),this.group.removeAll()},dispose:function(t,o){p.each(this._features,function(e){e.dispose&&e.dispose(t,o)})}});function i(t){return t.indexOf("my")===0}k.exports=a},"2B6p":function(k,D){function n(y,p,x){var A=y.getZoom(),m=y.getCenter(),f=p.zoom,h=y.dataToPoint(m);if(p.dx!=null&&p.dy!=null){h[0]-=p.dx,h[1]-=p.dy;var m=y.pointToData(h);y.setCenter(m)}if(f!=null){if(x){var u=x.min||0,a=x.max||Infinity;f=Math.max(Math.min(A*f,a),u)/A}y.scale[0]*=f,y.scale[1]*=f;var i=y.position,t=(p.originX-i[0])*(f-1),o=(p.originY-i[1])*(f-1);i[0]-=t,i[1]-=o,y.updateTransform();var m=y.pointToData(h);y.setCenter(m),y.setZoom(f*A)}return{center:y.getCenter(),zoom:y.getZoom()}}D.updateCenterAndZoom=n},"2BaD":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={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=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="CloseCircleOutlined";var h=D.a=p.forwardRef(f)},"2DNl":function(k,D,n){var y=n("IMiH"),p=n("loD1"),x=n("59Ip"),A=n("aKvl"),m=n("n1HI"),f=n("hX1E"),h=f.normalizeRadian,u=n("Sj9i"),a=n("hyiK"),i=y.CMD,t=Math.PI*2,o=1e-4;function e(E,C){return Math.abs(E-C)<o}var l=[-1,-1,-1],r=[-1,-1];function s(){var E=r[0];r[0]=r[1],r[1]=E}function c(E,C,_,T,w,O,I,R,M,F){if(F>C&&F>T&&F>O&&F>R||F<C&&F<T&&F<O&&F<R)return 0;var P=u.cubicRootAt(C,T,O,R,F,l);if(P===0)return 0;for(var X=0,B=-1,j,W,z=0;z<P;z++){var V=l[z],Q=V===0||V===1?.5:1,G=u.cubicAt(E,_,w,I,V);if(G<M)continue;B<0&&(B=u.cubicExtrema(C,T,O,R,r),r[1]<r[0]&&B>1&&s(),j=u.cubicAt(C,T,O,R,r[0]),B>1&&(W=u.cubicAt(C,T,O,R,r[1]))),B===2?V<r[0]?X+=j<C?Q:-Q:V<r[1]?X+=W<j?Q:-Q:X+=R<W?Q:-Q:V<r[0]?X+=j<C?Q:-Q:X+=R<j?Q:-Q}return X}function d(E,C,_,T,w,O,I,R){if(R>C&&R>T&&R>O||R<C&&R<T&&R<O)return 0;var M=u.quadraticRootAt(C,T,O,R,l);if(M===0)return 0;var F=u.quadraticExtremum(C,T,O);if(F>=0&&F<=1){for(var P=0,X=u.quadraticAt(C,T,O,F),B=0;B<M;B++){var j=l[B]===0||l[B]===1?.5:1,W=u.quadraticAt(E,_,w,l[B]);if(W<I)continue;l[B]<F?P+=X<C?j:-j:P+=O<X?j:-j}return P}else{var j=l[0]===0||l[0]===1?.5:1,W=u.quadraticAt(E,_,w,l[0]);return W<I?0:O<C?j:-j}}function g(E,C,_,T,w,O,I,R){if(R-=C,R>_||R<-_)return 0;var M=Math.sqrt(_*_-R*R);l[0]=-M,l[1]=M;var F=Math.abs(T-w);if(F<1e-4)return 0;if(F%t<1e-4){T=0,w=t;var P=O?1:-1;return I>=l[0]+E&&I<=l[1]+E?P:0}if(O){var M=T;T=h(w),w=h(M)}else T=h(T),w=h(w);T>w&&(w+=t);for(var X=0,B=0;B<2;B++){var j=l[B];if(j+E>I){var W=Math.atan2(R,j),P=O?1:-1;W<0&&(W=t+W),(W>=T&&W<=w||W+t>=T&&W+t<=w)&&(W>Math.PI/2&&W<Math.PI*1.5&&(P=-P),X+=P)}}return X}function v(E,C,_,T,w){for(var O=0,I=0,R=0,M=0,F=0,P=0;P<E.length;){var X=E[P++];X===i.M&&P>1&&(_||(O+=a(I,R,M,F,T,w))),P===1&&(I=E[P],R=E[P+1],M=I,F=R);switch(X){case i.M:M=E[P++],F=E[P++],I=M,R=F;break;case i.L:if(_){if(p.containStroke(I,R,E[P],E[P+1],C,T,w))return!0}else O+=a(I,R,E[P],E[P+1],T,w)||0;I=E[P++],R=E[P++];break;case i.C:if(_){if(x.containStroke(I,R,E[P++],E[P++],E[P++],E[P++],E[P],E[P+1],C,T,w))return!0}else O+=c(I,R,E[P++],E[P++],E[P++],E[P++],E[P],E[P+1],T,w)||0;I=E[P++],R=E[P++];break;case i.Q:if(_){if(A.containStroke(I,R,E[P++],E[P++],E[P],E[P+1],C,T,w))return!0}else O+=d(I,R,E[P++],E[P++],E[P],E[P+1],T,w)||0;I=E[P++],R=E[P++];break;case i.A:var B=E[P++],j=E[P++],W=E[P++],z=E[P++],V=E[P++],Q=E[P++];P+=1;var G=1-E[P++],ee=Math.cos(V)*W+B,ce=Math.sin(V)*z+j;P>1?O+=a(I,R,ee,ce,T,w):(M=ee,F=ce);var be=(T-B)*z/W+B;if(_){if(m.containStroke(B,j,z,V,V+Q,G,C,be,w))return!0}else O+=g(B,j,z,V,V+Q,G,be,w);I=Math.cos(V+Q)*W+B,R=Math.sin(V+Q)*z+j;break;case i.R:M=I=E[P++],F=R=E[P++];var le=E[P++],Ie=E[P++],ee=M+le,ce=F+Ie;if(_){if(p.containStroke(M,F,ee,F,C,T,w)||p.containStroke(ee,F,ee,ce,C,T,w)||p.containStroke(ee,ce,M,ce,C,T,w)||p.containStroke(M,ce,M,F,C,T,w))return!0}else O+=a(ee,F,ee,ce,T,w),O+=a(M,ce,M,F,T,w);break;case i.Z:if(_){if(p.containStroke(I,R,M,F,C,T,w))return!0}else O+=a(I,R,M,F,T,w);I=M,R=F;break}}return!_&&!e(R,F)&&(O+=a(I,R,M,F,T,w)||0),O!==0}function b(E,C,_){return v(E,0,!1,C,_)}function S(E,C,_,T){return v(E,C,!0,_,T)}D.contain=b,D.containStroke=S},"2dDv":function(k,D,n){var y=n("bYtY"),p=n("Fofx"),x=n("+TT/"),A=n("aX7z"),m=n("D1WM"),f=n("IwbS"),h=n("OELB"),u=n("72pK"),a=y.each,i=Math.min,t=Math.max,o=Math.floor,e=Math.ceil,l=h.round,r=Math.PI;function s(b,S,E){this._axesMap=y.createHashMap(),this._axesLayout={},this.dimensions=b.dimensions,this._rect,this._model=b,this._init(b,S,E)}s.prototype={type:"parallel",constructor:s,_init:function(b,S,E){var C=b.dimensions,_=b.parallelAxisIndex;a(C,function(T,w){var O=_[w],I=S.getComponent("parallelAxis",O),R=this._axesMap.set(T,new m(T,A.createScaleByModel(I),[0,0],I.get("type"),O)),M=R.type==="category";R.onBand=M&&I.get("boundaryGap"),R.inverse=I.get("inverse"),I.axis=R,R.model=I,R.coordinateSystem=I.coordinateSystem=this},this)},update:function(b,S){this._updateAxesFromSeries(this._model,b)},containPoint:function(b){var S=this._makeLayoutInfo(),E=S.axisBase,C=S.layoutBase,_=S.pixelDimIndex,T=b[1-_],w=b[_];return T>=E&&T<=E+S.axisLength&&w>=C&&w<=C+S.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(b,S){S.eachSeries(function(E){if(!b.contains(E,S))return;var C=E.getData();a(this.dimensions,function(_){var T=this._axesMap.get(_);T.scale.unionExtentFromData(C,C.mapDimension(_)),A.niceScaleExtent(T.scale,T.model)},this)},this)},resize:function(b,S){this._rect=x.getLayoutRect(b.getBoxLayoutParams(),{width:S.getWidth(),height:S.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var b=this._model,S=this._rect,E=["x","y"],C=["width","height"],_=b.get("layout"),T=_==="horizontal"?0:1,w=S[C[T]],O=[0,w],I=this.dimensions.length,R=c(b.get("axisExpandWidth"),O),M=c(b.get("axisExpandCount")||0,[0,I]),F=b.get("axisExpandable")&&I>3&&I>M&&M>1&&R>0&&w>0,P=b.get("axisExpandWindow"),X;if(P)X=c(P[1]-P[0],O),P[1]=P[0]+X;else{X=c(R*(M-1),O);var B=b.get("axisExpandCenter")||o(I/2);P=[R*B-X/2],P[1]=P[0]+X}var j=(w-X)/(I-M);j<3&&(j=0);var W=[o(l(P[0]/R,1))+1,e(l(P[1]/R,1))-1],z=j/R*P[0];return{layout:_,pixelDimIndex:T,layoutBase:S[E[T]],layoutLength:w,axisBase:S[E[1-T]],axisLength:S[C[1-T]],axisExpandable:F,axisExpandWidth:R,axisCollapseWidth:j,axisExpandWindow:P,axisCount:I,winInnerIndices:W,axisExpandWindow0Pos:z}},_layoutAxes:function(){var b=this._rect,S=this._axesMap,E=this.dimensions,C=this._makeLayoutInfo(),_=C.layout;S.each(function(T){var w=[0,C.axisLength],O=T.inverse?1:0;T.setExtent(w[O],w[1-O])}),a(E,function(T,w){var O=(C.axisExpandable?g:d)(w,C),I={horizontal:{x:O.position,y:C.axisLength},vertical:{x:0,y:O.position}},R={horizontal:r/2,vertical:0},M=[I[_].x+b.x,I[_].y+b.y],F=R[_],P=p.create();p.rotate(P,P,F),p.translate(P,P,M),this._axesLayout[T]={position:M,rotation:F,transform:P,axisNameAvailableWidth:O.axisNameAvailableWidth,axisLabelShow:O.axisLabelShow,nameTruncateMaxWidth:O.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(b){return this._axesMap.get(b)},dataToPoint:function(b,S){return this.axisCoordToPoint(this._axesMap.get(S).dataToCoord(b),S)},eachActiveState:function(b,S,E,C){E==null&&(E=0),C==null&&(C=b.count());var _=this._axesMap,T=this.dimensions,w=[],O=[];y.each(T,function(j){w.push(b.mapDimension(j)),O.push(_.get(j).model)});for(var I=this.hasAxisBrushed(),R=E;R<C;R++){var M;if(!I)M="normal";else{M="active";for(var F=b.getValues(w,R),P=0,X=T.length;P<X;P++){var B=O[P].getActiveState(F[P]);if(B==="inactive"){M="inactive";break}}}S(M,R)}},hasAxisBrushed:function(){for(var b=this.dimensions,S=this._axesMap,E=!1,C=0,_=b.length;C<_;C++)S.get(b[C]).model.getActiveState()!=="normal"&&(E=!0);return E},axisCoordToPoint:function(b,S){var E=this._axesLayout[S];return f.applyTransform([b,0],E.transform)},getAxisLayout:function(b){return y.clone(this._axesLayout[b])},getSlidedAxisExpandWindow:function(b){var S=this._makeLayoutInfo(),E=S.pixelDimIndex,C=S.axisExpandWindow.slice(),_=C[1]-C[0],T=[0,S.axisExpandWidth*(S.axisCount-1)];if(!this.containPoint(b))return{behavior:"none",axisExpandWindow:C};var w=b[E]-S.layoutBase-S.axisExpandWindow0Pos,O,I="slide",R=S.axisCollapseWidth,M=this._model.get("axisExpandSlideTriggerArea"),F=M[0]!=null;if(R)F&&R&&w<_*M[0]?(I="jump",O=w-_*M[2]):F&&R&&w>_*(1-M[0])?(I="jump",O=w-_*(1-M[2])):(O=w-_*M[1])>=0&&(O=w-_*(1-M[1]))<=0&&(O=0),O*=S.axisExpandWidth/R,O?u(O,C,T,"all"):I="none";else{var _=C[1]-C[0],P=T[1]*w/_;C=[t(0,P-_/2)],C[1]=i(T[1],C[0]+_),C[0]=C[1]-_}return{axisExpandWindow:C,behavior:I}}};function c(b,S){return i(t(b,S[0]),S[1])}function d(b,S){var E=S.layoutLength/(S.axisCount-1);return{position:E*b,axisNameAvailableWidth:E,axisLabelShow:!0}}function g(b,S){var E=S.layoutLength,C=S.axisExpandWidth,_=S.axisCount,T=S.axisCollapseWidth,w=S.winInnerIndices,O,I=T,R=!1,M;return b<w[0]?(O=b*T,M=T):b<=w[1]?(O=S.axisExpandWindow0Pos+b*C-S.axisExpandWindow[0],I=C,R=!0):(O=E-(_-1-b)*T,M=T),{position:O,axisNameAvailableWidth:I,axisLabelShow:R,nameTruncateMaxWidth:M}}var v=s;k.exports=v},"2fGM":function(k,D,n){var y=n("bYtY"),p=n("bLfw"),x=n("nkfE"),A=n("ICMv"),m=p.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});y.merge(m.prototype,A);var f={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function h(u,a){return a.type||(a.data?"category":"value")}x("angle",m,h,f.angle),x("radius",m,h,f.radius)},"2fM7":function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),A=n.n(x),m=n("lwsE"),f=n.n(m),h=n("W8MJ"),u=n.n(h),a=n("7W2i"),i=n.n(a),t=n("LQ03"),o=n.n(t),e=n("q1tI"),l=n("BGR+"),r=n("TSYQ"),s=n.n(r),c=n("1OyB"),d=n("vuIU"),g=n("Ji7U"),v=n("LK+K"),b=n("rePB"),S=n("Ff2n"),E=n("ODXe"),C=n("4IlW"),_=n("bX4T"),T=n("YrtM"),w=n("+nKL"),O=function(Pe){var Be=Pe.className,nt=Pe.customizeIcon,vt=Pe.customizeIconProps,ar=Pe.onMouseDown,kr=Pe.onClick,mn=Pe.children,Zn;return typeof nt=="function"?Zn=nt(vt):Zn=nt,e.createElement("span",{className:Be,onMouseDown:function(ur){ur.preventDefault(),ar&&ar(ur)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:kr,"aria-hidden":!0},Zn!==void 0?Zn:e.createElement("span",{className:s()(Be.split(/\s+/).map(function(ni){return"".concat(ni,"-icon")}))},mn))},I=O,R=function(Pe,Be){var nt=Pe.prefixCls,vt=Pe.id,ar=Pe.flattenOptions,kr=Pe.childrenAsData,mn=Pe.values,Zn=Pe.searchValue,ni=Pe.multiple,ur=Pe.defaultActiveFirstOption,Nt=Pe.height,bt=Pe.itemHeight,gr=Pe.notFoundContent,Yt=Pe.open,Pt=Pe.menuItemSelectedIcon,rr=Pe.virtual,Rt=Pe.onSelect,qt=Pe.onToggleOpen,Yr=Pe.onActiveValue,Mr=Pe.onScroll,Dr=Pe.onMouseEnter,un="".concat(nt,"-item"),wn=Object(T.a)(function(){return ar},[Yt,ar],function(qe,at){return at[0]&&qe[1]!==at[1]}),ai=e.useRef(null),ei=function(at){at.preventDefault()},gi=function(at){ai.current&&ai.current.scrollTo({index:at})},Ii=function(at){for(var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,gt=wn.length,hr=0;hr<gt;hr+=1){var Qr=(at+hr*St+gt)%gt,Xr=wn[Qr],dn=Xr.group,mr=Xr.data;if(!dn&&!mr.disabled)return Qr}return-1},ki=e.useState(function(){return Ii(0)}),Qi=Object(E.a)(ki,2),it=Qi[0],Me=Qi[1],je=function(at){Me(at);var St=wn[at];if(!St){Yr(null,-1);return}Yr(St.data.value,at)};e.useEffect(function(){je(ur!==!1?Ii(0):-1)},[wn.length,Zn]),e.useEffect(function(){var qe=setTimeout(function(){if(!ni&&Yt&&mn.size===1){var at=Array.from(mn)[0],St=wn.findIndex(function(gt){var hr=gt.data;return hr.value===at});je(St),gi(St)}});return function(){return clearTimeout(qe)}},[Yt]);var Ye=function(at){at!==void 0&&Rt(at,{selected:!mn.has(at)}),ni||qt(!1)};if(e.useImperativeHandle(Be,function(){return{onKeyDown:function(at){var St=at.which;switch(St){case C.a.UP:case C.a.DOWN:{var gt=0;if(St===C.a.UP?gt=-1:St===C.a.DOWN&&(gt=1),gt!==0){var hr=Ii(it+gt,gt);gi(hr),je(hr)}break}case C.a.ENTER:{var Qr=wn[it];Qr&&!Qr.data.disabled?Ye(Qr.data.value):Ye(void 0),Yt&&at.preventDefault();break}case C.a.ESC:qt(!1)}},onKeyUp:function(){},scrollTo:function(at){gi(at)}}}),wn.length===0)return e.createElement("div",{role:"listbox",id:"".concat(vt,"_list"),className:"".concat(un,"-empty"),onMouseDown:ei},gr);function rt(qe){var at=wn[qe];if(!at)return null;var St=at.data||{},gt=St.value,hr=St.label,Qr=St.children,Xr=Object(_.a)(St,!0),dn=kr?Qr:hr;return at?e.createElement("div",Object.assign({"aria-label":typeof dn=="string"?dn:null},Xr,{key:qe,role:"option",id:"".concat(vt,"_list_").concat(qe),"aria-selected":mn.has(gt)}),gt):null}return e.createElement(e.Fragment,null,e.createElement("div",{role:"listbox",id:"".concat(vt,"_list"),style:{height:0,width:0,overflow:"hidden"}},rt(it-1),rt(it),rt(it+1)),e.createElement(w.a,{itemKey:"key",ref:ai,data:wn,height:Nt,itemHeight:bt,fullHeight:!1,onMouseDown:ei,onScroll:Mr,virtual:rr,onMouseEnter:Dr},function(qe,at){var St,gt=qe.group,hr=qe.groupOption,Qr=qe.data,Xr=Qr.label,dn=Qr.key;if(gt)return e.createElement("div",{className:s()(un,"".concat(un,"-group"))},Xr!==void 0?Xr:dn);var mr=Qr.disabled,Kn=Qr.value,Rr=Qr.title,Rn=Qr.children,An=Qr.style,Zr=Qr.className,hi=Object(S.a)(Qr,["disabled","value","title","children","style","className"]),Mi=mn.has(Kn),Zi="".concat(un,"-option"),qr=s()(un,Zi,Zr,(St={},Object(b.a)(St,"".concat(Zi,"-grouped"),hr),Object(b.a)(St,"".concat(Zi,"-active"),it===at&&!mr),Object(b.a)(St,"".concat(Zi,"-disabled"),mr),Object(b.a)(St,"".concat(Zi,"-selected"),Mi),St)),xn=kr?Rn:Xr,zn=!Pt||typeof Pt=="function"||Mi;return e.createElement("div",Object.assign({},hi,{"aria-selected":Mi,className:qr,title:Rr,onMouseMove:function(){if(it===at||mr)return;je(at)},onClick:function(){mr||Ye(Kn)},style:An}),e.createElement("div",{className:"".concat(Zi,"-content")},xn||Kn),e.isValidElement(Pt)||Mi,zn&&e.createElement(I,{className:"".concat(un,"-option-state"),customizeIcon:Pt,customizeIconProps:{isSelected:Mi}},Mi?"\u2713":null))}))},M=e.forwardRef(R);M.displayName="OptionList";var F=M,P=function(){return null};P.isSelectOption=!0;var X=P,B=function(){return null};B.isSelectOptGroup=!0;var j=B,W=n("VTBJ"),z=n("Zm9Q");function V(Fe){var Pe=Fe.key,Be=Fe.props,nt=Be.children,vt=Be.value,ar=Object(S.a)(Be,["children","value"]);return Object(W.a)({key:Pe,value:vt!==void 0?vt:Pe,children:nt},ar)}function Q(Fe){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(z.a)(Fe).map(function(Be,nt){if(!e.isValidElement(Be)||!Be.type)return null;var vt=Be.type.isSelectOptGroup,ar=Be.key,kr=Be.props,mn=kr.children,Zn=Object(S.a)(kr,["children"]);return Pe||!vt?V(Be):Object(W.a)(Object(W.a)({key:"__RC_SELECT_GRP__".concat(ar===null?nt:ar,"__"),label:ar},Zn),{},{options:Q(mn)})}).filter(function(Be){return Be})}var G=n("KQm4"),ee=n("T5bk"),ce=n("U8pU"),be=n("Kwbf");function le(Fe){return Array.isArray(Fe)?Fe:Fe!==void 0?[Fe]:[]}function Ie(Fe,Pe){var Be=Pe.labelInValue,nt=Pe.combobox;if(Fe===void 0||Fe===""&&nt)return[];var vt=Array.isArray(Fe)?Fe:[Fe];return Be?vt.map(function(ar){var kr=ar.key,mn=ar.value;return mn!==void 0?mn:kr}):vt}function ke(Fe,Pe){var Be=Pe.optionLabelProp,nt=Pe.labelInValue,vt=Pe.prevValue,ar=Pe.options,kr=Pe.getLabeledValue,mn=Fe;return nt&&(mn=mn.map(function(Zn){return kr(Zn,{options:ar,prevValue:vt,labelInValue:nt,optionLabelProp:Be})})),mn}function Re(Fe,Pe){var Be=Object(G.a)(Pe),nt;for(nt=Fe.length-1;nt>=0&&Fe[nt].disabled;nt-=1);var vt=null;return nt!==-1&&(vt=Be[nt],Be.splice(nt,1)),{values:Be,removedValue:vt}}var Qe=typeof window!="undefined"&&window.document&&window.document.documentElement,We=Qe,ot=0;function Oe(){var Fe;return We?(Fe=ot,ot+=1):Fe="TEST_OR_SSR",Fe}function oe(Fe,Pe){var Be=Fe.key,nt;return"value"in Fe&&(nt=Fe.value),Be!=null?Be:nt!==void 0?nt:"rc-index-key-".concat(Pe)}function st(Fe){var Pe=[];function Be(nt,vt){nt.forEach(function(ar){vt||!("options"in ar)?Pe.push({key:oe(ar,Pe.length),groupOption:vt,data:ar}):(Pe.push({key:oe(ar,Pe.length),group:!0,data:ar}),Be(ar.options,!0))})}return Be(Fe,!1),Pe}function he(Fe){var Pe=Object(W.a)({},Fe);return"props"in Pe||Object.defineProperty(Pe,"props",{get:function(){return Object(be.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Pe}}),Pe}function J(Fe,Pe){var Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},nt=Be.prevValueOptions,vt=nt===void 0?[]:nt,ar=new Map;return Pe.forEach(function(kr){if(!kr.group){var mn=kr.data;ar.set(mn.value,mn)}}),Fe.map(function(kr){var mn=ar.get(kr);return mn||(mn=Object(W.a)({},vt.find(function(Zn){return Zn._INTERNAL_OPTION_VALUE_===kr}))),he(mn)})}var Y=function(Pe,Be){var nt=Be.options,vt=Be.prevValue,ar=Be.labelInValue,kr=Be.optionLabelProp,mn=J([Pe],nt)[0],Zn={value:Pe},ni,ur=le(vt);return ar&&(ni=ur.find(function(Nt){return Object(ce.a)(Nt)==="object"&&"value"in Nt?Nt.value===Pe:Nt.key===Pe})),ni&&Object(ce.a)(ni)==="object"&&"label"in ni?(Zn.label=ni.label,mn&&typeof ni.label=="string"&&typeof mn[kr]=="string"&&ni.label.trim()!==mn[kr].trim()&&Object(be.a)(!1,"`label` of `value` is not same as `label` in Select options.")):mn&&kr in mn?Zn.label=mn[kr]:Zn.label=Pe,Zn.key=Zn.value,Zn};function $(Fe){return le(Fe).join("")}function fe(Fe){return function(Pe,Be){var nt=Pe.toLowerCase();if("options"in Be)return $(Be.label).toLowerCase().includes(nt);var vt=Be[Fe],ar=$(vt).toLowerCase();return ar.includes(nt)}}function we(Fe,Pe,Be){var nt=Be.optionFilterProp,vt=Be.filterOption,ar=[],kr;return vt===!1?Pe:(typeof vt=="function"?kr=vt:kr=fe(nt),Pe.forEach(function(mn){if("options"in mn){var Zn=kr(Fe,mn);if(Zn)ar.push(mn);else{var ni=mn.options.filter(function(ur){return kr(Fe,ur)});ni.length&&ar.push(Object(W.a)(Object(W.a)({},mn),{},{options:ni}))}return}kr(Fe,he(mn))&&ar.push(mn)}),ar)}function Ne(Fe,Pe){if(!Pe||!Pe.length)return null;var Be=!1;function nt(ar,kr){var mn=Object(ee.a)(kr),Zn=mn[0],ni=mn.slice(1);if(!Zn)return[ar];var ur=ar.split(Zn);return Be=Be||ur.length>1,ur.reduce(function(Nt,bt){return[].concat(Object(G.a)(Nt),Object(G.a)(nt(bt,ni)))},[]).filter(function(Nt){return Nt})}var vt=nt(Fe,Pe);return Be?vt:null}function Ee(Fe,Pe){var Be=J([Fe],Pe)[0];return Be.disabled}function de(Fe,Pe,Be,nt){var vt=le(Pe).slice().sort(),ar=Object(G.a)(Fe),kr=new Set;return Fe.forEach(function(mn){mn.options?mn.options.forEach(function(Zn){kr.add(Zn.value)}):kr.add(mn.value)}),vt.forEach(function(mn){var Zn=nt?mn.value:mn;if(!kr.has(Zn)){var ni;ar.push(nt?(ni={},Object(b.a)(ni,Be,mn.label),Object(b.a)(ni,"value",Zn),ni):{value:Zn})}}),ar}var me=n("6cGi"),Le=n("HTfv"),tt=n("c+Xe"),At=function(Pe,Be){var nt=Pe.prefixCls,vt=Pe.id,ar=Pe.inputElement,kr=Pe.disabled,mn=Pe.tabIndex,Zn=Pe.autoFocus,ni=Pe.autoComplete,ur=Pe.editable,Nt=Pe.accessibilityIndex,bt=Pe.value,gr=Pe.onKeyDown,Yt=Pe.onMouseDown,Pt=Pe.onChange,rr=Pe.onPaste,Rt=Pe.onCompositionStart,qt=Pe.onCompositionEnd,Yr=Pe.open,Mr=Pe.attrs,Dr=ar||e.createElement("input",null),un=Dr,wn=un.ref,ai=un.props,ei=ai.onKeyDown,gi=ai.onChange,Ii=ai.onMouseDown,ki=ai.onCompositionStart,Qi=ai.onCompositionEnd,it=ai.style;return Dr=e.cloneElement(Dr,Object(W.a)(Object(W.a)({id:vt,ref:Object(tt.a)(Be,wn),disabled:kr,tabIndex:mn,autoComplete:ni||"off",autoFocus:Zn,className:"".concat(nt,"-selection-search-input"),style:Object(W.a)(Object(W.a)({},it),{},{opacity:ur?null:0}),role:"combobox","aria-expanded":Yr,"aria-haspopup":"listbox","aria-owns":"".concat(vt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(vt,"_list"),"aria-activedescendant":"".concat(vt,"_list_").concat(Nt)},Mr),{},{value:ur?bt:"",readOnly:!ur,unselectable:ur?null:"on",onKeyDown:function(je){gr(je),ei&&ei(je)},onMouseDown:function(je){Yt(je),Ii&&Ii(je)},onChange:function(je){Pt(je),gi&&gi(je)},onCompositionStart:function(je){Rt(je),ki&&ki(je)},onCompositionEnd:function(je){qt(je),Qi&&Qi(je)},onPaste:rr})),Dr},ht=e.forwardRef(At);ht.displayName="Input";var Ke=ht;function Jt(Fe,Pe){We?e.useLayoutEffect(Fe,Pe):e.useEffect(Fe,Pe)}var ct="__RC_SELECT_MAX_REST_COUNT__",Gt=function(Pe){var Be=Pe.id,nt=Pe.prefixCls,vt=Pe.values,ar=Pe.open,kr=Pe.searchValue,mn=Pe.inputRef,Zn=Pe.placeholder,ni=Pe.disabled,ur=Pe.mode,Nt=Pe.showSearch,bt=Pe.autoFocus,gr=Pe.autoComplete,Yt=Pe.accessibilityIndex,Pt=Pe.tabIndex,rr=Pe.removeIcon,Rt=Pe.choiceTransitionName,qt=Pe.maxTagCount,Yr=Pe.maxTagTextLength,Mr=Pe.maxTagPlaceholder,Dr=Mr===void 0?function(Kn){return"+ ".concat(Kn.length," ...")}:Mr,un=Pe.tagRender,wn=Pe.onSelect,ai=Pe.onInputChange,ei=Pe.onInputPaste,gi=Pe.onInputKeyDown,Ii=Pe.onInputMouseDown,ki=Pe.onInputCompositionStart,Qi=Pe.onInputCompositionEnd,it=e.useState(!1),Me=Object(E.a)(it,2),je=Me[0],Ye=Me[1],rt=e.useRef(null),qe=e.useState(0),at=Object(E.a)(qe,2),St=at[0],gt=at[1];e.useEffect(function(){Ye(!0)},[]);var hr=ar||ur==="tags"?kr:"",Qr=ur==="tags"||ar&&Nt;Jt(function(){gt(rt.current.scrollWidth)},[hr]);var Xr=vt,dn;typeof qt=="number"&&(dn=vt.length-qt,Xr=vt.slice(0,qt)),typeof Yr=="number"&&(Xr=Xr.map(function(Kn){var Rr=Kn.label,Rn=Object(S.a)(Kn,["label"]),An=Rr;if(typeof Rr=="string"||typeof Rr=="number"){var Zr=String(An);Zr.length>Yr&&(An="".concat(Zr.slice(0,Yr),"..."))}return Object(W.a)(Object(W.a)({},Rn),{},{label:An})})),dn>0&&Xr.push({key:ct,label:typeof Dr=="function"?Dr(vt.slice(qt)):Dr});var mr=e.createElement(Le.CSSMotionList,{component:!1,keys:Xr,motionName:Rt,motionAppear:je},function(Kn){var Rr=Kn.key,Rn=Kn.label,An=Kn.value,Zr=Kn.disabled,hi=Kn.className,Mi=Kn.style,Zi=Rr||An,qr=Rr!==ct&&!Zr,xn=function(Tt){Tt.preventDefault(),Tt.stopPropagation()},zn=function(Tt){Tt&&Tt.stopPropagation(),wn(An,{selected:!1})};return typeof un=="function"?e.createElement("span",{key:Zi,onMouseDown:xn,className:hi,style:Mi},un({label:Rn,value:An,disabled:Zr,closable:qr,onClose:zn})):e.createElement("span",{key:Zi,className:s()(hi,"".concat(nt,"-selection-item"),Object(b.a)({},"".concat(nt,"-selection-item-disabled"),Zr)),style:Mi},e.createElement("span",{className:"".concat(nt,"-selection-item-content")},Rn),qr&&e.createElement(I,{className:"".concat(nt,"-selection-item-remove"),onMouseDown:xn,onClick:zn,customizeIcon:rr},"\xD7"))});return e.createElement(e.Fragment,null,mr,e.createElement("span",{className:"".concat(nt,"-selection-search"),style:{width:St}},e.createElement(Ke,{ref:mn,open:ar,prefixCls:nt,id:Be,inputElement:null,disabled:ni,autoFocus:bt,autoComplete:gr,editable:Qr,accessibilityIndex:Yt,value:hr,onKeyDown:gi,onMouseDown:Ii,onChange:ai,onPaste:ei,onCompositionStart:ki,onCompositionEnd:Qi,tabIndex:Pt,attrs:Object(_.a)(Pe,!0)}),e.createElement("span",{ref:rt,className:"".concat(nt,"-selection-search-mirror"),"aria-hidden":!0},hr,"\xA0")),!vt.length&&!hr&&e.createElement("span",{className:"".concat(nt,"-selection-placeholder")},Zn))},dr=Gt,zt=function(Pe){var Be=Pe.inputElement,nt=Pe.prefixCls,vt=Pe.id,ar=Pe.inputRef,kr=Pe.disabled,mn=Pe.autoFocus,Zn=Pe.autoComplete,ni=Pe.accessibilityIndex,ur=Pe.mode,Nt=Pe.open,bt=Pe.values,gr=Pe.placeholder,Yt=Pe.tabIndex,Pt=Pe.showSearch,rr=Pe.searchValue,Rt=Pe.activeValue,qt=Pe.onInputKeyDown,Yr=Pe.onInputMouseDown,Mr=Pe.onInputChange,Dr=Pe.onInputPaste,un=Pe.onInputCompositionStart,wn=Pe.onInputCompositionEnd,ai=e.useState(!1),ei=Object(E.a)(ai,2),gi=ei[0],Ii=ei[1],ki=ur==="combobox",Qi=ki||Pt&&Nt,it=bt[0],Me=rr||"";ki&&Rt&&!gi&&(Me=Rt),e.useEffect(function(){ki&&Ii(!1)},[ki,Rt]);var je=ur!=="combobox"&&!Nt?!1:!!Me,Ye=it&&(typeof it.label=="string"||typeof it.label=="number")?it.label.toString():void 0;return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(nt,"-selection-search")},e.createElement(Ke,{ref:ar,prefixCls:nt,id:vt,open:Nt,inputElement:Be,disabled:kr,autoFocus:mn,autoComplete:Zn,editable:Qi,accessibilityIndex:ni,value:Me,onKeyDown:qt,onMouseDown:Yr,onChange:function(qe){Ii(!0),Mr(qe)},onPaste:Dr,onCompositionStart:un,onCompositionEnd:wn,tabIndex:Yt,attrs:Object(_.a)(Pe,!0)})),!ki&&it&&!je&&e.createElement("span",{className:"".concat(nt,"-selection-item"),title:Ye},it.label),!it&&!je&&e.createElement("span",{className:"".concat(nt,"-selection-placeholder")},gr))},kt=zt;function Vt(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Pe=e.useRef(null),Be=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(Be.current)}},[]);function nt(vt){(vt||Pe.current===null)&&(Pe.current=vt),window.clearTimeout(Be.current),Be.current=window.setTimeout(function(){Pe.current=null},Fe)}return[function(){return Pe.current},nt]}var Xe=function(Pe,Be){var nt=Object(e.useRef)(null),vt=Object(e.useRef)(!1),ar=Pe.prefixCls,kr=Pe.multiple,mn=Pe.open,Zn=Pe.mode,ni=Pe.showSearch,ur=Pe.tokenWithEnter,Nt=Pe.onSearch,bt=Pe.onSearchSubmit,gr=Pe.onToggleOpen,Yt=Pe.onInputKeyDown,Pt=Pe.domRef;e.useImperativeHandle(Be,function(){return{focus:function(){nt.current.focus()},blur:function(){nt.current.blur()}}});var rr=Vt(0),Rt=Object(E.a)(rr,2),qt=Rt[0],Yr=Rt[1],Mr=function(je){var Ye=je.which;(Ye===C.a.UP||Ye===C.a.DOWN)&&je.preventDefault(),Yt&&Yt(je),Ye===C.a.ENTER&&Zn==="tags"&&!vt.current&&!mn&&bt(je.target.value),[C.a.SHIFT,C.a.TAB,C.a.BACKSPACE,C.a.ESC].includes(Ye)||gr(!0)},Dr=function(){Yr(!0)},un=Object(e.useRef)(null),wn=function(je){Nt(je,!0,vt.current)!==!1&&gr(!0)},ai=function(){vt.current=!0},ei=function(){vt.current=!1},gi=function(je){var Ye=je.target.value;if(ur&&un.current&&/[\r\n]/.test(un.current)){var rt=un.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");Ye=Ye.replace(rt,un.current)}un.current=null,wn(Ye)},Ii=function(je){var Ye=je.clipboardData,rt=Ye.getData("text");un.current=rt},ki=function(je){var Ye=qt();if(je.target!==nt.current){Ye||je.preventDefault();var rt=document.body.style.msTouchAction!==void 0;rt?setTimeout(function(){nt.current.focus()}):nt.current.focus()}(Zn!=="combobox"&&(!ni||!Ye)||!mn)&&(mn&&Nt("",!0,!1),gr())},Qi={inputRef:nt,onInputKeyDown:Mr,onInputMouseDown:Dr,onInputChange:gi,onInputPaste:Ii,onInputCompositionStart:ai,onInputCompositionEnd:ei},it=kr?e.createElement(dr,Object.assign({},Pe,Qi)):e.createElement(kt,Object.assign({},Pe,Qi));return e.createElement("div",{ref:Pt,className:"".concat(ar,"-selector"),onMouseDown:ki},it)},pe=e.forwardRef(Xe);pe.displayName="Selector";var te=pe,$e=n("Uaa1"),He=function(Pe){var Be=typeof Pe!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Be,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Be,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Be,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Be,adjustY:1}}}},ae=function(Pe,Be){var nt=Pe.prefixCls,vt=Pe.disabled,ar=Pe.visible,kr=Pe.children,mn=Pe.popupElement,Zn=Pe.containerWidth,ni=Pe.animation,ur=Pe.transitionName,Nt=Pe.dropdownStyle,bt=Pe.dropdownClassName,gr=Pe.direction,Yt=gr===void 0?"ltr":gr,Pt=Pe.dropdownMatchSelectWidth,rr=Pt===void 0?!0:Pt,Rt=Pe.dropdownRender,qt=Pe.dropdownAlign,Yr=Pe.getPopupContainer,Mr=Pe.empty,Dr=Pe.getTriggerDOMNode,un=Object(S.a)(Pe,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),wn="".concat(nt,"-dropdown"),ai=mn;Rt&&(ai=Rt(mn));var ei=e.useMemo(function(){return He(rr)},[rr]),gi=ni?"".concat(wn,"-").concat(ni):ur,Ii=e.useRef(null);e.useImperativeHandle(Be,function(){return{getPopupElement:function(){return Ii.current}}});var ki=Object(W.a)({minWidth:Zn},Nt);return typeof rr=="number"?ki.width=rr:rr&&(ki.width=Zn),e.createElement($e.a,Object.assign({},un,{showAction:[],hideAction:[],popupPlacement:Yt==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:ei,prefixCls:wn,popupTransitionName:gi,popup:e.createElement("div",{ref:Ii},ai),popupAlign:qt,popupVisible:ar,getPopupContainer:Yr,popupClassName:s()(bt,Object(b.a)({},"".concat(wn,"-empty"),Mr)),popupStyle:ki,getTriggerDOMNode:Dr}),kr)},ft=e.forwardRef(ae);ft.displayName="SelectTrigger";var Mt=ft,mt="RC_SELECT_INTERNAL_PROPS_MARK";function or(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Pe=e.useState(!1),Be=Object(E.a)(Pe,2),nt=Be[0],vt=Be[1],ar=e.useRef(null),kr=function(){window.clearTimeout(ar.current)};e.useEffect(function(){return kr},[]);var mn=function(ni,ur){kr(),ar.current=window.setTimeout(function(){vt(ni),ur&&ur()},Fe)};return[nt,mn,kr]}function vr(Fe,Pe,Be){var nt=e.useRef(null);nt.current={elements:Fe.filter(function(vt){return vt}),open:Pe,triggerOpen:Be},e.useEffect(function(){function vt(ar){var kr=ar.target;nt.current.open&&nt.current.elements.every(function(mn){return!mn.contains(kr)&&mn!==kr})&&nt.current.triggerOpen(!1)}return window.addEventListener("mousedown",vt),function(){return window.removeEventListener("mousedown",vt)}},[])}function fn(Fe){var Pe=e.useRef(Fe),Be=e.useMemo(function(){var nt=new Map;Pe.current.forEach(function(ar){var kr=ar.value,mn=ar.label;kr!==mn&&nt.set(kr,mn)});var vt=Fe.map(function(ar){var kr=nt.get(ar.value);return ar.value===ar.label&&kr?Object(W.a)(Object(W.a)({},ar),{},{label:kr}):ar});return Pe.current=vt,vt},[Fe]);return Be}function sr(Fe,Pe){var Be=e.useRef(null),nt=e.useMemo(function(){var ar=new Map;return Pe.forEach(function(kr){var mn=kr.data.value;ar.set(mn,kr)}),ar},[Fe,Pe]);Be.current=nt;var vt=function(kr){return kr.map(function(mn){return Be.current.get(mn)}).filter(Boolean)};return vt}var Ir=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function lr(Fe){var Pe=Fe.prefixCls,Be=Fe.components.optionList,nt=Fe.convertChildrenToData,vt=Fe.flattenOptions,ar=Fe.getLabeledValue,kr=Fe.filterOptions,mn=Fe.isValueDisabled,Zn=Fe.findValueOption,ni=Fe.warningProps,ur=Fe.fillOptionsWithMissingValue,Nt=Fe.omitDOMProps;function bt(Yt,Pt){var rr,Rt=Yt.prefixCls,qt=Rt===void 0?Pe:Rt,Yr=Yt.className,Mr=Yt.id,Dr=Yt.open,un=Yt.defaultOpen,wn=Yt.options,ai=Yt.children,ei=Yt.mode,gi=Yt.value,Ii=Yt.defaultValue,ki=Yt.labelInValue,Qi=Yt.showSearch,it=Yt.inputValue,Me=Yt.searchValue,je=Yt.filterOption,Ye=Yt.optionFilterProp,rt=Ye===void 0?"value":Ye,qe=Yt.autoClearSearchValue,at=qe===void 0?!0:qe,St=Yt.onSearch,gt=Yt.allowClear,hr=Yt.clearIcon,Qr=Yt.showArrow,Xr=Yt.inputIcon,dn=Yt.menuItemSelectedIcon,mr=Yt.disabled,Kn=Yt.loading,Rr=Yt.defaultActiveFirstOption,Rn=Yt.notFoundContent,An=Rn===void 0?"Not Found":Rn,Zr=Yt.optionLabelProp,hi=Yt.backfill,Mi=Yt.getInputElement,Zi=Yt.getPopupContainer,qr=Yt.listHeight,xn=qr===void 0?200:qr,zn=Yt.listItemHeight,Ht=zn===void 0?20:zn,Tt=Yt.animation,Dt=Yt.transitionName,Bt=Yt.virtual,jt=Yt.dropdownStyle,Ot=Yt.dropdownClassName,nr=Yt.dropdownMatchSelectWidth,pr=Yt.dropdownRender,Ar=Yt.dropdownAlign,Nr=Yt.showAction,Hn=Nr===void 0?[]:Nr,Ln=Yt.direction,ci=Yt.tokenSeparators,hn=Yt.tagRender,Fr=Yt.onPopupScroll,En=Yt.onDropdownVisibleChange,Wn=Yt.onFocus,Yn=Yt.onBlur,ii=Yt.onKeyUp,xi=Yt.onKeyDown,Ni=Yt.onMouseDown,Li=Yt.onChange,oa=Yt.onSelect,ma=Yt.onDeselect,ia=Yt.onClear,ba=Yt.internalProps,vi=ba===void 0?{}:ba,On=Object(S.a)(Yt,["prefixCls","className","id","open","defaultOpen","options","children","mode","value","defaultValue","labelInValue","showSearch","inputValue","searchValue","filterOption","optionFilterProp","autoClearSearchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","menuItemSelectedIcon","disabled","loading","defaultActiveFirstOption","notFoundContent","optionLabelProp","backfill","getInputElement","getPopupContainer","listHeight","listItemHeight","animation","transitionName","virtual","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown","onChange","onSelect","onDeselect","onClear","internalProps"]),Fi=vi.mark===mt,ha=Nt?Nt(On):On;Ir.forEach(function(pa){delete ha[pa]});var ea=Object(e.useRef)(null),aa=Object(e.useRef)(null),Or=Object(e.useRef)(null),wr=Object(e.useRef)(null),Sn=Object(e.useMemo)(function(){return(ci||[]).some(function(pa){return[`
|
|
|
`,`\r
|
|
|
`].includes(pa)})},[ci]),cr=or(),Lr=Object(E.a)(cr,3),Wr=Lr[0],on=Lr[1],Nn=Lr[2],Et=Object(e.useState)(),Cr=Object(E.a)(Et,2),_r=Cr[0],$r=Cr[1];Object(e.useEffect)(function(){$r("rc_select_".concat(Oe()))},[]);var yn=Mr||_r,Tn=Zr;Tn===void 0&&(Tn=wn?"label":"children");var vn=ei==="combobox"?!1:ki,Qn=ei==="tags"||ei==="multiple",Fn=Qi!==void 0?Qi:Qn||ei==="combobox",fi=Object(e.useRef)(null);e.useImperativeHandle(Pt,function(){return{focus:Or.current.focus,blur:Or.current.blur}});var Ri=Object(me.a)(Ii,{value:gi}),yi=Object(E.a)(Ri,2),Ci=yi[0],Wi=yi[1],qi=Object(e.useMemo)(function(){return Ie(Ci,{labelInValue:vn,combobox:ei==="combobox"})},[Ci,vn]),zi=Object(e.useMemo)(function(){return new Set(qi)},[qi]),Ki=Object(e.useState)(null),ji=Object(E.a)(Ki,2),Yi=ji[0],ca=ji[1],Ca=Object(e.useState)(""),ra=Object(E.a)(Ca,2),Ma=ra[0],La=ra[1],va=Ma;ei==="combobox"&&Ci!==void 0?va=Ci:Me!==void 0?va=Me:it&&(va=it);var ga=Object(e.useMemo)(function(){var pa=wn;return pa===void 0&&(pa=nt(ai)),ei==="tags"&&ur&&(pa=ur(pa,Ci,Tn,ki)),pa||[]},[wn,ai,ei,Ci]),Oa=Object(e.useMemo)(function(){return vt(ga,Yt)},[ga]),Aa=sr(qi,Oa),Ga=Object(e.useMemo)(function(){if(!va||!Fn)return Object(G.a)(ga);var pa=kr(va,ga,{optionFilterProp:rt,filterOption:ei==="combobox"&&je===void 0?function(){return!0}:je});return ei==="tags"&&pa.every(function(Ea){return Ea[rt]!==va})&&pa.unshift({value:va,label:va,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),pa},[ga,va,ei,Fn]),_a=Object(e.useMemo)(function(){return vt(Ga,Yt)},[Ga]);Object(e.useEffect)(function(){wr.current&&wr.current.scrollTo&&wr.current.scrollTo(0)},[va]);var Va=Object(e.useMemo)(function(){var pa=qi.map(function(Ea){var Fa=Aa([Ea]),Ka=ar(Ea,{options:Fa,prevValue:Ci,labelInValue:vn,optionLabelProp:Tn});return Object(W.a)(Object(W.a)({},Ka),{},{disabled:mn(Ea,Fa)})});return!ei&&pa.length===1&&pa[0].value===null&&pa[0].label===null?[]:pa},[Ci,ga,ei]);Va=fn(Va);var Bi=function(Ea,Fa,Ka){var lo=Aa([Ea]),so=Zn([Ea],lo)[0];if(!vi.skipTriggerSelect){var Co=vn?ar(Ea,{options:lo,prevValue:Ci,labelInValue:vn,optionLabelProp:Tn}):Ea;Fa&&oa?oa(Co,so):!Fa&&ma&&ma(Co,so)}Fi&&(Fa&&vi.onRawSelect?vi.onRawSelect(Ea,so,Ka):!Fa&&vi.onRawDeselect&&vi.onRawDeselect(Ea,so,Ka))},io=Object(e.useState)([]),oo=Object(E.a)(io,2),Qo=oo[0],mo=oo[1],To=function(Ea){if(Fi&&vi.skipTriggerChange)return;var Fa=Aa(Ea),Ka=ke(Array.from(Ea),{labelInValue:vn,options:Fa,getLabeledValue:ar,prevValue:Ci,optionLabelProp:Tn}),lo=Qn?Ka:Ka[0];if(Li&&(qi.length!==0||Ka.length!==0)){var so=Zn(Ea,Fa,{prevValueOptions:Qo});mo(so.map(function(Co,Lo){var is=Object(W.a)({},Co);return Object.defineProperty(is,"_INTERNAL_OPTION_VALUE_",{get:function(){return Ea[Lo]}}),is})),Li(lo,Qn?so:so[0])}Wi(lo)},ao=function(Ea,Fa){var Ka=Fa.selected,lo=Fa.source;if(mr)return;var so;Qn?(so=new Set(qi),Ka?so.add(Ea):so.delete(Ea)):(so=new Set,so.add(Ea)),(Qn||!Qn&&Array.from(qi)[0]!==Ea)&&To(Array.from(so)),Bi(Ea,!Qn||Ka,lo),ei==="combobox"?(La(String(Ea)),ca("")):(!Qn||at)&&(La(""),ca(""))},So=function(Ea,Fa){ao(Ea,Object(W.a)(Object(W.a)({},Fa),{},{source:"option"}))},bo=function(Ea,Fa){ao(Ea,Object(W.a)(Object(W.a)({},Fa),{},{source:"selection"}))},to=ei==="combobox"&&Mi&&Mi()||null,Jo=Object(me.a)(void 0,{defaultValue:un,value:Dr}),Uo=Object(E.a)(Jo,2),wo=Uo[0],ts=Uo[1],Ia=wo,Oo=!An&&!Ga.length;(mr||Oo&&Ia&&ei==="combobox")&&(Ia=!1);var Io=Oo?!1:Ia,os=function(Ea){var Fa=Ea!==void 0?Ea:!Ia;wo!==Fa&&!mr&&(ts(Fa),En&&En(Fa))};vr([ea.current,aa.current&&aa.current.getPopupElement()],Io,os);var xo=function(Ea,Fa,Ka){var lo=!0,so=Ea;ca(null);var Co=Ka?null:Ne(Ea,ci),Lo=Co;if(ei==="combobox")Fa&&To([so]);else if(Co){so="",ei!=="tags"&&(Lo=Co.map(function(cs){var Rs=Oa.find(function(Ko){var as=Ko.data;return as[Tn]===cs});return Rs?Rs.data.value:null}).filter(function(cs){return cs!==null}));var is=Array.from(new Set([].concat(Object(G.a)(qi),Object(G.a)(Lo))));To(is),is.forEach(function(cs){Bi(cs,!0,"input")}),os(!1),lo=!1}return La(so),St&&va!==so&&St(so),lo},rs=function(Ea){var Fa=Array.from(new Set([].concat(Object(G.a)(qi),[Ea])));To(Fa),Fa.forEach(function(Ka){Bi(Ka,!0,"input")}),La("")};Object(e.useEffect)(function(){wo&&!!mr&&ts(!1)},[mr]),Object(e.useEffect)(function(){!Ia&&!Qn&&ei!=="combobox"&&xo("",!1,!1)},[Ia]);var Ho=Vt(),_o=Object(E.a)(Ho,2),uo=_o[0],Ha=_o[1],pt=function(Ea){var Fa=uo(),Ka=Ea.which;if(!Ia&&Ka===C.a.ENTER&&os(!0),Ha(!!va),Ka===C.a.BACKSPACE&&!Fa&&Qn&&!va&&qi.length){var lo=Re(Va,qi);lo.removedValue!==null&&(To(lo.values),Bi(lo.removedValue,!1,"input"))}for(var so=arguments.length,Co=new Array(so>1?so-1:0),Lo=1;Lo<so;Lo++)Co[Lo-1]=arguments[Lo];if(Ia&&wr.current){var is;(is=wr.current).onKeyDown.apply(is,[Ea].concat(Co))}xi&&xi.apply(void 0,[Ea].concat(Co))},xr=function(Ea){for(var Fa=arguments.length,Ka=new Array(Fa>1?Fa-1:0),lo=1;lo<Fa;lo++)Ka[lo-1]=arguments[lo];if(Ia&&wr.current){var so;(so=wr.current).onKeyUp.apply(so,[Ea].concat(Ka))}ii&&ii.apply(void 0,[Ea].concat(Ka))},Jr=Object(e.useRef)(!1),Vr=function(){on(!0),mr||(Wn&&!Jr.current&&Wn.apply(void 0,arguments),Hn.includes("focus")&&os(!0)),Jr.current=!0},Vn=function(){if(on(!1,function(){Jr.current=!1,os(!1)}),mr)return;va&&(ei==="tags"?(xo("",!1,!1),To(Array.from(new Set([].concat(Object(G.a)(qi),[va]))))):ei==="multiple"&&La("")),Yn&&Yn.apply(void 0,arguments)},sn=[];Object(e.useEffect)(function(){return function(){sn.forEach(function(pa){return clearTimeout(pa)}),sn.splice(0,sn.length)}},[]);var zr=function(Ea){var Fa=Ea.target,Ka=aa.current&&aa.current.getPopupElement();if(Ka&&Ka.contains(Fa)){var lo=setTimeout(function(){var is=sn.indexOf(lo);is!==-1&&sn.splice(is,1),Nn(),Ka.contains(document.activeElement)||Or.current.focus()});sn.push(lo)}if(Ni){for(var so=arguments.length,Co=new Array(so>1?so-1:0),Lo=1;Lo<so;Lo++)Co[Lo-1]=arguments[Lo];Ni.apply(void 0,[Ea].concat(Co))}},qn=Object(e.useState)(0),en=Object(E.a)(qn,2),Un=en[0],si=en[1],ui=Rr!==void 0?Rr:ei!=="combobox",oi=function(Ea,Fa){si(Fa),hi&&ei==="combobox"&&Ea!==null&&ca(String(Ea))},Ei=Object(e.useState)(null),pi=Object(E.a)(Ei,2),Ai=pi[0],Oi=pi[1],na=Object(e.useState)({}),Hi=Object(E.a)(na,2),fa=Hi[1];function Xa(){fa({})}Jt(function(){if(Io){var pa=Math.ceil(ea.current.offsetWidth);Ai!==pa&&Oi(pa)}},[Io]);var xa=e.createElement(Be,{ref:wr,prefixCls:qt,id:yn,open:Ia,childrenAsData:!wn,options:Ga,flattenOptions:_a,multiple:Qn,values:zi,height:xn,itemHeight:Ht,onSelect:So,onToggleOpen:os,onActiveValue:oi,defaultActiveFirstOption:ui,notFoundContent:An,onScroll:Fr,searchValue:va,menuItemSelectedIcon:dn,virtual:Bt!==!1&&nr!==!1,onMouseEnter:Xa}),wa,Da=function(){Fi&&vi.onClear&&vi.onClear(),ia&&ia(),To([]),xo("",!1,!1)};!mr&>&&(qi.length||va)&&(wa=e.createElement(I,{className:"".concat(qt,"-clear"),onMouseDown:Da,customizeIcon:hr},"\xD7"));var ja=Qr!==void 0?Qr:Kn||!Qn&&ei!=="combobox",ko;ja&&(ko=e.createElement(I,{className:s()("".concat(qt,"-arrow"),Object(b.a)({},"".concat(qt,"-arrow-loading"),Kn)),customizeIcon:Xr,customizeIconProps:{loading:Kn,searchValue:va,open:Ia,focused:Wr,showSearch:Fn}}));var ro=s()(qt,Yr,(rr={},Object(b.a)(rr,"".concat(qt,"-focused"),Wr),Object(b.a)(rr,"".concat(qt,"-multiple"),Qn),Object(b.a)(rr,"".concat(qt,"-single"),!Qn),Object(b.a)(rr,"".concat(qt,"-allow-clear"),gt),Object(b.a)(rr,"".concat(qt,"-show-arrow"),ja),Object(b.a)(rr,"".concat(qt,"-disabled"),mr),Object(b.a)(rr,"".concat(qt,"-loading"),Kn),Object(b.a)(rr,"".concat(qt,"-open"),Ia),Object(b.a)(rr,"".concat(qt,"-customize-input"),to),Object(b.a)(rr,"".concat(qt,"-show-search"),Fn),rr));return e.createElement("div",Object.assign({className:ro},ha,{ref:ea,onMouseDown:zr,onKeyDown:pt,onKeyUp:xr,onFocus:Vr,onBlur:Vn}),Wr&&!Ia&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(qi.join(", "))),e.createElement(Mt,{ref:aa,disabled:mr,prefixCls:qt,visible:Io,popupElement:xa,containerWidth:Ai,animation:Tt,transitionName:Dt,dropdownStyle:jt,dropdownClassName:Ot,direction:Ln,dropdownMatchSelectWidth:nr,dropdownRender:pr,dropdownAlign:Ar,getPopupContainer:Zi,empty:!ga.length,getTriggerDOMNode:function(){return fi.current}},e.createElement(te,Object.assign({},Yt,{domRef:fi,prefixCls:qt,inputElement:to,ref:Or,id:yn,showSearch:Fn,mode:ei,accessibilityIndex:Un,multiple:Qn,tagRender:hn,values:Va,open:Ia,onToggleOpen:os,searchValue:va,activeValue:Yi,onSearch:xo,onSearchSubmit:rs,onSelect:bo,tokenWithEnter:Sn}))),ko,wa)}var gr=e.forwardRef(bt);return gr}function Wt(Fe){var Pe=Fe.mode,Be=Fe.options,nt=Fe.children,vt=Fe.backfill,ar=Fe.allowClear,kr=Fe.placeholder,mn=Fe.getInputElement,Zn=Fe.showSearch,ni=Fe.onSearch,ur=Fe.defaultOpen,Nt=Fe.autoFocus,bt=Fe.labelInValue,gr=Fe.value,Yt=Fe.inputValue,Pt=Fe.optionLabelProp,rr=Pe==="multiple"||Pe==="tags",Rt=Zn!==void 0?Zn:rr||Pe==="combobox",qt=Be||Q(nt);if(Object(be.a)(Pe!=="tags"||qt.every(function(un){return!un.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Pe==="tags"||Pe==="combobox"){var Yr=qt.some(function(un){return un.options?un.options.some(function(wn){return typeof("value"in wn?wn.value:wn.key)=="number"}):typeof("value"in un?un.value:un.key)=="number"});Object(be.a)(!Yr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(be.a)(Pe!=="combobox"||!Pt,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(be.a)(Pe==="combobox"||!vt,"`backfill` only works with `combobox` mode."),Object(be.a)(Pe==="combobox"||!mn,"`getInputElement` only work with `combobox` mode."),Object(be.b)(Pe!=="combobox"||!mn||!ar||!kr,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ni&&!Rt&&Pe!=="combobox"&&Pe!=="tags"&&Object(be.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(be.b)(!ur||Nt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),gr!=null){var Mr=le(gr);Object(be.a)(!bt||Mr.every(function(un){return Object(ce.a)(un)==="object"&&("key"in un||"value"in un)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(be.a)(!rr||Array.isArray(gr),"`value` should be array when `mode` is `multiple` or `tags`")}if(nt){var Dr=null;Object(z.a)(nt).some(function(un){if(!e.isValidElement(un)||!un.type)return!1;var wn=un.type;if(wn.isSelectOption)return!1;if(wn.isSelectOptGroup){var ai=Object(z.a)(un.props.children).every(function(ei){return!e.isValidElement(ei)||!un.type||ei.type.isSelectOption?!0:(Dr=ei.type,!1)});return!ai}return Dr=wn,!0}),Dr&&Object(be.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Dr.displayName||Dr.name||Dr,"`.")),Object(be.a)(Yt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var xt=Wt,rn=lr({prefixCls:"rc-select",components:{optionList:F},convertChildrenToData:Q,flattenOptions:st,getLabeledValue:Y,filterOptions:we,isValueDisabled:Ee,findValueOption:J,warningProps:xt,fillOptionsWithMissingValue:de}),Dn=function(Fe){Object(g.a)(Be,Fe);var Pe=Object(v.a)(Be);function Be(){var nt;return Object(c.a)(this,Be),nt=Pe.apply(this,arguments),nt.selectRef=e.createRef(),nt.focus=function(){nt.selectRef.current.focus()},nt.blur=function(){nt.selectRef.current.blur()},nt}return Object(d.a)(Be,[{key:"render",value:function(){return e.createElement(rn,Object.assign({ref:this.selectRef},this.props))}}]),Be}(e.Component);Dn.Option=X,Dn.OptGroup=j;var Xn=Dn,ri=Xn,Ui=n("H84U"),Bn=n("1vzs"),Jn=n("3Nzz"),Xt=function(Fe){i()(Be,Fe);var Pe=o()(Be);function Be(){var nt;return f()(this,Be),nt=Pe.apply(this,arguments),nt.selectRef=e.createRef(),nt.focus=function(){nt.selectRef.current&&nt.selectRef.current.focus()},nt.blur=function(){nt.selectRef.current&&nt.selectRef.current.blur()},nt.getMode=function(){var vt=nt.props.mode;return vt==="combobox"?void 0:vt===Be.SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":vt},nt.renderSelect=function(vt){var ar=vt.getPopupContainer,kr=vt.getPrefixCls,mn=vt.renderEmpty,Zn=vt.direction,ni=vt.virtual,ur=vt.dropdownMatchSelectWidth,Nt=nt.props,bt=Nt.prefixCls,gr=Nt.notFoundContent,Yt=Nt.className,Pt=Nt.size,rr=Nt.listHeight,Rt=rr===void 0?256:rr,qt=Nt.listItemHeight,Yr=qt===void 0?24:qt,Mr=Nt.getPopupContainer,Dr=Nt.dropdownClassName,un=Nt.bordered,wn=kr("select",bt),ai=nt.getMode(),ei=ai==="multiple"||ai==="tags",gi;gr!==void 0?gi=gr:ai==="combobox"?gi=null:gi=mn("Select");var Ii=Object(Bn.a)(A()(A()({},nt.props),{multiple:ei,prefixCls:wn})),ki=Ii.suffixIcon,Qi=Ii.itemIcon,it=Ii.removeIcon,Me=Ii.clearIcon,je=Object(l.default)(nt.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered"]),Ye=s()(Dr,p()({},"".concat(wn,"-dropdown-").concat(Zn),Zn==="rtl"));return e.createElement(Jn.b.Consumer,null,function(rt){var qe,at=Pt||rt,St=s()(Yt,(qe={},p()(qe,"".concat(wn,"-lg"),at==="large"),p()(qe,"".concat(wn,"-sm"),at==="small"),p()(qe,"".concat(wn,"-rtl"),Zn==="rtl"),p()(qe,"".concat(wn,"-borderless"),!un),qe));return e.createElement(ri,A()({ref:nt.selectRef,virtual:ni,dropdownMatchSelectWidth:ur},je,{listHeight:Rt,listItemHeight:Yr,mode:ai,prefixCls:wn,direction:Zn,inputIcon:ki,menuItemSelectedIcon:Qi,removeIcon:it,clearIcon:Me,notFoundContent:gi,className:St,getPopupContainer:Mr||ar,dropdownClassName:Ye}))})},nt}return u()(Be,[{key:"render",value:function(){return e.createElement(Ui.a,null,this.renderSelect)}}]),Be}(e.Component);Xt.Option=X,Xt.OptGroup=j,Xt.SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",Xt.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var _t=D.a=Xt},"2fw6":function(k,D,n){var y=n("y+Vt"),p=y.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(A,m,f){f&&A.moveTo(m.cx+m.r,m.cy),A.arc(m.cx,m.cy,m.r,0,Math.PI*2,!0)}});k.exports=p},"2gN3":function(k,D,n){var y=n("Kz5y"),p=y["__core-js_shared__"];k.exports=p},"2jpz":function(k,D,n){"use strict";n.d(D,"a",function(){return d});var y=n("cDf5"),p=n.n(y),x=n("q1tI"),A=n.n(x),m=n("TSYQ"),f=n.n(m),h=n("zU+y"),u=n.n(h),a=n("HT/e"),i=n.n(a),t=n("hFM2"),o=n.n(t),e=n("PLTn"),l=n.n(e),r=n("/rzN"),s=n.n(r),c=n("0n0R");function d(g,v,b,S){var E=S.isLeaf,C=S.expanded,_=S.loading;if(_)return x.createElement(u.a,{className:"".concat(g,"-switcher-loading-icon")});var T;if(b&&p()(b)==="object"&&(T=b.showLeafIcon),E)return b?p()(b)==="object"&&!T?x.createElement("span",{className:"".concat(g,"-switcher-leaf-line")}):x.createElement(i.a,{className:"".concat(g,"-switcher-line-icon")}):null;var w="".concat(g,"-switcher-icon");return Object(c.b)(v)?Object(c.a)(v,{className:f()(v.props.className||"",w)}):v||(b?C?x.createElement(o.a,{className:"".concat(g,"-switcher-line-icon")}):x.createElement(l.a,{className:"".concat(g,"-switcher-line-icon")}):x.createElement(s.a,{className:w}))}},"2oIt":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},"2uGb":function(k,D,n){var y=n("ProS");n("ko1b"),n("s2lz"),n("RBEP");var p=n("kMLO"),x=n("nKiI");y.registerVisual(p),y.registerLayout(x)},"2w7y":function(k,D,n){var y=n("ProS");n("qMZE"),n("g0SD"),y.registerPreprocessor(function(p){p.markPoint=p.markPoint||{}})},"33Ds":function(k,D,n){var y=n("ProS"),p=n("b9oc"),x=n("Kagy"),A=n("IUWy"),m=x.toolbox.restore;function f(a){this.model=a}f.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:m.title};var h=f.prototype;h.onclick=function(a,i,t){p.clear(a),i.dispatchAction({type:"restore",from:this.uid})},A.register("restore",f),y.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(a,i){i.resetOption("recreate")});var u=f;k.exports=u},"34/K":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(m,f){if(!(m instanceof f))throw new TypeError("Cannot call a class as a function")}function p(m,f){for(var h=0;h<f.length;h++){var u=f[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}function x(m,f,h){return f&&p(m.prototype,f),h&&p(m,h),m}var A=function(){function m(){y(this,m),this._lines=0}return x(m,[{key:"decodeRect",value:function(h,u,a,i,t,o,e){this._lines===0&&(this._lines=i);var l=e==8?1:4,r=a*l;if(t.rQwait("RAW",r))return!1;var s=u+(i-this._lines),c=Math.min(this._lines,Math.floor(t.rQlen/r)),d=t.rQ,g=t.rQi;if(e==8){for(var v=a*c,b=new Uint8Array(v*4),S=0;S<v;S++)b[S*4+0]=(d[g+S]>>0&3)*255/3,b[S*4+1]=(d[g+S]>>2&3)*255/3,b[S*4+2]=(d[g+S]>>4&3)*255/3,b[S*4+4]=0;d=b,g=0}return o.blitImage(h,s,a,c,d,g),t.rQskipBytes(c*r),this._lines-=c,!(this._lines>0)}}]),m}();D.default=A},"3690":function(k,D,n){"use strict";function y(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(t){return typeof t}:y=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(a)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var p=A(n("Lo0S"));function x(){if(typeof WeakMap!="function")return null;var a=new WeakMap;return x=function(){return a},a}function A(a){if(a&&a.__esModule)return a;if(a===null||y(a)!=="object"&&typeof a!="function")return{default:a};var i=x();if(i&&i.has(a))return i.get(a);var t={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in a)if(Object.prototype.hasOwnProperty.call(a,e)){var l=o?Object.getOwnPropertyDescriptor(a,e):null;l&&(l.get||l.set)?Object.defineProperty(t,e,l):t[e]=a[e]}return t.default=a,i&&i.set(a,t),t}function m(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function f(a,i){for(var t=0;t<i.length;t++){var o=i[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(a,o.key,o)}}function h(a,i,t){return i&&f(a.prototype,i),t&&f(a,t),a}var u=function(){function a(){m(this,a),this._tiles=0,this._lastsubencoding=0}return h(a,[{key:"decodeRect",value:function(t,o,e,l,r,s,c){for(this._tiles===0&&(this._tilesX=Math.ceil(e/16),this._tilesY=Math.ceil(l/16),this._totalTiles=this._tilesX*this._tilesY,this._tiles=this._totalTiles);this._tiles>0;){var d=1;if(r.rQwait("HEXTILE",d))return!1;var g=r.rQ,v=r.rQi,b=g[v];if(b>30)throw new Error("Illegal hextile subencoding (subencoding: "+b+")");var S=this._totalTiles-this._tiles,E=S%this._tilesX,C=Math.floor(S/this._tilesX),_=t+E*16,T=o+C*16,w=Math.min(16,t+e-_),O=Math.min(16,o+l-T);if(b&1)d+=w*O*4;else if(b&2&&(d+=4),b&4&&(d+=4),b&8){if(d++,r.rQwait("HEXTILE",d))return!1;var I=g[v+d-1];b&16?d+=I*(4+2):d+=I*2}if(r.rQwait("HEXTILE",d))return!1;if(v++,b===0)this._lastsubencoding&1?p.Debug(" Ignoring blank after RAW"):s.fillRect(_,T,w,O,this._background);else if(b&1)s.blitImage(_,T,w,O,g,v),v+=d-1;else{if(b&2&&(this._background=[g[v],g[v+1],g[v+2],g[v+3]],v+=4),b&4&&(this._foreground=[g[v],g[v+1],g[v+2],g[v+3]],v+=4),s.startTile(_,T,w,O,this._background),b&8){var R=g[v];v++;for(var M=0;M<R;M++){var F=void 0;b&16?(F=[g[v],g[v+1],g[v+2],g[v+3]],v+=4):F=this._foreground;var P=g[v];v++;var X=P>>4,B=P&15,j=g[v];v++;var W=(j>>4)+1,z=(j&15)+1;s.subTile(X,B,W,z,F)}}s.finishTile()}r.rQi=v,this._lastsubencoding=b,this._tiles--}return!0}}]),a}();D.default=u},"3A9y":function(k,D){function n(y){return this.__data__.has(y)}k.exports=n},"3C/r":function(k,D){var n=function(x,A){this.image=x,this.repeat=A,this.type="pattern"};n.prototype.getCanvasPattern=function(p){return p.createPattern(this.image,this.repeat||"repeat")};var y=n;k.exports=y},"3CBa":function(k,D,n){var y=n("hydK"),p=y.createElement,x=n("bYtY"),A=n("SUKs"),m=n("y+Vt"),f=n("Dagg"),h=n("dqUG"),u=n("DBLp"),a=n("sW+o"),i=n("n6Mw"),t=n("vKoX"),o=n("P47w"),e=o.path,l=o.image,r=o.text;function s(w){return parseInt(w,10)}function c(w){return w instanceof m?e:w instanceof f?l:w instanceof h?r:e}function d(w,O){return O&&w&&O.parentNode!==w}function g(w,O,I){if(d(w,O)&&I){var R=I.nextSibling;R?w.insertBefore(O,R):w.appendChild(O)}}function v(w,O){if(d(w,O)){var I=w.firstChild;I?w.insertBefore(O,I):w.appendChild(O)}}function b(w,O){O&&w&&O.parentNode===w&&w.removeChild(O)}function S(w){return w.__textSvgEl}function E(w){return w.__svgEl}var C=function(O,I,R,M){this.root=O,this.storage=I,this._opts=R=x.extend({},R||{});var F=p("svg");F.setAttribute("xmlns","http://www.w3.org/2000/svg"),F.setAttribute("version","1.1"),F.setAttribute("baseProfile","full"),F.style.cssText="user-select:none;position:absolute;left:0;top:0;";var P=p("g");F.appendChild(P);var X=p("g");F.appendChild(X),this.gradientManager=new a(M,X),this.clipPathManager=new i(M,X),this.shadowManager=new t(M,X);var B=document.createElement("div");B.style.cssText="overflow:hidden;position:relative",this._svgDom=F,this._svgRoot=X,this._backgroundRoot=P,this._viewport=B,O.appendChild(B),B.appendChild(F),this.resize(R.width,R.height),this._visibleList=[]};C.prototype={constructor:C,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 I=p("rect");I.setAttribute("width",this.getWidth()),I.setAttribute("height",this.getHeight()),I.setAttribute("x",0),I.setAttribute("y",0),I.setAttribute("id",0),I.style.fill=O,this._backgroundRoot.appendChild(I),this._backgroundNode=I},_paintList:function(O){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var I=this._svgRoot,R=this._visibleList,M=O.length,F=[],P;for(P=0;P<M;P++){var X=O[P],B=c(X),j=E(X)||S(X);X.invisible||(X.__dirty&&(B&&B.brush(X),this.clipPathManager.update(X),X.style&&(this.gradientManager.update(X.style.fill),this.gradientManager.update(X.style.stroke),this.shadowManager.update(j,X)),X.__dirty=!1),F.push(X))}var W=u(R,F),z;for(P=0;P<W.length;P++){var V=W[P];if(V.removed)for(var Q=0;Q<V.count;Q++){var X=R[V.indices[Q]],j=E(X),G=S(X);b(I,j),b(I,G)}}for(P=0;P<W.length;P++){var V=W[P];if(V.added)for(var Q=0;Q<V.count;Q++){var X=F[V.indices[Q]],j=E(X),G=S(X);z?g(I,j,z):v(I,j),j?g(I,G,j):z?g(I,G,z):v(I,G),g(I,G,j),z=G||j||z,this.gradientManager.addWithoutUpdate(j||G,X),this.shadowManager.addWithoutUpdate(j||G,X),this.clipPathManager.markUsed(X)}else if(!V.removed)for(var Q=0;Q<V.count;Q++){var X=F[V.indices[Q]],j=E(X),G=S(X),j=E(X),G=S(X);this.gradientManager.markUsed(X),this.gradientManager.addWithoutUpdate(j||G,X),this.shadowManager.markUsed(X),this.shadowManager.addWithoutUpdate(j||G,X),this.clipPathManager.markUsed(X),G&&g(I,G,j),z=j||G||z}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=F},_getDefs:function(O){var I=this._svgDom,R=I.getElementsByTagName("defs");if(R.length===0)if(O){var R=I.insertBefore(p("defs"),I.firstChild);return R.contains||(R.contains=function(F){var P=R.children;if(!P)return!1;for(var X=P.length-1;X>=0;--X)if(P[X]===F)return!0;return!1}),R}else return null;else return R[0]},resize:function(O,I){var R=this._viewport;R.style.display="none";var M=this._opts;if(O!=null&&(M.width=O),I!=null&&(M.height=I),O=this._getSize(0),I=this._getSize(1),R.style.display="",this._width!==O||this._height!==I){this._width=O,this._height=I;var F=R.style;F.width=O+"px",F.height=I+"px";var P=this._svgDom;P.setAttribute("width",O),P.setAttribute("height",I)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",O),this._backgroundNode.setAttribute("height",I))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(O){var I=this._opts,R=["width","height"][O],M=["clientWidth","clientHeight"][O],F=["paddingLeft","paddingTop"][O],P=["paddingRight","paddingBottom"][O];if(I[R]!=null&&I[R]!=="auto")return parseFloat(I[R]);var X=this.root,B=document.defaultView.getComputedStyle(X);return(X[M]||s(B[R])||s(X.style[R]))-(s(B[F])||0)-(s(B[P])||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(/></g,`>
|
|
|
\r<`));return"data:image/svg+xml;charset=UTF-8,"+O}};function _(w){return function(){A('In SVG mode painter not support method "'+w+'"')}}x.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(w){C.prototype[w]=_(w)});var T=C;k.exports=T},"3Fdi":function(k,D){var n=Function.prototype,y=n.toString;function p(x){if(x!=null){try{return y.call(x)}catch(A){}try{return x+""}catch(A){}}return""}k.exports=p},"3LNs":function(k,D,n){var y=n("bYtY"),p=n("Yl7c"),x=n("IwbS"),A=n("zTMp"),m=n("YH21"),f=n("iLNv"),h=n("4NO4"),u=h.makeInner,a=u(),i=y.clone,t=y.bind;function o(){}o.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(g,v,b,S){var E=v.get("value"),C=v.get("status");if(this._axisModel=g,this._axisPointerModel=v,this._api=b,!S&&this._lastValue===E&&this._lastStatus===C)return;this._lastValue=E,this._lastStatus=C;var _=this._group,T=this._handle;if(!C||C==="hide"){_&&_.hide(),T&&T.hide();return}_&&_.show(),T&&T.show();var w={};this.makeElOption(w,E,g,v,b);var O=w.graphicKey;O!==this._lastGraphicKey&&this.clear(b),this._lastGraphicKey=O;var I=this._moveAnimation=this.determineAnimation(g,v);if(!_)_=this._group=new x.Group,this.createPointerEl(_,w,g,v),this.createLabelEl(_,w,g,v),b.getZr().add(_);else{var R=y.curry(e,v,I);this.updatePointerEl(_,w,R,v),this.updateLabelEl(_,w,R,v)}c(_,v,!0),this._renderHandle(E)},remove:function(g){this.clear(g)},dispose:function(g){this.clear(g)},determineAnimation:function(g,v){var b=v.get("animation"),S=g.axis,E=S.type==="category",C=v.get("snap");if(!C&&!E)return!1;if(b==="auto"||b==null){var _=this.animationThreshold;if(E&&S.getBandWidth()>_)return!0;if(C){var T=A.getAxisInfo(g).seriesDataCount,w=S.getExtent();return Math.abs(w[0]-w[1])/T>_}return!1}return b===!0},makeElOption:function(g,v,b,S,E){},createPointerEl:function(g,v,b,S){var E=v.pointer;if(E){var C=a(g).pointerEl=new x[E.type](i(v.pointer));g.add(C)}},createLabelEl:function(g,v,b,S){if(v.label){var E=a(g).labelEl=new x.Rect(i(v.label));g.add(E),r(E,S)}},updatePointerEl:function(g,v,b){var S=a(g).pointerEl;S&&v.pointer&&(S.setStyle(v.pointer.style),b(S,{shape:v.pointer.shape}))},updateLabelEl:function(g,v,b,S){var E=a(g).labelEl;E&&(E.setStyle(v.label.style),b(E,{shape:v.label.shape,position:v.label.position}),r(E,S))},_renderHandle:function(g){if(this._dragging||!this.updateHandleTransform)return;var v=this._axisPointerModel,b=this._api.getZr(),S=this._handle,E=v.getModel("handle"),C=v.get("status");if(!E.get("show")||!C||C==="hide"){S&&b.remove(S),this._handle=null;return}var _;this._handle||(_=!0,S=this._handle=x.createIcon(E.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(O){m.stop(O.event)},onmousedown:t(this._onHandleDragMove,this,0,0),drift:t(this._onHandleDragMove,this),ondragend:t(this._onHandleDragEnd,this)}),b.add(S)),c(S,v,!1);var T=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];S.setStyle(E.getItemStyle(null,T));var w=E.get("size");y.isArray(w)||(w=[w,w]),S.attr("scale",[w[0]/2,w[1]/2]),f.createOrUpdate(this,"_doDispatchAxisPointer",E.get("throttle")||0,"fixRate"),this._moveHandleToValue(g,_)},_moveHandleToValue:function(g,v){e(this._axisPointerModel,!v&&this._moveAnimation,this._handle,s(this.getHandleTransform(g,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(g,v){var b=this._handle;if(!b)return;this._dragging=!0;var S=this.updateHandleTransform(s(b),[g,v],this._axisModel,this._axisPointerModel);this._payloadInfo=S,b.stopAnimation(),b.attr(s(S)),a(b).lastProp=null,this._doDispatchAxisPointer()},_doDispatchAxisPointer:function(){var g=this._handle;if(!g)return;var v=this._payloadInfo,b=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:v.cursorPoint[0],y:v.cursorPoint[1],tooltipOption:v.tooltipOption,axesInfo:[{axisDim:b.axis.dim,axisIndex:b.componentIndex}]})},_onHandleDragEnd:function(g){this._dragging=!1;var v=this._handle;if(!v)return;var b=this._axisPointerModel.get("value");this._moveHandleToValue(b),this._api.dispatchAction({type:"hideTip"})},getHandleTransform:null,updateHandleTransform:null,clear:function(g){this._lastValue=null,this._lastStatus=null;var v=g.getZr(),b=this._group,S=this._handle;v&&b&&(this._lastGraphicKey=null,b&&v.remove(b),S&&v.remove(S),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(g,v,b){return b=b||0,{x:g[b],y:g[1-b],width:v[b],height:v[1-b]}}},o.prototype.constructor=o;function e(g,v,b,S){l(a(b).lastProp,S)||(a(b).lastProp=S,v?x.updateProps(b,S,g):(b.stopAnimation(),b.attr(S)))}function l(g,v){if(y.isObject(g)&&y.isObject(v)){var b=!0;return y.each(v,function(S,E){b=b&&l(g[E],S)}),!!b}else return g===v}function r(g,v){g[v.get("label.show")?"show":"hide"]()}function s(g){return{position:g.position.slice(),rotation:g.rotation||0}}function c(g,v,b){var S=v.get("z"),E=v.get("zlevel");g&&g.traverse(function(C){C.type!=="group"&&(S!=null&&(C.z=S),E!=null&&(C.zlevel=E),C.silent=b)})}p.enableClassExtend(o);var d=o;k.exports=d},"3OrL":function(k,D,n){var y=n("bYtY"),p=n("6Ic6"),x=n("IwbS"),A=n("y+Vt"),m=["itemStyle"],f=["emphasis","itemStyle"],h=p.extend({type:"boxplot",render:function(e,l,r){var s=e.getData(),c=this.group,d=this._data;this._data||c.removeAll();var g=e.get("layout")==="horizontal"?1:0;s.diff(d).add(function(v){if(s.hasValue(v)){var b=s.getItemLayout(v),S=a(b,s,v,g,!0);s.setItemGraphicEl(v,S),c.add(S)}}).update(function(v,b){var S=d.getItemGraphicEl(b);if(!s.hasValue(v)){c.remove(S);return}var E=s.getItemLayout(v);S?i(E,S,s,v):S=a(E,s,v,g),c.add(S),s.setItemGraphicEl(v,S)}).remove(function(v){var b=d.getItemGraphicEl(v);b&&c.remove(b)}).execute(),this._data=s},remove:function(e){var l=this.group,r=this._data;this._data=null,r&&r.eachItemGraphicEl(function(s){s&&l.remove(s)})},dispose:y.noop}),u=A.extend({type:"boxplotBoxPath",shape:{},buildPath:function(e,l){var r=l.points,s=0;for(e.moveTo(r[s][0],r[s][1]),s++;s<4;s++)e.lineTo(r[s][0],r[s][1]);for(e.closePath();s<r.length;s++)e.moveTo(r[s][0],r[s][1]),s++,e.lineTo(r[s][0],r[s][1])}});function a(e,l,r,s,c){var d=e.ends,g=new u({shape:{points:c?t(d,s,e):d}});return i(e,g,l,r,c),g}function i(e,l,r,s,c){var d=r.hostModel,g=x[c?"initProps":"updateProps"];g(l,{shape:{points:e.ends}},d,s);var v=r.getItemModel(s),b=v.getModel(m),S=r.getItemVisual(s,"color"),E=b.getItemStyle(["borderColor"]);E.stroke=S,E.strokeNoScale=!0,l.useStyle(E),l.z2=100;var C=v.getModel(f).getItemStyle();x.setHoverStyle(l,C)}function t(e,l,r){return y.map(e,function(s){return s=s.slice(),s[l]=r.initBaseline,s})}var o=h;k.exports=o},"3S7+":function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("J4zp"),A=n.n(x),m=n("pVnL"),f=n.n(m),h=n("q1tI"),u=n.n(h),a=n("U8pU"),i=n("VTBJ"),t=n("Ff2n"),o=n("1OyB"),e=n("vuIU"),l=n("JX7q"),r=n("Ji7U"),s=n("LK+K"),c=n("i8i4"),d=n.n(c),g=n("l4aY"),v=n("m+aA"),b=n("c+Xe"),S=n("zT1h"),E=n("QC+M"),C=n("TSYQ"),_=n.n(C);function T(Bn,Jn,Xt){return Xt?Bn[0]===Jn[0]:Bn[0]===Jn[0]&&Bn[1]===Jn[1]}function w(Bn,Jn,Xt){var _t=Bn[Jn]||{};return Object(i.a)(Object(i.a)({},_t),Xt)}function O(Bn,Jn,Xt,_t){for(var Fe=Xt.points,Pe=Object.keys(Bn),Be=0;Be<Pe.length;Be+=1){var nt=Pe[Be];if(T(Bn[nt].points,Fe,_t))return"".concat(Jn,"-placement-").concat(nt)}return""}var I=n("xEkU"),R=n.n(I),M=n("9mu1"),F=n("rePB"),P=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function X(Bn,Jn){var Xt={};return Xt[Bn.toLowerCase()]=Jn.toLowerCase(),Xt["Webkit".concat(Bn)]="webkit".concat(Jn),Xt["Moz".concat(Bn)]="moz".concat(Jn),Xt["ms".concat(Bn)]="MS".concat(Jn),Xt["O".concat(Bn)]="o".concat(Jn.toLowerCase()),Xt}function B(Bn,Jn){var Xt={animationend:X("Animation","AnimationEnd"),transitionend:X("Transition","TransitionEnd")};return Bn&&("AnimationEvent"in Jn||delete Xt.animationend.animation,"TransitionEvent"in Jn||delete Xt.transitionend.transition),Xt}var j=B(P,typeof window!="undefined"?window:{}),W={};if(P){var z=document.createElement("div");W=z.style}var V={};function Q(Bn){if(V[Bn])return V[Bn];var Jn=j[Bn];if(Jn)for(var Xt=Object.keys(Jn),_t=Xt.length,Fe=0;Fe<_t;Fe+=1){var Pe=Xt[Fe];if(Object.prototype.hasOwnProperty.call(Jn,Pe)&&Pe in W)return V[Bn]=Jn[Pe],V[Bn]}return""}var G=Q("animationend"),ee=Q("transitionend"),ce=!!(G&&ee);function be(Bn,Jn){if(!Bn)return null;if(Object(a.a)(Bn)==="object"){var Xt=Jn.replace(/-\w/g,function(_t){return _t[1].toUpperCase()});return Bn[Xt]}return"".concat(Bn,"-").concat(Jn)}var le="none",Ie="appear",ke="enter",Re="leave";function Qe(Bn){var Jn=Bn,Xt=!!h.forwardRef;Object(a.a)(Bn)==="object"&&(Jn=Bn.transitionSupport,Xt="forwardRef"in Bn?Bn.forwardRef:Xt);function _t(Pe){return!!(Pe.motionName&&Jn)}var Fe=function(Pe){Object(r.a)(nt,Pe);var Be=Object(s.a)(nt);function nt(){var vt;return Object(o.a)(this,nt),vt=Be.apply(this,arguments),vt.$cacheEle=null,vt.node=null,vt.raf=null,vt.destroyed=!1,vt.deadlineId=null,vt.state={status:le,statusActive:!1,newStatus:!1,statusStyle:null},vt.onDomUpdate=function(){var ar=vt.state,kr=ar.status,mn=ar.newStatus,Zn=vt.props,ni=Zn.onAppearStart,ur=Zn.onEnterStart,Nt=Zn.onLeaveStart,bt=Zn.onAppearActive,gr=Zn.onEnterActive,Yt=Zn.onLeaveActive,Pt=Zn.motionAppear,rr=Zn.motionEnter,Rt=Zn.motionLeave;if(!_t(vt.props))return;var qt=vt.getElement();vt.$cacheEle!==qt&&(vt.removeEventListener(vt.$cacheEle),vt.addEventListener(qt),vt.$cacheEle=qt),mn&&kr===Ie&&Pt?vt.updateStatus(ni,null,null,function(){vt.updateActiveStatus(bt,Ie)}):mn&&kr===ke&&rr?vt.updateStatus(ur,null,null,function(){vt.updateActiveStatus(gr,ke)}):mn&&kr===Re&&Rt&&vt.updateStatus(Nt,null,null,function(){vt.updateActiveStatus(Yt,Re)})},vt.onMotionEnd=function(ar){if(ar&&!ar.deadline&&ar.target!==vt.getElement())return;var kr=vt.state,mn=kr.status,Zn=kr.statusActive,ni=vt.props,ur=ni.onAppearEnd,Nt=ni.onEnterEnd,bt=ni.onLeaveEnd;mn===Ie&&Zn?vt.updateStatus(ur,{status:le},ar):mn===ke&&Zn?vt.updateStatus(Nt,{status:le},ar):mn===Re&&Zn&&vt.updateStatus(bt,{status:le},ar)},vt.setNodeRef=function(ar){var kr=vt.props.internalRef;vt.node=ar,Object(b.b)(kr,ar)},vt.getElement=function(){try{return Object(v.a)(vt.node||Object(l.a)(vt))}catch(ar){return vt.$cacheEle}},vt.addEventListener=function(ar){if(!ar)return;ar.addEventListener(ee,vt.onMotionEnd),ar.addEventListener(G,vt.onMotionEnd)},vt.removeEventListener=function(ar){if(!ar)return;ar.removeEventListener(ee,vt.onMotionEnd),ar.removeEventListener(G,vt.onMotionEnd)},vt.updateStatus=function(ar,kr,mn,Zn){var ni=ar?ar(vt.getElement(),mn):null;if(ni===!1||vt.destroyed)return;var ur;Zn&&(ur=function(){vt.nextFrame(Zn)}),vt.setState(Object(i.a)({statusStyle:Object(a.a)(ni)==="object"?ni:null,newStatus:!1},kr),ur)},vt.updateActiveStatus=function(ar,kr){vt.nextFrame(function(){var mn=vt.state.status;if(mn!==kr)return;var Zn=vt.props.motionDeadline;vt.updateStatus(ar,{statusActive:!0}),Zn>0&&(vt.deadlineId=setTimeout(function(){vt.onMotionEnd({deadline:!0})},Zn))})},vt.nextFrame=function(ar){vt.cancelNextFrame(),vt.raf=R()(ar)},vt.cancelNextFrame=function(){vt.raf&&(R.a.cancel(vt.raf),vt.raf=null)},vt}return Object(e.a)(nt,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this.destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame(),clearTimeout(this.deadlineId)}},{key:"render",value:function(){var ar,kr=this.state,mn=kr.status,Zn=kr.statusActive,ni=kr.statusStyle,ur=this.props,Nt=ur.children,bt=ur.motionName,gr=ur.visible,Yt=ur.removeOnLeave,Pt=ur.leavedClassName,rr=ur.eventProps;return Nt?mn===le||!_t(this.props)?gr?Nt(Object(i.a)({},rr),this.setNodeRef):Yt?null:Nt(Object(i.a)(Object(i.a)({},rr),{},{className:Pt}),this.setNodeRef):Nt(Object(i.a)(Object(i.a)({},rr),{},{className:_()(be(bt,mn),(ar={},Object(F.a)(ar,be(bt,"".concat(mn,"-active")),Zn),Object(F.a)(ar,bt,typeof bt=="string"),ar)),style:ni}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(ar,kr){var mn=kr.prevProps,Zn=kr.status;if(!_t(ar))return{};var ni=ar.visible,ur=ar.motionAppear,Nt=ar.motionEnter,bt=ar.motionLeave,gr=ar.motionLeaveImmediately,Yt={prevProps:ar};return(Zn===Ie&&!ur||Zn===ke&&!Nt||Zn===Re&&!bt)&&(Yt.status=le,Yt.statusActive=!1,Yt.newStatus=!1),!mn&&ni&&ur&&(Yt.status=Ie,Yt.statusActive=!1,Yt.newStatus=!0),mn&&!mn.visible&&ni&&Nt&&(Yt.status=ke,Yt.statusActive=!1,Yt.newStatus=!0),(mn&&mn.visible&&!ni&&bt||!mn&&gr&&!ni&&bt)&&(Yt.status=Re,Yt.statusActive=!1,Yt.newStatus=!0),Yt}}]),nt}(h.Component);return Fe.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},Xt?h.forwardRef(function(Pe,Be){return h.createElement(Fe,Object.assign({internalRef:Be},Pe))}):Fe}var We=Qe(ce),ot="add",Oe="keep",oe="remove",st="removed";function he(Bn){var Jn;return Bn&&Object(a.a)(Bn)==="object"&&"key"in Bn?Jn=Bn:Jn={key:Bn},Object(i.a)(Object(i.a)({},Jn),{},{key:String(Jn.key)})}function J(){var Bn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Bn.map(he)}function Y(){var Bn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Xt=[],_t=0,Fe=Jn.length,Pe=J(Bn),Be=J(Jn);Pe.forEach(function(ar){for(var kr=!1,mn=_t;mn<Fe;mn+=1){var Zn=Be[mn];if(Zn.key===ar.key){_t<mn&&(Xt=Xt.concat(Be.slice(_t,mn).map(function(ni){return Object(i.a)(Object(i.a)({},ni),{},{status:ot})})),_t=mn),Xt.push(Object(i.a)(Object(i.a)({},Zn),{},{status:Oe})),_t+=1,kr=!0;break}}kr||Xt.push(Object(i.a)(Object(i.a)({},ar),{},{status:oe}))}),_t<Fe&&(Xt=Xt.concat(Be.slice(_t).map(function(ar){return Object(i.a)(Object(i.a)({},ar),{},{status:ot})})));var nt={};Xt.forEach(function(ar){var kr=ar.key;nt[kr]=(nt[kr]||0)+1});var vt=Object.keys(nt).filter(function(ar){return nt[ar]>1});return vt.forEach(function(ar){Xt=Xt.filter(function(kr){var mn=kr.key,Zn=kr.status;return mn!==ar||Zn!==oe}),Xt.forEach(function(kr){kr.key===ar&&(kr.status=Oe)})}),Xt}var $=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function fe(Bn){var Jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:We,Xt=function(_t){Object(r.a)(Pe,_t);var Fe=Object(s.a)(Pe);function Pe(){var Be;return Object(o.a)(this,Pe),Be=Fe.apply(this,arguments),Be.state={keyEntities:[]},Be.removeKey=function(nt){Be.setState(function(vt){var ar=vt.keyEntities;return{keyEntities:ar.map(function(kr){return kr.key!==nt?kr:Object(i.a)(Object(i.a)({},kr),{},{status:st})})}})},Be}return Object(e.a)(Pe,[{key:"render",value:function(){var nt=this,vt=this.state.keyEntities,ar=this.props,kr=ar.component,mn=ar.children,Zn=Object(t.a)(ar,["component","children"]),ni=kr||h.Fragment,ur={};return $.forEach(function(Nt){ur[Nt]=Zn[Nt],delete Zn[Nt]}),delete Zn.keys,h.createElement(ni,Object.assign({},Zn),vt.map(function(Nt){var bt=Nt.status,gr=Object(t.a)(Nt,["status"]),Yt=bt===ot||bt===Oe;return h.createElement(Jn,Object.assign({},ur,{key:gr.key,visible:Yt,eventProps:gr,onLeaveEnd:function(){ur.onLeaveEnd&&ur.onLeaveEnd.apply(ur,arguments),nt.removeKey(gr.key)}}),mn)}))}}],[{key:"getDerivedStateFromProps",value:function(nt,vt){var ar=nt.keys,kr=vt.keyEntities,mn=J(ar);if(!Bn)return{keyEntities:mn.map(function(ur){return Object(i.a)(Object(i.a)({},ur),{},{status:Oe})})};var Zn=Y(kr,mn),ni=kr.length;return{keyEntities:Zn.filter(function(ur){for(var Nt=null,bt=0;bt<ni;bt+=1){var gr=kr[bt];if(gr.key===ur.key){Nt=gr;break}}return!(Nt&&Nt.status===st&&ur.status===oe)})}}}]),Pe}(h.Component);return Xt.defaultProps={component:"div"},Xt}var we=fe(ce),Ne=We,Ee=function(Jn,Xt){var _t=Jn.prefixCls,Fe=Jn.className,Pe=Jn.style,Be=Jn.children,nt=Jn.onMouseEnter,vt=Jn.onMouseLeave,ar=Jn.onMouseDown,kr=Jn.onTouchStart,mn=Be;return h.Children.count(Be)>1&&(mn=h.createElement("div",{className:"".concat(_t,"-content")},Be)),h.createElement("div",{ref:Xt,className:Fe,onMouseEnter:nt,onMouseLeave:vt,onMouseDown:ar,onTouchStart:kr,style:Pe},mn)},de=h.forwardRef(Ee);de.displayName="PopupInner";var me=de;function Le(Bn){var Jn=Bn.prefixCls,Xt=Bn.motion,_t=Bn.animation,Fe=Bn.transitionName;return Xt||(_t?{motionName:"".concat(Jn,"-").concat(_t)}:Fe?{motionName:Fe}:null)}function tt(Bn){return Bn&&Bn.motionName}var At=function(Bn){Object(r.a)(Xt,Bn);var Jn=Object(s.a)(Xt);function Xt(){var _t;return Object(o.a)(this,Xt),_t=Jn.apply(this,arguments),_t.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},_t.popupRef=u.a.createRef(),_t.alignRef=u.a.createRef(),_t.nextFrameState=null,_t.nextFrameId=null,_t.onAlign=function(Fe,Pe){var Be=_t.state.status,nt=_t.props,vt=nt.getClassNameFromAlign,ar=nt.onAlign,kr=vt(Pe);Be==="align"?_t.setState({alignClassName:kr,status:"aligned"},function(){_t.alignRef.current.forceAlign()}):Be==="aligned"?(_t.setState({alignClassName:kr,status:"afterAlign"}),ar(Fe,Pe)):_t.setState({alignClassName:kr})},_t.onMotionEnd=function(){var Fe=_t.props.visible;_t.setState({status:Fe?"AfterMotion":"stable",inMotion:!1})},_t.setStateOnNextFrame=function(Fe){_t.cancelFrameState(),_t.nextFrameState=Object(i.a)(Object(i.a)({},_t.nextFrameState),Fe),_t.nextFrameId=R()(function(){var Pe=Object(i.a)({},_t.nextFrameState);_t.nextFrameState=null,_t.setState(Pe)})},_t.getMotion=function(){return Object(i.a)({},Le(_t.props))},_t.getAlignTarget=function(){var Fe=_t.props,Pe=Fe.point,Be=Fe.getRootDomNode;return Pe||Be},_t.cancelFrameState=function(){R.a.cancel(_t.nextFrameId)},_t.renderPopupElement=function(){var Fe=_t.state,Pe=Fe.status,Be=Fe.targetHeight,nt=Fe.targetWidth,vt=Fe.alignClassName,ar=_t.props,kr=ar.prefixCls,mn=ar.className,Zn=ar.style,ni=ar.stretch,ur=ar.visible,Nt=ar.align,bt=ar.destroyPopupOnHide,gr=ar.onMouseEnter,Yt=ar.onMouseLeave,Pt=ar.onMouseDown,rr=ar.onTouchStart,Rt=ar.children,qt=_()(kr,mn,vt),Yr="".concat(kr,"-hidden"),Mr={};ni&&(ni.indexOf("height")!==-1?Mr.height=Be:ni.indexOf("minHeight")!==-1&&(Mr.minHeight=Be),ni.indexOf("width")!==-1?Mr.width=nt:ni.indexOf("minWidth")!==-1&&(Mr.minWidth=nt));var Dr=Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)({},Mr),_t.getZIndexStyle()),Zn),{},{opacity:Pe==="stable"||!ur?void 0:0,pointerEvents:Pe==="stable"||!ur?void 0:"none"}),un=_t.getMotion(),wn=ur;ur&&Pe!=="beforeMotion"&&Pe!=="motion"&&Pe!=="stable"&&(un.motionAppear=!1,un.motionEnter=!1,un.motionLeave=!1),(Pe==="afterAlign"||Pe==="beforeMotion")&&(wn=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(gi){var Ii=un==null?void 0:un[gi];un[gi]=function(){for(var ki=arguments.length,Qi=new Array(ki),it=0;it<ki;it++)Qi[it]=arguments[it];Ii==null||Ii.apply(void 0,Qi),_t.setState({inMotion:!0})}});var ai=!ur||Pe!=="align"&&Pe!=="aligned"&&Pe!=="stable",ei=!0;return Pe==="stable"&&(ei=ur),bt&&!ei?null:u.a.createElement(Ne,Object.assign({visible:wn},un,{removeOnLeave:!1,onEnterEnd:_t.onMotionEnd,onLeaveEnd:_t.onMotionEnd,leavedClassName:Yr}),function(gi,Ii){var ki=gi.style,Qi=gi.className;return u.a.createElement(M.a,{target:_t.getAlignTarget(),key:"popup",ref:_t.alignRef,monitorWindowResize:!0,disabled:ai,align:Nt,onAlign:_t.onAlign},u.a.createElement(me,{prefixCls:kr,className:_()(qt,Qi),ref:Object(b.a)(Ii,_t.popupRef),onMouseEnter:gr,onMouseLeave:Yt,onMouseDown:Pt,onTouchStart:rr,style:Object(i.a)(Object(i.a)({},Dr),ki)},Rt))})},_t.renderMaskElement=function(){var Fe=_t.props,Pe=Fe.mask,Be=Fe.maskMotion,nt=Fe.maskTransitionName,vt=Fe.maskAnimation,ar=Fe.prefixCls,kr=Fe.visible;if(!Pe)return null;var mn={};return Be&&Be.motionName&&(mn=Object(i.a)({motionAppear:!0},Le({motion:Be,prefixCls:ar,transitionName:nt,animation:vt}))),u.a.createElement(Ne,Object.assign({},mn,{visible:kr,removeOnLeave:!0}),function(Zn){var ni=Zn.className;return u.a.createElement("div",{style:_t.getZIndexStyle(),key:"mask",className:_()("".concat(ar,"-mask"),ni)})})},_t}return Object(e.a)(Xt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Fe=this.state.status,Pe=this.props,Be=Pe.getRootDomNode,nt=Pe.visible,vt=Pe.stretch;if(this.cancelFrameState(),nt&&Fe!=="stable")switch(Fe){case null:{this.setStateOnNextFrame({status:vt?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:tt(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var ar=["measure","align",null,"beforeMotion","motion"],kr=ar.indexOf(Fe),mn=ar[kr+1];kr!==-1&&mn&&this.setStateOnNextFrame({status:mn})}}if(Fe==="measure"){var Zn=Be();Zn&&this.setStateOnNextFrame({targetHeight:Zn.offsetHeight,targetWidth:Zn.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Fe=this.props.zIndex;return{zIndex:Fe}}},{key:"render",value:function(){return u.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Fe,Pe){var Be=Fe.visible,nt=Object(t.a)(Fe,["visible"]),vt=Pe.prevVisible,ar=Pe.status,kr=Pe.inMotion,mn={prevVisible:Be,status:ar},Zn=Le(nt);return vt===null&&Be===!1?(mn.status="stable",mn.inMotion=!1):Be!==vt&&(mn.inMotion=!1,Be||tt(Zn)&&kr?mn.status=null:mn.status="stable",Be&&(mn.alignClassName=null)),mn}}]),Xt}(h.Component),ht=At,Ke=h.createContext(null),Jt=Ke;function ct(){}function Gt(){return""}function dr(){return window.document}var zt=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function kt(Bn){var Jn=function(Xt){Object(r.a)(Fe,Xt);var _t=Object(s.a)(Fe);function Fe(Pe){var Be;Object(o.a)(this,Fe),Be=_t.call(this,Pe),Be.popupRef=u.a.createRef(),Be.triggerRef=u.a.createRef(),Be.onMouseEnter=function(vt){var ar=Be.props.mouseEnterDelay;Be.fireEvents("onMouseEnter",vt),Be.delaySetPopupVisible(!0,ar,ar?null:vt)},Be.onMouseMove=function(vt){Be.fireEvents("onMouseMove",vt),Be.setPoint(vt)},Be.onMouseLeave=function(vt){Be.fireEvents("onMouseLeave",vt),Be.delaySetPopupVisible(!1,Be.props.mouseLeaveDelay)},Be.onPopupMouseEnter=function(){Be.clearDelayTimer()},Be.onPopupMouseLeave=function(vt){if(vt.relatedTarget&&!vt.relatedTarget.setTimeout&&Be.popupRef.current&&Be.popupRef.current.popupRef.current&&Object(g.a)(Be.popupRef.current.popupRef.current,vt.relatedTarget))return;Be.delaySetPopupVisible(!1,Be.props.mouseLeaveDelay)},Be.onFocus=function(vt){Be.fireEvents("onFocus",vt),Be.clearDelayTimer(),Be.isFocusToShow()&&(Be.focusTime=Date.now(),Be.delaySetPopupVisible(!0,Be.props.focusDelay))},Be.onMouseDown=function(vt){Be.fireEvents("onMouseDown",vt),Be.preClickTime=Date.now()},Be.onTouchStart=function(vt){Be.fireEvents("onTouchStart",vt),Be.preTouchTime=Date.now()},Be.onBlur=function(vt){Be.fireEvents("onBlur",vt),Be.clearDelayTimer(),Be.isBlurToHide()&&Be.delaySetPopupVisible(!1,Be.props.blurDelay)},Be.onContextMenu=function(vt){vt.preventDefault(),Be.fireEvents("onContextMenu",vt),Be.setPopupVisible(!0,vt)},Be.onContextMenuClose=function(){Be.isContextMenuToShow()&&Be.close()},Be.onClick=function(vt){if(Be.fireEvents("onClick",vt),Be.focusTime){var ar;if(Be.preClickTime&&Be.preTouchTime?ar=Math.min(Be.preClickTime,Be.preTouchTime):Be.preClickTime?ar=Be.preClickTime:Be.preTouchTime&&(ar=Be.preTouchTime),Math.abs(ar-Be.focusTime)<20)return;Be.focusTime=0}Be.preClickTime=0,Be.preTouchTime=0,Be.isClickToShow()&&(Be.isClickToHide()||Be.isBlurToHide())&&vt&&vt.preventDefault&&vt.preventDefault();var kr=!Be.state.popupVisible;(Be.isClickToHide()&&!kr||kr&&Be.isClickToShow())&&Be.setPopupVisible(!Be.state.popupVisible,vt)},Be.onPopupMouseDown=function(){if(Be.hasPopupMouseDown=!0,clearTimeout(Be.mouseDownTimeout),Be.mouseDownTimeout=window.setTimeout(function(){Be.hasPopupMouseDown=!1},0),Be.context){var vt;(vt=Be.context).onPopupMouseDown.apply(vt,arguments)}},Be.onDocumentClick=function(vt){if(Be.props.mask&&!Be.props.maskClosable)return;var ar=vt.target,kr=Be.getRootDomNode(),mn=Be.getPopupDomNode();!Object(g.a)(kr,ar)&&!Object(g.a)(mn,ar)&&!Be.hasPopupMouseDown&&Be.close()},Be.getRootDomNode=function(){var vt=Be.props.getTriggerDOMNode;if(vt)return vt(Be.triggerRef.current);try{var ar=Object(v.a)(Be.triggerRef.current);if(ar)return ar}catch(kr){}return d.a.findDOMNode(Object(l.a)(Be))},Be.getPopupClassNameFromAlign=function(vt){var ar=[],kr=Be.props,mn=kr.popupPlacement,Zn=kr.builtinPlacements,ni=kr.prefixCls,ur=kr.alignPoint,Nt=kr.getPopupClassNameFromAlign;return mn&&Zn&&ar.push(O(Zn,ni,vt,ur)),Nt&&ar.push(Nt(vt)),ar.join(" ")},Be.getComponent=function(){var vt=Be.props,ar=vt.prefixCls,kr=vt.destroyPopupOnHide,mn=vt.popupClassName,Zn=vt.onPopupAlign,ni=vt.popupMotion,ur=vt.popupAnimation,Nt=vt.popupTransitionName,bt=vt.popupStyle,gr=vt.mask,Yt=vt.maskAnimation,Pt=vt.maskTransitionName,rr=vt.maskMotion,Rt=vt.zIndex,qt=vt.popup,Yr=vt.stretch,Mr=vt.alignPoint,Dr=Be.state,un=Dr.popupVisible,wn=Dr.point,ai=Be.getPopupAlign(),ei={};return Be.isMouseEnterToShow()&&(ei.onMouseEnter=Be.onPopupMouseEnter),Be.isMouseLeaveToHide()&&(ei.onMouseLeave=Be.onPopupMouseLeave),ei.onMouseDown=Be.onPopupMouseDown,ei.onTouchStart=Be.onPopupMouseDown,u.a.createElement(ht,Object.assign({prefixCls:ar,destroyPopupOnHide:kr,visible:un,point:Mr&&wn,className:mn,align:ai,onAlign:Zn,animation:ur,getClassNameFromAlign:Be.getPopupClassNameFromAlign},ei,{stretch:Yr,getRootDomNode:Be.getRootDomNode,style:bt,mask:gr,zIndex:Rt,transitionName:Nt,maskAnimation:Yt,maskTransitionName:Pt,maskMotion:rr,ref:Be.popupRef,motion:ni}),typeof qt=="function"?qt():qt)},Be.getContainer=function(){var vt=Object(l.a)(Be),ar=vt.props,kr=document.createElement("div");kr.style.position="absolute",kr.style.top="0",kr.style.left="0",kr.style.width="100%";var mn=ar.getPopupContainer?ar.getPopupContainer(Be.getRootDomNode()):ar.getDocument().body;return mn.appendChild(kr),kr},Be.setPoint=function(vt){var ar=Be.props.alignPoint;if(!ar||!vt)return;Be.setState({point:{pageX:vt.pageX,pageY:vt.pageY}})},Be.handlePortalUpdate=function(){Be.state.prevPopupVisible!==Be.state.popupVisible&&Be.props.afterPopupVisibleChange(Be.state.popupVisible)};var nt;return"popupVisible"in Pe?nt=!!Pe.popupVisible:nt=!!Pe.defaultPopupVisible,Be.state={prevPopupVisible:nt,popupVisible:nt},zt.forEach(function(vt){Be["fire".concat(vt)]=function(ar){Be.fireEvents(vt,ar)}}),Be}return Object(e.a)(Fe,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Be=this.props,nt=this.state;if(nt.popupVisible){var vt;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(vt=Be.getDocument(),this.clickOutsideHandler=Object(S.a)(vt,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(vt=vt||Be.getDocument(),this.touchOutsideHandler=Object(S.a)(vt,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(vt=vt||Be.getDocument(),this.contextMenuOutsideHandler1=Object(S.a)(vt,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(S.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)}},{key:"getPopupDomNode",value:function(){return this.popupRef.current&&this.popupRef.current.popupRef.current?this.popupRef.current.popupRef.current:null}},{key:"getPopupAlign",value:function(){var Be=this.props,nt=Be.popupPlacement,vt=Be.popupAlign,ar=Be.builtinPlacements;return nt&&ar?w(ar,nt,vt):vt}},{key:"setPopupVisible",value:function(Be,nt){var vt=this.props.alignPoint,ar=this.state.popupVisible;this.clearDelayTimer(),ar!==Be&&("popupVisible"in this.props||this.setState({popupVisible:Be,prevPopupVisible:ar}),this.props.onPopupVisibleChange(Be)),vt&&nt&&this.setPoint(nt)}},{key:"delaySetPopupVisible",value:function(Be,nt,vt){var ar=this,kr=nt*1e3;if(this.clearDelayTimer(),kr){var mn=vt?{pageX:vt.pageX,pageY:vt.pageY}:null;this.delayTimer=window.setTimeout(function(){ar.setPopupVisible(Be,mn),ar.clearDelayTimer()},kr)}else this.setPopupVisible(Be,vt)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(Be){var nt=this.props.children.props,vt=this.props;return nt[Be]&&vt[Be]?this["fire".concat(Be)]:nt[Be]||vt[Be]}},{key:"isClickToShow",value:function(){var Be=this.props,nt=Be.action,vt=Be.showAction;return nt.indexOf("click")!==-1||vt.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var Be=this.props,nt=Be.action,vt=Be.showAction;return nt.indexOf("contextMenu")!==-1||vt.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Be=this.props,nt=Be.action,vt=Be.hideAction;return nt.indexOf("click")!==-1||vt.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Be=this.props,nt=Be.action,vt=Be.showAction;return nt.indexOf("hover")!==-1||vt.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Be=this.props,nt=Be.action,vt=Be.hideAction;return nt.indexOf("hover")!==-1||vt.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Be=this.props,nt=Be.action,vt=Be.showAction;return nt.indexOf("focus")!==-1||vt.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Be=this.props,nt=Be.action,vt=Be.hideAction;return nt.indexOf("focus")!==-1||vt.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){this.state.popupVisible&&this.popupRef.current&&this.popupRef.current.alignRef.current&&this.popupRef.current.alignRef.current.forceAlign()}},{key:"fireEvents",value:function(Be,nt){var vt=this.props.children.props[Be];vt&&vt(nt);var ar=this.props[Be];ar&&ar(nt)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Be=this.state.popupVisible,nt=this.props,vt=nt.children,ar=nt.forceRender,kr=nt.alignPoint,mn=nt.className,Zn=nt.autoDestroy,ni=u.a.Children.only(vt),ur={key:"trigger"};this.isContextMenuToShow()?ur.onContextMenu=this.onContextMenu:ur.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(ur.onClick=this.onClick,ur.onMouseDown=this.onMouseDown,ur.onTouchStart=this.onTouchStart):(ur.onClick=this.createTwoChains("onClick"),ur.onMouseDown=this.createTwoChains("onMouseDown"),ur.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(ur.onMouseEnter=this.onMouseEnter,kr&&(ur.onMouseMove=this.onMouseMove)):ur.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?ur.onMouseLeave=this.onMouseLeave:ur.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(ur.onFocus=this.onFocus,ur.onBlur=this.onBlur):(ur.onFocus=this.createTwoChains("onFocus"),ur.onBlur=this.createTwoChains("onBlur"));var Nt=_()(ni&&ni.props&&ni.props.className,mn);Nt&&(ur.className=Nt);var bt=Object(i.a)({},ur);Object(b.c)(ni)&&(bt.ref=Object(b.a)(this.triggerRef,ni.ref));var gr=u.a.cloneElement(ni,bt),Yt;return(Be||this.popupRef.current||ar)&&(Yt=u.a.createElement(Bn,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Be&&Zn&&(Yt=null),u.a.createElement(Jt.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},gr,Yt)}}],[{key:"getDerivedStateFromProps",value:function(Be,nt){var vt=Be.popupVisible,ar={};return vt!==void 0&&nt.popupVisible!==vt&&(ar.popupVisible=vt,ar.prevPopupVisible=nt.popupVisible),ar}}]),Fe}(u.a.Component);return Jn.contextType=Jt,Jn.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Gt,getDocument:dr,onPopupVisibleChange:ct,afterPopupVisibleChange:ct,onPopupAlign:ct,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Jn}var Vt=kt(E.a),Xe={adjustX:1,adjustY:1},pe=[0,0],te={left:{points:["cr","cl"],overflow:Xe,offset:[-4,0],targetOffset:pe},right:{points:["cl","cr"],overflow:Xe,offset:[4,0],targetOffset:pe},top:{points:["bc","tc"],overflow:Xe,offset:[0,-4],targetOffset:pe},bottom:{points:["tc","bc"],overflow:Xe,offset:[0,4],targetOffset:pe},topLeft:{points:["bl","tl"],overflow:Xe,offset:[0,-4],targetOffset:pe},leftTop:{points:["tr","tl"],overflow:Xe,offset:[-4,0],targetOffset:pe},topRight:{points:["br","tr"],overflow:Xe,offset:[0,-4],targetOffset:pe},rightTop:{points:["tl","tr"],overflow:Xe,offset:[4,0],targetOffset:pe},bottomRight:{points:["tr","br"],overflow:Xe,offset:[0,4],targetOffset:pe},rightBottom:{points:["bl","br"],overflow:Xe,offset:[4,0],targetOffset:pe},bottomLeft:{points:["tl","bl"],overflow:Xe,offset:[0,4],targetOffset:pe},leftBottom:{points:["br","bl"],overflow:Xe,offset:[-4,0],targetOffset:pe}},$e=te,He=function(Jn){var Xt=Jn.overlay,_t=Jn.prefixCls,Fe=Jn.id,Pe=Jn.overlayInnerStyle;return h.createElement("div",{className:"".concat(_t,"-inner"),id:Fe,role:"tooltip",style:Pe},typeof Xt=="function"?Xt():Xt)},ae=He,ft=function(Jn,Xt){var _t=Jn.overlayClassName,Fe=Jn.trigger,Pe=Fe===void 0?["hover"]:Fe,Be=Jn.mouseEnterDelay,nt=Be===void 0?0:Be,vt=Jn.mouseLeaveDelay,ar=vt===void 0?.1:vt,kr=Jn.overlayStyle,mn=Jn.prefixCls,Zn=mn===void 0?"rc-tooltip":mn,ni=Jn.children,ur=Jn.onVisibleChange,Nt=Jn.afterVisibleChange,bt=Jn.transitionName,gr=Jn.animation,Yt=Jn.placement,Pt=Yt===void 0?"right":Yt,rr=Jn.align,Rt=rr===void 0?{}:rr,qt=Jn.destroyTooltipOnHide,Yr=qt===void 0?!1:qt,Mr=Jn.defaultVisible,Dr=Jn.getTooltipContainer,un=Jn.overlayInnerStyle,wn=Object(t.a)(Jn,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),ai=Object(h.useRef)(null);Object(h.useImperativeHandle)(Xt,function(){return ai.current});var ei=Object(i.a)({},wn);"visible"in Jn&&(ei.popupVisible=Jn.visible);var gi=function(){var Me=Jn.arrowContent,je=Me===void 0?null:Me,Ye=Jn.overlay,rt=Jn.id;return[h.createElement("div",{className:"".concat(Zn,"-arrow"),key:"arrow"},je),h.createElement(ae,{key:"content",prefixCls:Zn,id:rt,overlay:Ye,overlayInnerStyle:un})]},Ii=!1,ki=!1;if(typeof Yr=="boolean")Ii=Yr;else if(Yr&&Object(a.a)(Yr)==="object"){var Qi=Yr.keepParent;Ii=Qi===!0,ki=Qi===!1}return h.createElement(Vt,Object.assign({popupClassName:_t,prefixCls:Zn,popup:gi,action:Pe,builtinPlacements:te,popupPlacement:Pt,ref:ai,popupAlign:Rt,getPopupContainer:Dr,onPopupVisibleChange:ur,afterPopupVisibleChange:Nt,popupTransitionName:bt,popupAnimation:gr,defaultPopupVisible:Mr,destroyPopupOnHide:Ii,autoDestroy:ki,mouseLeaveDelay:ar,popupStyle:kr,mouseEnterDelay:nt},ei),ni)},Mt=Object(h.forwardRef)(ft),mt=Mt,or={adjustX:1,adjustY:1},vr={adjustX:0,adjustY:0},fn=[0,0];function sr(Bn){return typeof Bn=="boolean"?Bn?or:vr:f()(f()({},vr),Bn)}function Ir(Bn){var Jn=Bn.arrowWidth,Xt=Jn===void 0?5:Jn,_t=Bn.horizontalArrowShift,Fe=_t===void 0?16:_t,Pe=Bn.verticalArrowShift,Be=Pe===void 0?8:Pe,nt=Bn.autoAdjustOverflow,vt={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:[-(Fe+Xt),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(Be+Xt)]},topRight:{points:["br","tc"],offset:[Fe+Xt,-4]},rightTop:{points:["tl","cr"],offset:[4,-(Be+Xt)]},bottomRight:{points:["tr","bc"],offset:[Fe+Xt,4]},rightBottom:{points:["bl","cr"],offset:[4,Be+Xt]},bottomLeft:{points:["tl","bc"],offset:[-(Fe+Xt),4]},leftBottom:{points:["br","cl"],offset:[-4,Be+Xt]}};return Object.keys(vt).forEach(function(ar){vt[ar]=Bn.arrowPointAtCenter?f()(f()({},vt[ar]),{overflow:sr(nt),targetOffset:fn}):f()(f()({},te[ar]),{overflow:sr(nt)}),vt[ar].ignoreShake=!0}),vt}var lr=n("0n0R"),Wt=n("H84U"),xt=n("09Wf"),rn=function(Jn,Xt){var _t={},Fe=f()({},Jn);return Xt.forEach(function(Pe){Jn&&Pe in Jn&&(_t[Pe]=Jn[Pe],delete Fe[Pe])}),{picked:_t,omitted:Fe}},Dn=new RegExp("^(".concat(xt.a.join("|"),")(-inverse)?$"));function Xn(Bn,Jn){var Xt=Bn.type;if((Xt.__ANT_BUTTON===!0||Xt.__ANT_SWITCH===!0||Xt.__ANT_CHECKBOX===!0||Bn.type==="button")&&Bn.props.disabled){var _t=rn(Bn.props.style,["position","left","right","top","bottom","float","display","zIndex"]),Fe=_t.picked,Pe=_t.omitted,Be=f()(f()({display:"inline-block"},Fe),{cursor:"not-allowed",width:Bn.props.block?"100%":null}),nt=f()(f()({},Pe),{pointerEvents:"none"}),vt=Object(lr.a)(Bn,{style:nt,className:null});return h.createElement("span",{style:Be,className:_()(Bn.props.className,"".concat(Jn,"-disabled-compatible-wrapper"))},vt)}return Bn}var ri=h.forwardRef(function(Bn,Jn){var Xt,_t=h.useContext(Wt.b),Fe=_t.getPopupContainer,Pe=_t.getPrefixCls,Be=_t.direction,nt=h.useState(!!Bn.visible||!!Bn.defaultVisible),vt=A()(nt,2),ar=vt[0],kr=vt[1];h.useEffect(function(){"visible"in Bn&&kr(Bn.visible)},[Bn.visible]);var mn=function(){var Qi=Bn.title,it=Bn.overlay;return!Qi&&!it&&Qi!==0},Zn=function(Qi){"visible"in Bn||kr(mn()?!1:Qi),Bn.onVisibleChange&&!mn()&&Bn.onVisibleChange(Qi)},ni=function(){var Qi=Bn.builtinPlacements,it=Bn.arrowPointAtCenter,Me=Bn.autoAdjustOverflow;return Qi||Ir({arrowPointAtCenter:it,autoAdjustOverflow:Me})},ur=function(Qi,it){var Me=ni(),je=Object.keys(Me).filter(function(qe){return Me[qe].points[0]===it.points[0]&&Me[qe].points[1]===it.points[1]})[0];if(!je)return;var Ye=Qi.getBoundingClientRect(),rt={top:"50%",left:"50%"};je.indexOf("top")>=0||je.indexOf("Bottom")>=0?rt.top="".concat(Ye.height-it.offset[1],"px"):(je.indexOf("Top")>=0||je.indexOf("bottom")>=0)&&(rt.top="".concat(-it.offset[1],"px")),je.indexOf("left")>=0||je.indexOf("Right")>=0?rt.left="".concat(Ye.width-it.offset[0],"px"):(je.indexOf("right")>=0||je.indexOf("Left")>=0)&&(rt.left="".concat(-it.offset[0],"px")),Qi.style.transformOrigin="".concat(rt.left," ").concat(rt.top)},Nt=function(){var Qi=Bn.title,it=Bn.overlay;return Qi===0?Qi:it||Qi||""},bt=Bn.prefixCls,gr=Bn.openClassName,Yt=Bn.getPopupContainer,Pt=Bn.getTooltipContainer,rr=Bn.overlayClassName,Rt=Bn.color,qt=Bn.overlayInnerStyle,Yr=Bn.children,Mr=Pe("tooltip",bt),Dr=ar;!("visible"in Bn)&&mn()&&(Dr=!1);var un=Xn(Object(lr.b)(Yr)?Yr:h.createElement("span",null,Yr),Mr),wn=un.props,ai=_()(wn.className,p()({},gr||"".concat(Mr,"-open"),!0)),ei=_()(rr,(Xt={},p()(Xt,"".concat(Mr,"-rtl"),Be==="rtl"),p()(Xt,"".concat(Mr,"-").concat(Rt),Rt&&Dn.test(Rt)),Xt)),gi,Ii;return Rt&&!Dn.test(Rt)&&(gi=f()(f()({},qt),{background:Rt}),Ii={background:Rt}),h.createElement(mt,f()({},Bn,{prefixCls:Mr,overlayClassName:ei,getTooltipContainer:Yt||Pt||Fe,ref:Jn,builtinPlacements:ni(),overlay:Nt(),visible:Dr,onVisibleChange:Zn,onPopupAlign:ur,overlayInnerStyle:gi,arrowContent:h.createElement("span",{className:"".concat(Mr,"-arrow-content"),style:Ii})}),Dr?Object(lr.a)(un,{className:ai}):un)});ri.displayName="Tooltip",ri.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var Ui=D.a=ri},"3TkU":function(k,D,n){n("aTJb"),n("OlYY"),n("fc+c"),n("QUw5"),n("Swgg"),n("LBfv"),n("noeP")},"3X6L":function(k,D,n){var y=n("bYtY"),p=n("7a+S"),x=n("OKJ2"),A=p.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:[]}});y.mixin(A,x);var m=A;k.exports=m},"3e3G":function(k,D,n){var y=n("bYtY"),p=n("QuXc"),x=function(f,h,u,a,i){this.x=f==null?.5:f,this.y=h==null?.5:h,this.r=u==null?.5:u,this.type="radial",this.global=i||!1,p.call(this,a)};x.prototype={constructor:x},y.inherits(x,p);var A=x;k.exports=A},"3gBT":function(k,D){var n=2311;function y(){return n++}k.exports=y},"3hzK":function(k,D){var n={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")}}};k.exports=n},"3m61":function(k,D){function n(p){return p instanceof Array||(p=[p,p]),p}function y(p){p.eachSeriesByType("graph",function(x){var A=x.getGraph(),m=x.getEdgeData(),f=n(x.get("edgeSymbol")),h=n(x.get("edgeSymbolSize")),u="lineStyle.color".split("."),a="lineStyle.opacity".split(".");m.setVisual("fromSymbol",f&&f[0]),m.setVisual("toSymbol",f&&f[1]),m.setVisual("fromSymbolSize",h&&h[0]),m.setVisual("toSymbolSize",h&&h[1]),m.setVisual("color",x.get(u)),m.setVisual("opacity",x.get(a)),m.each(function(i){var t=m.getItemModel(i),o=A.getEdgeByIndex(i),e=n(t.getShallow("symbol",!0)),l=n(t.getShallow("symbolSize",!0)),r=t.get(u),s=t.get(a);switch(r){case"source":r=o.node1.getVisual("color");break;case"target":r=o.node2.getVisual("color");break}e[0]&&o.setVisual("fromSymbol",e[0]),e[1]&&o.setVisual("toSymbol",e[1]),l[0]&&o.setVisual("fromSymbolSize",l[0]),l[1]&&o.setVisual("toSymbolSize",l[1]),o.setVisual("color",r),o.setVisual("opacity",s)})})}k.exports=y},"3ouR":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={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=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="CloseSquareOutlined";var h=D.a=p.forwardRef(f)},"3y9D":function(k,D,n){(function(y,p){k.exports=D=p(n("Ib8C"))})(this,function(y){return function(){var p=y,x=p.lib,A=x.WordArray,m=x.Hasher,f=p.algo,h=[],u=f.SHA1=m.extend({_doReset:function(){this._hash=new A.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(i,t){for(var o=this._hash.words,e=o[0],l=o[1],r=o[2],s=o[3],c=o[4],d=0;d<80;d++){if(d<16)h[d]=i[t+d]|0;else{var g=h[d-3]^h[d-8]^h[d-14]^h[d-16];h[d]=g<<1|g>>>31}var v=(e<<5|e>>>27)+c+h[d];d<20?v+=(l&r|~l&s)+1518500249:d<40?v+=(l^r^s)+1859775393:d<60?v+=(l&r|l&s|r&s)-1894007588:v+=(l^r^s)-899497514,c=s,s=r,r=l<<30|l>>>2,l=e,e=v}o[0]=o[0]+e|0,o[1]=o[1]+l|0,o[2]=o[2]+r|0,o[3]=o[3]+s|0,o[4]=o[4]+c|0},_doFinalize:function(){var i=this._data,t=i.words,o=this._nDataBytes*8,e=i.sigBytes*8;return t[e>>>5]|=128<<24-e%32,t[(e+64>>>9<<4)+14]=Math.floor(o/4294967296),t[(e+64>>>9<<4)+15]=o,i.sigBytes=t.length*4,this._process(),this._hash},clone:function(){var i=m.clone.call(this);return i._hash=this._hash.clone(),i}});p.SHA1=m._createHelper(u),p.HmacSHA1=m._createHmacHelper(u)}(),y.SHA1})},"3zoK":function(k,D,n){var y=n("bYtY"),p=n("bLfw"),x=n("KCsZ"),A=n("nkfE"),m=n("OELB"),f=n("ICMv"),h=p.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return x([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var o=this.activeIntervals=y.clone(t);if(o)for(var e=o.length-1;e>=0;e--)m.asc(o[e])},getActiveState:function(t){var o=this.activeIntervals;if(!o.length)return"normal";if(t==null||isNaN(t))return"inactive";if(o.length===1){var e=o[0];if(e[0]<=t&&t<=e[1])return"active"}else for(var l=0,r=o.length;l<r;l++)if(o[l][0]<=t&&t<=o[l][1])return"active";return"inactive"}}),u={type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};y.merge(h.prototype,f);function a(t,o){return o.type||(o.data?"category":"value")}A("parallel",h,a,u);var i=h;k.exports=i},"3zu8":function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("ZLWo")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="FolderOpenOutlined";var i=A.forwardRef(a);D.default=i},"49sm":function(k,D){var n={}.toString;k.exports=Array.isArray||function(y){return n.call(y)=="[object Array]"}},"4Feb":function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=n("IwbS"),m=n("x3X8"),f=m.getDefaultLabel,h=n("MwEJ"),u=n("nVfU"),a=u.getLayoutOnAxis,i=n("gPAo"),t=n("T4UG"),o=n("Qxkt"),e=n("6Ic6"),l=n("sK/D"),r=l.createClipPath,s=n("qj72"),c=n("ANjR"),d=n("MHtr"),g=n("6usn"),v=n("Rx6q"),b=A.CACHED_LABEL_STYLE_PROPERTIES,S=["itemStyle"],E=["emphasis","itemStyle"],C=["label"],_=["emphasis","label"],T="e\0\0",w={cartesian2d:s,geo:c,singleAxis:d,polar:g,calendar:v};t.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0,clip:!1},getInitialData:function(le,Ie){return h(this.getSource(),this)},getDataParams:function(le,Ie,ke){var Re=t.prototype.getDataParams.apply(this,arguments);return ke&&(Re.info=ke.info),Re}}),e.extend({type:"custom",_data:null,render:function(le,Ie,ke,Re){var Qe=this._data,We=le.getData(),ot=this.group,Oe=M(le,We,Ie,ke);We.diff(Qe).add(function(st){P(null,st,Oe(st,Re),le,ot,We)}).update(function(st,he){var J=Qe.getItemGraphicEl(he);P(J,st,Oe(st,Re),le,ot,We)}).remove(function(st){var he=Qe.getItemGraphicEl(st);he&&ot.remove(he)}).execute();var oe=le.get("clip",!0)?r(le.coordinateSystem,!1,le):null;oe?ot.setClipPath(oe):ot.removeClipPath(),this._data=We},incrementalPrepareRender:function(le,Ie,ke){this.group.removeAll(),this._data=null},incrementalRender:function(le,Ie,ke,Re,Qe){var We=Ie.getData(),ot=M(Ie,We,ke,Re);function Oe(he){he.isGroup||(he.incremental=!0,he.useHoverLayer=!0)}for(var oe=le.start;oe<le.end;oe++){var st=P(null,oe,ot(oe,Qe),Ie,this.group,We);st.traverse(Oe)}},dispose:x.noop,filterForExposedEvent:function(le,Ie,ke,Re){var Qe=Ie.element;if(Qe==null||ke.name===Qe)return!0;for(;(ke=ke.parent)&&ke!==this.group;)if(ke.name===Qe)return!0;return!1}});function O(le){var Ie=le.type,ke;if(Ie==="path"){var Re=le.shape,Qe=Re.width!=null&&Re.height!=null?{x:Re.x||0,y:Re.y||0,width:Re.width,height:Re.height}:null,We=ee(Re);ke=A.makePath(We,null,Qe,Re.layout||"center"),ke.__customPathData=We}else if(Ie==="image")ke=new A.Image({}),ke.__customImagePath=le.style.image;else if(Ie==="text")ke=new A.Text({}),ke.__customText=le.style.text;else if(Ie==="group")ke=new A.Group;else{if(Ie==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var ot=A.getShapeClass(Ie);ke=new ot}return ke.__customGraphicType=Ie,ke.name=le.name,ke}function I(le,Ie,ke,Re,Qe,We,ot){var Oe={},oe=ke.style||{};if(ke.shape&&(Oe.shape=x.clone(ke.shape)),ke.position&&(Oe.position=ke.position.slice()),ke.scale&&(Oe.scale=ke.scale.slice()),ke.origin&&(Oe.origin=ke.origin.slice()),ke.rotation&&(Oe.rotation=ke.rotation),le.type==="image"&&ke.style){var st=Oe.style={};x.each(["x","y","width","height"],function(Y){R(Y,st,oe,le.style,We)})}if(le.type==="text"&&ke.style){var st=Oe.style={};x.each(["x","y"],function($){R($,st,oe,le.style,We)}),!oe.hasOwnProperty("textFill")&&oe.fill&&(oe.textFill=oe.fill),!oe.hasOwnProperty("textStroke")&&oe.stroke&&(oe.textStroke=oe.stroke)}if(le.type!=="group"&&(le.useStyle(oe),We)){le.style.opacity=0;var he=oe.opacity;he==null&&(he=1),A.initProps(le,{style:{opacity:he}},Re,Ie)}We?le.attr(Oe):A.updateProps(le,Oe,Re,Ie),ke.hasOwnProperty("z2")&&le.attr("z2",ke.z2||0),ke.hasOwnProperty("silent")&&le.attr("silent",ke.silent),ke.hasOwnProperty("invisible")&&le.attr("invisible",ke.invisible),ke.hasOwnProperty("ignore")&&le.attr("ignore",ke.ignore),ke.hasOwnProperty("info")&&le.attr("info",ke.info);var J=ke.styleEmphasis;A.setElementHoverStyle(le,J),ot&&A.setAsHighDownDispatcher(le,J!==!1)}function R(le,Ie,ke,Re,Qe){ke[le]!=null&&!Qe&&(Ie[le]=ke[le],ke[le]=Re[le])}function M(le,Ie,ke,Re){var Qe=le.get("renderItem"),We=le.coordinateSystem,ot={};We&&(ot=We.prepareCustoms?We.prepareCustoms():w[We.type](We));var Oe=x.defaults({getWidth:Re.getWidth,getHeight:Re.getHeight,getZr:Re.getZr,getDevicePixelRatio:Re.getDevicePixelRatio,value:Ne,style:Ee,styleEmphasis:de,visual:me,barLayout:Le,currentSeriesIndices:tt,font:At},ot.api||{}),oe={context:{},seriesId:le.id,seriesName:le.name,seriesIndex:le.seriesIndex,coordSys:ot.coordSys,dataInsideLength:Ie.count(),encode:F(le.getData())},st,he=!0,J,Y,$,fe;return function(ht,Ke){return st=ht,he=!0,Qe&&Qe(x.defaults({dataIndexInside:ht,dataIndex:Ie.getRawIndex(ht),actionType:Ke?Ke.type:null},oe),Oe)};function we(ht){ht==null&&(ht=st),he&&(J=Ie.getItemModel(ht),Y=J.getModel(C),$=J.getModel(_),fe=Ie.getItemVisual(ht,"color"),he=!1)}function Ne(ht,Ke){return Ke==null&&(Ke=st),Ie.get(Ie.getDimension(ht||0),Ke)}function Ee(ht,Ke){Ke==null&&(Ke=st),we(Ke);var Jt=J.getModel(S).getItemStyle();fe!=null&&(Jt.fill=fe);var ct=Ie.getItemVisual(Ke,"opacity");ct!=null&&(Jt.opacity=ct);var Gt=ht?V(ht,Y):Y;return A.setTextStyle(Jt,Gt,null,{autoColor:fe,isRectText:!0}),Jt.text=Gt.getShallow("show")?x.retrieve2(le.getFormattedLabel(Ke,"normal"),f(Ie,Ke)):null,ht&&Q(Jt,ht),Jt}function de(ht,Ke){Ke==null&&(Ke=st),we(Ke);var Jt=J.getModel(E).getItemStyle(),ct=ht?V(ht,$):$;return A.setTextStyle(Jt,ct,null,{isRectText:!0},!0),Jt.text=ct.getShallow("show")?x.retrieve3(le.getFormattedLabel(Ke,"emphasis"),le.getFormattedLabel(Ke,"normal"),f(Ie,Ke)):null,ht&&Q(Jt,ht),Jt}function me(ht,Ke){return Ke==null&&(Ke=st),Ie.getItemVisual(Ke,ht)}function Le(ht){if(We.getBaseAxis){var Ke=We.getBaseAxis();return a(x.defaults({axis:Ke},ht),Re)}}function tt(){return ke.getCurrentSeriesIndices()}function At(ht){return A.getFont(ht,ke)}}function F(le){var Ie={};return x.each(le.dimensions,function(ke,Re){var Qe=le.getDimensionInfo(ke);if(!Qe.isExtraCoord){var We=Qe.coordDim,ot=Ie[We]=Ie[We]||[];ot[Qe.coordDimIndex]=Re}}),Ie}function P(le,Ie,ke,Re,Qe,We){return le=X(le,Ie,ke,Re,Qe,We,!0),le&&We.setItemGraphicEl(Ie,le),le}function X(le,Ie,ke,Re,Qe,We,ot){var Oe=!ke;ke=ke||{};var oe=ke.type,st=ke.shape,he=ke.style;if(le&&(Oe||oe!=null&&oe!==le.__customGraphicType||oe==="path"&&ce(st)&&ee(st)!==le.__customPathData||oe==="image"&&be(he,"image")&&he.image!==le.__customImagePath||oe==="text"&&be(st,"text")&&he.text!==le.__customText)&&(Qe.remove(le),le=null),Oe)return;var J=!le;return!le&&(le=O(ke)),I(le,Ie,ke,Re,We,J,ot),oe==="group"&&B(le,Ie,ke,Re,We),Qe.add(le),le}function B(le,Ie,ke,Re,Qe){var We=ke.children,ot=We?We.length:0,Oe=ke.$mergeChildren,oe=Oe==="byName"||ke.diffChildrenByName,st=Oe===!1;if(!ot&&!oe&&!st)return;if(oe){j({oldChildren:le.children()||[],newChildren:We||[],dataIndex:Ie,animatableModel:Re,group:le,data:Qe});return}st&&le.removeAll();for(var he=0;he<ot;he++)We[he]&&X(le.childAt(he),Ie,We[he],Re,le,Qe)}function j(le){new i(le.oldChildren,le.newChildren,W,W,le).add(z).update(z).remove(G).execute()}function W(le,Ie){var ke=le&&le.name;return ke!=null?ke:T+Ie}function z(le,Ie){var ke=this.context,Re=le!=null?ke.newChildren[le]:null,Qe=Ie!=null?ke.oldChildren[Ie]:null;X(Qe,ke.dataIndex,Re,ke.animatableModel,ke.group,ke.data)}function V(le,Ie){var ke=new o({},Ie);return x.each(b,function(Re,Qe){le.hasOwnProperty(Re)&&(ke.option[Qe]=le[Re])}),ke}function Q(le,Ie){for(var ke in Ie)(Ie.hasOwnProperty(ke)||!b.hasOwnProperty(ke))&&(le[ke]=Ie[ke])}function G(le){var Ie=this.context,ke=Ie.oldChildren[le];ke&&Ie.group.remove(ke)}function ee(le){return le&&(le.pathData||le.d)}function ce(le){return le&&(le.hasOwnProperty("pathData")||le.hasOwnProperty("d"))}function be(le,Ie){return le&&le.hasOwnProperty(Ie)}},"4HMb":function(k,D,n){var y=n("bYtY"),p=n("6GrX"),x=n("4NO4"),A=x.makeInner,m=n("aX7z"),f=m.makeLabelFormatter,h=m.getOptionCategoryInterval,u=m.shouldShowAllLabels,a=A();function i(C){return C.type==="category"?o(C):r(C)}function t(C,_){return C.type==="category"?l(C,_):{ticks:C.scale.getTicks()}}function o(C){var _=C.getLabelModel(),T=e(C,_);return!_.get("show")||C.scale.isBlank()?{labels:[],labelCategoryInterval:T.labelCategoryInterval}:T}function e(C,_){var T=s(C,"labels"),w=h(_),O=c(T,w);if(O)return O;var I,R;return y.isFunction(w)?I=E(C,w):(R=w==="auto"?g(C):w,I=S(C,R)),d(T,w,{labels:I,labelCategoryInterval:R})}function l(C,_){var T=s(C,"ticks"),w=h(_),O=c(T,w);if(O)return O;var I,R;if((!_.get("show")||C.scale.isBlank())&&(I=[]),y.isFunction(w))I=E(C,w,!0);else if(w==="auto"){var M=e(C,C.getLabelModel());R=M.labelCategoryInterval,I=y.map(M.labels,function(F){return F.tickValue})}else R=w,I=S(C,R,!0);return d(T,w,{ticks:I,tickCategoryInterval:R})}function r(C){var _=C.scale.getTicks(),T=f(C);return{labels:y.map(_,function(w,O){return{formattedLabel:T(w,O),rawLabel:C.scale.getLabel(w),tickValue:w}})}}function s(C,_){return a(C)[_]||(a(C)[_]=[])}function c(C,_){for(var T=0;T<C.length;T++)if(C[T].key===_)return C[T].value}function d(C,_,T){return C.push({key:_,value:T}),T}function g(C){var _=a(C).autoInterval;return _!=null?_:a(C).autoInterval=C.calculateCategoryInterval()}function v(C){var _=b(C),T=f(C),w=(_.axisRotate-_.labelRotate)/180*Math.PI,O=C.scale,I=O.getExtent(),R=O.count();if(I[1]-I[0]<1)return 0;var M=1;R>40&&(M=Math.max(1,Math.floor(R/40)));for(var F=I[0],P=C.dataToCoord(F+1)-C.dataToCoord(F),X=Math.abs(P*Math.cos(w)),B=Math.abs(P*Math.sin(w)),j=0,W=0;F<=I[1];F+=M){var z=0,V=0,Q=p.getBoundingRect(T(F),_.font,"center","top");z=Q.width*1.3,V=Q.height*1.3,j=Math.max(j,z,7),W=Math.max(W,V,7)}var G=j/X,ee=W/B;isNaN(G)&&(G=Infinity),isNaN(ee)&&(ee=Infinity);var ce=Math.max(0,Math.floor(Math.min(G,ee))),be=a(C.model),le=C.getExtent(),Ie=be.lastAutoInterval,ke=be.lastTickCount;return Ie!=null&&ke!=null&&Math.abs(Ie-ce)<=1&&Math.abs(ke-R)<=1&&Ie>ce&&be.axisExtend0===le[0]&&be.axisExtend1===le[1]?ce=Ie:(be.lastTickCount=R,be.lastAutoInterval=ce,be.axisExtend0=le[0],be.axisExtend1=le[1]),ce}function b(C){var _=C.getLabelModel();return{axisRotate:C.getRotate?C.getRotate():C.isHorizontal&&!C.isHorizontal()?90:0,labelRotate:_.get("rotate")||0,font:_.getFont()}}function S(C,_,T){var w=f(C),O=C.scale,I=O.getExtent(),R=C.getLabelModel(),M=[],F=Math.max((_||0)+1,1),P=I[0],X=O.count();P!==0&&F>1&&X/F>2&&(P=Math.round(Math.ceil(P/F)*F));var B=u(C),j=R.get("showMinLabel")||B,W=R.get("showMaxLabel")||B;j&&P!==I[0]&&V(I[0]);for(var z=P;z<=I[1];z+=F)V(z);W&&z-F!==I[1]&&V(I[1]);function V(Q){M.push(T?Q:{formattedLabel:w(Q),rawLabel:O.getLabel(Q),tickValue:Q})}return M}function E(C,_,T){var w=C.scale,O=f(C),I=[];return y.each(w.getTicks(),function(R){var M=w.getLabel(R);_(R,M)&&I.push(T?R:{formattedLabel:O(R),rawLabel:M,tickValue:R})}),I}D.createAxisLabels=i,D.createAxisTicks=t,D.calculateCategoryInterval=v},"4NO4":function(k,D,n){var y=n("bYtY"),p=n("ItGF"),x=y.each,A=y.isObject,m=y.isArray,f="series\0";function h(T){return T instanceof Array?T:T==null?[]:[T]}function u(T,w,O){if(T){T[w]=T[w]||{},T.emphasis=T.emphasis||{},T.emphasis[w]=T.emphasis[w]||{};for(var I=0,R=O.length;I<R;I++){var M=O[I];!T.emphasis[w].hasOwnProperty(M)&&T[w].hasOwnProperty(M)&&(T.emphasis[w][M]=T[w][M])}}}var a=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function i(T){return A(T)&&!m(T)&&!(T instanceof Date)?T.value:T}function t(T){return A(T)&&!(T instanceof Array)}function o(T,w){w=(w||[]).slice();var O=y.map(T||[],function(I,R){return{exist:I}});return x(w,function(I,R){if(!A(I))return;for(var M=0;M<O.length;M++)if(!O[M].option&&I.id!=null&&O[M].exist.id===I.id+""){O[M].option=I,w[R]=null;return}for(var M=0;M<O.length;M++){var F=O[M].exist;if(!O[M].option&&(F.id==null||I.id==null)&&I.name!=null&&!r(I)&&!r(F)&&F.name===I.name+""){O[M].option=I,w[R]=null;return}}}),x(w,function(I,R){if(!A(I))return;for(var M=0;M<O.length;M++){var F=O[M].exist;if(!O[M].option&&!r(F)&&I.id==null){O[M].option=I;break}}M>=O.length&&O.push({option:I})}),O}function e(T){var w=y.createHashMap();x(T,function(O,I){var R=O.exist;R&&w.set(R.id,O)}),x(T,function(O,I){var R=O.option;y.assert(!R||R.id==null||!w.get(R.id)||w.get(R.id)===O,"id duplicates: "+(R&&R.id)),R&&R.id!=null&&w.set(R.id,O),!O.keyInfo&&(O.keyInfo={})}),x(T,function(O,I){var R=O.exist,M=O.option,F=O.keyInfo;if(!A(M))return;if(F.name=M.name!=null?M.name+"":R?R.name:f+I,R)F.id=R.id;else if(M.id!=null)F.id=M.id+"";else{var P=0;do F.id="\0"+F.name+"\0"+P++;while(w.get(F.id))}w.set(F.id,O)})}function l(T){var w=T.name;return!!(w&&w.indexOf(f))}function r(T){return A(T)&&T.id&&(T.id+"").indexOf("\0_ec_\0")===0}function s(T,w){var O={},I={};return R(T||[],O),R(w||[],I,O),[M(O),M(I)];function R(F,P,X){for(var B=0,j=F.length;B<j;B++)for(var W=F[B].seriesId,z=h(F[B].dataIndex),V=X&&X[W],Q=0,G=z.length;Q<G;Q++){var ee=z[Q];V&&V[ee]?V[ee]=null:(P[W]||(P[W]={}))[ee]=1}}function M(F,P){var X=[];for(var B in F)if(F.hasOwnProperty(B)&&F[B]!=null)if(P)X.push(+B);else{var j=M(F[B],!0);j.length&&X.push({seriesId:B,dataIndex:j})}return X}}function c(T,w){if(w.dataIndexInside!=null)return w.dataIndexInside;if(w.dataIndex!=null)return y.isArray(w.dataIndex)?y.map(w.dataIndex,function(O){return T.indexOfRawIndex(O)}):T.indexOfRawIndex(w.dataIndex);if(w.name!=null)return y.isArray(w.name)?y.map(w.name,function(O){return T.indexOfName(O)}):T.indexOfName(w.name)}function d(){var T="__\0ec_inner_"+g+++"_"+Math.random().toFixed(5);return function(w){return w[T]||(w[T]={})}}var g=0;function v(T,w,O){if(y.isString(w)){var I={};I[w+"Index"]=0,w=I}var R=O&&O.defaultMainType;R&&!b(w,R+"Index")&&!b(w,R+"Id")&&!b(w,R+"Name")&&(w[R+"Index"]=0);var M={};return x(w,function(F,P){var F=w[P];if(P==="dataIndex"||P==="dataIndexInside"){M[P]=F;return}var X=P.match(/^(\w+)(Index|Id|Name)$/)||[],B=X[1],j=(X[2]||"").toLowerCase();if(!B||!j||F==null||j==="index"&&F==="none"||O&&O.includeMainTypes&&y.indexOf(O.includeMainTypes,B)<0)return;var W={mainType:B};(j!=="index"||F!=="all")&&(W[j]=F);var z=T.queryComponents(W);M[B+"Models"]=z,M[B+"Model"]=z[0]}),M}function b(T,w){return T&&T.hasOwnProperty(w)}function S(T,w,O){T.setAttribute?T.setAttribute(w,O):T[w]=O}function E(T,w){return T.getAttribute?T.getAttribute(w):T[w]}function C(T){return T==="auto"?p.domSupported?"html":"richText":T||"html"}function _(T,w){var O=y.createHashMap(),I=[];return y.each(T,function(R){var M=w(R);(O.get(M)||(I.push(M),O.set(M,[]))).push(R)}),{keys:I,buckets:O}}D.normalizeToArray=h,D.defaultEmphasis=u,D.TEXT_STYLE_OPTIONS=a,D.getDataItemValue=i,D.isDataItemOption=t,D.mappingToExists=o,D.makeIdAndName=e,D.isNameSpecified=l,D.isIdInner=r,D.compressBatches=s,D.queryDataIndex=c,D.makeInner=d,D.parseFinder=v,D.setAttribute=S,D.getAttribute=E,D.getTooltipRenderMode=C,D.groupData=_},"4NgU":function(k,D,n){var y=n("Yl7c");function p(A){this._setting=A||{},this._extent=[Infinity,-Infinity],this._interval=0,this.init&&this.init.apply(this,arguments)}p.prototype.parse=function(A){return A},p.prototype.getSetting=function(A){return this._setting[A]},p.prototype.contain=function(A){var m=this._extent;return A>=m[0]&&A<=m[1]},p.prototype.normalize=function(A){var m=this._extent;return m[1]===m[0]?.5:(A-m[0])/(m[1]-m[0])},p.prototype.scale=function(A){var m=this._extent;return A*(m[1]-m[0])+m[0]},p.prototype.unionExtent=function(A){var m=this._extent;A[0]<m[0]&&(m[0]=A[0]),A[1]>m[1]&&(m[1]=A[1])},p.prototype.unionExtentFromData=function(A,m){this.unionExtent(A.getApproximateExtent(m))},p.prototype.getExtent=function(){return this._extent.slice()},p.prototype.setExtent=function(A,m){var f=this._extent;isNaN(A)||(f[0]=A),isNaN(m)||(f[1]=m)},p.prototype.isBlank=function(){return this._isBlank},p.prototype.setBlank=function(A){this._isBlank=A},p.prototype.getLabel=null,y.enableClassExtend(p),y.enableClassManagement(p,{registerWhenExtend:!0});var x=p;k.exports=x},"4fz+":function(k,D,n){var y=n("bYtY"),p=n("1bdT"),x=n("mFDi"),A=function(h){h=h||{},p.call(this,h);for(var u in h)h.hasOwnProperty(u)&&(this[u]=h[u]);this._children=[],this.__storage=null,this.__dirty=!0};A.prototype={constructor:A,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(h){return this._children[h]},childOfName:function(h){for(var u=this._children,a=0;a<u.length;a++)if(u[a].name===h)return u[a]},childCount:function(){return this._children.length},add:function(h){return h&&h!==this&&h.parent!==this&&(this._children.push(h),this._doAdd(h)),this},addBefore:function(h,u){if(h&&h!==this&&h.parent!==this&&u&&u.parent===this){var a=this._children,i=a.indexOf(u);i>=0&&(a.splice(i,0,h),this._doAdd(h))}return this},_doAdd:function(h){h.parent&&h.parent.remove(h),h.parent=this;var u=this.__storage,a=this.__zr;u&&u!==h.__storage&&(u.addToStorage(h),h instanceof A&&h.addChildrenToStorage(u)),a&&a.refresh()},remove:function(h){var u=this.__zr,a=this.__storage,i=this._children,t=y.indexOf(i,h);return t<0?this:(i.splice(t,1),h.parent=null,a&&(a.delFromStorage(h),h instanceof A&&h.delChildrenFromStorage(a)),u&&u.refresh(),this)},removeAll:function(){var h=this._children,u=this.__storage,a,i;for(i=0;i<h.length;i++)a=h[i],u&&(u.delFromStorage(a),a instanceof A&&a.delChildrenFromStorage(u)),a.parent=null;return h.length=0,this},eachChild:function(h,u){for(var a=this._children,i=0;i<a.length;i++){var t=a[i];h.call(u,t,i)}return this},traverse:function(h,u){for(var a=0;a<this._children.length;a++){var i=this._children[a];h.call(u,i),i.type==="group"&&i.traverse(h,u)}return this},addChildrenToStorage:function(h){for(var u=0;u<this._children.length;u++){var a=this._children[u];h.addToStorage(a),a instanceof A&&a.addChildrenToStorage(h)}},delChildrenFromStorage:function(h){for(var u=0;u<this._children.length;u++){var a=this._children[u];h.delFromStorage(a),a instanceof A&&a.delChildrenFromStorage(h)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(h){for(var u=null,a=new x(0,0,0,0),i=h||this._children,t=[],o=0;o<i.length;o++){var e=i[o];if(e.ignore||e.invisible)continue;var l=e.getBoundingRect(),r=e.getLocalTransform(t);r?(a.copy(l),a.applyTransform(r),u=u||a.clone(),u.union(a)):(u=u||l.clone(),u.union(l))}return u||a}},y.inherits(A,p);var m=A;k.exports=m},"4i/N":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="CloseOutlined";var h=D.a=p.forwardRef(f)},"4kuk":function(k,D,n){var y=n("SfRM"),p=n("Hvzi"),x=n("u8Dt"),A=n("ekgI"),m=n("JSQU");function f(h){var u=-1,a=h==null?0:h.length;for(this.clear();++u<a;){var i=h[u];this.set(i[0],i[1])}}f.prototype.clear=y,f.prototype.delete=p,f.prototype.get=x,f.prototype.has=A,f.prototype.set=m,k.exports=f},"4mN7":function(k,D,n){var y=n("QBsz"),p=n("Sj9i"),x=Math.min,A=Math.max,m=Math.sin,f=Math.cos,h=Math.PI*2,u=y.create(),a=y.create(),i=y.create();function t(d,g,v){if(d.length===0)return;var b=d[0],S=b[0],E=b[0],C=b[1],_=b[1],T;for(T=1;T<d.length;T++)b=d[T],S=x(S,b[0]),E=A(E,b[0]),C=x(C,b[1]),_=A(_,b[1]);g[0]=S,g[1]=C,v[0]=E,v[1]=_}function o(d,g,v,b,S,E){S[0]=x(d,v),S[1]=x(g,b),E[0]=A(d,v),E[1]=A(g,b)}var e=[],l=[];function r(d,g,v,b,S,E,C,_,T,w){var O=p.cubicExtrema,I=p.cubicAt,R,M=O(d,v,S,C,e);for(T[0]=Infinity,T[1]=Infinity,w[0]=-Infinity,w[1]=-Infinity,R=0;R<M;R++){var F=I(d,v,S,C,e[R]);T[0]=x(F,T[0]),w[0]=A(F,w[0])}for(M=O(g,b,E,_,l),R=0;R<M;R++){var P=I(g,b,E,_,l[R]);T[1]=x(P,T[1]),w[1]=A(P,w[1])}T[0]=x(d,T[0]),w[0]=A(d,w[0]),T[0]=x(C,T[0]),w[0]=A(C,w[0]),T[1]=x(g,T[1]),w[1]=A(g,w[1]),T[1]=x(_,T[1]),w[1]=A(_,w[1])}function s(d,g,v,b,S,E,C,_){var T=p.quadraticExtremum,w=p.quadraticAt,O=A(x(T(d,v,S),1),0),I=A(x(T(g,b,E),1),0),R=w(d,v,S,O),M=w(g,b,E,I);C[0]=x(d,S,R),C[1]=x(g,E,M),_[0]=A(d,S,R),_[1]=A(g,E,M)}function c(d,g,v,b,S,E,C,_,T){var w=y.min,O=y.max,I=Math.abs(S-E);if(I%h<1e-4&&I>1e-4){_[0]=d-v,_[1]=g-b,T[0]=d+v,T[1]=g+b;return}if(u[0]=f(S)*v+d,u[1]=m(S)*b+g,a[0]=f(E)*v+d,a[1]=m(E)*b+g,w(_,u,a),O(T,u,a),S=S%h,S<0&&(S=S+h),E=E%h,E<0&&(E=E+h),S>E&&!C?E+=h:S<E&&C&&(S+=h),C){var R=E;E=S,S=R}for(var M=0;M<E;M+=Math.PI/2)M>S&&(i[0]=f(M)*v+d,i[1]=m(M)*b+g,w(_,i,_),O(T,i,T))}D.fromPoints=t,D.fromLine=o,D.fromCubic=r,D.fromQuadratic=s,D.fromArc=c},"4xFK":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},"56O1":function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("Uc92")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="EyeOutlined";var i=A.forwardRef(a);D.default=i},"56rv":function(k,D,n){var y=n("IwbS"),p=n("x3X8"),x=p.getDefaultLabel;function A(f,h,u,a,i,t,o){var e=u.getModel("label"),l=u.getModel("emphasis.label");y.setLabelStyle(f,h,e,l,{labelFetcher:i,labelDataIndex:t,defaultText:x(i.getData(),t),isRectText:!0,autoColor:a}),m(f),m(h)}function m(f,h){f.textPosition==="outside"&&(f.textPosition=h)}D.setLabel=A},"59Ip":function(k,D,n){var y=n("Sj9i");function p(x,A,m,f,h,u,a,i,t,o,e){if(t===0)return!1;var l=t;if(e>A+l&&e>f+l&&e>u+l&&e>i+l||e<A-l&&e<f-l&&e<u-l&&e<i-l||o>x+l&&o>m+l&&o>h+l&&o>a+l||o<x-l&&o<m-l&&o<h-l&&o<a-l)return!1;var r=y.cubicProjectPoint(x,A,m,f,h,u,a,i,o,e,null);return r<=l/2}D.containStroke=p},"5Dmo":function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("5YgA"),A=n.n(x)},"5GOC":function(k,D,n){"use strict";var y=n("cIOH"),p=n("b56q"),x=n("15/o")},"5GhG":function(k,D,n){var y=n("5GtS"),p=n("bYtY"),x=n("L0Ub"),A=x.getDimensionTypeByAxis,m=n("D5nY"),f=m.makeSeriesEncodeForAxisCoordSys,h={_baseAxisDim:null,getInitialData:function(u,a){var i,t=a.getComponent("xAxis",this.get("xAxisIndex")),o=a.getComponent("yAxis",this.get("yAxisIndex")),e=t.get("type"),l=o.get("type"),r;e==="category"?(u.layout="horizontal",i=t.getOrdinalMeta(),r=!0):l==="category"?(u.layout="vertical",i=o.getOrdinalMeta(),r=!0):u.layout=u.layout||"horizontal";var s=["x","y"],c=u.layout==="horizontal"?0:1,d=this._baseAxisDim=s[c],g=s[1-c],v=[t,o],b=v[c].get("type"),S=v[1-c].get("type"),E=u.data;if(E&&r){var C=[];p.each(E,function(w,O){var I;w.value&&p.isArray(w.value)?(I=w.value.slice(),w.value.unshift(O)):p.isArray(w)?(I=w.slice(),w.unshift(O)):I=w,C.push(I)}),u.data=C}var _=this.defaultValueDimensions,T=[{name:d,type:A(b),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:g,type:A(S),dimsDef:_.slice()}];return y(this,{coordDimensions:T,dimensionsCount:_.length+1,encodeDefaulter:p.curry(f,T,this)})},getBaseAxis:function(){var u=this._baseAxisDim;return this.ecModel.getComponent(u+"Axis",this.get(u+"AxisIndex")).axis}};D.seriesModelMixin=h},"5GtS":function(k,D,n){var y=n("sdST"),p=n("YXkt"),x=n("bYtY"),A=x.extend,m=x.isArray;function f(h,u,a){u=m(u)&&{coordDimensions:u}||A({},u);var i=h.getSource(),t=y(i,u),o=new p(t,h);return o.initData(i,a),o}k.exports=f},"5Hur":function(k,D,n){var y=n("4NO4"),p=y.makeInner,x=y.normalizeToArray,A=p();function m(h,u){for(var a=h.length,i=0;i<a;i++)if(h[i].length>u)return h[i];return h[a-1]}var f={clearColorPalette:function(){A(this).colorIdx=0,A(this).colorNameMap={}},getColorFromPalette:function(h,u,a){u=u||this;var i=A(u),t=i.colorIdx||0,o=i.colorNameMap=i.colorNameMap||{};if(o.hasOwnProperty(h))return o[h];var e=x(this.get("color",!0)),l=this.get("colorLayer",!0),r=a==null||!l?e:m(l,a);if(r=r||e,!r||!r.length)return;var s=r[t];return h&&(o[h]=s),i.colorIdx=(t+1)%r.length,s}};k.exports=f},"5NDa":function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("OnYD"),A=n.n(x),m=n("+L6B")},"5NHt":function(k,D,n){n("aTJb"),n("OlYY"),n("fc+c"),n("N5BQ"),n("IyUQ"),n("LBfv"),n("noeP")},"5OYt":function(k,D,n){"use strict";var y=n("J4zp"),p=n.n(y),x=n("q1tI"),A=n.n(x),m=n("ACnJ");function f(){var h=Object(x.useState)({}),u=p()(h,2),a=u[0],i=u[1];return Object(x.useEffect)(function(){var t=m.a.subscribe(function(o){i(o)});return function(){return m.a.unsubscribe(t)}},[]),a}D.a=f},"5RzL":function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("lwsE"),f=n.n(m),h=n("W8MJ"),u=n.n(h),a=n("7W2i"),i=n.n(a),t=n("LQ03"),o=n.n(t),e=n("q1tI"),l=n.n(e),r=n("1OyB"),s=n("vuIU"),c=n("Ji7U"),d=n("LK+K"),g=n("KQm4"),v=n("U8pU"),b=n("ODXe"),S=n("VTBJ"),E=n("rePB"),C=n("Ff2n"),_=n("4IlW"),T=n("TSYQ"),w=n.n(T),O=n("6cGi"),I=n("bX4T"),R=n("8XRh"),M=function(wr){var Sn=wr.className,cr=wr.customizeIcon,Lr=wr.customizeIconProps,Wr=wr.onMouseDown,on=wr.onClick,Nn=wr.children,Et;return typeof cr=="function"?Et=cr(Lr):Et=cr,e.createElement("span",{className:Sn,onMouseDown:function(_r){_r.preventDefault(),Wr&&Wr(_r)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:on,"aria-hidden":!0},Et!==void 0?Et:e.createElement("span",{className:w()(Sn.split(/\s+/).map(function(Cr){return"".concat(Cr,"-icon")}))},Nn))},F=M,P=n("c+Xe"),X=function(wr,Sn){var cr=wr.prefixCls,Lr=wr.id,Wr=wr.inputElement,on=wr.disabled,Nn=wr.tabIndex,Et=wr.autoFocus,Cr=wr.autoComplete,_r=wr.editable,$r=wr.accessibilityIndex,yn=wr.value,Tn=wr.maxLength,vn=wr.onKeyDown,Qn=wr.onMouseDown,Fn=wr.onChange,fi=wr.onPaste,Ri=wr.onCompositionStart,yi=wr.onCompositionEnd,Ci=wr.open,Wi=wr.attrs,qi=Wr||e.createElement("input",null),zi=qi,Ki=zi.ref,ji=zi.props,Yi=ji.onKeyDown,ca=ji.onChange,Ca=ji.onMouseDown,ra=ji.onCompositionStart,Ma=ji.onCompositionEnd,La=ji.style;return qi=e.cloneElement(qi,Object(S.a)(Object(S.a)({id:Lr,ref:Object(P.a)(Sn,Ki),disabled:on,tabIndex:Nn,autoComplete:Cr||"off",type:"search",autoFocus:Et,className:"".concat(cr,"-selection-search-input"),style:Object(S.a)(Object(S.a)({},La),{},{opacity:_r?null:0}),role:"combobox","aria-expanded":Ci,"aria-haspopup":"listbox","aria-owns":"".concat(Lr,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Lr,"_list"),"aria-activedescendant":"".concat(Lr,"_list_").concat($r)},Wi),{},{value:_r?yn:"",maxLength:Tn,readOnly:!_r,unselectable:_r?null:"on",onKeyDown:function(ga){vn(ga),Yi&&Yi(ga)},onMouseDown:function(ga){Qn(ga),Ca&&Ca(ga)},onChange:function(ga){Fn(ga),ca&&ca(ga)},onCompositionStart:function(ga){Ri(ga),ra&&ra(ga)},onCompositionEnd:function(ga){yi(ga),Ma&&Ma(ga)},onPaste:fi})),qi},B=e.forwardRef(X);B.displayName="Input";var j=B;function W(Or){return Array.isArray(Or)?Or:Or!==void 0?[Or]:[]}function z(Or,wr){var Sn=wr.labelInValue,cr=wr.combobox;if(Or===void 0||Or===""&&cr)return[];var Lr=Array.isArray(Or)?Or:[Or];return Sn?Lr.map(function(Wr){var on=Wr.key,Nn=Wr.value;return Nn!==void 0?Nn:on}):Lr}function V(Or,wr){var Sn=wr.optionLabelProp,cr=wr.labelInValue,Lr=wr.prevValue,Wr=wr.options,on=wr.getLabeledValue,Nn=Or;return cr&&(Nn=Nn.map(function(Et){return on(Et,{options:Wr,prevValue:Lr,labelInValue:cr,optionLabelProp:Sn})})),Nn}function Q(Or,wr){var Sn=Object(g.a)(wr),cr;for(cr=Or.length-1;cr>=0&&Or[cr].disabled;cr-=1);var Lr=null;return cr!==-1&&(Lr=Sn[cr],Sn.splice(cr,1)),{values:Sn,removedValue:Lr}}var G=typeof window!="undefined"&&window.document&&window.document.documentElement,ee=G,ce=0;function be(){var Or;return ee?(Or=ce,ce+=1):Or="TEST_OR_SSR",Or}function le(Or,wr){ee?e.useLayoutEffect(Or,wr):e.useEffect(Or,wr)}var Ie="__RC_SELECT_MAX_REST_COUNT__",ke=function(wr){var Sn=wr.id,cr=wr.prefixCls,Lr=wr.values,Wr=wr.open,on=wr.searchValue,Nn=wr.inputRef,Et=wr.placeholder,Cr=wr.disabled,_r=wr.mode,$r=wr.showSearch,yn=wr.autoFocus,Tn=wr.autoComplete,vn=wr.accessibilityIndex,Qn=wr.tabIndex,Fn=wr.removeIcon,fi=wr.choiceTransitionName,Ri=wr.maxTagCount,yi=wr.maxTagTextLength,Ci=wr.maxTagPlaceholder,Wi=Ci===void 0?function(to){return"+ ".concat(to.length," ...")}:Ci,qi=wr.tagRender,zi=wr.onSelect,Ki=wr.onInputChange,ji=wr.onInputPaste,Yi=wr.onInputKeyDown,ca=wr.onInputMouseDown,Ca=wr.onInputCompositionStart,ra=wr.onInputCompositionEnd,Ma=Object(e.useState)(!1),La=Object(b.a)(Ma,2),va=La[0],ga=La[1],Oa=e.useRef(null),Aa=Object(e.useState)(0),Ga=Object(b.a)(Aa,2),_a=Ga[0],Va=Ga[1],Bi=Object(e.useState)(!1),io=Object(b.a)(Bi,2),oo=io[0],Qo=io[1];e.useEffect(function(){ga(!0)},[]);var mo=Wr||_r==="tags"?on:"",To=_r==="tags"||$r&&(Wr||oo);le(function(){Va(Oa.current.scrollWidth)},[mo]);var ao=Lr,So;typeof Ri=="number"&&(So=Lr.length-Ri,ao=Lr.slice(0,Ri)),typeof yi=="number"&&(ao=ao.map(function(to){var Jo=to.label,Uo=Object(C.a)(to,["label"]),wo=Jo;if(typeof Jo=="string"||typeof Jo=="number"){var ts=String(wo);ts.length>yi&&(wo="".concat(ts.slice(0,yi),"..."))}return Object(S.a)(Object(S.a)({},Uo),{},{label:wo})})),So>0&&ao.push({key:Ie,label:typeof Wi=="function"?Wi(Lr.slice(Ri)):Wi});var bo=e.createElement(R.a,{component:!1,keys:ao,motionName:fi,motionAppear:va},function(to){var Jo=to.key,Uo=to.label,wo=to.value,ts=to.disabled,Ia=to.className,Oo=to.style,Io=Jo||wo,os=!Cr&&Jo!==Ie&&!ts,xo=function(_o){_o.preventDefault(),_o.stopPropagation()},rs=function(_o){_o&&_o.stopPropagation(),zi(wo,{selected:!1})};return typeof qi=="function"?e.createElement("span",{key:Io,onMouseDown:xo,className:Ia,style:Oo},qi({label:Uo,value:wo,disabled:ts,closable:os,onClose:rs})):e.createElement("span",{key:Io,className:w()(Ia,"".concat(cr,"-selection-item"),Object(E.a)({},"".concat(cr,"-selection-item-disabled"),ts)),style:Oo},e.createElement("span",{className:"".concat(cr,"-selection-item-content")},Uo),os&&e.createElement(F,{className:"".concat(cr,"-selection-item-remove"),onMouseDown:xo,onClick:rs,customizeIcon:Fn},"\xD7"))});return e.createElement(e.Fragment,null,bo,e.createElement("span",{className:"".concat(cr,"-selection-search"),style:{width:_a},onFocus:function(){Qo(!0)},onBlur:function(){Qo(!1)}},e.createElement(j,{ref:Nn,open:Wr,prefixCls:cr,id:Sn,inputElement:null,disabled:Cr,autoFocus:yn,autoComplete:Tn,editable:To,accessibilityIndex:vn,value:mo,onKeyDown:Yi,onMouseDown:ca,onChange:Ki,onPaste:ji,onCompositionStart:Ca,onCompositionEnd:ra,tabIndex:Qn,attrs:Object(I.a)(wr,!0)}),e.createElement("span",{ref:Oa,className:"".concat(cr,"-selection-search-mirror"),"aria-hidden":!0},mo,"\xA0")),!Lr.length&&!mo&&e.createElement("span",{className:"".concat(cr,"-selection-placeholder")},Et))},Re=ke,Qe=function(wr){var Sn=wr.inputElement,cr=wr.prefixCls,Lr=wr.id,Wr=wr.inputRef,on=wr.disabled,Nn=wr.autoFocus,Et=wr.autoComplete,Cr=wr.accessibilityIndex,_r=wr.mode,$r=wr.open,yn=wr.values,Tn=wr.placeholder,vn=wr.tabIndex,Qn=wr.showSearch,Fn=wr.searchValue,fi=wr.activeValue,Ri=wr.maxLength,yi=wr.onInputKeyDown,Ci=wr.onInputMouseDown,Wi=wr.onInputChange,qi=wr.onInputPaste,zi=wr.onInputCompositionStart,Ki=wr.onInputCompositionEnd,ji=e.useState(!1),Yi=Object(b.a)(ji,2),ca=Yi[0],Ca=Yi[1],ra=_r==="combobox",Ma=ra||Qn,La=yn[0],va=Fn||"";ra&&fi&&!ca&&(va=fi),e.useEffect(function(){ra&&Ca(!1)},[ra,fi]);var ga=_r!=="combobox"&&!$r?!1:!!va,Oa=La&&(typeof La.label=="string"||typeof La.label=="number")?La.label.toString():void 0;return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(cr,"-selection-search")},e.createElement(j,{ref:Wr,prefixCls:cr,id:Lr,open:$r,inputElement:Sn,disabled:on,autoFocus:Nn,autoComplete:Et,editable:Ma,accessibilityIndex:Cr,value:va,onKeyDown:yi,onMouseDown:Ci,onChange:function(Ga){Ca(!0),Wi(Ga)},onPaste:qi,onCompositionStart:zi,onCompositionEnd:Ki,tabIndex:vn,attrs:Object(I.a)(wr,!0),maxLength:ra?Ri:void 0})),!ra&&La&&!ga&&e.createElement("span",{className:"".concat(cr,"-selection-item"),title:Oa},La.label),!La&&!ga&&e.createElement("span",{className:"".concat(cr,"-selection-placeholder")},Tn))},We=Qe;function ot(){var Or=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,wr=e.useRef(null),Sn=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(Sn.current)}},[]);function cr(Lr){(Lr||wr.current===null)&&(wr.current=Lr),window.clearTimeout(Sn.current),Sn.current=window.setTimeout(function(){wr.current=null},Or)}return[function(){return wr.current},cr]}var Oe=function(wr,Sn){var cr=Object(e.useRef)(null),Lr=Object(e.useRef)(!1),Wr=wr.prefixCls,on=wr.multiple,Nn=wr.open,Et=wr.mode,Cr=wr.showSearch,_r=wr.tokenWithEnter,$r=wr.onSearch,yn=wr.onSearchSubmit,Tn=wr.onToggleOpen,vn=wr.onInputKeyDown,Qn=wr.domRef;e.useImperativeHandle(Sn,function(){return{focus:function(){cr.current.focus()},blur:function(){cr.current.blur()}}});var Fn=ot(0),fi=Object(b.a)(Fn,2),Ri=fi[0],yi=fi[1],Ci=function(ga){var Oa=ga.which;(Oa===_.a.UP||Oa===_.a.DOWN)&&ga.preventDefault(),vn&&vn(ga),Oa===_.a.ENTER&&Et==="tags"&&!Lr.current&&!Nn&&yn(ga.target.value),[_.a.SHIFT,_.a.TAB,_.a.BACKSPACE,_.a.ESC].includes(Oa)||Tn(!0)},Wi=function(){yi(!0)},qi=Object(e.useRef)(null),zi=function(ga){$r(ga,!0,Lr.current)!==!1&&Tn(!0)},Ki=function(){Lr.current=!0},ji=function(){Lr.current=!1},Yi=function(ga){var Oa=ga.target.value;if(_r&&qi.current&&/[\r\n]/.test(qi.current)){var Aa=qi.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");Oa=Oa.replace(Aa,qi.current)}qi.current=null,zi(Oa)},ca=function(ga){var Oa=ga.clipboardData,Aa=Oa.getData("text");qi.current=Aa},Ca=function(ga){var Oa=ga.target;if(Oa!==cr.current){var Aa=document.body.style.msTouchAction!==void 0;Aa?setTimeout(function(){cr.current.focus()}):cr.current.focus()}},ra=function(ga){var Oa=Ri();ga.target!==cr.current&&!Oa&&ga.preventDefault(),(Et!=="combobox"&&(!Cr||!Oa)||!Nn)&&(Nn&&$r("",!0,!1),Tn())},Ma={inputRef:cr,onInputKeyDown:Ci,onInputMouseDown:Wi,onInputChange:Yi,onInputPaste:ca,onInputCompositionStart:Ki,onInputCompositionEnd:ji},La=on?e.createElement(Re,Object.assign({},wr,Ma)):e.createElement(We,Object.assign({},wr,Ma));return e.createElement("div",{ref:Qn,className:"".concat(Wr,"-selector"),onClick:Ca,onMouseDown:ra},La)},oe=e.forwardRef(Oe);oe.displayName="Selector";var st=oe,he=n("uciX"),J=function(wr){var Sn=typeof wr!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Sn,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Sn,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Sn,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Sn,adjustY:1}}}},Y=function(wr,Sn){var cr=wr.prefixCls,Lr=wr.disabled,Wr=wr.visible,on=wr.children,Nn=wr.popupElement,Et=wr.containerWidth,Cr=wr.animation,_r=wr.transitionName,$r=wr.dropdownStyle,yn=wr.dropdownClassName,Tn=wr.direction,vn=Tn===void 0?"ltr":Tn,Qn=wr.dropdownMatchSelectWidth,Fn=Qn===void 0?!0:Qn,fi=wr.dropdownRender,Ri=wr.dropdownAlign,yi=wr.getPopupContainer,Ci=wr.empty,Wi=wr.getTriggerDOMNode,qi=Object(C.a)(wr,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),zi="".concat(cr,"-dropdown"),Ki=Nn;fi&&(Ki=fi(Nn));var ji=e.useMemo(function(){return J(Fn)},[Fn]),Yi=Cr?"".concat(zi,"-").concat(Cr):_r,ca=e.useRef(null);e.useImperativeHandle(Sn,function(){return{getPopupElement:function(){return ca.current}}});var Ca=Object(S.a)({minWidth:Et},$r);return typeof Fn=="number"?Ca.width=Fn:Fn&&(Ca.width=Et),e.createElement(he.a,Object.assign({},qi,{showAction:[],hideAction:[],popupPlacement:vn==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:ji,prefixCls:zi,popupTransitionName:Yi,popup:e.createElement("div",{ref:ca},Ki),popupAlign:Ri,popupVisible:Wr,getPopupContainer:yi,popupClassName:w()(yn,Object(E.a)({},"".concat(zi,"-empty"),Ci)),popupStyle:Ca,getTriggerDOMNode:Wi}),on)},$=e.forwardRef(Y);$.displayName="SelectTrigger";var fe=$,we="RC_SELECT_INTERNAL_PROPS_MARK";function Ne(){var Or=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,wr=e.useState(!1),Sn=Object(b.a)(wr,2),cr=Sn[0],Lr=Sn[1],Wr=e.useRef(null),on=function(){window.clearTimeout(Wr.current)};e.useEffect(function(){return on},[]);var Nn=function(Cr,_r){on(),Wr.current=window.setTimeout(function(){Lr(Cr),_r&&_r()},Or)};return[cr,Nn,on]}var Ee=n("T5bk"),de=n("Kwbf");function me(Or,wr){var Sn=Or.key,cr;return"value"in Or&&(cr=Or.value),Sn!=null?Sn:cr!==void 0?cr:"rc-index-key-".concat(wr)}function Le(Or){var wr=[];function Sn(cr,Lr){cr.forEach(function(Wr){Lr||!("options"in Wr)?wr.push({key:me(Wr,wr.length),groupOption:Lr,data:Wr}):(wr.push({key:me(Wr,wr.length),group:!0,data:Wr}),Sn(Wr.options,!0))})}return Sn(Or,!1),wr}function tt(Or){var wr=Object(S.a)({},Or);return"props"in wr||Object.defineProperty(wr,"props",{get:function(){return Object(de.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),wr}}),wr}function At(Or,wr){var Sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},cr=Sn.prevValueOptions,Lr=cr===void 0?[]:cr,Wr=new Map;return wr.forEach(function(on){if(!on.group){var Nn=on.data;Wr.set(Nn.value,Nn)}}),Or.map(function(on){var Nn=Wr.get(on);return Nn||(Nn=Object(S.a)({},Lr.find(function(Et){return Et._INTERNAL_OPTION_VALUE_===on}))),tt(Nn)})}var ht=function(wr,Sn){var cr=Sn.options,Lr=Sn.prevValue,Wr=Sn.labelInValue,on=Sn.optionLabelProp,Nn=At([wr],cr)[0],Et={value:wr},Cr,_r=W(Lr);return Wr&&(Cr=_r.find(function($r){return Object(v.a)($r)==="object"&&"value"in $r?$r.value===wr:$r.key===wr})),Cr&&Object(v.a)(Cr)==="object"&&"label"in Cr?(Et.label=Cr.label,Nn&&typeof Cr.label=="string"&&typeof Nn[on]=="string"&&Cr.label.trim()!==Nn[on].trim()&&Object(de.a)(!1,"`label` of `value` is not same as `label` in Select options.")):Nn&&on in Nn?Et.label=Nn[on]:Et.label=wr,Et.key=Et.value,Et};function Ke(Or){return W(Or).join("")}function Jt(Or){return function(wr,Sn){var cr=wr.toLowerCase();if("options"in Sn)return Ke(Sn.label).toLowerCase().includes(cr);var Lr=Sn[Or],Wr=Ke(Lr).toLowerCase();return Wr.includes(cr)}}function ct(Or,wr,Sn){var cr=Sn.optionFilterProp,Lr=Sn.filterOption,Wr=[],on;return Lr===!1?Object(g.a)(wr):(typeof Lr=="function"?on=Lr:on=Jt(cr),wr.forEach(function(Nn){if("options"in Nn){var Et=on(Or,Nn);if(Et)Wr.push(Nn);else{var Cr=Nn.options.filter(function(_r){return on(Or,_r)});Cr.length&&Wr.push(Object(S.a)(Object(S.a)({},Nn),{},{options:Cr}))}return}on(Or,tt(Nn))&&Wr.push(Nn)}),Wr)}function Gt(Or,wr){if(!wr||!wr.length)return null;var Sn=!1;function cr(Wr,on){var Nn=Object(Ee.a)(on),Et=Nn[0],Cr=Nn.slice(1);if(!Et)return[Wr];var _r=Wr.split(Et);return Sn=Sn||_r.length>1,_r.reduce(function($r,yn){return[].concat(Object(g.a)($r),Object(g.a)(cr(yn,Cr)))},[]).filter(function($r){return $r})}var Lr=cr(Or,wr);return Sn?Lr:null}function dr(Or,wr){var Sn=At([Or],wr)[0];return Sn.disabled}function zt(Or,wr,Sn,cr){var Lr=W(wr).slice().sort(),Wr=Object(g.a)(Or),on=new Set;return Or.forEach(function(Nn){Nn.options?Nn.options.forEach(function(Et){on.add(Et.value)}):on.add(Nn.value)}),Lr.forEach(function(Nn){var Et=cr?Nn.value:Nn;if(!on.has(Et)){var Cr;Wr.push(cr?(Cr={},Object(E.a)(Cr,Sn,Nn.label),Object(E.a)(Cr,"value",Et),Cr):{value:Et})}}),Wr}function kt(Or,wr,Sn){var cr=e.useRef(null);cr.current={elements:Or.filter(function(Lr){return Lr}),open:wr,triggerOpen:Sn},e.useEffect(function(){function Lr(Wr){var on=Wr.target;cr.current.open&&cr.current.elements.every(function(Nn){return!Nn.contains(on)&&Nn!==on})&&cr.current.triggerOpen(!1)}return window.addEventListener("mousedown",Lr),function(){return window.removeEventListener("mousedown",Lr)}},[])}function Vt(Or){var wr=e.useRef(Or),Sn=e.useMemo(function(){var cr=new Map;wr.current.forEach(function(Wr){var on=Wr.value,Nn=Wr.label;on!==Nn&&cr.set(on,Nn)});var Lr=Or.map(function(Wr){var on=cr.get(Wr.value);return Wr.value===Wr.label&&on?Object(S.a)(Object(S.a)({},Wr),{},{label:on}):Wr});return wr.current=Lr,Lr},[Or]);return Sn}function Xe(Or,wr){var Sn=e.useRef(null),cr=e.useMemo(function(){var Wr=new Map;return wr.forEach(function(on){var Nn=on.data.value;Wr.set(Nn,on)}),Wr},[Or,wr]);Sn.current=cr;var Lr=function(on){return on.map(function(Nn){return Sn.current.get(Nn)}).filter(Boolean)};return Lr}var pe=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function te(Or){var wr=Or.prefixCls,Sn=Or.components.optionList,cr=Or.convertChildrenToData,Lr=Or.flattenOptions,Wr=Or.getLabeledValue,on=Or.filterOptions,Nn=Or.isValueDisabled,Et=Or.findValueOption,Cr=Or.warningProps,_r=Or.fillOptionsWithMissingValue,$r=Or.omitDOMProps;function yn(vn,Qn){var Fn,fi=vn.prefixCls,Ri=fi===void 0?wr:fi,yi=vn.className,Ci=vn.id,Wi=vn.open,qi=vn.defaultOpen,zi=vn.options,Ki=vn.children,ji=vn.mode,Yi=vn.value,ca=vn.defaultValue,Ca=vn.labelInValue,ra=vn.showSearch,Ma=vn.inputValue,La=vn.searchValue,va=vn.filterOption,ga=vn.filterSort,Oa=vn.optionFilterProp,Aa=Oa===void 0?"value":Oa,Ga=vn.autoClearSearchValue,_a=Ga===void 0?!0:Ga,Va=vn.onSearch,Bi=vn.allowClear,io=vn.clearIcon,oo=vn.showArrow,Qo=vn.inputIcon,mo=vn.menuItemSelectedIcon,To=vn.disabled,ao=vn.loading,So=vn.defaultActiveFirstOption,bo=vn.notFoundContent,to=bo===void 0?"Not Found":bo,Jo=vn.optionLabelProp,Uo=vn.backfill,wo=vn.getInputElement,ts=vn.getPopupContainer,Ia=vn.listHeight,Oo=Ia===void 0?200:Ia,Io=vn.listItemHeight,os=Io===void 0?20:Io,xo=vn.animation,rs=vn.transitionName,Ho=vn.virtual,_o=vn.dropdownStyle,uo=vn.dropdownClassName,Ha=vn.dropdownMatchSelectWidth,pt=vn.dropdownRender,xr=vn.dropdownAlign,Jr=vn.showAction,Vr=Jr===void 0?[]:Jr,Vn=vn.direction,sn=vn.tokenSeparators,zr=vn.tagRender,qn=vn.onPopupScroll,en=vn.onDropdownVisibleChange,Un=vn.onFocus,si=vn.onBlur,ui=vn.onKeyUp,oi=vn.onKeyDown,Ei=vn.onMouseDown,pi=vn.onChange,Ai=vn.onSelect,Oi=vn.onDeselect,na=vn.onClear,Hi=vn.internalProps,fa=Hi===void 0?{}:Hi,Xa=Object(C.a)(vn,["prefixCls","className","id","open","defaultOpen","options","children","mode","value","defaultValue","labelInValue","showSearch","inputValue","searchValue","filterOption","filterSort","optionFilterProp","autoClearSearchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","menuItemSelectedIcon","disabled","loading","defaultActiveFirstOption","notFoundContent","optionLabelProp","backfill","getInputElement","getPopupContainer","listHeight","listItemHeight","animation","transitionName","virtual","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown","onChange","onSelect","onDeselect","onClear","internalProps"]),xa=fa.mark===we,wa=$r?$r(Xa):Xa;pe.forEach(function(jo){delete wa[jo]});var Da=Object(e.useRef)(null),ja=Object(e.useRef)(null),ko=Object(e.useRef)(null),ro=Object(e.useRef)(null),pa=Object(e.useMemo)(function(){return(sn||[]).some(function(jo){return[`
|
|
|
`,`\r
|
|
|
`].includes(jo)})},[sn]),Ea=Ne(),Fa=Object(b.a)(Ea,3),Ka=Fa[0],lo=Fa[1],so=Fa[2],Co=Object(e.useState)(),Lo=Object(b.a)(Co,2),is=Lo[0],cs=Lo[1];Object(e.useEffect)(function(){cs("rc_select_".concat(be()))},[]);var Rs=Ci||is,Ko=Jo;Ko===void 0&&(Ko=zi?"label":"children");var as=ji==="combobox"?!1:Ca,co=ji==="tags"||ji==="multiple",Ao=ra!==void 0?ra:co||ji==="combobox",$a=Object(e.useRef)(null);e.useImperativeHandle(Qn,function(){return{focus:ko.current.focus,blur:ko.current.blur}});var ss=Object(O.a)(ca,{value:Yi}),Cs=Object(b.a)(ss,2),Fo=Cs[0],il=Cs[1],Eo=Object(e.useMemo)(function(){return z(Fo,{labelInValue:as,combobox:ji==="combobox"})},[Fo,as]),zo=Object(e.useMemo)(function(){return new Set(Eo)},[Eo]),Bs=Object(e.useState)(null),ms=Object(b.a)(Bs,2),hs=ms[0],gn=ms[1],Ns=Object(e.useState)(""),Ll=Object(b.a)(Ns,2),el=Ll[0],Gs=Ll[1],ds=el;ji==="combobox"&&Fo!==void 0?ds=Fo:La!==void 0?ds=La:Ma&&(ds=Ma);var ks=Object(e.useMemo)(function(){var jo=zi;return jo===void 0&&(jo=cr(Ki)),ji==="tags"&&_r&&(jo=_r(jo,Fo,Ko,Ca)),jo||[]},[zi,Ki,ji,Fo]),Qs=Object(e.useMemo)(function(){return Lr(ks,vn)},[ks]),tl=Xe(Eo,Qs),xs=Object(e.useMemo)(function(){if(!ds||!Ao)return Object(g.a)(ks);var jo=on(ds,ks,{optionFilterProp:Aa,filterOption:ji==="combobox"&&va===void 0?function(){return!0}:va});return ji==="tags"&&jo.every(function(yo){return yo[Aa]!==ds})&&jo.unshift({value:ds,label:ds,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),ga&&Array.isArray(jo)?Object(g.a)(jo).sort(ga):jo},[ks,ds,ji,Ao,ga]),Us=Object(e.useMemo)(function(){return Lr(xs,vn)},[xs]);Object(e.useEffect)(function(){ro.current&&ro.current.scrollTo&&ro.current.scrollTo(0)},[ds]);var al=Object(e.useMemo)(function(){var jo=Eo.map(function(yo){var qo=tl([yo]),ps=Wr(yo,{options:qo,prevValue:Fo,labelInValue:as,optionLabelProp:Ko});return Object(S.a)(Object(S.a)({},ps),{},{disabled:Nn(yo,qo)})});return!ji&&jo.length===1&&jo[0].value===null&&jo[0].label===null?[]:jo},[Fo,ks,ji]);al=Vt(al);var Js=function(yo,qo,ps){var Os=tl([yo]),es=Et([yo],Os)[0];if(!fa.skipTriggerSelect){var Is=as?Wr(yo,{options:Os,prevValue:Fo,labelInValue:as,optionLabelProp:Ko}):yo;qo&&Ai?Ai(Is,es):!qo&&Oi&&Oi(Is,es)}xa&&(qo&&fa.onRawSelect?fa.onRawSelect(yo,es,ps):!qo&&fa.onRawDeselect&&fa.onRawDeselect(yo,es,ps))},Vo=Object(e.useState)([]),No=Object(b.a)(Vo,2),fs=No[0],Ds=No[1],go=function(yo){if(xa&&fa.skipTriggerChange)return;var qo=tl(yo),ps=V(Array.from(yo),{labelInValue:as,options:qo,getLabeledValue:Wr,prevValue:Fo,optionLabelProp:Ko}),Os=co?ps:ps[0];if(pi&&(Eo.length!==0||ps.length!==0)){var es=Et(yo,qo,{prevValueOptions:fs});Ds(es.map(function(Is,Ps){var ml=Object(S.a)({},Is);return Object.defineProperty(ml,"_INTERNAL_OPTION_VALUE_",{get:function(){return yo[Ps]}}),ml})),pi(Os,co?es:es[0])}il(Os)},Ft=function(yo,qo){var ps=qo.selected,Os=qo.source;if(To)return;var es;co?(es=new Set(Eo),ps?es.add(yo):es.delete(yo)):(es=new Set,es.add(yo)),(co||!co&&Array.from(Eo)[0]!==yo)&&go(Array.from(es)),Js(yo,!co||ps,Os),ji==="combobox"?(Gs(String(yo)),gn("")):(!co||_a)&&(Gs(""),gn(""))},er=function(yo,qo){Ft(yo,Object(S.a)(Object(S.a)({},qo),{},{source:"option"}))},Cn=function(yo,qo){Ft(yo,Object(S.a)(Object(S.a)({},qo),{},{source:"selection"}))},di=ji==="combobox"&&wo&&wo()||null,It=Object(O.a)(void 0,{defaultValue:qi,value:Wi}),ue=Object(b.a)(It,2),Se=ue[0],_e=ue[1],Je=Se,Lt=!to&&!xs.length;(To||Lt&&Je&&ji==="combobox")&&(Je=!1);var tr=Lt?!1:Je,Gr=function(yo){var qo=yo!==void 0?yo:!Je;Se!==qo&&!To&&(_e(qo),en&&en(qo))};kt([Da.current,ja.current&&ja.current.getPopupElement()],tr,Gr);var cn=function(yo,qo,ps){var Os=!0,es=yo;gn(null);var Is=ps?null:Gt(yo,sn),Ps=Is;if(ji==="combobox")qo&&go([es]);else if(Is){es="",ji!=="tags"&&(Ps=Is.map(function(Rl){var _l=Qs.find(function(Bl){var jl=Bl.data;return jl[Ko]===Rl});return _l?_l.data.value:null}).filter(function(Rl){return Rl!==null}));var ml=Array.from(new Set([].concat(Object(g.a)(Eo),Object(g.a)(Ps))));go(ml),ml.forEach(function(Rl){Js(Rl,!0,"input")}),Gr(!1),Os=!1}return Gs(es),Va&&ds!==es&&Va(es),Os},_n=function(yo){var qo=Array.from(new Set([].concat(Object(g.a)(Eo),[yo])));go(qo),qo.forEach(function(ps){Js(ps,!0,"input")}),Gs("")};Object(e.useEffect)(function(){Se&&!!To&&_e(!1)},[To]),Object(e.useEffect)(function(){!Je&&!co&&ji!=="combobox"&&cn("",!1,!1)},[Je]);var li=ot(),wi=Object(b.a)(li,2),mi=wi[0],Gi=wi[1],sa=function(yo){var qo=mi(),ps=yo.which;if(!Je&&ps===_.a.ENTER&&Gr(!0),Gi(!!ds),ps===_.a.BACKSPACE&&!qo&&co&&!ds&&Eo.length){var Os=Q(al,Eo);Os.removedValue!==null&&(go(Os.values),Js(Os.removedValue,!1,"input"))}for(var es=arguments.length,Is=new Array(es>1?es-1:0),Ps=1;Ps<es;Ps++)Is[Ps-1]=arguments[Ps];if(Je&&ro.current){var ml;(ml=ro.current).onKeyDown.apply(ml,[yo].concat(Is))}oi&&oi.apply(void 0,[yo].concat(Is))},Ua=function(yo){for(var qo=arguments.length,ps=new Array(qo>1?qo-1:0),Os=1;Os<qo;Os++)ps[Os-1]=arguments[Os];if(Je&&ro.current){var es;(es=ro.current).onKeyUp.apply(es,[yo].concat(ps))}ui&&ui.apply(void 0,[yo].concat(ps))},no=Object(e.useRef)(!1),Wo=function(){lo(!0),To||(Un&&!no.current&&Un.apply(void 0,arguments),Vr.includes("focus")&&Gr(!0)),no.current=!0},Zo=function(){if(lo(!1,function(){no.current=!1,Gr(!1)}),To)return;ds&&(ji==="tags"?(cn("",!1,!1),go(Array.from(new Set([].concat(Object(g.a)(Eo),[ds]))))):ji==="multiple"&&Gs("")),si&&si.apply(void 0,arguments)},Bo=[];Object(e.useEffect)(function(){return function(){Bo.forEach(function(jo){return clearTimeout(jo)}),Bo.splice(0,Bo.length)}},[]);var Es=function(yo){var qo=yo.target,ps=ja.current&&ja.current.getPopupElement();if(ps&&ps.contains(qo)){var Os=setTimeout(function(){var ml=Bo.indexOf(Os);ml!==-1&&Bo.splice(ml,1),so(),ps.contains(document.activeElement)||ko.current.focus()});Bo.push(Os)}if(Ei){for(var es=arguments.length,Is=new Array(es>1?es-1:0),Ps=1;Ps<es;Ps++)Is[Ps-1]=arguments[Ps];Ei.apply(void 0,[yo].concat(Is))}},As=Object(e.useState)(0),$o=Object(b.a)(As,2),Do=$o[0],vo=$o[1],Ms=So!==void 0?So:ji!=="combobox",rl=function(yo,qo){var ps=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Os=ps.source,es=Os===void 0?"keyboard":Os;vo(qo),Uo&&ji==="combobox"&&yo!==null&&es==="keyboard"&&gn(String(yo))},gs=Object(e.useState)(null),Ra=Object(b.a)(gs,2),dl=Ra[0],fl=Ra[1],js=Object(e.useState)({}),_s=Object(b.a)(js,2),Xs=_s[1];function Ql(){Xs({})}le(function(){if(tr){var jo=Math.ceil(Da.current.offsetWidth);dl!==jo&&fl(jo)}},[tr]);var Ul=e.createElement(Sn,{ref:ro,prefixCls:Ri,id:Rs,open:Je,childrenAsData:!zi,options:xs,flattenOptions:Us,multiple:co,values:zo,height:Oo,itemHeight:os,onSelect:er,onToggleOpen:Gr,onActiveValue:rl,defaultActiveFirstOption:Ms,notFoundContent:to,onScroll:qn,searchValue:ds,menuItemSelectedIcon:mo,virtual:Ho!==!1&&Ha!==!1,onMouseEnter:Ql}),wl,Ts=function(){xa&&fa.onClear&&fa.onClear(),na&&na(),go([]),cn("",!1,!1)};!To&&Bi&&(Eo.length||ds)&&(wl=e.createElement(F,{className:"".concat(Ri,"-clear"),onMouseDown:Ts,customizeIcon:io},"\xD7"));var Ks=oo!==void 0?oo:ao||!co&&ji!=="combobox",Tl;Ks&&(Tl=e.createElement(F,{className:w()("".concat(Ri,"-arrow"),Object(E.a)({},"".concat(Ri,"-arrow-loading"),ao)),customizeIcon:Qo,customizeIconProps:{loading:ao,searchValue:ds,open:Je,focused:Ka,showSearch:Ao}}));var pl=w()(Ri,yi,(Fn={},Object(E.a)(Fn,"".concat(Ri,"-focused"),Ka),Object(E.a)(Fn,"".concat(Ri,"-multiple"),co),Object(E.a)(Fn,"".concat(Ri,"-single"),!co),Object(E.a)(Fn,"".concat(Ri,"-allow-clear"),Bi),Object(E.a)(Fn,"".concat(Ri,"-show-arrow"),Ks),Object(E.a)(Fn,"".concat(Ri,"-disabled"),To),Object(E.a)(Fn,"".concat(Ri,"-loading"),ao),Object(E.a)(Fn,"".concat(Ri,"-open"),Je),Object(E.a)(Fn,"".concat(Ri,"-customize-input"),di),Object(E.a)(Fn,"".concat(Ri,"-show-search"),Ao),Fn));return e.createElement("div",Object.assign({className:pl},wa,{ref:Da,onMouseDown:Es,onKeyDown:sa,onKeyUp:Ua,onFocus:Wo,onBlur:Zo}),Ka&&!Je&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Eo.join(", "))),e.createElement(fe,{ref:ja,disabled:To,prefixCls:Ri,visible:tr,popupElement:Ul,containerWidth:dl,animation:xo,transitionName:rs,dropdownStyle:_o,dropdownClassName:uo,direction:Vn,dropdownMatchSelectWidth:Ha,dropdownRender:pt,dropdownAlign:xr,getPopupContainer:ts,empty:!ks.length,getTriggerDOMNode:function(){return $a.current}},e.createElement(st,Object.assign({},vn,{domRef:$a,prefixCls:Ri,inputElement:di,ref:ko,id:Rs,showSearch:Ao,mode:ji,accessibilityIndex:Do,multiple:co,tagRender:zr,values:al,open:Je,onToggleOpen:Gr,searchValue:ds,activeValue:hs,onSearch:cn,onSearchSubmit:_n,onSelect:Cn,tokenWithEnter:pa}))),Tl,wl)}var Tn=e.forwardRef(yn);return Tn}var $e=n("Zm9Q"),He=n("JX7q"),ae=e.createContext(null),ft=function(wr){var Sn=wr.prefixCls,cr=wr.level,Lr=wr.isStart,Wr=wr.isEnd;if(!cr)return null;for(var on="".concat(Sn,"-indent-unit"),Nn=[],Et=0;Et<cr;Et+=1){var Cr;Nn.push(e.createElement("span",{key:Et,className:w()(on,(Cr={},Object(E.a)(Cr,"".concat(on,"-start"),Lr[Et]),Object(E.a)(Cr,"".concat(on,"-end"),Wr[Et]),Cr))}))}return e.createElement("span",{"aria-hidden":"true",className:"".concat(Sn,"-indent")},Nn)},Mt=ft,mt="open",or="close",vr="---",fn=function(Or){Object(c.a)(Sn,Or);var wr=Object(d.a)(Sn);function Sn(){var cr;return Object(r.a)(this,Sn),cr=wr.apply(this,arguments),cr.state={dragNodeHighlight:!1},cr.onSelectorClick=function(Lr){var Wr=cr.props.context.onNodeClick;Wr(Lr,ur(cr.props)),cr.isSelectable()?cr.onSelect(Lr):cr.onCheck(Lr)},cr.onSelectorDoubleClick=function(Lr){var Wr=cr.props.context.onNodeDoubleClick;Wr(Lr,ur(cr.props))},cr.onSelect=function(Lr){if(cr.isDisabled())return;var Wr=cr.props.context.onNodeSelect;Lr.preventDefault(),Wr(Lr,ur(cr.props))},cr.onCheck=function(Lr){if(cr.isDisabled())return;var Wr=cr.props,on=Wr.disableCheckbox,Nn=Wr.checked,Et=cr.props.context.onNodeCheck;if(!cr.isCheckable()||on)return;Lr.preventDefault();var Cr=!Nn;Et(Lr,ur(cr.props),Cr)},cr.onMouseEnter=function(Lr){var Wr=cr.props.context.onNodeMouseEnter;Wr(Lr,ur(cr.props))},cr.onMouseLeave=function(Lr){var Wr=cr.props.context.onNodeMouseLeave;Wr(Lr,ur(cr.props))},cr.onContextMenu=function(Lr){var Wr=cr.props.context.onNodeContextMenu;Wr(Lr,ur(cr.props))},cr.onDragStart=function(Lr){var Wr=cr.props.context.onNodeDragStart;Lr.stopPropagation(),cr.setState({dragNodeHighlight:!0}),Wr(Lr,Object(He.a)(cr));try{Lr.dataTransfer.setData("text/plain","")}catch(on){}},cr.onDragEnter=function(Lr){var Wr=cr.props.context.onNodeDragEnter;Lr.preventDefault(),Lr.stopPropagation(),Wr(Lr,Object(He.a)(cr))},cr.onDragOver=function(Lr){var Wr=cr.props.context.onNodeDragOver;Lr.preventDefault(),Lr.stopPropagation(),Wr(Lr,Object(He.a)(cr))},cr.onDragLeave=function(Lr){var Wr=cr.props.context.onNodeDragLeave;Lr.stopPropagation(),Wr(Lr,Object(He.a)(cr))},cr.onDragEnd=function(Lr){var Wr=cr.props.context.onNodeDragEnd;Lr.stopPropagation(),cr.setState({dragNodeHighlight:!1}),Wr(Lr,Object(He.a)(cr))},cr.onDrop=function(Lr){var Wr=cr.props.context.onNodeDrop;Lr.preventDefault(),Lr.stopPropagation(),cr.setState({dragNodeHighlight:!1}),Wr(Lr,Object(He.a)(cr))},cr.onExpand=function(Lr){var Wr=cr.props.context.onNodeExpand;Wr(Lr,ur(cr.props))},cr.setSelectHandle=function(Lr){cr.selectHandle=Lr},cr.getNodeState=function(){var Lr=cr.props.expanded;return cr.isLeaf()?null:Lr?mt:or},cr.hasChildren=function(){var Lr=cr.props.eventKey,Wr=cr.props.context.keyEntities,on=Wr[Lr]||{},Nn=on.children;return!!(Nn||[]).length},cr.isLeaf=function(){var Lr=cr.props,Wr=Lr.isLeaf,on=Lr.loaded,Nn=cr.props.context.loadData,Et=cr.hasChildren();return Wr===!1?!1:Wr||!Nn&&!Et||Nn&&on&&!Et},cr.isDisabled=function(){var Lr=cr.props.disabled,Wr=cr.props.context.disabled;return!!(Wr||Lr)},cr.isCheckable=function(){var Lr=cr.props.checkable,Wr=cr.props.context.checkable;return!Wr||Lr===!1?!1:Wr},cr.syncLoadData=function(Lr){var Wr=Lr.expanded,on=Lr.loading,Nn=Lr.loaded,Et=cr.props.context,Cr=Et.loadData,_r=Et.onNodeLoad;if(on)return;Cr&&Wr&&!cr.isLeaf()&&(!cr.hasChildren()&&!Nn&&_r(ur(cr.props)))},cr.renderSwitcher=function(){var Lr=cr.props,Wr=Lr.expanded,on=Lr.switcherIcon,Nn=cr.props.context,Et=Nn.prefixCls,Cr=Nn.switcherIcon,_r=on||Cr;if(cr.isLeaf())return e.createElement("span",{className:w()("".concat(Et,"-switcher"),"".concat(Et,"-switcher-noop"))},typeof _r=="function"?_r(Object(S.a)(Object(S.a)({},cr.props),{},{isLeaf:!0})):_r);var $r=w()("".concat(Et,"-switcher"),"".concat(Et,"-switcher_").concat(Wr?mt:or));return e.createElement("span",{onClick:cr.onExpand,className:$r},typeof _r=="function"?_r(Object(S.a)(Object(S.a)({},cr.props),{},{isLeaf:!1})):_r)},cr.renderCheckbox=function(){var Lr=cr.props,Wr=Lr.checked,on=Lr.halfChecked,Nn=Lr.disableCheckbox,Et=cr.props.context.prefixCls,Cr=cr.isDisabled(),_r=cr.isCheckable();if(!_r)return null;var $r=typeof _r!="boolean"?_r:null;return e.createElement("span",{className:w()("".concat(Et,"-checkbox"),Wr&&"".concat(Et,"-checkbox-checked"),!Wr&&on&&"".concat(Et,"-checkbox-indeterminate"),(Cr||Nn)&&"".concat(Et,"-checkbox-disabled")),onClick:cr.onCheck},$r)},cr.renderIcon=function(){var Lr=cr.props.loading,Wr=cr.props.context.prefixCls;return e.createElement("span",{className:w()("".concat(Wr,"-iconEle"),"".concat(Wr,"-icon__").concat(cr.getNodeState()||"docu"),Lr&&"".concat(Wr,"-icon_loading"))})},cr.renderSelector=function(){var Lr=cr.state.dragNodeHighlight,Wr=cr.props,on=Wr.title,Nn=Wr.selected,Et=Wr.icon,Cr=Wr.loading,_r=Wr.data,$r=cr.props.context,yn=$r.prefixCls,Tn=$r.showIcon,vn=$r.icon,Qn=$r.draggable,Fn=$r.loadData,fi=$r.titleRender,Ri=cr.isDisabled(),yi="".concat(yn,"-node-content-wrapper"),Ci;if(Tn){var Wi=Et||vn;Ci=Wi?e.createElement("span",{className:w()("".concat(yn,"-iconEle"),"".concat(yn,"-icon__customize"))},typeof Wi=="function"?Wi(cr.props):Wi):cr.renderIcon()}else Fn&&Cr&&(Ci=cr.renderIcon());var qi;typeof on=="function"?qi=on(_r):fi?qi=fi(_r):qi=on;var zi=e.createElement("span",{className:"".concat(yn,"-title")},qi);return e.createElement("span",{ref:cr.setSelectHandle,title:typeof on=="string"?on:"",className:w()("".concat(yi),"".concat(yi,"-").concat(cr.getNodeState()||"normal"),!Ri&&(Nn||Lr)&&"".concat(yn,"-node-selected"),!Ri&&Qn&&"draggable"),draggable:!Ri&&Qn||void 0,"aria-grabbed":!Ri&&Qn||void 0,onMouseEnter:cr.onMouseEnter,onMouseLeave:cr.onMouseLeave,onContextMenu:cr.onContextMenu,onClick:cr.onSelectorClick,onDoubleClick:cr.onSelectorDoubleClick,onDragStart:Qn?cr.onDragStart:void 0},Ci,zi)},cr}return Object(s.a)(Sn,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Lr=this.props.selectable,Wr=this.props.context.selectable;return typeof Lr=="boolean"?Lr:Wr}},{key:"render",value:function(){var Lr,Wr=this.props,on=Wr.eventKey,Nn=Wr.className,Et=Wr.style,Cr=Wr.dragOver,_r=Wr.dragOverGapTop,$r=Wr.dragOverGapBottom,yn=Wr.isLeaf,Tn=Wr.isStart,vn=Wr.isEnd,Qn=Wr.expanded,Fn=Wr.selected,fi=Wr.checked,Ri=Wr.halfChecked,yi=Wr.loading,Ci=Wr.domRef,Wi=Wr.active,qi=Wr.onMouseMove,zi=Object(C.a)(Wr,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),Ki=this.props.context,ji=Ki.prefixCls,Yi=Ki.filterTreeNode,ca=Ki.draggable,Ca=Ki.keyEntities,ra=this.isDisabled(),Ma=Be(zi),La=Ca[on]||{},va=La.level,ga=vn[vn.length-1];return e.createElement("div",Object.assign({ref:Ci,className:w()(Nn,"".concat(ji,"-treenode"),(Lr={},Object(E.a)(Lr,"".concat(ji,"-treenode-disabled"),ra),Object(E.a)(Lr,"".concat(ji,"-treenode-switcher-").concat(Qn?"open":"close"),!yn),Object(E.a)(Lr,"".concat(ji,"-treenode-checkbox-checked"),fi),Object(E.a)(Lr,"".concat(ji,"-treenode-checkbox-indeterminate"),Ri),Object(E.a)(Lr,"".concat(ji,"-treenode-selected"),Fn),Object(E.a)(Lr,"".concat(ji,"-treenode-loading"),yi),Object(E.a)(Lr,"".concat(ji,"-treenode-active"),Wi),Object(E.a)(Lr,"".concat(ji,"-treenode-leaf-last"),ga),Object(E.a)(Lr,"drag-over",!ra&&Cr),Object(E.a)(Lr,"drag-over-gap-top",!ra&&_r),Object(E.a)(Lr,"drag-over-gap-bottom",!ra&&$r),Object(E.a)(Lr,"filter-node",Yi&&Yi(ur(this.props))),Lr)),style:Et,onDragEnter:ca?this.onDragEnter:void 0,onDragOver:ca?this.onDragOver:void 0,onDragLeave:ca?this.onDragLeave:void 0,onDrop:ca?this.onDrop:void 0,onDragEnd:ca?this.onDragEnd:void 0,onMouseMove:qi},Ma),e.createElement(Mt,{prefixCls:ji,level:va,isStart:Tn,isEnd:vn}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Sn}(e.Component),sr=function(wr){return e.createElement(ae.Consumer,null,function(Sn){return e.createElement(fn,Object.assign({},wr,{context:Sn}))})};sr.displayName="TreeNode",sr.defaultProps={title:vr},sr.isTreeNode=1;var Ir=sr,lr=.25,Wt=2;function xt(Or,wr){var Sn=Or.slice(),cr=Sn.indexOf(wr);return cr>=0&&Sn.splice(cr,1),Sn}function rn(Or,wr){var Sn=Or.slice();return Sn.indexOf(wr)===-1&&Sn.push(wr),Sn}function Dn(Or){return Or.split("-")}function Xn(Or,wr){return"".concat(Or,"-").concat(wr)}function ri(Or){return Or&&Or.type&&Or.type.isTreeNode}function Ui(Or,wr){var Sn=[Or],cr=wr[Or];function Lr(){var Wr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Wr.forEach(function(on){var Nn=on.key,Et=on.children;Sn.push(Nn),Lr(Et)})}return Lr(cr.children),Sn}function Bn(Or,wr){var Sn=Or.clientY,cr=wr.selectHandle.getBoundingClientRect(),Lr=cr.top,Wr=cr.bottom,on=cr.height,Nn=Math.max(on*lr,Wt);return Sn<=Lr+Nn?-1:Sn>=Wr-Nn?1:0}function Jn(Or,wr){if(!Or)return;var Sn=wr.multiple;return Sn?Or.slice():Or.length?[Or[0]]:Or}var Xt=function(wr){return wr};function _t(Or,wr){if(!Or)return[];var Sn=wr||{},cr=Sn.processProps,Lr=cr===void 0?Xt:cr,Wr=Array.isArray(Or)?Or:[Or];return Wr.map(function(on){var Nn=on.children,Et=Object(C.a)(on,["children"]),Cr=_t(Nn,wr);return l.a.createElement(Ir,Object.assign({},Lr(Et)),Cr)})}function Fe(Or){if(!Or)return null;var wr;if(Array.isArray(Or))wr={checkedKeys:Or,halfCheckedKeys:void 0};else if(Object(v.a)(Or)==="object")wr={checkedKeys:Or.checked||void 0,halfCheckedKeys:Or.halfChecked||void 0};else return Object(de.a)(!1,"`checkedKeys` is not an array or an object"),null;return wr}function Pe(Or,wr){var Sn=new Set;function cr(Lr){if(Sn.has(Lr))return;var Wr=wr[Lr];if(!Wr)return;Sn.add(Lr);var on=Wr.parent,Nn=Wr.node;if(Nn.disabled)return;on&&cr(on.key)}return(Or||[]).forEach(function(Lr){cr(Lr)}),Object(g.a)(Sn)}function Be(Or){var wr={};return Object.keys(Or).forEach(function(Sn){(Sn.startsWith("data-")||Sn.startsWith("aria-"))&&(wr[Sn]=Or[Sn])}),wr}function nt(Or,wr){return Or!=null?Or:wr}function vt(){var Or=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],wr=new Map;function Sn(cr){var Lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(cr||[]).forEach(function(Wr){var on=Wr.key,Nn=Wr.children;Object(de.a)(on!=null,"Tree node must have a certain key: [".concat(Lr).concat(on,"]"));var Et=String(on);Object(de.a)(!wr.has(Et)||on===null||on===void 0,"Same 'key' exist in the Tree: ".concat(Et)),wr.set(Et,!0),Sn(Nn,"".concat(Lr).concat(Et," > "))})}Sn(Or)}function ar(Or){function wr(Sn){var cr=Object($e.a)(Sn);return cr.map(function(Lr){if(!ri(Lr))return Object(de.a)(!Lr,"Tree/TreeNode can only accept TreeNode as children."),null;var Wr=Lr.key,on=Lr.props,Nn=on.children,Et=Object(C.a)(on,["children"]),Cr=Object(S.a)({key:Wr},Et),_r=wr(Nn);return _r.length&&(Cr.children=_r),Cr}).filter(function(Lr){return Lr})}return wr(Or)}function kr(){var Or=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Sn=new Set(wr===!0?[]:wr),cr=[];function Lr(Wr){var on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Wr.map(function(Nn,Et){var Cr=Xn(on?on.pos:"0",Et),_r=nt(Nn.key,Cr),$r=Object(S.a)(Object(S.a)({},Nn),{},{parent:on,pos:Cr,children:null,data:Nn,isStart:[].concat(Object(g.a)(on?on.isStart:[]),[Et===0]),isEnd:[].concat(Object(g.a)(on?on.isEnd:[]),[Et===Wr.length-1])});return cr.push($r),wr===!0||Sn.has(_r)?$r.children=Lr(Nn.children||[],$r):$r.children=[],$r})}return Lr(Or),cr}function mn(Or,wr,Sn){var cr;Sn?typeof Sn=="string"?cr=function(on){return on[Sn]}:typeof Sn=="function"&&(cr=function(on){return Sn(on)}):cr=function(on,Nn){return nt(on.key,Nn)};function Lr(Wr,on,Nn){var Et=Wr?Wr.children:Or,Cr=Wr?Xn(Nn.pos,on):"0";if(Wr){var _r=cr(Wr,Cr),$r={node:Wr,index:on,pos:Cr,key:_r,parentPos:Nn.node?Nn.pos:null,level:Nn.level+1};wr($r)}Et&&Et.forEach(function(yn,Tn){Lr(yn,Tn,{node:Wr,pos:Cr,level:Nn?Nn.level+1:-1})})}Lr(null)}function Zn(Or){var wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Sn=wr.initWrapper,cr=wr.processEntity,Lr=wr.onProcessFinished,Wr=arguments.length>2?arguments[2]:void 0,on={},Nn={},Et={posEntities:on,keyEntities:Nn};return Sn&&(Et=Sn(Et)||Et),mn(Or,function(Cr){var _r=Cr.node,$r=Cr.index,yn=Cr.pos,Tn=Cr.key,vn=Cr.parentPos,Qn=Cr.level,Fn={node:_r,index:$r,key:Tn,pos:yn,level:Qn},fi=nt(Tn,yn);on[yn]=Fn,Nn[fi]=Fn,Fn.parent=on[vn],Fn.parent&&(Fn.parent.children=Fn.parent.children||[],Fn.parent.children.push(Fn)),cr&&cr(Fn,Et)},Wr),Lr&&Lr(Et),Et}function ni(Or,wr){var Sn=wr.expandedKeys,cr=wr.selectedKeys,Lr=wr.loadedKeys,Wr=wr.loadingKeys,on=wr.checkedKeys,Nn=wr.halfCheckedKeys,Et=wr.dragOverNodeKey,Cr=wr.dropPosition,_r=wr.keyEntities,$r=_r[Or],yn={eventKey:Or,expanded:Sn.indexOf(Or)!==-1,selected:cr.indexOf(Or)!==-1,loaded:Lr.indexOf(Or)!==-1,loading:Wr.indexOf(Or)!==-1,checked:on.indexOf(Or)!==-1,halfChecked:Nn.indexOf(Or)!==-1,pos:String($r?$r.pos:""),dragOver:Et===Or&&Cr===0,dragOverGapTop:Et===Or&&Cr===-1,dragOverGapBottom:Et===Or&&Cr===1};return yn}function ur(Or){var wr=Or.data,Sn=Or.expanded,cr=Or.selected,Lr=Or.checked,Wr=Or.loaded,on=Or.loading,Nn=Or.halfChecked,Et=Or.dragOver,Cr=Or.dragOverGapTop,_r=Or.dragOverGapBottom,$r=Or.pos,yn=Or.active,Tn=Object(S.a)(Object(S.a)({},wr),{},{expanded:Sn,selected:cr,checked:Lr,loaded:Wr,loading:on,halfChecked:Nn,dragOver:Et,dragOverGapTop:Cr,dragOverGapBottom:_r,pos:$r,active:yn});return"props"in Tn||Object.defineProperty(Tn,"props",{get:function(){return Object(de.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Or}}),Tn}function Nt(Or,wr){var Sn=new Set;return Or.forEach(function(cr){wr.has(cr)||Sn.add(cr)}),Sn}function bt(Or){var wr=Or||{},Sn=wr.disabled,cr=wr.disableCheckbox,Lr=wr.checkable;return!!(Sn||cr)||Lr===!1}function gr(Or,wr,Sn,cr){for(var Lr=new Set(Or),Wr=new Set,on=0;on<=Sn;on+=1){var Nn=wr.get(on)||new Set;Nn.forEach(function($r){var yn=$r.key,Tn=$r.node,vn=$r.children,Qn=vn===void 0?[]:vn;Lr.has(yn)&&!cr(Tn)&&Qn.filter(function(Fn){return!cr(Fn.node)}).forEach(function(Fn){Lr.add(Fn.key)})})}for(var Et=new Set,Cr=Sn;Cr>=0;Cr-=1){var _r=wr.get(Cr)||new Set;_r.forEach(function($r){var yn=$r.parent,Tn=$r.node;if(cr(Tn)||!$r.parent||Et.has($r.parent.key))return;if(cr($r.parent.node)){Et.add(yn.key);return}var vn=!0,Qn=!1;(yn.children||[]).filter(function(Fn){return!cr(Fn.node)}).forEach(function(Fn){var fi=Fn.key,Ri=Lr.has(fi);vn&&!Ri&&(vn=!1),!Qn&&(Ri||Wr.has(fi))&&(Qn=!0)}),vn&&Lr.add(yn.key),Qn&&Wr.add(yn.key),Et.add(yn.key)})}return{checkedKeys:Array.from(Lr),halfCheckedKeys:Array.from(Nt(Wr,Lr))}}function Yt(Or,wr,Sn,cr,Lr){for(var Wr=new Set(Or),on=new Set(wr),Nn=0;Nn<=cr;Nn+=1){var Et=Sn.get(Nn)||new Set;Et.forEach(function(yn){var Tn=yn.key,vn=yn.node,Qn=yn.children,Fn=Qn===void 0?[]:Qn;!Wr.has(Tn)&&!on.has(Tn)&&!Lr(vn)&&Fn.filter(function(fi){return!Lr(fi.node)}).forEach(function(fi){Wr.delete(fi.key)})})}on=new Set;for(var Cr=new Set,_r=cr;_r>=0;_r-=1){var $r=Sn.get(_r)||new Set;$r.forEach(function(yn){var Tn=yn.parent,vn=yn.node;if(Lr(vn)||!yn.parent||Cr.has(yn.parent.key))return;if(Lr(yn.parent.node)){Cr.add(Tn.key);return}var Qn=!0,Fn=!1;(Tn.children||[]).filter(function(fi){return!Lr(fi.node)}).forEach(function(fi){var Ri=fi.key,yi=Wr.has(Ri);Qn&&!yi&&(Qn=!1),!Fn&&(yi||on.has(Ri))&&(Fn=!0)}),Qn||Wr.delete(Tn.key),Fn&&on.add(Tn.key),Cr.add(Tn.key)})}return{checkedKeys:Array.from(Wr),halfCheckedKeys:Array.from(Nt(on,Wr))}}function Pt(Or,wr,Sn,cr){var Lr=[],Wr;cr?Wr=cr:Wr=bt;var on=new Set(Or.filter(function(_r){var $r=!!Sn[_r];return $r||Lr.push(_r),$r})),Nn=new Map,Et=0;Object.keys(Sn).forEach(function(_r){var $r=Sn[_r],yn=$r.level,Tn=Nn.get(yn);Tn||(Tn=new Set,Nn.set(yn,Tn)),Tn.add($r),Et=Math.max(Et,yn)}),Object(de.a)(!Lr.length,"Tree missing follow keys: ".concat(Lr.slice(0,100).map(function(_r){return"'".concat(_r,"'")}).join(", ")));var Cr;return wr===!0?Cr=gr(on,Nn,Et,Wr):Cr=Yt(on,wr.halfCheckedKeys,Nn,Et,Wr),Cr}var rr=n("YrtM"),Rt=n("+nKL"),qt=function(wr,Sn){var cr=wr.className,Lr=wr.style,Wr=wr.motion,on=wr.motionNodes,Nn=wr.motionType,Et=wr.onMotionStart,Cr=wr.onMotionEnd,_r=wr.active,$r=wr.treeNodeRequiredProps,yn=Object(C.a)(wr,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),Tn=e.useState(!0),vn=Object(b.a)(Tn,2),Qn=vn[0],Fn=vn[1],fi=e.useContext(ae),Ri=fi.prefixCls,yi=e.useRef(!1),Ci=function(){yi.current||Cr(),yi.current=!0};return Object(e.useEffect)(function(){on&&Nn==="hide"&&Qn&&Fn(!1)},[on]),Object(e.useEffect)(function(){return on&&Et(),function(){on&&Ci()}},[]),on?e.createElement(R.b,Object.assign({ref:Sn,visible:Qn},Wr,{motionAppear:Nn==="show",onAppearEnd:Ci,onLeaveEnd:Ci}),function(Wi,qi){var zi=Wi.className,Ki=Wi.style;return e.createElement("div",{ref:qi,className:w()("".concat(Ri,"-treenode-motion"),zi),style:Ki},on.map(function(ji){var Yi=ji.data,ca=Yi.key,Ca=Object(C.a)(Yi,["key"]),ra=ji.isStart,Ma=ji.isEnd;delete Ca.children;var La=ni(ca,$r);return e.createElement(Ir,Object.assign({},Ca,La,{active:_r,data:ji.data,key:ca,isStart:ra,isEnd:Ma}))}))}):e.createElement(Ir,Object.assign({domRef:Sn,className:cr,style:Lr},yn,{active:_r}))};qt.displayName="MotionTreeNode";var Yr=e.forwardRef(qt),Mr=Yr;function Dr(){var Or=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Sn=Or.length,cr=wr.length;if(Math.abs(Sn-cr)!==1)return{add:!1,key:null};function Lr(Wr,on){var Nn=new Map;Wr.forEach(function(Cr){Nn.set(Cr,!0)});var Et=on.filter(function(Cr){return!Nn.has(Cr)});return Et.length===1?Et[0]:null}return Sn<cr?{add:!0,key:Lr(Or,wr)}:{add:!1,key:Lr(wr,Or)}}function un(Or,wr,Sn){var cr=Or.findIndex(function(Nn){var Et=Nn.data;return Et.key===Sn}),Lr=Or[cr+1],Wr=wr.findIndex(function(Nn){var Et=Nn.data;return Et.key===Sn});if(Lr){var on=wr.findIndex(function(Nn){var Et=Nn.data;return Et.key===Lr.data.key});return wr.slice(Wr+1,on)}return wr.slice(Wr+1)}var wn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ai=function(){},ei="RC_TREE_MOTION_".concat(Math.random()),gi={key:ei},Ii={key:ei,level:0,index:0,pos:"0",node:gi},ki={parent:null,children:[],pos:Ii.pos,data:gi,isStart:[],isEnd:[]};function Qi(Or,wr,Sn,cr){return wr===!1||!Sn?Or:Or.slice(0,Math.ceil(Sn/cr)+1)}function it(Or){var wr=Or.data.key,Sn=Or.pos;return nt(wr,Sn)}function Me(Or){for(var wr=String(Or.data.key),Sn=Or;Sn.parent;)Sn=Sn.parent,wr="".concat(Sn.data.key," > ").concat(wr);return wr}var je=function(wr,Sn){var cr=wr.prefixCls,Lr=wr.data,Wr=wr.selectable,on=wr.checkable,Nn=wr.expandedKeys,Et=wr.selectedKeys,Cr=wr.checkedKeys,_r=wr.loadedKeys,$r=wr.loadingKeys,yn=wr.halfCheckedKeys,Tn=wr.keyEntities,vn=wr.disabled,Qn=wr.dragging,Fn=wr.dragOverNodeKey,fi=wr.dropPosition,Ri=wr.motion,yi=wr.height,Ci=wr.itemHeight,Wi=wr.virtual,qi=wr.focusable,zi=wr.activeItem,Ki=wr.focused,ji=wr.tabIndex,Yi=wr.onKeyDown,ca=wr.onFocus,Ca=wr.onBlur,ra=wr.onActiveChange,Ma=wr.onListChangeStart,La=wr.onListChangeEnd,va=Object(C.a)(wr,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),ga=e.useRef(null);e.useImperativeHandle(Sn,function(){return{scrollTo:function(rs){ga.current.scrollTo(rs)}}});var Oa=e.useState(Nn),Aa=Object(b.a)(Oa,2),Ga=Aa[0],_a=Aa[1],Va=e.useState(Lr),Bi=Object(b.a)(Va,2),io=Bi[0],oo=Bi[1],Qo=e.useState(Lr),mo=Object(b.a)(Qo,2),To=mo[0],ao=mo[1],So=e.useState([]),bo=Object(b.a)(So,2),to=bo[0],Jo=bo[1],Uo=e.useState(null),wo=Object(b.a)(Uo,2),ts=wo[0],Ia=wo[1];function Oo(){oo(Lr),ao(Lr),Jo([]),Ia(null),La()}e.useEffect(function(){_a(Nn);var xo=Dr(Ga,Nn);if(xo.key!==null)if(xo.add){var rs=io.findIndex(function(xr){var Jr=xr.data.key;return Jr===xo.key}),Ho=Qi(un(io,Lr,xo.key),Wi,yi,Ci),_o=io.slice();_o.splice(rs+1,0,ki),ao(_o),Jo(Ho),Ia("show")}else{var uo=Lr.findIndex(function(xr){var Jr=xr.data.key;return Jr===xo.key}),Ha=Qi(un(Lr,io,xo.key),Wi,yi,Ci),pt=Lr.slice();pt.splice(uo+1,0,ki),ao(pt),Jo(Ha),Ia("hide")}else io!==Lr&&(oo(Lr),ao(Lr))},[Nn,Lr]),e.useEffect(function(){Qn||Oo()},[Qn]);var Io=Ri?To:Lr,os={expandedKeys:Nn,selectedKeys:Et,loadedKeys:_r,loadingKeys:$r,checkedKeys:Cr,halfCheckedKeys:yn,dragOverNodeKey:Fn,dropPosition:fi,keyEntities:Tn};return e.createElement(e.Fragment,null,Ki&&zi&&e.createElement("span",{style:wn,"aria-live":"assertive"},Me(zi)),e.createElement("div",{role:"tree"},e.createElement("input",{style:wn,disabled:qi===!1||vn,tabIndex:qi!==!1?ji:null,onKeyDown:Yi,onFocus:ca,onBlur:Ca,value:"",onChange:ai})),e.createElement(Rt.a,Object.assign({},va,{data:Io,itemKey:it,height:yi,fullHeight:!1,virtual:Wi,itemHeight:Ci,prefixCls:"".concat(cr,"-list"),ref:ga}),function(xo){var rs=xo.pos,Ho=xo.data,_o=Ho.key,uo=Object(C.a)(Ho,["key"]),Ha=xo.isStart,pt=xo.isEnd,xr=nt(_o,rs);delete uo.children;var Jr=ni(xr,os);return e.createElement(Mr,Object.assign({},uo,Jr,{active:zi&&_o===zi.data.key,pos:rs,data:xo.data,isStart:Ha,isEnd:pt,motion:Ri,motionNodes:_o===ei?to:null,motionType:ts,onMotionStart:Ma,onMotionEnd:Oo,treeNodeRequiredProps:os,onMouseMove:function(){ra(null)}}))}))},Ye=e.forwardRef(je);Ye.displayName="NodeList";var rt=Ye,qe=function(Or){Object(c.a)(Sn,Or);var wr=Object(d.a)(Sn);function Sn(){var cr;return Object(r.a)(this,Sn),cr=wr.apply(this,arguments),cr.destroyed=!1,cr.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},cr.listRef=e.createRef(),cr.onNodeDragStart=function(Lr,Wr){var on=cr.state,Nn=on.expandedKeys,Et=on.keyEntities,Cr=cr.props.onDragStart,_r=Wr.props.eventKey;cr.dragNode=Wr;var $r=xt(Nn,_r);cr.setState({dragging:!0,dragNodesKeys:Ui(_r,Et)}),cr.setExpandedKeys($r),Cr&&Cr({event:Lr,node:ur(Wr.props)})},cr.onNodeDragEnter=function(Lr,Wr){var on=cr.state,Nn=on.expandedKeys,Et=on.keyEntities,Cr=on.dragNodesKeys,_r=cr.props.onDragEnter,$r=Wr.props,yn=$r.pos,Tn=$r.eventKey;if(!cr.dragNode||Cr.indexOf(Tn)!==-1)return;var vn=Bn(Lr,Wr);if(cr.dragNode.props.eventKey===Tn&&vn===0){cr.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){cr.setState({dragOverNodeKey:Tn,dropPosition:vn}),cr.delayedDragEnterLogic||(cr.delayedDragEnterLogic={}),Object.keys(cr.delayedDragEnterLogic).forEach(function(Qn){clearTimeout(cr.delayedDragEnterLogic[Qn])}),cr.delayedDragEnterLogic[yn]=window.setTimeout(function(){if(!cr.state.dragging)return;var Qn=Object(g.a)(Nn),Fn=Et[Tn];Fn&&(Fn.children||[]).length&&(Qn=rn(Nn,Tn)),"expandedKeys"in cr.props||cr.setExpandedKeys(Qn),_r&&_r({event:Lr,node:ur(Wr.props),expandedKeys:Qn})},400)},0)},cr.onNodeDragOver=function(Lr,Wr){var on=cr.state.dragNodesKeys,Nn=cr.props.onDragOver,Et=Wr.props.eventKey;if(on.indexOf(Et)!==-1)return;if(cr.dragNode&&Et===cr.state.dragOverNodeKey){var Cr=Bn(Lr,Wr);if(Cr===cr.state.dropPosition)return;cr.setState({dropPosition:Cr})}Nn&&Nn({event:Lr,node:ur(Wr.props)})},cr.onNodeDragLeave=function(Lr,Wr){var on=cr.props.onDragLeave;cr.setState({dragOverNodeKey:""}),on&&on({event:Lr,node:ur(Wr.props)})},cr.onNodeDragEnd=function(Lr,Wr){var on=cr.props.onDragEnd;cr.setState({dragOverNodeKey:""}),cr.cleanDragState(),on&&on({event:Lr,node:ur(Wr.props)}),cr.dragNode=null},cr.onNodeDrop=function(Lr,Wr){var on=cr.state,Nn=on.dragNodesKeys,Et=Nn===void 0?[]:Nn,Cr=on.dropPosition,_r=cr.props.onDrop,$r=Wr.props,yn=$r.eventKey,Tn=$r.pos;if(cr.setState({dragOverNodeKey:""}),cr.cleanDragState(),Et.indexOf(yn)!==-1){Object(de.a)(!1,"Can not drop to dragNode(include it's children node)");return}var vn=Dn(Tn),Qn={event:Lr,node:ur(Wr.props),dragNode:cr.dragNode?ur(cr.dragNode.props):null,dragNodesKeys:Et.slice(),dropPosition:Cr+Number(vn[vn.length-1]),dropToGap:!1};Cr!==0&&(Qn.dropToGap=!0),_r&&_r(Qn),cr.dragNode=null},cr.cleanDragState=function(){var Lr=cr.state.dragging;Lr&&cr.setState({dragging:!1})},cr.onNodeClick=function(Lr,Wr){var on=cr.props.onClick;on&&on(Lr,Wr)},cr.onNodeDoubleClick=function(Lr,Wr){var on=cr.props.onDoubleClick;on&&on(Lr,Wr)},cr.onNodeSelect=function(Lr,Wr){var on=cr.state.selectedKeys,Nn=cr.state.keyEntities,Et=cr.props,Cr=Et.onSelect,_r=Et.multiple,$r=Wr.selected,yn=Wr.key,Tn=!$r;Tn?_r?on=rn(on,yn):on=[yn]:on=xt(on,yn);var vn=on.map(function(Qn){var Fn=Nn[Qn];return Fn?Fn.node:null}).filter(function(Qn){return Qn});cr.setUncontrolledState({selectedKeys:on}),Cr&&Cr(on,{event:"select",selected:Tn,node:Wr,selectedNodes:vn,nativeEvent:Lr.nativeEvent})},cr.onNodeCheck=function(Lr,Wr,on){var Nn=cr.state,Et=Nn.keyEntities,Cr=Nn.checkedKeys,_r=Nn.halfCheckedKeys,$r=cr.props,yn=$r.checkStrictly,Tn=$r.onCheck,vn=Wr.key,Qn,Fn={event:"check",node:Wr,checked:on,nativeEvent:Lr.nativeEvent};if(yn){var fi=on?rn(Cr,vn):xt(Cr,vn),Ri=xt(_r,vn);Qn={checked:fi,halfChecked:Ri},Fn.checkedNodes=fi.map(function(Ki){return Et[Ki]}).filter(function(Ki){return Ki}).map(function(Ki){return Ki.node}),cr.setUncontrolledState({checkedKeys:fi})}else{var yi=Pt([].concat(Object(g.a)(Cr),[vn]),!0,Et),Ci=yi.checkedKeys,Wi=yi.halfCheckedKeys;if(!on){var qi=new Set(Ci);qi.delete(vn);var zi=Pt(Array.from(qi),{checked:!1,halfCheckedKeys:Wi},Et);Ci=zi.checkedKeys,Wi=zi.halfCheckedKeys}Qn=Ci,Fn.checkedNodes=[],Fn.checkedNodesPositions=[],Fn.halfCheckedKeys=Wi,Ci.forEach(function(Ki){var ji=Et[Ki];if(!ji)return;var Yi=ji.node,ca=ji.pos;Fn.checkedNodes.push(Yi),Fn.checkedNodesPositions.push({node:Yi,pos:ca})}),cr.setUncontrolledState({checkedKeys:Ci},!1,{halfCheckedKeys:Wi})}Tn&&Tn(Qn,Fn)},cr.onNodeLoad=function(Lr){return new Promise(function(Wr){cr.setState(function(on){var Nn=on.loadedKeys,Et=Nn===void 0?[]:Nn,Cr=on.loadingKeys,_r=Cr===void 0?[]:Cr,$r=cr.props,yn=$r.loadData,Tn=$r.onLoad,vn=Lr.key;if(!yn||Et.indexOf(vn)!==-1||_r.indexOf(vn)!==-1)return{};var Qn=yn(Lr);return Qn.then(function(){var Fn=cr.state,fi=Fn.loadedKeys,Ri=Fn.loadingKeys,yi=rn(fi,vn),Ci=xt(Ri,vn);Tn&&Tn(yi,{event:"load",node:Lr}),cr.setUncontrolledState({loadedKeys:yi}),cr.setState({loadingKeys:Ci}),Wr()}),{loadingKeys:rn(_r,vn)}})})},cr.onNodeMouseEnter=function(Lr,Wr){var on=cr.props.onMouseEnter;on&&on({event:Lr,node:Wr})},cr.onNodeMouseLeave=function(Lr,Wr){var on=cr.props.onMouseLeave;on&&on({event:Lr,node:Wr})},cr.onNodeContextMenu=function(Lr,Wr){var on=cr.props.onRightClick;on&&(Lr.preventDefault(),on({event:Lr,node:Wr}))},cr.onFocus=function(){var Lr=cr.props.onFocus;cr.setState({focused:!0}),Lr&&Lr.apply(void 0,arguments)},cr.onBlur=function(){var Lr=cr.props.onBlur;cr.setState({focused:!1}),cr.onActiveChange(null),Lr&&Lr.apply(void 0,arguments)},cr.getTreeNodeRequiredProps=function(){var Lr=cr.state,Wr=Lr.expandedKeys,on=Lr.selectedKeys,Nn=Lr.loadedKeys,Et=Lr.loadingKeys,Cr=Lr.checkedKeys,_r=Lr.halfCheckedKeys,$r=Lr.dragOverNodeKey,yn=Lr.dropPosition,Tn=Lr.keyEntities;return{expandedKeys:Wr||[],selectedKeys:on||[],loadedKeys:Nn||[],loadingKeys:Et||[],checkedKeys:Cr||[],halfCheckedKeys:_r||[],dragOverNodeKey:$r,dropPosition:yn,keyEntities:Tn}},cr.setExpandedKeys=function(Lr){var Wr=cr.state.treeData,on=kr(Wr,Lr);cr.setUncontrolledState({expandedKeys:Lr,flattenNodes:on},!0)},cr.onNodeExpand=function(Lr,Wr){var on=cr.state.expandedKeys,Nn=cr.state.listChanging,Et=cr.props,Cr=Et.onExpand,_r=Et.loadData,$r=Wr.key,yn=Wr.expanded;if(Nn)return;var Tn=on.indexOf($r),vn=!yn;if(Object(de.a)(yn&&Tn!==-1||!yn&&Tn===-1,"Expand state not sync with index check"),vn?on=rn(on,$r):on=xt(on,$r),cr.setExpandedKeys(on),Cr&&Cr(on,{node:Wr,expanded:vn,nativeEvent:Lr.nativeEvent}),vn&&_r){var Qn=cr.onNodeLoad(Wr);Qn&&Qn.then(function(){var Fn=kr(cr.state.treeData,on);cr.setUncontrolledState({flattenNodes:Fn})})}},cr.onListChangeStart=function(){cr.setUncontrolledState({listChanging:!0})},cr.onListChangeEnd=function(){setTimeout(function(){cr.setUncontrolledState({listChanging:!1})})},cr.onActiveChange=function(Lr){var Wr=cr.state.activeKey,on=cr.props.onActiveChange;if(Wr===Lr)return;cr.setState({activeKey:Lr}),Lr!==null&&cr.scrollTo({key:Lr}),on&&on(Lr)},cr.getActiveItem=function(){var Lr=cr.state,Wr=Lr.activeKey,on=Lr.flattenNodes;return Wr===null?null:on.find(function(Nn){var Et=Nn.data.key;return Et===Wr})||null},cr.offsetActiveKey=function(Lr){var Wr=cr.state,on=Wr.flattenNodes,Nn=Wr.activeKey,Et=on.findIndex(function($r){var yn=$r.data.key;return yn===Nn});Et===-1&&Lr<0&&(Et=on.length),Et=(Et+Lr+on.length)%on.length;var Cr=on[Et];if(Cr){var _r=Cr.data.key;cr.onActiveChange(_r)}else cr.onActiveChange(null)},cr.onKeyDown=function(Lr){var Wr=cr.state,on=Wr.activeKey,Nn=Wr.expandedKeys,Et=Wr.checkedKeys,Cr=cr.props,_r=Cr.onKeyDown,$r=Cr.checkable,yn=Cr.selectable;switch(Lr.which){case _.a.UP:{cr.offsetActiveKey(-1),Lr.preventDefault();break}case _.a.DOWN:{cr.offsetActiveKey(1),Lr.preventDefault();break}}var Tn=cr.getActiveItem();if(Tn&&Tn.data){var vn=cr.getTreeNodeRequiredProps(),Qn=Tn.data.isLeaf===!1||!!(Tn.data.children||[]).length,Fn=ur(Object(S.a)(Object(S.a)({},ni(on,vn)),{},{data:Tn.data,active:!0}));switch(Lr.which){case _.a.LEFT:{Qn&&Nn.includes(on)?cr.onNodeExpand({},Fn):Tn.parent&&cr.onActiveChange(Tn.parent.data.key),Lr.preventDefault();break}case _.a.RIGHT:{Qn&&!Nn.includes(on)?cr.onNodeExpand({},Fn):Tn.children&&Tn.children.length&&cr.onActiveChange(Tn.children[0].data.key),Lr.preventDefault();break}case _.a.ENTER:case _.a.SPACE:{$r&&!Fn.disabled&&Fn.checkable!==!1&&!Fn.disableCheckbox?cr.onNodeCheck({},Fn,!Et.includes(on)):!$r&&yn&&!Fn.disabled&&Fn.selectable!==!1&&cr.onNodeSelect({},Fn);break}}}_r&&_r(Lr)},cr.setUncontrolledState=function(Lr){var Wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,on=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(cr.destroyed)return;var Nn=!1,Et=!0,Cr={};Object.keys(Lr).forEach(function(_r){if(_r in cr.props){Et=!1;return}Nn=!0,Cr[_r]=Lr[_r]}),Nn&&(!Wr||Et)&&cr.setState(Object(S.a)(Object(S.a)({},Cr),on))},cr.scrollTo=function(Lr){cr.listRef.current.scrollTo(Lr)},cr}return Object(s.a)(Sn,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var Lr,Wr=this.state,on=Wr.focused,Nn=Wr.flattenNodes,Et=Wr.keyEntities,Cr=Wr.dragging,_r=Wr.activeKey,$r=this.props,yn=$r.prefixCls,Tn=$r.className,vn=$r.style,Qn=$r.showLine,Fn=$r.focusable,fi=$r.tabIndex,Ri=fi===void 0?0:fi,yi=$r.selectable,Ci=$r.showIcon,Wi=$r.icon,qi=$r.switcherIcon,zi=$r.draggable,Ki=$r.checkable,ji=$r.checkStrictly,Yi=$r.disabled,ca=$r.motion,Ca=$r.loadData,ra=$r.filterTreeNode,Ma=$r.height,La=$r.itemHeight,va=$r.virtual,ga=$r.titleRender,Oa=$r.onContextMenu,Aa=Be(this.props);return e.createElement(ae.Provider,{value:{prefixCls:yn,selectable:yi,showIcon:Ci,icon:Wi,switcherIcon:qi,draggable:zi,checkable:Ki,checkStrictly:ji,disabled:Yi,keyEntities:Et,loadData:Ca,filterTreeNode:ra,titleRender:ga,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},e.createElement("div",{className:w()(yn,Tn,(Lr={},Object(E.a)(Lr,"".concat(yn,"-show-line"),Qn),Object(E.a)(Lr,"".concat(yn,"-focused"),on),Object(E.a)(Lr,"".concat(yn,"-active-focused"),_r!==null),Lr))},e.createElement(rt,Object.assign({ref:this.listRef,prefixCls:yn,style:vn,data:Nn,disabled:Yi,selectable:yi,checkable:!!Ki,motion:ca,dragging:Cr,height:Ma,itemHeight:La,virtual:va,focusable:Fn,focused:on,tabIndex:Ri,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Oa},this.getTreeNodeRequiredProps(),Aa))))}}],[{key:"getDerivedStateFromProps",value:function(Lr,Wr){var on=Wr.prevProps,Nn={prevProps:Lr};function Et(Wi){return!on&&Wi in Lr||on&&on[Wi]!==Lr[Wi]}var Cr;if(Et("treeData")?Cr=Lr.treeData:Et("children")&&(Object(de.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Cr=ar(Lr.children)),Cr){Nn.treeData=Cr;var _r=Zn(Cr);Nn.keyEntities=Object(S.a)(Object(E.a)({},ei,Ii),_r.keyEntities)}var $r=Nn.keyEntities||Wr.keyEntities;if(Et("expandedKeys")||on&&Et("autoExpandParent"))Nn.expandedKeys=Lr.autoExpandParent||!on&&Lr.defaultExpandParent?Pe(Lr.expandedKeys,$r):Lr.expandedKeys;else if(!on&&Lr.defaultExpandAll){var yn=Object(S.a)({},$r);delete yn[ei],Nn.expandedKeys=Object.keys(yn).map(function(Wi){return yn[Wi].key})}else!on&&Lr.defaultExpandedKeys&&(Nn.expandedKeys=Lr.autoExpandParent||Lr.defaultExpandParent?Pe(Lr.defaultExpandedKeys,$r):Lr.defaultExpandedKeys);if(Nn.expandedKeys||delete Nn.expandedKeys,Cr||Nn.expandedKeys){var Tn=kr(Cr||Wr.treeData,Nn.expandedKeys||Wr.expandedKeys);Nn.flattenNodes=Tn}if(Lr.selectable&&(Et("selectedKeys")?Nn.selectedKeys=Jn(Lr.selectedKeys,Lr):!on&&Lr.defaultSelectedKeys&&(Nn.selectedKeys=Jn(Lr.defaultSelectedKeys,Lr))),Lr.checkable){var vn;if(Et("checkedKeys")?vn=Fe(Lr.checkedKeys)||{}:!on&&Lr.defaultCheckedKeys?vn=Fe(Lr.defaultCheckedKeys)||{}:Cr&&(vn=Fe(Lr.checkedKeys)||{checkedKeys:Wr.checkedKeys,halfCheckedKeys:Wr.halfCheckedKeys}),vn){var Qn=vn,Fn=Qn.checkedKeys,fi=Fn===void 0?[]:Fn,Ri=Qn.halfCheckedKeys,yi=Ri===void 0?[]:Ri;if(!Lr.checkStrictly){var Ci=Pt(fi,!0,$r);fi=Ci.checkedKeys,yi=Ci.halfCheckedKeys}Nn.checkedKeys=fi,Nn.halfCheckedKeys=yi}}return Et("loadedKeys")&&(Nn.loadedKeys=Lr.loadedKeys),Nn}}]),Sn}(e.Component);qe.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},qe.TreeNode=Ir;var at=qe,St=at,gt=e.createContext(null);function hr(Or,wr){if(!Or)return!0;var Sn=Or.data,cr=Sn.disabled,Lr=Sn.disableCheckbox;switch(wr){case"select":return cr;case"checkbox":return cr||Lr}return!1}function Qr(Or,wr){var Sn=e.useCallback(function(Lr){var Wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",on=arguments.length>2?arguments[2]:void 0,Nn=Or.get(Lr);return!on&&hr(Nn,Wr)?null:Nn},[Or]),cr=e.useCallback(function(Lr){var Wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",on=arguments.length>2?arguments[2]:void 0,Nn=wr.get(Lr);return!on&&hr(Nn,Wr)?null:Nn},[wr]);return[Sn,cr]}function Xr(Or){return e.useMemo(function(){var wr=new Map,Sn=new Map;return Or.forEach(function(cr){wr.set(cr.key,cr),Sn.set(cr.data.value,cr)}),[wr,Sn]},[Or])}var dn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},mr=function(wr,Sn){var cr=wr.prefixCls,Lr=wr.height,Wr=wr.itemHeight,on=wr.virtual,Nn=wr.options,Et=wr.flattenOptions,Cr=wr.multiple,_r=wr.searchValue,$r=wr.onSelect,yn=wr.onToggleOpen,Tn=wr.open,vn=wr.notFoundContent,Qn=wr.onMouseEnter,Fn=e.useContext(gt),fi=Fn.checkable,Ri=Fn.checkedKeys,yi=Fn.halfCheckedKeys,Ci=Fn.treeExpandedKeys,Wi=Fn.treeDefaultExpandAll,qi=Fn.treeDefaultExpandedKeys,zi=Fn.onTreeExpand,Ki=Fn.treeIcon,ji=Fn.showTreeIcon,Yi=Fn.switcherIcon,ca=Fn.treeLine,Ca=Fn.treeNodeFilterProp,ra=Fn.loadData,Ma=Fn.treeLoadedKeys,La=Fn.treeMotion,va=Fn.onTreeLoad,ga=e.useRef(),Oa=Object(rr.a)(function(){return Nn},[Tn,Nn],function(Jr,Vr){return Vr[0]&&Jr[1]!==Vr[1]}),Aa=Xr(Et),Ga=Object(b.a)(Aa,2),_a=Ga[0],Va=Ga[1],Bi=Qr(_a,Va),io=Object(b.a)(Bi,2),oo=io[0],Qo=io[1],mo=e.useMemo(function(){return Ri.map(function(Jr){var Vr=Qo(Jr);return Vr?Vr.key:null})},[Ri]),To=e.useMemo(function(){return fi?{checked:mo,halfChecked:yi}:null},[mo,yi,fi]);e.useEffect(function(){if(Tn&&!Cr&&mo.length){var Jr;(Jr=ga.current)===null||Jr===void 0||Jr.scrollTo({key:mo[0]})}},[Tn]);var ao=String(_r).toLowerCase(),So=function(Vr){return ao?String(Vr[Ca]).toLowerCase().includes(ao):!1},bo=e.useState(qi),to=Object(b.a)(bo,2),Jo=to[0],Uo=to[1],wo=e.useState(null),ts=Object(b.a)(wo,2),Ia=ts[0],Oo=ts[1],Io=e.useMemo(function(){return Ci?Object(g.a)(Ci):_r?Ia:Jo},[Jo,Ia,ao,Ci]);e.useEffect(function(){_r&&Oo(Et.map(function(Jr){return Jr.key}))},[_r]);var os=function(Vr){Uo(Vr),Oo(Vr),zi&&zi(Vr)},xo=function(Vr){Vr.preventDefault()},rs=function(Vr,Vn){var sn=Vn.node.key,zr=oo(sn,fi?"checkbox":"select");zr!==null&&$r(zr.data.value,{selected:!Ri.includes(zr.data.value)}),Cr||yn(!1)},Ho=e.useState(null),_o=Object(b.a)(Ho,2),uo=_o[0],Ha=_o[1],pt=oo(uo);if(e.useImperativeHandle(Sn,function(){return{onKeyDown:function(Vr){var Vn,sn=Vr.which;switch(sn){case _.a.UP:case _.a.DOWN:case _.a.LEFT:case _.a.RIGHT:(Vn=ga.current)===null||Vn===void 0||Vn.onKeyDown(Vr);break;case _.a.ENTER:{pt!==null&&rs(null,{node:{key:uo},selected:!Ri.includes(pt.data.value)});break}case _.a.ESC:yn(!1)}},onKeyUp:function(){}}}),Oa.length===0)return e.createElement("div",{role:"listbox",className:"".concat(cr,"-empty"),onMouseDown:xo},vn);var xr={};return Ma&&(xr.loadedKeys=Ma),Io&&(xr.expandedKeys=Io),e.createElement("div",{onMouseDown:xo,onMouseEnter:Qn},pt&&Tn&&e.createElement("span",{style:dn,"aria-live":"assertive"},pt.data.value),e.createElement(St,Object.assign({ref:ga,focusable:!1,prefixCls:"".concat(cr,"-tree"),treeData:Oa,height:Lr,itemHeight:Wr,virtual:on,multiple:Cr,icon:Ki,showIcon:ji,switcherIcon:Yi,showLine:ca,loadData:_r?null:ra,motion:La,checkable:fi,checkStrictly:!0,checkedKeys:To,selectedKeys:fi?[]:mo,defaultExpandAll:Wi},xr,{onActiveChange:Ha,onSelect:rs,onCheck:rs,onExpand:os,onLoad:va,filterTreeNode:So})))},Kn=e.forwardRef(mr);Kn.displayName="OptionList";var Rr=Kn,Rn=function(){return null},An=Rn;function Zr(Or){return Object($e.a)(Or).map(function(wr){if(!e.isValidElement(wr)||!wr.type)return null;var Sn=wr.key,cr=wr.props,Lr=cr.children,Wr=cr.value,on=Object(C.a)(cr,["children","value"]),Nn=Object(S.a)({key:Sn,value:Wr},on),Et=Zr(Lr);return Et.length&&(Nn.children=Et),Nn}).filter(function(wr){return wr})}function hi(Or){if(!Or)return Or;var wr=Object(S.a)({},Or);return"props"in wr||Object.defineProperty(wr,"props",{get:function(){return Object(de.a)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),wr}}),wr}function Mi(Or,wr,Sn,cr,Lr){var Wr=null,on=null;function Nn(){function Et(Cr){var _r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",$r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Cr.map(function(yn,Tn){var vn="".concat(_r,"-").concat(Tn),Qn=Sn.includes(yn.value),Fn=Et(yn.children||[],vn,Qn),fi=e.createElement(An,Object.assign({},yn),Fn.map(function(yi){return yi.node}));if(wr===yn.value&&(Wr=fi),Qn){var Ri={pos:vn,node:fi,children:Fn};return $r||on.push(Ri),Ri}return null}).filter(function(yn){return yn})}on||(on=[],Et(cr),on.sort(function(Cr,_r){var $r=Cr.node.props.value,yn=_r.node.props.value,Tn=Sn.indexOf($r),vn=Sn.indexOf(yn);return Tn-vn}))}Object.defineProperty(Or,"triggerNode",{get:function(){return Object(de.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Nn(),Wr}}),Object.defineProperty(Or,"allCheckedNodes",{get:function(){return Object(de.a)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Nn(),Lr?on:on.map(function(Cr){var _r=Cr.node;return _r})}})}function Zi(Or){return Array.isArray(Or)?Or:Or!==void 0?[Or]:[]}function qr(Or,wr){var Sn=new Map;return wr.forEach(function(cr){var Lr=cr.data;Sn.set(Lr.value,Lr)}),Or.map(function(cr){return hi(Sn.get(cr))})}function xn(Or,wr){var Sn=qr([Or],wr)[0];return Sn?Sn.disabled:!1}function zn(Or){return Or.disabled||Or.disableCheckbox||Or.checkable===!1}function Ht(Or){for(var wr=Or.parent,Sn=0,cr=wr;cr;)cr=cr.parent,Sn+=1;return Sn}function Tt(Or){function wr(cr){return(cr||[]).map(function(Lr){var Wr=Lr.value,on=Lr.key,Nn=Lr.children,Et=Object(S.a)(Object(S.a)({},Lr),{},{key:"key"in Lr?on:Wr});return Nn&&(Et.children=wr(Nn)),Et})}var Sn=kr(wr(Or),!0);return Sn.map(function(cr){return{key:cr.data.key,data:cr.data,level:Ht(cr)}})}function Dt(Or){return function(wr,Sn){var cr=Sn[Or];return String(cr).toLowerCase().includes(String(wr).toLowerCase())}}function Bt(Or,wr,Sn){var cr=Sn.optionFilterProp,Lr=Sn.filterOption;if(Lr===!1)return wr;var Wr;typeof Lr=="function"?Wr=Lr:Wr=Dt(cr);function on(Nn){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Nn.map(function(Cr){var _r=Cr.children,$r=Et||Wr(Or,hi(Cr)),yn=on(_r||[],$r);return $r||yn.length?Object(S.a)(Object(S.a)({},Cr),{},{children:yn}):null}).filter(function(Cr){return Cr})}return on(wr)}function jt(Or,wr,Sn,cr){var Lr=new Map;return Zi(wr).forEach(function(Wr){Wr&&Object(v.a)(Wr)==="object"&&"value"in Wr&&Lr.set(Wr.value,Wr)}),Or.map(function(Wr){var on={value:Wr},Nn=Sn(Wr,"select",!0),Et=Nn?cr(Nn.data):Wr;if(Lr.has(Wr)){var Cr=Lr.get(Wr);on.label="label"in Cr?Cr.label:Et,"halfChecked"in Cr&&(on.halfChecked=Cr.halfChecked)}else on.label=Et;return on})}function Ot(Or,wr){var Sn=new Set(Or);return Sn.add(wr),Array.from(Sn)}function nr(Or,wr){var Sn=new Set(Or);return Sn.delete(wr),Array.from(Sn)}function pr(Or){var wr=Or.searchPlaceholder,Sn=Or.treeCheckStrictly,cr=Or.treeCheckable,Lr=Or.labelInValue,Wr=Or.value,on=Or.multiple;Object(de.a)(!wr,"`searchPlaceholder` has been removed."),Sn&&Lr===!1&&Object(de.a)(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Lr||Sn)&&Object(de.a)(Zi(Wr).every(function(Nn){return Nn&&Object(v.a)(Nn)==="object"&&"value"in Nn}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Sn||on||cr?Object(de.a)(!Wr||Array.isArray(Wr),"`value` should be an array when `TreeSelect` is checkable or multiple."):Object(de.a)(!Array.isArray(Wr),"`value` should not be array when `TreeSelect` is single mode.")}var Ar=pr,Nr=10;function Hn(Or,wr){var Sn=wr.id,cr=wr.pId,Lr=wr.rootPId,Wr={},on=[],Nn=Or.map(function(Et){var Cr=Object(S.a)({},Et),_r=Cr[Sn];return Wr[_r]=Cr,Cr.key=Cr.key||_r,Cr});return Nn.forEach(function(Et){var Cr=Et[cr],_r=Wr[Cr];_r&&(_r.children=_r.children||[],_r.children.push(Et)),(Cr===Lr||!_r&&Lr===null)&&on.push(Et)}),on}function Ln(Or,wr){var Sn=0,cr=new Set;function Lr(Wr){return(Wr||[]).map(function(on){var Nn=on.key,Et=on.value,Cr=on.children,_r=Object(C.a)(on,["key","value","children"]),$r="value"in on?Et:Nn,yn=Object(S.a)(Object(S.a)({},_r),{},{key:Nn!=null?Nn:$r,value:$r,title:wr(on)});return"children"in on&&(yn.children=Lr(Cr)),yn})}return Lr(Or)}function ci(Or,wr,Sn){var cr=Sn.getLabelProp,Lr=Sn.simpleMode,Wr=e.useRef({});return Or?(Wr.current.formatTreeData=Wr.current.treeData===Or?Wr.current.formatTreeData:Ln(Lr?Hn(Or,Object(S.a)({id:"id",pId:"pId",rootPId:null},Lr!==!0?Lr:{})):Or,cr),Wr.current.treeData=Or):Wr.current.formatTreeData=Wr.current.children===wr?Wr.current.formatTreeData:Ln(Zr(wr),cr),Wr.current.formatTreeData}var hn="SHOW_ALL",Fr="SHOW_PARENT",En="SHOW_CHILD";function Wn(Or,wr,Sn){var cr=new Set(Or);return wr===En?Or.filter(function(Lr){var Wr=Sn[Lr];return!(Wr&&Wr.children&&Wr.children.every(function(on){var Nn=on.node;return zn(Nn)||cr.has(Nn.key)}))}):wr===Fr?Or.filter(function(Lr){var Wr=Sn[Lr],on=Wr?Wr.parent:null;return!(on&&!zn(on.node)&&cr.has(on.node.key))}):Or}function Yn(Or,wr){var Sn=wr.value,cr=wr.getEntityByValue,Lr=wr.getEntityByKey,Wr=wr.treeConduction,on=wr.showCheckedStrategy,Nn=wr.conductKeyEntities,Et=wr.getLabelProp;return e.useMemo(function(){var Cr=Or;if(Wr){var _r=Wn(Or.map(function($r){var yn=cr($r);return yn?yn.key:$r}),on,Nn);Cr=_r.map(function($r){var yn=Lr($r);return yn?yn.data.value:$r})}return jt(Cr,Sn,cr,Et)},[Or,Sn,Wr,on,cr])}var ii=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],xi=te({prefixCls:"rc-tree-select",components:{optionList:Rr},convertChildrenToData:function(){return null},flattenOptions:Tt,getLabeledValue:ht,filterOptions:Bt,isValueDisabled:xn,findValueOption:qr,omitDOMProps:function(wr){var Sn=Object(S.a)({},wr);return ii.forEach(function(cr){delete Sn[cr]}),Sn}});xi.displayName="Select";var Ni=e.forwardRef(function(Or,wr){var Sn=Or.multiple,cr=Or.treeCheckable,Lr=Or.treeCheckStrictly,Wr=Or.showCheckedStrategy,on=Wr===void 0?"SHOW_CHILD":Wr,Nn=Or.labelInValue,Et=Or.loadData,Cr=Or.treeLoadedKeys,_r=Or.treeNodeFilterProp,$r=_r===void 0?"value":_r,yn=Or.treeNodeLabelProp,Tn=Or.treeDataSimpleMode,vn=Or.treeData,Qn=Or.treeExpandedKeys,Fn=Or.treeDefaultExpandedKeys,fi=Or.treeDefaultExpandAll,Ri=Or.children,yi=Or.treeIcon,Ci=Or.showTreeIcon,Wi=Or.switcherIcon,qi=Or.treeLine,zi=Or.treeMotion,Ki=Or.filterTreeNode,ji=Or.dropdownPopupAlign,Yi=Or.onChange,ca=Or.onTreeExpand,Ca=Or.onTreeLoad,ra=Or.onDropdownVisibleChange,Ma=Or.onSelect,La=Or.onDeselect,va=cr||Lr,ga=Sn||va,Oa=cr&&!Lr,Aa=Lr||Nn,Ga=e.useRef(null);e.useImperativeHandle(wr,function(){return{focus:Ga.current.focus,blur:Ga.current.blur}});var _a=function(sn){return vn&&sn.label||sn.title},Va=function(sn){return yn?sn[yn]:_a(sn)},Bi=ci(vn,Ri,{getLabelProp:_a,simpleMode:Tn}),io=Object(e.useMemo)(function(){return Tt(Bi)},[Bi]),oo=Xr(io),Qo=Object(b.a)(oo,2),mo=Qo[0],To=Qo[1],ao=Qr(mo,To),So=Object(b.a)(ao,2),bo=So[0],to=So[1],Jo=Object(e.useMemo)(function(){return Oa?Zn(Bi):{keyEntities:null}},[Bi,cr,Lr]),Uo=Jo.keyEntities,wo=Object(O.a)(Or.defaultValue,{value:Or.value}),ts=Object(b.a)(wo,2),Ia=ts[0],Oo=ts[1],Io=function(sn){var zr=[],qn=[];return sn.forEach(function(en){to(en)?qn.push(en):zr.push(en)}),{missingRawValues:zr,existRawValues:qn}},os=Object(e.useMemo)(function(){var Vn=[],sn=[];if(Zi(Ia).forEach(function(Ei){if(Ei&&Object(v.a)(Ei)==="object"&&"value"in Ei)if(Ei.halfChecked&&Lr){var pi=to(Ei.value);Vn.push(pi?pi.key:Ei.value)}else sn.push(Ei.value);else sn.push(Ei)}),Oa){var zr=Io(sn),qn=zr.missingRawValues,en=zr.existRawValues,Un=en.map(function(Ei){return to(Ei).key}),si=Pt(Un,!0,Uo),ui=si.checkedKeys,oi=si.halfCheckedKeys;return[[].concat(Object(g.a)(qn),Object(g.a)(ui.map(function(Ei){return bo(Ei).data.value}))),oi]}return[sn,Vn]},[Ia,ga,Aa,cr,Lr]),xo=Object(b.a)(os,2),rs=xo[0],Ho=xo[1],_o=Yn(rs,{treeConduction:Oa,value:Ia,showCheckedStrategy:on,conductKeyEntities:Uo,getEntityByValue:to,getEntityByKey:bo,getLabelProp:Va}),uo=function(sn,zr,qn){if(Oo(ga?sn:sn[0]),Yi){var en=sn;if(Oa&&on!=="SHOW_ALL"){var Un=sn.map(function(Hi){var fa=to(Hi);return fa?fa.key:Hi}),si=Wn(Un,on,Uo);en=si.map(function(Hi){var fa=bo(Hi);return fa?fa.data.value:Hi})}var ui=zr||{triggerValue:void 0,selected:void 0},oi=ui.triggerValue,Ei=ui.selected,pi=Aa?jt(en,Ia,to,Va):en;if(Lr){var Ai=Ho.map(function(Hi){var fa=bo(Hi);return fa?fa.data.value:Hi}).filter(function(Hi){return!en.includes(Hi)});pi=[].concat(Object(g.a)(pi),Object(g.a)(jt(Ai,Ia,to,Va)))}var Oi={preValue:_o,triggerValue:oi},na=!0;(Lr||qn==="selection"&&!Ei)&&(na=!1),Mi(Oi,oi,sn,Bi,na),va?Oi.checked=Ei:Oi.selected=Ei,Yi(ga?pi:pi[0],Aa?null:en.map(function(Hi){var fa=to(Hi);return fa?Va(fa.data):null}),Oi)}},Ha=function(sn,zr,qn){var en=sn;if(!ga)uo([sn],{selected:!0,triggerValue:sn},qn);else{var Un=Ot(rs,sn);if(Oa){var si=Io(Un),ui=si.missingRawValues,oi=si.existRawValues,Ei=oi.map(function(Oi){return to(Oi).key}),pi=Pt(Ei,!0,Uo),Ai=pi.checkedKeys;Un=[].concat(Object(g.a)(ui),Object(g.a)(Ai.map(function(Oi){return bo(Oi).data.value})))}uo(Un,{selected:!0,triggerValue:sn},qn)}Ma&&Ma(en,zr)},pt=function(sn,zr,qn){var en=sn,Un=nr(rs,sn);if(Oa){var si=Io(Un),ui=si.missingRawValues,oi=si.existRawValues,Ei=oi.map(function(Oi){return to(Oi).key}),pi=Pt(Ei,{checked:!1,halfCheckedKeys:Ho},Uo),Ai=pi.checkedKeys;Un=[].concat(Object(g.a)(ui),Object(g.a)(Ai.map(function(Oi){return bo(Oi).data.value})))}uo(Un,{selected:!1,triggerValue:sn},qn),La&&La(en,zr)},xr=function(){uo([],null,"clear")},Jr=e.useCallback(function(Vn){if(ra){var sn={};Object.defineProperty(sn,"documentClickClose",{get:function(){return Object(de.a)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),ra(Vn,sn)}},[ra]),Vr={optionLabelProp:null,optionFilterProp:$r,dropdownAlign:ji,internalProps:{mark:we,onClear:xr,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:Ha,onRawDeselect:pt}};return"filterTreeNode"in Or&&(Vr.filterOption=Ki),e.createElement(gt.Provider,{value:{checkable:va,loadData:Et,treeLoadedKeys:Cr,onTreeLoad:Ca,checkedKeys:rs,halfCheckedKeys:Ho,treeDefaultExpandAll:fi,treeExpandedKeys:Qn,treeDefaultExpandedKeys:Fn,onTreeExpand:ca,treeIcon:yi,treeMotion:zi,showTreeIcon:Ci,switcherIcon:Wi,treeLine:qi,treeNodeFilterProp:$r}},e.createElement(xi,Object.assign({ref:Ga,mode:ga?"multiple":null},Or,Vr,{value:_o,labelInValue:!0,options:Bi,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:Jr})))}),Li=function(Or){Object(c.a)(Sn,Or);var wr=Object(d.a)(Sn);function Sn(){var cr;return Object(r.a)(this,Sn),cr=wr.apply(this,arguments),cr.selectRef=e.createRef(),cr.focus=function(){cr.selectRef.current.focus()},cr.blur=function(){cr.selectRef.current.blur()},cr}return Object(s.a)(Sn,[{key:"render",value:function(){return e.createElement(Ni,Object.assign({ref:this.selectRef},this.props))}}]),Sn}(e.Component);Li.TreeNode=An,Li.SHOW_ALL=hn,Li.SHOW_PARENT=Fr,Li.SHOW_CHILD=En;var oa=Li,ma=oa,ia=n("BGR+"),ba=n("H84U"),vi=n("uaoM"),On=n("1vzs"),Fi=n("2jpz"),ha=n("3Nzz"),ea=function(Or){i()(Sn,Or);var wr=o()(Sn);function Sn(cr){var Lr;return f()(this,Sn),Lr=wr.call(this,cr),Lr.selectRef=e.createRef(),Lr.renderTreeSelect=function(Wr){var on=Wr.getPopupContainer,Nn=Wr.getPrefixCls,Et=Wr.renderEmpty,Cr=Wr.direction,_r=Wr.virtual,$r=Wr.dropdownMatchSelectWidth,yn=Lr.props,Tn=yn.prefixCls,vn=yn.size,Qn=yn.className,Fn=yn.treeCheckable,fi=yn.multiple,Ri=yn.listHeight,yi=Ri===void 0?256:Ri,Ci=yn.listItemHeight,Wi=Ci===void 0?26:Ci,qi=yn.notFoundContent,zi=yn.switcherIcon,Ki=yn.treeLine,ji=yn.getPopupContainer,Yi=yn.dropdownClassName,ca=yn.bordered,Ca=yn.treeIcon,ra=Ca===void 0?!1:Ca,Ma=Nn("select",Tn),La=Nn("select-tree",Tn),va=Nn("tree-select",Tn),ga=w()(Yi,"".concat(va,"-dropdown"),A()({},"".concat(va,"-dropdown-rtl"),Cr==="rtl")),Oa=!!(Fn||fi),Aa=Object(On.a)(p()(p()({},Lr.props),{multiple:Oa,prefixCls:Ma})),Ga=Aa.suffixIcon,_a=Aa.itemIcon,Va=Aa.removeIcon,Bi=Aa.clearIcon,io;qi!==void 0?io=qi:io=Et("Select");var oo=Object(ia.default)(Lr.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","size","bordered"]);return e.createElement(ha.b.Consumer,null,function(Qo){var mo,To=vn||Qo,ao=w()(!Tn&&va,(mo={},A()(mo,"".concat(Ma,"-lg"),To==="large"),A()(mo,"".concat(Ma,"-sm"),To==="small"),A()(mo,"".concat(Ma,"-rtl"),Cr==="rtl"),A()(mo,"".concat(Ma,"-borderless"),!ca),mo),Qn);return e.createElement(ma,p()({virtual:_r,dropdownMatchSelectWidth:$r},oo,{ref:Lr.selectRef,prefixCls:Ma,className:ao,listHeight:yi,listItemHeight:Wi,treeCheckable:Fn&&e.createElement("span",{className:"".concat(Ma,"-tree-checkbox-inner")}),inputIcon:Ga,menuItemSelectedIcon:_a,removeIcon:Va,clearIcon:Bi,switcherIcon:function(bo){return Object(Fi.a)(La,zi,Ki,bo)},showTreeIcon:ra,notFoundContent:io,getPopupContainer:ji||on,treeMotion:null,dropdownClassName:ga}))})},Object(vi.a)(cr.multiple!==!1||!cr.treeCheckable,"TreeSelect","`multiple` will alway be `true` when `treeCheckable` is true"),Lr}return u()(Sn,[{key:"focus",value:function(){this.selectRef.current&&this.selectRef.current.focus()}},{key:"blur",value:function(){this.selectRef.current&&this.selectRef.current.blur()}},{key:"render",value:function(){return e.createElement(ba.a,null,this.renderTreeSelect)}}]),Sn}(e.Component);ea.TreeNode=An,ea.SHOW_ALL=hn,ea.SHOW_PARENT=Fr,ea.SHOW_CHILD=En,ea.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var aa=D.a=ea},"5W0v":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("XYMm"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},"5YgA":function(k,D,n){},"5bA4":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="LeftOutlined";var h=D.a=p.forwardRef(f)},"5hvy":function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("MlIO"))})(this,function(y){return function(p){var x=y,A=x.lib,m=A.WordArray,f=A.Hasher,h=x.x64,u=h.Word,a=x.algo,i=[],t=[],o=[];(function(){for(var r=1,s=0,c=0;c<24;c++){i[r+5*s]=(c+1)*(c+2)/2%64;var d=s%5,g=(2*r+3*s)%5;r=d,s=g}for(var r=0;r<5;r++)for(var s=0;s<5;s++)t[r+5*s]=s+(2*r+3*s)%5*5;for(var v=1,b=0;b<24;b++){for(var S=0,E=0,C=0;C<7;C++){if(v&1){var _=(1<<C)-1;_<32?E^=1<<_:S^=1<<_-32}v&128?v=v<<1^113:v<<=1}o[b]=u.create(S,E)}})();var e=[];(function(){for(var r=0;r<25;r++)e[r]=u.create()})();var l=a.SHA3=f.extend({cfg:f.cfg.extend({outputLength:512}),_doReset:function(){for(var s=this._state=[],c=0;c<25;c++)s[c]=new u.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(s,c){for(var d=this._state,g=this.blockSize/2,v=0;v<g;v++){var b=s[c+2*v],S=s[c+2*v+1];b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360;var E=d[v];E.high^=S,E.low^=b}for(var C=0;C<24;C++){for(var _=0;_<5;_++){for(var T=0,w=0,O=0;O<5;O++){var E=d[_+5*O];T^=E.high,w^=E.low}var I=e[_];I.high=T,I.low=w}for(var _=0;_<5;_++)for(var R=e[(_+4)%5],M=e[(_+1)%5],F=M.high,P=M.low,T=R.high^(F<<1|P>>>31),w=R.low^(P<<1|F>>>31),O=0;O<5;O++){var E=d[_+5*O];E.high^=T,E.low^=w}for(var X=1;X<25;X++){var T,w,E=d[X],B=E.high,j=E.low,W=i[X];W<32?(T=B<<W|j>>>32-W,w=j<<W|B>>>32-W):(T=j<<W-32|B>>>64-W,w=B<<W-32|j>>>64-W);var z=e[t[X]];z.high=T,z.low=w}var V=e[0],Q=d[0];V.high=Q.high,V.low=Q.low;for(var _=0;_<5;_++)for(var O=0;O<5;O++){var X=_+5*O,E=d[X],G=e[X],ee=e[(_+1)%5+5*O],ce=e[(_+2)%5+5*O];E.high=G.high^~ee.high&ce.high,E.low=G.low^~ee.low&ce.low}var E=d[0],be=o[C];E.high^=be.high,E.low^=be.low}},_doFinalize:function(){var s=this._data,c=s.words,d=this._nDataBytes*8,g=s.sigBytes*8,v=this.blockSize*32;c[g>>>5]|=1<<24-g%32,c[(p.ceil((g+1)/v)*v>>>5)-1]|=128,s.sigBytes=c.length*4,this._process();for(var b=this._state,S=this.cfg.outputLength/8,E=S/8,C=[],_=0;_<E;_++){var T=b[_],w=T.high,O=T.low;w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,O=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,C.push(O),C.push(w)}return new m.init(C,S)},clone:function(){for(var s=f.clone.call(this),c=s._state=this._state.slice(0),d=0;d<25;d++)c[d]=c[d].clone();return s}});x.SHA3=f._createHelper(l),x.HmacSHA3=f._createHmacHelper(l)}(Math),y.SHA3})},"5nXd":function(k,D,n){var y=n("MFOe"),p=y.slice,x=y.pluck,A=y.each,m=y.bind,f=y.create,h=y.isList,u=y.isFunction,a=y.isObject;k.exports={createStore:o};var i={version:"2.0.12",enabled:!1,get:function(l,r){var s=this.storage.read(this._namespacePrefix+l);return this._deserialize(s,r)},set:function(l,r){return r===void 0?this.remove(l):(this.storage.write(this._namespacePrefix+l,this._serialize(r)),r)},remove:function(l){this.storage.remove(this._namespacePrefix+l)},each:function(l){var r=this;this.storage.each(function(s,c){l.call(r,r._deserialize(s),(c||"").replace(r._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(l){return this._namespacePrefix=="__storejs_"+l+"_"},createStore:function(){return o.apply(this,arguments)},addPlugin:function(l){this._addPlugin(l)},namespace:function(l){return o(this.storage,this.plugins,l)}};function t(){var e=typeof console=="undefined"?null:console;if(!e)return;var l=e.warn?e.warn:e.log;l.apply(e,arguments)}function o(e,l,r){r||(r=""),e&&!h(e)&&(e=[e]),l&&!h(l)&&(l=[l]);var s=r?"__storejs_"+r+"_":"",c=r?new RegExp("^"+s):null,d=/^[a-zA-Z0-9_\-]*$/;if(!d.test(r))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var g={_namespacePrefix:s,_namespaceRegexp:c,_testStorage:function(S){try{var E="__storejs__test__";S.write(E,E);var C=S.read(E)===E;return S.remove(E),C}catch(_){return!1}},_assignPluginFnProp:function(S,E){var C=this[E];this[E]=function(){var T=p(arguments,0),w=this;function O(){return C?(A(arguments,function(R,M){T[M]=R}),C.apply(w,T)):void 0}var I=[O].concat(T);return S.apply(w,I)}},_serialize:function(S){return JSON.stringify(S)},_deserialize:function(S,E){if(!S)return E;var C="";try{C=JSON.parse(S)}catch(_){C=S}return C!==void 0?C:E},_addStorage:function(S){if(this.enabled)return;this._testStorage(S)&&(this.storage=S,this.enabled=!0)},_addPlugin:function(S){var E=this;if(h(S)){A(S,function(T){E._addPlugin(T)});return}var C=x(this.plugins,function(T){return S===T});if(C)return;if(this.plugins.push(S),!u(S))throw new Error("Plugins must be function values that return objects");var _=S.call(this);if(!a(_))throw new Error("Plugins must return an object of function properties");A(_,function(T,w){if(!u(T))throw new Error("Bad plugin property: "+w+" from plugin "+S.name+". Plugins should only return functions.");E._assignPluginFnProp(T,w)})},addStorage:function(S){t("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(S)}},v=f(g,i,{plugins:[]});return v.raw={},A(v,function(b,S){u(b)&&(v.raw[S]=m(v,b))}),A(e,function(b){v._addStorage(b)}),A(l,function(b){v._addPlugin(b)}),v}},"5rEg":function(k,D,n){"use strict";var y=n("mh/l"),p=n("lSNA"),x=n.n(p),A=n("q1tI"),m=n("TSYQ"),f=n.n(m),h=n("H84U"),u=function(W){return A.createElement(h.a,null,function(z){var V,Q=z.getPrefixCls,G=z.direction,ee=W.prefixCls,ce=W.className,be=ce===void 0?"":ce,le=Q("input-group",ee),Ie=f()(le,(V={},x()(V,"".concat(le,"-lg"),W.size==="large"),x()(V,"".concat(le,"-sm"),W.size==="small"),x()(V,"".concat(le,"-compact"),W.compact),x()(V,"".concat(le,"-rtl"),G==="rtl"),V),be);return A.createElement("span",{className:Ie,style:W.style,onMouseEnter:W.onMouseEnter,onMouseLeave:W.onMouseLeave,onFocus:W.onFocus,onBlur:W.onBlur},W.children)})},a=u,i=n("pVnL"),t=n.n(i),o=n("c+Xe"),e=n("SymL"),l=n.n(e),r=n("zU+y"),s=n.n(r),c=n("2/Rp"),d=n("3Nzz"),g=n("0n0R"),v=function(j,W){var z={};for(var V in j)Object.prototype.hasOwnProperty.call(j,V)&&W.indexOf(V)<0&&(z[V]=j[V]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,V=Object.getOwnPropertySymbols(j);Q<V.length;Q++)W.indexOf(V[Q])<0&&Object.prototype.propertyIsEnumerable.call(j,V[Q])&&(z[V[Q]]=j[V[Q]]);return z},b=A.forwardRef(function(j,W){var z=A.useRef(null),V=function(ke){var Re=j.onChange,Qe=j.onSearch;ke&&ke.target&&ke.type==="click"&&Qe&&Qe(ke.target.value,ke),Re&&Re(ke)},Q=function(ke){var Re;document.activeElement===((Re=z.current)===null||Re===void 0?void 0:Re.input)&&ke.preventDefault()},G=function(ke){var Re,Qe=j.onSearch,We=j.loading,ot=j.disabled;if(We||ot)return;Qe&&Qe((Re=z.current)===null||Re===void 0?void 0:Re.input.value,ke)},ee=function(ke){var Re=j.enterButton,Qe=j.size;return Re?A.createElement(d.b.Consumer,{key:"enterButton"},function(We){return A.createElement(c.a,{className:"".concat(ke,"-button"),type:"primary",size:Qe||We},A.createElement(s.a,null))}):A.createElement(s.a,{className:"".concat(ke,"-icon"),key:"loadingIcon"})},ce=function(ke){var Re=j.suffix,Qe=j.enterButton,We=j.loading;if(We&&!Qe)return[Re,ee(ke)];if(Qe)return Re;var ot=A.createElement(l.a,{className:"".concat(ke,"-icon"),key:"searchIcon",onClick:G});return Re?[Object(g.c)(Re,null,{key:"suffix"}),ot]:ot},be=function(ke,Re){var Qe=j.enterButton,We=j.disabled,ot=j.addonAfter,Oe=j.loading,oe="".concat(ke,"-button");if(Oe&&Qe)return[ee(ke),ot];if(!Qe)return ot;var st,he=Qe,J=he.type&&he.type.__ANT_BUTTON===!0;return J||he.type==="button"?st=Object(g.a)(he,t()({onMouseDown:Q,onClick:G,key:"enterButton"},J?{className:oe,size:Re}:{})):st=A.createElement(c.a,{className:oe,type:"primary",size:Re,disabled:We,key:"enterButton",onMouseDown:Q,onClick:G},Qe===!0?A.createElement(l.a,null):Qe),ot?[st,Object(g.c)(ot,null,{key:"addonAfter"})]:st},le=function(ke){var Re=ke.getPrefixCls,Qe=ke.direction,We=j.prefixCls,ot=j.inputPrefixCls,Oe=j.enterButton,oe=j.className,st=j.size,he=v(j,["prefixCls","inputPrefixCls","enterButton","className","size"]);delete he.onSearch,delete he.loading;var J=Re("input-search",We),Y=Re("input",ot),$=function(we){var Ne;if(Oe){var Ee;Ne=f()(J,oe,(Ee={},x()(Ee,"".concat(J,"-rtl"),Qe==="rtl"),x()(Ee,"".concat(J,"-enter-button"),!!Oe),x()(Ee,"".concat(J,"-").concat(we),!!we),Ee))}else Ne=f()(J,oe,x()({},"".concat(J,"-rtl"),Qe==="rtl"));return Ne};return A.createElement(d.b.Consumer,null,function(fe){return A.createElement(y.a,t()({ref:Object(o.a)(z,W),onPressEnter:G},he,{size:st||fe,prefixCls:Y,addonAfter:be(J,st||fe),suffix:ce(J),onChange:V,className:$(st||fe)}))})};return A.createElement(h.a,null,le)});b.defaultProps={enterButton:!1},b.displayName="Search";var S=b,E=n("whJP"),C=n("J4zp"),_=n.n(C),T=n("BGR+"),w=n("meAc"),O=n.n(w),I=n("O49L"),R=n.n(I),M=function(j,W){var z={};for(var V in j)Object.prototype.hasOwnProperty.call(j,V)&&W.indexOf(V)<0&&(z[V]=j[V]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,V=Object.getOwnPropertySymbols(j);Q<V.length;Q++)W.indexOf(V[Q])<0&&Object.prototype.propertyIsEnumerable.call(j,V[Q])&&(z[V[Q]]=j[V[Q]]);return z},F={click:"onClick",hover:"onMouseOver"},P=A.forwardRef(function(j,W){var z=Object(A.useState)(!1),V=_()(z,2),Q=V[0],G=V[1],ee=function(){var Ie=j.disabled;if(Ie)return;G(!Q)},ce=function(Ie){var ke,Re=j.action,Qe=j.iconRender,We=Qe===void 0?function(){return null}:Qe,ot=F[Re]||"",Oe=We(Q),oe=(ke={},x()(ke,ot,ee),x()(ke,"className","".concat(Ie,"-icon")),x()(ke,"key","passwordIcon"),x()(ke,"onMouseDown",function(he){he.preventDefault()}),x()(ke,"onMouseUp",function(he){he.preventDefault()}),ke);return A.cloneElement(A.isValidElement(Oe)?Oe:A.createElement("span",null,Oe),oe)},be=function(Ie){var ke=Ie.getPrefixCls,Re=j.className,Qe=j.prefixCls,We=j.inputPrefixCls,ot=j.size,Oe=j.visibilityToggle,oe=M(j,["className","prefixCls","inputPrefixCls","size","visibilityToggle"]),st=ke("input",We),he=ke("input-password",Qe),J=Oe&&ce(he),Y=f()(he,Re,x()({},"".concat(he,"-").concat(ot),!!ot)),$=t()(t()({},Object(T.default)(oe,["suffix","iconRender"])),{type:Q?"text":"password",className:Y,prefixCls:st,suffix:J});return ot&&($.size=ot),A.createElement(y.a,t()({ref:W},$))};return A.createElement(h.a,null,be)});P.defaultProps={action:"click",visibilityToggle:!0,iconRender:function(W){return W?A.createElement(O.a,null):A.createElement(R.a,null)}},P.displayName="Password";var X=P;y.a.Group=a,y.a.Search=S,y.a.TextArea=E.a,y.a.Password=X;var B=D.a=y.a},"5s0K":function(k,D,n){var y=n("bYtY");function p(){var x=[],A={},m;return{add:function(f,h,u,a,i){return y.isString(a)&&(i=a,a=0),A[f.id]?!1:(A[f.id]=1,x.push({el:f,target:h,time:u,delay:a,easing:i}),!0)},done:function(f){return m=f,this},start:function(){for(var f=x.length,h=0,u=x.length;h<u;h++){var a=x[h];a.el.animateTo(a.target,a.time,a.delay,a.easing,i)}return this;function i(){f--,f||(x.length=0,A={},m&&m())}}}}D.createWrap=p},"5yev":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"}}]},name:"redo",theme:"outlined"};D.default=y},"6/nd":function(k,D,n){var y=n("ProS");y.registerAction("legendScroll","legendscroll",function(p,x){var A=p.scrollDataIndex;A!=null&&x.eachComponent({mainType:"legend",subType:"scroll",query:p},function(m){m.setScrollDataIndex(A)})})},"62sa":function(k,D,n){var y=n("bYtY"),p=n("4NO4"),x=p.makeInner,A=n("zTMp"),m=n("Ez2D"),f=y.each,h=y.curry,u=x();function a(v,b,S){var E=v.currTrigger,C=[v.x,v.y],_=v,T=v.dispatchAction||y.bind(S.dispatchAction,S),w=b.getComponent("axisPointer").coordSysAxesInfo;if(!w)return;g(C)&&(C=m({seriesIndex:_.seriesIndex,dataIndex:_.dataIndex},b).point);var O=g(C),I=_.axesInfo,R=w.axesInfo,M=E==="leave"||g(C),F={},P={},X={list:[],map:{}},B={showPointer:h(o,P),showTooltip:h(e,X)};f(w.coordSysMap,function(W,z){var V=O||W.containPoint(C);f(w.coordSysAxesInfo[z],function(Q,G){var ee=Q.axis,ce=c(I,Q);if(!M&&V&&(!I||ce)){var be=ce&&ce.value;be==null&&!O&&(be=ee.pointToData(C)),be!=null&&i(Q,be,B,!1,F)}})});var j={};return f(R,function(W,z){var V=W.linkGroup;V&&!P[z]&&f(V.axesInfo,function(Q,G){var ee=P[G];if(Q!==W&&ee){var ce=ee.value;V.mapper&&(ce=W.axis.scale.parse(V.mapper(ce,d(Q),d(W)))),j[W.key]=ce}})}),f(j,function(W,z){i(R[z],W,B,!0,F)}),l(P,R,F),r(X,C,v,T),s(R,T,S),F}function i(v,b,S,E,C){var _=v.axis;if(_.scale.isBlank()||!_.containData(b))return;if(!v.involveSeries){S.showPointer(v,b);return}var T=t(b,v),w=T.payloadBatch,O=T.snapToValue;w[0]&&C.seriesIndex==null&&y.extend(C,w[0]),!E&&v.snap&&(_.containData(O)&&O!=null&&(b=O)),S.showPointer(v,b,w,C),S.showTooltip(v,T,O)}function t(v,b){var S=b.axis,E=S.dim,C=v,_=[],T=Number.MAX_VALUE,w=-1;return f(b.seriesModels,function(O,I){var R=O.getData().mapDimension(E,!0),M,F;if(O.getAxisTooltipData){var P=O.getAxisTooltipData(R,v,S);F=P.dataIndices,M=P.nestestValue}else{if(F=O.getData().indicesOfNearest(R[0],v,S.type==="category"?.5:null),!F.length)return;M=O.getData().get(R[0],F[0])}if(M==null||!isFinite(M))return;var X=v-M,B=Math.abs(X);B<=T&&((B<T||X>=0&&w<0)&&(T=B,w=X,C=M,_.length=0),f(F,function(j){_.push({seriesIndex:O.seriesIndex,dataIndexInside:j,dataIndex:O.getData().getRawIndex(j)})}))}),{payloadBatch:_,snapToValue:C}}function o(v,b,S,E){v[b.key]={value:S,payloadBatch:E}}function e(v,b,S,E){var C=S.payloadBatch,_=b.axis,T=_.model,w=b.axisPointerModel;if(!b.triggerTooltip||!C.length)return;var O=b.coordSys.model,I=A.makeKey(O),R=v.map[I];R||(R=v.map[I]={coordSysId:O.id,coordSysIndex:O.componentIndex,coordSysType:O.type,coordSysMainType:O.mainType,dataByAxis:[]},v.list.push(R)),R.dataByAxis.push({axisDim:_.dim,axisIndex:T.componentIndex,axisType:T.type,axisId:T.id,value:E,valueLabelOpt:{precision:w.get("label.precision"),formatter:w.get("label.formatter")},seriesDataIndices:C.slice()})}function l(v,b,S){var E=S.axesInfo=[];f(b,function(C,_){var T=C.axisPointerModel.option,w=v[_];w?(!C.useHandle&&(T.status="show"),T.value=w.value,T.seriesDataIndices=(w.payloadBatch||[]).slice()):!C.useHandle&&(T.status="hide"),T.status==="show"&&E.push({axisDim:C.axis.dim,axisIndex:C.axis.model.componentIndex,value:T.value})})}function r(v,b,S,E){if(g(b)||!v.list.length){E({type:"hideTip"});return}var C=((v.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};E({type:"showTip",escapeConnect:!0,x:b[0],y:b[1],tooltipOption:S.tooltipOption,position:S.position,dataIndexInside:C.dataIndexInside,dataIndex:C.dataIndex,seriesIndex:C.seriesIndex,dataByCoordSys:v.list})}function s(v,b,S){var E=S.getZr(),C="axisPointerLastHighlights",_=u(E)[C]||{},T=u(E)[C]={};f(v,function(I,R){var M=I.axisPointerModel.option;M.status==="show"&&f(M.seriesDataIndices,function(F){var P=F.seriesIndex+" | "+F.dataIndex;T[P]=F})});var w=[],O=[];y.each(_,function(I,R){!T[R]&&O.push(I)}),y.each(T,function(I,R){!_[R]&&w.push(I)}),O.length&&S.dispatchAction({type:"downplay",escapeConnect:!0,batch:O}),w.length&&S.dispatchAction({type:"highlight",escapeConnect:!0,batch:w})}function c(v,b){for(var S=0;S<(v||[]).length;S++){var E=v[S];if(b.axis.dim===E.axisDim&&b.axis.model.componentIndex===E.axisIndex)return E}}function d(v){var b=v.axis.model,S={},E=S.axisDim=v.axis.dim;return S.axisIndex=S[E+"AxisIndex"]=b.componentIndex,S.axisName=S[E+"AxisName"]=b.name,S.axisId=S[E+"AxisId"]=b.id,S}function g(v){return!v||v[0]==null||isNaN(v[0])||v[1]==null||isNaN(v[1])}k.exports=a},"6BzB":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.shrinkBuf=y,D.arraySet=p,D.flattenChunks=x,D.Buf32=D.Buf16=D.Buf8=void 0;function y(h,u){return h.length===u?h:h.subarray?h.subarray(0,u):(h.length=u,h)}function p(h,u,a,i,t){if(u.subarray&&h.subarray){h.set(u.subarray(a,a+i),t);return}for(var o=0;o<i;o++)h[t+o]=u[a+o]}function x(h){var u,a,i,t,o,e;for(i=0,u=0,a=h.length;u<a;u++)i+=h[u].length;for(e=new Uint8Array(i),t=0,u=0,a=h.length;u<a;u++)o=h[u],e.set(o,t),t+=o.length;return e}var A=Uint8Array;D.Buf8=A;var m=Uint16Array;D.Buf16=m;var f=Int32Array;D.Buf32=f},"6D9b":function(k,D,n){},"6GrX":function(k,D,n){var y=n("mFDi"),p=n("Xnb7"),x=n("bYtY"),A=x.getContext,m=x.extend,f=x.retrieve2,h=x.retrieve3,u=x.trim,a={},i=0,t=5e3,o=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,e="12px sans-serif",l={};function r(X,B){l[X]=B}function s(X,B){B=B||e;var j=X+":"+B;if(a[j])return a[j];for(var W=(X+"").split(`
|
|
|
`),z=0,V=0,Q=W.length;V<Q;V++)z=Math.max(I(W[V],B).width,z);return i>t&&(i=0,a={}),i++,a[j]=z,z}function c(X,B,j,W,z,V,Q,G){return Q?g(X,B,j,W,z,V,Q,G):d(X,B,j,W,z,V,G)}function d(X,B,j,W,z,V,Q){var G=R(X,B,z,V,Q),ee=s(X,B);z&&(ee+=z[1]+z[3]);var ce=G.outerHeight,be=v(0,ee,j),le=b(0,ce,W),Ie=new y(be,le,ee,ce);return Ie.lineHeight=G.lineHeight,Ie}function g(X,B,j,W,z,V,Q,G){var ee=M(X,{rich:Q,truncate:G,font:B,textAlign:j,textPadding:z,textLineHeight:V}),ce=ee.outerWidth,be=ee.outerHeight,le=v(0,ce,j),Ie=b(0,be,W);return new y(le,Ie,ce,be)}function v(X,B,j){return j==="right"?X-=B:j==="center"&&(X-=B/2),X}function b(X,B,j){return j==="middle"?X-=B/2:j==="bottom"&&(X-=B),X}function S(X,B,j){var W=B.textPosition,z=B.textDistance,V=j.x,Q=j.y;z=z||0;var G=j.height,ee=j.width,ce=G/2,be="left",le="top";switch(W){case"left":V-=z,Q+=ce,be="right",le="middle";break;case"right":V+=z+ee,Q+=ce,le="middle";break;case"top":V+=ee/2,Q-=z,be="center",le="bottom";break;case"bottom":V+=ee/2,Q+=G+z,be="center";break;case"inside":V+=ee/2,Q+=ce,be="center",le="middle";break;case"insideLeft":V+=z,Q+=ce,le="middle";break;case"insideRight":V+=ee-z,Q+=ce,be="right",le="middle";break;case"insideTop":V+=ee/2,Q+=z,be="center";break;case"insideBottom":V+=ee/2,Q+=G-z,be="center",le="bottom";break;case"insideTopLeft":V+=z,Q+=z;break;case"insideTopRight":V+=ee-z,Q+=z,be="right";break;case"insideBottomLeft":V+=z,Q+=G-z,le="bottom";break;case"insideBottomRight":V+=ee-z,Q+=G-z,be="right",le="bottom";break}return X=X||{},X.x=V,X.y=Q,X.textAlign=be,X.textVerticalAlign=le,X}function E(X,B,j){var W={textPosition:X,textDistance:j};return S({},W,B)}function C(X,B,j,W,z){if(!B)return"";var V=(X+"").split(`
|
|
|
`);z=_(B,j,W,z);for(var Q=0,G=V.length;Q<G;Q++)V[Q]=T(V[Q],z);return V.join(`
|
|
|
`)}function _(X,B,j,W){W=m({},W),W.font=B;var j=f(j,"...");W.maxIterations=f(W.maxIterations,2);var z=W.minChar=f(W.minChar,0);W.cnCharWidth=s("\u56FD",B);var V=W.ascCharWidth=s("a",B);W.placeholder=f(W.placeholder,"");for(var Q=X=Math.max(0,X-1),G=0;G<z&&Q>=V;G++)Q-=V;var ee=s(j,B);return ee>Q&&(j="",ee=0),Q=X-ee,W.ellipsis=j,W.ellipsisWidth=ee,W.contentWidth=Q,W.containerWidth=X,W}function T(X,B){var j=B.containerWidth,W=B.font,z=B.contentWidth;if(!j)return"";var V=s(X,W);if(V<=j)return X;for(var Q=0;;Q++){if(V<=z||Q>=B.maxIterations){X+=B.ellipsis;break}var G=Q===0?w(X,z,B.ascCharWidth,B.cnCharWidth):V>0?Math.floor(X.length*z/V):0;X=X.substr(0,G),V=s(X,W)}return X===""&&(X=B.placeholder),X}function w(X,B,j,W){for(var z=0,V=0,Q=X.length;V<Q&&z<B;V++){var G=X.charCodeAt(V);z+=0<=G&&G<=127?j:W}return V}function O(X){return s("\u56FD",X)}function I(X,B){return l.measureText(X,B)}l.measureText=function(X,B){var j=A();return j.font=B||e,j.measureText(X)};function R(X,B,j,W,z){X!=null&&(X+="");var V=f(W,O(B)),Q=X?X.split(`
|
|
|
`):[],G=Q.length*V,ee=G,ce=!0;if(j&&(ee+=j[0]+j[2]),X&&z){ce=!1;var be=z.outerHeight,le=z.outerWidth;if(be!=null&&ee>be)X="",Q=[];else if(le!=null)for(var Ie=_(le-(j?j[1]+j[3]:0),B,z.ellipsis,{minChar:z.minChar,placeholder:z.placeholder}),ke=0,Re=Q.length;ke<Re;ke++)Q[ke]=T(Q[ke],Ie)}return{lines:Q,height:G,outerHeight:ee,lineHeight:V,canCacheByTextString:ce}}function M(X,B){var j={lines:[],width:0,height:0};if(X!=null&&(X+=""),!X)return j;for(var W=o.lastIndex=0,z;(z=o.exec(X))!=null;){var V=z.index;V>W&&F(j,X.substring(W,V)),F(j,z[2],z[1]),W=o.lastIndex}W<X.length&&F(j,X.substring(W,X.length));var Q=j.lines,G=0,ee=0,ce=[],be=B.textPadding,le=B.truncate,Ie=le&&le.outerWidth,ke=le&&le.outerHeight;be&&(Ie!=null&&(Ie-=be[1]+be[3]),ke!=null&&(ke-=be[0]+be[2]));for(var Re=0;Re<Q.length;Re++){for(var Qe=Q[Re],We=0,ot=0,Oe=0;Oe<Qe.tokens.length;Oe++){var oe=Qe.tokens[Oe],st=oe.styleName&&B.rich[oe.styleName]||{},he=oe.textPadding=st.textPadding,J=oe.font=st.font||B.font,Y=oe.textHeight=f(st.textHeight,O(J));if(he&&(Y+=he[0]+he[2]),oe.height=Y,oe.lineHeight=h(st.textLineHeight,B.textLineHeight,Y),oe.textAlign=st&&st.textAlign||B.textAlign,oe.textVerticalAlign=st&&st.textVerticalAlign||"middle",ke!=null&&G+oe.lineHeight>ke)return{lines:[],width:0,height:0};oe.textWidth=s(oe.text,J);var $=st.textWidth,fe=$==null||$==="auto";if(typeof $=="string"&&$.charAt($.length-1)==="%")oe.percentWidth=$,ce.push(oe),$=0;else{if(fe){$=oe.textWidth;var we=st.textBackgroundColor,Ne=we&&we.image;Ne&&(Ne=p.findExistImage(Ne),p.isImageReady(Ne)&&($=Math.max($,Ne.width*Y/Ne.height)))}var Ee=he?he[1]+he[3]:0;$+=Ee;var de=Ie!=null?Ie-ot:null;de!=null&&de<$&&(!fe||de<Ee?(oe.text="",oe.textWidth=$=0):(oe.text=C(oe.text,de-Ee,J,le.ellipsis,{minChar:le.minChar}),oe.textWidth=s(oe.text,J),$=oe.textWidth+Ee))}ot+=oe.width=$,st&&(We=Math.max(We,oe.lineHeight))}Qe.width=ot,Qe.lineHeight=We,G+=We,ee=Math.max(ee,ot)}j.outerWidth=j.width=f(B.textWidth,ee),j.outerHeight=j.height=f(B.textHeight,G),be&&(j.outerWidth+=be[1]+be[3],j.outerHeight+=be[0]+be[2]);for(var Re=0;Re<ce.length;Re++){var oe=ce[Re],me=oe.percentWidth;oe.width=parseInt(me,10)/100*ee}return j}function F(X,B,j){for(var W=B==="",z=B.split(`
|
|
|
`),V=X.lines,Q=0;Q<z.length;Q++){var G=z[Q],ee={styleName:j,text:G,isLineHolder:!G&&!W};if(Q)V.push({tokens:[ee]});else{var ce=(V[V.length-1]||(V[0]={tokens:[]})).tokens,be=ce.length;be===1&&ce[0].isLineHolder?ce[0]=ee:(G||!be||W)&&ce.push(ee)}}}function P(X){var B=(X.fontSize||X.fontFamily)&&[X.fontStyle,X.fontWeight,(X.fontSize||12)+"px",X.fontFamily||"sans-serif"].join(" ");return B&&u(B)||X.textFont||X.font}D.DEFAULT_FONT=e,D.$override=r,D.getWidth=s,D.getBoundingRect=c,D.adjustTextX=v,D.adjustTextY=b,D.calculateTextPosition=S,D.adjustTextPositionOnRect=E,D.truncateText=C,D.getLineHeight=O,D.measureText=I,D.parsePlainText=R,D.parseRichText=M,D.makeFont=P},"6Ic6":function(k,D,n){var y=n("bYtY"),p=y.each,x=n("4fz+"),A=n("iRjW"),m=n("Yl7c"),f=n("4NO4"),h=n("IwbS"),u=n("9H2F"),a=u.createTask,i=n("zM3Q"),t=f.makeInner(),o=i();function e(){this.group=new x,this.uid=A.getUID("viewChart"),this.renderTask=a({plan:c,reset:d}),this.renderTask.context={view:this}}e.prototype={type:"chart",init:function(b,S){},render:function(b,S,E,C){},highlight:function(b,S,E,C){s(b.getData(),C,"emphasis")},downplay:function(b,S,E,C){s(b.getData(),C,"normal")},remove:function(b,S){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var l=e.prototype;l.updateView=l.updateLayout=l.updateVisual=function(b,S,E,C){this.render(b,S,E,C)};function r(b,S,E){if(b&&(b.trigger(S,E),b.isGroup&&!h.isHighDownDispatcher(b)))for(var C=0,_=b.childCount();C<_;C++)r(b.childAt(C),S,E)}function s(b,S,E){var C=f.queryDataIndex(b,S),_=S&&S.highlightKey!=null?h.getHighlightDigit(S.highlightKey):null;C!=null?p(f.normalizeToArray(C),function(T){r(b.getItemGraphicEl(T),E,_)}):b.eachItemGraphicEl(function(T){r(T,E,_)})}m.enableClassExtend(e,["dispose"]),m.enableClassManagement(e,{registerWhenExtend:!0}),e.markUpdateMethod=function(b,S){t(b).updateMethod=S};function c(b){return o(b.model)}function d(b){var S=b.model,E=b.ecModel,C=b.api,_=b.payload,T=S.pipelineContext.progressiveRender,w=b.view,O=_&&t(_).updateMethod,I=T?"incrementalPrepareRender":O&&w[O]?O:"render";return I!=="render"&&w[I](S,E,C,_),g[I]}var g={incrementalPrepareRender:{progress:function(b,S){S.view.incrementalRender(b,S.model,S.ecModel,S.api,S.payload)}},render:{forceFirstProgress:!0,progress:function(b,S){S.view.render(S.model,S.ecModel,S.api,S.payload)}}},v=e;k.exports=v},"6MrE":function(k,D,n){},"6Qwc":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={8:"Backspace",9:"Tab",10:"NumpadClear",12:"Numpad5",13:"Enter",16:"ShiftLeft",17:"ControlLeft",18:"AltLeft",19:"Pause",20:"CapsLock",21:"Lang1",25:"Lang2",27:"Escape",28:"Convert",29:"NonConvert",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",44:"PrintScreen",45:"Insert",46:"Delete",47:"Help",48:"Digit0",49:"Digit1",50:"Digit2",51:"Digit3",52:"Digit4",53:"Digit5",54:"Digit6",55:"Digit7",56:"Digit8",57:"Digit9",91:"MetaLeft",92:"MetaRight",93:"ContextMenu",95:"Sleep",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",108:"NumpadDecimal",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",124:"F13",125:"F14",126:"F15",127:"F16",128:"F17",129:"F18",130:"F19",131:"F20",132:"F21",133:"F22",134:"F23",135:"F24",144:"NumLock",145:"ScrollLock",166:"BrowserBack",167:"BrowserForward",168:"BrowserRefresh",169:"BrowserStop",170:"BrowserSearch",171:"BrowserFavorites",172:"BrowserHome",173:"AudioVolumeMute",174:"AudioVolumeDown",175:"AudioVolumeUp",176:"MediaTrackNext",177:"MediaTrackPrevious",178:"MediaStop",179:"MediaPlayPause",180:"LaunchMail",181:"MediaSelect",182:"LaunchApp1",183:"LaunchApp2",225:"AltRight"};D.default=y},"6UJt":function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("v56E"),A=n.n(x),m=n("R9oj"),f=n("5NDa")},"6VBw":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("ODXe"),x=n("rePB"),A=n("Ff2n"),m=n("q1tI"),f=n("TSYQ"),h=n.n(f),u=n("Pw59"),a=n("Qi1f"),i=["icon","className","onClick","style","primaryColor","secondaryColor"],t={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function o(b){var S=b.primaryColor,E=b.secondaryColor;t.primaryColor=S,t.secondaryColor=E||Object(a.b)(S),t.calculated=!!E}function e(){return Object(y.a)({},t)}var l=function(S){var E=S.icon,C=S.className,_=S.onClick,T=S.style,w=S.primaryColor,O=S.secondaryColor,I=Object(A.a)(S,i),R=t;if(w&&(R={primaryColor:w,secondaryColor:O||Object(a.b)(w)}),Object(a.f)(),Object(a.g)(Object(a.c)(E),"icon should be icon definiton, but got ".concat(E)),!Object(a.c)(E))return null;var M=E;return M&&typeof M.icon=="function"&&(M=Object(y.a)(Object(y.a)({},M),{},{icon:M.icon(R.primaryColor,R.secondaryColor)})),Object(a.a)(M.icon,"svg-".concat(M.name),Object(y.a)({className:C,onClick:_,style:T,"data-icon":M.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},I))};l.displayName="IconReact",l.getTwoToneColors=e,l.setTwoToneColors=o;var r=l;function s(b){var S=Object(a.d)(b),E=Object(p.a)(S,2),C=E[0],_=E[1];return r.setTwoToneColors({primaryColor:C,secondaryColor:_})}function c(){var b=r.getTwoToneColors();return b.calculated?[b.primaryColor,b.secondaryColor]:b.primaryColor}var d=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];s("#1890ff");var g=m.forwardRef(function(b,S){var E,C=b.className,_=b.icon,T=b.spin,w=b.rotate,O=b.tabIndex,I=b.onClick,R=b.twoToneColor,M=Object(A.a)(b,d),F=m.useContext(u.a),P=F.prefixCls,X=P===void 0?"anticon":P,B=F.rootClassName,j=h()(B,X,(E={},Object(x.a)(E,"".concat(X,"-").concat(_.name),!!_.name),Object(x.a)(E,"".concat(X,"-spin"),!!T||_.name==="loading"),E),C),W=O;W===void 0&&I&&(W=-1);var z=w?{msTransform:"rotate(".concat(w,"deg)"),transform:"rotate(".concat(w,"deg)")}:void 0,V=Object(a.d)(R),Q=Object(p.a)(V,2),G=Q[0],ee=Q[1];return m.createElement("span",Object(y.a)(Object(y.a)({role:"img","aria-label":_.name},M),{},{ref:S,tabIndex:W,onClick:I,className:j}),m.createElement(r,{icon:_,primaryColor:G,secondaryColor:ee,style:z}))});g.displayName="AntdIcon",g.getTwoToneColor=c,g.setTwoToneColor=s;var v=D.a=g},"6cGi":function(k,D,n){"use strict";n.d(D,"a",function(){return h});var y=n("ODXe"),p=n("q1tI");function x(u){var a=p.useRef();a.current=u;var i=p.useCallback(function(){for(var t,o=arguments.length,e=new Array(o),l=0;l<o;l++)e[l]=arguments[l];return(t=a.current)===null||t===void 0?void 0:t.call.apply(t,[a].concat(e))},[]);return i}var A=n("TNol"),m=n("dm2S");function f(u){return u!==void 0}function h(u,a){var i=a||{},t=i.defaultValue,o=i.value,e=i.onChange,l=i.postState,r=Object(m.a)(function(){return f(o)?o:f(t)?typeof t=="function"?t():t:typeof u=="function"?u():u}),s=Object(y.a)(r,2),c=s[0],d=s[1],g=o!==void 0?o:c,v=l?l(g):g,b=x(e),S=Object(m.a)([g]),E=Object(y.a)(S,2),C=E[0],_=E[1];Object(A.b)(function(){var w=C[0];c!==w&&b(c,w)},[C]),Object(A.b)(function(){f(o)||d(o)},[o]);var T=x(function(w,O){d(w,O),_([g],O)});return[v,T]}},"6fms":function(k,D,n){var y=n("SUKs"),p=n("06Qe"),x=n("bYtY"),A=x.each;function m(a){return parseInt(a,10)}function f(a,i){p.initVML(),this.root=a,this.storage=i;var t=document.createElement("div"),o=document.createElement("div");t.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",o.style.cssText="position:absolute;left:0;top:0;",a.appendChild(t),this._vmlRoot=o,this._vmlViewport=t,this.resize();var e=i.delFromStorage,l=i.addToStorage;i.delFromStorage=function(r){e.call(i,r),r&&(r.onRemove&&r.onRemove(o))},i.addToStorage=function(r){r.onAdd&&r.onAdd(o),l.call(i,r)},this._firstPaint=!0}f.prototype={constructor:f,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var i=this.getViewportRoot();if(i)return{offsetLeft:i.offsetLeft||0,offsetTop:i.offsetTop||0}},refresh:function(){var i=this.storage.getDisplayList(!0,!0);this._paintList(i)},_paintList:function(i){for(var t=this._vmlRoot,o=0;o<i.length;o++){var e=i[o];e.invisible||e.ignore?(e.__alreadyNotVisible||e.onRemove(t),e.__alreadyNotVisible=!0):(e.__alreadyNotVisible&&e.onAdd(t),e.__alreadyNotVisible=!1,e.__dirty&&(e.beforeBrush&&e.beforeBrush(),(e.brushVML||e.brush).call(e,t),e.afterBrush&&e.afterBrush())),e.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(t),this._firstPaint=!1)},resize:function(i,t){var i=i==null?this._getWidth():i,t=t==null?this._getHeight():t;if(this._width!==i||this._height!==t){this._width=i,this._height=t;var o=this._vmlViewport.style;o.width=i+"px",o.height=t+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var i=this.root,t=i.currentStyle;return(i.clientWidth||m(t.width))-m(t.paddingLeft)-m(t.paddingRight)|0},_getHeight:function(){var i=this.root,t=i.currentStyle;return(i.clientHeight||m(t.height))-m(t.paddingTop)-m(t.paddingBottom)|0}};function h(a){return function(){y('In IE8.0 VML mode painter not support method "'+a+'"')}}A(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(a){f.prototype[a]=h(a)});var u=f;k.exports=u},"6ner":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("1OyB"),x=n("vuIU"),A=n("Ji7U"),m=n("LK+K"),f=n("q1tI"),h=n.n(f),u=n("m+aA"),a=n("Zm9Q"),i=n("Kwbf"),t=n("c+Xe"),o=n("bdgK"),e="rc-observer-key",l=function(r){Object(A.a)(c,r);var s=Object(m.a)(c);function c(){var d;return Object(p.a)(this,c),d=s.apply(this,arguments),d.resizeObserver=null,d.childNode=null,d.currentElement=null,d.state={width:0,height:0,offsetHeight:0,offsetWidth:0},d.onResize=function(g){var v=d.props.onResize,b=g[0].target,S=b.getBoundingClientRect(),E=S.width,C=S.height,_=b.offsetWidth,T=b.offsetHeight,w=Math.floor(E),O=Math.floor(C);if(d.state.width!==w||d.state.height!==O||d.state.offsetWidth!==_||d.state.offsetHeight!==T){var I={width:w,height:O,offsetWidth:_,offsetHeight:T};d.setState(I),v&&Promise.resolve().then(function(){v(Object(y.a)(Object(y.a)({},I),{},{offsetWidth:_,offsetHeight:T}))})}},d.setChildNode=function(g){d.childNode=g},d}return Object(x.a)(c,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var g=this.props.disabled;if(g){this.destroyObserver();return}var v=Object(u.a)(this.childNode||this),b=v!==this.currentElement;b&&(this.destroyObserver(),this.currentElement=v),!this.resizeObserver&&v&&(this.resizeObserver=new o.default(this.onResize),this.resizeObserver.observe(v))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var g=this.props.children,v=Object(a.a)(g);if(v.length>1)Object(i.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(v.length===0)return Object(i.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var b=v[0];if(f.isValidElement(b)&&Object(t.c)(b)){var S=b.ref;v[0]=f.cloneElement(b,{ref:Object(t.a)(S,this.setChildNode)})}return v.length===1?v[0]:v.map(function(E,C){return!f.isValidElement(E)||"key"in E&&E.key!==null?E:f.cloneElement(E,{key:"".concat(e,"-").concat(C)})})}}]),c}(f.Component);l.displayName="ResizeObserver",D.a=l},"6r85":function(k,D,n){var y=n("bYtY");function p(x){if(!x||!y.isArray(x.series))return;y.each(x.series,function(A){y.isObject(A)&&A.type==="k"&&(A.type="candlestick")})}k.exports=p},"6sVZ":function(k,D){var n=Object.prototype;function y(p){var x=p&&p.constructor,A=typeof x=="function"&&x.prototype||n;return p===A}k.exports=y},"6uqw":function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("ItGF"),A=n("YOMW"),m=n("XxSj"),f=n("K4ya"),h=n("4NO4"),u=n("OELB"),a=m.mapVisual,i=m.eachVisual,t=p.isArray,o=p.each,e=u.asc,l=u.linearMap,r=p.noop,s=y.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-Infinity,Infinity],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(d,g,v){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(d,v)},optionUpdated:function(d,g){var v=this.option;x.canvasSupported||(v.realtime=!1),!g&&f.replaceVisualOption(v,d,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(d){var g=this.stateList;d=p.bind(d,this),this.controllerVisuals=f.createVisualMappings(this.option.controller,g,d),this.targetVisuals=f.createVisualMappings(this.option.target,g,d)},getTargetSeriesIndices:function(){var d=this.option.seriesIndex,g=[];return d==null||d==="all"?this.ecModel.eachSeries(function(v,b){g.push(b)}):g=h.normalizeToArray(d),g},eachTargetSeries:function(d,g){p.each(this.getTargetSeriesIndices(),function(v){d.call(g,this.ecModel.getSeriesByIndex(v))},this)},isTargetSeries:function(d){var g=!1;return this.eachTargetSeries(function(v){v===d&&(g=!0)}),g},formatValueText:function(d,g,v){var b=this.option,S=b.precision,E=this.dataBound,C=b.formatter,_,T;if(v=v||["<",">"],p.isArray(d)&&(d=d.slice(),_=!0),T=g?d:_?[w(d[0]),w(d[1])]:w(d),p.isString(C))return C.replace("{value}",_?T[0]:T).replace("{value2}",_?T[1]:T);if(p.isFunction(C))return _?C(d[0],d[1]):C(d);if(_)return d[0]===E[0]?v[0]+" "+T[1]:d[1]===E[1]?v[1]+" "+T[0]:T[0]+" - "+T[1];return T;function w(O){return O===E[0]?"min":O===E[1]?"max":(+O).toFixed(Math.min(S,20))}},resetExtent:function(){var d=this.option,g=e([d.min,d.max]);this._dataExtent=g},getDataDimension:function(d){var g=this.option.dimension,v=d.dimensions;if(g==null&&!v.length)return;if(g!=null)return d.getDimension(g);for(var b=d.dimensions,S=b.length-1;S>=0;S--){var E=b[S],C=d.getDimensionInfo(E);if(!C.isCalculationCoord)return E}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var d=this.ecModel,g=this.option,v={inRange:g.inRange,outOfRange:g.outOfRange},b=g.target||(g.target={}),S=g.controller||(g.controller={});p.merge(b,v),p.merge(S,v);var E=this.isCategory();C.call(this,b),C.call(this,S),_.call(this,b,"inRange","outOfRange"),T.call(this,S);function C(w){t(g.color)&&!w.inRange&&(w.inRange={color:g.color.slice().reverse()}),w.inRange=w.inRange||{color:d.get("gradientColor")},o(this.stateList,function(O){var I=w[O];if(p.isString(I)){var R=A.get(I,"active",E);R?(w[O]={},w[O][I]=R):delete w[O]}},this)}function _(w,O,I){var R=w[O],M=w[I];R&&!M&&(M=w[I]={},o(R,function(F,P){if(!m.isValidType(P))return;var X=A.get(P,"inactive",E);X!=null&&(M[P]=X,P==="color"&&!M.hasOwnProperty("opacity")&&!M.hasOwnProperty("colorAlpha")&&(M.opacity=[0,0]))}))}function T(w){var O=(w.inRange||{}).symbol||(w.outOfRange||{}).symbol,I=(w.inRange||{}).symbolSize||(w.outOfRange||{}).symbolSize,R=this.get("inactiveColor");o(this.stateList,function(M){var F=this.itemSize,P=w[M];P||(P=w[M]={color:E?R:[R]}),P.symbol==null&&(P.symbol=O&&p.clone(O)||(E?"roundRect":["roundRect"])),P.symbolSize==null&&(P.symbolSize=I&&p.clone(I)||(E?F[0]:[F[0],F[0]])),P.symbol=a(P.symbol,function(j){return j==="none"||j==="square"?"roundRect":j});var X=P.symbolSize;if(X!=null){var B=-Infinity;i(X,function(j){j>B&&(B=j)}),P.symbolSize=a(X,function(j){return l(j,[0,B],[0,F[0]],!0)})}},this)}},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:r,getValueState:r,getVisualMeta:r}),c=s;k.exports=c},"6usn":function(k,D,n){var y=n("bYtY");function p(A,m){return y.map(["Radius","Angle"],function(f,h){var u=this["get"+f+"Axis"](),a=m[h],i=A[h]/2,t="dataTo"+f,o=u.type==="category"?u.getBandWidth():Math.abs(u[t](a-i)-u[t](a+i));return f==="Angle"&&(o=o*Math.PI/180),o},this)}function x(A){var m=A.getRadiusAxis(),f=A.getAngleAxis(),h=m.getExtent();return h[0]>h[1]&&h.reverse(),{coordSys:{type:"polar",cx:A.cx,cy:A.cy,r:h[1],r0:h[0]},api:{coord:y.bind(function(u){var a=m.dataToRadius(u[0]),i=f.dataToAngle(u[1]),t=A.coordToPoint([a,i]);return t.push(a,i*Math.PI/180),t}),size:y.bind(p,A)}}}k.exports=x},"711d":function(k,D){function n(y){return function(p){return p==null?void 0:p[y]}}k.exports=n},"72pK":function(k,D){function n(x,A,m,f,h,u){x=x||0;var a=m[1]-m[0];if(h!=null&&(h=p(h,[0,a])),u!=null&&(u=Math.max(u,h!=null?h:0)),f==="all"){var i=Math.abs(A[1]-A[0]);i=p(i,[0,a]),h=u=p(i,[h,u]),f=0}A[0]=p(A[0],m),A[1]=p(A[1],m);var t=y(A,f);A[f]+=x;var o=h||0,e=m.slice();t.sign<0?e[0]+=o:e[1]-=o,A[f]=p(A[f],e);var l=y(A,f);h!=null&&(l.sign!==t.sign||l.span<h)&&(A[1-f]=A[f]+t.sign*h);var l=y(A,f);return u!=null&&l.span>u&&(A[1-f]=A[f]+l.sign*u),A}function y(x,A){var m=x[A]-x[1-A];return{span:Math.abs(m),sign:m>0?-1:m<0?1:A?-1:1}}function p(x,A){return Math.min(A[1]!=null?A[1]:Infinity,Math.max(A[0]!=null?A[0]:-Infinity,x))}k.exports=n},"75ce":function(k,D,n){var y=n("ProS");n("IXuL"),n("8X+K");var p=n("f5Yq"),x=n("h8O9"),A=n("/d5a");n("Ae16"),y.registerVisual(p("line","circle","line")),y.registerLayout(x("line")),y.registerProcessor(y.PRIORITY.PROCESSOR.STATISTIC,A("line"))},"75ev":function(k,D,n){var y=n("ProS");n("IWNH"),n("bNin"),n("v5uJ");var p=n("f5Yq"),x=n("yik8");y.registerVisual(p("tree","circle")),y.registerLayout(x)},"77Zs":function(k,D,n){var y=n("Xi7e");function p(){this.__data__=new y,this.size=0}k.exports=p},"7AJT":function(k,D,n){var y=n("bYtY"),p=n("hM6l"),x=function(m,f,h,u,a){p.call(this,m,f,h),this.type=u||"value",this.position=a||"bottom"};x.prototype={constructor:x,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var m=this.position;return m==="top"||m==="bottom"},getGlobalExtent:function(m){var f=this.getExtent();return f[0]=this.toGlobalCoord(f[0]),f[1]=this.toGlobalCoord(f[1]),m&&f[0]>f[1]&&f.reverse(),f},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(m,f){return this.coordToData(this.toLocalCoord(m[this.dim==="x"?0:1]),f)},toLocalCoord:null,toGlobalCoord:null},y.inherits(x,p);var A=x;k.exports=A},"7Cbv":function(k,D,n){"use strict";var y=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),p=new Uint8Array(16);function x(){if(!y)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return y(p)}var A=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function m(e){return typeof e=="string"&&A.test(e)}for(var f=m,h=[],u=0;u<256;++u)h.push((u+256).toString(16).substr(1));function a(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(h[e[l+0]]+h[e[l+1]]+h[e[l+2]]+h[e[l+3]]+"-"+h[e[l+4]]+h[e[l+5]]+"-"+h[e[l+6]]+h[e[l+7]]+"-"+h[e[l+8]]+h[e[l+9]]+"-"+h[e[l+10]]+h[e[l+11]]+h[e[l+12]]+h[e[l+13]]+h[e[l+14]]+h[e[l+15]]).toLowerCase();if(!f(r))throw TypeError("Stringified UUID is invalid");return r}var i=a;function t(e,l,r){e=e||{};var s=e.random||(e.rng||x)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,l){r=r||0;for(var c=0;c<16;++c)l[r+c]=s[c];return l}return i(s)}var o=D.a=t},"7DRL":function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=x.createHashMap,m=x.isString,f=x.isArray,h=x.each,u=x.assert,a=n("MEGo"),i=a.parseXML,t=A(),o={registerMap:function(l,r,s){var c;return f(r)?c=r:r.svg?c=[{type:"svg",source:r.svg,specialAreas:r.specialAreas}]:(r.geoJson&&!r.features&&(s=r.specialAreas,r=r.geoJson),c=[{type:"geoJSON",source:r,specialAreas:s}]),h(c,function(d){var g=d.type;g==="geoJson"&&(g=d.type="geoJSON");var v=e[g];v(d)}),t.set(l,c)},retrieveMap:function(l){return t.get(l)}},e={geoJSON:function(l){var r=l.source;l.geoJSON=m(r)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r},svg:function(l){l.svgXML=i(l.source)}};k.exports=o},"7G+c":function(k,D,n){var y=n("bYtY"),p=y.createHashMap,x=y.isTypedArray,A=n("Yl7c"),m=A.enableClassCheck,f=n("k9D9"),h=f.SOURCE_FORMAT_ORIGINAL,u=f.SERIES_LAYOUT_BY_COLUMN,a=f.SOURCE_FORMAT_UNKNOWN,i=f.SOURCE_FORMAT_TYPED_ARRAY,t=f.SOURCE_FORMAT_KEYED_COLUMNS;function o(l){this.fromDataset=l.fromDataset,this.data=l.data||(l.sourceFormat===t?{}:[]),this.sourceFormat=l.sourceFormat||a,this.seriesLayoutBy=l.seriesLayoutBy||u,this.dimensionsDefine=l.dimensionsDefine,this.encodeDefine=l.encodeDefine&&p(l.encodeDefine),this.startIndex=l.startIndex||0,this.dimensionsDetectCount=l.dimensionsDetectCount}o.seriesDataToSource=function(l){return new o({data:l,sourceFormat:x(l)?i:h,fromDataset:!1})},m(o);var e=o;k.exports=e},"7GkX":function(k,D,n){var y=n("b80T"),p=n("A90E"),x=n("MMmD");function A(m){return x(m)?y(m):p(m)}k.exports=A},"7Kak":function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("KPFz"),A=n.n(x)},"7Phj":function(k,D,n){var y=n("bYtY"),p=n("OELB"),x=p.parsePercent,A=y.each;function m(a){var i=f(a);A(i,function(t){var o=t.seriesModels;if(!o.length)return;h(t),A(o,function(e,l){u(e,t.boxOffsetList[l],t.boxWidthList[l])})})}function f(a){var i=[],t=[];return a.eachSeriesByType("boxplot",function(o){var e=o.getBaseAxis(),l=y.indexOf(t,e);l<0&&(l=t.length,t[l]=e,i[l]={axis:e,seriesModels:[]}),i[l].seriesModels.push(o)}),i}function h(a){var i,t=a.axis,o=a.seriesModels,e=o.length,l=a.boxWidthList=[],r=a.boxOffsetList=[],s=[],c;if(t.type==="category")c=t.getBandWidth();else{var d=0;A(o,function(E){d=Math.max(d,E.getData().count())}),i=t.getExtent(),Math.abs(i[1]-i[0])/d}A(o,function(E){var C=E.get("boxWidth");y.isArray(C)||(C=[C,C]),s.push([x(C[0],c)||0,x(C[1],c)||0])});var g=c*.8-2,v=g/e*.3,b=(g-v*(e-1))/e,S=b/2-g/2;A(o,function(E,C){r.push(S),S+=v+b,l.push(Math.min(Math.max(b,s[C][0]),s[C][1]))})}function u(a,i,t){var o=a.coordinateSystem,e=a.getData(),l=t/2,r=a.get("layout")==="horizontal"?0:1,s=1-r,c=["x","y"],d=e.mapDimension(c[r]),g=e.mapDimension(c[s],!0);if(d==null||g.length<5)return;for(var v=0;v<e.count();v++){var b=e.get(d,v),S=O(b,g[2],v),E=O(b,g[0],v),C=O(b,g[1],v),_=O(b,g[3],v),T=O(b,g[4],v),w=[];I(w,C,0),I(w,_,1),w.push(E,C,T,_),R(w,E),R(w,T),R(w,S),e.setItemLayout(v,{initBaseline:S[s],ends:w})}function O(M,F,P){var X=e.get(F,P),B=[];B[r]=M,B[s]=X;var j;return isNaN(M)||isNaN(X)?j=[NaN,NaN]:(j=o.dataToPoint(B),j[r]+=i),j}function I(M,F,P){var X=F.slice(),B=F.slice();X[r]+=l,B[r]-=l,P?M.push(X,B):M.push(B,X)}function R(M,F){var P=F.slice(),X=F.slice();P[r]-=l,X[r]+=l,M.push(P,X)}}k.exports=m},"7SHv":function(k,D,n){var y=n("LPTA"),p=y.devicePixelRatio,x=n("bYtY"),A=n("SUKs"),m=n("mFDi"),f=n("BPZU"),h=n("Xmg4"),u=n("mLcG"),a=n("Dagg"),i=n("ItGF"),t=1e5,o=314159,e=.01,l=.001;function r(_){return parseInt(_,10)}function s(_){return _?_.__builtin__?!0:!(typeof _.resize!="function"||typeof _.refresh!="function"):!1}var c=new m(0,0,0,0),d=new m(0,0,0,0);function g(_,T,w){return c.copy(_.getBoundingRect()),_.transform&&c.applyTransform(_.transform),d.width=T,d.height=w,!c.intersect(d)}function v(_,T){if(_===T)return!1;if(!_||!T||_.length!==T.length)return!0;for(var w=0;w<_.length;w++)if(_[w]!==T[w])return!0;return!1}function b(_,T){for(var w=0;w<_.length;w++){var O=_[w];O.setTransform(T),T.beginPath(),O.buildPath(T,O.shape),T.clip(),O.restoreTransform(T)}}function S(_,T){var w=document.createElement("div");return w.style.cssText=["position:relative","width:"+_+"px","height:"+T+"px","padding:0","margin:0","border-width:0"].join(";")+";",w}var E=function(T,w,O){this.type="canvas";var I=!T.nodeName||T.nodeName.toUpperCase()==="CANVAS";this._opts=O=x.extend({},O||{}),this.dpr=O.devicePixelRatio||p,this._singleCanvas=I,this.root=T;var R=T.style;R&&(R["-webkit-tap-highlight-color"]="transparent",R["-webkit-user-select"]=R["user-select"]=R["-webkit-touch-callout"]="none",T.innerHTML=""),this.storage=w;var M=this._zlevelList=[],F=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,I){var X=T.width,B=T.height;O.width!=null&&(X=O.width),O.height!=null&&(B=O.height),this.dpr=O.devicePixelRatio||1,T.width=X*this.dpr,T.height=B*this.dpr,this._width=X,this._height=B;var j=new h(T,this,this.dpr);j.__builtin__=!0,j.initContext(),F[o]=j,j.zlevel=o,M.push(o),this._domRoot=T}else{this._width=this._getSize(0),this._height=this._getSize(1);var P=this._domRoot=S(this._width,this._height);T.appendChild(P)}this._hoverlayer=null,this._hoverElements=[]};E.prototype={constructor:E,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var T=this.getViewportRoot();if(T)return{offsetLeft:T.offsetLeft||0,offsetTop:T.offsetTop||0}},refresh:function(T){var w=this.storage.getDisplayList(!0),O=this._zlevelList;this._redrawId=Math.random(),this._paintList(w,T,this._redrawId);for(var I=0;I<O.length;I++){var R=O[I],M=this._layers[R];if(!M.__builtin__&&M.refresh){var F=I===0?this._backgroundColor:null;M.refresh(F)}}return this.refreshHover(),this},addHover:function(T,w){if(T.__hoverMir)return;var O=new T.constructor({style:T.style,shape:T.shape,z:T.z,z2:T.z2,silent:T.silent});return O.__from=T,T.__hoverMir=O,w&&O.setStyle(w),this._hoverElements.push(O),O},removeHover:function(T){var w=T.__hoverMir,O=this._hoverElements,I=x.indexOf(O,w);I>=0&&O.splice(I,1),T.__hoverMir=null},clearHover:function(T){for(var w=this._hoverElements,O=0;O<w.length;O++){var I=w[O].__from;I&&(I.__hoverMir=null)}w.length=0},refreshHover:function(){var T=this._hoverElements,w=T.length,O=this._hoverlayer;if(O&&O.clear(),!w)return;f(T,this.storage.displayableSortFunc),O||(O=this._hoverlayer=this.getLayer(t));var I={};O.ctx.save();for(var R=0;R<w;){var M=T[R],F=M.__from;if(!(F&&F.__zr)){T.splice(R,1),F.__hoverMir=null,w--;continue}R++,F.invisible||(M.transform=F.transform,M.invTransform=F.invTransform,M.__clipPaths=F.__clipPaths,this._doPaintEl(M,O,!0,I))}O.ctx.restore()},getHoverLayer:function(){return this.getLayer(t)},_paintList:function(T,w,O){if(this._redrawId!==O)return;w=w||!1,this._updateLayerStatus(T);var I=this._doPaintList(T,w);if(this._needsManuallyCompositing&&this._compositeManually(),!I){var R=this;u(function(){R._paintList(T,w,O)})}},_compositeManually:function(){var T=this.getLayer(o).ctx,w=this._domRoot.width,O=this._domRoot.height;T.clearRect(0,0,w,O),this.eachBuiltinLayer(function(I){I.virtual&&T.drawImage(I.dom,0,0,w,O)})},_doPaintList:function(T,w){for(var O=[],I=0;I<this._zlevelList.length;I++){var R=this._zlevelList[I],M=this._layers[R];M.__builtin__&&M!==this._hoverlayer&&(M.__dirty||w)&&O.push(M)}for(var F=!0,P=0;P<O.length;P++){var M=O[P],X=M.ctx,B={};X.save();var j=w?M.__startIndex:M.__drawIndex,W=!w&&M.incremental&&Date.now,z=W&&Date.now(),V=M.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(M.__startIndex===M.__endIndex)M.clear(!1,V);else if(j===M.__startIndex){var Q=T[j];(!Q.incremental||!Q.notClear||w)&&M.clear(!1,V)}j===-1&&(console.error("For some unknown reason. drawIndex is -1"),j=M.__startIndex);for(var G=j;G<M.__endIndex;G++){var ee=T[G];if(this._doPaintEl(ee,M,w,B),ee.__dirty=ee.__dirtyText=!1,W){var ce=Date.now()-z;if(ce>15)break}}M.__drawIndex=G,M.__drawIndex<M.__endIndex&&(F=!1),B.prevElClipPaths&&X.restore(),X.restore()}return i.wxa&&x.each(this._layers,function(be){be&&be.ctx&&be.ctx.draw&&be.ctx.draw()}),F},_doPaintEl:function(T,w,O,I){var R=w.ctx,M=T.transform;if((w.__dirty||O)&&!T.invisible&&T.style.opacity!==0&&!(M&&!M[0]&&!M[3])&&!(T.culling&&g(T,this._width,this._height))){var F=T.__clipPaths,P=I.prevElClipPaths;(!P||v(F,P))&&(P&&(R.restore(),I.prevElClipPaths=null,I.prevEl=null),F&&(R.save(),b(F,R),I.prevElClipPaths=F)),T.beforeBrush&&T.beforeBrush(R),T.brush(R,I.prevEl||null),I.prevEl=T,T.afterBrush&&T.afterBrush(R)}},getLayer:function(T,w){this._singleCanvas&&!this._needsManuallyCompositing&&(T=o);var O=this._layers[T];return O||(O=new h("zr_"+T,this,this.dpr),O.zlevel=T,O.__builtin__=!0,this._layerConfig[T]?x.merge(O,this._layerConfig[T],!0):this._layerConfig[T-e]&&x.merge(O,this._layerConfig[T-e],!0),w&&(O.virtual=w),this.insertLayer(T,O),O.initContext()),O},insertLayer:function(T,w){var O=this._layers,I=this._zlevelList,R=I.length,M=null,F=-1,P=this._domRoot;if(O[T]){A("ZLevel "+T+" has been used already");return}if(!s(w)){A("Layer of zlevel "+T+" is not valid");return}if(R>0&&T>I[0]){for(F=0;F<R-1&&!(I[F]<T&&I[F+1]>T);F++);M=O[I[F]]}if(I.splice(F+1,0,T),O[T]=w,!w.virtual)if(M){var X=M.dom;X.nextSibling?P.insertBefore(w.dom,X.nextSibling):P.appendChild(w.dom)}else P.firstChild?P.insertBefore(w.dom,P.firstChild):P.appendChild(w.dom)},eachLayer:function(T,w){var O=this._zlevelList,I,R;for(R=0;R<O.length;R++)I=O[R],T.call(w,this._layers[I],I)},eachBuiltinLayer:function(T,w){var O=this._zlevelList,I,R,M;for(M=0;M<O.length;M++)R=O[M],I=this._layers[R],I.__builtin__&&T.call(w,I,R)},eachOtherLayer:function(T,w){var O=this._zlevelList,I,R,M;for(M=0;M<O.length;M++)R=O[M],I=this._layers[R],I.__builtin__||T.call(w,I,R)},getLayers:function(){return this._layers},_updateLayerStatus:function(T){this.eachBuiltinLayer(function(B,j){B.__dirty=B.__used=!1});function w(B){R&&(R.__endIndex!==B&&(R.__dirty=!0),R.__endIndex=B)}if(this._singleCanvas)for(var O=1;O<T.length;O++){var I=T[O];if(I.zlevel!==T[O-1].zlevel||I.incremental){this._needsManuallyCompositing=!0;break}}for(var R=null,M=0,F,O=0;O<T.length;O++){var I=T[O],P=I.zlevel,X;F!==P&&(F=P,M=0),I.incremental?(X=this.getLayer(P+l,this._needsManuallyCompositing),X.incremental=!0,M=1):X=this.getLayer(P+(M>0?e:0),this._needsManuallyCompositing),X.__builtin__||A("ZLevel "+P+" has been used by unkown layer "+X.id),X!==R&&(X.__used=!0,X.__startIndex!==O&&(X.__dirty=!0),X.__startIndex=O,X.incremental?X.__drawIndex=-1:X.__drawIndex=O,w(O),R=X),I.__dirty&&(X.__dirty=!0,X.incremental&&X.__drawIndex<0&&(X.__drawIndex=O))}w(O),this.eachBuiltinLayer(function(B,j){!B.__used&&B.getElementCount()>0&&(B.__dirty=!0,B.__startIndex=B.__endIndex=B.__drawIndex=0),B.__dirty&&B.__drawIndex<0&&(B.__drawIndex=B.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(T){T.clear()},setBackgroundColor:function(T){this._backgroundColor=T},configLayer:function(T,w){if(w){var O=this._layerConfig;O[T]?x.merge(O[T],w,!0):O[T]=w;for(var I=0;I<this._zlevelList.length;I++){var R=this._zlevelList[I];if(R===T||R===T+e){var M=this._layers[R];x.merge(M,O[T],!0)}}}},delLayer:function(T){var w=this._layers,O=this._zlevelList,I=w[T];if(!I)return;I.dom.parentNode.removeChild(I.dom),delete w[T],O.splice(x.indexOf(O,T),1)},resize:function(T,w){if(this._domRoot.style){var O=this._domRoot;O.style.display="none";var I=this._opts;if(T!=null&&(I.width=T),w!=null&&(I.height=w),T=this._getSize(0),w=this._getSize(1),O.style.display="",this._width!==T||w!==this._height){O.style.width=T+"px",O.style.height=w+"px";for(var R in this._layers)this._layers.hasOwnProperty(R)&&this._layers[R].resize(T,w);x.each(this._progressiveLayers,function(M){M.resize(T,w)}),this.refresh(!0)}this._width=T,this._height=w}else{if(T==null||w==null)return;this._width=T,this._height=w,this.getLayer(o).resize(T,w)}return this},clearLayer:function(T){var w=this._layers[T];w&&w.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(T){if(T=T||{},this._singleCanvas&&!this._compositeManually)return this._layers[o].dom;var w=new h("image",this,T.pixelRatio||this.dpr);if(w.initContext(),w.clear(!1,T.backgroundColor||this._backgroundColor),T.pixelRatio<=this.dpr){this.refresh();var O=w.dom.width,I=w.dom.height,R=w.ctx;this.eachLayer(function(B){B.__builtin__?R.drawImage(B.dom,0,0,O,I):B.renderToCanvas&&(w.ctx.save(),B.renderToCanvas(w.ctx),w.ctx.restore())})}else for(var M={},F=this.storage.getDisplayList(!0),P=0;P<F.length;P++){var X=F[P];this._doPaintEl(X,w,!0,M)}return w.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(T){var w=this._opts,O=["width","height"][T],I=["clientWidth","clientHeight"][T],R=["paddingLeft","paddingTop"][T],M=["paddingRight","paddingBottom"][T];if(w[O]!=null&&w[O]!=="auto")return parseFloat(w[O]);var F=this.root,P=document.defaultView.getComputedStyle(F);return(F[I]||r(P[O])||r(F.style[O]))-(r(P[R])||0)-(r(P[M])||0)|0},pathToImage:function(T,w){w=w||this.dpr;var O=document.createElement("canvas"),I=O.getContext("2d"),R=T.getBoundingRect(),M=T.style,F=M.shadowBlur*w,P=M.shadowOffsetX*w,X=M.shadowOffsetY*w,B=M.hasStroke()?M.lineWidth:0,j=Math.max(B/2,-P+F),W=Math.max(B/2,P+F),z=Math.max(B/2,-X+F),V=Math.max(B/2,X+F),Q=R.width+j+W,G=R.height+z+V;O.width=Q*w,O.height=G*w,I.scale(w,w),I.clearRect(0,0,Q,G),I.dpr=w;var ee={position:T.position,rotation:T.rotation,scale:T.scale};T.position=[j-R.x,z-R.y],T.rotation=0,T.scale=[1,1],T.updateTransform(),T&&T.brush(I);var ce=a,be=new ce({style:{x:0,y:0,image:O}});return ee.position!=null&&(be.position=T.position=ee.position),ee.rotation!=null&&(be.rotation=T.rotation=ee.rotation),ee.scale!=null&&(be.scale=T.scale=ee.scale),be}};var C=E;k.exports=C},"7a+S":function(k,D,n){var y=n("bYtY"),p=n("bLfw"),x=n("YXkt"),A=n("4NO4"),m=p.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(h,u,a){this._data,this._names,this.mergeDefaultAndTheme(h,a),this._initData()},mergeOption:function(h){m.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(h){h==null&&(h=this.option.currentIndex);var u=this._data.count();this.option.loop?h=(h%u+u)%u:(h>=u&&(h=u-1),h<0&&(h=0)),this.option.currentIndex=h},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(h){this.option.autoPlay=!!h},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var h=this.option,u=h.data||[],a=h.axisType,i=this._names=[];if(a==="category"){var t=[];y.each(u,function(l,r){var s=A.getDataItemValue(l),c;y.isObject(l)?(c=y.clone(l),c.value=r):c=r,t.push(c),!y.isString(s)&&(s==null||isNaN(s))&&(s=""),i.push(s+"")}),u=t}var o={category:"ordinal",time:"time"}[a]||"number",e=this._data=new x([{name:"value",type:o}],this);e.initData(u,i)},getData:function(){return this._data},getCategories:function(){if(this.get("axisType")==="category")return this._names.slice()}}),f=m;k.exports=f},"7aKB":function(k,D,n){var y=n("bYtY"),p=n("6GrX"),x=n("OELB");function A(S){return isNaN(S)?"-":(S=(S+"").split("."),S[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(S.length>1?"."+S[1]:""))}function m(S,E){return S=(S||"").toLowerCase().replace(/-(.)/g,function(C,_){return _.toUpperCase()}),E&&S&&(S=S.charAt(0).toUpperCase()+S.slice(1)),S}var f=y.normalizeCssArray,h=/([&<>"'])/g,u={"&":"&","<":"<",">":">",'"':""","'":"'"};function a(S){return S==null?"":(S+"").replace(h,function(E,C){return u[C]})}var i=["a","b","c","d","e","f","g"],t=function(S,E){return"{"+S+(E==null?"":E)+"}"};function o(S,E,C){y.isArray(E)||(E=[E]);var _=E.length;if(!_)return"";for(var T=E[0].$vars||[],w=0;w<T.length;w++){var O=i[w];S=S.replace(t(O),t(O,0))}for(var I=0;I<_;I++)for(var R=0;R<T.length;R++){var M=E[I][T[R]];S=S.replace(t(i[R],I),C?a(M):M)}return S}function e(S,E,C){return y.each(E,function(_,T){S=S.replace("{"+T+"}",C?a(_):_)}),S}function l(S,E){S=y.isString(S)?{color:S,extraCssText:E}:S||{};var C=S.color,_=S.type,E=S.extraCssText,T=S.renderMode||"html",w=S.markerId||"X";return C?T==="html"?_==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+a(C)+";"+(E||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+a(C)+";"+(E||"")+'"></span>':{renderMode:T,content:"{marker"+w+"|} ",style:{color:C}}:""}function r(S,E){return S+="","0000".substr(0,E-S.length)+S}function s(S,E,C){(S==="week"||S==="month"||S==="quarter"||S==="half-year"||S==="year")&&(S=`MM-dd
|
|
|
yyyy`);var _=x.parseDate(E),T=C?"UTC":"",w=_["get"+T+"FullYear"](),O=_["get"+T+"Month"]()+1,I=_["get"+T+"Date"](),R=_["get"+T+"Hours"](),M=_["get"+T+"Minutes"](),F=_["get"+T+"Seconds"](),P=_["get"+T+"Milliseconds"]();return S=S.replace("MM",r(O,2)).replace("M",O).replace("yyyy",w).replace("yy",w%100).replace("dd",r(I,2)).replace("d",I).replace("hh",r(R,2)).replace("h",R).replace("mm",r(M,2)).replace("m",M).replace("ss",r(F,2)).replace("s",F).replace("SSS",r(P,3)),S}function c(S){return S&&S.charAt(0).toUpperCase()+S.substr(1)}var d=p.truncateText;function g(S){return p.getBoundingRect(S.text,S.font,S.textAlign,S.textVerticalAlign,S.textPadding,S.textLineHeight,S.rich,S.truncate)}function v(S,E,C,_,T,w,O,I){return p.getBoundingRect(S,E,C,_,T,I,w,O)}function b(S,E){if(E==="_blank"||E==="blank"){var C=window.open();C.opener=null,C.location=S}else window.open(S,E)}D.addCommas=A,D.toCamelCase=m,D.normalizeCssArray=f,D.encodeHTML=a,D.formatTpl=o,D.formatTplSimple=e,D.getTooltipMarker=l,D.formatTime=s,D.capitalFirst=c,D.truncateText=d,D.getTextBoundingRect=g,D.getTextRect=v,D.windowOpen=b},"7bkD":function(k,D,n){var y=n("bYtY");function p(x,A){A=A||{};var m=x.coordinateSystem,f=x.axis,h={},u=f.position,a=f.orient,i=m.getRect(),t=[i.x,i.x+i.width,i.y,i.y+i.height],o={horizontal:{top:t[2],bottom:t[3]},vertical:{left:t[0],right:t[1]}};h.position=[a==="vertical"?o.vertical[u]:t[0],a==="horizontal"?o.horizontal[u]:t[3]];var e={horizontal:0,vertical:1};h.rotation=Math.PI/2*e[a];var l={top:-1,bottom:1,right:1,left:-1};h.labelDirection=h.tickDirection=h.nameDirection=l[u],x.get("axisTick.inside")&&(h.tickDirection=-h.tickDirection),y.retrieve(A.labelInside,x.get("axisLabel.inside"))&&(h.labelDirection=-h.labelDirection);var r=A.rotate;return r==null&&(r=x.get("axisLabel.rotate")),h.labelRotation=u==="top"?-r:r,h.z2=1,h}D.layout=p},"7fqy":function(k,D){function n(y){var p=-1,x=Array(y.size);return y.forEach(function(A,m){x[++p]=[m,A]}),x}k.exports=n},"7hqr":function(k,D,n){var y=n("bYtY"),p=y.each,x=y.isString;function A(h,u,a){a=a||{};var i=a.byIndex,t=a.stackedCoordDimension,o=!!(h&&h.get("stack")),e,l,r,s;if(p(u,function(v,b){x(v)&&(u[b]=v={name:v}),o&&!v.isExtraCoord&&(!i&&!e&&v.ordinalMeta&&(e=v),!l&&v.type!=="ordinal"&&v.type!=="time"&&(!t||t===v.coordDim)&&(l=v))}),l&&!i&&!e&&(i=!0),l){r="__\0ecstackresult",s="__\0ecstackedover",e&&(e.createInvertedIndices=!0);var c=l.coordDim,d=l.type,g=0;p(u,function(v){v.coordDim===c&&g++}),u.push({name:r,coordDim:c,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0}),g++,u.push({name:s,coordDim:s,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:l&&l.name,stackedByDimension:e&&e.name,isStackedByIndex:i,stackedOverDimension:s,stackResultDimension:r}}function m(h,u){return!!u&&u===h.getCalculationInfo("stackedDimension")}function f(h,u){return m(h,u)?h.getCalculationInfo("stackResultDimension"):u}D.enableDataStack=A,D.isDimensionStacked=m,D.getStackedDimension=f},"7mYs":function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("IwbS"),A=n("7aKB"),m=n("OELB"),f={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},h={EN:["S","M","T","W","T","F","S"],CN:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},u=y.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(a,i,t){var o=this.group;o.removeAll();var e=a.coordinateSystem,l=e.getRangeInfo(),r=e.getOrient();this._renderDayRect(a,l,o),this._renderLines(a,l,r,o),this._renderYearText(a,l,r,o),this._renderMonthText(a,r,o),this._renderWeekText(a,l,r,o)},_renderDayRect:function(a,i,t){for(var o=a.coordinateSystem,e=a.getModel("itemStyle").getItemStyle(),l=o.getCellWidth(),r=o.getCellHeight(),s=i.start.time;s<=i.end.time;s=o.getNextNDay(s,1).time){var c=o.dataToRect([s],!1).tl,d=new x.Rect({shape:{x:c[0],y:c[1],width:l,height:r},cursor:"default",style:e});t.add(d)}},_renderLines:function(a,i,t,o){var e=this,l=a.coordinateSystem,r=a.getModel("splitLine.lineStyle").getLineStyle(),s=a.get("splitLine.show"),c=r.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var d=i.start,g=0;d.time<=i.end.time;g++){b(d.formatedDate),g===0&&(d=l.getDateInfo(i.start.y+"-"+i.start.m));var v=d.date;v.setMonth(v.getMonth()+1),d=l.getDateInfo(v)}b(l.getNextNDay(i.end.time,1).formatedDate);function b(S){e._firstDayOfMonth.push(l.getDateInfo(S)),e._firstDayPoints.push(l.dataToRect([S],!1).tl);var E=e._getLinePointsOfOneWeek(a,S,t);e._tlpoints.push(E[0]),e._blpoints.push(E[E.length-1]),s&&e._drawSplitline(E,r,o)}s&&this._drawSplitline(e._getEdgesPoints(e._tlpoints,c,t),r,o),s&&this._drawSplitline(e._getEdgesPoints(e._blpoints,c,t),r,o)},_getEdgesPoints:function(a,i,t){var o=[a[0].slice(),a[a.length-1].slice()],e=t==="horizontal"?0:1;return o[0][e]=o[0][e]-i/2,o[1][e]=o[1][e]+i/2,o},_drawSplitline:function(a,i,t){var o=new x.Polyline({z2:20,shape:{points:a},style:i});t.add(o)},_getLinePointsOfOneWeek:function(a,i,t){var o=a.coordinateSystem;i=o.getDateInfo(i);for(var e=[],l=0;l<7;l++){var r=o.getNextNDay(i.time,l),s=o.dataToRect([r.time],!1);e[2*r.day]=s.tl,e[2*r.day+1]=s[t==="horizontal"?"bl":"tr"]}return e},_formatterLabel:function(a,i){return typeof a=="string"&&a?A.formatTplSimple(a,i):typeof a=="function"?a(i):i.nameMap},_yearTextPositionControl:function(a,i,t,o,e){i=i.slice();var l=["center","bottom"];o==="bottom"?(i[1]+=e,l=["center","top"]):o==="left"?i[0]-=e:o==="right"?(i[0]+=e,l=["center","top"]):i[1]-=e;var r=0;return(o==="left"||o==="right")&&(r=Math.PI/2),{rotation:r,position:i,style:{textAlign:l[0],textVerticalAlign:l[1]}}},_renderYearText:function(a,i,t,o){var e=a.getModel("yearLabel");if(!e.get("show"))return;var l=e.get("margin"),r=e.get("position");r||(r=t!=="horizontal"?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(s[0][0]+s[1][0])/2,d=(s[0][1]+s[1][1])/2,g=t==="horizontal"?0:1,v={top:[c,s[g][1]],bottom:[c,s[1-g][1]],left:[s[1-g][0],d],right:[s[g][0],d]},b=i.start.y;+i.end.y>+i.start.y&&(b=b+"-"+i.end.y);var S=e.get("formatter"),E={start:i.start.y,end:i.end.y,nameMap:b},C=this._formatterLabel(S,E),_=new x.Text({z2:30});x.setTextStyle(_.style,e,{text:C}),_.attr(this._yearTextPositionControl(_,v[r],t,r,l)),o.add(_)},_monthTextPositionControl:function(a,i,t,o,e){var l="left",r="top",s=a[0],c=a[1];return t==="horizontal"?(c=c+e,i&&(l="center"),o==="start"&&(r="bottom")):(s=s+e,i&&(r="middle"),o==="start"&&(l="right")),{x:s,y:c,textAlign:l,textVerticalAlign:r}},_renderMonthText:function(a,i,t){var o=a.getModel("monthLabel");if(!o.get("show"))return;var e=o.get("nameMap"),l=o.get("margin"),r=o.get("position"),s=o.get("align"),c=[this._tlpoints,this._blpoints];p.isString(e)&&(e=f[e.toUpperCase()]||[]);var d=r==="start"?0:1,g=i==="horizontal"?0:1;l=r==="start"?-l:l;for(var v=s==="center",b=0;b<c[d].length-1;b++){var S=c[d][b].slice(),E=this._firstDayOfMonth[b];if(v){var C=this._firstDayPoints[b];S[g]=(C[g]+c[0][b+1][g])/2}var _=o.get("formatter"),T=e[+E.m-1],w={yyyy:E.y,yy:(E.y+"").slice(2),MM:E.m,M:+E.m,nameMap:T},O=this._formatterLabel(_,w),I=new x.Text({z2:30});p.extend(x.setTextStyle(I.style,o,{text:O}),this._monthTextPositionControl(S,v,i,r,l)),t.add(I)}},_weekTextPositionControl:function(a,i,t,o,e){var l="center",r="middle",s=a[0],c=a[1],d=t==="start";return i==="horizontal"?(s=s+o+(d?1:-1)*e[0]/2,l=d?"right":"left"):(c=c+o+(d?1:-1)*e[1]/2,r=d?"bottom":"top"),{x:s,y:c,textAlign:l,textVerticalAlign:r}},_renderWeekText:function(a,i,t,o){var e=a.getModel("dayLabel");if(!e.get("show"))return;var l=a.coordinateSystem,r=e.get("position"),s=e.get("nameMap"),c=e.get("margin"),d=l.getFirstDayOfWeek();p.isString(s)&&(s=h[s.toUpperCase()]||[]);var g=l.getNextNDay(i.end.time,7-i.lweek).time,v=[l.getCellWidth(),l.getCellHeight()];c=m.parsePercent(c,v[t==="horizontal"?0:1]),r==="start"&&(g=l.getNextNDay(i.start.time,-(7+i.fweek)).time,c=-c);for(var b=0;b<7;b++){var S=l.getNextNDay(g,b),E=l.dataToRect([S.time],!1).center,C=b;C=Math.abs((b+d)%7);var _=new x.Text({z2:30});p.extend(x.setTextStyle(_.style,e,{text:s[C]}),this._weekTextPositionControl(E,t,r,c,v)),o.add(_)}}});k.exports=u},"7oTu":function(k,D,n){var y=n("IMiH"),p=n("QBsz"),x=p.applyTransform,A=y.CMD,m=[[],[],[]],f=Math.sqrt,h=Math.atan2;function u(a,i){var t=a.data,o,e,l,r,s,c,d=A.M,g=A.C,v=A.L,b=A.R,S=A.A,E=A.Q;for(l=0,r=0;l<t.length;){o=t[l++],r=l,e=0;switch(o){case d:e=1;break;case v:e=1;break;case g:e=3;break;case E:e=2;break;case S:var C=i[4],_=i[5],T=f(i[0]*i[0]+i[1]*i[1]),w=f(i[2]*i[2]+i[3]*i[3]),O=h(-i[1]/w,i[0]/T);t[l]*=T,t[l++]+=C,t[l]*=w,t[l++]+=_,t[l++]*=T,t[l++]*=w,t[l++]+=O,t[l++]+=O,l+=2,r=l;break;case b:c[0]=t[l++],c[1]=t[l++],x(c,c,i),t[r++]=c[0],t[r++]=c[1],c[0]+=t[l++],c[1]+=t[l++],x(c,c,i),t[r++]=c[0],t[r++]=c[1]}for(s=0;s<e;s++){var c=m[s];c[0]=t[l++],c[1]=t[l++],x(c,c,i),t[r++]=c[0],t[r++]=c[1]}}}k.exports=u},"7pVf":function(k,D,n){var y=n("ProS"),p=n("ZqQs");n("oE7X"),n("OUJF"),n("3X6L"),n("NH9N"),y.registerPreprocessor(p)},"7ph2":function(k,D){function n(x){return x instanceof Array||(x=[x,x]),x}var y="lineStyle.opacity".split("."),p={seriesType:"lines",reset:function(x,A,m){var f=n(x.get("symbol")),h=n(x.get("symbolSize")),u=x.getData();u.setVisual("fromSymbol",f&&f[0]),u.setVisual("toSymbol",f&&f[1]),u.setVisual("fromSymbolSize",h&&h[0]),u.setVisual("toSymbolSize",h&&h[1]),u.setVisual("opacity",x.get(y));function a(i,t){var o=i.getItemModel(t),e=n(o.getShallow("symbol",!0)),l=n(o.getShallow("symbolSize",!0)),r=o.get(y);e[0]&&i.setItemVisual(t,"fromSymbol",e[0]),e[1]&&i.setItemVisual(t,"toSymbol",e[1]),l[0]&&i.setItemVisual(t,"fromSymbolSize",l[0]),l[1]&&i.setItemVisual(t,"toSymbolSize",l[1]),i.setItemVisual(t,"opacity",r)}return{dataEach:u.hasItemOption?a:null}}};k.exports=p},"7uqq":function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),A=n("bYtY"),m=n("AUH6"),f=n("+TT/"),h=n("OELB"),u=n("W4dC"),a=n("7DRL");function i(l,r){var s=l.get("boundingCoords");if(s!=null){var c=s[0],d=s[1];isNaN(c[0])||isNaN(c[1])||isNaN(d[0])||isNaN(d[1])||this.setBoundingRect(c[0],c[1],d[0]-c[0],d[1]-c[1])}var g=this.getBoundingRect(),v,b=l.get("layoutCenter"),S=l.get("layoutSize"),E=r.getWidth(),C=r.getHeight(),_=g.width/g.height*this.aspectScale,T=!1;b&&S&&(b=[h.parsePercent(b[0],E),h.parsePercent(b[1],C)],S=h.parsePercent(S,Math.min(E,C)),!isNaN(b[0])&&!isNaN(b[1])&&!isNaN(S)&&(T=!0));var w;if(T){var w={};_>1?(w.width=S,w.height=S/_):(w.height=S,w.width=S*_),w.y=b[1]-w.height/2,w.x=b[0]-w.width/2}else v=l.getBoxLayoutParams(),v.aspect=_,w=f.getLayoutRect(v,{width:E,height:C});this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(l.get("center")),this.setZoom(l.get("zoom"))}function t(l,r){A.each(r.get("geoCoord"),function(s,c){l.addGeoCoord(c,s)})}var o={dimensions:m.prototype.dimensions,create:function(l,r){var s=[];l.eachComponent("geo",function(d,g){var v=d.get("map"),b=d.get("aspectScale"),S=!0,E=a.retrieveMap(v);E&&E[0]&&E[0].type==="svg"?(b==null&&(b=1),S=!1):b==null&&(b=.75);var C=new m(v+g,v,d.get("nameMap"),S);C.aspectScale=b,C.zoomLimit=d.get("scaleLimit"),s.push(C),t(C,d),d.coordinateSystem=C,C.model=d,C.resize=i,C.resize(d,r)}),l.eachSeries(function(d){var g=d.get("coordinateSystem");if(g==="geo"){var v=d.get("geoIndex")||0;d.coordinateSystem=s[v]}});var c={};return l.eachSeriesByType("map",function(d){if(!d.getHostGeoModel()){var g=d.getMapType();c[g]=c[g]||[],c[g].push(d)}}),A.each(c,function(d,g){var v=A.map(d,function(S){return S.get("nameMap")}),b=new m(g,g,A.mergeAll(v));b.zoomLimit=A.retrieve.apply(null,A.map(d,function(S){return S.get("scaleLimit")})),s.push(b),b.resize=i,b.aspectScale=d[0].get("aspectScale"),b.resize(d[0],r),A.each(d,function(S){S.coordinateSystem=b,t(b,S)})}),s},getFilledRegions:function(l,r,s){for(var c=(l||[]).slice(),d=A.createHashMap(),g=0;g<c.length;g++)d.set(c[g].name,c[g]);var v=u.load(r,s);return A.each(v.regions,function(b){var S=b.name;!d.get(S)&&c.push({name:S})}),c}};x.registerCoordinateSystem("geo",o);var e=o;k.exports=e},"7yuC":function(k,D,n){var y=n("QBsz"),p=y.scaleAndAdd;function x(A,m,f){for(var h=f.rect,u=h.width,a=h.height,i=[h.x+u/2,h.y+a/2],t=f.gravity==null?.1:f.gravity,o=0;o<A.length;o++){var e=A[o];e.p||(e.p=y.create(u*(Math.random()-.5)+i[0],a*(Math.random()-.5)+i[1])),e.pp=y.clone(e.p),e.edges=null}var l=f.friction==null?.6:f.friction,r=l;return{warmUp:function(){r=l*.8},setFixed:function(s){A[s].fixed=!0},setUnfixed:function(s){A[s].fixed=!1},step:function(s){for(var c=[],d=A.length,g=0;g<m.length;g++){var v=m[g];if(v.ignoreForceLayout)continue;var b=v.n1,S=v.n2;y.sub(c,S.p,b.p);var E=y.len(c)-v.d,C=S.w/(b.w+S.w);isNaN(C)&&(C=0),y.normalize(c,c),!b.fixed&&p(b.p,b.p,c,C*E*r),!S.fixed&&p(S.p,S.p,c,-(1-C)*E*r)}for(var g=0;g<d;g++){var _=A[g];_.fixed||(y.sub(c,i,_.p),p(_.p,_.p,c,t*r))}for(var g=0;g<d;g++)for(var b=A[g],T=g+1;T<d;T++){var S=A[T];y.sub(c,S.p,b.p);var E=y.len(c);E===0&&(y.set(c,Math.random()-.5,Math.random()-.5),E=1);var w=(b.rep+S.rep)/E/E;!b.fixed&&p(b.pp,b.pp,c,w),!S.fixed&&p(S.pp,S.pp,c,-w)}for(var O=[],g=0;g<d;g++){var _=A[g];_.fixed||(y.sub(O,_.p,_.pp),p(_.p,_.p,O,r),y.copy(_.pp,_.p))}r=r*.992,s&&s(A,m,r<.01)}}}D.forceLayout=x},"8+yF":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={256:960,257:992,258:451,259:483,260:417,261:433,262:454,263:486,264:710,265:742,266:709,267:741,268:456,269:488,270:463,271:495,272:464,273:496,274:938,275:954,278:972,279:1004,280:458,281:490,282:460,283:492,284:728,285:760,286:683,287:699,288:725,289:757,290:939,291:955,292:678,293:694,294:673,295:689,296:933,297:949,298:975,299:1007,302:967,303:999,304:681,305:697,308:684,309:700,310:979,311:1011,312:930,313:453,314:485,315:934,316:950,317:421,318:437,321:419,322:435,323:465,324:497,325:977,326:1009,327:466,328:498,330:957,331:959,332:978,333:1010,336:469,337:501,338:5052,339:5053,340:448,341:480,342:931,343:947,344:472,345:504,346:422,347:438,348:734,349:766,350:426,351:442,352:425,353:441,354:478,355:510,356:427,357:443,358:940,359:956,360:989,361:1021,362:990,363:1022,364:733,365:765,366:473,367:505,368:475,369:507,370:985,371:1017,376:5054,377:428,378:444,379:431,380:447,381:430,382:446,402:2294,466:16777681,711:439,728:418,729:511,731:434,733:445,901:1966,902:1953,904:1954,905:1955,906:1956,908:1959,910:1960,911:1963,912:1974,913:1985,914:1986,915:1987,916:1988,917:1989,918:1990,919:1991,920:1992,921:1993,922:1994,923:1995,924:1996,925:1997,926:1998,927:1999,928:2e3,929:2001,931:2002,932:2004,933:2005,934:2006,935:2007,936:2008,937:2009,938:1957,939:1961,940:1969,941:1970,942:1971,943:1972,944:1978,945:2017,946:2018,947:2019,948:2020,949:2021,950:2022,951:2023,952:2024,953:2025,954:2026,955:2027,956:2028,957:2029,958:2030,959:2031,960:2032,961:2033,962:2035,963:2034,964:2036,965:2037,966:2038,967:2039,968:2040,969:2041,970:1973,971:1977,972:1975,973:1976,974:1979,1025:1715,1026:1713,1027:1714,1028:1716,1029:1717,1030:1718,1031:1719,1032:1720,1033:1721,1034:1722,1035:1723,1036:1724,1038:1726,1039:1727,1040:1761,1041:1762,1042:1783,1043:1767,1044:1764,1045:1765,1046:1782,1047:1786,1048:1769,1049:1770,1050:1771,1051:1772,1052:1773,1053:1774,1054:1775,1055:1776,1056:1778,1057:1779,1058:1780,1059:1781,1060:1766,1061:1768,1062:1763,1063:1790,1064:1787,1065:1789,1066:1791,1067:1785,1068:1784,1069:1788,1070:1760,1071:1777,1072:1729,1073:1730,1074:1751,1075:1735,1076:1732,1077:1733,1078:1750,1079:1754,1080:1737,1081:1738,1082:1739,1083:1740,1084:1741,1085:1742,1086:1743,1087:1744,1088:1746,1089:1747,1090:1748,1091:1749,1092:1734,1093:1736,1094:1731,1095:1758,1096:1755,1097:1757,1098:1759,1099:1753,1100:1752,1101:1756,1102:1728,1103:1745,1105:1699,1106:1697,1107:1698,1108:1700,1109:1701,1110:1702,1111:1703,1112:1704,1113:1705,1114:1706,1115:1707,1116:1708,1118:1710,1119:1711,1168:1725,1169:1709,1488:3296,1489:3297,1490:3298,1491:3299,1492:3300,1493:3301,1494:3302,1495:3303,1496:3304,1497:3305,1498:3306,1499:3307,1500:3308,1501:3309,1502:3310,1503:3311,1504:3312,1505:3313,1506:3314,1507:3315,1508:3316,1509:3317,1510:3318,1511:3319,1512:3320,1513:3321,1514:3322,1548:1452,1563:1467,1567:1471,1569:1473,1570:1474,1571:1475,1572:1476,1573:1477,1574:1478,1575:1479,1576:1480,1577:1481,1578:1482,1579:1483,1580:1484,1581:1485,1582:1486,1583:1487,1584:1488,1585:1489,1586:1490,1587:1491,1588:1492,1589:1493,1590:1494,1591:1495,1592:1496,1593:1497,1594:1498,1600:1504,1601:1505,1602:1506,1603:1507,1604:1508,1605:1509,1606:1510,1607:1511,1608:1512,1609:1513,1610:1514,1611:1515,1612:1516,1613:1517,1614:1518,1615:1519,1616:1520,1617:1521,1618:1522,3585:3489,3586:3490,3587:3491,3588:3492,3589:3493,3590:3494,3591:3495,3592:3496,3593:3497,3594:3498,3595:3499,3596:3500,3597:3501,3598:3502,3599:3503,3600:3504,3601:3505,3602:3506,3603:3507,3604:3508,3605:3509,3606:3510,3607:3511,3608:3512,3609:3513,3610:3514,3611:3515,3612:3516,3613:3517,3614:3518,3615:3519,3616:3520,3617:3521,3618:3522,3619:3523,3620:3524,3621:3525,3622:3526,3623:3527,3624:3528,3625:3529,3626:3530,3627:3531,3628:3532,3629:3533,3630:3534,3631:3535,3632:3536,3633:3537,3634:3538,3635:3539,3636:3540,3637:3541,3638:3542,3639:3543,3640:3544,3641:3545,3642:3546,3647:3551,3648:3552,3649:3553,3650:3554,3651:3555,3652:3556,3653:3557,3654:3558,3655:3559,3656:3560,3657:3561,3658:3562,3659:3563,3660:3564,3661:3565,3664:3568,3665:3569,3666:3570,3667:3571,3668:3572,3669:3573,3670:3574,3671:3575,3672:3576,3673:3577,8194:2722,8195:2721,8196:2723,8197:2724,8199:2725,8200:2726,8201:2727,8202:2728,8210:2747,8211:2730,8212:2729,8213:1967,8215:3295,8216:2768,8217:2769,8218:2813,8220:2770,8221:2771,8222:2814,8224:2801,8225:2802,8226:2790,8229:2735,8230:2734,8240:2773,8242:2774,8243:2775,8248:2812,8254:1150,8361:3839,8364:8364,8453:2744,8470:1712,8471:2811,8478:2772,8482:2761,8531:2736,8532:2737,8533:2738,8534:2739,8535:2740,8536:2741,8537:2742,8538:2743,8539:2755,8540:2756,8541:2757,8542:2758,8592:2299,8593:2300,8594:2301,8595:2302,8658:2254,8660:2253,8706:2287,8711:2245,8728:3018,8730:2262,8733:2241,8734:2242,8743:2270,8744:2271,8745:2268,8746:2269,8747:2239,8756:2240,8764:2248,8771:2249,8773:16785992,8800:2237,8801:2255,8804:2236,8805:2238,8834:2266,8835:2267,8866:3068,8867:3036,8868:3010,8869:3022,8968:3027,8970:3012,8981:2810,8992:2212,8993:2213,9109:3020,9115:2219,9117:2220,9118:2221,9120:2222,9121:2215,9123:2216,9124:2217,9126:2218,9128:2223,9132:2224,9143:2209,9146:2543,9147:2544,9148:2546,9149:2547,9225:2530,9226:2533,9227:2537,9228:2531,9229:2532,9251:2732,9252:2536,9472:2211,9474:2214,9484:2210,9488:2539,9492:2541,9496:2538,9500:2548,9508:2549,9516:2551,9524:2550,9532:2542,9618:2529,9642:2791,9643:2785,9644:2779,9645:2786,9646:2783,9647:2767,9650:2792,9651:2787,9654:2781,9655:2765,9660:2793,9661:2788,9664:2780,9665:2764,9670:2528,9675:2766,9679:2782,9702:2784,9734:2789,9742:2809,9747:2762,9756:2794,9758:2795,9792:2808,9794:2807,9827:2796,9829:2798,9830:2797,9837:2806,9839:2805,10003:2803,10007:2804,10013:2777,10016:2800,10216:2748,10217:2750,12289:1188,12290:1185,12300:1186,12301:1187,12443:1246,12444:1247,12449:1191,12450:1201,12451:1192,12452:1202,12453:1193,12454:1203,12455:1194,12456:1204,12457:1195,12458:1205,12459:1206,12461:1207,12463:1208,12465:1209,12467:1210,12469:1211,12471:1212,12473:1213,12475:1214,12477:1215,12479:1216,12481:1217,12483:1199,12484:1218,12486:1219,12488:1220,12490:1221,12491:1222,12492:1223,12493:1224,12494:1225,12495:1226,12498:1227,12501:1228,12504:1229,12507:1230,12510:1231,12511:1232,12512:1233,12513:1234,12514:1235,12515:1196,12516:1236,12517:1197,12518:1237,12519:1198,12520:1238,12521:1239,12522:1240,12523:1241,12524:1242,12525:1243,12527:1244,12530:1190,12531:1245,12539:1189,12540:1200},p={lookup:function(A){if(A>=32&&A<=255)return A;var m=y[A];return m!==void 0?m:16777216|A}};D.default=p},"8CQX":function(k,D,n){"use strict";function y(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(s){return typeof s}:y=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},y(l)}Object.defineProperty(D,"__esModule",{value:!0}),D.getKeycode=t,D.getKey=o,D.getKeysym=e;var p=i(n("mHUz")),x=i(n("8+yF")),A=i(n("6Qwc")),m=i(n("gIYZ")),f=i(n("mTgk")),h=a(n("GdRQ"));function u(){if(typeof WeakMap!="function")return null;var l=new WeakMap;return u=function(){return l},l}function a(l){if(l&&l.__esModule)return l;if(l===null||y(l)!=="object"&&typeof l!="function")return{default:l};var r=u();if(r&&r.has(l))return r.get(l);var s={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in l)if(Object.prototype.hasOwnProperty.call(l,d)){var g=c?Object.getOwnPropertyDescriptor(l,d):null;g&&(g.get||g.set)?Object.defineProperty(s,d,g):s[d]=l[d]}return s.default=l,r&&r.set(l,s),s}function i(l){return l&&l.__esModule?l:{default:l}}function t(l){if(l.code){switch(l.code){case"OSLeft":return"MetaLeft";case"OSRight":return"MetaRight"}return l.code}if(l.type!=="keypress"&&l.keyCode in A.default){var r=A.default[l.keyCode];if(h.isMac()&&r==="ContextMenu"&&(r="MetaRight"),l.location===2)switch(r){case"ShiftLeft":return"ShiftRight";case"ControlLeft":return"ControlRight";case"AltLeft":return"AltRight"}if(l.location===3)switch(r){case"Delete":return"NumpadDecimal";case"Insert":return"Numpad0";case"End":return"Numpad1";case"ArrowDown":return"Numpad2";case"PageDown":return"Numpad3";case"ArrowLeft":return"Numpad4";case"ArrowRight":return"Numpad6";case"Home":return"Numpad7";case"ArrowUp":return"Numpad8";case"PageUp":return"Numpad9";case"Enter":return"NumpadEnter"}return r}return"Unidentified"}function o(l){if(l.key!==void 0){switch(l.key){case"Spacebar":return" ";case"Esc":return"Escape";case"Scroll":return"ScrollLock";case"Win":return"Meta";case"Apps":return"ContextMenu";case"Up":return"ArrowUp";case"Left":return"ArrowLeft";case"Right":return"ArrowRight";case"Down":return"ArrowDown";case"Del":return"Delete";case"Divide":return"/";case"Multiply":return"*";case"Subtract":return"-";case"Add":return"+";case"Decimal":return l.char}switch(l.key){case"OS":return"Meta";case"LaunchMyComputer":return"LaunchApplication1";case"LaunchCalculator":return"LaunchApplication2"}switch(l.key){case"UIKeyInputUpArrow":return"ArrowUp";case"UIKeyInputDownArrow":return"ArrowDown";case"UIKeyInputLeftArrow":return"ArrowLeft";case"UIKeyInputRightArrow":return"ArrowRight";case"UIKeyInputEscape":return"Escape"}if(l.key==="\0"&&l.code==="NumpadDecimal")return"Delete";if(!h.isIE()&&!h.isEdge())return l.key;if(l.key.length!==1&&l.key!=="Unidentified")return l.key}var r=t(l);return r in m.default?m.default[r]:l.charCode?String.fromCharCode(l.charCode):"Unidentified"}function e(l){var r=o(l);if(r==="Unidentified")return null;if(r in f.default){var s=l.location;if(r==="Meta"&&s===0&&(s=2),r==="Clear"&&s===3){var c=t(l);c==="NumLock"&&(s=0)}if((s===void 0||s>3)&&(s=0),r==="Meta"){var d=t(l);if(d==="AltLeft")return p.default.XK_Meta_L;if(d==="AltRight")return p.default.XK_Meta_R}if(r==="Clear"){var g=t(l);if(g==="NumLock")return p.default.XK_Num_Lock}return f.default[r][s]}if(r.length!==1)return null;var v=r.charCodeAt();return v?x.default.lookup(v):null}},"8EBN":function(k,D,n){(function(y){y(n("VrN/"))})(function(y){"use strict";y.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var p=0;p<y.modeInfo.length;p++){var x=y.modeInfo[p];x.mimes&&(x.mime=x.mimes[0])}y.findModeByMIME=function(A){A=A.toLowerCase();for(var m=0;m<y.modeInfo.length;m++){var f=y.modeInfo[m];if(f.mime==A)return f;if(f.mimes){for(var h=0;h<f.mimes.length;h++)if(f.mimes[h]==A)return f}}if(/\+xml$/.test(A))return y.findModeByMIME("application/xml");if(/\+json$/.test(A))return y.findModeByMIME("application/json")},y.findModeByExtension=function(A){A=A.toLowerCase();for(var m=0;m<y.modeInfo.length;m++){var f=y.modeInfo[m];if(f.ext){for(var h=0;h<f.ext.length;h++)if(f.ext[h]==A)return f}}},y.findModeByFileName=function(A){for(var m=0;m<y.modeInfo.length;m++){var f=y.modeInfo[m];if(f.file&&f.file.test(A))return f}var h=A.lastIndexOf("."),u=h>-1&&A.substring(h+1,A.length);if(u)return y.findModeByExtension(u)},y.findModeByName=function(A){A=A.toLowerCase();for(var m=0;m<y.modeInfo.length;m++){var f=y.modeInfo[m];if(f.name.toLowerCase()==A)return f;if(f.alias){for(var h=0;h<f.alias.length;h++)if(f.alias[h].toLowerCase()==A)return f}}}})},"8IMR":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};D.default=y},"8K/p":function(k,D,n){"use strict";function y(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(e){return typeof e}:y=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(t)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var p=f(n("Lo0S")),x=A(n("ItS6"));function A(t){return t&&t.__esModule?t:{default:t}}function m(){if(typeof WeakMap!="function")return null;var t=new WeakMap;return m=function(){return t},t}function f(t){if(t&&t.__esModule)return t;if(t===null||y(t)!=="object"&&typeof t!="function")return{default:t};var o=m();if(o&&o.has(t))return o.get(t);var e={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var s=l?Object.getOwnPropertyDescriptor(t,r):null;s&&(s.get||s.set)?Object.defineProperty(e,r,s):e[r]=t[r]}return e.default=t,o&&o.set(t,e),e}function h(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function u(t,o){for(var e=0;e<o.length;e++){var l=o[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}function a(t,o,e){return o&&u(t.prototype,o),e&&u(t,e),t}var i=function(){function t(){h(this,t),this._ctl=null,this._filter=null,this._numColors=0,this._palette=new Uint8Array(1024),this._len=0,this._zlibs=[];for(var o=0;o<4;o++)this._zlibs[o]=new x.default}return a(t,[{key:"decodeRect",value:function(e,l,r,s,c,d,g){if(this._ctl===null){if(c.rQwait("TIGHT compression-control",1))return!1;this._ctl=c.rQshift8();for(var v=0;v<4;v++)this._ctl>>v&1&&(this._zlibs[v].reset(),p.Info("Reset zlib stream "+v));this._ctl=this._ctl>>4}var b;if(this._ctl===8)b=this._fillRect(e,l,r,s,c,d,g);else if(this._ctl===9)b=this._jpegRect(e,l,r,s,c,d,g);else if(this._ctl===10)b=this._pngRect(e,l,r,s,c,d,g);else if((this._ctl&128)==0)b=this._basicRect(this._ctl,e,l,r,s,c,d,g);else throw new Error("Illegal tight compression received (ctl: "+this._ctl+")");return b&&(this._ctl=null),b}},{key:"_fillRect",value:function(e,l,r,s,c,d,g){if(c.rQwait("TIGHT",3))return!1;var v=c.rQi,b=c.rQ;return d.fillRect(e,l,r,s,[b[v+2],b[v+1],b[v]],!1),c.rQskipBytes(3),!0}},{key:"_jpegRect",value:function(e,l,r,s,c,d,g){var v=this._readData(c);return v===null?!1:(d.imageRect(e,l,r,s,"image/jpeg",v),!0)}},{key:"_pngRect",value:function(e,l,r,s,c,d,g){throw new Error("PNG received in standard Tight rect")}},{key:"_basicRect",value:function(e,l,r,s,c,d,g,v){if(this._filter===null)if(e&4){if(d.rQwait("TIGHT",1))return!1;this._filter=d.rQshift8()}else this._filter=0;var b=e&3,S;switch(this._filter){case 0:S=this._copyFilter(b,l,r,s,c,d,g,v);break;case 1:S=this._paletteFilter(b,l,r,s,c,d,g,v);break;case 2:S=this._gradientFilter(b,l,r,s,c,d,g,v);break;default:throw new Error("Illegal tight filter received (ctl: "+this._filter+")")}return S&&(this._filter=null),S}},{key:"_copyFilter",value:function(e,l,r,s,c,d,g,v){var b=s*c*3,S;if(b<12){if(d.rQwait("TIGHT",b))return!1;S=d.rQshiftBytes(b)}else{if(S=this._readData(d),S===null)return!1;this._zlibs[e].setInput(S),S=this._zlibs[e].inflate(b),this._zlibs[e].setInput(null)}return g.blitRgbImage(l,r,s,c,S,0,!1),!0}},{key:"_paletteFilter",value:function(e,l,r,s,c,d,g,v){if(this._numColors===0){if(d.rQwait("TIGHT palette",1))return!1;var b=d.rQpeek8()+1,S=b*3;if(d.rQwait("TIGHT palette",1+S))return!1;this._numColors=b,d.rQskipBytes(1),d.rQshiftTo(this._palette,S)}var E=this._numColors<=2?1:8,C=Math.floor((s*E+7)/8),_=C*c,T;if(_<12){if(d.rQwait("TIGHT",_))return!1;T=d.rQshiftBytes(_)}else{if(T=this._readData(d),T===null)return!1;this._zlibs[e].setInput(T),T=this._zlibs[e].inflate(_),this._zlibs[e].setInput(null)}return this._numColors==2?this._monoRect(l,r,s,c,T,this._palette,g):this._paletteRect(l,r,s,c,T,this._palette,g),this._numColors=0,!0}},{key:"_monoRect",value:function(e,l,r,s,c,d,g){for(var v=this._getScratchBuffer(r*s*4),b=Math.floor((r+7)/8),S=Math.floor(r/8),E=0;E<s;E++){var C=void 0,_=void 0,T=void 0;for(T=0;T<S;T++)for(var w=7;w>=0;w--)C=(E*r+T*8+7-w)*4,_=(c[E*b+T]>>w&1)*3,v[C]=d[_],v[C+1]=d[_+1],v[C+2]=d[_+2],v[C+3]=255;for(var O=7;O>=8-r%8;O--)C=(E*r+T*8+7-O)*4,_=(c[E*b+T]>>O&1)*3,v[C]=d[_],v[C+1]=d[_+1],v[C+2]=d[_+2],v[C+3]=255}g.blitRgbxImage(e,l,r,s,v,0,!1)}},{key:"_paletteRect",value:function(e,l,r,s,c,d,g){for(var v=this._getScratchBuffer(r*s*4),b=r*s*4,S=0,E=0;S<b;S+=4,E++){var C=c[E]*3;v[S]=d[C],v[S+1]=d[C+1],v[S+2]=d[C+2],v[S+3]=255}g.blitRgbxImage(e,l,r,s,v,0,!1)}},{key:"_gradientFilter",value:function(e,l,r,s,c,d,g,v){throw new Error("Gradient filter not implemented")}},{key:"_readData",value:function(e){if(this._len===0){if(e.rQwait("TIGHT",3))return null;var l;l=e.rQshift8(),this._len=l&127,l&128&&(l=e.rQshift8(),this._len|=(l&127)<<7,l&128&&(l=e.rQshift8(),this._len|=l<<14))}if(e.rQwait("TIGHT",this._len))return null;var r=e.rQshiftBytes(this._len);return this._len=0,r}},{key:"_getScratchBuffer",value:function(e){return(!this._scratchBuffer||this._scratchBuffer.length<e)&&(this._scratchBuffer=new Uint8Array(e)),this._scratchBuffer}}]),t}();D.default=i},"8SMY":function(k,D,n){var y=n("n4Lv"),p=y.prepareDataCoordInfo,x=y.getStackedOnPoint;function A(f,h){var u=[];return h.diff(f).add(function(a){u.push({cmd:"+",idx:a})}).update(function(a,i){u.push({cmd:"=",idx:i,idx1:a})}).remove(function(a){u.push({cmd:"-",idx:a})}).execute(),u}function m(f,h,u,a,i,t,o,e){for(var l=A(f,h),r=[],s=[],c=[],d=[],g=[],v=[],b=[],S=p(i,h,o),E=p(t,f,e),C=0;C<l.length;C++){var _=l[C],T=!0;switch(_.cmd){case"=":var w=f.getItemLayout(_.idx),O=h.getItemLayout(_.idx1);(isNaN(w[0])||isNaN(w[1]))&&(w=O.slice()),r.push(w),s.push(O),c.push(u[_.idx]),d.push(a[_.idx1]),b.push(h.getRawIndex(_.idx1));break;case"+":var I=_.idx;r.push(i.dataToPoint([h.get(S.dataDimsForPoint[0],I),h.get(S.dataDimsForPoint[1],I)])),s.push(h.getItemLayout(I).slice()),c.push(x(S,i,h,I)),d.push(a[I]),b.push(h.getRawIndex(I));break;case"-":var I=_.idx,R=f.getRawIndex(I);R!==I?(r.push(f.getItemLayout(I)),s.push(t.dataToPoint([f.get(E.dataDimsForPoint[0],I),f.get(E.dataDimsForPoint[1],I)])),c.push(u[I]),d.push(x(E,t,f,I)),b.push(R)):T=!1}T&&(g.push(_),v.push(v.length))}v.sort(function(j,W){return b[j]-b[W]});for(var M=[],F=[],P=[],X=[],B=[],C=0;C<v.length;C++){var I=v[C];M[C]=r[I],F[C]=s[I],P[C]=c[I],X[C]=d[I],B[C]=g[I]}return{current:M,next:F,stackedOnCurrent:P,stackedOnNext:X,status:B}}k.exports=m},"8Skl":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="DownOutlined";var h=D.a=p.forwardRef(f)},"8Th4":function(k,D,n){var y=n("3LNs"),p=n("/y7N"),x=n("7bkD"),A=n("Znkb"),m=["x","y"],f=["width","height"],h=y.extend({makeElOption:function(o,e,l,r,s){var c=l.axis,d=c.coordinateSystem,g=i(d,1-a(c)),v=d.dataToPoint(e)[0],b=r.get("type");if(b&&b!=="none"){var S=p.buildElStyle(r),E=u[b](c,v,g);E.style=S,o.graphicKey=E.type,o.pointer=E}var C=x.layout(l);p.buildCartesianSingleLabelElOption(e,o,C,l,r,s)},getHandleTransform:function(o,e,l){var r=x.layout(e,{labelInside:!1});return r.labelMargin=l.get("handle.margin"),{position:p.getTransformedPosition(e.axis,o,r),rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(o,e,l,r){var s=l.axis,c=s.coordinateSystem,d=a(s),g=i(c,d),v=o.position;v[d]+=e[d],v[d]=Math.min(g[1],v[d]),v[d]=Math.max(g[0],v[d]);var b=i(c,1-d),S=(b[1]+b[0])/2,E=[S,S];return E[d]=v[d],{position:v,rotation:o.rotation,cursorPoint:E,tooltipOption:{verticalAlign:"middle"}}}}),u={line:function(o,e,l){var r=p.makeLineShape([e,l[0]],[e,l[1]],a(o));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(o,e,l){var r=o.getBandWidth(),s=l[1]-l[0];return{type:"Rect",shape:p.makeRectShape([e-r/2,l[0]],[r,s],a(o))}}};function a(o){return o.isHorizontal()?0:1}function i(o,e){var l=o.getRect();return[l[m[e]],l[m[e]]+l[f[e]]]}A.registerAxisPointerClass("SingleAxisPointer",h);var t=h;k.exports=t},"8Uz6":function(k,D,n){var y=n("hNWo"),p=n("+TT/"),x=p.mergeLayoutParam,A=p.getLayoutParams,m=y.extend({type:"legend.scroll",setScrollDataIndex:function(u){this.option.scrollDataIndex=u},defaultOption:{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(u,a,i,t){var o=A(u);m.superCall(this,"init",u,a,i,t),f(this,u,o)},mergeOption:function(u,a){m.superCall(this,"mergeOption",u,a),f(this,this.option,u)}});function f(u,a,i){var t=u.getOrient(),o=[1,1];o[t.index]=0,x(a,i,{type:"box",ignoreSize:o})}var h=m;k.exports=h},"8X+K":function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=n("4mN7"),m=A.fromPoints,f=n("9wZj"),h=n("FBjb"),u=n("8SMY"),a=n("IwbS"),i=n("4NO4"),t=n("1NG9"),o=t.Polyline,e=t.Polygon,l=n("6Ic6"),r=n("n4Lv"),s=r.prepareDataCoordInfo,c=r.getStackedOnPoint,d=n("sK/D"),g=d.createGridClipPath,v=d.createPolarClipPath;function b(M,F){if(M.length!==F.length)return;for(var P=0;P<M.length;P++){var X=M[P],B=F[P];if(X[0]!==B[0]||X[1]!==B[1])return}return!0}function S(M,F){var P=[],X=[],B=[],j=[];return m(M,P,X),m(F,B,j),Math.max(Math.abs(P[0]-B[0]),Math.abs(P[1]-B[1]),Math.abs(X[0]-j[0]),Math.abs(X[1]-j[1]))}function E(M){return typeof M=="number"?M:M?.5:0}function C(M,F,P){if(!P.valueDim)return[];for(var X=[],B=0,j=F.count();B<j;B++)X.push(c(P,M,F,B));return X}function _(M,F,P){for(var X=F.getBaseAxis(),B=X.dim==="x"||X.dim==="radius"?0:1,j=[],W=0;W<M.length-1;W++){var z=M[W+1],V=M[W];j.push(V);var Q=[];switch(P){case"end":Q[B]=z[B],Q[1-B]=V[1-B],j.push(Q);break;case"middle":var G=(V[B]+z[B])/2,ee=[];Q[B]=ee[B]=G,Q[1-B]=V[1-B],ee[1-B]=z[1-B],j.push(Q),j.push(ee);break;default:Q[B]=V[B],Q[1-B]=z[1-B],j.push(Q)}}return M[W]&&j.push(M[W]),j}function T(M,F){var P=M.getVisual("visualMeta");if(!P||!P.length||!M.count())return;if(F.type!=="cartesian2d")return;for(var X,B,j=P.length-1;j>=0;j--){var W=P[j].dimension,z=M.dimensions[W],V=M.getDimensionInfo(z);if(X=V&&V.coordDim,X==="x"||X==="y"){B=P[j];break}}if(!B)return;var Q=F.getAxis(X),G=x.map(B.stops,function(Qe){return{coord:Q.toGlobalCoord(Q.dataToCoord(Qe.value)),color:Qe.color}}),ee=G.length,ce=B.outerColors.slice();ee&&G[0].coord>G[ee-1].coord&&(G.reverse(),ce.reverse());var be=10,le=G[0].coord-be,Ie=G[ee-1].coord+be,ke=Ie-le;if(ke<.001)return"transparent";x.each(G,function(Qe){Qe.offset=(Qe.coord-le)/ke}),G.push({offset:ee?G[ee-1].offset:.5,color:ce[1]||"transparent"}),G.unshift({offset:ee?G[0].offset:.5,color:ce[0]||"transparent"});var Re=new a.LinearGradient(0,0,0,0,G,!0);return Re[X]=le,Re[X+"2"]=Ie,Re}function w(M,F,P){var X=M.get("showAllSymbol"),B=X==="auto";if(X&&!B)return;var j=P.getAxesByScale("ordinal")[0];if(!j)return;if(B&&O(j,F))return;var W=F.mapDimension(j.dim),z={};return x.each(j.getViewLabels(),function(V){z[V.tickValue]=1}),function(V){return!z.hasOwnProperty(F.get(W,V))}}function O(M,F){var P=M.getExtent(),X=Math.abs(P[1]-P[0])/M.scale.count();isNaN(X)&&(X=0);for(var B=F.count(),j=Math.max(1,Math.round(B/5)),W=0;W<B;W+=j)if(h.getSymbolSize(F,W)[M.isHorizontal()?1:0]*1.5>X)return!1;return!0}function I(M,F,P){if(M.type==="cartesian2d"){var X=M.getBaseAxis().isHorizontal(),B=g(M,F,P);if(!P.get("clip",!0)){var j=B.shape,W=Math.max(j.width,j.height);X?(j.y-=W,j.height+=W*2):(j.x-=W,j.width+=W*2)}return B}else return v(M,F,P)}var R=l.extend({type:"line",init:function(){var M=new a.Group,F=new f;this.group.add(F.group),this._symbolDraw=F,this._lineGroup=M},render:function(M,F,P){var X=M.coordinateSystem,B=this.group,j=M.getData(),W=M.getModel("lineStyle"),z=M.getModel("areaStyle"),V=j.mapArray(j.getItemLayout),Q=X.type==="polar",G=this._coordSys,ee=this._symbolDraw,ce=this._polyline,be=this._polygon,le=this._lineGroup,Ie=M.get("animation"),ke=!z.isEmpty(),Re=z.get("origin"),Qe=s(X,j,Re),We=C(X,j,Qe),ot=M.get("showSymbol"),Oe=ot&&!Q&&w(M,j,X),oe=this._data;oe&&oe.eachItemGraphicEl(function(we,Ne){we.__temp&&(B.remove(we),oe.setItemGraphicEl(Ne,null))}),ot||ee.remove(),B.add(le);var st=!Q&&M.get("step"),he;X&&X.getArea&&M.get("clip",!0)&&(he=X.getArea(),he.width!=null?(he.x-=.1,he.y-=.1,he.width+=.2,he.height+=.2):he.r0&&(he.r0-=.5,he.r1+=.5)),this._clipShapeForSymbol=he,ce&&G.type===X.type&&st===this._step?(ke&&!be?be=this._newPolygon(V,We,X,Ie):be&&!ke&&(le.remove(be),be=this._polygon=null),le.setClipPath(I(X,!1,M)),ot&&ee.updateData(j,{isIgnore:Oe,clipShape:he}),j.eachItemGraphicEl(function(we){we.stopAnimation(!0)}),(!b(this._stackedOnPoints,We)||!b(this._points,V))&&(Ie?this._updateAnimation(j,We,X,P,st,Re):(st&&(V=_(V,X,st),We=_(We,X,st)),ce.setShape({points:V}),be&&be.setShape({points:V,stackedOnPoints:We})))):(ot&&ee.updateData(j,{isIgnore:Oe,clipShape:he}),st&&(V=_(V,X,st),We=_(We,X,st)),ce=this._newPolyline(V,X,Ie),ke&&(be=this._newPolygon(V,We,X,Ie)),le.setClipPath(I(X,!0,M)));var J=T(j,X)||j.getVisual("color");ce.useStyle(x.defaults(W.getLineStyle(),{fill:"none",stroke:J,lineJoin:"bevel"}));var Y=M.get("smooth");if(Y=E(M.get("smooth")),ce.setShape({smooth:Y,smoothMonotone:M.get("smoothMonotone"),connectNulls:M.get("connectNulls")}),be){var $=j.getCalculationInfo("stackedOnSeries"),fe=0;be.useStyle(x.defaults(z.getAreaStyle(),{fill:J,opacity:.7,lineJoin:"bevel"})),$&&(fe=E($.get("smooth"))),be.setShape({smooth:Y,stackedOnSmooth:fe,smoothMonotone:M.get("smoothMonotone"),connectNulls:M.get("connectNulls")})}this._data=j,this._coordSys=X,this._stackedOnPoints=We,this._points=V,this._step=st,this._valueOrigin=Re},dispose:function(){},highlight:function(M,F,P,X){var B=M.getData(),j=i.queryDataIndex(B,X);if(!(j instanceof Array)&&j!=null&&j>=0){var W=B.getItemGraphicEl(j);if(!W){var z=B.getItemLayout(j);if(!z)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(z[0],z[1]))return;W=new h(B,j),W.position=z,W.setZ(M.get("zlevel"),M.get("z")),W.ignore=isNaN(z[0])||isNaN(z[1]),W.__temp=!0,B.setItemGraphicEl(j,W),W.stopSymbolAnimation(!0),this.group.add(W)}W.highlight()}else l.prototype.highlight.call(this,M,F,P,X)},downplay:function(M,F,P,X){var B=M.getData(),j=i.queryDataIndex(B,X);if(j!=null&&j>=0){var W=B.getItemGraphicEl(j);W&&(W.__temp?(B.setItemGraphicEl(j,null),this.group.remove(W)):W.downplay())}else l.prototype.downplay.call(this,M,F,P,X)},_newPolyline:function(M){var F=this._polyline;return F&&this._lineGroup.remove(F),F=new o({shape:{points:M},silent:!0,z2:10}),this._lineGroup.add(F),this._polyline=F,F},_newPolygon:function(M,F){var P=this._polygon;return P&&this._lineGroup.remove(P),P=new e({shape:{points:M,stackedOnPoints:F},silent:!0}),this._lineGroup.add(P),this._polygon=P,P},_updateAnimation:function(M,F,P,X,B,j){var W=this._polyline,z=this._polygon,V=M.hostModel,Q=u(this._data,M,this._stackedOnPoints,F,this._coordSys,P,this._valueOrigin,j),G=Q.current,ee=Q.stackedOnCurrent,ce=Q.next,be=Q.stackedOnNext;if(B&&(G=_(Q.current,P,B),ee=_(Q.stackedOnCurrent,P,B),ce=_(Q.next,P,B),be=_(Q.stackedOnNext,P,B)),S(G,ce)>3e3||z&&S(ee,be)>3e3){W.setShape({points:ce}),z&&z.setShape({points:ce,stackedOnPoints:be});return}W.shape.__points=Q.current,W.shape.points=G,a.updateProps(W,{shape:{points:ce}},V),z&&(z.setShape({points:G,stackedOnPoints:ee}),a.updateProps(z,{shape:{points:ce,stackedOnPoints:be}},V));for(var le=[],Ie=Q.status,ke=0;ke<Ie.length;ke++){var Re=Ie[ke].cmd;if(Re==="="){var Qe=M.getItemGraphicEl(Ie[ke].idx1);Qe&&le.push({el:Qe,ptIdx:ke})}}W.animators&&W.animators.length&&W.animators[0].during(function(){for(var We=0;We<le.length;We++){var ot=le[We].el;ot.attr("position",W.shape.__points[le[We].ptIdx])}})},remove:function(M){var F=this.group,P=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),P&&P.eachItemGraphicEl(function(X,B){X.__temp&&(F.remove(X),P.setItemGraphicEl(B,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});k.exports=R},"8XDt":function(k,D,n){n("qH13");var y=n("aX58"),p=y.registerPainter,x=n("6fms");p("vml",x)},"8XRh":function(k,D,n){"use strict";n.d(D,"a",function(){return Gt});var y=n("rePB"),p=n("VTBJ"),x=n("ODXe"),A=n("U8pU"),m=n("TSYQ"),f=n.n(m),h=n("m+aA"),u=n("c+Xe"),a=n("q1tI"),i=n("Ff2n"),t=["children"],o=a.createContext({});function e(zt){var kt=zt.children,Vt=Object(i.a)(zt,t);return a.createElement(o.Provider,{value:Vt},kt)}var l=n("1OyB"),r=n("vuIU"),s=n("Ji7U"),c=n("LK+K"),d=function(zt){Object(s.a)(Vt,zt);var kt=Object(c.a)(Vt);function Vt(){return Object(l.a)(this,Vt),kt.apply(this,arguments)}return Object(r.a)(Vt,[{key:"render",value:function(){return this.props.children}}]),Vt}(a.Component),g=d,v=n("dm2S"),b="none",S="appear",E="enter",C="leave",_="none",T="prepare",w="start",O="active",I="end",R="prepared",M=n("MNnm");function F(zt,kt){var Vt={};return Vt[zt.toLowerCase()]=kt.toLowerCase(),Vt["Webkit".concat(zt)]="webkit".concat(kt),Vt["Moz".concat(zt)]="moz".concat(kt),Vt["ms".concat(zt)]="MS".concat(kt),Vt["O".concat(zt)]="o".concat(kt.toLowerCase()),Vt}function P(zt,kt){var Vt={animationend:F("Animation","AnimationEnd"),transitionend:F("Transition","TransitionEnd")};return zt&&("AnimationEvent"in kt||delete Vt.animationend.animation,"TransitionEvent"in kt||delete Vt.transitionend.transition),Vt}var X=P(Object(M.a)(),typeof window!="undefined"?window:{}),B={};if(Object(M.a)()){var j=document.createElement("div");B=j.style}var W={};function z(zt){if(W[zt])return W[zt];var kt=X[zt];if(kt)for(var Vt=Object.keys(kt),Xe=Vt.length,pe=0;pe<Xe;pe+=1){var te=Vt[pe];if(Object.prototype.hasOwnProperty.call(kt,te)&&te in B)return W[zt]=kt[te],W[zt]}return""}var V=z("animationend"),Q=z("transitionend"),G=!!(V&&Q),ee=V||"animationend",ce=Q||"transitionend";function be(zt,kt){if(!zt)return null;if(Object(A.a)(zt)==="object"){var Vt=kt.replace(/-\w/g,function(Xe){return Xe[1].toUpperCase()});return zt[Vt]}return"".concat(zt,"-").concat(kt)}var le=function(zt){var kt=Object(a.useRef)(),Vt=Object(a.useRef)(zt);Vt.current=zt;var Xe=a.useCallback(function($e){Vt.current($e)},[]);function pe($e){$e&&($e.removeEventListener(ce,Xe),$e.removeEventListener(ee,Xe))}function te($e){kt.current&&kt.current!==$e&&pe(kt.current),$e&&$e!==kt.current&&($e.addEventListener(ce,Xe),$e.addEventListener(ee,Xe),kt.current=$e)}return a.useEffect(function(){return function(){pe(kt.current)}},[]),[te,pe]},Ie=Object(M.a)()?a.useLayoutEffect:a.useEffect,ke=Ie,Re=n("wgJM"),Qe=function(){var zt=a.useRef(null);function kt(){Re.a.cancel(zt.current)}function Vt(Xe){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;kt();var te=Object(Re.a)(function(){pe<=1?Xe({isCanceled:function(){return te!==zt.current}}):Vt(Xe,pe-1)});zt.current=te}return a.useEffect(function(){return function(){kt()}},[]),[Vt,kt]},We=[T,w,O,I],ot=[T,R],Oe=!1,oe=!0;function st(zt){return zt===O||zt===I}var he=function(zt,kt,Vt){var Xe=Object(v.a)(_),pe=Object(x.a)(Xe,2),te=pe[0],$e=pe[1],He=Qe(),ae=Object(x.a)(He,2),ft=ae[0],Mt=ae[1];function mt(){$e(T,!0)}var or=kt?ot:We;return ke(function(){if(te!==_&&te!==I){var vr=or.indexOf(te),fn=or[vr+1],sr=Vt(te);sr===Oe?$e(fn,!0):fn&&ft(function(Ir){function lr(){if(Ir.isCanceled())return;$e(fn,!0)}sr===!0?lr():Promise.resolve(sr).then(lr)})}},[zt,te]),a.useEffect(function(){return function(){Mt()}},[]),[mt,te]};function J(zt,kt,Vt,Xe){var pe=Xe.motionEnter,te=pe===void 0?!0:pe,$e=Xe.motionAppear,He=$e===void 0?!0:$e,ae=Xe.motionLeave,ft=ae===void 0?!0:ae,Mt=Xe.motionDeadline,mt=Xe.motionLeaveImmediately,or=Xe.onAppearPrepare,vr=Xe.onEnterPrepare,fn=Xe.onLeavePrepare,sr=Xe.onAppearStart,Ir=Xe.onEnterStart,lr=Xe.onLeaveStart,Wt=Xe.onAppearActive,xt=Xe.onEnterActive,rn=Xe.onLeaveActive,Dn=Xe.onAppearEnd,Xn=Xe.onEnterEnd,ri=Xe.onLeaveEnd,Ui=Xe.onVisibleChanged,Bn=Object(v.a)(),Jn=Object(x.a)(Bn,2),Xt=Jn[0],_t=Jn[1],Fe=Object(v.a)(b),Pe=Object(x.a)(Fe,2),Be=Pe[0],nt=Pe[1],vt=Object(v.a)(null),ar=Object(x.a)(vt,2),kr=ar[0],mn=ar[1],Zn=Object(a.useRef)(!1),ni=Object(a.useRef)(null);function ur(){return Vt()}var Nt=Object(a.useRef)(!1);function bt(){nt(b,!0),mn(null,!0)}function gr(gi){var Ii=ur();if(gi&&!gi.deadline&&gi.target!==Ii)return;var ki=Nt.current,Qi;Be===S&&ki?Qi=Dn==null?void 0:Dn(Ii,gi):Be===E&&ki?Qi=Xn==null?void 0:Xn(Ii,gi):Be===C&&ki&&(Qi=ri==null?void 0:ri(Ii,gi)),Be!==b&&ki&&Qi!==!1&&bt()}var Yt=le(gr),Pt=Object(x.a)(Yt,1),rr=Pt[0],Rt=function(Ii){var ki,Qi,it;switch(Ii){case S:return ki={},Object(y.a)(ki,T,or),Object(y.a)(ki,w,sr),Object(y.a)(ki,O,Wt),ki;case E:return Qi={},Object(y.a)(Qi,T,vr),Object(y.a)(Qi,w,Ir),Object(y.a)(Qi,O,xt),Qi;case C:return it={},Object(y.a)(it,T,fn),Object(y.a)(it,w,lr),Object(y.a)(it,O,rn),it;default:return{}}},qt=a.useMemo(function(){return Rt(Be)},[Be]),Yr=he(Be,!zt,function(gi){if(gi===T){var Ii=qt[T];return Ii?Ii(ur()):Oe}if(un in qt){var ki;mn(((ki=qt[un])===null||ki===void 0?void 0:ki.call(qt,ur(),null))||null)}return un===O&&(rr(ur()),Mt>0&&(clearTimeout(ni.current),ni.current=setTimeout(function(){gr({deadline:!0})},Mt))),un===R&&bt(),oe}),Mr=Object(x.a)(Yr,2),Dr=Mr[0],un=Mr[1],wn=st(un);Nt.current=wn,ke(function(){_t(kt);var gi=Zn.current;Zn.current=!0;var Ii;!gi&&kt&&He&&(Ii=S),gi&&kt&&te&&(Ii=E),(gi&&!kt&&ft||!gi&&mt&&!kt&&ft)&&(Ii=C);var ki=Rt(Ii);Ii&&(zt||ki[T])?(nt(Ii),Dr()):nt(b)},[kt]),Object(a.useEffect)(function(){(Be===S&&!He||Be===E&&!te||Be===C&&!ft)&&nt(b)},[He,te,ft]),Object(a.useEffect)(function(){return function(){Zn.current=!1,clearTimeout(ni.current)}},[]);var ai=a.useRef(!1);Object(a.useEffect)(function(){Xt&&(ai.current=!0),Xt!==void 0&&Be===b&&((ai.current||Xt)&&(Ui==null||Ui(Xt)),ai.current=!0)},[Xt,Be]);var ei=kr;return qt[T]&&un===w&&(ei=Object(p.a)({transition:"none"},ei)),[Be,un,ei,Xt!=null?Xt:kt]}function Y(zt){var kt=zt;Object(A.a)(zt)==="object"&&(kt=zt.transitionSupport);function Vt(pe,te){return!!(pe.motionName&&kt&&te!==!1)}var Xe=a.forwardRef(function(pe,te){var $e=pe.visible,He=$e===void 0?!0:$e,ae=pe.removeOnLeave,ft=ae===void 0?!0:ae,Mt=pe.forceRender,mt=pe.children,or=pe.motionName,vr=pe.leavedClassName,fn=pe.eventProps,sr=a.useContext(o),Ir=sr.motion,lr=Vt(pe,Ir),Wt=Object(a.useRef)(),xt=Object(a.useRef)();function rn(){try{return Wt.current instanceof HTMLElement?Wt.current:Object(h.a)(xt.current)}catch(mn){return null}}var Dn=J(lr,He,rn,pe),Xn=Object(x.a)(Dn,4),ri=Xn[0],Ui=Xn[1],Bn=Xn[2],Jn=Xn[3],Xt=a.useRef(Jn);Jn&&(Xt.current=!0);var _t=a.useCallback(function(mn){Wt.current=mn,Object(u.b)(te,mn)},[te]),Fe,Pe=Object(p.a)(Object(p.a)({},fn),{},{visible:He});if(!mt)Fe=null;else if(ri===b)Jn?Fe=mt(Object(p.a)({},Pe),_t):!ft&&Xt.current&&vr?Fe=mt(Object(p.a)(Object(p.a)({},Pe),{},{className:vr}),_t):Mt||!ft&&!vr?Fe=mt(Object(p.a)(Object(p.a)({},Pe),{},{style:{display:"none"}}),_t):Fe=null;else{var Be,nt;Ui===T?nt="prepare":st(Ui)?nt="active":Ui===w&&(nt="start");var vt=be(or,"".concat(ri,"-").concat(nt));Fe=mt(Object(p.a)(Object(p.a)({},Pe),{},{className:f()(be(or,ri),(Be={},Object(y.a)(Be,vt,vt&&nt),Object(y.a)(Be,or,typeof or=="string"),Be)),style:Bn}),_t)}if(a.isValidElement(Fe)&&Object(u.c)(Fe)){var ar=Fe,kr=ar.ref;kr||(Fe=a.cloneElement(Fe,{ref:_t}))}return a.createElement(g,{ref:xt},Fe)});return Xe.displayName="CSSMotion",Xe}var $=Y(G),fe=n("wx14"),we=n("JX7q"),Ne="add",Ee="keep",de="remove",me="removed";function Le(zt){var kt;return zt&&Object(A.a)(zt)==="object"&&"key"in zt?kt=zt:kt={key:zt},Object(p.a)(Object(p.a)({},kt),{},{key:String(kt.key)})}function tt(){var zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return zt.map(Le)}function At(){var zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Vt=[],Xe=0,pe=kt.length,te=tt(zt),$e=tt(kt);te.forEach(function(ft){for(var Mt=!1,mt=Xe;mt<pe;mt+=1){var or=$e[mt];if(or.key===ft.key){Xe<mt&&(Vt=Vt.concat($e.slice(Xe,mt).map(function(vr){return Object(p.a)(Object(p.a)({},vr),{},{status:Ne})})),Xe=mt),Vt.push(Object(p.a)(Object(p.a)({},or),{},{status:Ee})),Xe+=1,Mt=!0;break}}Mt||Vt.push(Object(p.a)(Object(p.a)({},ft),{},{status:de}))}),Xe<pe&&(Vt=Vt.concat($e.slice(Xe).map(function(ft){return Object(p.a)(Object(p.a)({},ft),{},{status:Ne})})));var He={};Vt.forEach(function(ft){var Mt=ft.key;He[Mt]=(He[Mt]||0)+1});var ae=Object.keys(He).filter(function(ft){return He[ft]>1});return ae.forEach(function(ft){Vt=Vt.filter(function(Mt){var mt=Mt.key,or=Mt.status;return mt!==ft||or!==de}),Vt.forEach(function(Mt){Mt.key===ft&&(Mt.status=Ee)})}),Vt}var ht=["component","children","onVisibleChanged","onAllRemoved"],Ke=["status"],Jt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ct(zt){var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,Vt=function(Xe){Object(s.a)(te,Xe);var pe=Object(c.a)(te);function te(){var $e;Object(l.a)(this,te);for(var He=arguments.length,ae=new Array(He),ft=0;ft<He;ft++)ae[ft]=arguments[ft];return $e=pe.call.apply(pe,[this].concat(ae)),Object(y.a)(Object(we.a)($e),"state",{keyEntities:[]}),Object(y.a)(Object(we.a)($e),"removeKey",function(Mt){var mt=$e.state.keyEntities,or=mt.map(function(vr){return vr.key!==Mt?vr:Object(p.a)(Object(p.a)({},vr),{},{status:me})});return $e.setState({keyEntities:or}),or.filter(function(vr){var fn=vr.status;return fn!==me}).length}),$e}return Object(r.a)(te,[{key:"render",value:function(){var He=this,ae=this.state.keyEntities,ft=this.props,Mt=ft.component,mt=ft.children,or=ft.onVisibleChanged,vr=ft.onAllRemoved,fn=Object(i.a)(ft,ht),sr=Mt||a.Fragment,Ir={};return Jt.forEach(function(lr){Ir[lr]=fn[lr],delete fn[lr]}),delete fn.keys,a.createElement(sr,fn,ae.map(function(lr){var Wt=lr.status,xt=Object(i.a)(lr,Ke),rn=Wt===Ne||Wt===Ee;return a.createElement(kt,Object(fe.a)({},Ir,{key:xt.key,visible:rn,eventProps:xt,onVisibleChanged:function(Xn){if(or==null||or(Xn,{key:xt.key}),!Xn){var ri=He.removeKey(xt.key);ri===0&&vr&&vr()}}}),mt)}))}}],[{key:"getDerivedStateFromProps",value:function(He,ae){var ft=He.keys,Mt=ae.keyEntities,mt=tt(ft),or=At(Mt,mt);return{keyEntities:or.filter(function(vr){var fn=Mt.find(function(sr){var Ir=sr.key;return vr.key===Ir});return!(fn&&fn.status===me&&vr.status===de)})}}}]),te}(a.Component);return Object(y.a)(Vt,"defaultProps",{component:"div"}),Vt}var Gt=ct(G),dr=D.b=$},"8hn6":function(k,D){var n="#eee",y=function(){return{axisLine:{lineStyle:{color:n}},axisTick:{lineStyle:{color:n}},axisLabel:{textStyle:{color:n}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:n}}}},p=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],x={color:p,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:n},crossStyle:{color:n},label:{color:"#000"}}},legend:{textStyle:{color:n}},textStyle:{color:n},title:{textStyle:{color:n}},toolbox:{iconStyle:{normal:{borderColor:n}}},dataZoom:{textStyle:{color:n}},visualMap:{textStyle:{color:n}},timeline:{lineStyle:{color:n},itemStyle:{normal:{color:p[1]}},label:{normal:{textStyle:{color:n}}},controlStyle:{normal:{color:n,borderColor:n}}},timeAxis:y(),logAxis:y(),valueAxis:y(),categoryAxis:y(),line:{symbol:"circle"},graph:{color:p},gauge:{title:{textStyle:{color:n}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};x.categoryAxis.splitLine.show=!1;var A=x;k.exports=A},"8nMs":function(k,D,n){var y=n("bYtY"),p=n("IwbS"),x=n("+rIm"),A=n("Znkb"),m=n("AVZG"),f=n("WN+l"),h=f.rectCoordAxisBuildSplitArea,u=f.rectCoordAxisHandleRemove,a=["axisLine","axisTickLabel","axisName"],i=["splitArea","splitLine","minorSplitLine"],t=A.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(o,e,l,r){this.group.removeAll();var s=this._axisGroup;if(this._axisGroup=new p.Group,this.group.add(this._axisGroup),!o.get("show"))return;var c=o.getCoordSysModel(),d=m.layout(c,o),g=new x(o,d);y.each(a,g.add,g),this._axisGroup.add(g.getGroup()),y.each(i,function(v){o.get(v+".show")&&this["_"+v](o,c)},this),p.groupTransition(s,this._axisGroup,o),t.superCall(this,"render",o,e,l,r)},remove:function(){u(this)},_splitLine:function(o,e){var l=o.axis;if(l.scale.isBlank())return;var r=o.getModel("splitLine"),s=r.getModel("lineStyle"),c=s.get("color");c=y.isArray(c)?c:[c];for(var d=e.coordinateSystem.getRect(),g=l.isHorizontal(),v=0,b=l.getTicksCoords({tickModel:r}),S=[],E=[],C=s.getLineStyle(),_=0;_<b.length;_++){var T=l.toGlobalCoord(b[_].coord);g?(S[0]=T,S[1]=d.y,E[0]=T,E[1]=d.y+d.height):(S[0]=d.x,S[1]=T,E[0]=d.x+d.width,E[1]=T);var w=v++%c.length,O=b[_].tickValue;this._axisGroup.add(new p.Line({anid:O!=null?"line_"+b[_].tickValue:null,subPixelOptimize:!0,shape:{x1:S[0],y1:S[1],x2:E[0],y2:E[1]},style:y.defaults({stroke:c[w]},C),silent:!0}))}},_minorSplitLine:function(o,e){var l=o.axis,r=o.getModel("minorSplitLine"),s=r.getModel("lineStyle"),c=e.coordinateSystem.getRect(),d=l.isHorizontal(),g=l.getMinorTicksCoords();if(!g.length)return;for(var v=[],b=[],S=s.getLineStyle(),E=0;E<g.length;E++)for(var C=0;C<g[E].length;C++){var _=l.toGlobalCoord(g[E][C].coord);d?(v[0]=_,v[1]=c.y,b[0]=_,b[1]=c.y+c.height):(v[0]=c.x,v[1]=_,b[0]=c.x+c.width,b[1]=_),this._axisGroup.add(new p.Line({anid:"minor_line_"+g[E][C].tickValue,subPixelOptimize:!0,shape:{x1:v[0],y1:v[1],x2:b[0],y2:b[1]},style:S,silent:!0}))}},_splitArea:function(o,e){h(this,this._axisGroup,o,e)}});t.extend({type:"xAxis"}),t.extend({type:"yAxis"})},"8nly":function(k,D,n){var y=n("mFDi"),p=n("4mN7"),x=n("QBsz"),A=n("BlVb");function m(h,u,a){if(this.name=h,this.geometries=u,a)a=[a[0],a[1]];else{var i=this.getBoundingRect();a=[i.x+i.width/2,i.y+i.height/2]}this.center=a}m.prototype={constructor:m,properties:null,getBoundingRect:function(){var h=this._rect;if(h)return h;for(var u=Number.MAX_VALUE,a=[u,u],i=[-u,-u],t=[],o=[],e=this.geometries,l=0;l<e.length;l++){if(e[l].type!=="polygon")continue;var r=e[l].exterior;p.fromPoints(r,t,o),x.min(a,a,t),x.max(i,i,o)}return l===0&&(a[0]=a[1]=i[0]=i[1]=0),this._rect=new y(a[0],a[1],i[0]-a[0],i[1]-a[1])},contain:function(h){var u=this.getBoundingRect(),a=this.geometries;if(!u.contain(h[0],h[1]))return!1;e:for(var i=0,t=a.length;i<t;i++){if(a[i].type!=="polygon")continue;var o=a[i].exterior,e=a[i].interiors;if(A.contain(o,h[0],h[1])){for(var l=0;l<(e?e.length:0);l++)if(A.contain(e[l]))continue e;return!0}}return!1},transformTo:function(h,u,a,i){var t=this.getBoundingRect(),o=t.width/t.height;a?i||(i=a/o):a=o*i;for(var e=new y(h,u,a,i),l=t.calculateTransform(e),r=this.geometries,s=0;s<r.length;s++){if(r[s].type!=="polygon")continue;for(var c=r[s].exterior,d=r[s].interiors,g=0;g<c.length;g++)x.applyTransform(c[g],c[g],l);for(var v=0;v<(d?d.length:0);v++)for(var g=0;g<d[v].length;g++)x.applyTransform(d[v][g],d[v][g],l)}t=this._rect,t.copy(e),this.center=[t.x+t.width/2,t.y+t.height/2]},cloneShallow:function(h){h==null&&(h=this.name);var u=new m(h,this.geometries,this.center);return u._rect=this._rect,u.transformTo=null,u}};var f=m;k.exports=f},"8txm":function(k,D,n){},"8waO":function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("iLNv"),A=n("ZWlE");n("hJvP"),n("IXyC"),n("xRUu");var m=5;y.extendComponentView({type:"parallel",render:function(u,a,i){this._model=u,this._api=i,this._handlers||(this._handlers={},p.each(f,function(t,o){i.getZr().on(o,this._handlers[o]=p.bind(t,this))},this)),x.createOrUpdate(this,"_throttledDispatchExpand",u.get("axisExpandRate"),"fixRate")},dispose:function(u,a){p.each(this._handlers,function(i,t){a.getZr().off(t,i)}),this._handlers=null},_throttledDispatchExpand:function(u){this._dispatchExpand(u)},_dispatchExpand:function(u){u&&this._api.dispatchAction(p.extend({type:"parallelAxisExpand"},u))}});var f={mousedown:function(u){h(this,"click")&&(this._mouseDownPoint=[u.offsetX,u.offsetY])},mouseup:function(u){var a=this._mouseDownPoint;if(h(this,"click")&&a){var i=[u.offsetX,u.offsetY],t=Math.pow(a[0]-i[0],2)+Math.pow(a[1]-i[1],2);if(t>m)return;var o=this._model.coordinateSystem.getSlidedAxisExpandWindow([u.offsetX,u.offsetY]);o.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:o.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(u){if(this._mouseDownPoint||!h(this,"mousemove"))return;var a=this._model,i=a.coordinateSystem.getSlidedAxisExpandWindow([u.offsetX,u.offsetY]),t=i.behavior;t==="jump"&&this._throttledDispatchExpand.debounceNextCall(a.get("axisExpandDebounce")),this._throttledDispatchExpand(t==="none"?null:{axisExpandWindow:i.axisExpandWindow,animation:t==="jump"?null:!1})}};function h(u,a){var i=u._model;return i.get("axisExpandable")&&i.get("axisExpandTriggerOn")===a}y.registerPreprocessor(A)},"8x+h":function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),A=n("bYtY"),m=n("K4ya"),f=n("Qxkt"),h=["#ddd"],u=x.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,o){var e=this.option;!o&&m.replaceVisualOption(e,t,["inBrush","outOfBrush"]);var l=e.inBrush=e.inBrush||{};e.outOfBrush=e.outOfBrush||{color:h},l.hasOwnProperty("liftZ")||(l.liftZ=5)},setAreas:function(t){if(!t)return;this.areas=A.map(t,function(o){return a(this.option,o)},this)},setBrushOption:function(t){this.brushOption=a(this.option,t),this.brushType=this.brushOption.brushType}});function a(t,o){return A.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new f(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},o,!0)}var i=u;k.exports=i},"8z0m":function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("RIqP"),A=n.n(x),m=n("pVnL"),f=n.n(m),h=n("J4zp"),u=n.n(h),a=n("q1tI"),i=n.n(a),t=n("TSYQ"),o=n.n(t);function e(sr,Ir){var lr="cannot "+sr.method+" "+sr.action+" "+Ir.status+"'",Wt=new Error(lr);return Wt.status=Ir.status,Wt.method=sr.method,Wt.url=sr.action,Wt}function l(sr){var Ir=sr.responseText||sr.response;if(!Ir)return Ir;try{return JSON.parse(Ir)}catch(lr){return Ir}}function r(sr){var Ir=new XMLHttpRequest;sr.onProgress&&Ir.upload&&(Ir.upload.onprogress=function(rn){rn.total>0&&(rn.percent=rn.loaded/rn.total*100),sr.onProgress(rn)});var lr=new FormData;sr.data&&Object.keys(sr.data).forEach(function(xt){var rn=sr.data[xt];if(Array.isArray(rn)){rn.forEach(function(Dn){lr.append(xt+"[]",Dn)});return}lr.append(xt,sr.data[xt])}),sr.file instanceof Blob?lr.append(sr.filename,sr.file,sr.file.name):lr.append(sr.filename,sr.file),Ir.onerror=function(rn){sr.onError(rn)},Ir.onload=function(){return Ir.status<200||Ir.status>=300?sr.onError(e(sr,Ir),l(Ir)):sr.onSuccess(l(Ir),Ir)},Ir.open(sr.method,sr.action,!0),sr.withCredentials&&"withCredentials"in Ir&&(Ir.withCredentials=!0);var Wt=sr.headers||{};return Wt["X-Requested-With"]!==null&&Ir.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Wt).forEach(function(xt){Wt[xt]!==null&&Ir.setRequestHeader(xt,Wt[xt])}),Ir.send(lr),{abort:function(){Ir.abort()}}}var s=+new Date,c=0;function d(){return"rc-upload-"+s+"-"+ ++c}function g(sr,Ir){return sr.indexOf(Ir,sr.length-Ir.length)!==-1}var v=function(sr,Ir){if(sr&&Ir){var lr=Array.isArray(Ir)?Ir:Ir.split(","),Wt=sr.name||"",xt=sr.type||"",rn=xt.replace(/\/.*$/,"");return lr.some(function(Dn){var Xn=Dn.trim();return Xn.charAt(0)==="."?g(Wt.toLowerCase(),Xn.toLowerCase()):/\/\*$/.test(Xn)?rn===Xn.replace(/\/.*$/,""):xt===Xn})}return!0};function b(sr,Ir){var lr=sr.createReader(),Wt=[];function xt(){lr.readEntries(function(rn){var Dn=Array.prototype.slice.apply(rn);Wt=Wt.concat(Dn);var Xn=!Dn.length;Xn?Ir(Wt):xt()})}xt()}var S=function(Ir,lr,Wt){var xt=function rn(Dn,Xn){Xn=Xn||"",Dn.isFile?Dn.file(function(ri){Wt(ri)&&(Dn.fullPath&&!ri.webkitRelativePath&&(Object.defineProperties(ri,{webkitRelativePath:{writable:!0}}),ri.webkitRelativePath=Dn.fullPath.replace(/^\//,""),Object.defineProperties(ri,{webkitRelativePath:{writable:!1}})),lr([ri]))}):Dn.isDirectory&&b(Dn,function(ri){ri.forEach(function(Ui){rn(Ui,""+Xn+Dn.name+"/")})})};Ir.forEach(function(rn){xt(rn.webkitGetAsEntry())})},E=S,C=Object.assign||function(sr){for(var Ir=1;Ir<arguments.length;Ir++){var lr=arguments[Ir];for(var Wt in lr)Object.prototype.hasOwnProperty.call(lr,Wt)&&(sr[Wt]=lr[Wt])}return sr},_=function(){function sr(Ir,lr){var Wt=[],xt=!0,rn=!1,Dn=void 0;try{for(var Xn=Ir[Symbol.iterator](),ri;!(xt=(ri=Xn.next()).done)&&!(Wt.push(ri.value),lr&&Wt.length===lr);xt=!0);}catch(Ui){rn=!0,Dn=Ui}finally{try{!xt&&Xn.return&&Xn.return()}finally{if(rn)throw Dn}}return Wt}return function(Ir,lr){if(Array.isArray(Ir))return Ir;if(Symbol.iterator in Object(Ir))return sr(Ir,lr);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function(){function sr(Ir,lr){for(var Wt=0;Wt<lr.length;Wt++){var xt=lr[Wt];xt.enumerable=xt.enumerable||!1,xt.configurable=!0,"value"in xt&&(xt.writable=!0),Object.defineProperty(Ir,xt.key,xt)}}return function(Ir,lr,Wt){return lr&&sr(Ir.prototype,lr),Wt&&sr(Ir,Wt),Ir}}();function w(sr,Ir,lr){return Ir in sr?Object.defineProperty(sr,Ir,{value:lr,enumerable:!0,configurable:!0,writable:!0}):sr[Ir]=lr,sr}function O(sr,Ir){var lr={};for(var Wt in sr){if(Ir.indexOf(Wt)>=0)continue;if(!Object.prototype.hasOwnProperty.call(sr,Wt))continue;lr[Wt]=sr[Wt]}return lr}function I(sr,Ir){if(!(sr instanceof Ir))throw new TypeError("Cannot call a class as a function")}function R(sr,Ir){if(!sr)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ir&&(typeof Ir=="object"||typeof Ir=="function")?Ir:sr}function M(sr,Ir){if(typeof Ir!="function"&&Ir!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ir);sr.prototype=Object.create(Ir&&Ir.prototype,{constructor:{value:sr,enumerable:!1,writable:!0,configurable:!0}}),Ir&&(Object.setPrototypeOf?Object.setPrototypeOf(sr,Ir):sr.__proto__=Ir)}var F=function(Ir){return Object.keys(Ir).reduce(function(lr,Wt){return(Wt.substr(0,5)==="data-"||Wt.substr(0,5)==="aria-"||Wt==="role")&&(lr[Wt]=Ir[Wt]),lr},{})},P=function(sr){M(Ir,sr);function Ir(){var lr,Wt,xt,rn;I(this,Ir);for(var Dn=arguments.length,Xn=Array(Dn),ri=0;ri<Dn;ri++)Xn[ri]=arguments[ri];return rn=(Wt=(xt=R(this,(lr=Ir.__proto__||Object.getPrototypeOf(Ir)).call.apply(lr,[this].concat(Xn))),xt),xt.state={uid:d()},xt.reqs={},xt.onChange=function(Ui){var Bn=Ui.target.files;xt.uploadFiles(Bn),xt.reset()},xt.onClick=function(Ui){var Bn=xt.fileInput;if(!Bn)return;var Jn=xt.props,Xt=Jn.children,_t=Jn.onClick;Xt&&Xt.type==="button"&&(Bn.parentNode.focus(),Bn.parentNode.querySelector("button").blur()),Bn.click(),_t&&_t(Ui)},xt.onKeyDown=function(Ui){Ui.key==="Enter"&&xt.onClick()},xt.onFileDrop=function(Ui){var Bn=xt.props.multiple;if(Ui.preventDefault(),Ui.type==="dragover")return;if(xt.props.directory)E(Array.prototype.slice.call(Ui.dataTransfer.items),xt.uploadFiles,function(Xt){return v(Xt,xt.props.accept)});else{var Jn=Array.prototype.slice.call(Ui.dataTransfer.files).filter(function(Xt){return v(Xt,xt.props.accept)});Bn===!1&&(Jn=Jn.slice(0,1)),xt.uploadFiles(Jn)}},xt.uploadFiles=function(Ui){var Bn=Array.prototype.slice.call(Ui);Bn.map(function(Jn){return Jn.uid=d(),Jn}).forEach(function(Jn){xt.upload(Jn,Bn)})},xt.saveFileInput=function(Ui){xt.fileInput=Ui},Wt),R(xt,rn)}return T(Ir,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(Wt,xt){var rn=this,Dn=this.props;if(!Dn.beforeUpload)return setTimeout(function(){return rn.post(Wt)},0);var Xn=Dn.beforeUpload(Wt,xt);Xn&&Xn.then?Xn.then(function(ri){var Ui=Object.prototype.toString.call(ri);return Ui==="[object File]"||Ui==="[object Blob]"?rn.post(ri):rn.post(Wt)}).catch(function(ri){console.log(ri)}):Xn!==!1&&setTimeout(function(){return rn.post(Wt)},0);return}},{key:"post",value:function(Wt){var xt=this;if(!this._isMounted)return;var rn=this.props,Dn=rn.onStart,Xn=rn.onProgress,ri=rn.transformFile,Ui=ri===void 0?function(Bn){return Bn}:ri;new Promise(function(Bn){var Jn=rn.action;return typeof Jn=="function"&&(Jn=Jn(Wt)),Bn(Jn)}).then(function(Bn){var Jn=Wt.uid,Xt=rn.customRequest||r,_t=Promise.resolve(Ui(Wt)).then(function(Fe){var Pe=rn.data;return typeof Pe=="function"&&(Pe=Pe(Fe)),Promise.all([Fe,Pe])}).catch(function(Fe){console.error(Fe)});_t.then(function(Fe){var Pe=_(Fe,2),Be=Pe[0],nt=Pe[1],vt={action:Bn,filename:rn.name,data:nt,file:Be,headers:rn.headers,withCredentials:rn.withCredentials,method:rn.method||"post",onProgress:Xn?function(ar){Xn(ar,Wt)}:null,onSuccess:function(kr,mn){delete xt.reqs[Jn],rn.onSuccess(kr,Wt,mn)},onError:function(kr,mn){delete xt.reqs[Jn],rn.onError(kr,mn,Wt)}};Dn(Wt),xt.reqs[Jn]=Xt(vt)})})}},{key:"reset",value:function(){this.setState({uid:d()})}},{key:"abort",value:function(Wt){var xt=this.reqs;if(Wt){var rn=Wt;Wt&&Wt.uid&&(rn=Wt.uid),xt[rn]&&xt[rn].abort&&xt[rn].abort(),delete xt[rn]}else Object.keys(xt).forEach(function(Dn){xt[Dn]&&xt[Dn].abort&&xt[Dn].abort(),delete xt[Dn]})}},{key:"render",value:function(){var Wt,xt=this.props,rn=xt.component,Dn=xt.prefixCls,Xn=xt.className,ri=xt.disabled,Ui=xt.id,Bn=xt.style,Jn=xt.multiple,Xt=xt.accept,_t=xt.children,Fe=xt.directory,Pe=xt.openFileDialogOnClick,Be=xt.onMouseEnter,nt=xt.onMouseLeave,vt=O(xt,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),ar=o()((Wt={},w(Wt,Dn,!0),w(Wt,Dn+"-disabled",ri),w(Wt,Xn,Xn),Wt)),kr=ri?{}:{onClick:Pe?this.onClick:function(){},onKeyDown:Pe?this.onKeyDown:function(){},onMouseEnter:Be,onMouseLeave:nt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return i.a.createElement(rn,C({},kr,{className:ar,role:"button",style:Bn}),i.a.createElement("input",C({},F(vt),{id:Ui,type:"file",ref:this.saveFileInput,onClick:function(Zn){return Zn.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Xt,directory:Fe?"directory":null,webkitdirectory:Fe?"webkitdirectory":null,multiple:Jn,onChange:this.onChange})),_t)}}]),Ir}(a.Component),X=P,B=Object.assign||function(sr){for(var Ir=1;Ir<arguments.length;Ir++){var lr=arguments[Ir];for(var Wt in lr)Object.prototype.hasOwnProperty.call(lr,Wt)&&(sr[Wt]=lr[Wt])}return sr},j=function(){function sr(Ir,lr){for(var Wt=0;Wt<lr.length;Wt++){var xt=lr[Wt];xt.enumerable=xt.enumerable||!1,xt.configurable=!0,"value"in xt&&(xt.writable=!0),Object.defineProperty(Ir,xt.key,xt)}}return function(Ir,lr,Wt){return lr&&sr(Ir.prototype,lr),Wt&&sr(Ir,Wt),Ir}}();function W(sr,Ir){if(!(sr instanceof Ir))throw new TypeError("Cannot call a class as a function")}function z(sr,Ir){if(!sr)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ir&&(typeof Ir=="object"||typeof Ir=="function")?Ir:sr}function V(sr,Ir){if(typeof Ir!="function"&&Ir!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ir);sr.prototype=Object.create(Ir&&Ir.prototype,{constructor:{value:sr,enumerable:!1,writable:!0,configurable:!0}}),Ir&&(Object.setPrototypeOf?Object.setPrototypeOf(sr,Ir):sr.__proto__=Ir)}function Q(){}var G=function(sr){V(Ir,sr);function Ir(){var lr,Wt,xt,rn;W(this,Ir);for(var Dn=arguments.length,Xn=Array(Dn),ri=0;ri<Dn;ri++)Xn[ri]=arguments[ri];return rn=(Wt=(xt=z(this,(lr=Ir.__proto__||Object.getPrototypeOf(Ir)).call.apply(lr,[this].concat(Xn))),xt),xt.saveUploader=function(Ui){xt.uploader=Ui},Wt),z(xt,rn)}return j(Ir,[{key:"abort",value:function(Wt){this.uploader.abort(Wt)}},{key:"render",value:function(){return i.a.createElement(X,B({},this.props,{ref:this.saveUploader}))}}]),Ir}(a.Component);G.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Q,onError:Q,onSuccess:Q,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var ee=G,ce=ee,be=function(sr,Ir){var lr={};for(var Wt in sr)Object.prototype.hasOwnProperty.call(sr,Wt)&&Ir.indexOf(Wt)<0&&(lr[Wt]=sr[Wt]);if(sr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,Wt=Object.getOwnPropertySymbols(sr);xt<Wt.length;xt++)Ir.indexOf(Wt[xt])<0&&Object.prototype.propertyIsEnumerable.call(sr,Wt[xt])&&(lr[Wt[xt]]=sr[Wt[xt]]);return lr},le=function(Ir,lr){var Wt=Ir.style,xt=Ir.height,rn=be(Ir,["style","height"]);return a.createElement(vr,f()({ref:lr},rn,{type:"drag",style:f()(f()({},Wt),{height:xt})}))},Ie=a.forwardRef(le);Ie.displayName="Dragger";var ke=Ie,Re=n("UmKh"),Qe=n("zU+y"),We=n.n(Qe),ot=n("5W0v"),Oe=n.n(ot),oe=n("eokw"),st=n.n(oe),he=n("n0Ed"),J=n.n(he),Y=n("meAc"),$=n.n(Y),fe=n("H2oc"),we=n.n(fe),Ne=n("k773"),Ee=n.n(Ne),de=n("0n0R");function me(){return!0}function Le(sr){return f()(f()({},sr),{lastModified:sr.lastModified,lastModifiedDate:sr.lastModifiedDate,name:sr.name,size:sr.size,type:sr.type,uid:sr.uid,percent:0,originFileObj:sr})}function tt(sr,Ir){var lr=sr.uid!==void 0?"uid":"name";return Ir.filter(function(Wt){return Wt[lr]===sr[lr]})[0]}function At(sr,Ir){var lr=sr.uid!==void 0?"uid":"name",Wt=Ir.filter(function(xt){return xt[lr]!==sr[lr]});return Wt.length===Ir.length?null:Wt}var ht=function(){var Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",lr=Ir.split("/"),Wt=lr[lr.length-1],xt=Wt.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(xt)||[""])[0]},Ke=function(Ir){return Ir.indexOf("image/")===0},Jt=function(Ir){if(Ir.type&&!Ir.thumbUrl)return Ke(Ir.type);var lr=Ir.thumbUrl||Ir.url,Wt=ht(lr);return/^data:image\//.test(lr)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(Wt)?!0:/^data:/.test(lr)?!1:!Wt},ct=200;function Gt(sr){return new Promise(function(Ir){if(!sr.type||!Ke(sr.type)){Ir("");return}var lr=document.createElement("canvas");lr.width=ct,lr.height=ct,lr.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(ct,"px; height: ").concat(ct,"px; z-index: 9999; display: none;"),document.body.appendChild(lr);var Wt=lr.getContext("2d"),xt=new Image;xt.onload=function(){var rn=xt.width,Dn=xt.height,Xn=ct,ri=ct,Ui=0,Bn=0;rn<Dn?(ri=Dn*(ct/rn),Bn=-(ri-Xn)/2):(Xn=rn*(ct/Dn),Ui=-(Xn-ri)/2),Wt.drawImage(xt,Ui,Bn,Xn,ri);var Jn=lr.toDataURL();document.body.removeChild(lr),Ir(Jn)},xt.src=window.URL.createObjectURL(sr)})}var dr=n("3S7+"),zt=n("CFYs"),kt=n("H84U"),Vt=n("2/Rp"),Xe=n("hkKa"),pe=function(Ir,lr){var Wt,xt=Ir.listType,rn=Ir.previewFile,Dn=Ir.onPreview,Xn=Ir.onDownload,ri=Ir.onRemove,Ui=Ir.locale,Bn=Ir.iconRender,Jn=Ir.isImageUrl,Xt=Ir.prefixCls,_t=Ir.items,Fe=_t===void 0?[]:_t,Pe=Ir.showPreviewIcon,Be=Ir.showRemoveIcon,nt=Ir.showDownloadIcon,vt=Ir.removeIcon,ar=Ir.downloadIcon,kr=Ir.progress,mn=Object(Xe.a)();a.useEffect(function(){if(xt!=="picture"&&xt!=="picture-card")return;(Fe||[]).forEach(function(Mr){if(typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Mr.originFileObj instanceof File||Mr.originFileObj instanceof Blob)||Mr.thumbUrl!==void 0)return;Mr.thumbUrl="",rn&&rn(Mr.originFileObj).then(function(Dr){Mr.thumbUrl=Dr||"",mn()})})},[xt,Fe,rn]);var Zn=function(Dr,un){return Dn?(un.preventDefault(),Dn(Dr)):void 0},ni=function(Dr){typeof Xn=="function"?Xn(Dr):Dr.url&&window.open(Dr.url)},ur=function(Dr){ri&&ri(Dr)},Nt=function(Dr){if(Bn)return Bn(Dr,xt);var un=Dr.status==="uploading",wn=Jn&&Jn(Dr)?a.createElement(st.a,null):a.createElement(J.a,null),ai=un?a.createElement(We.a,null):a.createElement(Oe.a,null);return xt==="picture"?ai=un?a.createElement(We.a,null):wn:xt==="picture-card"&&(ai=un?Ui.uploading:wn),ai},bt=function(Dr,un,wn,ai){var ei={type:"text",size:"small",title:ai,onClick:function(ki){un(),Object(de.b)(Dr)&&Dr.props.onClick&&Dr.props.onClick(ki)},className:"".concat(wn,"-list-item-card-actions-btn")};if(Object(de.b)(Dr)){var gi=Object(de.a)(Dr,f()(f()({},Dr.props),{onClick:function(){}}));return a.createElement(Vt.a,f()({},ei,{icon:gi}))}return a.createElement(Vt.a,ei,a.createElement("span",null,Dr))};a.useImperativeHandle(lr,function(){return{handlePreview:Zn,handleDownload:ni}});var gr=a.useContext(kt.b),Yt=gr.getPrefixCls,Pt=gr.direction,rr=Yt("upload",Xt),Rt=Fe.map(function(Mr){var Dr,un,wn,ai=Nt(Mr),ei=a.createElement("div",{className:"".concat(rr,"-text-icon")},ai);if(xt==="picture"||xt==="picture-card")if(Mr.status==="uploading"||!Mr.thumbUrl&&!Mr.url){var gi,Ii=o()((gi={},p()(gi,"".concat(rr,"-list-item-thumbnail"),!0),p()(gi,"".concat(rr,"-list-item-file"),Mr.status!=="uploading"),gi));ei=a.createElement("div",{className:Ii},ai)}else{var ki,Qi=Jn&&Jn(Mr)?a.createElement("img",{src:Mr.thumbUrl||Mr.url,alt:Mr.name,className:"".concat(rr,"-list-item-image")}):ai,it=o()((ki={},p()(ki,"".concat(rr,"-list-item-thumbnail"),!0),p()(ki,"".concat(rr,"-list-item-file"),Jn&&!Jn(Mr)),ki));ei=a.createElement("a",{className:it,onClick:function(An){return Zn(Mr,An)},href:Mr.url||Mr.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Qi)}if(Mr.status==="uploading"){var Me="percent"in Mr?a.createElement(zt.a,f()({},kr,{type:"line",percent:Mr.percent})):null;wn=a.createElement("div",{className:"".concat(rr,"-list-item-progress"),key:"progress"},Me)}var je=o()((Dr={},p()(Dr,"".concat(rr,"-list-item"),!0),p()(Dr,"".concat(rr,"-list-item-").concat(Mr.status),!0),p()(Dr,"".concat(rr,"-list-item-list-type-").concat(xt),!0),Dr)),Ye=typeof Mr.linkProps=="string"?JSON.parse(Mr.linkProps):Mr.linkProps,rt=Be?bt(vt||a.createElement(we.a,null),function(){return ur(Mr)},rr,Ui.removeFile):null,qe=nt&&Mr.status==="done"?bt(ar||a.createElement(Ee.a,null),function(){return ni(Mr)},rr,Ui.downloadFile):null,at=xt!=="picture-card"&&a.createElement("span",{key:"download-delete",className:"".concat(rr,"-list-item-card-actions ").concat(xt==="picture"?"picture":"")},qe,rt),St=o()((un={},p()(un,"".concat(rr,"-list-item-name"),!0),p()(un,"".concat(rr,"-list-item-name-icon-count-").concat([qe,rt].filter(function(Rn){return Rn}).length),!0),un)),gt=Mr.url?[a.createElement("a",f()({key:"view",target:"_blank",rel:"noopener noreferrer",className:St,title:Mr.name},Ye,{href:Mr.url,onClick:function(An){return Zn(Mr,An)}}),Mr.name),at]:[a.createElement("span",{key:"view",className:St,onClick:function(An){return Zn(Mr,An)},title:Mr.name},Mr.name),at],hr={pointerEvents:"none",opacity:.5},Qr=Pe?a.createElement("a",{href:Mr.url||Mr.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Mr.url||Mr.thumbUrl?void 0:hr,onClick:function(An){return Zn(Mr,An)},title:Ui.previewFile},a.createElement($.a,null)):null,Xr=xt==="picture-card"&&Mr.status!=="uploading"&&a.createElement("span",{className:"".concat(rr,"-list-item-actions")},Qr,Mr.status==="done"&&qe,rt),dn;Mr.response&&typeof Mr.response=="string"?dn=Mr.response:dn=Mr.error&&Mr.error.statusText||Ui.uploadError;var mr=a.createElement("span",null,ei,gt),Kn=a.createElement("div",{className:je},a.createElement("div",{className:"".concat(rr,"-list-item-info")},mr),Xr,a.createElement(Re.a,{transitionName:"fade",component:""},wn)),Rr=o()(p()({},"".concat(rr,"-list-picture-card-container"),xt==="picture-card"));return a.createElement("div",{key:Mr.uid,className:Rr},Mr.status==="error"?a.createElement(dr.a,{title:dn,getPopupContainer:function(An){return An.parentNode}},Kn):a.createElement("span",null,Kn))}),qt=o()((Wt={},p()(Wt,"".concat(rr,"-list"),!0),p()(Wt,"".concat(rr,"-list-").concat(xt),!0),p()(Wt,"".concat(rr,"-list-rtl"),Pt==="rtl"),Wt)),Yr=xt==="picture-card"?"animate-inline":"animate";return a.createElement(Re.a,{transitionName:"".concat(rr,"-").concat(Yr),component:"div",className:qt},Rt)},te=a.forwardRef(pe);te.displayName="UploadList",te.defaultProps={listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:Gt,isImageUrl:Jt};var $e=te,He=n("YMnH"),ae=n("ZvpZ"),ft=n("uaoM"),Mt=n("sPtV"),mt=function(Ir,lr){var Wt,xt=Ir.fileList,rn=Ir.defaultFileList,Dn=Ir.onRemove,Xn=Ir.showUploadList,ri=Ir.listType,Ui=Ir.onPreview,Bn=Ir.onDownload,Jn=Ir.previewFile,Xt=Ir.disabled,_t=Ir.locale,Fe=Ir.iconRender,Pe=Ir.isImageUrl,Be=Ir.progress,nt=Ir.prefixCls,vt=Ir.className,ar=Ir.type,kr=Ir.children,mn=Ir.style,Zn=Object(Mt.a)(xt||rn||[]),ni=u()(Zn,2),ur=ni[0],Nt=ni[1],bt=a.useState("drop"),gr=u()(bt,2),Yt=gr[0],Pt=gr[1],rr=a.useRef();a.useEffect(function(){Nt(xt||rn||[]),Object(ft.a)("fileList"in Ir||!("value"in Ir),"Upload","`value` is not a valid prop, do you mean `fileList`?")},[]),a.useEffect(function(){"fileList"in Ir&&Nt(xt||[])},[xt]);var Rt=function(gt){"fileList"in Ir||Nt(gt.fileList);var hr=Ir.onChange;hr&&hr(f()(f()({},gt),{fileList:A()(gt.fileList)}))},qt=function(gt){var hr=Le(gt);hr.status="uploading";var Qr=ur().concat(),Xr=Qr.findIndex(function(dn){var mr=dn.uid;return mr===hr.uid});Xr===-1?Qr.push(hr):Qr[Xr]=hr,Rt({file:hr,fileList:Qr})},Yr=function(gt,hr,Qr){try{typeof gt=="string"&&(gt=JSON.parse(gt))}catch(dn){}var Xr=tt(hr,ur());if(!Xr)return;Xr.status="done",Xr.response=gt,Xr.xhr=Qr,Rt({file:f()({},Xr),fileList:ur().concat()})},Mr=function(gt,hr){var Qr=tt(hr,ur());if(!Qr)return;Qr.percent=gt.percent,Rt({event:gt,file:f()({},Qr),fileList:ur().concat()})},Dr=function(gt,hr,Qr){var Xr=tt(Qr,ur());if(!Xr)return;Xr.error=gt,Xr.response=hr,Xr.status="error",Rt({file:f()({},Xr),fileList:ur().concat()})},un=function(gt){Promise.resolve(typeof Dn=="function"?Dn(gt):Dn).then(function(hr){if(hr===!1)return;var Qr=At(gt,ur());Qr&&(gt.status="removed",rr.current&&rr.current.abort(gt),Rt({file:gt,fileList:Qr}))})},wn=function(gt){Pt(gt.type)},ai=function(gt,hr){var Qr=Ir.beforeUpload;if(!Qr)return!0;var Xr=Qr(gt,hr);if(Xr===!1){var dn=[];return ur().concat(hr.map(Le)).forEach(function(mr){dn.every(function(Kn){return Kn.uid!==mr.uid})&&dn.push(mr)}),Rt({file:gt,fileList:dn}),!1}return Xr&&Xr.then?Xr:!0},ei=Object(Xe.a)();a.useImperativeHandle(lr,function(){return{onStart:qt,onSuccess:Yr,onProgress:Mr,onError:Dr,fileList:ur(),upload:rr.current,forceUpdate:ei}});var gi=function(gt){var hr=Xn.showRemoveIcon,Qr=Xn.showPreviewIcon,Xr=Xn.showDownloadIcon,dn=Xn.removeIcon,mr=Xn.downloadIcon;return a.createElement($e,{listType:ri,items:ur(),previewFile:Jn,onPreview:Ui,onDownload:Bn,onRemove:un,showRemoveIcon:!Xt&&hr,showPreviewIcon:Qr,showDownloadIcon:Xr,removeIcon:dn,downloadIcon:mr,iconRender:Fe,locale:f()(f()({},gt),_t),isImageUrl:Pe,progress:Be})},Ii=a.useContext(kt.b),ki=Ii.getPrefixCls,Qi=Ii.direction,it=ki("upload",nt),Me=f()(f()({onStart:qt,onError:Dr,onProgress:Mr,onSuccess:Yr},Ir),{prefixCls:it,beforeUpload:ai});delete Me.className,delete Me.style,(!kr||Xt)&&delete Me.id;var je=Xn?a.createElement(He.a,{componentName:"Upload",defaultLocale:ae.a.Upload},gi):null;if(ar==="drag"){var Ye,rt=o()(it,(Ye={},p()(Ye,"".concat(it,"-drag"),!0),p()(Ye,"".concat(it,"-drag-uploading"),ur().some(function(St){return St.status==="uploading"})),p()(Ye,"".concat(it,"-drag-hover"),Yt==="dragover"),p()(Ye,"".concat(it,"-disabled"),Xt),p()(Ye,"".concat(it,"-rtl"),Qi==="rtl"),Ye),vt);return a.createElement("span",null,a.createElement("div",{className:rt,onDrop:wn,onDragOver:wn,onDragLeave:wn,style:mn},a.createElement(ce,f()({},Me,{ref:rr,className:"".concat(it,"-btn")}),a.createElement("div",{className:"".concat(it,"-drag-container")},kr))),je)}var qe=o()(it,(Wt={},p()(Wt,"".concat(it,"-select"),!0),p()(Wt,"".concat(it,"-select-").concat(ri),!0),p()(Wt,"".concat(it,"-disabled"),Xt),p()(Wt,"".concat(it,"-rtl"),Qi==="rtl"),Wt)),at=a.createElement("div",{className:qe,style:kr?void 0:{display:"none"}},a.createElement(ce,f()({},Me,{ref:rr})));return ri==="picture-card"?a.createElement("span",{className:o()(vt,"".concat(it,"-picture-card-wrapper"))},je,at):a.createElement("span",{className:vt},at,je)},or=a.forwardRef(mt);or.Dragger=ke,or.displayName="Upload",or.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",beforeUpload:me,showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0};var vr=or;vr.Dragger=ke;var fn=D.a=vr},"98bh":function(k,D,n){var y=n("ProS"),p=n("5GtS"),x=n("bYtY"),A=n("4NO4"),m=n("OELB"),f=m.getPercentWithPrecision,h=n("cCMj"),u=n("KxfA"),a=u.retrieveRawAttr,i=n("D5nY"),t=i.makeSeriesEncodeForNameBased,o=n("xKMd"),e=y.extendSeriesModel({type:"series.pie",init:function(r){e.superApply(this,"init",arguments),this.legendVisualProvider=new o(x.bind(this.getData,this),x.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(r)},mergeOption:function(r){e.superCall(this,"mergeOption",r),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(r,s){return p(this,{coordDimensions:["value"],encodeDefaulter:x.curry(t,this)})},_createSelectableList:function(){for(var r=this.getRawData(),s=r.mapDimension("value"),c=[],d=0,g=r.count();d<g;d++)c.push({name:r.getName(d),value:r.get(s,d),selected:a(r,d,"selected")});return c},getDataParams:function(r){var s=this.getData(),c=e.superCall(this,"getDataParams",r),d=[];return s.each(s.mapDimension("value"),function(g){d.push(g)}),c.percent=f(d,r,s.hostModel.get("percentPrecision")),c.$vars.push("percent"),c},_defaultLabelLine:function(r){A.defaultEmphasis(r,"labelLine",["show"]);var s=r.labelLine,c=r.emphasis.labelLine;s.show=s.show&&r.label.show,c.show=c.show&&r.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:!1,show:!0,position:"outer",alignTo:"none",margin:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationTypeUpdate:"transition",animationEasing:"cubicOut"}});x.mixin(e,h);var l=e;k.exports=l},"9H2F":function(k,D,n){var y=n("bYtY"),p=y.assert,x=y.isArray,A=n("Tghj"),m=A.__DEV__;function f(o){return new h(o)}function h(o){o=o||{},this._reset=o.reset,this._plan=o.plan,this._count=o.count,this._onDirty=o.onDirty,this._dirty=!0,this.context}var u=h.prototype;u.perform=function(o){var e=this._upstream,l=o&&o.skip;if(this._dirty&&e){var r=this.context;r.data=r.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var s;this._plan&&!l&&(s=this._plan(this.context));var c=b(this._modBy),d=this._modDataCount||0,g=b(o&&o.modBy),v=o&&o.modDataCount||0;(c!==g||d!==v)&&(s="reset");function b(I){return!(I>=1)&&(I=1),I}var S;(this._dirty||s==="reset")&&(this._dirty=!1,S=t(this,l)),this._modBy=g,this._modDataCount=v;var E=o&&o.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):Infinity,this._progress){var C=this._dueIndex,_=Math.min(E!=null?this._dueIndex+E:Infinity,this._dueEnd);if(!l&&(S||C<_)){var T=this._progress;if(x(T))for(var w=0;w<T.length;w++)i(this,T[w],C,_,g,v);else i(this,T,C,_,g,v)}this._dueIndex=_;var O=this._settedOutputEnd!=null?this._settedOutputEnd:_;this._outputDueEnd=O}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var a=function(){var o,e,l,r,s,c={reset:function(v,b,S,E){e=v,o=b,l=S,r=E,s=Math.ceil(r/l),c.next=l>1&&r>0?g:d}};return c;function d(){return e<o?e++:null}function g(){var v=e%s*l+Math.ceil(e/s),b=e>=o?null:v<r?v:e;return e++,b}}();u.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)};function i(o,e,l,r,s,c){a.reset(l,r,s,c),o._callingProgress=e,o._callingProgress({start:l,end:r,count:r-l,next:a.next},o.context)}function t(o,e){o._dueIndex=o._outputDueEnd=o._dueEnd=0,o._settedOutputEnd=null;var l,r;!e&&o._reset&&(l=o._reset(o.context),l&&l.progress&&(r=l.forceFirstProgress,l=l.progress),x(l)&&!l.length&&(l=null)),o._progress=l,o._modBy=o._modDataCount=null;var s=o._downstream;return s&&s.dirty(),r}u.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},u.pipe=function(o){(this._downstream!==o||this._dirty)&&(this._downstream=o,o._upstream=this,o.dirty())},u.dispose=function(){if(this._disposed)return;this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0},u.getUpstream=function(){return this._upstream},u.getDownstream=function(){return this._downstream},u.setOutputEnd=function(o){this._outputDueEnd=this._settedOutputEnd=o},D.createTask=f},"9KIM":function(k,D,n){var y=n("mFDi"),p=n("xSat"),x=p.onIrrelevantElement,A=n("IwbS");function m(a){return a=u(a),function(i,t){return A.clipPointsByRect(i,a)}}function f(a,i){return a=u(a),function(t){var o=i!=null?i:t,e=o?a.width:a.height,l=o?a.x:a.y;return[l,l+(e||0)]}}function h(a,i,t){return a=u(a),function(o,e,l){return a.contain(e[0],e[1])&&!x(o,i,t)}}function u(a){return y.create(a)}D.makeRectPanelClipPath=m,D.makeLinearBrushOtherExtent=f,D.makeRectIsTargetByCursor=h},"9OqN":function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("OLod"))})(this,function(y){return y.mode.CTR=function(){var p=y.lib.BlockCipherMode.extend(),x=p.Encryptor=p.extend({processBlock:function(m,f){var h=this._cipher,u=h.blockSize,a=this._iv,i=this._counter;a&&(i=this._counter=a.slice(0),this._iv=void 0);var t=i.slice(0);h.encryptBlock(t,0),i[u-1]=i[u-1]+1|0;for(var o=0;o<u;o++)m[f+o]^=t[o]}});return p.Decryptor=x,p}(),y.mode.CTR})},"9ama":function(k,D,n){},"9eas":function(k,D,n){n("HM/N"),n("tBnm")},"9hCq":function(k,D,n){var y=n("IwbS"),p=n("+TT/"),x=n("bYtY"),A=n("VaxA"),m=A.wrapTreePathInfo,f=8,h=8,u=5;function a(e){this.group=new y.Group,e.add(this.group)}a.prototype={constructor:a,render:function(e,l,r,s){var c=e.getModel("breadcrumb"),d=this.group;if(d.removeAll(),!c.get("show")||!r)return;var g=c.getModel("itemStyle"),v=g.getModel("textStyle"),b={pos:{left:c.get("left"),right:c.get("right"),top:c.get("top"),bottom:c.get("bottom")},box:{width:l.getWidth(),height:l.getHeight()},emptyItemWidth:c.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,b,v),this._renderContent(e,b,g,v,s),p.positionElement(d,b.pos,b.box)},_prepare:function(e,l,r){for(var s=e;s;s=s.parentNode){var c=s.getModel().get("name"),d=r.getTextRect(c),g=Math.max(d.width+f*2,l.emptyItemWidth);l.totalWidth+=g+h,l.renderList.push({node:s,text:c,width:g})}},_renderContent:function(e,l,r,s,c){for(var d=0,g=l.emptyItemWidth,v=e.get("breadcrumb.height"),b=p.getAvailableSize(l.pos,l.box),S=l.totalWidth,E=l.renderList,C=E.length-1;C>=0;C--){var _=E[C],T=_.node,w=_.width,O=_.text;S>b.width&&(S-=w-g,w=g,O=null);var I=new y.Polygon({shape:{points:i(d,0,w,v,C===E.length-1,C===0)},style:x.defaults(r.getItemStyle(),{lineJoin:"bevel",text:O,textFill:s.getTextColor(),textFont:s.getFont()}),z:10,onclick:x.curry(c,T)});this.group.add(I),t(I,e,T),d+=w+h}},remove:function(){this.group.removeAll()}};function i(e,l,r,s,c,d){var g=[[c?e:e-u,l],[e+r,l],[e+r,l+s],[c?e:e-u,l+s]];return!d&&g.splice(2,0,[e+r+u,l+s/2]),!c&&g.push([e,l+s/2]),g}function t(e,l,r){e.eventData={componentType:"series",componentSubType:"treemap",componentIndex:l.componentIndex,seriesIndex:l.componentIndex,seriesName:l.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&m(r,l)}}var o=a;k.exports=o},"9u0u":function(k,D,n){var y=n("bYtY");function p(A,m){var f={};return y.each(A,function(h){h.each(h.mapDimension("value"),function(u,a){var i="ec-"+h.getName(a);f[i]=f[i]||[],isNaN(u)||f[i].push(u)})}),A[0].map(A[0].mapDimension("value"),function(h,u){for(var a="ec-"+A[0].getName(u),i=0,t=Infinity,o=-Infinity,e=f[a].length,l=0;l<e;l++)t=Math.min(t,f[a][l]),o=Math.max(o,f[a][l]),i+=f[a][l];var r;return m==="min"?r=t:m==="max"?r=o:m==="average"?r=i/e:r=i,e===0?NaN:r})}function x(A){var m={};A.eachSeriesByType("map",function(f){var h=f.getHostGeoModel(),u=h?"o"+h.id:"i"+f.getMapType();(m[u]=m[u]||[]).push(f)}),y.each(m,function(f,h){for(var u=p(y.map(f,function(i){return i.getData()}),f[0].get("mapValueCalculation")),a=0;a<f.length;a++)f[a].originalData=f[a].getData();for(var a=0;a<f.length;a++)f[a].seriesGroup=f,f[a].needsDrawMap=a===0&&!f[a].getHostGeoModel(),f[a].setData(u.cloneShallow()),f[a].mainSeries=f[0]})}k.exports=x},"9wZj":function(k,D,n){var y=n("IwbS"),p=n("FBjb"),x=n("bYtY"),A=x.isObject;function m(t){this.group=new y.Group,this._symbolCtor=t||p}var f=m.prototype;function h(t,o,e,l){return o&&!isNaN(o[0])&&!isNaN(o[1])&&!(l.isIgnore&&l.isIgnore(e))&&!(l.clipShape&&!l.clipShape.contain(o[0],o[1]))&&t.getItemVisual(e,"symbol")!=="none"}f.updateData=function(t,o){o=u(o);var e=this.group,l=t.hostModel,r=this._data,s=this._symbolCtor,c=a(t);r||e.removeAll(),t.diff(r).add(function(d){var g=t.getItemLayout(d);if(h(t,g,d,o)){var v=new s(t,d,c);v.attr("position",g),t.setItemGraphicEl(d,v),e.add(v)}}).update(function(d,g){var v=r.getItemGraphicEl(g),b=t.getItemLayout(d);if(!h(t,b,d,o)){e.remove(v);return}v?(v.updateData(t,d,c),y.updateProps(v,{position:b},l)):(v=new s(t,d),v.attr("position",b)),e.add(v),t.setItemGraphicEl(d,v)}).remove(function(d){var g=r.getItemGraphicEl(d);g&&g.fadeOut(function(){e.remove(g)})}).execute(),this._data=t},f.isPersistent=function(){return!0},f.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(o,e){var l=t.getItemLayout(e);o.attr("position",l)})},f.incrementalPrepareUpdate=function(t){this._seriesScope=a(t),this._data=null,this.group.removeAll()},f.incrementalUpdate=function(t,o,e){e=u(e);function l(d){d.isGroup||(d.incremental=d.useHoverLayer=!0)}for(var r=t.start;r<t.end;r++){var s=o.getItemLayout(r);if(h(o,s,r,e)){var c=new this._symbolCtor(o,r,this._seriesScope);c.traverse(l),c.attr("position",s),this.group.add(c),o.setItemGraphicEl(r,c)}}};function u(t){return t!=null&&!A(t)&&(t={isIgnore:t}),t||{}}f.remove=function(t){var o=this.group,e=this._data;e&&t?e.eachItemGraphicEl(function(l){l.fadeOut(function(){o.remove(l)})}):o.removeAll()};function a(t){var o=t.hostModel;return{itemStyle:o.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:o.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:o.get("symbolRotate"),symbolOffset:o.get("symbolOffset"),hoverAnimation:o.get("hoverAnimation"),labelModel:o.getModel("label"),hoverLabelModel:o.getModel("emphasis.label"),cursorStyle:o.get("cursor")}}var i=m;k.exports=i},"9yH6":function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),A=n.n(x),m=n("q1tI"),f=n("x1Ya"),h=n("TSYQ"),u=n.n(h),a=n("H84U"),i=m.createContext(null),t=i.Provider,o=i,e=n("ID/q"),l=n("uaoM"),r=function(R,M){var F={};for(var P in R)Object.prototype.hasOwnProperty.call(R,P)&&M.indexOf(P)<0&&(F[P]=R[P]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,P=Object.getOwnPropertySymbols(R);X<P.length;X++)M.indexOf(P[X])<0&&Object.prototype.propertyIsEnumerable.call(R,P[X])&&(F[P[X]]=R[P[X]]);return F},s=function(M,F){var P,X=m.useContext(o),B=m.useContext(a.b),j=B.getPrefixCls,W=B.direction,z=m.useRef(),V=Object(e.a)(F,z);m.useEffect(function(){Object(l.a)(!("optionType"in M),"Radio","`optionType` is only support in Radio.Group.")},[]);var Q=function(We){M.onChange&&M.onChange(We),(X==null?void 0:X.onChange)&&X.onChange(We)},G=M.prefixCls,ee=M.className,ce=M.children,be=M.style,le=r(M,["prefixCls","className","children","style"]),Ie=j("radio",G),ke=A()({},le);X&&(ke.name=X.name,ke.onChange=Q,ke.checked=M.value===X.value,ke.disabled=M.disabled||X.disabled);var Re=u()(ee,(P={},p()(P,"".concat(Ie,"-wrapper"),!0),p()(P,"".concat(Ie,"-wrapper-checked"),ke.checked),p()(P,"".concat(Ie,"-wrapper-disabled"),ke.disabled),p()(P,"".concat(Ie,"-wrapper-rtl"),W==="rtl"),P));return m.createElement("label",{className:Re,style:be,onMouseEnter:M.onMouseEnter,onMouseLeave:M.onMouseLeave},m.createElement(f.a,A()({},ke,{prefixCls:Ie,ref:V})),ce!==void 0?m.createElement("span",null,ce):null)},c=m.forwardRef(s);c.displayName="Radio",c.defaultProps={type:"radio"};var d=c,g=n("J4zp"),v=n.n(g),b=n("6cGi"),S=n("3Nzz"),E=m.forwardRef(function(R,M){var F=m.useContext(a.b),P=F.getPrefixCls,X=F.direction,B=m.useContext(S.b),j=Object(b.a)(R.defaultValue,{value:R.value}),W=v()(j,2),z=W[0],V=W[1],Q=function(ce){var be=z,le=ce.target.value;"value"in R||V(le);var Ie=R.onChange;Ie&&le!==be&&Ie(ce)},G=function(){var ce,be=R.prefixCls,le=R.className,Ie=le===void 0?"":le,ke=R.options,Re=R.optionType,Qe=R.buttonStyle,We=R.disabled,ot=R.children,Oe=R.size,oe=R.style,st=R.id,he=R.onMouseEnter,J=R.onMouseLeave,Y=P("radio",be),$="".concat(Y,"-group"),fe=ot;if(ke&&ke.length>0){var we=Re==="button"?"".concat(Y,"-button"):Y;fe=ke.map(function(de){return typeof de=="string"?m.createElement(d,{ref:M,key:de,prefixCls:we,disabled:We,value:de,checked:z===de},de):m.createElement(d,{ref:M,key:"radio-group-value-options-".concat(de.value),prefixCls:we,disabled:de.disabled||We,value:de.value,checked:z===de.value,style:de.style},de.label)})}var Ne=Oe||B,Ee=u()($,"".concat($,"-").concat(Qe),(ce={},p()(ce,"".concat($,"-").concat(Ne),Ne),p()(ce,"".concat($,"-rtl"),X==="rtl"),ce),Ie);return m.createElement("div",{className:Ee,style:oe,onMouseEnter:he,onMouseLeave:J,id:st},fe)};return m.createElement(t,{value:{onChange:Q,value:z,disabled:R.disabled,name:R.name}},G())});E.defaultProps={buttonStyle:"outline"};var C=m.memo(E),_=function(R,M){var F={};for(var P in R)Object.prototype.hasOwnProperty.call(R,P)&&M.indexOf(P)<0&&(F[P]=R[P]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,P=Object.getOwnPropertySymbols(R);X<P.length;X++)M.indexOf(P[X])<0&&Object.prototype.propertyIsEnumerable.call(R,P[X])&&(F[P[X]]=R[P[X]]);return F},T=function(M,F){var P=m.useContext(o),X=m.useContext(a.b),B=X.getPrefixCls,j=M.prefixCls,W=_(M,["prefixCls"]),z=B("radio-button",j);return P&&(W.checked=M.value===P.value,W.disabled=M.disabled||P.disabled),m.createElement(d,A()({prefixCls:z},W,{type:"radio",ref:F}))},w=m.forwardRef(T),O=d;O.Button=w,O.Group=C;var I=D.a=O},A1Ka:function(k,D,n){var y=n("bLfw"),p=n("sS/r"),x=n("D5nY"),A=x.detectSourceFormat,m=n("k9D9"),f=m.SERIES_LAYOUT_BY_COLUMN;y.extend({type:"dataset",defaultOption:{seriesLayoutBy:f,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){A(this)}}),p.extend({type:"dataset"})},A90E:function(k,D,n){var y=n("6sVZ"),p=n("V6Ve"),x=Object.prototype,A=x.hasOwnProperty;function m(f){if(!y(f))return p(f);var h=[];for(var u in Object(f))A.call(f,u)&&u!="constructor"&&h.push(u);return h}k.exports=m},AE9C:function(k,D,n){var y=n("bYtY"),p=n("crZl"),x=n("IwbS"),A=n("oVpE"),m=A.createSymbol,f=n("+TT/"),h=n("y7Aq"),u=p.extend({type:"visualMap.piecewise",doRender:function(){var i=this.group;i.removeAll();var t=this.visualMapModel,o=t.get("textGap"),e=t.textStyleModel,l=e.getFont(),r=e.getTextColor(),s=this._getItemAlign(),c=t.itemSize,d=this._getViewData(),g=d.endsText,v=y.retrieve(t.get("showLabel",!0),!g);g&&this._renderEndsText(i,g[0],c,v,s),y.each(d.viewPieceList,b,this),g&&this._renderEndsText(i,g[1],c,v,s),f.box(t.get("orient"),i,t.get("itemGap")),this.renderBackground(i),this.positionGroup(i);function b(S){var E=S.piece,C=new x.Group;C.onclick=y.bind(this._onItemClick,this,E),this._enableHoverLink(C,S.indexInModelPieceList);var _=t.getRepresentValue(E);if(this._createItemSymbol(C,_,[0,0,c[0],c[1]]),v){var T=this.visualMapModel.getValueState(_);C.add(new x.Text({style:{x:s==="right"?-o:c[0]+o,y:c[1]/2,text:E.text,textVerticalAlign:"middle",textAlign:s,textFont:l,textFill:r,opacity:T==="outOfRange"?.5:1}}))}i.add(C)}},_enableHoverLink:function(i,t){i.on("mouseover",y.bind(o,this,"highlight")).on("mouseout",y.bind(o,this,"downplay"));function o(e){var l=this.visualMapModel;l.option.hoverLink&&this.api.dispatchAction({type:e,batch:h.makeHighDownBatch(l.findTargetDataIndices(t),l)})}},_getItemAlign:function(){var i=this.visualMapModel,t=i.option;if(t.orient==="vertical")return h.getItemAlign(i,this.api,i.itemSize);var o=t.align;return(!o||o==="auto")&&(o="left"),o},_renderEndsText:function(i,t,o,e,l){if(!t)return;var r=new x.Group,s=this.visualMapModel.textStyleModel;r.add(new x.Text({style:{x:e?l==="right"?o[0]:0:o[0]/2,y:o[1]/2,textVerticalAlign:"middle",textAlign:e?l:"center",text:t,textFont:s.getFont(),textFill:s.getTextColor()}})),i.add(r)},_getViewData:function(){var i=this.visualMapModel,t=y.map(i.getPieceList(),function(r,s){return{piece:r,indexInModelPieceList:s}}),o=i.get("text"),e=i.get("orient"),l=i.get("inverse");return(e==="horizontal"?l:!l)?t.reverse():o&&(o=o.slice().reverse()),{viewPieceList:t,endsText:o}},_createItemSymbol:function(i,t,o){i.add(m(this.getControllerVisual(t,"symbol"),o[0],o[1],o[2],o[3],this.getControllerVisual(t,"color")))},_onItemClick:function(i){var t=this.visualMapModel,o=t.option,e=y.clone(o.selected),l=t.getSelectedMapKey(i);o.selectedMode==="single"?(e[l]=!0,y.each(e,function(r,s){e[s]=s===l})):e[l]=!e[l],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:e})}}),a=u;k.exports=a},AEZ6:function(k,D,n){var y=n("bYtY"),p=y.each,x=y.createHashMap,A=n("T4UG"),m=n("MwEJ"),f=A.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(a,i){var t=this.getSource();return h(t,this),m(t,this)},getRawIndicesByActiveState:function(a){var i=this.coordinateSystem,t=this.getData(),o=[];return i.eachActiveState(t,function(e,l){a===e&&o.push(t.getRawIndex(l))}),o},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});function h(a,i){if(a.encodeDefine)return;var t=i.ecModel.getComponent("parallel",i.get("parallelIndex"));if(!t)return;var o=a.encodeDefine=x();p(t.dimensions,function(e){var l=u(e);o.set(e,l)})}function u(a){return+a.replace("dim","")}k.exports=f},AH3D:function(k,D,n){var y=n("ProS");n("y4/Y"),n("qWt2"),n("Qvb6"),y.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),y.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})},AJpP:function(k,D,n){"use strict";n.r(D),n.d(D,"blue",function(){return Y}),n.d(D,"cyan",function(){return J}),n.d(D,"geekblue",function(){return $}),n.d(D,"generate",function(){return le}),n.d(D,"gold",function(){return ot}),n.d(D,"green",function(){return he}),n.d(D,"grey",function(){return Ne}),n.d(D,"lime",function(){return st}),n.d(D,"magenta",function(){return we}),n.d(D,"orange",function(){return Oe}),n.d(D,"presetDarkPalettes",function(){return Re}),n.d(D,"presetPalettes",function(){return ke}),n.d(D,"presetPrimaryColors",function(){return Ie}),n.d(D,"purple",function(){return fe}),n.d(D,"red",function(){return Qe}),n.d(D,"volcano",function(){return We}),n.d(D,"yellow",function(){return oe});function y(Ee,de){x(Ee)&&(Ee="100%");var me=A(Ee);return Ee=de===360?Ee:Math.min(de,Math.max(0,parseFloat(Ee))),me&&(Ee=parseInt(String(Ee*de),10)/100),Math.abs(Ee-de)<1e-6?1:(de===360?Ee=(Ee<0?Ee%de+de:Ee%de)/parseFloat(String(de)):Ee=Ee%de/parseFloat(String(de)),Ee)}function p(Ee){return Math.min(1,Math.max(0,Ee))}function x(Ee){return typeof Ee=="string"&&Ee.indexOf(".")!==-1&&parseFloat(Ee)===1}function A(Ee){return typeof Ee=="string"&&Ee.indexOf("%")!==-1}function m(Ee){return Ee=parseFloat(Ee),(isNaN(Ee)||Ee<0||Ee>1)&&(Ee=1),Ee}function f(Ee){return Ee<=1?"".concat(Number(Ee)*100,"%"):Ee}function h(Ee){return Ee.length===1?"0"+Ee:String(Ee)}function u(Ee,de,me){return{r:y(Ee,255)*255,g:y(de,255)*255,b:y(me,255)*255}}function a(Ee,de,me){Ee=y(Ee,255),de=y(de,255),me=y(me,255);var Le=Math.max(Ee,de,me),tt=Math.min(Ee,de,me),At=0,ht=0,Ke=(Le+tt)/2;if(Le===tt)ht=0,At=0;else{var Jt=Le-tt;ht=Ke>.5?Jt/(2-Le-tt):Jt/(Le+tt);switch(Le){case Ee:At=(de-me)/Jt+(de<me?6:0);break;case de:At=(me-Ee)/Jt+2;break;case me:At=(Ee-de)/Jt+4;break;default:break}At/=6}return{h:At,s:ht,l:Ke}}function i(Ee,de,me){return me<0&&(me+=1),me>1&&(me-=1),me<1/6?Ee+(de-Ee)*(6*me):me<1/2?de:me<2/3?Ee+(de-Ee)*(2/3-me)*6:Ee}function t(Ee,de,me){var Le,tt,At;if(Ee=y(Ee,360),de=y(de,100),me=y(me,100),de===0)tt=me,At=me,Le=me;else{var ht=me<.5?me*(1+de):me+de-me*de,Ke=2*me-ht;Le=i(Ke,ht,Ee+1/3),tt=i(Ke,ht,Ee),At=i(Ke,ht,Ee-1/3)}return{r:Le*255,g:tt*255,b:At*255}}function o(Ee,de,me){Ee=y(Ee,255),de=y(de,255),me=y(me,255);var Le=Math.max(Ee,de,me),tt=Math.min(Ee,de,me),At=0,ht=Le,Ke=Le-tt,Jt=Le===0?0:Ke/Le;if(Le===tt)At=0;else{switch(Le){case Ee:At=(de-me)/Ke+(de<me?6:0);break;case de:At=(me-Ee)/Ke+2;break;case me:At=(Ee-de)/Ke+4;break;default:break}At/=6}return{h:At,s:Jt,v:ht}}function e(Ee,de,me){Ee=y(Ee,360)*6,de=y(de,100),me=y(me,100);var Le=Math.floor(Ee),tt=Ee-Le,At=me*(1-de),ht=me*(1-tt*de),Ke=me*(1-(1-tt)*de),Jt=Le%6,ct=[me,ht,At,At,Ke,me][Jt],Gt=[Ke,me,me,ht,At,At][Jt],dr=[At,At,Ke,me,me,ht][Jt];return{r:ct*255,g:Gt*255,b:dr*255}}function l(Ee,de,me,Le){var tt=[h(Math.round(Ee).toString(16)),h(Math.round(de).toString(16)),h(Math.round(me).toString(16))];return Le&&tt[0].startsWith(tt[0].charAt(1))&&tt[1].startsWith(tt[1].charAt(1))&&tt[2].startsWith(tt[2].charAt(1))?tt[0].charAt(0)+tt[1].charAt(0)+tt[2].charAt(0):tt.join("")}function r(Ee,de,me,Le,tt){var At=[h(Math.round(Ee).toString(16)),h(Math.round(de).toString(16)),h(Math.round(me).toString(16)),h(c(Le))];return tt&&At[0].startsWith(At[0].charAt(1))&&At[1].startsWith(At[1].charAt(1))&&At[2].startsWith(At[2].charAt(1))&&At[3].startsWith(At[3].charAt(1))?At[0].charAt(0)+At[1].charAt(0)+At[2].charAt(0)+At[3].charAt(0):At.join("")}function s(Ee,de,me,Le){var tt=[h(c(Le)),h(Math.round(Ee).toString(16)),h(Math.round(de).toString(16)),h(Math.round(me).toString(16))];return tt.join("")}function c(Ee){return Math.round(parseFloat(Ee)*255).toString(16)}function d(Ee){return g(Ee)/255}function g(Ee){return parseInt(Ee,16)}function v(Ee){return{r:Ee>>16,g:(Ee&65280)>>8,b:Ee&255}}var b={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function S(Ee){var de={r:0,g:0,b:0},me=1,Le=null,tt=null,At=null,ht=!1,Ke=!1;return typeof Ee=="string"&&(Ee=I(Ee)),typeof Ee=="object"&&(R(Ee.r)&&R(Ee.g)&&R(Ee.b)?(de=u(Ee.r,Ee.g,Ee.b),ht=!0,Ke=String(Ee.r).substr(-1)==="%"?"prgb":"rgb"):R(Ee.h)&&R(Ee.s)&&R(Ee.v)?(Le=f(Ee.s),tt=f(Ee.v),de=e(Ee.h,Le,tt),ht=!0,Ke="hsv"):R(Ee.h)&&R(Ee.s)&&R(Ee.l)&&(Le=f(Ee.s),At=f(Ee.l),de=t(Ee.h,Le,At),ht=!0,Ke="hsl"),Object.prototype.hasOwnProperty.call(Ee,"a")&&(me=Ee.a)),me=m(me),{ok:ht,format:Ee.format||Ke,r:Math.min(255,Math.max(de.r,0)),g:Math.min(255,Math.max(de.g,0)),b:Math.min(255,Math.max(de.b,0)),a:me}}var E="[-\\+]?\\d+%?",C="[-\\+]?\\d*\\.\\d+%?",_="(?:".concat(C,")|(?:").concat(E,")"),T="[\\s|\\(]+(".concat(_,")[,|\\s]+(").concat(_,")[,|\\s]+(").concat(_,")\\s*\\)?"),w="[\\s|\\(]+(".concat(_,")[,|\\s]+(").concat(_,")[,|\\s]+(").concat(_,")[,|\\s]+(").concat(_,")\\s*\\)?"),O={CSS_UNIT:new RegExp(_),rgb:new RegExp("rgb"+T),rgba:new RegExp("rgba"+w),hsl:new RegExp("hsl"+T),hsla:new RegExp("hsla"+w),hsv:new RegExp("hsv"+T),hsva:new RegExp("hsva"+w),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function I(Ee){if(Ee=Ee.trim().toLowerCase(),Ee.length===0)return!1;var de=!1;if(b[Ee])Ee=b[Ee],de=!0;else if(Ee==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var me=O.rgb.exec(Ee);return me?{r:me[1],g:me[2],b:me[3]}:(me=O.rgba.exec(Ee),me?{r:me[1],g:me[2],b:me[3],a:me[4]}:(me=O.hsl.exec(Ee),me?{h:me[1],s:me[2],l:me[3]}:(me=O.hsla.exec(Ee),me?{h:me[1],s:me[2],l:me[3],a:me[4]}:(me=O.hsv.exec(Ee),me?{h:me[1],s:me[2],v:me[3]}:(me=O.hsva.exec(Ee),me?{h:me[1],s:me[2],v:me[3],a:me[4]}:(me=O.hex8.exec(Ee),me?{r:g(me[1]),g:g(me[2]),b:g(me[3]),a:d(me[4]),format:de?"name":"hex8"}:(me=O.hex6.exec(Ee),me?{r:g(me[1]),g:g(me[2]),b:g(me[3]),format:de?"name":"hex"}:(me=O.hex4.exec(Ee),me?{r:g(me[1]+me[1]),g:g(me[2]+me[2]),b:g(me[3]+me[3]),a:d(me[4]+me[4]),format:de?"name":"hex8"}:(me=O.hex3.exec(Ee),me?{r:g(me[1]+me[1]),g:g(me[2]+me[2]),b:g(me[3]+me[3]),format:de?"name":"hex"}:!1)))))))))}function R(Ee){return Boolean(O.CSS_UNIT.exec(String(Ee)))}var M=2,F=.16,P=.05,X=.05,B=.15,j=5,W=4,z=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function V(Ee){var de=Ee.r,me=Ee.g,Le=Ee.b,tt=o(de,me,Le);return{h:tt.h*360,s:tt.s,v:tt.v}}function Q(Ee){var de=Ee.r,me=Ee.g,Le=Ee.b;return"#".concat(l(de,me,Le,!1))}function G(Ee,de,me){var Le=me/100,tt={r:(de.r-Ee.r)*Le+Ee.r,g:(de.g-Ee.g)*Le+Ee.g,b:(de.b-Ee.b)*Le+Ee.b};return tt}function ee(Ee,de,me){var Le;return Math.round(Ee.h)>=60&&Math.round(Ee.h)<=240?Le=me?Math.round(Ee.h)-M*de:Math.round(Ee.h)+M*de:Le=me?Math.round(Ee.h)+M*de:Math.round(Ee.h)-M*de,Le<0?Le+=360:Le>=360&&(Le-=360),Le}function ce(Ee,de,me){if(Ee.h===0&&Ee.s===0)return Ee.s;var Le;return me?Le=Ee.s-F*de:de===W?Le=Ee.s+F:Le=Ee.s+P*de,Le>1&&(Le=1),me&&de===j&&Le>.1&&(Le=.1),Le<.06&&(Le=.06),Number(Le.toFixed(2))}function be(Ee,de,me){var Le;return me?Le=Ee.v+X*de:Le=Ee.v-B*de,Le>1&&(Le=1),Number(Le.toFixed(2))}function le(Ee){for(var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me=[],Le=S(Ee),tt=j;tt>0;tt-=1){var At=V(Le),ht=Q(S({h:ee(At,tt,!0),s:ce(At,tt,!0),v:be(At,tt,!0)}));me.push(ht)}me.push(Q(Le));for(var Ke=1;Ke<=W;Ke+=1){var Jt=V(Le),ct=Q(S({h:ee(Jt,Ke),s:ce(Jt,Ke),v:be(Jt,Ke)}));me.push(ct)}return de.theme==="dark"?z.map(function(Gt){var dr=Gt.index,zt=Gt.opacity,kt=Q(G(S(de.backgroundColor||"#141414"),S(me[dr]),zt*100));return kt}):me}var Ie={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},ke={},Re={};Object.keys(Ie).forEach(function(Ee){ke[Ee]=le(Ie[Ee]),ke[Ee].primary=ke[Ee][5],Re[Ee]=le(Ie[Ee],{theme:"dark",backgroundColor:"#141414"}),Re[Ee].primary=Re[Ee][5]});var Qe=ke.red,We=ke.volcano,ot=ke.gold,Oe=ke.orange,oe=ke.yellow,st=ke.lime,he=ke.green,J=ke.cyan,Y=ke.blue,$=ke.geekblue,fe=ke.purple,we=ke.magenta,Ne=ke.grey},ALo7:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("5GtS"),A=n("4NO4"),m=A.defaultEmphasis,f=n("D5nY"),h=f.makeSeriesEncodeForNameBased,u=n("xKMd"),a=y.extendSeriesModel({type:"series.funnel",init:function(t){a.superApply(this,"init",arguments),this.legendVisualProvider=new u(p.bind(this.getData,this),p.bind(this.getRawData,this)),this._defaultLabelLine(t)},getInitialData:function(t,o){return x(this,{coordDimensions:["value"],encodeDefaulter:p.curry(h,this)})},_defaultLabelLine:function(t){m(t,"labelLine",["show"]);var o=t.labelLine,e=t.emphasis.labelLine;o.show=o.show&&t.label.show,e.show=e.show&&t.emphasis.label.show},getDataParams:function(t){var o=this.getData(),e=a.superCall(this,"getDataParams",t),l=o.mapDimension("value"),r=o.getSum(l);return e.percent=r?+(o.get(l,t)/r*100).toFixed(2):0,e.$vars.push("percent"),e},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),i=a;k.exports=i},ALsQ:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("OLod"))})(this,function(y){return y.mode.CFB=function(){var p=y.lib.BlockCipherMode.extend();p.Encryptor=p.extend({processBlock:function(m,f){var h=this._cipher,u=h.blockSize;x.call(this,m,f,u,h),this._prevBlock=m.slice(f,f+u)}}),p.Decryptor=p.extend({processBlock:function(m,f){var h=this._cipher,u=h.blockSize,a=m.slice(f,f+u);x.call(this,m,f,u,h),this._prevBlock=a}});function x(A,m,f,h){var u,a=this._iv;a?(u=a.slice(0),this._iv=void 0):u=this._prevBlock,h.encryptBlock(u,0);for(var i=0;i<f;i++)A[m+i]^=u[i]}return p}(),y.mode.CFB})},ANjR:function(k,D,n){var y=n("bYtY");function p(A,m){return m=m||[0,0],y.map([0,1],function(f){var h=m[f],u=A[f]/2,a=[],i=[];return a[f]=h-u,i[f]=h+u,a[1-f]=i[1-f]=m[1-f],Math.abs(this.dataToPoint(a)[f]-this.dataToPoint(i)[f])},this)}function x(A){var m=A.getBoundingRect();return{coordSys:{type:"geo",x:m.x,y:m.y,width:m.width,height:m.height,zoom:A.getZoom()},api:{coord:function(f){return A.dataToPoint(f)},size:y.bind(p,A)}}}k.exports=x},AOa7:function(k,D,n){},AUH6:function(k,D,n){var y=n("bYtY"),p=n("mFDi"),x=n("bMXI"),A=n("W4dC");function m(u,a,i,t){x.call(this,u),this.map=a;var o=A.load(a,i);this._nameCoordMap=o.nameCoordMap,this._regionsMap=o.regionsMap,this._invertLongitute=t==null?!0:t,this.regions=o.regions,this._rect=o.boundingRect}m.prototype={constructor:m,type:"geo",dimensions:["lng","lat"],containCoord:function(u){for(var a=this.regions,i=0;i<a.length;i++)if(a[i].contain(u))return!0;return!1},transformTo:function(u,a,i,t){var o=this.getBoundingRect(),e=this._invertLongitute;o=o.clone(),e&&(o.y=-o.y-o.height);var l=this._rawTransformable;if(l.transform=o.calculateTransform(new p(u,a,i,t)),l.decomposeTransform(),e){var r=l.scale;r[1]=-r[1]}l.updateTransform(),this._updateTransform()},getRegion:function(u){return this._regionsMap.get(u)},getRegionByCoord:function(u){for(var a=this.regions,i=0;i<a.length;i++)if(a[i].contain(u))return a[i]},addGeoCoord:function(u,a){this._nameCoordMap.set(u,a)},getGeoCoord:function(u){return this._nameCoordMap.get(u)},getBoundingRect:function(){return this._rect},dataToPoint:function(u,a,i){if(typeof u=="string"&&(u=this.getGeoCoord(u)),u)return x.prototype.dataToPoint.call(this,u,a,i)},convertToPixel:y.curry(f,"dataToPoint"),convertFromPixel:y.curry(f,"pointToData")},y.mixin(m,x);function f(u,a,i,t){var o=i.geoModel,e=i.seriesModel,l=o?o.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return l===this?l[u](t):null}var h=m;k.exports=h},AVZG:function(k,D,n){var y=n("bYtY");function p(x,A,m){m=m||{};var f=x.coordinateSystem,h=A.axis,u={},a=h.getAxesOnZeroOf()[0],i=h.position,t=a?"onZero":i,o=h.dim,e=f.getRect(),l=[e.x,e.x+e.width,e.y,e.y+e.height],r={left:0,right:1,top:0,bottom:1,onZero:2},s=A.get("offset")||0,c=o==="x"?[l[2]-s,l[3]+s]:[l[0]-s,l[1]+s];if(a){var d=a.toGlobalCoord(a.dataToCoord(0));c[r.onZero]=Math.max(Math.min(d,c[1]),c[0])}u.position=[o==="y"?c[r[t]]:l[0],o==="x"?c[r[t]]:l[3]],u.rotation=Math.PI/2*(o==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};u.labelDirection=u.tickDirection=u.nameDirection=g[i],u.labelOffset=a?c[r[i]]-c[r.onZero]:0,A.get("axisTick.inside")&&(u.tickDirection=-u.tickDirection),y.retrieve(m.labelInside,A.get("axisLabel.inside"))&&(u.labelDirection=-u.labelDirection);var v=A.get("axisLabel.rotate");return u.labelRotate=t==="top"?-v:v,u.z2=1,u}D.layout=p},"Ae+d":function(k,D){function n(p,x,A){var m=p.target,f=m.position;f[0]+=x,f[1]+=A,m.dirty()}function y(p,x,A,m){var f=p.target,h=p.zoomLimit,u=f.position,a=f.scale,i=p.zoom=p.zoom||1;if(i*=x,h){var t=h.min||0,o=h.max||Infinity;i=Math.max(Math.min(o,i),t)}var e=i/p.zoom;p.zoom=i,u[0]-=(A-u[0])*(e-1),u[1]-=(m-u[1])*(e-1),a[0]*=e,a[1]*=e,f.dirty()}D.updateViewOnPan=n,D.updateViewOnZoom=y},Ae16:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("IwbS");n("Wqna"),n("rySg"),y.extendComponentView({type:"grid",render:function(A,m){this.group.removeAll(),A.get("show")&&this.group.add(new x.Rect({shape:A.coordinateSystem.getRect(),style:p.defaults({fill:A.get("backgroundColor")},A.getItemStyle()),silent:!0,z2:-1}))}}),y.registerPreprocessor(function(A){A.xAxis&&A.yAxis&&!A.grid&&(A.grid={})})},Awhp:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("PQMj"),A=n.n(x)},"B+YJ":function(k,D,n){n("TYVI"),n("p1MT")},"B6l+":function(k,D,n){var y=n("Sq3C"),p=n("Z1HP"),x=n("Sxd8"),A=n("dt0z");function m(f,h,u){f=A(f),h=x(h);var a=h?p(f):0;return h&&a<h?f+y(h-a,u):f}k.exports=m},B8du:function(k,D){function n(){return!1}k.exports=n},B9cy:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("0XgM"),A=n.n(x)},B9fm:function(k,D,n){var y=n("bYtY"),p=n("Qe9p"),x=n("YH21"),A=n("Ze12"),m=n("ItGF"),f=n("7aKB"),h=y.each,u=f.toCamelCase,a=["","-webkit-","-moz-","-o-"],i="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function t(c){var d="cubic-bezier(0.23, 1, 0.32, 1)",g="left "+c+"s "+d+",top "+c+"s "+d;return y.map(a,function(v){return v+"transition:"+g}).join(";")}function o(c){var d=[],g=c.get("fontSize"),v=c.getTextColor();return v&&d.push("color:"+v),d.push("font:"+c.getFont()),g&&d.push("line-height:"+Math.round(g*3/2)+"px"),h(["decoration","align"],function(b){var S=c.get(b);S&&d.push("text-"+b+":"+S)}),d.join(";")}function e(c){var d=[],g=c.get("transitionDuration"),v=c.get("backgroundColor"),b=c.getModel("textStyle"),S=c.get("padding");return g&&d.push(t(g)),v&&(m.canvasSupported?d.push("background-Color:"+v):(d.push("background-Color:#"+p.toHex(v)),d.push("filter:alpha(opacity=70)"))),h(["width","color","radius"],function(E){var C="border-"+E,_=u(C),T=c.get(_);T!=null&&d.push(C+":"+T+(E==="color"?"":"px"))}),d.push(o(b)),S!=null&&d.push("padding:"+f.normalizeCssArray(S).join("px ")+"px"),d.join(";")+";"}function l(c,d,g,v,b){var S=d&&d.painter;if(g){var E=S&&S.getViewportRoot();E&&A.transformLocalCoord(c,E,document.body,v,b)}else{c[0]=v,c[1]=b;var C=S&&S.getViewportRootOffset();C&&(c[0]+=C.offsetLeft,c[1]+=C.offsetTop)}}function r(c,d,g){if(m.wxa)return null;var v=document.createElement("div");v.domBelongToZr=!0,this.el=v;var b=this._zr=d.getZr(),S=this._appendToBody=g&&g.appendToBody;this._styleCoord=[0,0],l(this._styleCoord,b,S,d.getWidth()/2,d.getHeight()/2),S?document.body.appendChild(v):c.appendChild(v),this._container=c,this._show=!1,this._hideTimeout;var E=this;v.onmouseenter=function(){E._enterable&&(clearTimeout(E._hideTimeout),E._show=!0),E._inContent=!0},v.onmousemove=function(C){if(C=C||window.event,!E._enterable){var _=b.handler,T=b.painter.getViewportRoot();x.normalizeEvent(T,C,!0),_.dispatch("mousemove",C)}},v.onmouseleave=function(){E._enterable&&(E._show&&E.hideLater(E._hideDelay)),E._inContent=!1}}r.prototype={constructor:r,_enterable:!0,update:function(){var c=this._container,d=c.currentStyle||document.defaultView.getComputedStyle(c),g=c.style;g.position!=="absolute"&&d.position!=="absolute"&&(g.position="relative")},show:function(c){clearTimeout(this._hideTimeout);var d=this.el,g=this._styleCoord;d.style.cssText=i+e(c)+";left:"+g[0]+"px;top:"+g[1]+"px;"+(c.get("extraCssText")||""),d.style.display=d.innerHTML?"block":"none",d.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(c){this.el.innerHTML=c==null?"":c},setEnterable:function(c){this._enterable=c},getSize:function(){var c=this.el;return[c.clientWidth,c.clientHeight]},moveTo:function(c,d){var g=this._styleCoord;l(g,this._zr,this._appendToBody,c,d);var v=this.el.style;v.left=g[0]+"px",v.top=g[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(c){this._show&&!(this._inContent&&this._enterable)&&(c?(this._hideDelay=c,this._show=!1,this._hideTimeout=setTimeout(y.bind(this.hide,this),c)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var c=this.el.clientWidth,d=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var g=document.defaultView.getComputedStyle(this.el);g&&(c+=parseInt(g.borderLeftWidth,10)+parseInt(g.borderRightWidth,10),d+=parseInt(g.borderTopWidth,10)+parseInt(g.borderBottomWidth,10))}return{width:c,height:d}}};var s=r;k.exports=s},BPZU:function(k,D){var n=32,y=7,p=256;function x(t){for(var o=0;t>=n;)o|=t&1,t>>=1;return t+o}function A(t,o,e,l){var r=o+1;if(r===e)return 1;if(l(t[r++],t[o])<0){for(;r<e&&l(t[r],t[r-1])<0;)r++;m(t,o,r)}else for(;r<e&&l(t[r],t[r-1])>=0;)r++;return r-o}function m(t,o,e){for(e--;o<e;){var l=t[o];t[o++]=t[e],t[e--]=l}}function f(t,o,e,l,r){for(l===o&&l++;l<e;l++){for(var s=t[l],c=o,d=l,g;c<d;)g=c+d>>>1,r(s,t[g])<0?d=g:c=g+1;var v=l-c;switch(v){case 3:t[c+3]=t[c+2];case 2:t[c+2]=t[c+1];case 1:t[c+1]=t[c];break;default:for(;v>0;)t[c+v]=t[c+v-1],v--}t[c]=s}}function h(t,o,e,l,r,s){var c=0,d=0,g=1;if(s(t,o[e+r])>0){for(d=l-r;g<d&&s(t,o[e+r+g])>0;)c=g,g=(g<<1)+1,g<=0&&(g=d);g>d&&(g=d),c+=r,g+=r}else{for(d=r+1;g<d&&s(t,o[e+r-g])<=0;)c=g,g=(g<<1)+1,g<=0&&(g=d);g>d&&(g=d);var v=c;c=r-g,g=r-v}for(c++;c<g;){var b=c+(g-c>>>1);s(t,o[e+b])>0?c=b+1:g=b}return g}function u(t,o,e,l,r,s){var c=0,d=0,g=1;if(s(t,o[e+r])<0){for(d=r+1;g<d&&s(t,o[e+r-g])<0;)c=g,g=(g<<1)+1,g<=0&&(g=d);g>d&&(g=d);var v=c;c=r-g,g=r-v}else{for(d=l-r;g<d&&s(t,o[e+r+g])>=0;)c=g,g=(g<<1)+1,g<=0&&(g=d);g>d&&(g=d),c+=r,g+=r}for(c++;c<g;){var b=c+(g-c>>>1);s(t,o[e+b])<0?g=b:c=b+1}return g}function a(t,o){var e=y,l=0,r=p,s=0,c,d,g=0;l=t.length,l<2*p&&(r=l>>>1);var v=[];s=l<120?5:l<1542?10:l<119151?19:40,c=[],d=[];function b(w,O){c[g]=w,d[g]=O,g+=1}function S(){for(;g>1;){var w=g-2;if(w>=1&&d[w-1]<=d[w]+d[w+1]||w>=2&&d[w-2]<=d[w]+d[w-1])d[w-1]<d[w+1]&&w--;else if(d[w]>d[w+1])break;C(w)}}function E(){for(;g>1;){var w=g-2;w>0&&d[w-1]<d[w+1]&&w--,C(w)}}function C(w){var O=c[w],I=d[w],R=c[w+1],M=d[w+1];d[w]=I+M,w===g-3&&(c[w+1]=c[w+2],d[w+1]=d[w+2]),g--;var F=u(t[R],t,O,I,0,o);if(O+=F,I-=F,I===0)return;if(M=h(t[O+I-1],t,R,M,M-1,o),M===0)return;I<=M?_(O,I,R,M):T(O,I,R,M)}function _(w,O,I,R){var M=0;for(M=0;M<O;M++)v[M]=t[w+M];var F=0,P=I,X=w;if(t[X++]=t[P++],--R===0){for(M=0;M<O;M++)t[X+M]=v[F+M];return}if(O===1){for(M=0;M<R;M++)t[X+M]=t[P+M];t[X+R]=v[F];return}for(var B=e,j,W,z;;){j=0,W=0,z=!1;do if(o(t[P],v[F])<0){if(t[X++]=t[P++],W++,j=0,--R===0){z=!0;break}}else if(t[X++]=v[F++],j++,W=0,--O===1){z=!0;break}while((j|W)<B);if(z)break;do{if(j=u(t[P],v,F,O,0,o),j!==0){for(M=0;M<j;M++)t[X+M]=v[F+M];if(X+=j,F+=j,O-=j,O<=1){z=!0;break}}if(t[X++]=t[P++],--R===0){z=!0;break}if(W=h(v[F],t,P,R,0,o),W!==0){for(M=0;M<W;M++)t[X+M]=t[P+M];if(X+=W,P+=W,R-=W,R===0){z=!0;break}}if(t[X++]=v[F++],--O===1){z=!0;break}B--}while(j>=y||W>=y);if(z)break;B<0&&(B=0),B+=2}if(e=B,e<1&&(e=1),O===1){for(M=0;M<R;M++)t[X+M]=t[P+M];t[X+R]=v[F]}else{if(O===0)throw new Error;for(M=0;M<O;M++)t[X+M]=v[F+M]}}function T(w,O,I,R){var M=0;for(M=0;M<R;M++)v[M]=t[I+M];var F=w+O-1,P=R-1,X=I+R-1,B=0,j=0;if(t[X--]=t[F--],--O===0){for(B=X-(R-1),M=0;M<R;M++)t[B+M]=v[M];return}if(R===1){for(X-=O,F-=O,j=X+1,B=F+1,M=O-1;M>=0;M--)t[j+M]=t[B+M];t[X]=v[P];return}for(var W=e;;){var z=0,V=0,Q=!1;do if(o(v[P],t[F])<0){if(t[X--]=t[F--],z++,V=0,--O===0){Q=!0;break}}else if(t[X--]=v[P--],V++,z=0,--R===1){Q=!0;break}while((z|V)<W);if(Q)break;do{if(z=O-u(v[P],t,w,O,O-1,o),z!==0){for(X-=z,F-=z,O-=z,j=X+1,B=F+1,M=z-1;M>=0;M--)t[j+M]=t[B+M];if(O===0){Q=!0;break}}if(t[X--]=v[P--],--R===1){Q=!0;break}if(V=R-h(t[F],v,0,R,R-1,o),V!==0){for(X-=V,P-=V,R-=V,j=X+1,B=P+1,M=0;M<V;M++)t[j+M]=v[B+M];if(R<=1){Q=!0;break}}if(t[X--]=t[F--],--O===0){Q=!0;break}W--}while(z>=y||V>=y);if(Q)break;W<0&&(W=0),W+=2}if(e=W,e<1&&(e=1),R===1){for(X-=O,F-=O,j=X+1,B=F+1,M=O-1;M>=0;M--)t[j+M]=t[B+M];t[X]=v[P]}else{if(R===0)throw new Error;for(B=X-(R-1),M=0;M<R;M++)t[B+M]=v[M]}}this.mergeRuns=S,this.forceMergeRuns=E,this.pushRun=b}function i(t,o,e,l){e||(e=0),l||(l=t.length);var r=l-e;if(r<2)return;var s=0;if(r<n){s=A(t,e,l,o),f(t,e,l,e+s,o);return}var c=new a(t,o),d=x(r);do{if(s=A(t,e,l,o),s<d){var g=r;g>d&&(g=d),f(t,e,e+g,e+s,o),s=g}c.pushRun(e,s),c.mergeRuns(),r-=s,e+=s}while(r!==0);c.forceMergeRuns()}k.exports=i},Bd2K:function(k,D,n){(function(y){y(n("VrN/"),n("osHv"))})(function(y){y.defineOption("autoCloseTags",!1,function(a,i,t){if(t!=y.Init&&t&&a.removeKeyMap("autoCloseTags"),!i)return;var o={name:"autoCloseTags"};(typeof i!="object"||i.whenClosing!==!1)&&(o["'/'"]=function(e){return f(e)}),(typeof i!="object"||i.whenOpening!==!1)&&(o["'>'"]=function(e){return A(e)}),a.addKeyMap(o)});var p=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],x=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function A(a){if(a.getOption("disableInput"))return y.Pass;for(var i=a.listSelections(),t=[],o=a.getOption("autoCloseTags"),e=0;e<i.length;e++){if(!i[e].empty())return y.Pass;var l=i[e].head,r=a.getTokenAt(l),s=y.innerMode(a.getMode(),r.state),c=s.state,d=s.mode.xmlCurrentTag&&s.mode.xmlCurrentTag(c),g=d&&d.name;if(!g)return y.Pass;var v=s.mode.configuration=="html",b=typeof o=="object"&&o.dontCloseTags||v&&p,S=typeof o=="object"&&o.indentTags||v&&x;r.end>l.ch&&(g=g.slice(0,g.length-r.end+l.ch));var E=g.toLowerCase();if(!g||r.type=="string"&&(r.end!=l.ch||!/[\"\']/.test(r.string.charAt(r.string.length-1))||r.string.length==1)||r.type=="tag"&&d.close||r.string.indexOf("/")==l.ch-r.start-1||b&&h(b,E)>-1||u(a,s.mode.xmlCurrentContext&&s.mode.xmlCurrentContext(c)||[],g,l,!0))return y.Pass;var C=typeof o=="object"&&o.emptyTags;if(C&&h(C,g)>-1){t[e]={text:"/>",newPos:y.Pos(l.line,l.ch+2)};continue}var _=S&&h(S,E)>-1;t[e]={indent:_,text:">"+(_?`
|
|
|
|
|
|
`:"")+"</"+g+">",newPos:_?y.Pos(l.line+1,0):y.Pos(l.line,l.ch+1)}}for(var T=typeof o=="object"&&o.dontIndentOnAutoClose,e=i.length-1;e>=0;e--){var w=t[e];a.replaceRange(w.text,i[e].head,i[e].anchor,"+insert");var O=a.listSelections().slice(0);O[e]={head:w.newPos,anchor:w.newPos},a.setSelections(O),!T&&w.indent&&(a.indentLine(w.newPos.line,null,!0),a.indentLine(w.newPos.line+1,null,!0))}}function m(a,i){for(var t=a.listSelections(),o=[],e=i?"/":"</",l=a.getOption("autoCloseTags"),r=typeof l=="object"&&l.dontIndentOnSlash,s=0;s<t.length;s++){if(!t[s].empty())return y.Pass;var c=t[s].head,d=a.getTokenAt(c),g=y.innerMode(a.getMode(),d.state),v=g.state;if(i&&(d.type=="string"||d.string.charAt(0)!="<"||d.start!=c.ch-1))return y.Pass;var b,S=g.mode.name!="xml"&&a.getMode().name=="htmlmixed";if(S&&g.mode.name=="javascript")b=e+"script";else if(S&&g.mode.name=="css")b=e+"style";else{var E=g.mode.xmlCurrentContext&&g.mode.xmlCurrentContext(v);if(!E||E.length&&u(a,E,E[E.length-1],c))return y.Pass;b=e+E[E.length-1]}a.getLine(c.line).charAt(d.end)!=">"&&(b+=">"),o[s]=b}if(a.replaceSelections(o),t=a.listSelections(),!r)for(var s=0;s<t.length;s++)(s==t.length-1||t[s].head.line<t[s+1].head.line)&&a.indentLine(t[s].head.line)}function f(a){return a.getOption("disableInput")?y.Pass:m(a,!0)}y.commands.closeTag=function(a){return m(a)};function h(a,i){if(a.indexOf)return a.indexOf(i);for(var t=0,o=a.length;t<o;++t)if(a[t]==i)return t;return-1}function u(a,i,t,o,e){if(!y.scanForClosingTag)return!1;var l=Math.min(a.lastLine()+1,o.line+500),r=y.scanForClosingTag(a,o,null,l);if(!r||r.tag!=t)return!1;for(var s=e?1:0,c=i.length-1;c>=0&&i[c]==t;c--)++s;o=r.to;for(var c=1;c<s;c++){var d=y.scanForClosingTag(a,o,null,l);if(!d||d.tag!=t)return!1;o=d.to}return!0}})},BlVb:function(k,D,n){var y=n("hyiK"),p=1e-8;function x(m,f){return Math.abs(m-f)<p}function A(m,f,h){var u=0,a=m[0];if(!a)return!1;for(var i=1;i<m.length;i++){var t=m[i];u+=y(a[0],a[1],t[0],t[1],f,h),a=t}var o=m[0];return(!x(a[0],o[0])||!x(a[1],o[1]))&&(u+=y(a[0],a[1],o[0],o[1],f,h)),u!==0}D.contain=A},BoS7:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("czTT"),A=n.n(x)},Bq2U:function(k,D,n){var y=n("RDYZ"),p=n("Qe9p"),x=n("bYtY"),A=x.isArrayLike,m=Array.prototype.slice;function f(b,S){return b[S]}function h(b,S,E){b[S]=E}function u(b,S,E){return(S-b)*E+b}function a(b,S,E){return E>.5?S:b}function i(b,S,E,C,_){var T=b.length;if(_===1)for(var w=0;w<T;w++)C[w]=u(b[w],S[w],E);else for(var O=T&&b[0].length,w=0;w<T;w++)for(var I=0;I<O;I++)C[w][I]=u(b[w][I],S[w][I],E)}function t(b,S,E){var C=b.length,_=S.length;if(C!==_){var T=C>_;if(T)b.length=_;else for(var w=C;w<_;w++)b.push(E===1?S[w]:m.call(S[w]))}for(var O=b[0]&&b[0].length,w=0;w<b.length;w++)if(E===1)isNaN(b[w])&&(b[w]=S[w]);else for(var I=0;I<O;I++)isNaN(b[w][I])&&(b[w][I]=S[w][I])}function o(b,S,E){if(b===S)return!0;var C=b.length;if(C!==S.length)return!1;if(E===1){for(var _=0;_<C;_++)if(b[_]!==S[_])return!1}else for(var T=b[0].length,_=0;_<C;_++)for(var w=0;w<T;w++)if(b[_][w]!==S[_][w])return!1;return!0}function e(b,S,E,C,_,T,w,O,I){var R=b.length;if(I===1)for(var M=0;M<R;M++)O[M]=l(b[M],S[M],E[M],C[M],_,T,w);else for(var F=b[0].length,M=0;M<R;M++)for(var P=0;P<F;P++)O[M][P]=l(b[M][P],S[M][P],E[M][P],C[M][P],_,T,w)}function l(b,S,E,C,_,T,w){var O=(E-b)*.5,I=(C-S)*.5;return(2*(S-E)+O+I)*w+(-3*(S-E)-2*O-I)*T+O*_+S}function r(b){if(A(b)){var S=b.length;if(A(b[0])){for(var E=[],C=0;C<S;C++)E.push(m.call(b[C]));return E}return m.call(b)}return b}function s(b){return b[0]=Math.floor(b[0]),b[1]=Math.floor(b[1]),b[2]=Math.floor(b[2]),"rgba("+b.join(",")+")"}function c(b){var S=b[b.length-1].value;return A(S&&S[0])?2:1}function d(b,S,E,C,_,T){var w=b._getter,O=b._setter,I=S==="spline",R=C.length;if(!R)return;var M=C[0].value,F=A(M),P=!1,X=!1,B=F?c(C):0,j;C.sort(function(J,Y){return J.time-Y.time}),j=C[R-1].time;for(var W=[],z=[],V=C[0].value,Q=!0,G=0;G<R;G++){W.push(C[G].time/j);var ee=C[G].value;if(F&&o(ee,V,B)||!F&&ee===V||(Q=!1),V=ee,typeof ee=="string"){var ce=p.parse(ee);ce?(ee=ce,P=!0):X=!0}z.push(ee)}if(!T&&Q)return;for(var be=z[R-1],G=0;G<R-1;G++)F?t(z[G],be,B):isNaN(z[G])&&!isNaN(be)&&!X&&!P&&(z[G]=be);F&&t(w(b._target,_),be,B);var le=0,Ie=0,ke,Re,Qe,We,ot,Oe;if(P)var oe=[0,0,0,0];var st=function(Y,$){var fe;if($<0)fe=0;else if($<Ie){for(ke=Math.min(le+1,R-1),fe=ke;fe>=0&&!(W[fe]<=$);fe--);fe=Math.min(fe,R-2)}else{for(fe=le;fe<R&&!(W[fe]>$);fe++);fe=Math.min(fe-1,R-2)}le=fe,Ie=$;var we=W[fe+1]-W[fe];if(we===0)return;if(Re=($-W[fe])/we,I)if(We=z[fe],Qe=z[fe===0?fe:fe-1],ot=z[fe>R-2?R-1:fe+1],Oe=z[fe>R-3?R-1:fe+2],F)e(Qe,We,ot,Oe,Re,Re*Re,Re*Re*Re,w(Y,_),B);else{var Ne;if(P)Ne=e(Qe,We,ot,Oe,Re,Re*Re,Re*Re*Re,oe,1),Ne=s(oe);else{if(X)return a(We,ot,Re);Ne=l(Qe,We,ot,Oe,Re,Re*Re,Re*Re*Re)}O(Y,_,Ne)}else if(F)i(z[fe],z[fe+1],Re,w(Y,_),B);else{var Ne;if(P)i(z[fe],z[fe+1],Re,oe,1),Ne=s(oe);else{if(X)return a(z[fe],z[fe+1],Re);Ne=u(z[fe],z[fe+1],Re)}O(Y,_,Ne)}},he=new y({target:b._target,life:j,loop:b._loop,delay:b._delay,onframe:st,ondestroy:E});return S&&S!=="spline"&&(he.easing=S),he}var g=function(S,E,C,_){this._tracks={},this._target=S,this._loop=E||!1,this._getter=C||f,this._setter=_||h,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};g.prototype={when:function(S,E){var C=this._tracks;for(var _ in E){if(!E.hasOwnProperty(_))continue;if(!C[_]){C[_]=[];var T=this._getter(this._target,_);if(T==null)continue;S!==0&&C[_].push({time:0,value:r(T)})}C[_].push({time:S,value:E[_]})}return this},during:function(S){return this._onframeList.push(S),this},pause:function(){for(var S=0;S<this._clipList.length;S++)this._clipList[S].pause();this._paused=!0},resume:function(){for(var S=0;S<this._clipList.length;S++)this._clipList[S].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var S=this._doneList,E=S.length,C=0;C<E;C++)S[C].call(this)},start:function(S,E){var C=this,_=0,T=function(){_--,_||C._doneCallback()},w;for(var O in this._tracks){if(!this._tracks.hasOwnProperty(O))continue;var I=d(this,S,T,this._tracks[O],O,E);I&&(this._clipList.push(I),_++,this.animation&&this.animation.addClip(I),w=I)}if(w){var R=w.onframe;w.onframe=function(M,F){R(M,F);for(var P=0;P<C._onframeList.length;P++)C._onframeList[P](M,F)}}return _||this._doneCallback(),this},stop:function(S){for(var E=this._clipList,C=this.animation,_=0;_<E.length;_++){var T=E[_];S&&T.onframe(this._target,1),C&&C.removeClip(T)}E.length=0},delay:function(S){return this._delay=S,this},done:function(S){return S&&this._doneList.push(S),this},getClips:function(){return this._clipList}};var v=g;k.exports=v},Bqw1:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{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:"minus-square",theme:"outlined"};D.default=y},Bsck:function(k,D,n){var y=n("bYtY"),p=n("Qxkt"),x=n("Mdki"),A=n("YXkt"),m=n("sdST"),f=function(i,t){this.name=i||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=t};f.prototype={constructor:f,isRemoved:function(){return this.dataIndex<0},eachNode:function(i,t,o){typeof i=="function"&&(o=t,t=i,i=null),i=i||{},y.isString(i)&&(i={order:i});var e=i.order||"preorder",l=this[i.attr||"children"],r;e==="preorder"&&(r=t.call(o,this));for(var s=0;!r&&s<l.length;s++)l[s].eachNode(i,t,o);e==="postorder"&&t.call(o,this)},updateDepthAndHeight:function(i){var t=0;this.depth=i;for(var o=0;o<this.children.length;o++){var e=this.children[o];e.updateDepthAndHeight(i+1),e.height>t&&(t=e.height)}this.height=t+1},getNodeById:function(i){if(this.getId()===i)return this;for(var t=0,o=this.children,e=o.length;t<e;t++){var l=o[t].getNodeById(i);if(l)return l}},contains:function(i){if(i===this)return!0;for(var t=0,o=this.children,e=o.length;t<e;t++){var l=o[t].contains(i);if(l)return l}},getAncestors:function(i){for(var t=[],o=i?this:this.parentNode;o;)t.push(o),o=o.parentNode;return t.reverse(),t},getValue:function(i){var t=this.hostTree.data;return t.get(t.getDimension(i||"value"),this.dataIndex)},setLayout:function(i,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,i,t)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(i){if(this.dataIndex<0)return;var t=this.hostTree,o=t.data.getItemModel(this.dataIndex),e=this.getLevelModel();return e?o.getModel(i,e.getModel(i)):o.getModel(i)},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(i,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,i,t)},getVisual:function(i,t){return this.hostTree.data.getItemVisual(this.dataIndex,i,t)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(i){for(var t=i.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},isDescendantOf:function(i){return i!==this&&i.isAncestorOf(this)}};function h(i,t){this.root,this.data,this._nodes=[],this.hostModel=i,this.levelModels=y.map(t||[],function(o){return new p(o,i,i.ecModel)})}h.prototype={constructor:h,type:"tree",eachNode:function(i,t,o){this.root.eachNode(i,t,o)},getNodeByDataIndex:function(i){var t=this.data.getRawIndex(i);return this._nodes[t]},getNodeByName:function(i){return this.root.getNodeByName(i)},update:function(){for(var i=this.data,t=this._nodes,o=0,e=t.length;o<e;o++)t[o].dataIndex=-1;for(var o=0,e=i.count();o<e;o++)t[i.getRawIndex(o)].dataIndex=o},clearLayouts:function(){this.data.clearItemLayouts()}},h.createTree=function(i,t,o,e){var l=new h(t,o&&o.levels),r=[],s=1;c(i);function c(v,b){var S=v.value;s=Math.max(s,y.isArray(S)?S.length:1),r.push(v);var E=new f(v.name,l);b?u(E,b):l.root=E,l._nodes.push(E);var C=v.children;if(C)for(var _=0;_<C.length;_++)c(C[_],E)}l.root.updateDepthAndHeight(0);var d=m(r,{coordDimensions:["value"],dimensionsCount:s}),g=new A(d,t);return g.initData(r),e&&e(g),x({mainData:g,struct:l,structAttr:"tree"}),l.update(),l};function u(i,t){var o=t.children;if(i.parentNode===t)return;o.push(i),i.parentNode=t}var a=h;k.exports=a},BtR2:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="LikeOutlined";var h=D.a=p.forwardRef(f)},BuqR:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=n("6uqw"),m=n("XxSj"),f=n("YOMW"),h=n("OELB"),u=h.reformIntervals,a=A.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(e,l){a.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var r=this._mode=this._determineMode();i[this._mode].call(this),this._resetSelected(e,l);var s=this.option.categories;this.resetVisual(function(c,d){r==="categories"?(c.mappingMethod="category",c.categories=x.clone(s)):(c.dataExtent=this.getExtent(),c.mappingMethod="piecewise",c.pieceList=x.map(this._pieceList,function(g){var g=x.clone(g);return d!=="inRange"&&(g.visual=null),g}))})},completeVisualOption:function(){var e=this.option,l={},r=m.listVisualTypes(),s=this.isCategory();x.each(e.pieces,function(d){x.each(r,function(g){d.hasOwnProperty(g)&&(l[g]=1)})}),x.each(l,function(d,g){var v=0;x.each(this.stateList,function(b){v|=c(e,b,g)||c(e.target,b,g)},this),!v&&x.each(this.stateList,function(b){(e[b]||(e[b]={}))[g]=f.get(g,b==="inRange"?"active":"inactive",s)})},this);function c(d,g,v){return d&&d[g]&&(x.isObject(d[g])?d[g].hasOwnProperty(v):d[g]===v)}A.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(e,l){var r=this.option,s=this._pieceList,c=(l?r:e).selected||{};if(r.selected=c,x.each(s,function(g,v){var b=this.getSelectedMapKey(g);c.hasOwnProperty(b)||(c[b]=!0)},this),r.selectedMode==="single"){var d=!1;x.each(s,function(g,v){var b=this.getSelectedMapKey(g);c[b]&&(d?c[b]=!1:d=!0)},this)}},getSelectedMapKey:function(e){return this._mode==="categories"?e.value+"":e.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(e){this.option.selected=x.clone(e)},getValueState:function(e){var l=m.findPieceIndex(e,this._pieceList);return l!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[l])]?"inRange":"outOfRange"},findTargetDataIndices:function(e){var l=[];return this.eachTargetSeries(function(r){var s=[],c=r.getData();c.each(this.getDataDimension(c),function(d,g){var v=m.findPieceIndex(d,this._pieceList);v===e&&s.push(g)},this),l.push({seriesId:r.id,dataIndex:s})},this),l},getRepresentValue:function(e){var l;if(this.isCategory())l=e.value;else if(e.value!=null)l=e.value;else{var r=e.interval||[];l=r[0]===-Infinity&&r[1]===Infinity?0:(r[0]+r[1])/2}return l},getVisualMeta:function(e){if(this.isCategory())return;var l=[],r=[],s=this;function c(b,S){var E=s.getRepresentValue({interval:b});S||(S=s.getValueState(E));var C=e(E,S);b[0]===-Infinity?r[0]=C:b[1]===Infinity?r[1]=C:l.push({value:b[0],color:C},{value:b[1],color:C})}var d=this._pieceList.slice();if(!d.length)d.push({interval:[-Infinity,Infinity]});else{var g=d[0].interval[0];g!==-Infinity&&d.unshift({interval:[-Infinity,g]}),g=d[d.length-1].interval[1],g!==Infinity&&d.push({interval:[g,Infinity]})}var v=-Infinity;return x.each(d,function(b){var S=b.interval;S&&(S[0]>v&&c([v,S[0]],"outOfRange"),c(S.slice()),v=S[1])},this),{stops:l,outerColors:r}}}),i={splitNumber:function(){var e=this.option,l=this._pieceList,r=Math.min(e.precision,20),s=this.getExtent(),c=e.splitNumber;c=Math.max(parseInt(c,10),1),e.splitNumber=c;for(var d=(s[1]-s[0])/c;+d.toFixed(r)!==d&&r<5;)r++;e.precision=r,d=+d.toFixed(r),e.minOpen&&l.push({interval:[-Infinity,s[0]],close:[0,0]});for(var g=0,v=s[0];g<c;v+=d,g++){var b=g===c-1?s[1]:v+d;l.push({interval:[v,b],close:[1,1]})}e.maxOpen&&l.push({interval:[s[1],Infinity],close:[0,0]}),u(l),x.each(l,function(S,E){S.index=E,S.text=this.formatValueText(S.interval)},this)},categories:function(){var e=this.option;x.each(e.categories,function(l){this._pieceList.push({text:this.formatValueText(l,!0),value:l})},this),t(e,this._pieceList)},pieces:function(){var e=this.option,l=this._pieceList;x.each(e.pieces,function(r,s){x.isObject(r)||(r={value:r});var c={text:"",index:s};if(r.label!=null&&(c.text=r.label),r.hasOwnProperty("value")){var d=c.value=r.value;c.interval=[d,d],c.close=[1,1]}else{for(var g=c.interval=[],v=c.close=[0,0],b=[1,0,1],S=[-Infinity,Infinity],E=[],C=0;C<2;C++){for(var _=[["gte","gt","min"],["lte","lt","max"]][C],T=0;T<3&&g[C]==null;T++)g[C]=r[_[T]],v[C]=b[T],E[C]=T===2;g[C]==null&&(g[C]=S[C])}E[0]&&g[1]===Infinity&&(v[0]=0),E[1]&&g[0]===-Infinity&&(v[1]=0),g[0]===g[1]&&v[0]&&v[1]&&(c.value=g[0])}c.visual=m.retrieveVisuals(r),l.push(c)},this),t(e,l),u(l),x.each(l,function(r){var s=r.close,c=[["<","\u2264"][s[1]],[">","\u2265"][s[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,c)},this)}};function t(e,l){var r=e.inverse;(e.orient==="vertical"?!r:r)&&l.reverse()}var o=a;k.exports=o},BvKs:function(k,D,n){"use strict";n.d(D,"a",function(){return ur});var y=n("pVnL"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("lwsE"),f=n.n(m),h=n("W8MJ"),u=n.n(h),a=n("7W2i"),i=n.n(a),t=n("LQ03"),o=n.n(t),e=n("q1tI"),l=n("VTBJ"),r=n("1OyB"),s=n("vuIU"),c=n("JX7q"),d=n("Ji7U"),g=n("LK+K"),v=n("I8Z2"),b=n("BGR+"),S=n("wx14"),E=n("rePB"),C=n("4IlW"),_=n("2GS6"),T=n("Gytx"),w=n.n(T),O=n("TSYQ"),I=n.n(O),R=n("U8pU"),M=n("ODXe"),F=/iPhone/i,P=/iPod/i,X=/iPad/i,B=/\bAndroid(?:.+)Mobile\b/i,j=/Android/i,W=/\bAndroid(?:.+)SD4930UR\b/i,z=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,V=/Windows Phone/i,Q=/\bWindows(?:.+)ARM\b/i,G=/BlackBerry/i,ee=/BB10/i,ce=/Opera Mini/i,be=/\b(CriOS|Chrome)(?:.+)Mobile/i,le=/Mobile(?:.+)Firefox\b/i;function Ie(Nt,bt){return Nt.test(bt)}function ke(Nt){var bt=Nt||(typeof navigator!="undefined"?navigator.userAgent:""),gr=bt.split("[FBAN");if(typeof gr[1]!="undefined"){var Yt=gr,Pt=Object(M.a)(Yt,1);bt=Pt[0]}if(gr=bt.split("Twitter"),typeof gr[1]!="undefined"){var rr=gr,Rt=Object(M.a)(rr,1);bt=Rt[0]}var qt={apple:{phone:Ie(F,bt)&&!Ie(V,bt),ipod:Ie(P,bt),tablet:!Ie(F,bt)&&Ie(X,bt)&&!Ie(V,bt),device:(Ie(F,bt)||Ie(P,bt)||Ie(X,bt))&&!Ie(V,bt)},amazon:{phone:Ie(W,bt),tablet:!Ie(W,bt)&&Ie(z,bt),device:Ie(W,bt)||Ie(z,bt)},android:{phone:!Ie(V,bt)&&Ie(W,bt)||!Ie(V,bt)&&Ie(B,bt),tablet:!Ie(V,bt)&&!Ie(W,bt)&&!Ie(B,bt)&&(Ie(z,bt)||Ie(j,bt)),device:!Ie(V,bt)&&(Ie(W,bt)||Ie(z,bt)||Ie(B,bt)||Ie(j,bt))||Ie(/\bokhttp\b/i,bt)},windows:{phone:Ie(V,bt),tablet:Ie(Q,bt),device:Ie(V,bt)||Ie(Q,bt)},other:{blackberry:Ie(G,bt),blackberry10:Ie(ee,bt),opera:Ie(ce,bt),firefox:Ie(le,bt),chrome:Ie(be,bt),device:Ie(G,bt)||Ie(ee,bt)||Ie(ce,bt)||Ie(le,bt)||Ie(be,bt)},any:null,phone:null,tablet:null};return qt.any=qt.apple.device||qt.android.device||qt.windows.device||qt.other.device,qt.phone=qt.apple.phone||qt.android.phone||qt.windows.phone,qt.tablet=qt.apple.tablet||qt.android.tablet||qt.windows.tablet,qt}var Re=Object(l.a)(Object(l.a)({},ke()),{},{isMobile:ke}),Qe=Re;function We(){}function ot(Nt,bt,gr){var Yt=bt||"";return Nt.key||"".concat(Yt,"item_").concat(gr)}function Oe(Nt){return"".concat(Nt,"-menu-")}function oe(Nt,bt){var gr=-1;e.Children.forEach(Nt,function(Yt){gr+=1,Yt&&Yt.type&&Yt.type.isMenuItemGroup?e.Children.forEach(Yt.props.children,function(Pt){gr+=1,bt(Pt,gr)}):bt(Yt,gr)})}function st(Nt,bt,gr){if(!Nt||gr.find)return;e.Children.forEach(Nt,function(Yt){if(Yt){var Pt=Yt.type;if(!Pt||!(Pt.isSubMenu||Pt.isMenuItem||Pt.isMenuItemGroup))return;bt.indexOf(Yt.key)!==-1?gr.find=!0:Yt.props.children&&st(Yt.props.children,bt,gr)}})}var he=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],J=function(bt){var gr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Yt=bt&&typeof bt.getBoundingClientRect=="function"&&bt.getBoundingClientRect().width;if(Yt){if(gr){var Pt=getComputedStyle(bt),rr=Pt.marginLeft,Rt=Pt.marginRight;Yt+=+rr.replace("px","")+ +Rt.replace("px","")}Yt=+Yt.toFixed(6)}return Yt||0},Y=function(bt,gr,Yt){bt&&Object(R.a)(bt.style)==="object"&&(bt.style[gr]=Yt)},$=function(){return Qe.any},fe=n("KQm4"),we=n("Ff2n"),Ne=n("i8i4"),Ee=n("bdgK"),de=n("Uaa1"),me=n("HTfv"),Le={adjustX:1,adjustY:1},tt={topLeft:{points:["bl","tl"],overflow:Le,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Le,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Le,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Le,offset:[4,0]}},At={topLeft:{points:["bl","tl"],overflow:Le,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Le,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Le,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Le,offset:[4,0]}},ht=tt,Ke=0,Jt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ct=function(bt,gr,Yt){var Pt=Oe(gr),rr=bt.getState();bt.setState({defaultActiveFirst:Object(l.a)(Object(l.a)({},rr.defaultActiveFirst),{},Object(E.a)({},Pt,Yt))})},Gt=function(Nt){Object(d.a)(gr,Nt);var bt=Object(g.a)(gr);function gr(Yt){var Pt;Object(r.a)(this,gr),Pt=bt.call(this,Yt),Pt.onDestroy=function(Dr){Pt.props.onDestroy(Dr)},Pt.onKeyDown=function(Dr){var un=Dr.keyCode,wn=Pt.menuInstance,ai=Pt.props,ei=ai.isOpen,gi=ai.store;if(un===C.a.ENTER)return Pt.onTitleClick(Dr),ct(gi,Pt.props.eventKey,!0),!0;if(un===C.a.RIGHT)return ei?wn.onKeyDown(Dr):(Pt.triggerOpenChange(!0),ct(gi,Pt.props.eventKey,!0)),!0;if(un===C.a.LEFT){var Ii;if(ei)Ii=wn.onKeyDown(Dr);else return;return Ii||(Pt.triggerOpenChange(!1),Ii=!0),Ii}return ei&&(un===C.a.UP||un===C.a.DOWN)?wn.onKeyDown(Dr):void 0},Pt.onOpenChange=function(Dr){Pt.props.onOpenChange(Dr)},Pt.onPopupVisibleChange=function(Dr){Pt.triggerOpenChange(Dr,Dr?"mouseenter":"mouseleave")},Pt.onMouseEnter=function(Dr){var un=Pt.props,wn=un.eventKey,ai=un.onMouseEnter,ei=un.store;ct(ei,Pt.props.eventKey,!1),ai({key:wn,domEvent:Dr})},Pt.onMouseLeave=function(Dr){var un=Pt.props,wn=un.parentMenu,ai=un.eventKey,ei=un.onMouseLeave;wn.subMenuInstance=Object(c.a)(Pt),ei({key:ai,domEvent:Dr})},Pt.onTitleMouseEnter=function(Dr){var un=Pt.props,wn=un.eventKey,ai=un.onItemHover,ei=un.onTitleMouseEnter;ai({key:wn,hover:!0}),ei({key:wn,domEvent:Dr})},Pt.onTitleMouseLeave=function(Dr){var un=Pt.props,wn=un.parentMenu,ai=un.eventKey,ei=un.onItemHover,gi=un.onTitleMouseLeave;wn.subMenuInstance=Object(c.a)(Pt),ei({key:ai,hover:!1}),gi({key:ai,domEvent:Dr})},Pt.onTitleClick=function(Dr){var un=Object(c.a)(Pt),wn=un.props;if(wn.onTitleClick({key:wn.eventKey,domEvent:Dr}),wn.triggerSubMenuAction==="hover")return;Pt.triggerOpenChange(!wn.isOpen,"click"),ct(wn.store,Pt.props.eventKey,!1)},Pt.onSubMenuClick=function(Dr){typeof Pt.props.onClick=="function"&&Pt.props.onClick(Pt.addKeyPath(Dr))},Pt.onSelect=function(Dr){Pt.props.onSelect(Dr)},Pt.onDeselect=function(Dr){Pt.props.onDeselect(Dr)},Pt.getPrefixCls=function(){return"".concat(Pt.props.rootPrefixCls,"-submenu")},Pt.getActiveClassName=function(){return"".concat(Pt.getPrefixCls(),"-active")},Pt.getDisabledClassName=function(){return"".concat(Pt.getPrefixCls(),"-disabled")},Pt.getSelectedClassName=function(){return"".concat(Pt.getPrefixCls(),"-selected")},Pt.getOpenClassName=function(){return"".concat(Pt.props.rootPrefixCls,"-submenu-open")},Pt.saveMenuInstance=function(Dr){Pt.menuInstance=Dr},Pt.addKeyPath=function(Dr){return Object(l.a)(Object(l.a)({},Dr),{},{keyPath:(Dr.keyPath||[]).concat(Pt.props.eventKey)})},Pt.triggerOpenChange=function(Dr,un){var wn=Pt.props.eventKey,ai=function(){Pt.onOpenChange({key:wn,item:Object(c.a)(Pt),trigger:un,open:Dr})};un==="mouseenter"?Pt.mouseenterTimeout=setTimeout(function(){ai()},0):ai()},Pt.isChildrenSelected=function(){var Dr={find:!1};return st(Pt.props.children,Pt.props.selectedKeys,Dr),Dr.find},Pt.isOpen=function(){return Pt.props.openKeys.indexOf(Pt.props.eventKey)!==-1},Pt.adjustWidth=function(){if(!Pt.subMenuTitle||!Pt.menuInstance)return;var Dr=Ne.findDOMNode(Pt.menuInstance);if(Dr.offsetWidth>=Pt.subMenuTitle.offsetWidth)return;Dr.style.minWidth="".concat(Pt.subMenuTitle.offsetWidth,"px")},Pt.saveSubMenuTitle=function(Dr){Pt.subMenuTitle=Dr},Pt.getBaseProps=function(){var Dr=Object(c.a)(Pt),un=Dr.props;return{mode:un.mode==="horizontal"?"vertical":un.mode,visible:Pt.props.isOpen,level:un.level+1,inlineIndent:un.inlineIndent,focusable:!1,onClick:Pt.onSubMenuClick,onSelect:Pt.onSelect,onDeselect:Pt.onDeselect,onDestroy:Pt.onDestroy,selectedKeys:un.selectedKeys,eventKey:"".concat(un.eventKey,"-menu-"),openKeys:un.openKeys,motion:un.motion,onOpenChange:Pt.onOpenChange,subMenuOpenDelay:un.subMenuOpenDelay,parentMenu:Object(c.a)(Pt),subMenuCloseDelay:un.subMenuCloseDelay,forceSubMenuRender:un.forceSubMenuRender,triggerSubMenuAction:un.triggerSubMenuAction,builtinPlacements:un.builtinPlacements,defaultActiveFirst:un.store.getState().defaultActiveFirst[Oe(un.eventKey)],multiple:un.multiple,prefixCls:un.rootPrefixCls,id:Pt.internalMenuId,manualRef:Pt.saveMenuInstance,itemIcon:un.itemIcon,expandIcon:un.expandIcon,direction:un.direction}},Pt.getMotion=function(Dr,un){var wn=Object(c.a)(Pt),ai=wn.haveRendered,ei=Pt.props,gi=ei.motion,Ii=ei.rootPrefixCls,ki=Object(l.a)(Object(l.a)({},gi),{},{leavedClassName:"".concat(Ii,"-hidden"),removeOnLeave:!1,motionAppear:ai||!un||Dr!=="inline"});return ki};var rr=Yt.store,Rt=Yt.eventKey,qt=rr.getState(),Yr=qt.defaultActiveFirst;Pt.isRootMenu=!1;var Mr=!1;return Yr&&(Mr=Yr[Rt]),ct(rr,Rt,Mr),Pt}return Object(s.a)(gr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Pt=this,rr=this.props,Rt=rr.mode,qt=rr.parentMenu,Yr=rr.manualRef;if(Yr&&Yr(this),Rt!=="horizontal"||!qt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Pt.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Pt=this.props,rr=Pt.onDestroy,Rt=Pt.eventKey;rr&&rr(Rt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Pt){var rr=this,Rt=this.getBaseProps(),qt=this.getMotion(Rt.mode,Rt.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Rt.visible||Rt.forceSubMenuRender,!this.haveOpened)return e.createElement("div",null);var Yr=Rt.direction;return e.createElement(me.default,Object.assign({visible:Rt.visible},qt),function(Mr){var Dr=Mr.className,un=Mr.style,wn=I()("".concat(Rt.prefixCls,"-sub"),Dr,Object(E.a)({},"".concat(Rt.prefixCls,"-rtl"),Yr==="rtl"));return e.createElement(or,Object.assign({},Rt,{id:rr.internalMenuId,className:wn,style:un}),Pt)})}},{key:"render",value:function(){var Pt,rr=Object(l.a)({},this.props),Rt=rr.isOpen,qt=this.getPrefixCls(),Yr=rr.mode==="inline",Mr=I()(qt,"".concat(qt,"-").concat(rr.mode),(Pt={},Object(E.a)(Pt,rr.className,!!rr.className),Object(E.a)(Pt,this.getOpenClassName(),Rt),Object(E.a)(Pt,this.getActiveClassName(),rr.active||Rt&&!Yr),Object(E.a)(Pt,this.getDisabledClassName(),rr.disabled),Object(E.a)(Pt,this.getSelectedClassName(),this.isChildrenSelected()),Pt));this.internalMenuId||(rr.eventKey?this.internalMenuId="".concat(rr.eventKey,"$Menu"):(Ke+=1,this.internalMenuId="$__$".concat(Ke,"$Menu")));var Dr={},un={},wn={};rr.disabled||(Dr={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},un={onClick:this.onTitleClick},wn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var ai={},ei=rr.direction;Yr&&(ei==="rtl"?ai.paddingRight=rr.inlineIndent*rr.level:ai.paddingLeft=rr.inlineIndent*rr.level);var gi={};this.props.isOpen&&(gi={"aria-owns":this.internalMenuId});var Ii=null;rr.mode!=="horizontal"&&(Ii=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Ii=e.createElement(this.props.expandIcon,Object(l.a)({},this.props))));var ki=e.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:ai,className:"".concat(qt,"-title"),role:"button"},wn,un,{"aria-expanded":Rt},gi,{"aria-haspopup":"true",title:typeof rr.title=="string"?rr.title:void 0}),rr.title,Ii||e.createElement("i",{className:"".concat(qt,"-arrow")})),Qi=this.renderChildren(rr.children),it=rr.parentMenu.isRootMenu?rr.parentMenu.props.getPopupContainer:function(Xr){return Xr.parentNode},Me=Jt[rr.mode],je=rr.popupOffset?{offset:rr.popupOffset}:{},Ye=rr.mode==="inline"?"":rr.popupClassName;Ye+=ei==="rtl"?" ".concat(qt,"-rtl"):"";var rt=rr.disabled,qe=rr.triggerSubMenuAction,at=rr.subMenuOpenDelay,St=rr.forceSubMenuRender,gt=rr.subMenuCloseDelay,hr=rr.builtinPlacements;he.forEach(function(Xr){return delete rr[Xr]}),delete rr.onClick;var Qr=ei==="rtl"?Object.assign({},At,hr):Object.assign({},tt,hr);return delete rr.direction,e.createElement("li",Object.assign({},rr,Dr,{className:Mr,role:"menuitem"}),Yr&&ki,Yr&&Qi,!Yr&&e.createElement(de.a,{prefixCls:qt,popupClassName:I()("".concat(qt,"-popup"),Ye),getPopupContainer:it,builtinPlacements:Qr,popupPlacement:Me,popupVisible:Rt,popupAlign:je,popup:Qi,action:rt?[]:[qe],mouseEnterDelay:at,mouseLeaveDelay:gt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:St},ki))}}]),gr}(e.Component);Gt.defaultProps={onMouseEnter:We,onMouseLeave:We,onTitleMouseEnter:We,onTitleMouseLeave:We,onTitleClick:We,manualRef:We,mode:"vertical",title:""};var dr=Object(v.b)(function(Nt,bt){var gr=Nt.openKeys,Yt=Nt.activeKey,Pt=Nt.selectedKeys,rr=bt.eventKey,Rt=bt.subMenuKey;return{isOpen:gr.indexOf(rr)>-1,active:Yt[Rt]===rr,selectedKeys:Pt}})(Gt);dr.isSubMenu=!0;var zt=dr,kt="menuitem-overflowed",Vt=.5,Xe=function(Nt){Object(d.a)(gr,Nt);var bt=Object(g.a)(gr);function gr(){var Yt;return Object(r.a)(this,gr),Yt=bt.apply(this,arguments),Yt.resizeObserver=null,Yt.mutationObserver=null,Yt.originalTotalWidth=0,Yt.overflowedItems=[],Yt.menuItemSizes=[],Yt.cancelFrameId=null,Yt.state={lastVisibleIndex:void 0},Yt.getMenuItemNodes=function(){var Pt=Yt.props.prefixCls,rr=Ne.findDOMNode(Object(c.a)(Yt));return rr?[].slice.call(rr.children).filter(function(Rt){return Rt.className.split(" ").indexOf("".concat(Pt,"-overflowed-submenu"))<0}):[]},Yt.getOverflowedSubMenuItem=function(Pt,rr,Rt){var qt=Yt.props,Yr=qt.overflowedIndicator,Mr=qt.level,Dr=qt.mode,un=qt.prefixCls,wn=qt.theme;if(Mr!==1||Dr!=="horizontal")return null;var ai=Yt.props.children[0],ei=ai.props,gi=ei.children,Ii=ei.title,ki=ei.style,Qi=Object(we.a)(ei,["children","title","style"]),it=Object(l.a)({},ki),Me="".concat(Pt,"-overflowed-indicator"),je="".concat(Pt,"-overflowed-indicator");rr.length===0&&Rt!==!0?it=Object(l.a)(Object(l.a)({},it),{},{display:"none"}):Rt&&(it=Object(l.a)(Object(l.a)({},it),{},{visibility:"hidden",position:"absolute"}),Me="".concat(Me,"-placeholder"),je="".concat(je,"-placeholder"));var Ye=wn?"".concat(un,"-").concat(wn):"",rt={};return he.forEach(function(qe){Qi[qe]!==void 0&&(rt[qe]=Qi[qe])}),e.createElement(zt,Object.assign({title:Yr,className:"".concat(un,"-overflowed-submenu"),popupClassName:Ye},rt,{key:Me,eventKey:je,disabled:!1,style:it}),rr)},Yt.setChildrenWidthAndResize=function(){if(Yt.props.mode!=="horizontal")return;var Pt=Ne.findDOMNode(Object(c.a)(Yt));if(!Pt)return;var rr=Pt.children;if(!rr||rr.length===0)return;var Rt=Pt.children[rr.length-1];Y(Rt,"display","inline-block");var qt=Yt.getMenuItemNodes(),Yr=qt.filter(function(Mr){return Mr.className.split(" ").indexOf(kt)>=0});Yr.forEach(function(Mr){Y(Mr,"display","inline-block")}),Yt.menuItemSizes=qt.map(function(Mr){return J(Mr,!0)}),Yr.forEach(function(Mr){Y(Mr,"display","none")}),Yt.overflowedIndicatorWidth=J(Pt.children[Pt.children.length-1],!0),Yt.originalTotalWidth=Yt.menuItemSizes.reduce(function(Mr,Dr){return Mr+Dr},0),Yt.handleResize(),Y(Rt,"display","none")},Yt.handleResize=function(){if(Yt.props.mode!=="horizontal")return;var Pt=Ne.findDOMNode(Object(c.a)(Yt));if(!Pt)return;var rr=J(Pt);Yt.overflowedItems=[];var Rt=0,qt;Yt.originalTotalWidth>rr+Vt&&(qt=-1,Yt.menuItemSizes.forEach(function(Yr){Rt+=Yr,Rt+Yt.overflowedIndicatorWidth<=rr&&(qt+=1)})),Yt.setState({lastVisibleIndex:qt})},Yt}return Object(s.a)(gr,[{key:"componentDidMount",value:function(){var Pt=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var rr=Ne.findDOMNode(this);if(!rr)return;this.resizeObserver=new Ee.default(function(Rt){Rt.forEach(function(){var qt=Pt.cancelFrameId;cancelAnimationFrame(qt),Pt.cancelFrameId=requestAnimationFrame(Pt.setChildrenWidthAndResize)})}),[].slice.call(rr.children).concat(rr).forEach(function(Rt){Pt.resizeObserver.observe(Rt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Pt.resizeObserver.disconnect(),[].slice.call(rr.children).concat(rr).forEach(function(Rt){Pt.resizeObserver.observe(Rt)}),Pt.setChildrenWidthAndResize()}),this.mutationObserver.observe(rr,{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(Pt){var rr=this,Rt=this.state.lastVisibleIndex;return(Pt||[]).reduce(function(qt,Yr,Mr){var Dr=Yr;if(rr.props.mode==="horizontal"){var un=rr.getOverflowedSubMenuItem(Yr.props.eventKey,[]);Rt!==void 0&&rr.props.className.indexOf("".concat(rr.props.prefixCls,"-root"))!==-1&&(Mr>Rt&&(Dr=e.cloneElement(Yr,{style:{display:"none"},eventKey:"".concat(Yr.props.eventKey,"-hidden"),className:"".concat(kt)})),Mr===Rt+1&&(rr.overflowedItems=Pt.slice(Rt+1).map(function(ai){return e.cloneElement(ai,{key:ai.props.eventKey,mode:"vertical-left"})}),un=rr.getOverflowedSubMenuItem(Yr.props.eventKey,rr.overflowedItems)));var wn=[].concat(Object(fe.a)(qt),[un,Dr]);return Mr===Pt.length-1&&wn.push(rr.getOverflowedSubMenuItem(Yr.props.eventKey,[],!0)),wn}return[].concat(Object(fe.a)(qt),[Dr])},[])}},{key:"render",value:function(){var Pt=this.props,rr=Pt.visible,Rt=Pt.prefixCls,qt=Pt.overflowedIndicator,Yr=Pt.mode,Mr=Pt.level,Dr=Pt.tag,un=Pt.children,wn=Pt.theme,ai=Object(we.a)(Pt,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),ei=Dr;return e.createElement(ei,Object.assign({},ai),this.renderChildren(un))}}]),gr}(e.Component);Xe.defaultProps={tag:"div",className:""};var pe=Xe;function te(Nt){return Nt.length?Nt.every(function(bt){return!!bt.props.disabled}):!0}function $e(Nt,bt,gr){var Yt=Nt.getState();Nt.setState({activeKey:Object(l.a)(Object(l.a)({},Yt.activeKey),{},Object(E.a)({},bt,gr))})}function He(Nt){return Nt.eventKey||"0-menu-"}function ae(Nt,bt){var gr=bt,Yt=Nt.children,Pt=Nt.eventKey;if(gr){var rr;if(oe(Yt,function(Rt,qt){Rt&&Rt.props&&!Rt.props.disabled&&gr===ot(Rt,Pt,qt)&&(rr=!0)}),rr)return gr}return gr=null,Nt.defaultActiveFirst&&oe(Yt,function(Rt,qt){!gr&&Rt&&!Rt.props.disabled&&(gr=ot(Rt,Pt,qt))}),gr}function ft(Nt){if(Nt){var bt=this.instanceArray.indexOf(Nt);bt!==-1?this.instanceArray[bt]=Nt:this.instanceArray.push(Nt)}}var Mt=function(Nt){Object(d.a)(gr,Nt);var bt=Object(g.a)(gr);function gr(Yt){var Pt;return Object(r.a)(this,gr),Pt=bt.call(this,Yt),Pt.onKeyDown=function(rr,Rt){var qt=rr.keyCode,Yr;if(Pt.getFlatInstanceArray().forEach(function(Dr){Dr&&Dr.props.active&&Dr.onKeyDown&&(Yr=Dr.onKeyDown(rr))}),Yr)return 1;var Mr=null;return(qt===C.a.UP||qt===C.a.DOWN)&&(Mr=Pt.step(qt===C.a.UP?-1:1)),Mr?(rr.preventDefault(),$e(Pt.props.store,He(Pt.props),Mr.props.eventKey),typeof Rt=="function"&&Rt(Mr),1):void 0},Pt.onItemHover=function(rr){var Rt=rr.key,qt=rr.hover;$e(Pt.props.store,He(Pt.props),qt?Rt:null)},Pt.onDeselect=function(rr){Pt.props.onDeselect(rr)},Pt.onSelect=function(rr){Pt.props.onSelect(rr)},Pt.onClick=function(rr){Pt.props.onClick(rr)},Pt.onOpenChange=function(rr){Pt.props.onOpenChange(rr)},Pt.onDestroy=function(rr){Pt.props.onDestroy(rr)},Pt.getFlatInstanceArray=function(){return Pt.instanceArray},Pt.step=function(rr){var Rt=Pt.getFlatInstanceArray(),qt=Pt.props.store.getState().activeKey[He(Pt.props)],Yr=Rt.length;if(!Yr)return null;rr<0&&(Rt=Rt.concat().reverse());var Mr=-1;if(Rt.every(function(ai,ei){return ai&&ai.props.eventKey===qt?(Mr=ei,!1):!0}),!Pt.props.defaultActiveFirst&&Mr!==-1&&te(Rt.slice(Mr,Yr-1)))return;var Dr=(Mr+1)%Yr,un=Dr;do{var wn=Rt[un];if(!wn||wn.props.disabled)un=(un+1)%Yr;else return wn}while(un!==Dr);return null},Pt.renderCommonMenuItem=function(rr,Rt,qt){var Yr=Pt.props.store.getState(),Mr=Object(c.a)(Pt),Dr=Mr.props,un=ot(rr,Dr.eventKey,Rt),wn=rr.props;if(!wn||typeof rr.type=="string")return rr;var ai=un===Yr.activeKey,ei=Object(l.a)(Object(l.a)({mode:wn.mode||Dr.mode,level:Dr.level,inlineIndent:Dr.inlineIndent,renderMenuItem:Pt.renderMenuItem,rootPrefixCls:Dr.prefixCls,index:Rt,parentMenu:Dr.parentMenu,manualRef:wn.disabled?void 0:Object(_.a)(rr.ref,ft.bind(Object(c.a)(Pt))),eventKey:un,active:!wn.disabled&&ai,multiple:Dr.multiple,onClick:function(Ii){(wn.onClick||We)(Ii),Pt.onClick(Ii)},onItemHover:Pt.onItemHover,motion:Dr.motion,subMenuOpenDelay:Dr.subMenuOpenDelay,subMenuCloseDelay:Dr.subMenuCloseDelay,forceSubMenuRender:Dr.forceSubMenuRender,onOpenChange:Pt.onOpenChange,onDeselect:Pt.onDeselect,onSelect:Pt.onSelect,builtinPlacements:Dr.builtinPlacements,itemIcon:wn.itemIcon||Pt.props.itemIcon,expandIcon:wn.expandIcon||Pt.props.expandIcon},qt),{},{direction:Dr.direction});return(Dr.mode==="inline"||$())&&(ei.triggerSubMenuAction="click"),e.cloneElement(rr,ei)},Pt.renderMenuItem=function(rr,Rt,qt){if(!rr)return null;var Yr=Pt.props.store.getState(),Mr={openKeys:Yr.openKeys,selectedKeys:Yr.selectedKeys,triggerSubMenuAction:Pt.props.triggerSubMenuAction,subMenuKey:qt};return Pt.renderCommonMenuItem(rr,Rt,Mr)},Yt.store.setState({activeKey:Object(l.a)(Object(l.a)({},Yt.store.getState().activeKey),{},Object(E.a)({},Yt.eventKey,ae(Yt,Yt.activeKey)))}),Pt.instanceArray=[],Pt}return Object(s.a)(gr,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Pt){return this.props.visible||Pt.visible||this.props.className!==Pt.className||!w()(this.props.style,Pt.style)}},{key:"componentDidUpdate",value:function(Pt){var rr=this.props,Rt="activeKey"in rr?rr.activeKey:rr.store.getState().activeKey[He(rr)],qt=ae(rr,Rt);if(qt!==Rt)$e(rr.store,He(rr),qt);else if("activeKey"in Pt){var Yr=ae(Pt,Pt.activeKey);qt!==Yr&&$e(rr.store,He(rr),qt)}}},{key:"render",value:function(){var Pt=this,rr=Object(S.a)({},this.props);this.instanceArray=[];var Rt=I()(rr.prefixCls,rr.className,"".concat(rr.prefixCls,"-").concat(rr.mode)),qt={className:Rt,role:rr.role||"menu"};rr.id&&(qt.id=rr.id),rr.focusable&&(qt.tabIndex=0,qt.onKeyDown=this.onKeyDown);var Yr=rr.prefixCls,Mr=rr.eventKey,Dr=rr.visible,un=rr.level,wn=rr.mode,ai=rr.overflowedIndicator,ei=rr.theme;return he.forEach(function(gi){return delete rr[gi]}),delete rr.onClick,e.createElement(pe,Object.assign({},rr,{prefixCls:Yr,mode:wn,tag:"ul",level:un,theme:ei,visible:Dr,overflowedIndicator:ai},qt),e.Children.map(rr.children,function(gi,Ii){return Pt.renderMenuItem(gi,Ii,Mr||"0-menu-")}))}}]),gr}(e.Component);Mt.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:We};var mt=Object(v.b)()(Mt),or=mt,vr=n("Kwbf");function fn(Nt,bt,gr){var Yt=Nt.prefixCls,Pt=Nt.motion,rr=Nt.defaultMotions,Rt=rr===void 0?{}:rr,qt=Nt.openAnimation,Yr=Nt.openTransitionName,Mr=bt.switchingModeFromInline;if(Pt)return Pt;if(Object(R.a)(qt)==="object"&&qt)Object(vr.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof qt=="string")return{motionName:"".concat(Yt,"-open-").concat(qt)};if(Yr)return{motionName:Yr};var Dr=Rt[gr];return Dr||(Mr?null:Rt.other)}var sr=function(Nt){Object(d.a)(gr,Nt);var bt=Object(g.a)(gr);function gr(Yt){var Pt;Object(r.a)(this,gr),Pt=bt.call(this,Yt),Pt.inlineOpenKeys=[],Pt.onSelect=function(qt){var Yr=Object(c.a)(Pt),Mr=Yr.props;if(Mr.selectable){var Dr=Pt.store.getState(),un=Dr.selectedKeys,wn=qt.key;Mr.multiple?un=un.concat([wn]):un=[wn],"selectedKeys"in Mr||Pt.store.setState({selectedKeys:un}),Mr.onSelect(Object(l.a)(Object(l.a)({},qt),{},{selectedKeys:un}))}},Pt.onClick=function(qt){var Yr=Pt.getRealMenuMode(),Mr=Object(c.a)(Pt),Dr=Mr.store,un=Mr.props.onOpenChange;Yr!=="inline"&&!("openKeys"in Pt.props)&&(Dr.setState({openKeys:[]}),un([])),Pt.props.onClick(qt)},Pt.onKeyDown=function(qt,Yr){Pt.innerMenu.getWrappedInstance().onKeyDown(qt,Yr)},Pt.onOpenChange=function(qt){var Yr=Object(c.a)(Pt),Mr=Yr.props,Dr=Pt.store.getState().openKeys.concat(),un=!1,wn=function(ei){var gi=!1;if(ei.open)gi=Dr.indexOf(ei.key)===-1,gi&&Dr.push(ei.key);else{var Ii=Dr.indexOf(ei.key);gi=Ii!==-1,gi&&Dr.splice(Ii,1)}un=un||gi};Array.isArray(qt)?qt.forEach(wn):wn(qt),un&&("openKeys"in Pt.props||Pt.store.setState({openKeys:Dr}),Mr.onOpenChange(Dr))},Pt.onDeselect=function(qt){var Yr=Object(c.a)(Pt),Mr=Yr.props;if(Mr.selectable){var Dr=Pt.store.getState().selectedKeys.concat(),un=qt.key,wn=Dr.indexOf(un);wn!==-1&&Dr.splice(wn,1),"selectedKeys"in Mr||Pt.store.setState({selectedKeys:Dr}),Mr.onDeselect(Object(l.a)(Object(l.a)({},qt),{},{selectedKeys:Dr}))}},Pt.onMouseEnter=function(qt){Pt.restoreModeVerticalFromInline();var Yr=Pt.props.onMouseEnter;Yr&&Yr(qt)},Pt.onTransitionEnd=function(qt){var Yr=qt.propertyName==="width"&&qt.target===qt.currentTarget,Mr=qt.target.className,Dr=Object.prototype.toString.call(Mr)==="[object SVGAnimatedString]"?Mr.animVal:Mr,un=qt.propertyName==="font-size"&&Dr.indexOf("anticon")>=0;(Yr||un)&&Pt.restoreModeVerticalFromInline()},Pt.setInnerMenu=function(qt){Pt.innerMenu=qt},Pt.isRootMenu=!0;var rr=Yt.defaultSelectedKeys,Rt=Yt.defaultOpenKeys;return"selectedKeys"in Yt&&(rr=Yt.selectedKeys||[]),"openKeys"in Yt&&(Rt=Yt.openKeys||[]),Pt.store=Object(v.c)({selectedKeys:rr,openKeys:Rt,activeKey:{"0-menu-":ae(Yt,Yt.activeKey)}}),Pt.state={switchingModeFromInline:!1},Pt}return Object(s.a)(gr,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Pt){this.updateOpentKeysWhenSwitchMode(Pt),this.updateMiniStore();var rr=this.props,Rt=rr.siderCollapsed,qt=rr.inlineCollapsed,Yr=rr.onOpenChange;(!Pt.inlineCollapsed&&qt||!Pt.siderCollapsed&&Rt)&&Yr([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Pt){var rr=this.props,Rt=this.store,qt=this.inlineOpenKeys,Yr=Rt.getState(),Mr={};Pt.mode==="inline"&&rr.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in rr||((rr.inlineCollapsed&&!Pt.inlineCollapsed||rr.siderCollapsed&&!Pt.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Yr.openKeys.concat(),Mr.openKeys=[]),(!rr.inlineCollapsed&&Pt.inlineCollapsed||!rr.siderCollapsed&&Pt.siderCollapsed)&&(Mr.openKeys=qt,this.inlineOpenKeys=[])),Object.keys(Mr).length&&Rt.setState(Mr)}},{key:"updateMenuDisplay",value:function(){var Pt=this.props.collapsedWidth,rr=this.store,Rt=this.prevOpenKeys,qt=this.getInlineCollapsed()&&(Pt===0||Pt==="0"||Pt==="0px");qt?(this.prevOpenKeys=rr.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Rt&&(this.store.setState({openKeys:Rt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Pt=this.props.mode,rr=this.state.switchingModeFromInline,Rt=this.getInlineCollapsed();return rr&&Rt?"inline":Rt?"vertical":Pt}},{key:"getInlineCollapsed",value:function(){var Pt=this.props,rr=Pt.inlineCollapsed,Rt=Pt.siderCollapsed;return Rt!==void 0?Rt:rr}},{key:"restoreModeVerticalFromInline",value:function(){var Pt=this.state.switchingModeFromInline;Pt&&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 Pt=Object(l.a)({},Object(b.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),rr=this.getRealMenuMode();return Pt.className+=" ".concat(Pt.prefixCls,"-root"),Pt.direction==="rtl"&&(Pt.className+=" ".concat(Pt.prefixCls,"-rtl")),Pt=Object(l.a)(Object(l.a)({},Pt),{},{mode:rr,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:fn(this.props,this.state,rr)}),delete Pt.openAnimation,delete Pt.openTransitionName,e.createElement(v.a,{store:this.store},e.createElement(or,Object.assign({},Pt,{ref:this.setInnerMenu}),this.props.children))}}]),gr}(e.Component);sr.defaultProps={selectable:!0,onClick:We,onSelect:We,onOpenChange:We,onDeselect:We,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:e.createElement("span",null,"\xB7\xB7\xB7")};var Ir=sr,lr=function(Nt){Object(d.a)(gr,Nt);var bt=Object(g.a)(gr);function gr(){var Yt;return Object(r.a)(this,gr),Yt=bt.apply(this,arguments),Yt.onKeyDown=function(Pt){var rr=Pt.keyCode;return rr===C.a.ENTER?(Yt.onClick(Pt),!0):void 0},Yt.onMouseLeave=function(Pt){var rr=Yt.props,Rt=rr.eventKey,qt=rr.onItemHover,Yr=rr.onMouseLeave;qt({key:Rt,hover:!1}),Yr({key:Rt,domEvent:Pt})},Yt.onMouseEnter=function(Pt){var rr=Yt.props,Rt=rr.eventKey,qt=rr.onItemHover,Yr=rr.onMouseEnter;qt({key:Rt,hover:!0}),Yr({key:Rt,domEvent:Pt})},Yt.onClick=function(Pt){var rr=Yt.props,Rt=rr.eventKey,qt=rr.multiple,Yr=rr.onClick,Mr=rr.onSelect,Dr=rr.onDeselect,un=rr.isSelected,wn={key:Rt,keyPath:[Rt],item:Object(c.a)(Yt),domEvent:Pt};Yr(wn),qt?un?Dr(wn):Mr(wn):un||Mr(wn)},Yt.saveNode=function(Pt){Yt.node=Pt},Yt}return Object(s.a)(gr,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Pt=this.props;Pt.onDestroy&&Pt.onDestroy(Pt.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 Pt,rr=Object(l.a)({},this.props),Rt=I()(this.getPrefixCls(),rr.className,(Pt={},Object(E.a)(Pt,this.getActiveClassName(),!rr.disabled&&rr.active),Object(E.a)(Pt,this.getSelectedClassName(),rr.isSelected),Object(E.a)(Pt,this.getDisabledClassName(),rr.disabled),Pt)),qt=Object(l.a)(Object(l.a)({},rr.attribute),{},{title:typeof rr.title=="string"?rr.title:void 0,className:Rt,role:rr.role||"menuitem","aria-disabled":rr.disabled});rr.role==="option"?qt=Object(l.a)(Object(l.a)({},qt),{},{role:"option","aria-selected":rr.isSelected}):(rr.role===null||rr.role==="none")&&(qt.role="none");var Yr={onClick:rr.disabled?null:this.onClick,onMouseLeave:rr.disabled?null:this.onMouseLeave,onMouseEnter:rr.disabled?null:this.onMouseEnter},Mr=Object(l.a)({},rr.style);rr.mode==="inline"&&(rr.direction==="rtl"?Mr.paddingRight=rr.inlineIndent*rr.level:Mr.paddingLeft=rr.inlineIndent*rr.level),he.forEach(function(un){return delete rr[un]}),delete rr.direction;var Dr=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Dr=e.createElement(this.props.itemIcon,this.props)),e.createElement("li",Object.assign({},Object(b.default)(rr,["onClick","onMouseEnter","onMouseLeave","onSelect"]),qt,Yr,{style:Mr,ref:this.saveNode}),rr.children,Dr)}}]),gr}(e.Component);lr.isMenuItem=!0,lr.defaultProps={onSelect:We,onMouseEnter:We,onMouseLeave:We,manualRef:We};var Wt=Object(v.b)(function(Nt,bt){var gr=Nt.activeKey,Yt=Nt.selectedKeys,Pt=bt.eventKey,rr=bt.subMenuKey;return{active:gr[rr]===Pt,isSelected:Yt.indexOf(Pt)!==-1}})(lr),xt=Wt,rn=function(Nt){Object(d.a)(gr,Nt);var bt=Object(g.a)(gr);function gr(){var Yt;return Object(r.a)(this,gr),Yt=bt.apply(this,arguments),Yt.renderInnerMenuItem=function(Pt){var rr=Yt.props,Rt=rr.renderMenuItem,qt=rr.index;return Rt(Pt,qt,Yt.props.subMenuKey)},Yt}return Object(s.a)(gr,[{key:"render",value:function(){var Pt=Object(S.a)({},this.props),rr=Pt.className,Rt=rr===void 0?"":rr,qt=Pt.rootPrefixCls,Yr="".concat(qt,"-item-group-title"),Mr="".concat(qt,"-item-group-list"),Dr=Pt.title,un=Pt.children;return he.forEach(function(wn){return delete Pt[wn]}),delete Pt.onClick,delete Pt.direction,e.createElement("li",Object.assign({},Pt,{className:"".concat(Rt," ").concat(qt,"-item-group")}),e.createElement("div",{className:Yr,title:typeof Dr=="string"?Dr:void 0},Dr),e.createElement("ul",{className:Mr},e.Children.map(un,this.renderInnerMenuItem)))}}]),gr}(e.Component);rn.isMenuItemGroup=!0,rn.defaultProps={disabled:!0};var Dn=rn,Xn=function(bt){var gr=bt.className,Yt=bt.rootPrefixCls,Pt=bt.style;return e.createElement("li",{className:"".concat(gr," ").concat(Yt,"-item-divider"),style:Pt})};Xn.defaultProps={disabled:!0,className:"",style:{}};var ri=Xn,Ui=Ir,Bn=Object(e.createContext)({inlineCollapsed:!1}),Jn=Bn,Xt=n("0n0R"),_t=function(Nt){i()(gr,Nt);var bt=o()(gr);function gr(){return f()(this,gr),bt.apply(this,arguments)}return u()(gr,[{key:"renderTitle",value:function(Pt){var rr=this.props,Rt=rr.icon,qt=rr.title,Yr=rr.level,Mr=rr.rootPrefixCls;if(!Rt)return Pt&&Yr===1&&qt&&typeof qt=="string"?e.createElement("div",{className:"".concat(Mr,"-inline-collapsed-noicon")},qt.charAt(0)):qt;var Dr=Object(Xt.b)(qt)&&qt.type==="span";return e.createElement(e.Fragment,null,Rt,Dr?qt:e.createElement("span",null,qt))}},{key:"render",value:function(){var Pt=this,rr=this.props,Rt=rr.rootPrefixCls,qt=rr.popupClassName;return e.createElement(Jn.Consumer,null,function(Yr){var Mr=Yr.inlineCollapsed,Dr=Yr.antdMenuTheme;return e.createElement(zt,p()({},Object(b.default)(Pt.props,["icon"]),{title:Pt.renderTitle(Mr),popupClassName:I()(Rt,"".concat(Rt,"-").concat(Dr),qt)}))})}}]),gr}(e.Component);_t.contextType=Jn,_t.isSubMenu=1;var Fe=_t,Pe=n("Zm9Q"),Be=n("3S7+"),nt=n("ZX9x"),vt=function(Nt,bt){var gr={};for(var Yt in Nt)Object.prototype.hasOwnProperty.call(Nt,Yt)&&bt.indexOf(Yt)<0&&(gr[Yt]=Nt[Yt]);if(Nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Yt=Object.getOwnPropertySymbols(Nt);Pt<Yt.length;Pt++)bt.indexOf(Yt[Pt])<0&&Object.prototype.propertyIsEnumerable.call(Nt,Yt[Pt])&&(gr[Yt[Pt]]=Nt[Yt[Pt]]);return gr},ar=function(Nt){i()(gr,Nt);var bt=o()(gr);function gr(){var Yt;return f()(this,gr),Yt=bt.apply(this,arguments),Yt.renderItem=function(Pt){var rr=Pt.siderCollapsed,Rt=Yt.props,qt=Rt.level,Yr=Rt.className,Mr=Rt.children,Dr=Rt.rootPrefixCls,un=Yt.props,wn=un.title,ai=un.icon,ei=un.danger,gi=vt(un,["title","icon","danger"]);return e.createElement(Jn.Consumer,null,function(Ii){var ki,Qi=Ii.inlineCollapsed,it=Ii.direction,Me=wn;typeof wn=="undefined"?Me=qt===1?Mr:"":wn===!1&&(Me="");var je={title:Me};!rr&&!Qi&&(je.title=null,je.visible=!1);var Ye=Object(Pe.a)(Mr).length;return e.createElement(Be.a,p()({},je,{placement:it==="rtl"?"left":"right",overlayClassName:"".concat(Dr,"-inline-collapsed-tooltip")}),e.createElement(xt,p()({},gi,{className:I()(Yr,(ki={},A()(ki,"".concat(Dr,"-item-danger"),ei),A()(ki,"".concat(Dr,"-item-only-child"),(ai?Ye+1:Ye)===1),ki)),title:wn}),ai,Yt.renderItemChildren(Qi)))})},Yt}return u()(gr,[{key:"renderItemChildren",value:function(Pt){var rr=this.props,Rt=rr.icon,qt=rr.children,Yr=rr.level,Mr=rr.rootPrefixCls;return!Rt||Object(Xt.b)(qt)&&qt.type==="span"?qt&&Pt&&Yr===1&&typeof qt=="string"?e.createElement("div",{className:"".concat(Mr,"-inline-collapsed-noicon")},qt.charAt(0)):qt:e.createElement("span",null,qt)}},{key:"render",value:function(){return e.createElement(nt.a.Consumer,null,this.renderItem)}}]),gr}(e.Component);ar.isMenuItem=!0;var kr=n("H84U"),mn=n("uaoM"),Zn=n("EXcs"),ni=function(Nt){i()(gr,Nt);var bt=o()(gr);function gr(Yt){var Pt;return f()(this,gr),Pt=bt.call(this,Yt),Pt.renderMenu=function(rr){var Rt=rr.getPopupContainer,qt=rr.getPrefixCls,Yr=rr.direction,Mr=Pt.props,Dr=Mr.prefixCls,un=Mr.className,wn=Mr.theme,ai={horizontal:{motionName:"slide-up"},inline:Zn.a,other:{motionName:"zoom-big"}},ei=qt("menu",Dr),gi=I()(un,"".concat(ei,"-").concat(wn),A()({},"".concat(ei,"-inline-collapsed"),Pt.getInlineCollapsed()));return e.createElement(Jn.Provider,{value:{inlineCollapsed:Pt.getInlineCollapsed()||!1,antdMenuTheme:wn,direction:Yr}},e.createElement(Ui,p()({getPopupContainer:Rt},Pt.props,{className:gi,prefixCls:ei,direction:Yr,defaultMotions:ai})))},Object(mn.a)(!("inlineCollapsed"in Yt&&Yt.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Object(mn.a)(!(Yt.siderCollapsed!==void 0&&"inlineCollapsed"in Yt),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),Pt}return u()(gr,[{key:"getInlineCollapsed",value:function(){var Pt=this.props,rr=Pt.inlineCollapsed,Rt=Pt.siderCollapsed;return Rt!==void 0?Rt:rr}},{key:"render",value:function(){return e.createElement(kr.a,null,this.renderMenu)}}]),gr}(e.Component);ni.defaultProps={className:"",theme:"light",focusable:!1};var ur=function(Nt){i()(gr,Nt);var bt=o()(gr);function gr(){return f()(this,gr),bt.apply(this,arguments)}return u()(gr,[{key:"render",value:function(){var Pt=this;return e.createElement(nt.a.Consumer,null,function(rr){return e.createElement(ni,p()({},Pt.props,rr))})}}]),gr}(e.Component);ur.Divider=ri,ur.Item=ar,ur.SubMenu=Fe,ur.ItemGroup=Dn},C0SR:function(k,D,n){var y=n("YH21"),p=function(){this._track=[]};p.prototype={constructor:p,recognize:function(u,a,i){return this._doTrack(u,a,i),this._recognize(u)},clear:function(){return this._track.length=0,this},_doTrack:function(u,a,i){var t=u.touches;if(!t)return;for(var o={points:[],touches:[],target:a,event:u},e=0,l=t.length;e<l;e++){var r=t[e],s=y.clientToLocal(i,r,{});o.points.push([s.zrX,s.zrY]),o.touches.push(r)}this._track.push(o)},_recognize:function(u){for(var a in m)if(m.hasOwnProperty(a)){var i=m[a](this._track,u);if(i)return i}}};function x(h){var u=h[1][0]-h[0][0],a=h[1][1]-h[0][1];return Math.sqrt(u*u+a*a)}function A(h){return[(h[0][0]+h[1][0])/2,(h[0][1]+h[1][1])/2]}var m={pinch:function(u,a){var i=u.length;if(!i)return;var t=(u[i-1]||{}).points,o=(u[i-2]||{}).points||t;if(o&&o.length>1&&t&&t.length>1){var e=x(t)/x(o);!isFinite(e)&&(e=1),a.pinchScale=e;var l=A(t);return a.pinchX=l[0],a.pinchY=l[1],{type:"pinch",target:u[0].target,event:a}}}},f=p;k.exports=f},C0tN:function(k,D,n){n("0o9m"),n("8Uz6"),n("Ducp"),n("6/nd")},CBdT:function(k,D,n){var y=n("ProS");n("8waO"),n("AEZ6"),n("YNf1");var p=n("q3GZ");y.registerVisual(p)},CF2D:function(k,D,n){var y=n("ProS");n("vZI5"),n("GeKi");var p=n("6r85"),x=n("TJmX"),A=n("CbHG");y.registerPreprocessor(p),y.registerVisual(x),y.registerLayout(A)},CFYs:function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),A=n.n(x),m=n("lwsE"),f=n.n(m),h=n("W8MJ"),u=n.n(h),a=n("PJYZ"),i=n.n(a),t=n("7W2i"),o=n.n(t),e=n("LQ03"),l=n.n(e),r=n("q1tI"),s=n.n(r),c=n("TSYQ"),d=n.n(c),g=n("BGR+"),v=n("1S0Z"),b=n.n(v),S=n("Eh2f"),E=n.n(S),C=n("hfce"),_=n.n(C),T=n("f0uV"),w=n.n(T),O=n("H84U"),I=n("CWQg"),R=n("uaoM"),M=n("hNzZ");function F(te){return!te||te<0?0:te>100?100:te}function P(te){var $e=te.success,He=te.successPercent,ae=He;return $e&&"progress"in $e&&(Object(R.a)(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),ae=$e.progress),$e&&"percent"in $e&&(ae=$e.percent),ae}var X=function(te,$e){var He={};for(var ae in te)Object.prototype.hasOwnProperty.call(te,ae)&&$e.indexOf(ae)<0&&(He[ae]=te[ae]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,ae=Object.getOwnPropertySymbols(te);ft<ae.length;ft++)$e.indexOf(ae[ft])<0&&Object.prototype.propertyIsEnumerable.call(te,ae[ft])&&(He[ae[ft]]=te[ae[ft]]);return He},B=function($e){var He=[];return Object.keys($e).forEach(function(ae){var ft=parseFloat(ae.replace(/%/g,""));isNaN(ft)||He.push({key:ft,value:$e[ae]})}),He=He.sort(function(ae,ft){return ae.key-ft.key}),He.map(function(ae){var ft=ae.key,Mt=ae.value;return"".concat(Mt," ").concat(ft,"%")}).join(", ")},j=function($e){var He=$e.from,ae=He===void 0?M.presetPrimaryColors.blue:He,ft=$e.to,Mt=ft===void 0?M.presetPrimaryColors.blue:ft,mt=$e.direction,or=mt===void 0?"to right":mt,vr=X($e,["from","to","direction"]);if(Object.keys(vr).length!==0){var fn=B(vr);return{backgroundImage:"linear-gradient(".concat(or,", ").concat(fn,")")}}return{backgroundImage:"linear-gradient(".concat(or,", ").concat(ae,", ").concat(Mt,")")}},W=function($e){var He=$e.prefixCls,ae=$e.percent,ft=$e.strokeWidth,Mt=$e.size,mt=$e.strokeColor,or=$e.strokeLinecap,vr=$e.children,fn=$e.trailColor,sr=$e.success,Ir=mt&&typeof mt!="string"?j(mt):{background:mt},lr=fn?{backgroundColor:fn}:void 0,Wt=A()({width:"".concat(F(ae),"%"),height:ft||(Mt==="small"?6:8),borderRadius:or==="square"?0:""},Ir),xt=P($e),rn={width:"".concat(F(xt),"%"),height:ft||(Mt==="small"?6:8),borderRadius:or==="square"?0:"",backgroundColor:sr==null?void 0:sr.strokeColor},Dn=xt!==void 0?r.createElement("div",{className:"".concat(He,"-success-bg"),style:rn}):null;return r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(He,"-outer")},r.createElement("div",{className:"".concat(He,"-inner"),style:lr},r.createElement("div",{className:"".concat(He,"-bg"),style:Wt}),Dn)),vr)},z=W,V={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},Q=function($e){var He=$e.map(function(){return Object(r.useRef)()}),ae=Object(r.useRef)();return Object(r.useEffect)(function(){var ft=Date.now(),Mt=!1;Object.keys(He).forEach(function(mt){var or=He[mt].current;if(!or)return;Mt=!0;var vr=or.style;vr.transitionDuration=".3s, .3s, .3s, .06s",ae.current&&ft-ae.current<100&&(vr.transitionDuration="0s, 0s")}),Mt&&(ae.current=Date.now())}),[He]};function G(){return G=Object.assign||function(te){for(var $e=1;$e<arguments.length;$e++){var He=arguments[$e];for(var ae in He)Object.prototype.hasOwnProperty.call(He,ae)&&(te[ae]=He[ae])}return te},G.apply(this,arguments)}function ee(te,$e){return ke(te)||Ie(te,$e)||be(te,$e)||ce()}function ce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function be(te,$e){if(!te)return;if(typeof te=="string")return le(te,$e);var He=Object.prototype.toString.call(te).slice(8,-1);if(He==="Object"&&te.constructor&&(He=te.constructor.name),He==="Map"||He==="Set")return Array.from(te);if(He==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(He))return le(te,$e)}function le(te,$e){($e==null||$e>te.length)&&($e=te.length);for(var He=0,ae=new Array($e);He<$e;He++)ae[He]=te[He];return ae}function Ie(te,$e){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(te)))return;var He=[],ae=!0,ft=!1,Mt=void 0;try{for(var mt=te[Symbol.iterator](),or;!(ae=(or=mt.next()).done)&&!(He.push(or.value),$e&&He.length===$e);ae=!0);}catch(vr){ft=!0,Mt=vr}finally{try{!ae&&mt.return!=null&&mt.return()}finally{if(ft)throw Mt}}return He}function ke(te){if(Array.isArray(te))return te}function Re(te,$e){if(te==null)return{};var He=Qe(te,$e),ae,ft;if(Object.getOwnPropertySymbols){var Mt=Object.getOwnPropertySymbols(te);for(ft=0;ft<Mt.length;ft++){if(ae=Mt[ft],$e.indexOf(ae)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(te,ae))continue;He[ae]=te[ae]}}return He}function Qe(te,$e){if(te==null)return{};var He={},ae=Object.keys(te),ft,Mt;for(Mt=0;Mt<ae.length;Mt++){if(ft=ae[Mt],$e.indexOf(ft)>=0)continue;He[ft]=te[ft]}return He}var We=function($e){var He=$e.className,ae=$e.percent,ft=$e.prefixCls,Mt=$e.strokeColor,mt=$e.strokeLinecap,or=$e.strokeWidth,vr=$e.style,fn=$e.trailColor,sr=$e.trailWidth,Ir=$e.transition,lr=Re($e,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete lr.gapPosition;var Wt=Array.isArray(ae)?ae:[ae],xt=Array.isArray(Mt)?Mt:[Mt],rn=Q(Wt),Dn=ee(rn,1),Xn=Dn[0],ri=or/2,Ui=100-or/2,Bn="M ".concat(mt==="round"?ri:0,",").concat(ri,`
|
|
|
L `).concat(mt==="round"?Ui:100,",").concat(ri),Jn="0 0 100 ".concat(or),Xt=0;return s.a.createElement("svg",G({className:d()("".concat(ft,"-line"),He),viewBox:Jn,preserveAspectRatio:"none",style:vr},lr),s.a.createElement("path",{className:"".concat(ft,"-line-trail"),d:Bn,strokeLinecap:mt,stroke:fn,strokeWidth:sr||or,fillOpacity:"0"}),Wt.map(function(_t,Fe){var Pe={strokeDasharray:"".concat(_t,"px, 100px"),strokeDashoffset:"-".concat(Xt,"px"),transition:Ir||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Be=xt[Fe]||xt[xt.length-1];return Xt+=_t,s.a.createElement("path",{key:Fe,className:"".concat(ft,"-line-path"),d:Bn,strokeLinecap:mt,stroke:Be,strokeWidth:or,fillOpacity:"0",ref:Xn[Fe],style:Pe})}))};We.defaultProps=V;var ot=We;function Oe(){return Oe=Object.assign||function(te){for(var $e=1;$e<arguments.length;$e++){var He=arguments[$e];for(var ae in He)Object.prototype.hasOwnProperty.call(He,ae)&&(te[ae]=He[ae])}return te},Oe.apply(this,arguments)}function oe(te,$e){return $(te)||Y(te,$e)||he(te,$e)||st()}function st(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function he(te,$e){if(!te)return;if(typeof te=="string")return J(te,$e);var He=Object.prototype.toString.call(te).slice(8,-1);if(He==="Object"&&te.constructor&&(He=te.constructor.name),He==="Map"||He==="Set")return Array.from(te);if(He==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(He))return J(te,$e)}function J(te,$e){($e==null||$e>te.length)&&($e=te.length);for(var He=0,ae=new Array($e);He<$e;He++)ae[He]=te[He];return ae}function Y(te,$e){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(te)))return;var He=[],ae=!0,ft=!1,Mt=void 0;try{for(var mt=te[Symbol.iterator](),or;!(ae=(or=mt.next()).done)&&!(He.push(or.value),$e&&He.length===$e);ae=!0);}catch(vr){ft=!0,Mt=vr}finally{try{!ae&&mt.return!=null&&mt.return()}finally{if(ft)throw Mt}}return He}function $(te){if(Array.isArray(te))return te}function fe(te,$e){if(te==null)return{};var He=we(te,$e),ae,ft;if(Object.getOwnPropertySymbols){var Mt=Object.getOwnPropertySymbols(te);for(ft=0;ft<Mt.length;ft++){if(ae=Mt[ft],$e.indexOf(ae)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(te,ae))continue;He[ae]=te[ae]}}return He}function we(te,$e){if(te==null)return{};var He={},ae=Object.keys(te),ft,Mt;for(Mt=0;Mt<ae.length;Mt++){if(ft=ae[Mt],$e.indexOf(ft)>=0)continue;He[ft]=te[ft]}return He}var Ne=0;function Ee(te){return+te.replace("%","")}function de(te){return Array.isArray(te)?te:[te]}function me(te,$e,He,ae){var ft=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,Mt=arguments.length>5?arguments[5]:void 0,mt=50-ae/2,or=0,vr=-mt,fn=0,sr=-2*mt;switch(Mt){case"left":or=-mt,vr=0,fn=2*mt,sr=0;break;case"right":or=mt,vr=0,fn=-2*mt,sr=0;break;case"bottom":vr=mt,sr=2*mt;break;default:}var Ir="M 50,50 m ".concat(or,",").concat(vr,`
|
|
|
a `).concat(mt,",").concat(mt," 0 1 1 ").concat(fn,",").concat(-sr,`
|
|
|
a `).concat(mt,",").concat(mt," 0 1 1 ").concat(-fn,",").concat(sr),lr=Math.PI*2*mt,Wt={stroke:He,strokeDasharray:"".concat($e/100*(lr-ft),"px ").concat(lr,"px"),strokeDashoffset:"-".concat(ft/2+te/100*(lr-ft),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:Ir,pathStyle:Wt}}var Le=function($e){var He=$e.prefixCls,ae=$e.strokeWidth,ft=$e.trailWidth,Mt=$e.gapDegree,mt=$e.gapPosition,or=$e.trailColor,vr=$e.strokeLinecap,fn=$e.style,sr=$e.className,Ir=$e.strokeColor,lr=$e.percent,Wt=fe($e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),xt=Object(r.useMemo)(function(){return Ne+=1,Ne},[]),rn=me(0,100,or,ae,Mt,mt),Dn=rn.pathString,Xn=rn.pathStyle,ri=de(lr),Ui=de(Ir),Bn=Ui.find(function(Pe){return Object.prototype.toString.call(Pe)==="[object Object]"}),Jn=Q(ri),Xt=oe(Jn,1),_t=Xt[0],Fe=function(){var Be=0;return ri.map(function(nt,vt){var ar=Ui[vt]||Ui[Ui.length-1],kr=Object.prototype.toString.call(ar)==="[object Object]"?"url(#".concat(He,"-gradient-").concat(xt,")"):"",mn=me(Be,nt,ar,ae,Mt,mt);return Be+=nt,s.a.createElement("path",{key:vt,className:"".concat(He,"-circle-path"),d:mn.pathString,stroke:kr,strokeLinecap:vr,strokeWidth:ae,opacity:nt===0?0:1,fillOpacity:"0",style:mn.pathStyle,ref:_t[vt]})})};return s.a.createElement("svg",Oe({className:d()("".concat(He,"-circle"),sr),viewBox:"0 0 100 100",style:fn},Wt),Bn&&s.a.createElement("defs",null,s.a.createElement("linearGradient",{id:"".concat(He,"-gradient-").concat(xt),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Bn).sort(function(Pe,Be){return Ee(Pe)-Ee(Be)}).map(function(Pe,Be){return s.a.createElement("stop",{key:Be,offset:Pe,stopColor:Bn[Pe]})}))),s.a.createElement("path",{className:"".concat(He,"-circle-trail"),d:Dn,stroke:or,strokeLinecap:vr,strokeWidth:ft||ae,fillOpacity:"0",style:Xn}),Fe().reverse())};Le.defaultProps=V;var tt=Le,At={Line:ot,Circle:tt};function ht(te){var $e=te.percent,He=te.success,ae=te.successPercent,ft=F($e),Mt=P({success:He,successPercent:ae});return Mt?[F(Mt),F(ft-F(Mt))]:ft}function Ke(te){var $e=te.success,He=te.strokeColor,ae=te.successPercent,ft=He||null,Mt=P({success:$e,successPercent:ae});return Mt?[M.presetPrimaryColors.green,ft]:ft}var Jt=function($e){var He=$e.prefixCls,ae=$e.width,ft=$e.strokeWidth,Mt=$e.trailColor,mt=$e.strokeLinecap,or=$e.gapPosition,vr=$e.gapDegree,fn=$e.type,sr=$e.children,Ir=ae||120,lr={width:Ir,height:Ir,fontSize:Ir*.15+6},Wt=ft||6,xt=or||fn==="dashboard"&&"bottom"||"top",rn=function(){return vr||vr===0?vr:fn==="dashboard"?75:void 0},Dn=Ke($e),Xn=Object.prototype.toString.call(Dn)==="[object Object]",ri=d()("".concat(He,"-inner"),p()({},"".concat(He,"-circle-gradient"),Xn));return r.createElement("div",{className:ri,style:lr},r.createElement(tt,{percent:ht($e),strokeWidth:Wt,trailWidth:Wt,strokeColor:Dn,strokeLinecap:mt,trailColor:Mt,prefixCls:He,gapDegree:rn(),gapPosition:xt}),sr)},ct=Jt,Gt=function($e){for(var He=$e.size,ae=$e.steps,ft=$e.percent,Mt=ft===void 0?0:ft,mt=$e.strokeWidth,or=mt===void 0?8:mt,vr=$e.strokeColor,fn=$e.trailColor,sr=$e.prefixCls,Ir=$e.children,lr=Math.floor(ae*(Mt/100)),Wt=He==="small"?2:14,xt=[],rn=0;rn<ae;rn+=1)xt.push(r.createElement("div",{key:rn,className:d()("".concat(sr,"-steps-item"),p()({},"".concat(sr,"-steps-item-active"),rn<=lr-1)),style:{backgroundColor:rn<=lr-1?vr:fn,width:Wt,height:or}}));return r.createElement("div",{className:"".concat(sr,"-steps-outer")},xt,Ir)},dr=Gt,zt=function(te,$e){var He={};for(var ae in te)Object.prototype.hasOwnProperty.call(te,ae)&&$e.indexOf(ae)<0&&(He[ae]=te[ae]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,ae=Object.getOwnPropertySymbols(te);ft<ae.length;ft++)$e.indexOf(ae[ft])<0&&Object.prototype.propertyIsEnumerable.call(te,ae[ft])&&(He[ae[ft]]=te[ae[ft]]);return He},kt=Object(I.a)("line","circle","dashboard"),Vt=Object(I.a)("normal","exception","active","success"),Xe=function(te){o()(He,te);var $e=l()(He);function He(){var ae;return f()(this,He),ae=$e.apply(this,arguments),ae.renderProgress=function(ft){var Mt,mt=ft.getPrefixCls,or=ft.direction,vr=i()(ae),fn=vr.props,sr=fn.prefixCls,Ir=fn.className,lr=fn.size,Wt=fn.type,xt=fn.steps,rn=fn.showInfo,Dn=fn.strokeColor,Xn=zt(fn,["prefixCls","className","size","type","steps","showInfo","strokeColor"]),ri=mt("progress",sr),Ui=ae.getProgressStatus(),Bn=ae.renderProcessInfo(ri,Ui);Object(R.a)(!("successPercent"in fn),"Progress","`successPercent` is deprecated. Please use `success.percent` instead.");var Jn;Wt==="line"?Jn=xt?r.createElement(dr,A()({},ae.props,{strokeColor:typeof Dn=="string"?Dn:void 0,prefixCls:ri,steps:xt}),Bn):r.createElement(z,A()({},ae.props,{prefixCls:ri}),Bn):(Wt==="circle"||Wt==="dashboard")&&(Jn=r.createElement(ct,A()({},ae.props,{prefixCls:ri,progressStatus:Ui}),Bn));var Xt=d()(ri,(Mt={},p()(Mt,"".concat(ri,"-").concat(Wt==="dashboard"&&"circle"||xt&&"steps"||Wt),!0),p()(Mt,"".concat(ri,"-status-").concat(Ui),!0),p()(Mt,"".concat(ri,"-show-info"),rn),p()(Mt,"".concat(ri,"-").concat(lr),lr),p()(Mt,"".concat(ri,"-rtl"),or==="rtl"),Mt),Ir);return r.createElement("div",A()({},Object(g.default)(Xn,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeColor","strokeLinecap","percent","steps","success","successPercent"]),{className:Xt}),Jn)},ae}return u()(He,[{key:"getPercentNumber",value:function(){var ft=this.props.percent,Mt=ft===void 0?0:ft,mt=P(this.props);return parseInt(mt!==void 0?mt.toString():Mt.toString(),10)}},{key:"getProgressStatus",value:function(){var ft=this.props.status;return Vt.indexOf(ft)<0&&this.getPercentNumber()>=100?"success":ft||"normal"}},{key:"renderProcessInfo",value:function(ft,Mt){var mt=this.props,or=mt.showInfo,vr=mt.format,fn=mt.type,sr=mt.percent,Ir=P(this.props);if(!or)return null;var lr,Wt=vr||function(rn){return"".concat(rn,"%")},xt=fn==="line";return vr||Mt!=="exception"&&Mt!=="success"?lr=Wt(F(sr),F(Ir)):Mt==="exception"?lr=xt?r.createElement(w.a,null):r.createElement(b.a,null):Mt==="success"&&(lr=xt?r.createElement(_.a,null):r.createElement(E.a,null)),r.createElement("span",{className:"".concat(ft,"-text"),title:typeof lr=="string"?lr:void 0},lr)}},{key:"render",value:function(){return r.createElement(O.a,null,this.renderProgress)}}]),He}(r.Component);Xe.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",gapDegree:void 0,strokeLinecap:"round"};var pe=D.a=Xe},CH3K:function(k,D){function n(y,p){for(var x=-1,A=p.length,m=y.length;++x<A;)y[m+x]=p[x];return y}k.exports=n},"CMP+":function(k,D,n){var y=n("bYtY"),p=n("hM6l"),x=function(m,f,h,u){p.call(this,m,f,h),this.type=u||"value",this.model=null};x.prototype={constructor:x,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return this.model.get("orient")==="horizontal"}},y.inherits(x,p);var A=x;k.exports=A},CP8R:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};D.default=y},CRcw:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("h7i7"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},"CWI+":function(k,D,n){},CbHG:function(k,D,n){var y=n("IwbS"),p=y.subPixelOptimize,x=n("zM3Q"),A=n("OELB"),m=A.parsePercent,f=n("bYtY"),h=f.retrieve2,u=typeof Float32Array!="undefined"?Float32Array:Array,a={seriesType:"candlestick",plan:x(),reset:function(o){var e=o.coordinateSystem,l=o.getData(),r=t(o,l),s=0,c=1,d=["x","y"],g=l.mapDimension(d[s]),v=l.mapDimension(d[c],!0),b=v[0],S=v[1],E=v[2],C=v[3];if(l.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),g==null||v.length<4)return;return{progress:o.pipelineContext.large?T:_};function _(w,O){for(var I;(I=w.next())!=null;){var R=O.get(g,I),M=O.get(b,I),F=O.get(S,I),P=O.get(E,I),X=O.get(C,I),B=Math.min(M,F),j=Math.max(M,F),W=ee(B,R),z=ee(j,R),V=ee(P,R),Q=ee(X,R),G=[];ce(G,z,0),ce(G,W,1),G.push(le(Q),le(z),le(V),le(W)),O.setItemLayout(I,{sign:i(O,I,M,F,S),initBaseline:M>F?z[c]:W[c],ends:G,brushRect:be(P,X,R)})}function ee(Ie,ke){var Re=[];return Re[s]=ke,Re[c]=Ie,isNaN(ke)||isNaN(Ie)?[NaN,NaN]:e.dataToPoint(Re)}function ce(Ie,ke,Re){var Qe=ke.slice(),We=ke.slice();Qe[s]=p(Qe[s]+r/2,1,!1),We[s]=p(We[s]-r/2,1,!0),Re?Ie.push(Qe,We):Ie.push(We,Qe)}function be(Ie,ke,Re){var Qe=ee(Ie,Re),We=ee(ke,Re);return Qe[s]-=r/2,We[s]-=r/2,{x:Qe[0],y:Qe[1],width:c?r:We[0]-Qe[0],height:c?We[1]-Qe[1]:r}}function le(Ie){return Ie[s]=p(Ie[s],1),Ie}}function T(w,O){for(var I=new u(w.count*4),R=0,M,F=[],P=[],X;(X=w.next())!=null;){var B=O.get(g,X),j=O.get(b,X),W=O.get(S,X),z=O.get(E,X),V=O.get(C,X);if(isNaN(B)||isNaN(z)||isNaN(V)){I[R++]=NaN,R+=3;continue}I[R++]=i(O,X,j,W,S),F[s]=B,F[c]=z,M=e.dataToPoint(F,null,P),I[R++]=M?M[0]:NaN,I[R++]=M?M[1]:NaN,F[c]=V,M=e.dataToPoint(F,null,P),I[R++]=M?M[1]:NaN}O.setLayout("largePoints",I)}}};function i(o,e,l,r,s){var c;return l>r?c=-1:l<r?c=1:c=e>0?o.get(s,e-1)<=r?1:-1:1,c}function t(o,e){var l=o.getBaseAxis(),r,s=l.type==="category"?l.getBandWidth():(r=l.getExtent(),Math.abs(r[1]-r[0])/e.count()),c=m(h(o.get("barMaxWidth"),s),s),d=m(h(o.get("barMinWidth"),1),s),g=o.get("barWidth");return g!=null?m(g,s):Math.max(Math.min(s/2,c),d)}k.exports=a},CiB2:function(k,D,n){"use strict";n.d(D,"a",function(){return y});function y(p){if(p==null)throw new TypeError("Cannot destructure undefined")}},Cm0C:function(k,D,n){n("5NHt"),n("f3JH")},CrYA:function(k,D,n){var y=n("MFOe"),p=y.Global;k.exports={name:"sessionStorage",read:A,write:m,each:f,remove:h,clearAll:u};function x(){return p.sessionStorage}function A(a){return x().getItem(a)}function m(a,i){return x().setItem(a,i)}function f(a){for(var i=x().length-1;i>=0;i--){var t=x().key(i);a(A(t),t)}}function h(a){return x().removeItem(a)}function u(){return x().clear()}},Cwc5:function(k,D,n){var y=n("NKxu"),p=n("Npjl");function x(A,m){var f=p(A,m);return y(f)?f:void 0}k.exports=x},D1WM:function(k,D,n){var y=n("bYtY"),p=n("hM6l"),x=function(m,f,h,u,a){p.call(this,m,f,h),this.type=u||"value",this.axisIndex=a};x.prototype={constructor:x,model:null,isHorizontal:function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"}},y.inherits(x,p);var A=x;k.exports=A},D5nY:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("4NO4"),A=x.makeInner,m=x.getDataItemValue,f=n("bYtY"),h=f.createHashMap,u=f.each,a=f.map,i=f.isArray,t=f.isString,o=f.isObject,e=f.isTypedArray,l=f.isArrayLike,r=f.extend,s=f.assert,c=n("7G+c"),d=n("k9D9"),g=d.SOURCE_FORMAT_ORIGINAL,v=d.SOURCE_FORMAT_ARRAY_ROWS,b=d.SOURCE_FORMAT_OBJECT_ROWS,S=d.SOURCE_FORMAT_KEYED_COLUMNS,E=d.SOURCE_FORMAT_UNKNOWN,C=d.SOURCE_FORMAT_TYPED_ARRAY,_=d.SERIES_LAYOUT_BY_ROW,T={Must:1,Might:2,Not:3},w=A();function O(G){var ee=G.option.source,ce=E;if(e(ee))ce=C;else if(i(ee)){ee.length===0&&(ce=v);for(var be=0,le=ee.length;be<le;be++){var Ie=ee[be];if(Ie==null)continue;if(i(Ie)){ce=v;break}else if(o(Ie)){ce=b;break}}}else if(o(ee)){for(var ke in ee)if(ee.hasOwnProperty(ke)&&l(ee[ke])){ce=S;break}}else if(ee!=null)throw new Error("Invalid data");w(G).sourceFormat=ce}function I(G){return w(G).source}function R(G){w(G).datasetMap=h()}function M(G){var ee=G.option,ce=ee.data,be=e(ce)?C:g,le=!1,Ie=ee.seriesLayoutBy,ke=ee.sourceHeader,Re=ee.dimensions,Qe=z(G);if(Qe){var We=Qe.option;ce=We.source,be=w(Qe).sourceFormat,le=!0,Ie=Ie||We.seriesLayoutBy,ke==null&&(ke=We.sourceHeader),Re=Re||We.dimensions}var ot=F(ce,be,Ie,ke,Re);w(G).source=new c({data:ce,fromDataset:le,seriesLayoutBy:Ie,sourceFormat:be,dimensionsDefine:ot.dimensionsDefine,startIndex:ot.startIndex,dimensionsDetectCount:ot.dimensionsDetectCount,encodeDefine:ee.encode})}function F(G,ee,ce,be,le){if(!G)return{dimensionsDefine:P(le)};var Ie,ke;if(ee===v)be==="auto"||be==null?X(function(Qe){Qe!=null&&Qe!=="-"&&(t(Qe)?ke==null&&(ke=1):ke=0)},ce,G,10):ke=be?1:0,!le&&ke===1&&(le=[],X(function(Qe,We){le[We]=Qe!=null?Qe:""},ce,G)),Ie=le?le.length:ce===_?G.length:G[0]?G[0].length:null;else if(ee===b)le||(le=B(G));else if(ee===S)le||(le=[],u(G,function(Qe,We){le.push(We)}));else if(ee===g){var Re=m(G[0]);Ie=i(Re)&&Re.length||1}else ee===C;return{startIndex:ke,dimensionsDefine:P(le),dimensionsDetectCount:Ie}}function P(G){if(!G)return;var ee=h();return a(G,function(ce,be){if(ce=r({},o(ce)?ce:{name:ce}),ce.name==null)return ce;ce.name+="",ce.displayName==null&&(ce.displayName=ce.name);var le=ee.get(ce.name);return le?ce.name+="-"+le.count++:ee.set(ce.name,{count:1}),ce})}function X(G,ee,ce,be){if(be==null&&(be=Infinity),ee===_)for(var le=0;le<ce.length&&le<be;le++)G(ce[le]?ce[le][0]:null,le);else for(var Ie=ce[0]||[],le=0;le<Ie.length&&le<be;le++)G(Ie[le],le)}function B(G){for(var ee=0,ce;ee<G.length&&!(ce=G[ee++]););if(ce){var be=[];return u(ce,function(le,Ie){be.push(Ie)}),be}}function j(G,ee,ce){var be={},le=z(ee);if(!le||!G)return be;var Ie=[],ke=[],Re=ee.ecModel,Qe=w(Re).datasetMap,We=le.uid+"_"+ce.seriesLayoutBy,ot,Oe;G=G.slice(),u(G,function(J,Y){!o(J)&&(G[Y]={name:J}),J.type==="ordinal"&&ot==null&&(ot=Y,Oe=he(G[Y])),be[J.name]=[]});var oe=Qe.get(We)||Qe.set(We,{categoryWayDim:Oe,valueWayDim:0});u(G,function(J,Y){var $=J.name,fe=he(J);if(ot==null){var we=oe.valueWayDim;st(be[$],we,fe),st(ke,we,fe),oe.valueWayDim+=fe}else if(ot===Y)st(be[$],0,fe),st(Ie,0,fe);else{var we=oe.categoryWayDim;st(be[$],we,fe),st(ke,we,fe),oe.categoryWayDim+=fe}});function st(J,Y,$){for(var fe=0;fe<$;fe++)J.push(Y+fe)}function he(J){var Y=J.dimsDef;return Y?Y.length:1}return Ie.length&&(be.itemName=Ie),ke.length&&(be.seriesName=ke),be}function W(G,ee,ce){var be={},le=z(G);if(!le)return be;var Ie=ee.sourceFormat,ke=ee.dimensionsDefine,Re;(Ie===b||Ie===S)&&u(ke,function(ot,Oe){(o(ot)?ot.name:ot)==="name"&&(Re=Oe)});var Qe=function(){for(var ot={},Oe={},oe=[],st=0,he=Math.min(5,ce);st<he;st++){var J=Q(ee.data,Ie,ee.seriesLayoutBy,ke,ee.startIndex,st);oe.push(J);var Y=J===T.Not;if(Y&&ot.v==null&&st!==Re&&(ot.v=st),(ot.n==null||ot.n===ot.v||!Y&&oe[ot.n]===T.Not)&&(ot.n=st),$(ot)&&oe[ot.n]!==T.Not)return ot;Y||(J===T.Might&&Oe.v==null&&st!==Re&&(Oe.v=st),(Oe.n==null||Oe.n===Oe.v)&&(Oe.n=st))}function $(fe){return fe.v!=null&&fe.n!=null}return $(ot)?ot:$(Oe)?Oe:null}();if(Qe){be.value=Qe.v;var We=Re!=null?Re:Qe.n;be.itemName=[We],be.seriesName=[We]}return be}function z(G){var ee=G.option,ce=ee.data;if(!ce)return G.ecModel.getComponent("dataset",ee.datasetIndex||0)}function V(G,ee){return Q(G.data,G.sourceFormat,G.seriesLayoutBy,G.dimensionsDefine,G.startIndex,ee)}function Q(G,ee,ce,be,le,Ie){var ke,Re=5;if(e(G))return T.Not;var Qe,We;if(be){var ot=be[Ie];o(ot)?(Qe=ot.name,We=ot.type):t(ot)&&(Qe=ot)}if(We!=null)return We==="ordinal"?T.Must:T.Not;if(ee===v)if(ce===_){for(var Oe=G[Ie],oe=0;oe<(Oe||[]).length&&oe<Re;oe++)if((ke=Y(Oe[le+oe]))!=null)return ke}else for(var oe=0;oe<G.length&&oe<Re;oe++){var st=G[le+oe];if(st&&(ke=Y(st[Ie]))!=null)return ke}else if(ee===b){if(!Qe)return T.Not;for(var oe=0;oe<G.length&&oe<Re;oe++){var he=G[oe];if(he&&(ke=Y(he[Qe]))!=null)return ke}}else if(ee===S){if(!Qe)return T.Not;var Oe=G[Qe];if(!Oe||e(Oe))return T.Not;for(var oe=0;oe<Oe.length&&oe<Re;oe++)if((ke=Y(Oe[oe]))!=null)return ke}else if(ee===g)for(var oe=0;oe<G.length&&oe<Re;oe++){var he=G[oe],J=m(he);if(!i(J))return T.Not;if((ke=Y(J[Ie]))!=null)return ke}function Y($){var fe=t($);if($!=null&&isFinite($)&&$!=="")return fe?T.Might:T.Not;if(fe&&$!=="-")return T.Must}return T.Not}D.BE_ORDINAL=T,D.detectSourceFormat=O,D.getSource=I,D.resetSourceDefaulter=R,D.prepareSource=M,D.makeSeriesEncodeForAxisCoordSys=j,D.makeSeriesEncodeForNameBased=W,D.guessOrdinal=V},D9ME:function(k,D,n){var y=n("IwbS"),p=n("fls0"),x=n("bYtY"),A=n("oVpE"),m=A.createSymbol,f=n("QBsz"),h=n("Sj9i");function u(t,o,e){y.Group.call(this),this.add(this.createLine(t,o,e)),this._updateEffectSymbol(t,o)}var a=u.prototype;a.createLine=function(t,o,e){return new p(t,o,e)},a._updateEffectSymbol=function(t,o){var e=t.getItemModel(o),l=e.getModel("effect"),r=l.get("symbolSize"),s=l.get("symbol");x.isArray(r)||(r=[r,r]);var c=l.get("color")||t.getItemVisual(o,"color"),d=this.childAt(1);if(this._symbolType!==s&&(this.remove(d),d=m(s,-.5,-.5,1,1,c),d.z2=100,d.culling=!0,this.add(d)),!d)return;d.setStyle("shadowColor",c),d.setStyle(l.getItemStyle(["color"])),d.attr("scale",r),d.setColor(c),d.attr("scale",r),this._symbolType=s,this._symbolScale=r,this._updateEffectAnimation(t,l,o)},a._updateEffectAnimation=function(t,o,e){var l=this.childAt(1);if(!l)return;var r=this,s=t.getItemLayout(e),c=o.get("period")*1e3,d=o.get("loop"),g=o.get("constantSpeed"),v=x.retrieve(o.get("delay"),function(C){return C/t.count()*c/3}),b=typeof v=="function";if(l.ignore=!0,this.updateAnimationPoints(l,s),g>0&&(c=this.getLineLength(l)/g*1e3),c!==this._period||d!==this._loop){l.stopAnimation();var S=v;b&&(S=v(e)),l.__t>0&&(S=-c*l.__t),l.__t=0;var E=l.animate("",d).when(c,{__t:1}).delay(S).during(function(){r.updateSymbolPosition(l)});d||E.done(function(){r.remove(l)}),E.start()}this._period=c,this._loop=d},a.getLineLength=function(t){return f.dist(t.__p1,t.__cp1)+f.dist(t.__cp1,t.__p2)},a.updateAnimationPoints=function(t,o){t.__p1=o[0],t.__p2=o[1],t.__cp1=o[2]||[(o[0][0]+o[1][0])/2,(o[0][1]+o[1][1])/2]},a.updateData=function(t,o,e){this.childAt(0).updateData(t,o,e),this._updateEffectSymbol(t,o)},a.updateSymbolPosition=function(t){var o=t.__p1,e=t.__p2,l=t.__cp1,r=t.__t,s=t.position,c=[s[0],s[1]],d=h.quadraticAt,g=h.quadraticDerivativeAt;s[0]=d(o[0],l[0],e[0],r),s[1]=d(o[1],l[1],e[1],r);var v=g(o[0],l[0],e[0],r),b=g(o[1],l[1],e[1],r);if(t.rotation=-Math.atan2(b,v)-Math.PI/2,this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")if(t.__lastT!==void 0&&t.__lastT<t.__t){var S=f.dist(c,s)*1.05;t.attr("scale",[t.scale[0],S]),r===1&&(s[0]=c[0]+(s[0]-c[0])/2,s[1]=c[1]+(s[1]-c[1])/2)}else if(t.__lastT===1){var S=2*f.dist(o,s);t.attr("scale",[t.scale[0],S])}else t.attr("scale",this._symbolScale);t.__lastT=t.__t,t.ignore=!1},a.updateLayout=function(t,o){this.childAt(0).updateLayout(t,o);var e=t.getItemModel(o).getModel("effect");this._updateEffectAnimation(t,e,o)},x.inherits(u,y.Group);var i=u;k.exports=i},DBLp:function(k,D){function n(){}n.prototype={diff:function(f,h,u){u||(u=function(b,S){return b===S}),this.equals=u;var a=this;f=f.slice(),h=h.slice();var i=h.length,t=f.length,o=1,e=i+t,l=[{newPos:-1,components:[]}],r=this.extractCommon(l[0],h,f,0);if(l[0].newPos+1>=i&&r+1>=t){for(var s=[],c=0;c<h.length;c++)s.push(c);return[{indices:s,count:h.length}]}function d(){for(var v=-1*o;v<=o;v+=2){var b,S=l[v-1],E=l[v+1],C=(E?E.newPos:0)-v;S&&(l[v-1]=void 0);var _=S&&S.newPos+1<i,T=E&&0<=C&&C<t;if(!_&&!T){l[v]=void 0;continue}if(!_||T&&S.newPos<E.newPos?(b=p(E),a.pushComponent(b.components,void 0,!0)):(b=S,b.newPos++,a.pushComponent(b.components,!0,void 0)),C=a.extractCommon(b,h,f,v),b.newPos+1>=i&&C+1>=t)return y(a,b.components,h,f);l[v]=b}o++}for(;o<=e;){var g=d();if(g)return g}},pushComponent:function(f,h,u){var a=f[f.length-1];a&&a.added===h&&a.removed===u?f[f.length-1]={count:a.count+1,added:h,removed:u}:f.push({count:1,added:h,removed:u})},extractCommon:function(f,h,u,a){for(var i=h.length,t=u.length,o=f.newPos,e=o-a,l=0;o+1<i&&e+1<t&&this.equals(h[o+1],u[e+1]);)o++,e++,l++;return l&&f.components.push({count:l}),f.newPos=o,e},tokenize:function(f){return f.slice()},join:function(f){return f.slice()}};function y(m,f,h,u){for(var a=0,i=f.length,t=0,o=0;a<i;a++){var e=f[a];if(e.removed){for(var l=[],r=o;r<o+e.count;r++)l.push(r);e.indices=l,o+=e.count}else{for(var l=[],r=t;r<t+e.count;r++)l.push(r);e.indices=l,t+=e.count,e.added||(o+=e.count)}}return f}function p(m){return{newPos:m.newPos,components:m.components.slice(0)}}var x=new n;function A(m,f,h){return x.diff(m,f,h)}k.exports=A},DEFe:function(k,D,n){var y=n("bYtY"),p=n("SgGq"),x=n("Ae+d"),A=n("xSat"),m=A.onIrrelevantElement,f=n("IwbS"),h=n("W4dC"),u=n("iRjW"),a=u.getUID,i=n("DN4a");function t(s){var c=s.getItemStyle(),d=s.get("areaColor");return d!=null&&(c.fill=d),c}function o(s,c,d,g,v){d.off("click"),d.off("mousedown"),c.get("selectedMode")&&(d.on("mousedown",function(){s._mouseDownFlag=!0}),d.on("click",function(b){if(!s._mouseDownFlag)return;s._mouseDownFlag=!1;for(var S=b.target;!S.__regions;)S=S.parent;if(!S)return;var E={type:(c.mainType==="geo"?"geo":"map")+"ToggleSelect",batch:y.map(S.__regions,function(C){return{name:C.name,from:v.uid}})};E[c.mainType+"Id"]=c.id,g.dispatchAction(E),e(c,d)}))}function e(s,c){c.eachChild(function(d){y.each(d.__regions,function(g){d.trigger(s.isSelected(g.name)?"emphasis":"normal")})})}function l(s,c){var d=new f.Group;this.uid=a("ec_map_draw"),this._controller=new p(s.getZr()),this._controllerHost={target:c?d:null},this.group=d,this._updateGroup=c,this._mouseDownFlag,this._mapName,this._initialized,d.add(this._regionsGroup=new f.Group),d.add(this._backgroundGroup=new f.Group)}l.prototype={constructor:l,draw:function(s,c,d,g,v){var b=s.mainType==="geo",S=s.getData&&s.getData();b&&c.eachComponent({mainType:"series",subType:"map"},function(z){!S&&z.getHostGeoModel()===s&&(S=z.getData())});var E=s.coordinateSystem;this._updateBackground(E);var C=this._regionsGroup,_=this.group,T=E.getTransformInfo(),w=!C.childAt(0)||v,O;if(w)_.transform=T.roamTransform,_.decomposeTransform(),_.dirty();else{var I=new i;I.transform=T.roamTransform,I.decomposeTransform();var R={scale:I.scale,position:I.position};O=I.scale,f.updateProps(_,R,s)}var M=T.rawScale,F=T.rawPosition;C.removeAll();var P=["itemStyle"],X=["emphasis","itemStyle"],B=["label"],j=["emphasis","label"],W=y.createHashMap();y.each(E.regions,function(z){var V=W.get(z.name)||W.set(z.name,new f.Group),Q=new f.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});V.add(Q);var G=s.getRegionModel(z.name)||s,ee=G.getModel(P),ce=G.getModel(X),be=t(ee),le=t(ce),Ie=G.getModel(B),ke=G.getModel(j),Re;if(S){Re=S.indexOfName(z.name);var Qe=S.getItemVisual(Re,"color",!0);Qe&&(be.fill=Qe)}var We=function(we){return[we[0]*M[0]+F[0],we[1]*M[1]+F[1]]};y.each(z.geometries,function(we){if(we.type!=="polygon")return;for(var Ne=[],Ee=0;Ee<we.exterior.length;++Ee)Ne.push(We(we.exterior[Ee]));Q.shape.paths.push(new f.Polygon({segmentIgnoreThreshold:1,shape:{points:Ne}}));for(var Ee=0;Ee<(we.interiors?we.interiors.length:0);++Ee){for(var de=we.interiors[Ee],Ne=[],me=0;me<de.length;++me)Ne.push(We(de[me]));Q.shape.paths.push(new f.Polygon({segmentIgnoreThreshold:1,shape:{points:Ne}}))}}),Q.setStyle(be),Q.style.strokeNoScale=!0,Q.culling=!0;var ot=Ie.get("show"),Oe=ke.get("show"),oe=S&&isNaN(S.get(S.mapDimension("value"),Re)),st=S&&S.getItemLayout(Re);if(b||oe&&(ot||Oe)||st&&st.showLabel){var he=b?z.name:Re,J;(!S||Re>=0)&&(J=s);var Y=new f.Text({position:We(z.center.slice()),scale:[1/_.scale[0],1/_.scale[1]],z2:10,silent:!0});if(f.setLabelStyle(Y.style,Y.hoverStyle={},Ie,ke,{labelFetcher:J,labelDataIndex:he,defaultText:z.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!w){var $=[1/O[0],1/O[1]];f.updateProps(Y,{scale:$},s)}V.add(Y)}if(S)S.setItemGraphicEl(Re,V);else{var G=s.getRegionModel(z.name);Q.eventData={componentType:"geo",componentIndex:s.componentIndex,geoIndex:s.componentIndex,name:z.name,region:G&&G.option||{}}}var fe=V.__regions||(V.__regions=[]);fe.push(z),V.highDownSilentOnTouch=!!s.get("selectedMode"),f.setHoverStyle(V,le),C.add(V)}),this._updateController(s,c,d),o(this,s,C,d,g),e(s,C)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&h.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(s){var c=s.map;this._mapName!==c&&y.each(h.makeGraphic(c,this.uid),function(d){this._backgroundGroup.add(d)},this),this._mapName=c},_updateController:function(s,c,d){var g=s.coordinateSystem,v=this._controller,b=this._controllerHost;b.zoomLimit=s.get("scaleLimit"),b.zoom=g.getZoom(),v.enable(s.get("roam")||!1);var S=s.mainType;function E(){var C={type:"geoRoam",componentType:S};return C[S+"Id"]=s.id,C}v.off("pan").on("pan",function(C){this._mouseDownFlag=!1,x.updateViewOnPan(b,C.dx,C.dy),d.dispatchAction(y.extend(E(),{dx:C.dx,dy:C.dy}))},this),v.off("zoom").on("zoom",function(C){if(this._mouseDownFlag=!1,x.updateViewOnZoom(b,C.scale,C.originX,C.originY),d.dispatchAction(y.extend(E(),{zoom:C.scale,originX:C.originX,originY:C.originY})),this._updateGroup){var _=this.group.scale;this._regionsGroup.traverse(function(T){T.type==="text"&&T.attr("scale",[1/_[0],1/_[1]])})}},this),v.setPointerChecker(function(C,_,T){return g.getViewRectAfterRoam().contain(_,T)&&!m(C,d,s)})}};var r=l;k.exports=r},DFOY:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("lwsE"),f=n.n(m),h=n("W8MJ"),u=n.n(h),a=n("PJYZ"),i=n.n(a),t=n("7W2i"),o=n.n(t),e=n("LQ03"),l=n.n(e),r=n("q1tI"),s=n.n(r),c=n("VTBJ"),d=n("1OyB"),g=n("vuIU"),v=n("JX7q"),b=n("Ji7U"),S=n("LK+K"),E=n("i8i4"),C=n.n(E),_=n("l4aY"),T=n("m+aA"),w=n("c+Xe"),O=n("zT1h"),I=n("QC+M"),R=n("TSYQ"),M=n.n(R);function F(Ht,Tt,Dt){return Dt?Ht[0]===Tt[0]:Ht[0]===Tt[0]&&Ht[1]===Tt[1]}function P(Ht,Tt,Dt){var Bt=Ht[Tt]||{};return Object(c.a)(Object(c.a)({},Bt),Dt)}function X(Ht,Tt,Dt,Bt){for(var jt=Dt.points,Ot=Object.keys(Ht),nr=0;nr<Ot.length;nr+=1){var pr=Ot[nr];if(F(Ht[pr].points,jt,Bt))return"".concat(Tt,"-placement-").concat(pr)}return""}var B=n("Ff2n"),j=n("xEkU"),W=n.n(j),z=n("9mu1"),V=n("rePB"),Q=n("U8pU"),G=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function ee(Ht,Tt){var Dt={};return Dt[Ht.toLowerCase()]=Tt.toLowerCase(),Dt["Webkit".concat(Ht)]="webkit".concat(Tt),Dt["Moz".concat(Ht)]="moz".concat(Tt),Dt["ms".concat(Ht)]="MS".concat(Tt),Dt["O".concat(Ht)]="o".concat(Tt.toLowerCase()),Dt}function ce(Ht,Tt){var Dt={animationend:ee("Animation","AnimationEnd"),transitionend:ee("Transition","TransitionEnd")};return Ht&&("AnimationEvent"in Tt||delete Dt.animationend.animation,"TransitionEvent"in Tt||delete Dt.transitionend.transition),Dt}var be=ce(G,typeof window!="undefined"?window:{}),le={};if(G){var Ie=document.createElement("div");le=Ie.style}var ke={};function Re(Ht){if(ke[Ht])return ke[Ht];var Tt=be[Ht];if(Tt)for(var Dt=Object.keys(Tt),Bt=Dt.length,jt=0;jt<Bt;jt+=1){var Ot=Dt[jt];if(Object.prototype.hasOwnProperty.call(Tt,Ot)&&Ot in le)return ke[Ht]=Tt[Ot],ke[Ht]}return""}var Qe=Re("animationend"),We=Re("transitionend"),ot=!!(Qe&&We);function Oe(Ht,Tt){if(!Ht)return null;if(Object(Q.a)(Ht)==="object"){var Dt=Tt.replace(/-\w/g,function(Bt){return Bt[1].toUpperCase()});return Ht[Dt]}return"".concat(Ht,"-").concat(Tt)}var oe="none",st="appear",he="enter",J="leave";function Y(Ht){var Tt=Ht,Dt=!!r.forwardRef;Object(Q.a)(Ht)==="object"&&(Tt=Ht.transitionSupport,Dt="forwardRef"in Ht?Ht.forwardRef:Dt);function Bt(Ot){return!!(Ot.motionName&&Tt)}var jt=function(Ot){Object(b.a)(pr,Ot);var nr=Object(S.a)(pr);function pr(){var Ar;return Object(d.a)(this,pr),Ar=nr.apply(this,arguments),Ar.$cacheEle=null,Ar.node=null,Ar.raf=null,Ar.destroyed=!1,Ar.deadlineId=null,Ar.state={status:oe,statusActive:!1,newStatus:!1,statusStyle:null},Ar.onDomUpdate=function(){var Nr=Ar.state,Hn=Nr.status,Ln=Nr.newStatus,ci=Ar.props,hn=ci.onAppearStart,Fr=ci.onEnterStart,En=ci.onLeaveStart,Wn=ci.onAppearActive,Yn=ci.onEnterActive,ii=ci.onLeaveActive,xi=ci.motionAppear,Ni=ci.motionEnter,Li=ci.motionLeave;if(!Bt(Ar.props))return;var oa=Ar.getElement();Ar.$cacheEle!==oa&&(Ar.removeEventListener(Ar.$cacheEle),Ar.addEventListener(oa),Ar.$cacheEle=oa),Ln&&Hn===st&&xi?Ar.updateStatus(hn,null,null,function(){Ar.updateActiveStatus(Wn,st)}):Ln&&Hn===he&&Ni?Ar.updateStatus(Fr,null,null,function(){Ar.updateActiveStatus(Yn,he)}):Ln&&Hn===J&&Li&&Ar.updateStatus(En,null,null,function(){Ar.updateActiveStatus(ii,J)})},Ar.onMotionEnd=function(Nr){if(Nr&&!Nr.deadline&&Nr.target!==Ar.getElement())return;var Hn=Ar.state,Ln=Hn.status,ci=Hn.statusActive,hn=Ar.props,Fr=hn.onAppearEnd,En=hn.onEnterEnd,Wn=hn.onLeaveEnd;Ln===st&&ci?Ar.updateStatus(Fr,{status:oe},Nr):Ln===he&&ci?Ar.updateStatus(En,{status:oe},Nr):Ln===J&&ci&&Ar.updateStatus(Wn,{status:oe},Nr)},Ar.setNodeRef=function(Nr){var Hn=Ar.props.internalRef;Ar.node=Nr,Object(w.b)(Hn,Nr)},Ar.getElement=function(){try{return Object(T.a)(Ar.node||Object(v.a)(Ar))}catch(Nr){return Ar.$cacheEle}},Ar.addEventListener=function(Nr){if(!Nr)return;Nr.addEventListener(We,Ar.onMotionEnd),Nr.addEventListener(Qe,Ar.onMotionEnd)},Ar.removeEventListener=function(Nr){if(!Nr)return;Nr.removeEventListener(We,Ar.onMotionEnd),Nr.removeEventListener(Qe,Ar.onMotionEnd)},Ar.updateStatus=function(Nr,Hn,Ln,ci){var hn=Nr?Nr(Ar.getElement(),Ln):null;if(hn===!1||Ar.destroyed)return;var Fr;ci&&(Fr=function(){Ar.nextFrame(ci)}),Ar.setState(Object(c.a)({statusStyle:Object(Q.a)(hn)==="object"?hn:null,newStatus:!1},Hn),Fr)},Ar.updateActiveStatus=function(Nr,Hn){Ar.nextFrame(function(){var Ln=Ar.state.status;if(Ln!==Hn)return;var ci=Ar.props.motionDeadline;Ar.updateStatus(Nr,{statusActive:!0}),ci>0&&(Ar.deadlineId=setTimeout(function(){Ar.onMotionEnd({deadline:!0})},ci))})},Ar.nextFrame=function(Nr){Ar.cancelNextFrame(),Ar.raf=W()(Nr)},Ar.cancelNextFrame=function(){Ar.raf&&(W.a.cancel(Ar.raf),Ar.raf=null)},Ar}return Object(g.a)(pr,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this.destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame(),clearTimeout(this.deadlineId)}},{key:"render",value:function(){var Nr,Hn=this.state,Ln=Hn.status,ci=Hn.statusActive,hn=Hn.statusStyle,Fr=this.props,En=Fr.children,Wn=Fr.motionName,Yn=Fr.visible,ii=Fr.removeOnLeave,xi=Fr.leavedClassName,Ni=Fr.eventProps;return En?Ln===oe||!Bt(this.props)?Yn?En(Object(c.a)({},Ni),this.setNodeRef):ii?null:En(Object(c.a)(Object(c.a)({},Ni),{},{className:xi}),this.setNodeRef):En(Object(c.a)(Object(c.a)({},Ni),{},{className:M()(Oe(Wn,Ln),(Nr={},Object(V.a)(Nr,Oe(Wn,"".concat(Ln,"-active")),ci),Object(V.a)(Nr,Wn,typeof Wn=="string"),Nr)),style:hn}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(Nr,Hn){var Ln=Hn.prevProps,ci=Hn.status;if(!Bt(Nr))return{};var hn=Nr.visible,Fr=Nr.motionAppear,En=Nr.motionEnter,Wn=Nr.motionLeave,Yn=Nr.motionLeaveImmediately,ii={prevProps:Nr};return(ci===st&&!Fr||ci===he&&!En||ci===J&&!Wn)&&(ii.status=oe,ii.statusActive=!1,ii.newStatus=!1),!Ln&&hn&&Fr&&(ii.status=st,ii.statusActive=!1,ii.newStatus=!0),Ln&&!Ln.visible&&hn&&En&&(ii.status=he,ii.statusActive=!1,ii.newStatus=!0),(Ln&&Ln.visible&&!hn&&Wn||!Ln&&Yn&&!hn&&Wn)&&(ii.status=J,ii.statusActive=!1,ii.newStatus=!0),ii}}]),pr}(r.Component);return jt.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},Dt?r.forwardRef(function(Ot,nr){return r.createElement(jt,Object.assign({internalRef:nr},Ot))}):jt}var $=Y(ot),fe="add",we="keep",Ne="remove",Ee="removed";function de(Ht){var Tt;return Ht&&Object(Q.a)(Ht)==="object"&&"key"in Ht?Tt=Ht:Tt={key:Ht},Object(c.a)(Object(c.a)({},Tt),{},{key:String(Tt.key)})}function me(){var Ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Ht.map(de)}function Le(){var Ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Dt=[],Bt=0,jt=Tt.length,Ot=me(Ht),nr=me(Tt);Ot.forEach(function(Nr){for(var Hn=!1,Ln=Bt;Ln<jt;Ln+=1){var ci=nr[Ln];if(ci.key===Nr.key){Bt<Ln&&(Dt=Dt.concat(nr.slice(Bt,Ln).map(function(hn){return Object(c.a)(Object(c.a)({},hn),{},{status:fe})})),Bt=Ln),Dt.push(Object(c.a)(Object(c.a)({},ci),{},{status:we})),Bt+=1,Hn=!0;break}}Hn||Dt.push(Object(c.a)(Object(c.a)({},Nr),{},{status:Ne}))}),Bt<jt&&(Dt=Dt.concat(nr.slice(Bt).map(function(Nr){return Object(c.a)(Object(c.a)({},Nr),{},{status:fe})})));var pr={};Dt.forEach(function(Nr){var Hn=Nr.key;pr[Hn]=(pr[Hn]||0)+1});var Ar=Object.keys(pr).filter(function(Nr){return pr[Nr]>1});return Ar.forEach(function(Nr){Dt=Dt.filter(function(Hn){var Ln=Hn.key,ci=Hn.status;return Ln!==Nr||ci!==Ne}),Dt.forEach(function(Hn){Hn.key===Nr&&(Hn.status=we)})}),Dt}var tt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function At(Ht){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,Dt=function(Bt){Object(b.a)(Ot,Bt);var jt=Object(S.a)(Ot);function Ot(){var nr;return Object(d.a)(this,Ot),nr=jt.apply(this,arguments),nr.state={keyEntities:[]},nr.removeKey=function(pr){nr.setState(function(Ar){var Nr=Ar.keyEntities;return{keyEntities:Nr.map(function(Hn){return Hn.key!==pr?Hn:Object(c.a)(Object(c.a)({},Hn),{},{status:Ee})})}})},nr}return Object(g.a)(Ot,[{key:"render",value:function(){var pr=this,Ar=this.state.keyEntities,Nr=this.props,Hn=Nr.component,Ln=Nr.children,ci=Object(B.a)(Nr,["component","children"]),hn=Hn||r.Fragment,Fr={};return tt.forEach(function(En){Fr[En]=ci[En],delete ci[En]}),delete ci.keys,r.createElement(hn,Object.assign({},ci),Ar.map(function(En){var Wn=En.status,Yn=Object(B.a)(En,["status"]),ii=Wn===fe||Wn===we;return r.createElement(Tt,Object.assign({},Fr,{key:Yn.key,visible:ii,eventProps:Yn,onLeaveEnd:function(){Fr.onLeaveEnd&&Fr.onLeaveEnd.apply(Fr,arguments),pr.removeKey(Yn.key)}}),Ln)}))}}],[{key:"getDerivedStateFromProps",value:function(pr,Ar){var Nr=pr.keys,Hn=Ar.keyEntities,Ln=me(Nr);if(!Ht)return{keyEntities:Ln.map(function(Fr){return Object(c.a)(Object(c.a)({},Fr),{},{status:we})})};var ci=Le(Hn,Ln),hn=Hn.length;return{keyEntities:ci.filter(function(Fr){for(var En=null,Wn=0;Wn<hn;Wn+=1){var Yn=Hn[Wn];if(Yn.key===Fr.key){En=Yn;break}}return!(En&&En.status===Ee&&Fr.status===Ne)})}}}]),Ot}(r.Component);return Dt.defaultProps={component:"div"},Dt}var ht=At(ot),Ke=$,Jt=function(Tt,Dt){var Bt=Tt.prefixCls,jt=Tt.className,Ot=Tt.style,nr=Tt.children,pr=Tt.onMouseEnter,Ar=Tt.onMouseLeave,Nr=Tt.onMouseDown,Hn=Tt.onTouchStart,Ln=nr;return r.Children.count(nr)>1&&(Ln=r.createElement("div",{className:"".concat(Bt,"-content")},nr)),r.createElement("div",{ref:Dt,className:jt,onMouseEnter:pr,onMouseLeave:Ar,onMouseDown:Nr,onTouchStart:Hn,style:Ot},Ln)},ct=r.forwardRef(Jt);ct.displayName="PopupInner";var Gt=ct;function dr(Ht){var Tt=Ht.prefixCls,Dt=Ht.motion,Bt=Ht.animation,jt=Ht.transitionName;return Dt||(Bt?{motionName:"".concat(Tt,"-").concat(Bt)}:jt?{motionName:jt}:null)}function zt(Ht){return Ht&&Ht.motionName}var kt=function(Ht){Object(b.a)(Dt,Ht);var Tt=Object(S.a)(Dt);function Dt(){var Bt;return Object(d.a)(this,Dt),Bt=Tt.apply(this,arguments),Bt.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},Bt.popupRef=s.a.createRef(),Bt.alignRef=s.a.createRef(),Bt.nextFrameState=null,Bt.nextFrameId=null,Bt.onAlign=function(jt,Ot){var nr=Bt.state.status,pr=Bt.props,Ar=pr.getClassNameFromAlign,Nr=pr.onAlign,Hn=Ar(Ot);nr==="align"?Bt.setState({alignClassName:Hn,status:"aligned"},function(){Bt.alignRef.current.forceAlign()}):nr==="aligned"?(Bt.setState({alignClassName:Hn,status:"afterAlign"}),Nr(jt,Ot)):Bt.setState({alignClassName:Hn})},Bt.onMotionEnd=function(){var jt=Bt.props.visible;Bt.setState({status:jt?"AfterMotion":"stable",inMotion:!1})},Bt.setStateOnNextFrame=function(jt){Bt.cancelFrameState(),Bt.nextFrameState=Object(c.a)(Object(c.a)({},Bt.nextFrameState),jt),Bt.nextFrameId=W()(function(){var Ot=Object(c.a)({},Bt.nextFrameState);Bt.nextFrameState=null,Bt.setState(Ot)})},Bt.getMotion=function(){return Object(c.a)({},dr(Bt.props))},Bt.getAlignTarget=function(){var jt=Bt.props,Ot=jt.point,nr=jt.getRootDomNode;return Ot||nr},Bt.cancelFrameState=function(){W.a.cancel(Bt.nextFrameId)},Bt.renderPopupElement=function(){var jt=Bt.state,Ot=jt.status,nr=jt.targetHeight,pr=jt.targetWidth,Ar=jt.alignClassName,Nr=Bt.props,Hn=Nr.prefixCls,Ln=Nr.className,ci=Nr.style,hn=Nr.stretch,Fr=Nr.visible,En=Nr.align,Wn=Nr.destroyPopupOnHide,Yn=Nr.onMouseEnter,ii=Nr.onMouseLeave,xi=Nr.onMouseDown,Ni=Nr.onTouchStart,Li=Nr.children,oa=M()(Hn,Ln,Ar),ma="".concat(Hn,"-hidden"),ia={};hn&&(hn.indexOf("height")!==-1?ia.height=nr:hn.indexOf("minHeight")!==-1&&(ia.minHeight=nr),hn.indexOf("width")!==-1?ia.width=pr:hn.indexOf("minWidth")!==-1&&(ia.minWidth=pr));var ba=Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)({},ia),Bt.getZIndexStyle()),ci),{},{opacity:Ot==="stable"||!Fr?void 0:0,pointerEvents:Ot==="stable"||!Fr?void 0:"none"}),vi=Bt.getMotion(),On=Fr;Fr&&Ot!=="beforeMotion"&&Ot!=="motion"&&Ot!=="stable"&&(vi.motionAppear=!1,vi.motionEnter=!1,vi.motionLeave=!1),(Ot==="afterAlign"||Ot==="beforeMotion")&&(On=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(ea){var aa=vi==null?void 0:vi[ea];vi[ea]=function(){for(var Or=arguments.length,wr=new Array(Or),Sn=0;Sn<Or;Sn++)wr[Sn]=arguments[Sn];aa==null||aa.apply(void 0,wr),Bt.setState({inMotion:!0})}});var Fi=!Fr||Ot!=="align"&&Ot!=="aligned"&&Ot!=="stable",ha=!0;return Ot==="stable"&&(ha=Fr),Wn&&!ha?null:s.a.createElement(Ke,Object.assign({visible:On},vi,{removeOnLeave:!1,onEnterEnd:Bt.onMotionEnd,onLeaveEnd:Bt.onMotionEnd,leavedClassName:ma}),function(ea,aa){var Or=ea.style,wr=ea.className;return s.a.createElement(z.a,{target:Bt.getAlignTarget(),key:"popup",ref:Bt.alignRef,monitorWindowResize:!0,disabled:Fi,align:En,onAlign:Bt.onAlign},s.a.createElement(Gt,{prefixCls:Hn,className:M()(oa,wr),ref:Object(w.a)(aa,Bt.popupRef),onMouseEnter:Yn,onMouseLeave:ii,onMouseDown:xi,onTouchStart:Ni,style:Object(c.a)(Object(c.a)({},ba),Or)},Li))})},Bt.renderMaskElement=function(){var jt=Bt.props,Ot=jt.mask,nr=jt.maskMotion,pr=jt.maskTransitionName,Ar=jt.maskAnimation,Nr=jt.prefixCls,Hn=jt.visible;if(!Ot)return null;var Ln={};return nr&&nr.motionName&&(Ln=Object(c.a)({motionAppear:!0},dr({motion:nr,prefixCls:Nr,transitionName:pr,animation:Ar}))),s.a.createElement(Ke,Object.assign({},Ln,{visible:Hn,removeOnLeave:!0}),function(ci){var hn=ci.className;return s.a.createElement("div",{style:Bt.getZIndexStyle(),key:"mask",className:M()("".concat(Nr,"-mask"),hn)})})},Bt}return Object(g.a)(Dt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var jt=this.state.status,Ot=this.props,nr=Ot.getRootDomNode,pr=Ot.visible,Ar=Ot.stretch;if(this.cancelFrameState(),pr&&jt!=="stable")switch(jt){case null:{this.setStateOnNextFrame({status:Ar?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:zt(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var Nr=["measure","align",null,"beforeMotion","motion"],Hn=Nr.indexOf(jt),Ln=Nr[Hn+1];Hn!==-1&&Ln&&this.setStateOnNextFrame({status:Ln})}}if(jt==="measure"){var ci=nr();ci&&this.setStateOnNextFrame({targetHeight:ci.offsetHeight,targetWidth:ci.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var jt=this.props.zIndex;return{zIndex:jt}}},{key:"render",value:function(){return s.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(jt,Ot){var nr=jt.visible,pr=Object(B.a)(jt,["visible"]),Ar=Ot.prevVisible,Nr=Ot.status,Hn=Ot.inMotion,Ln={prevVisible:nr,status:Nr},ci=dr(pr);return Ar===null&&nr===!1?(Ln.status="stable",Ln.inMotion=!1):nr!==Ar&&(Ln.inMotion=!1,nr||zt(ci)&&Hn?Ln.status=null:Ln.status="stable",nr&&(Ln.alignClassName=null)),Ln}}]),Dt}(r.Component),Vt=kt,Xe=r.createContext(null),pe=Xe;function te(){}function $e(){return""}function He(){return window.document}var ae=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function ft(Ht){var Tt=function(Dt){Object(b.a)(jt,Dt);var Bt=Object(S.a)(jt);function jt(Ot){var nr;Object(d.a)(this,jt),nr=Bt.call(this,Ot),nr.popupRef=s.a.createRef(),nr.triggerRef=s.a.createRef(),nr.onMouseEnter=function(Ar){var Nr=nr.props.mouseEnterDelay;nr.fireEvents("onMouseEnter",Ar),nr.delaySetPopupVisible(!0,Nr,Nr?null:Ar)},nr.onMouseMove=function(Ar){nr.fireEvents("onMouseMove",Ar),nr.setPoint(Ar)},nr.onMouseLeave=function(Ar){nr.fireEvents("onMouseLeave",Ar),nr.delaySetPopupVisible(!1,nr.props.mouseLeaveDelay)},nr.onPopupMouseEnter=function(){nr.clearDelayTimer()},nr.onPopupMouseLeave=function(Ar){if(Ar.relatedTarget&&!Ar.relatedTarget.setTimeout&&nr.popupRef.current&&nr.popupRef.current.popupRef.current&&Object(_.a)(nr.popupRef.current.popupRef.current,Ar.relatedTarget))return;nr.delaySetPopupVisible(!1,nr.props.mouseLeaveDelay)},nr.onFocus=function(Ar){nr.fireEvents("onFocus",Ar),nr.clearDelayTimer(),nr.isFocusToShow()&&(nr.focusTime=Date.now(),nr.delaySetPopupVisible(!0,nr.props.focusDelay))},nr.onMouseDown=function(Ar){nr.fireEvents("onMouseDown",Ar),nr.preClickTime=Date.now()},nr.onTouchStart=function(Ar){nr.fireEvents("onTouchStart",Ar),nr.preTouchTime=Date.now()},nr.onBlur=function(Ar){nr.fireEvents("onBlur",Ar),nr.clearDelayTimer(),nr.isBlurToHide()&&nr.delaySetPopupVisible(!1,nr.props.blurDelay)},nr.onContextMenu=function(Ar){Ar.preventDefault(),nr.fireEvents("onContextMenu",Ar),nr.setPopupVisible(!0,Ar)},nr.onContextMenuClose=function(){nr.isContextMenuToShow()&&nr.close()},nr.onClick=function(Ar){if(nr.fireEvents("onClick",Ar),nr.focusTime){var Nr;if(nr.preClickTime&&nr.preTouchTime?Nr=Math.min(nr.preClickTime,nr.preTouchTime):nr.preClickTime?Nr=nr.preClickTime:nr.preTouchTime&&(Nr=nr.preTouchTime),Math.abs(Nr-nr.focusTime)<20)return;nr.focusTime=0}nr.preClickTime=0,nr.preTouchTime=0,nr.isClickToShow()&&(nr.isClickToHide()||nr.isBlurToHide())&&Ar&&Ar.preventDefault&&Ar.preventDefault();var Hn=!nr.state.popupVisible;(nr.isClickToHide()&&!Hn||Hn&&nr.isClickToShow())&&nr.setPopupVisible(!nr.state.popupVisible,Ar)},nr.onPopupMouseDown=function(){if(nr.hasPopupMouseDown=!0,clearTimeout(nr.mouseDownTimeout),nr.mouseDownTimeout=window.setTimeout(function(){nr.hasPopupMouseDown=!1},0),nr.context){var Ar;(Ar=nr.context).onPopupMouseDown.apply(Ar,arguments)}},nr.onDocumentClick=function(Ar){if(nr.props.mask&&!nr.props.maskClosable)return;var Nr=Ar.target,Hn=nr.getRootDomNode(),Ln=nr.getPopupDomNode();!Object(_.a)(Hn,Nr)&&!Object(_.a)(Ln,Nr)&&!nr.hasPopupMouseDown&&nr.close()},nr.getRootDomNode=function(){var Ar=nr.props.getTriggerDOMNode;if(Ar)return Ar(nr.triggerRef.current);try{var Nr=Object(T.a)(nr.triggerRef.current);if(Nr)return Nr}catch(Hn){}return C.a.findDOMNode(Object(v.a)(nr))},nr.getPopupClassNameFromAlign=function(Ar){var Nr=[],Hn=nr.props,Ln=Hn.popupPlacement,ci=Hn.builtinPlacements,hn=Hn.prefixCls,Fr=Hn.alignPoint,En=Hn.getPopupClassNameFromAlign;return Ln&&ci&&Nr.push(X(ci,hn,Ar,Fr)),En&&Nr.push(En(Ar)),Nr.join(" ")},nr.getComponent=function(){var Ar=nr.props,Nr=Ar.prefixCls,Hn=Ar.destroyPopupOnHide,Ln=Ar.popupClassName,ci=Ar.onPopupAlign,hn=Ar.popupMotion,Fr=Ar.popupAnimation,En=Ar.popupTransitionName,Wn=Ar.popupStyle,Yn=Ar.mask,ii=Ar.maskAnimation,xi=Ar.maskTransitionName,Ni=Ar.maskMotion,Li=Ar.zIndex,oa=Ar.popup,ma=Ar.stretch,ia=Ar.alignPoint,ba=nr.state,vi=ba.popupVisible,On=ba.point,Fi=nr.getPopupAlign(),ha={};return nr.isMouseEnterToShow()&&(ha.onMouseEnter=nr.onPopupMouseEnter),nr.isMouseLeaveToHide()&&(ha.onMouseLeave=nr.onPopupMouseLeave),ha.onMouseDown=nr.onPopupMouseDown,ha.onTouchStart=nr.onPopupMouseDown,s.a.createElement(Vt,Object.assign({prefixCls:Nr,destroyPopupOnHide:Hn,visible:vi,point:ia&&On,className:Ln,align:Fi,onAlign:ci,animation:Fr,getClassNameFromAlign:nr.getPopupClassNameFromAlign},ha,{stretch:ma,getRootDomNode:nr.getRootDomNode,style:Wn,mask:Yn,zIndex:Li,transitionName:En,maskAnimation:ii,maskTransitionName:xi,maskMotion:Ni,ref:nr.popupRef,motion:hn}),typeof oa=="function"?oa():oa)},nr.getContainer=function(){var Ar=Object(v.a)(nr),Nr=Ar.props,Hn=document.createElement("div");Hn.style.position="absolute",Hn.style.top="0",Hn.style.left="0",Hn.style.width="100%";var Ln=Nr.getPopupContainer?Nr.getPopupContainer(nr.getRootDomNode()):Nr.getDocument().body;return Ln.appendChild(Hn),Hn},nr.setPoint=function(Ar){var Nr=nr.props.alignPoint;if(!Nr||!Ar)return;nr.setState({point:{pageX:Ar.pageX,pageY:Ar.pageY}})},nr.handlePortalUpdate=function(){nr.state.prevPopupVisible!==nr.state.popupVisible&&nr.props.afterPopupVisibleChange(nr.state.popupVisible)};var pr;return"popupVisible"in Ot?pr=!!Ot.popupVisible:pr=!!Ot.defaultPopupVisible,nr.state={prevPopupVisible:pr,popupVisible:pr},ae.forEach(function(Ar){nr["fire".concat(Ar)]=function(Nr){nr.fireEvents(Ar,Nr)}}),nr}return Object(g.a)(jt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var nr=this.props,pr=this.state;if(pr.popupVisible){var Ar;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Ar=nr.getDocument(),this.clickOutsideHandler=Object(O.a)(Ar,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Ar=Ar||nr.getDocument(),this.touchOutsideHandler=Object(O.a)(Ar,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Ar=Ar||nr.getDocument(),this.contextMenuOutsideHandler1=Object(O.a)(Ar,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(O.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)}},{key:"getPopupDomNode",value:function(){return this.popupRef.current&&this.popupRef.current.popupRef.current?this.popupRef.current.popupRef.current:null}},{key:"getPopupAlign",value:function(){var nr=this.props,pr=nr.popupPlacement,Ar=nr.popupAlign,Nr=nr.builtinPlacements;return pr&&Nr?P(Nr,pr,Ar):Ar}},{key:"setPopupVisible",value:function(nr,pr){var Ar=this.props.alignPoint,Nr=this.state.popupVisible;this.clearDelayTimer(),Nr!==nr&&("popupVisible"in this.props||this.setState({popupVisible:nr,prevPopupVisible:Nr}),this.props.onPopupVisibleChange(nr)),Ar&&pr&&this.setPoint(pr)}},{key:"delaySetPopupVisible",value:function(nr,pr,Ar){var Nr=this,Hn=pr*1e3;if(this.clearDelayTimer(),Hn){var Ln=Ar?{pageX:Ar.pageX,pageY:Ar.pageY}:null;this.delayTimer=window.setTimeout(function(){Nr.setPopupVisible(nr,Ln),Nr.clearDelayTimer()},Hn)}else this.setPopupVisible(nr,Ar)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(nr){var pr=this.props.children.props,Ar=this.props;return pr[nr]&&Ar[nr]?this["fire".concat(nr)]:pr[nr]||Ar[nr]}},{key:"isClickToShow",value:function(){var nr=this.props,pr=nr.action,Ar=nr.showAction;return pr.indexOf("click")!==-1||Ar.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var nr=this.props,pr=nr.action,Ar=nr.showAction;return pr.indexOf("contextMenu")!==-1||Ar.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var nr=this.props,pr=nr.action,Ar=nr.hideAction;return pr.indexOf("click")!==-1||Ar.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var nr=this.props,pr=nr.action,Ar=nr.showAction;return pr.indexOf("hover")!==-1||Ar.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var nr=this.props,pr=nr.action,Ar=nr.hideAction;return pr.indexOf("hover")!==-1||Ar.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var nr=this.props,pr=nr.action,Ar=nr.showAction;return pr.indexOf("focus")!==-1||Ar.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var nr=this.props,pr=nr.action,Ar=nr.hideAction;return pr.indexOf("focus")!==-1||Ar.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){this.state.popupVisible&&this.popupRef.current&&this.popupRef.current.alignRef.current&&this.popupRef.current.alignRef.current.forceAlign()}},{key:"fireEvents",value:function(nr,pr){var Ar=this.props.children.props[nr];Ar&&Ar(pr);var Nr=this.props[nr];Nr&&Nr(pr)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var nr=this.state.popupVisible,pr=this.props,Ar=pr.children,Nr=pr.forceRender,Hn=pr.alignPoint,Ln=pr.className,ci=pr.autoDestroy,hn=s.a.Children.only(Ar),Fr={key:"trigger"};this.isContextMenuToShow()?Fr.onContextMenu=this.onContextMenu:Fr.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Fr.onClick=this.onClick,Fr.onMouseDown=this.onMouseDown,Fr.onTouchStart=this.onTouchStart):(Fr.onClick=this.createTwoChains("onClick"),Fr.onMouseDown=this.createTwoChains("onMouseDown"),Fr.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Fr.onMouseEnter=this.onMouseEnter,Hn&&(Fr.onMouseMove=this.onMouseMove)):Fr.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Fr.onMouseLeave=this.onMouseLeave:Fr.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Fr.onFocus=this.onFocus,Fr.onBlur=this.onBlur):(Fr.onFocus=this.createTwoChains("onFocus"),Fr.onBlur=this.createTwoChains("onBlur"));var En=M()(hn&&hn.props&&hn.props.className,Ln);En&&(Fr.className=En);var Wn=Object(c.a)({},Fr);Object(w.c)(hn)&&(Wn.ref=Object(w.a)(this.triggerRef,hn.ref));var Yn=s.a.cloneElement(hn,Wn),ii;return(nr||this.popupRef.current||Nr)&&(ii=s.a.createElement(Ht,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!nr&&ci&&(ii=null),s.a.createElement(pe.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},Yn,ii)}}],[{key:"getDerivedStateFromProps",value:function(nr,pr){var Ar=nr.popupVisible,Nr={};return Ar!==void 0&&pr.popupVisible!==Ar&&(Nr.popupVisible=Ar,Nr.prevPopupVisible=pr.popupVisible),Nr}}]),jt}(s.a.Component);return Tt.contextType=pe,Tt.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:$e,getDocument:He,onPopupVisibleChange:te,afterPopupVisibleChange:te,onPopupAlign:te,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Tt}var Mt=ft(I.a),mt=n("2W6z"),or=n.n(mt),vr=n("4IlW"),fn=n("uK0f"),sr=n.n(fn);function Ir(Ht,Tt){if(Ht===Tt)return!0;if(!Ht||!Tt)return!1;var Dt=Ht.length;if(Tt.length!==Dt)return!1;for(var Bt=0;Bt<Dt;Bt++)if(Ht[Bt]!==Tt[Bt])return!1;return!0}function lr(Ht){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lr=function(Dt){return typeof Dt}:lr=function(Dt){return Dt&&typeof Symbol=="function"&&Dt.constructor===Symbol&&Dt!==Symbol.prototype?"symbol":typeof Dt},lr(Ht)}function Wt(Ht,Tt){if(!(Ht instanceof Tt))throw new TypeError("Cannot call a class as a function")}function xt(Ht,Tt){for(var Dt=0;Dt<Tt.length;Dt++){var Bt=Tt[Dt];Bt.enumerable=Bt.enumerable||!1,Bt.configurable=!0,"value"in Bt&&(Bt.writable=!0),Object.defineProperty(Ht,Bt.key,Bt)}}function rn(Ht,Tt,Dt){return Tt&&xt(Ht.prototype,Tt),Dt&&xt(Ht,Dt),Ht}function Dn(Ht,Tt){if(typeof Tt!="function"&&Tt!==null)throw new TypeError("Super expression must either be null or a function");Ht.prototype=Object.create(Tt&&Tt.prototype,{constructor:{value:Ht,writable:!0,configurable:!0}}),Tt&&Xn(Ht,Tt)}function Xn(Ht,Tt){return Xn=Object.setPrototypeOf||function(Bt,jt){return Bt.__proto__=jt,Bt},Xn(Ht,Tt)}function ri(Ht){var Tt=Jn();return function(){var Dt=Xt(Ht),Bt;if(Tt){var jt=Xt(this).constructor;Bt=Reflect.construct(Dt,arguments,jt)}else Bt=Dt.apply(this,arguments);return Ui(this,Bt)}}function Ui(Ht,Tt){return Tt&&(lr(Tt)==="object"||typeof Tt=="function")?Tt:Bn(Ht)}function Bn(Ht){if(Ht===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ht}function Jn(){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(Ht){return!1}}function Xt(Ht){return Xt=Object.setPrototypeOf?Object.getPrototypeOf:function(Dt){return Dt.__proto__||Object.getPrototypeOf(Dt)},Xt(Ht)}var _t=function(){var Ht=function(Tt){Dn(Bt,Tt);var Dt=ri(Bt);function Bt(){var jt;return Wt(this,Bt),jt=Dt.apply(this,arguments),jt.menuItems={},jt.saveMenuItem=function(Ot){return function(nr){jt.menuItems[Ot]=nr}},jt}return rn(Bt,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(Ot){!Ot.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(Ot){var nr=this.props,pr=nr.fieldNames,Ar=nr.defaultFieldNames;return pr[Ot]||Ar[Ot]}},{key:"getOption",value:function(Ot,nr){var pr=this.props,Ar=pr.prefixCls,Nr=pr.expandTrigger,Hn=pr.expandIcon,Ln=pr.loadingIcon,ci=this.props.onSelect.bind(this,Ot,nr),hn=this.props.onItemDoubleClick.bind(this,Ot,nr),Fr={onClick:ci,onDoubleClick:hn},En="".concat(Ar,"-menu-item"),Wn=null,Yn=Ot[this.getFieldName("children")]&&Ot[this.getFieldName("children")].length>0;(Yn||Ot.isLeaf===!1)&&(En+=" ".concat(Ar,"-menu-item-expand"),Ot.loading||(Wn=r.createElement("span",{className:"".concat(Ar,"-menu-item-expand-icon")},Hn))),Nr==="hover"&&(Yn||Ot.isLeaf===!1)&&(Fr={onMouseEnter:this.delayOnSelect.bind(this,ci),onMouseLeave:this.delayOnSelect.bind(this),onClick:ci}),this.isActiveOption(Ot,nr)&&(En+=" ".concat(Ar,"-menu-item-active"),Fr.ref=this.saveMenuItem(nr)),Ot.disabled&&(En+=" ".concat(Ar,"-menu-item-disabled"));var ii=null;Ot.loading&&(En+=" ".concat(Ar,"-menu-item-loading"),ii=Ln||null);var xi="";return"title"in Ot?xi=Ot.title:typeof Ot[this.getFieldName("label")]=="string"&&(xi=Ot[this.getFieldName("label")]),r.createElement("li",Object.assign({key:Ot[this.getFieldName("value")],className:En,title:xi},Fr,{role:"menuitem",onMouseDown:function(Li){return Li.preventDefault()}}),Ot[this.getFieldName("label")],Wn,ii)}},{key:"getActiveOptions",value:function(Ot){var nr=this,pr=this.props.options,Ar=Ot||this.props.activeValue;return sr()(pr,function(Nr,Hn){return Nr[nr.getFieldName("value")]===Ar[Hn]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var Ot=this,nr=this.props.options,pr=this.getActiveOptions().map(function(Ar){return Ar[Ot.getFieldName("children")]}).filter(function(Ar){return!!Ar});return pr.unshift(nr),pr}},{key:"delayOnSelect",value:function(Ot){for(var nr=this,pr=arguments.length,Ar=new Array(pr>1?pr-1:0),Nr=1;Nr<pr;Nr++)Ar[Nr-1]=arguments[Nr];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof Ot=="function"&&(this.delayTimer=window.setTimeout(function(){Ot(Ar),nr.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var Ot=this.getShowOptions().length,nr=0;nr<Ot;nr++){var pr=this.menuItems[nr];pr&&pr.parentElement&&(pr.parentElement.scrollTop=pr.offsetTop)}}},{key:"isActiveOption",value:function(Ot,nr){var pr=this.props.activeValue,Ar=pr===void 0?[]:pr;return Ar[nr]===Ot[this.getFieldName("value")]}},{key:"render",value:function(){var Ot=this,nr=this.props,pr=nr.prefixCls,Ar=nr.dropdownMenuColumnStyle;return r.createElement("div",null,this.getShowOptions().map(function(Nr,Hn){return r.createElement("ul",{className:"".concat(pr,"-menu"),key:Hn,style:Ar},Nr.map(function(Ln){return Ot.getOption(Ln,Hn)}))}))}}]),Bt}(r.Component);return Ht.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},Ht}(),Fe=_t,Pe={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}},Be=Pe;function nt(Ht){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nt=function(Dt){return typeof Dt}:nt=function(Dt){return Dt&&typeof Symbol=="function"&&Dt.constructor===Symbol&&Dt!==Symbol.prototype?"symbol":typeof Dt},nt(Ht)}function vt(Ht,Tt){if(Ht==null)return{};var Dt=ar(Ht,Tt),Bt,jt;if(Object.getOwnPropertySymbols){var Ot=Object.getOwnPropertySymbols(Ht);for(jt=0;jt<Ot.length;jt++){if(Bt=Ot[jt],Tt.indexOf(Bt)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Ht,Bt))continue;Dt[Bt]=Ht[Bt]}}return Dt}function ar(Ht,Tt){if(Ht==null)return{};var Dt={},Bt=Object.keys(Ht),jt,Ot;for(Ot=0;Ot<Bt.length;Ot++){if(jt=Bt[Ot],Tt.indexOf(jt)>=0)continue;Dt[jt]=Ht[jt]}return Dt}function kr(Ht){return ur(Ht)||ni(Ht)||Zn(Ht)||mn()}function mn(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zn(Ht,Tt){if(!Ht)return;if(typeof Ht=="string")return Nt(Ht,Tt);var Dt=Object.prototype.toString.call(Ht).slice(8,-1);if(Dt==="Object"&&Ht.constructor&&(Dt=Ht.constructor.name),Dt==="Map"||Dt==="Set")return Array.from(Ht);if(Dt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Dt))return Nt(Ht,Tt)}function ni(Ht){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(Ht))return Array.from(Ht)}function ur(Ht){if(Array.isArray(Ht))return Nt(Ht)}function Nt(Ht,Tt){(Tt==null||Tt>Ht.length)&&(Tt=Ht.length);for(var Dt=0,Bt=new Array(Tt);Dt<Tt;Dt++)Bt[Dt]=Ht[Dt];return Bt}function bt(Ht,Tt){if(!(Ht instanceof Tt))throw new TypeError("Cannot call a class as a function")}function gr(Ht,Tt){for(var Dt=0;Dt<Tt.length;Dt++){var Bt=Tt[Dt];Bt.enumerable=Bt.enumerable||!1,Bt.configurable=!0,"value"in Bt&&(Bt.writable=!0),Object.defineProperty(Ht,Bt.key,Bt)}}function Yt(Ht,Tt,Dt){return Tt&&gr(Ht.prototype,Tt),Dt&&gr(Ht,Dt),Ht}function Pt(Ht,Tt){if(typeof Tt!="function"&&Tt!==null)throw new TypeError("Super expression must either be null or a function");Ht.prototype=Object.create(Tt&&Tt.prototype,{constructor:{value:Ht,writable:!0,configurable:!0}}),Tt&&rr(Ht,Tt)}function rr(Ht,Tt){return rr=Object.setPrototypeOf||function(Bt,jt){return Bt.__proto__=jt,Bt},rr(Ht,Tt)}function Rt(Ht){var Tt=Mr();return function(){var Dt=Dr(Ht),Bt;if(Tt){var jt=Dr(this).constructor;Bt=Reflect.construct(Dt,arguments,jt)}else Bt=Dt.apply(this,arguments);return qt(this,Bt)}}function qt(Ht,Tt){return Tt&&(nt(Tt)==="object"||typeof Tt=="function")?Tt:Yr(Ht)}function Yr(Ht){if(Ht===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ht}function Mr(){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(Ht){return!1}}function Dr(Ht){return Dr=Object.setPrototypeOf?Object.getPrototypeOf:function(Dt){return Dt.__proto__||Object.getPrototypeOf(Dt)},Dr(Ht)}var un=function(){var Ht=function(Tt){Pt(Bt,Tt);var Dt=Rt(Bt);function Bt(jt){var Ot;bt(this,Bt),Ot=Dt.call(this,jt),Ot.setPopupVisible=function(pr){var Ar=Ot.state.value;"popupVisible"in Ot.props||Ot.setState({popupVisible:pr}),pr&&!Ot.state.popupVisible&&Ot.setState({activeValue:Ar}),Ot.props.onPopupVisibleChange(pr)},Ot.handleChange=function(pr,Ar,Nr){var Hn=Ar.visible;(Nr.type!=="keydown"||Nr.keyCode===vr.a.ENTER)&&(Ot.props.onChange(pr.map(function(Ln){return Ln[Ot.getFieldName("value")]}),pr),Ot.setPopupVisible(Hn))},Ot.handlePopupVisibleChange=function(pr){Ot.setPopupVisible(pr)},Ot.handleMenuSelect=function(pr,Ar,Nr){var Hn=Ot.trigger.getRootDomNode();Hn&&Hn.focus&&Hn.focus();var Ln=Ot.props,ci=Ln.changeOnSelect,hn=Ln.loadData,Fr=Ln.expandTrigger;if(!pr||pr.disabled)return;var En=Ot.state.activeValue;En=En.slice(0,Ar+1),En[Ar]=pr[Ot.getFieldName("value")];var Wn=Ot.getActiveOptions(En);if(pr.isLeaf===!1&&!pr[Ot.getFieldName("children")]&&hn){ci&&Ot.handleChange(Wn,{visible:!0},Nr),Ot.setState({activeValue:En}),hn(Wn);return}var Yn={};!pr[Ot.getFieldName("children")]||!pr[Ot.getFieldName("children")].length?(Ot.handleChange(Wn,{visible:!1},Nr),Yn.value=En):ci&&(Nr.type==="click"||Nr.type==="keydown")&&(Fr==="hover"?Ot.handleChange(Wn,{visible:!1},Nr):Ot.handleChange(Wn,{visible:!0},Nr),Yn.value=En),Yn.activeValue=En,("value"in Ot.props||Nr.type==="keydown"&&Nr.keyCode!==vr.a.ENTER)&&delete Yn.value,Ot.setState(Yn)},Ot.handleItemDoubleClick=function(){var pr=Ot.props.changeOnSelect;pr&&Ot.setPopupVisible(!1)},Ot.handleKeyDown=function(pr){var Ar=Ot.props.children;if(Ar&&Ar.props.onKeyDown){Ar.props.onKeyDown(pr);return}var Nr=kr(Ot.state.activeValue),Hn=Nr.length-1<0?0:Nr.length-1,Ln=Ot.getCurrentLevelOptions(),ci=Ln.map(function(Wn){return Wn[Ot.getFieldName("value")]}).indexOf(Nr[Hn]);if(pr.keyCode!==vr.a.DOWN&&pr.keyCode!==vr.a.UP&&pr.keyCode!==vr.a.LEFT&&pr.keyCode!==vr.a.RIGHT&&pr.keyCode!==vr.a.ENTER&&pr.keyCode!==vr.a.SPACE&&pr.keyCode!==vr.a.BACKSPACE&&pr.keyCode!==vr.a.ESC&&pr.keyCode!==vr.a.TAB)return;if(!Ot.state.popupVisible&&pr.keyCode!==vr.a.BACKSPACE&&pr.keyCode!==vr.a.LEFT&&pr.keyCode!==vr.a.RIGHT&&pr.keyCode!==vr.a.ESC&&pr.keyCode!==vr.a.TAB){Ot.setPopupVisible(!0);return}if(pr.keyCode===vr.a.DOWN||pr.keyCode===vr.a.UP){pr.preventDefault();var hn=ci;hn!==-1?pr.keyCode===vr.a.DOWN?(hn+=1,hn=hn>=Ln.length?0:hn):(hn-=1,hn=hn<0?Ln.length-1:hn):hn=0,Nr[Hn]=Ln[hn][Ot.getFieldName("value")]}else if(pr.keyCode===vr.a.LEFT||pr.keyCode===vr.a.BACKSPACE)pr.preventDefault(),Nr.splice(Nr.length-1,1);else if(pr.keyCode===vr.a.RIGHT)pr.preventDefault(),Ln[ci]&&Ln[ci][Ot.getFieldName("children")]&&Nr.push(Ln[ci][Ot.getFieldName("children")][0][Ot.getFieldName("value")]);else if(pr.keyCode===vr.a.ESC||pr.keyCode===vr.a.TAB){Ot.setPopupVisible(!1);return}(!Nr||Nr.length===0)&&Ot.setPopupVisible(!1);var Fr=Ot.getActiveOptions(Nr),En=Fr[Fr.length-1];Ot.handleMenuSelect(En,Fr.length-1,pr),Ot.props.onKeyDown&&Ot.props.onKeyDown(pr)},Ot.saveTrigger=function(pr){Ot.trigger=pr};var nr=[];return"value"in jt?nr=jt.value||[]:"defaultValue"in jt&&(nr=jt.defaultValue||[]),or()(!("filedNames"in jt),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),Ot.state={popupVisible:jt.popupVisible,activeValue:nr,value:nr,prevProps:jt},Ot.defaultFieldNames={label:"label",value:"value",children:"children"},Ot}return Yt(Bt,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(Ot){var nr=this.defaultFieldNames,pr=this.props,Ar=pr.fieldNames,Nr=pr.filedNames;return"filedNames"in this.props?Nr[Ot]||nr[Ot]:Ar[Ot]||nr[Ot]}},{key:"getFieldNames",value:function(){var Ot=this.props,nr=Ot.fieldNames,pr=Ot.filedNames;return"filedNames"in this.props?pr:nr}},{key:"getCurrentLevelOptions",value:function(){var Ot=this,nr=this.props.options,pr=nr===void 0?[]:nr,Ar=this.state.activeValue,Nr=Ar===void 0?[]:Ar,Hn=sr()(pr,function(Ln,ci){return Ln[Ot.getFieldName("value")]===Nr[ci]},{childrenKeyName:this.getFieldName("children")});return Hn[Hn.length-2]?Hn[Hn.length-2][this.getFieldName("children")]:kr(pr).filter(function(Ln){return!Ln.disabled})}},{key:"getActiveOptions",value:function(Ot){var nr=this;return sr()(this.props.options||[],function(pr,Ar){return pr[nr.getFieldName("value")]===Ot[Ar]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var Ot=this.props,nr=Ot.prefixCls,pr=Ot.transitionName,Ar=Ot.popupClassName,Nr=Ot.options,Hn=Nr===void 0?[]:Nr,Ln=Ot.disabled,ci=Ot.builtinPlacements,hn=Ot.popupPlacement,Fr=Ot.children,En=Ot.dropdownRender,Wn=vt(Ot,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),Yn=r.createElement("div",null),ii="";Hn&&Hn.length>0?Yn=r.createElement(Fe,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):ii=" ".concat(nr,"-menus-empty");var xi=Yn;return En&&(xi=En(Yn)),r.createElement(Mt,Object.assign({ref:this.saveTrigger},Wn,{popupPlacement:hn,builtinPlacements:ci,popupTransitionName:pr,action:Ln?[]:["click"],popupVisible:Ln?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(nr,"-menus"),popupClassName:Ar+ii,popup:xi}),r.cloneElement(Fr,{onKeyDown:this.handleKeyDown,tabIndex:Ln?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(Ot,nr){var pr=nr.prevProps,Ar=pr===void 0?{}:pr,Nr={prevProps:Ot};return"value"in Ot&&!Ir(Ar.value,Ot.value)&&(Nr.value=Ot.value||[],"loadData"in Ot||(Nr.activeValue=Ot.value||[])),"popupVisible"in Ot&&(Nr.popupVisible=Ot.popupVisible),Nr}}]),Bt}(r.Component);return Ht.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:Be,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},Ht}(),wn=un,ai=wn,ei=n("BGR+"),gi=n("f0uV"),Ii=n.n(gi),ki=n("Ved0"),Qi=n.n(ki),it=n("nyS3"),Me=n.n(it),je=n("cpPs"),Ye=n.n(je),rt=n("FRVV"),qe=n.n(rt),at=n("5rEg"),St=n("H84U"),gt=n("YMnH"),hr=n("uaoM"),Qr=n("3Nzz"),Xr=n("0n0R"),dn=function(Ht,Tt){var Dt={};for(var Bt in Ht)Object.prototype.hasOwnProperty.call(Ht,Bt)&&Tt.indexOf(Bt)<0&&(Dt[Bt]=Ht[Bt]);if(Ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var jt=0,Bt=Object.getOwnPropertySymbols(Ht);jt<Bt.length;jt++)Tt.indexOf(Bt[jt])<0&&Object.prototype.propertyIsEnumerable.call(Ht,Bt[jt])&&(Dt[Bt[jt]]=Ht[Bt[jt]]);return Dt},mr=50;function Kn(Ht,Tt,Dt){return Ht.split(Tt).map(function(Bt,jt){return jt===0?Bt:[r.createElement("span",{className:"".concat(Dt,"-menu-item-keyword"),key:"seperator"},Tt),Bt]})}function Rr(Ht,Tt,Dt){return Tt.some(function(Bt){return Bt[Dt.label].indexOf(Ht)>-1})}function Rn(Ht,Tt,Dt,Bt){return Tt.map(function(jt,Ot){var nr=jt[Bt.label],pr=nr.indexOf(Ht)>-1?Kn(nr,Ht,Dt):nr;return Ot===0?pr:[" / ",pr]})}function An(Ht,Tt,Dt,Bt){function jt(Ot){return Ot[Bt.label].indexOf(Dt)>-1}return Ht.findIndex(jt)-Tt.findIndex(jt)}function Zr(Ht){var Tt=Ht.fieldNames;return Tt}function hi(Ht){var Tt=Zr(Ht)||{},Dt={children:Tt.children||"children",label:Tt.label||"label",value:Tt.value||"value"};return Dt}function Mi(Ht,Tt){var Dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Bt=hi(Tt),jt=[],Ot=Bt.children;return Ht.forEach(function(nr){var pr=Dt.concat(nr);(Tt.changeOnSelect||!nr[Ot]||!nr[Ot].length)&&jt.push(pr),nr[Ot]&&(jt=jt.concat(Mi(nr[Ot],Tt,pr)))}),jt}var Zi=function(Tt){return Tt.join(" / ")};function qr(Ht){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(Ht||[]).forEach(function(Dt){var Bt=Tt.value||"value";Object(hr.a)(Bt in Dt,"Cascader","Not found `value` in `options`."),qr(Dt[Tt.children||"children"],Tt)})}var xn=function(Ht){o()(Dt,Ht);var Tt=l()(Dt);function Dt(Bt){var jt;return f()(this,Dt),jt=Tt.call(this,Bt),jt.cachedOptions=[],jt.setValue=function(Ot){var nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];"value"in jt.props||jt.setState({value:Ot});var pr=jt.props.onChange;pr&&pr(Ot,nr)},jt.saveInput=function(Ot){jt.input=Ot},jt.handleChange=function(Ot,nr){if(jt.setState({inputValue:""}),nr[0].__IS_FILTERED_OPTION){var pr=Ot[0],Ar=nr[0].path;jt.setValue(pr,Ar);return}jt.setValue(Ot,nr)},jt.handlePopupVisibleChange=function(Ot){"popupVisible"in jt.props||jt.setState(function(pr){return{popupVisible:Ot,inputFocused:Ot,inputValue:Ot?pr.inputValue:""}});var nr=jt.props.onPopupVisibleChange;nr&&nr(Ot)},jt.handleInputBlur=function(){jt.setState({inputFocused:!1})},jt.handleInputClick=function(Ot){var nr=jt.state,pr=nr.inputFocused,Ar=nr.popupVisible;(pr||Ar)&&Ot.stopPropagation()},jt.handleKeyDown=function(Ot){(Ot.keyCode===vr.a.BACKSPACE||Ot.keyCode===vr.a.SPACE)&&Ot.stopPropagation()},jt.handleInputChange=function(Ot){var nr=jt.state.popupVisible,pr=Ot.target.value;nr||jt.handlePopupVisibleChange(!0),jt.setState({inputValue:pr})},jt.clearSelection=function(Ot){var nr=jt.state.inputValue;Ot.preventDefault(),Ot.stopPropagation(),nr?jt.setState({inputValue:""}):(jt.handlePopupVisibleChange(!1),jt.clearSelectionTimeout=setTimeout(function(){jt.setValue([])},200))},jt.renderCascader=function(Ot,nr){var pr=Ot.getPopupContainer,Ar=Ot.getPrefixCls,Nr=Ot.renderEmpty,Hn=Ot.direction;return r.createElement(Qr.b.Consumer,null,function(Ln){var ci,hn,Fr,En,Wn=i()(jt),Yn=Wn.props,ii=Wn.state,xi=Yn.prefixCls,Ni=Yn.inputPrefixCls,Li=Yn.children,oa=Yn.placeholder,ma=oa===void 0?nr.placeholder||"Please select":oa,ia=Yn.size,ba=Yn.disabled,vi=Yn.className,On=Yn.style,Fi=Yn.allowClear,ha=Yn.showSearch,ea=ha===void 0?!1:ha,aa=Yn.suffixIcon,Or=Yn.expandIcon,wr=Yn.notFoundContent,Sn=Yn.popupClassName,cr=Yn.bordered,Lr=Yn.dropdownRender,Wr=dn(Yn,["prefixCls","inputPrefixCls","children","placeholder","size","disabled","className","style","allowClear","showSearch","suffixIcon","expandIcon","notFoundContent","popupClassName","bordered","dropdownRender"]),on=ia||Ln,Nn=ii.value,Et=ii.inputFocused,Cr=Hn==="rtl",_r=Ar("cascader",xi),$r=Ar("input",Ni),yn=M()((ci={},A()(ci,"".concat($r,"-lg"),on==="large"),A()(ci,"".concat($r,"-sm"),on==="small"),ci)),Tn=Fi&&!ba&&Nn.length>0||ii.inputValue?r.createElement(Ii.a,{className:"".concat(_r,"-picker-clear"),onClick:jt.clearSelection}):null,vn=M()((hn={},A()(hn,"".concat(_r,"-picker-arrow"),!0),A()(hn,"".concat(_r,"-picker-arrow-expand"),ii.popupVisible),hn)),Qn=M()(vi,"".concat(_r,"-picker"),(Fr={},A()(Fr,"".concat(_r,"-picker-rtl"),Cr),A()(Fr,"".concat(_r,"-picker-with-value"),ii.inputValue),A()(Fr,"".concat(_r,"-picker-disabled"),ba),A()(Fr,"".concat(_r,"-picker-").concat(on),!!on),A()(Fr,"".concat(_r,"-picker-show-search"),!!ea),A()(Fr,"".concat(_r,"-picker-focused"),Et),A()(Fr,"".concat(_r,"-picker-borderless"),!cr),Fr)),Fn=Object(ei.default)(Wr,["onChange","options","popupPlacement","transitionName","displayRender","onPopupVisibleChange","changeOnSelect","expandTrigger","popupVisible","getPopupContainer","loadData","popupClassName","filterOption","renderFilteredOption","sortFilteredOption","notFoundContent","fieldNames","bordered"]),fi=Yn.options,Ri=hi(jt.props);if(fi&&fi.length>0)ii.inputValue&&(fi=jt.generateFilteredOptions(_r,Nr));else{var yi;fi=[(yi={},A()(yi,Ri.label,wr||Nr("Cascader")),A()(yi,Ri.value,"ANT_CASCADER_NOT_FOUND"),yi)]}ii.popupVisible?jt.cachedOptions=fi:fi=jt.cachedOptions;var Ci={},Wi=(fi||[]).length===1&&fi[0].isEmptyNode;Wi&&(Ci.height="auto");var qi=ea.matchInputWidth!==!1;qi&&(ii.inputValue||Wi)&&jt.input&&(Ci.width=jt.input.input.offsetWidth);var zi;aa?zi=Object(Xr.c)(aa,r.createElement("span",{className:"".concat(_r,"-picker-arrow")},aa),function(){var Ma;return{className:M()((Ma={},A()(Ma,aa.props.className,aa.props.className),A()(Ma,"".concat(_r,"-picker-arrow"),!0),Ma))}}):zi=r.createElement(Qi.a,{className:vn});var Ki=Li||r.createElement("span",{style:On,className:Qn},r.createElement("span",{className:"".concat(_r,"-picker-label")},jt.getLabel()),r.createElement(at.a,p()({},Fn,{tabIndex:"-1",ref:jt.saveInput,prefixCls:$r,placeholder:Nn&&Nn.length>0?void 0:ma,className:"".concat(_r,"-input ").concat(yn),value:ii.inputValue,disabled:ba,readOnly:!ea,autoComplete:Fn.autoComplete||"off",onClick:ea?jt.handleInputClick:void 0,onBlur:ea?jt.handleInputBlur:void 0,onKeyDown:jt.handleKeyDown,onChange:ea?jt.handleInputChange:void 0})),Tn,zi),ji;Or?ji=Or:ji=Cr?r.createElement(qe.a,null):r.createElement(Me.a,null);var Yi=r.createElement("span",{className:"".concat(_r,"-menu-item-loading-icon")},r.createElement(Ye.a,{spin:!0})),ca=Yn.getPopupContainer||pr,Ca=Object(ei.default)(Yn,["inputIcon","expandIcon","loadingIcon","bordered"]),ra=M()(Sn,(En={},A()(En,"".concat(_r,"-menu-").concat(Hn),Hn==="rtl"),A()(En,"".concat(_r,"-menu-empty"),fi.length===1&&fi[0].value==="ANT_CASCADER_NOT_FOUND"),En));return r.createElement(ai,p()({},Ca,{prefixCls:_r,getPopupContainer:ca,options:fi,value:Nn,popupVisible:ii.popupVisible,onPopupVisibleChange:jt.handlePopupVisibleChange,onChange:jt.handleChange,dropdownMenuColumnStyle:Ci,expandIcon:ji,loadingIcon:Yi,popupClassName:ra,popupPlacement:jt.getPopupPlacement(Hn),dropdownRender:Lr}),Ki)})},jt.state={value:Bt.value||Bt.defaultValue||[],inputValue:"",inputFocused:!1,popupVisible:Bt.popupVisible,flattenOptions:Bt.showSearch?Mi(Bt.options,Bt):void 0,prevProps:Bt},jt}return u()(Dt,[{key:"componentWillUnmount",value:function(){this.clearSelectionTimeout&&clearTimeout(this.clearSelectionTimeout)}},{key:"getLabel",value:function(){var jt=this.props,Ot=jt.options,nr=jt.displayRender,pr=nr===void 0?Zi:nr,Ar=hi(this.props),Nr=this.state.value,Hn=Array.isArray(Nr[0])?Nr[0]:Nr,Ln=sr()(Ot,function(hn,Fr){return hn[Ar.value]===Hn[Fr]},{childrenKeyName:Ar.children}),ci=Ln.length?Ln.map(function(hn){return hn[Ar.label]}):Nr;return pr(ci,Ln)}},{key:"generateFilteredOptions",value:function(jt,Ot){var nr=this,pr,Ar=this.props,Nr=Ar.showSearch,Hn=Ar.notFoundContent,Ln=hi(this.props),ci=Nr.filter,hn=ci===void 0?Rr:ci,Fr=Nr.render,En=Fr===void 0?Rn:Fr,Wn=Nr.sort,Yn=Wn===void 0?An:Wn,ii=Nr.limit,xi=ii===void 0?mr:ii,Ni=this.state,Li=Ni.flattenOptions,oa=Li===void 0?[]:Li,ma=Ni.inputValue,ia;if(xi>0){ia=[];var ba=0;oa.some(function(vi){var On=hn(nr.state.inputValue,vi,Ln);return On&&(ia.push(vi),ba+=1),ba>=xi})}else Object(hr.a)(typeof xi!="number","Cascader","'limit' of showSearch should be positive number or false."),ia=oa.filter(function(vi){return hn(nr.state.inputValue,vi,Ln)});return ia=ia.sort(function(vi,On){return Yn(vi,On,ma,Ln)}),ia.length>0?ia.map(function(vi){var On;return On={__IS_FILTERED_OPTION:!0,path:vi},A()(On,Ln.value,vi.map(function(Fi){return Fi[Ln.value]})),A()(On,Ln.label,En(ma,vi,jt,Ln)),A()(On,"disabled",vi.some(function(Fi){return!!Fi.disabled})),A()(On,"isEmptyNode",!0),On}):[(pr={},A()(pr,Ln.value,"ANT_CASCADER_NOT_FOUND"),A()(pr,Ln.label,Hn||Ot("Cascader")),A()(pr,"disabled",!0),A()(pr,"isEmptyNode",!0),pr)]}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"getPopupPlacement",value:function(){var jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ltr",Ot=this.props.popupPlacement;return Ot!==void 0?Ot:jt==="rtl"?"bottomRight":"bottomLeft"}},{key:"render",value:function(){var jt=this;return r.createElement(St.a,null,function(Ot){return r.createElement(gt.a,null,function(nr){return jt.renderCascader(Ot,nr)})})}}],[{key:"getDerivedStateFromProps",value:function(jt,Ot){var nr=Ot.prevProps,pr={prevProps:jt};return"value"in jt&&(pr.value=jt.value||[]),"popupVisible"in jt&&(pr.popupVisible=jt.popupVisible),jt.showSearch&&nr.options!==jt.options&&(pr.flattenOptions=Mi(jt.options,jt)),pr}}]),Dt}(r.Component);xn.defaultProps={transitionName:"slide-up",options:[],disabled:!1,allowClear:!0,bordered:!0};var zn=D.a=xn},DL4k:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},DN4a:function(k,D,n){var y=n("Fofx"),p=n("QBsz"),x=y.identity,A=5e-5;function m(o){return o>A||o<-A}var f=function(e){e=e||{},e.position||(this.position=[0,0]),e.rotation==null&&(this.rotation=0),e.scale||(this.scale=[1,1]),this.origin=this.origin||null},h=f.prototype;h.transform=null,h.needLocalTransform=function(){return m(this.rotation)||m(this.position[0])||m(this.position[1])||m(this.scale[0]-1)||m(this.scale[1]-1)};var u=[];h.updateTransform=function(){var o=this.parent,e=o&&o.transform,l=this.needLocalTransform(),r=this.transform;if(!(l||e)){r&&x(r);return}r=r||y.create(),l?this.getLocalTransform(r):x(r),e&&(l?y.mul(r,o.transform,r):y.copy(r,o.transform)),this.transform=r;var s=this.globalScaleRatio;if(s!=null&&s!==1){this.getGlobalScale(u);var c=u[0]<0?-1:1,d=u[1]<0?-1:1,g=((u[0]-c)*s+c)/u[0]||0,v=((u[1]-d)*s+d)/u[1]||0;r[0]*=g,r[1]*=g,r[2]*=v,r[3]*=v}this.invTransform=this.invTransform||y.create(),y.invert(this.invTransform,r)},h.getLocalTransform=function(o){return f.getLocalTransform(this,o)},h.setTransform=function(o){var e=this.transform,l=o.dpr||1;e?o.setTransform(l*e[0],l*e[1],l*e[2],l*e[3],l*e[4],l*e[5]):o.setTransform(l,0,0,l,0,0)},h.restoreTransform=function(o){var e=o.dpr||1;o.setTransform(e,0,0,e,0,0)};var a=[],i=y.create();h.setLocalTransform=function(o){if(!o)return;var e=o[0]*o[0]+o[1]*o[1],l=o[2]*o[2]+o[3]*o[3],r=this.position,s=this.scale;m(e-1)&&(e=Math.sqrt(e)),m(l-1)&&(l=Math.sqrt(l)),o[0]<0&&(e=-e),o[3]<0&&(l=-l),r[0]=o[4],r[1]=o[5],s[0]=e,s[1]=l,this.rotation=Math.atan2(-o[1]/l,o[0]/e)},h.decomposeTransform=function(){if(!this.transform)return;var o=this.parent,e=this.transform;o&&o.transform&&(y.mul(a,o.invTransform,e),e=a);var l=this.origin;l&&(l[0]||l[1])&&(i[4]=l[0],i[5]=l[1],y.mul(a,e,i),a[4]-=l[0],a[5]-=l[1],e=a),this.setLocalTransform(e)},h.getGlobalScale=function(o){var e=this.transform;return o=o||[],e?(o[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),o[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(o[0]=-o[0]),e[3]<0&&(o[1]=-o[1]),o):(o[0]=1,o[1]=1,o)},h.transformCoordToLocal=function(o,e){var l=[o,e],r=this.invTransform;return r&&p.applyTransform(l,l,r),l},h.transformCoordToGlobal=function(o,e){var l=[o,e],r=this.transform;return r&&p.applyTransform(l,l,r),l},f.getLocalTransform=function(o,e){e=e||[],x(e);var l=o.origin,r=o.scale||[1,1],s=o.rotation||0,c=o.position||[0,0];return l&&(e[4]-=l[0],e[5]-=l[1]),y.scale(e,e,r),s&&y.rotate(e,e,s),l&&(e[4]+=l[0],e[5]+=l[1]),e[4]+=c[0],e[5]+=c[1],e};var t=f;k.exports=t},DO2E:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},DSRE:function(k,D,n){(function(y){var p=n("Kz5y"),x=n("B8du"),A=D&&!D.nodeType&&D,m=A&&typeof y=="object"&&y&&!y.nodeType&&y,f=m&&m.exports===A,h=f?p.Buffer:void 0,u=h?h.isBuffer:void 0,a=u||x;y.exports=a}).call(this,n("YuTi")(k))},DYRE:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("OPEp"),A=n.n(x)},DZo9:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("JGo8"),A=n.n(x),m=n("+L6B"),f=n("MXD1"),h=n("5Dmo")},Dagg:function(k,D,n){var y=n("Gev7"),p=n("mFDi"),x=n("bYtY"),A=n("Xnb7");function m(h){y.call(this,h)}m.prototype={constructor:m,type:"image",brush:function(u,a){var i=this.style,t=i.image;i.bind(u,this,a);var o=this._image=A.createOrUpdateImage(t,this._image,this,this.onload);if(!o||!A.isImageReady(o))return;var e=i.x||0,l=i.y||0,r=i.width,s=i.height,c=o.width/o.height;if(r==null&&s!=null?r=s*c:s==null&&r!=null?s=r/c:r==null&&s==null&&(r=o.width,s=o.height),this.setTransform(u),i.sWidth&&i.sHeight){var d=i.sx||0,g=i.sy||0;u.drawImage(o,d,g,i.sWidth,i.sHeight,e,l,r,s)}else if(i.sx&&i.sy){var d=i.sx,g=i.sy,v=r-d,b=s-g;u.drawImage(o,d,g,v,b,e,l,r,s)}else u.drawImage(o,e,l,r,s);i.text!=null&&(this.restoreTransform(u),this.drawRectText(u,this.getBoundingRect()))},getBoundingRect:function(){var u=this.style;return this._rect||(this._rect=new p(u.x||0,u.y||0,u.width||0,u.height||0)),this._rect}},x.inherits(m,y);var f=m;k.exports=f},Dg8C:function(k,D,n){var y=n("XxSj"),p=n("bYtY");function x(A,m){A.eachSeriesByType("sankey",function(f){var h=f.getGraph(),u=h.nodes;if(u.length){var a=Infinity,i=-Infinity;p.each(u,function(t){var o=t.getLayout().value;o<a&&(a=o),o>i&&(i=o)}),p.each(u,function(t){var o=new y({type:"color",mappingMethod:"linear",dataExtent:[a,i],visual:f.get("color")}),e=o.mapValueToVisual(t.getLayout().value),l=t.getModel().get("itemStyle.color");l!=null?t.setVisual("color",l):t.setVisual("color",e)})}})}k.exports=x},DjyN:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("Urep"),A=n.n(x),m=n("OaEy")},DlQD:function(k,D,n){(function(y,p){k.exports=p()})(this,function(){"use strict";function y(zt,kt){for(var Vt=0;Vt<kt.length;Vt++){var Xe=kt[Vt];Xe.enumerable=Xe.enumerable||!1,Xe.configurable=!0,"value"in Xe&&(Xe.writable=!0),Object.defineProperty(zt,Xe.key,Xe)}}function p(zt,kt,Vt){return kt&&y(zt.prototype,kt),Vt&&y(zt,Vt),zt}function x(zt,kt){if(!zt)return;if(typeof zt=="string")return A(zt,kt);var Vt=Object.prototype.toString.call(zt).slice(8,-1);if(Vt==="Object"&&zt.constructor&&(Vt=zt.constructor.name),Vt==="Map"||Vt==="Set")return Array.from(zt);if(Vt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Vt))return A(zt,kt)}function A(zt,kt){(kt==null||kt>zt.length)&&(kt=zt.length);for(var Vt=0,Xe=new Array(kt);Vt<kt;Vt++)Xe[Vt]=zt[Vt];return Xe}function m(zt,kt){var Vt;if(typeof Symbol=="undefined"||zt[Symbol.iterator]==null){if(Array.isArray(zt)||(Vt=x(zt))||kt&&zt&&typeof zt.length=="number"){Vt&&(zt=Vt);var Xe=0;return function(){return Xe>=zt.length?{done:!0}:{done:!1,value:zt[Xe++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return Vt=zt[Symbol.iterator](),Vt.next.bind(Vt)}function f(zt,kt){return kt={exports:{}},zt(kt,kt.exports),kt.exports}var h=f(function(zt){function kt(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function Vt(Xe){zt.exports.defaults=Xe}zt.exports={defaults:kt(),getDefaults:kt,changeDefaults:Vt}}),u=h.defaults,a=h.getDefaults,i=h.changeDefaults,t=/[&<>"']/,o=/[&<>"']/g,e=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,r={"&":"&","<":"<",">":">",'"':""","'":"'"},s=function(kt){return r[kt]};function c(zt,kt){if(kt){if(t.test(zt))return zt.replace(o,s)}else if(e.test(zt))return zt.replace(l,s);return zt}var d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function g(zt){return zt.replace(d,function(kt,Vt){return Vt=Vt.toLowerCase(),Vt==="colon"?":":Vt.charAt(0)==="#"?Vt.charAt(1)==="x"?String.fromCharCode(parseInt(Vt.substring(2),16)):String.fromCharCode(+Vt.substring(1)):""})}var v=/(^|[^\[])\^/g;function b(zt,kt){zt=zt.source||zt,kt=kt||"";var Vt={replace:function(pe,te){return te=te.source||te,te=te.replace(v,"$1"),zt=zt.replace(pe,te),Vt},getRegex:function(){return new RegExp(zt,kt)}};return Vt}var S=/[^\w:]/g,E=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function C(zt,kt,Vt){if(zt){var Xe;try{Xe=decodeURIComponent(g(Vt)).replace(S,"").toLowerCase()}catch(pe){return null}if(Xe.indexOf("javascript:")===0||Xe.indexOf("vbscript:")===0||Xe.indexOf("data:")===0)return null}kt&&!E.test(Vt)&&(Vt=I(kt,Vt));try{Vt=encodeURI(Vt).replace(/%25/g,"%")}catch(pe){return null}return Vt}var _={},T=/^[^:]+:\/*[^/]*$/,w=/^([^:]+:)[\s\S]*$/,O=/^([^:]+:\/*[^/]*)[\s\S]*$/;function I(zt,kt){_[" "+zt]||(T.test(zt)?_[" "+zt]=zt+"/":_[" "+zt]=P(zt,"/",!0)),zt=_[" "+zt];var Vt=zt.indexOf(":")===-1;return kt.substring(0,2)==="//"?Vt?kt:zt.replace(w,"$1")+kt:kt.charAt(0)==="/"?Vt?kt:zt.replace(O,"$1")+kt:zt+kt}var R={exec:function(){}};function M(zt){for(var kt=1,Vt,Xe;kt<arguments.length;kt++){Vt=arguments[kt];for(Xe in Vt)Object.prototype.hasOwnProperty.call(Vt,Xe)&&(zt[Xe]=Vt[Xe])}return zt}function F(zt,kt){var Vt=zt.replace(/\|/g,function(te,$e,He){for(var ae=!1,ft=$e;--ft>=0&&He[ft]==="\\";)ae=!ae;return ae?"|":" |"}),Xe=Vt.split(/ \|/),pe=0;if(Xe.length>kt)Xe.splice(kt);else for(;Xe.length<kt;)Xe.push("");for(;pe<Xe.length;pe++)Xe[pe]=Xe[pe].trim().replace(/\\\|/g,"|");return Xe}function P(zt,kt,Vt){var Xe=zt.length;if(Xe===0)return"";for(var pe=0;pe<Xe;){var te=zt.charAt(Xe-pe-1);if(te===kt&&!Vt)pe++;else if(te!==kt&&Vt)pe++;else break}return zt.substr(0,Xe-pe)}function X(zt,kt){if(zt.indexOf(kt[1])===-1)return-1;for(var Vt=zt.length,Xe=0,pe=0;pe<Vt;pe++)if(zt[pe]==="\\")pe++;else if(zt[pe]===kt[0])Xe++;else if(zt[pe]===kt[1]&&(Xe--,Xe<0))return pe;return-1}function B(zt){zt&&zt.sanitize&&!zt.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}var j={escape:c,unescape:g,edit:b,cleanUrl:C,resolveUrl:I,noopTest:R,merge:M,splitCells:F,rtrim:P,findClosingBracket:X,checkSanitizeDeprecation:B},W=h.defaults,z=j.rtrim,V=j.splitCells,Q=j.escape,G=j.findClosingBracket;function ee(zt,kt,Vt){var Xe=kt.href,pe=kt.title?Q(kt.title):null,te=zt[1].replace(/\\([\[\]])/g,"$1");return zt[0].charAt(0)!=="!"?{type:"link",raw:Vt,href:Xe,title:pe,text:te}:{type:"image",raw:Vt,href:Xe,title:pe,text:Q(te)}}function ce(zt,kt){var Vt=zt.match(/^(\s+)(?:```)/);if(Vt===null)return kt;var Xe=Vt[1];return kt.split(`
|
|
|
`).map(function(pe){var te=pe.match(/^\s+/);if(te===null)return pe;var $e=te[0];return $e.length>=Xe.length?pe.slice(Xe.length):pe}).join(`
|
|
|
`)}var be=function(){function zt(Vt){this.options=Vt||W}var kt=zt.prototype;return kt.space=function(Xe){var pe=this.rules.block.newline.exec(Xe);if(pe)return pe[0].length>1?{type:"space",raw:pe[0]}:{raw:`
|
|
|
`}},kt.code=function(Xe,pe){var te=this.rules.block.code.exec(Xe);if(te){var $e=pe[pe.length-1];if($e&&$e.type==="paragraph")return{raw:te[0],text:te[0].trimRight()};var He=te[0].replace(/^ {4}/gm,"");return{type:"code",raw:te[0],codeBlockStyle:"indented",text:this.options.pedantic?He:z(He,`
|
|
|
`)}}},kt.fences=function(Xe){var pe=this.rules.block.fences.exec(Xe);if(pe){var te=pe[0],$e=ce(te,pe[3]||"");return{type:"code",raw:te,lang:pe[2]?pe[2].trim():pe[2],text:$e}}},kt.heading=function(Xe){var pe=this.rules.block.heading.exec(Xe);if(pe)return{type:"heading",raw:pe[0],depth:pe[1].length,text:pe[2]}},kt.nptable=function(Xe){var pe=this.rules.block.nptable.exec(Xe);if(pe){var te={type:"table",header:V(pe[1].replace(/^ *| *\| *$/g,"")),align:pe[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:pe[3]?pe[3].replace(/\n$/,"").split(`
|
|
|
`):[],raw:pe[0]};if(te.header.length===te.align.length){var $e=te.align.length,He;for(He=0;He<$e;He++)/^ *-+: *$/.test(te.align[He])?te.align[He]="right":/^ *:-+: *$/.test(te.align[He])?te.align[He]="center":/^ *:-+ *$/.test(te.align[He])?te.align[He]="left":te.align[He]=null;for($e=te.cells.length,He=0;He<$e;He++)te.cells[He]=V(te.cells[He],te.header.length);return te}}},kt.hr=function(Xe){var pe=this.rules.block.hr.exec(Xe);if(pe)return{type:"hr",raw:pe[0]}},kt.blockquote=function(Xe){var pe=this.rules.block.blockquote.exec(Xe);if(pe){var te=pe[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:pe[0],text:te}}},kt.list=function(Xe){var pe=this.rules.block.list.exec(Xe);if(pe){for(var te=pe[0],$e=pe[2],He=$e.length>1,ae=$e[$e.length-1]===")",ft={type:"list",raw:te,ordered:He,start:He?+$e.slice(0,-1):"",loose:!1,items:[]},Mt=pe[0].match(this.rules.block.item),mt=!1,or,vr,fn,sr,Ir,lr,Wt,xt=Mt.length,rn=0;rn<xt;rn++)or=Mt[rn],te=or,vr=or.length,or=or.replace(/^ *([*+-]|\d+[.)]) */,""),~or.indexOf(`
|
|
|
`)&&(vr-=or.length,or=this.options.pedantic?or.replace(/^ {1,4}/gm,""):or.replace(new RegExp("^ {1,"+vr+"}","gm"),"")),rn!==xt-1&&(fn=this.rules.block.bullet.exec(Mt[rn+1])[0],(He?fn.length===1||!ae&&fn[fn.length-1]===")":fn.length>1||this.options.smartLists&&fn!==$e)&&(sr=Mt.slice(rn+1).join(`
|
|
|
`),ft.raw=ft.raw.substring(0,ft.raw.length-sr.length),rn=xt-1)),Ir=mt||/\n\n(?!\s*$)/.test(or),rn!==xt-1&&(mt=or.charAt(or.length-1)===`
|
|
|
`,Ir||(Ir=mt)),Ir&&(ft.loose=!0),lr=/^\[[ xX]\] /.test(or),Wt=void 0,lr&&(Wt=or[1]!==" ",or=or.replace(/^\[[ xX]\] +/,"")),ft.items.push({type:"list_item",raw:te,task:lr,checked:Wt,loose:Ir,text:or});return ft}},kt.html=function(Xe){var pe=this.rules.block.html.exec(Xe);if(pe)return{type:this.options.sanitize?"paragraph":"html",raw:pe[0],pre:!this.options.sanitizer&&(pe[1]==="pre"||pe[1]==="script"||pe[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(pe[0]):Q(pe[0]):pe[0]}},kt.def=function(Xe){var pe=this.rules.block.def.exec(Xe);if(pe){pe[3]&&(pe[3]=pe[3].substring(1,pe[3].length-1));var te=pe[1].toLowerCase().replace(/\s+/g," ");return{tag:te,raw:pe[0],href:pe[2],title:pe[3]}}},kt.table=function(Xe){var pe=this.rules.block.table.exec(Xe);if(pe){var te={type:"table",header:V(pe[1].replace(/^ *| *\| *$/g,"")),align:pe[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:pe[3]?pe[3].replace(/\n$/,"").split(`
|
|
|
`):[]};if(te.header.length===te.align.length){te.raw=pe[0];var $e=te.align.length,He;for(He=0;He<$e;He++)/^ *-+: *$/.test(te.align[He])?te.align[He]="right":/^ *:-+: *$/.test(te.align[He])?te.align[He]="center":/^ *:-+ *$/.test(te.align[He])?te.align[He]="left":te.align[He]=null;for($e=te.cells.length,He=0;He<$e;He++)te.cells[He]=V(te.cells[He].replace(/^ *\| *| *\| *$/g,""),te.header.length);return te}}},kt.lheading=function(Xe){var pe=this.rules.block.lheading.exec(Xe);if(pe)return{type:"heading",raw:pe[0],depth:pe[2].charAt(0)==="="?1:2,text:pe[1]}},kt.paragraph=function(Xe){var pe=this.rules.block.paragraph.exec(Xe);if(pe)return{type:"paragraph",raw:pe[0],text:pe[1].charAt(pe[1].length-1)===`
|
|
|
`?pe[1].slice(0,-1):pe[1]}},kt.text=function(Xe,pe){var te=this.rules.block.text.exec(Xe);if(te){var $e=pe[pe.length-1];return $e&&$e.type==="text"?{raw:te[0],text:te[0]}:{type:"text",raw:te[0],text:te[0]}}},kt.escape=function(Xe){var pe=this.rules.inline.escape.exec(Xe);if(pe)return{type:"escape",raw:pe[0],text:Q(pe[1])}},kt.tag=function(Xe,pe,te){var $e=this.rules.inline.tag.exec(Xe);if($e)return!pe&&/^<a /i.test($e[0])?pe=!0:pe&&/^<\/a>/i.test($e[0])&&(pe=!1),!te&&/^<(pre|code|kbd|script)(\s|>)/i.test($e[0])?te=!0:te&&/^<\/(pre|code|kbd|script)(\s|>)/i.test($e[0])&&(te=!1),{type:this.options.sanitize?"text":"html",raw:$e[0],inLink:pe,inRawBlock:te,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer($e[0]):Q($e[0]):$e[0]}},kt.link=function(Xe){var pe=this.rules.inline.link.exec(Xe);if(pe){var te=G(pe[2],"()");if(te>-1){var $e=pe[0].indexOf("!")===0?5:4,He=$e+pe[1].length+te;pe[2]=pe[2].substring(0,te),pe[0]=pe[0].substring(0,He).trim(),pe[3]=""}var ae=pe[2],ft="";if(this.options.pedantic){var Mt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(ae);Mt?(ae=Mt[1],ft=Mt[3]):ft=""}else ft=pe[3]?pe[3].slice(1,-1):"";ae=ae.trim().replace(/^<([\s\S]*)>$/,"$1");var mt=ee(pe,{href:ae&&ae.replace(this.rules.inline._escapes,"$1"),title:ft&&ft.replace(this.rules.inline._escapes,"$1")},pe[0]);return mt}},kt.reflink=function(Xe,pe){var te;if((te=this.rules.inline.reflink.exec(Xe))||(te=this.rules.inline.nolink.exec(Xe))){var $e=(te[2]||te[1]).replace(/\s+/g," ");if($e=pe[$e.toLowerCase()],!$e||!$e.href){var He=te[0].charAt(0);return{type:"text",raw:He,text:He}}var ae=ee(te,$e,te[0]);return ae}},kt.strong=function(Xe,pe,te){te===void 0&&(te="");var $e=this.rules.inline.strong.start.exec(Xe);if($e&&(!$e[1]||$e[1]&&(te===""||this.rules.inline.punctuation.exec(te)))){pe=pe.slice(-1*Xe.length);var He=$e[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;He.lastIndex=0;for(var ae;($e=He.exec(pe))!=null;)if(ae=this.rules.inline.strong.middle.exec(pe.slice(0,$e.index+3)),ae)return{type:"strong",raw:Xe.slice(0,ae[0].length),text:Xe.slice(2,ae[0].length-2)}}},kt.em=function(Xe,pe,te){te===void 0&&(te="");var $e=this.rules.inline.em.start.exec(Xe);if($e&&(!$e[1]||$e[1]&&(te===""||this.rules.inline.punctuation.exec(te)))){pe=pe.slice(-1*Xe.length);var He=$e[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;He.lastIndex=0;for(var ae;($e=He.exec(pe))!=null;)if(ae=this.rules.inline.em.middle.exec(pe.slice(0,$e.index+2)),ae)return{type:"em",raw:Xe.slice(0,ae[0].length),text:Xe.slice(1,ae[0].length-1)}}},kt.codespan=function(Xe){var pe=this.rules.inline.code.exec(Xe);if(pe){var te=pe[2].replace(/\n/g," "),$e=/[^ ]/.test(te),He=te.startsWith(" ")&&te.endsWith(" ");return $e&&He&&(te=te.substring(1,te.length-1)),te=Q(te,!0),{type:"codespan",raw:pe[0],text:te}}},kt.br=function(Xe){var pe=this.rules.inline.br.exec(Xe);if(pe)return{type:"br",raw:pe[0]}},kt.del=function(Xe){var pe=this.rules.inline.del.exec(Xe);if(pe)return{type:"del",raw:pe[0],text:pe[1]}},kt.autolink=function(Xe,pe){var te=this.rules.inline.autolink.exec(Xe);if(te){var $e,He;return te[2]==="@"?($e=Q(this.options.mangle?pe(te[1]):te[1]),He="mailto:"+$e):($e=Q(te[1]),He=$e),{type:"link",raw:te[0],text:$e,href:He,tokens:[{type:"text",raw:$e,text:$e}]}}},kt.url=function(Xe,pe){var te;if(te=this.rules.inline.url.exec(Xe)){var $e,He;if(te[2]==="@")$e=Q(this.options.mangle?pe(te[0]):te[0]),He="mailto:"+$e;else{var ae;do ae=te[0],te[0]=this.rules.inline._backpedal.exec(te[0])[0];while(ae!==te[0]);$e=Q(te[0]),te[1]==="www."?He="http://"+$e:He=$e}return{type:"link",raw:te[0],text:$e,href:He,tokens:[{type:"text",raw:$e,text:$e}]}}},kt.inlineText=function(Xe,pe,te){var $e=this.rules.inline.text.exec(Xe);if($e){var He;return pe?He=this.options.sanitize?this.options.sanitizer?this.options.sanitizer($e[0]):Q($e[0]):$e[0]:He=Q(this.options.smartypants?te($e[0]):$e[0]),{type:"text",raw:$e[0],text:He}}},zt}(),le=j.noopTest,Ie=j.edit,ke=j.merge,Re={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:le,table:le,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};Re._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Re._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Re.def=Ie(Re.def).replace("label",Re._label).replace("title",Re._title).getRegex(),Re.bullet=/(?:[*+-]|\d{1,9}[.)])/,Re.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Re.item=Ie(Re.item,"gm").replace(/bull/g,Re.bullet).getRegex(),Re.list=Ie(Re.list).replace(/bull/g,Re.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Re.def.source+")").getRegex(),Re._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Re._comment=/<!--(?!-?>)[\s\S]*?-->/,Re.html=Ie(Re.html,"i").replace("comment",Re._comment).replace("tag",Re._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Re.paragraph=Ie(Re._paragraph).replace("hr",Re.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Re._tag).getRegex(),Re.blockquote=Ie(Re.blockquote).replace("paragraph",Re.paragraph).getRegex(),Re.normal=ke({},Re),Re.gfm=ke({},Re.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Re.gfm.nptable=Ie(Re.gfm.nptable).replace("hr",Re.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Re._tag).getRegex(),Re.gfm.table=Ie(Re.gfm.table).replace("hr",Re.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Re._tag).getRegex(),Re.pedantic=ke({},Re.normal,{html:Ie(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Re._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:le,paragraph:Ie(Re.normal._paragraph).replace("hr",Re.hr).replace("heading",` *#{1,6} *[^
|
|
|
]`).replace("lheading",Re.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Qe={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:le,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:le,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};Qe._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Qe.punctuation=Ie(Qe.punctuation).replace(/punctuation/g,Qe._punctuation).getRegex(),Qe._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",Qe._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",Qe.em.start=Ie(Qe.em.start).replace(/punctuation/g,Qe._punctuation).getRegex(),Qe.em.middle=Ie(Qe.em.middle).replace(/punctuation/g,Qe._punctuation).replace(/overlapSkip/g,Qe._overlapSkip).getRegex(),Qe.em.endAst=Ie(Qe.em.endAst,"g").replace(/punctuation/g,Qe._punctuation).getRegex(),Qe.em.endUnd=Ie(Qe.em.endUnd,"g").replace(/punctuation/g,Qe._punctuation).getRegex(),Qe.strong.start=Ie(Qe.strong.start).replace(/punctuation/g,Qe._punctuation).getRegex(),Qe.strong.middle=Ie(Qe.strong.middle).replace(/punctuation/g,Qe._punctuation).replace(/blockSkip/g,Qe._blockSkip).getRegex(),Qe.strong.endAst=Ie(Qe.strong.endAst,"g").replace(/punctuation/g,Qe._punctuation).getRegex(),Qe.strong.endUnd=Ie(Qe.strong.endUnd,"g").replace(/punctuation/g,Qe._punctuation).getRegex(),Qe.blockSkip=Ie(Qe._blockSkip,"g").getRegex(),Qe.overlapSkip=Ie(Qe._overlapSkip,"g").getRegex(),Qe._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Qe._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Qe._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,Qe.autolink=Ie(Qe.autolink).replace("scheme",Qe._scheme).replace("email",Qe._email).getRegex(),Qe._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Qe.tag=Ie(Qe.tag).replace("comment",Re._comment).replace("attribute",Qe._attribute).getRegex(),Qe._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Qe._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,Qe._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Qe.link=Ie(Qe.link).replace("label",Qe._label).replace("href",Qe._href).replace("title",Qe._title).getRegex(),Qe.reflink=Ie(Qe.reflink).replace("label",Qe._label).getRegex(),Qe.reflinkSearch=Ie(Qe.reflinkSearch,"g").replace("reflink",Qe.reflink).replace("nolink",Qe.nolink).getRegex(),Qe.normal=ke({},Qe),Qe.pedantic=ke({},Qe.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Ie(/^!?\[(label)\]\((.*?)\)/).replace("label",Qe._label).getRegex(),reflink:Ie(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Qe._label).getRegex()}),Qe.gfm=ke({},Qe.normal,{escape:Ie(Qe.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),Qe.gfm.url=Ie(Qe.gfm.url,"i").replace("email",Qe.gfm._extended_email).getRegex(),Qe.breaks=ke({},Qe.gfm,{br:Ie(Qe.br).replace("{2,}","*").getRegex(),text:Ie(Qe.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var We={block:Re,inline:Qe},ot=h.defaults,Oe=We.block,oe=We.inline;function st(zt){return zt.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function he(zt){var kt="",Vt,Xe,pe=zt.length;for(Vt=0;Vt<pe;Vt++)Xe=zt.charCodeAt(Vt),Math.random()>.5&&(Xe="x"+Xe.toString(16)),kt+="&#"+Xe+";";return kt}var J=function(){function zt(Vt){this.tokens=[],this.tokens.links=Object.create(null),this.options=Vt||ot,this.options.tokenizer=this.options.tokenizer||new be,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Xe={block:Oe.normal,inline:oe.normal};this.options.pedantic?(Xe.block=Oe.pedantic,Xe.inline=oe.pedantic):this.options.gfm&&(Xe.block=Oe.gfm,this.options.breaks?Xe.inline=oe.breaks:Xe.inline=oe.gfm),this.tokenizer.rules=Xe}zt.lex=function(Xe,pe){var te=new zt(pe);return te.lex(Xe)};var kt=zt.prototype;return kt.lex=function(Xe){return Xe=Xe.replace(/\r\n|\r/g,`
|
|
|
`).replace(/\t/g," "),this.blockTokens(Xe,this.tokens,!0),this.inline(this.tokens),this.tokens},kt.blockTokens=function(Xe,pe,te){pe===void 0&&(pe=[]),te===void 0&&(te=!0),Xe=Xe.replace(/^ +$/gm,"");for(var $e,He,ae,ft;Xe;){if($e=this.tokenizer.space(Xe)){Xe=Xe.substring($e.raw.length),$e.type&&pe.push($e);continue}if($e=this.tokenizer.code(Xe,pe)){Xe=Xe.substring($e.raw.length),$e.type?pe.push($e):(ft=pe[pe.length-1],ft.raw+=`
|
|
|
`+$e.raw,ft.text+=`
|
|
|
`+$e.text);continue}if($e=this.tokenizer.fences(Xe)){Xe=Xe.substring($e.raw.length),pe.push($e);continue}if($e=this.tokenizer.heading(Xe)){Xe=Xe.substring($e.raw.length),pe.push($e);continue}if($e=this.tokenizer.nptable(Xe)){Xe=Xe.substring($e.raw.length),pe.push($e);continue}if($e=this.tokenizer.hr(Xe)){Xe=Xe.substring($e.raw.length),pe.push($e);continue}if($e=this.tokenizer.blockquote(Xe)){Xe=Xe.substring($e.raw.length),$e.tokens=this.blockTokens($e.text,[],te),pe.push($e);continue}if($e=this.tokenizer.list(Xe)){for(Xe=Xe.substring($e.raw.length),ae=$e.items.length,He=0;He<ae;He++)$e.items[He].tokens=this.blockTokens($e.items[He].text,[],!1);pe.push($e);continue}if($e=this.tokenizer.html(Xe)){Xe=Xe.substring($e.raw.length),pe.push($e);continue}if(te&&($e=this.tokenizer.def(Xe))){Xe=Xe.substring($e.raw.length),this.tokens.links[$e.tag]||(this.tokens.links[$e.tag]={href:$e.href,title:$e.title});continue}if($e=this.tokenizer.table(Xe)){Xe=Xe.substring($e.raw.length),pe.push($e);continue}if($e=this.tokenizer.lheading(Xe)){Xe=Xe.substring($e.raw.length),pe.push($e);continue}if(te&&($e=this.tokenizer.paragraph(Xe))){Xe=Xe.substring($e.raw.length),pe.push($e);continue}if($e=this.tokenizer.text(Xe,pe)){Xe=Xe.substring($e.raw.length),$e.type?pe.push($e):(ft=pe[pe.length-1],ft.raw+=`
|
|
|
`+$e.raw,ft.text+=`
|
|
|
`+$e.text);continue}if(Xe){var Mt="Infinite loop on byte: "+Xe.charCodeAt(0);if(this.options.silent){console.error(Mt);break}else throw new Error(Mt)}}return pe},kt.inline=function(Xe){var pe,te,$e,He,ae,ft,Mt=Xe.length;for(pe=0;pe<Mt;pe++){ft=Xe[pe];switch(ft.type){case"paragraph":case"text":case"heading":{ft.tokens=[],this.inlineTokens(ft.text,ft.tokens);break}case"table":{for(ft.tokens={header:[],cells:[]},He=ft.header.length,te=0;te<He;te++)ft.tokens.header[te]=[],this.inlineTokens(ft.header[te],ft.tokens.header[te]);for(He=ft.cells.length,te=0;te<He;te++)for(ae=ft.cells[te],ft.tokens.cells[te]=[],$e=0;$e<ae.length;$e++)ft.tokens.cells[te][$e]=[],this.inlineTokens(ae[$e],ft.tokens.cells[te][$e]);break}case"blockquote":{this.inline(ft.tokens);break}case"list":{for(He=ft.items.length,te=0;te<He;te++)this.inline(ft.items[te].tokens);break}}}return Xe},kt.inlineTokens=function(Xe,pe,te,$e,He){pe===void 0&&(pe=[]),te===void 0&&(te=!1),$e===void 0&&($e=!1),He===void 0&&(He="");var ae,ft=Xe,Mt;if(this.tokens.links){var mt=Object.keys(this.tokens.links);if(mt.length>0)for(;(Mt=this.tokenizer.rules.inline.reflinkSearch.exec(ft))!=null;)mt.includes(Mt[0].slice(Mt[0].lastIndexOf("[")+1,-1))&&(ft=ft.slice(0,Mt.index)+"["+"a".repeat(Mt[0].length-2)+"]"+ft.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Mt=this.tokenizer.rules.inline.blockSkip.exec(ft))!=null;)ft=ft.slice(0,Mt.index)+"["+"a".repeat(Mt[0].length-2)+"]"+ft.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Xe;){if(ae=this.tokenizer.escape(Xe)){Xe=Xe.substring(ae.raw.length),pe.push(ae);continue}if(ae=this.tokenizer.tag(Xe,te,$e)){Xe=Xe.substring(ae.raw.length),te=ae.inLink,$e=ae.inRawBlock,pe.push(ae);continue}if(ae=this.tokenizer.link(Xe)){Xe=Xe.substring(ae.raw.length),ae.type==="link"&&(ae.tokens=this.inlineTokens(ae.text,[],!0,$e)),pe.push(ae);continue}if(ae=this.tokenizer.reflink(Xe,this.tokens.links)){Xe=Xe.substring(ae.raw.length),ae.type==="link"&&(ae.tokens=this.inlineTokens(ae.text,[],!0,$e)),pe.push(ae);continue}if(ae=this.tokenizer.strong(Xe,ft,He)){Xe=Xe.substring(ae.raw.length),ae.tokens=this.inlineTokens(ae.text,[],te,$e),pe.push(ae);continue}if(ae=this.tokenizer.em(Xe,ft,He)){Xe=Xe.substring(ae.raw.length),ae.tokens=this.inlineTokens(ae.text,[],te,$e),pe.push(ae);continue}if(ae=this.tokenizer.codespan(Xe)){Xe=Xe.substring(ae.raw.length),pe.push(ae);continue}if(ae=this.tokenizer.br(Xe)){Xe=Xe.substring(ae.raw.length),pe.push(ae);continue}if(ae=this.tokenizer.del(Xe)){Xe=Xe.substring(ae.raw.length),ae.tokens=this.inlineTokens(ae.text,[],te,$e),pe.push(ae);continue}if(ae=this.tokenizer.autolink(Xe,he)){Xe=Xe.substring(ae.raw.length),pe.push(ae);continue}if(!te&&(ae=this.tokenizer.url(Xe,he))){Xe=Xe.substring(ae.raw.length),pe.push(ae);continue}if(ae=this.tokenizer.inlineText(Xe,$e,st)){Xe=Xe.substring(ae.raw.length),He=ae.raw.slice(-1),pe.push(ae);continue}if(Xe){var or="Infinite loop on byte: "+Xe.charCodeAt(0);if(this.options.silent){console.error(or);break}else throw new Error(or)}}return pe},p(zt,null,[{key:"rules",get:function(){return{block:Oe,inline:oe}}}]),zt}(),Y=h.defaults,$=j.cleanUrl,fe=j.escape,we=function(){function zt(Vt){this.options=Vt||Y}var kt=zt.prototype;return kt.code=function(Xe,pe,te){var $e=(pe||"").match(/\S*/)[0];if(this.options.highlight){var He=this.options.highlight(Xe,$e);He!=null&&He!==Xe&&(te=!0,Xe=He)}return $e?'<pre><code class="'+this.options.langPrefix+fe($e,!0)+'">'+(te?Xe:fe(Xe,!0))+`</code></pre>
|
|
|
`:"<pre><code>"+(te?Xe:fe(Xe,!0))+`</code></pre>
|
|
|
`},kt.blockquote=function(Xe){return`<blockquote>
|
|
|
`+Xe+`</blockquote>
|
|
|
`},kt.html=function(Xe){return Xe},kt.heading=function(Xe,pe,te,$e){return this.options.headerIds?"<h"+pe+' id="'+this.options.headerPrefix+$e.slug(te)+'">'+Xe+"</h"+pe+`>
|
|
|
`:"<h"+pe+">"+Xe+"</h"+pe+`>
|
|
|
`},kt.hr=function(){return this.options.xhtml?`<hr/>
|
|
|
`:`<hr>
|
|
|
`},kt.list=function(Xe,pe,te){var $e=pe?"ol":"ul",He=pe&&te!==1?' start="'+te+'"':"";return"<"+$e+He+`>
|
|
|
`+Xe+"</"+$e+`>
|
|
|
`},kt.listitem=function(Xe){return"<li>"+Xe+`</li>
|
|
|
`},kt.checkbox=function(Xe){return"<input "+(Xe?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},kt.paragraph=function(Xe){return"<p>"+Xe+`</p>
|
|
|
`},kt.table=function(Xe,pe){return pe&&(pe="<tbody>"+pe+"</tbody>"),`<table>
|
|
|
<thead>
|
|
|
`+Xe+`</thead>
|
|
|
`+pe+`</table>
|
|
|
`},kt.tablerow=function(Xe){return`<tr>
|
|
|
`+Xe+`</tr>
|
|
|
`},kt.tablecell=function(Xe,pe){var te=pe.header?"th":"td",$e=pe.align?"<"+te+' align="'+pe.align+'">':"<"+te+">";return $e+Xe+"</"+te+`>
|
|
|
`},kt.strong=function(Xe){return"<strong>"+Xe+"</strong>"},kt.em=function(Xe){return"<em>"+Xe+"</em>"},kt.codespan=function(Xe){return"<code>"+Xe+"</code>"},kt.br=function(){return this.options.xhtml?"<br/>":"<br>"},kt.del=function(Xe){return"<del>"+Xe+"</del>"},kt.link=function(Xe,pe,te){if(Xe=$(this.options.sanitize,this.options.baseUrl,Xe),Xe===null)return te;var $e='<a href="'+fe(Xe)+'"';return pe&&($e+=' title="'+pe+'"'),$e+=">"+te+"</a>",$e},kt.image=function(Xe,pe,te){if(Xe=$(this.options.sanitize,this.options.baseUrl,Xe),Xe===null)return te;var $e='<img src="'+Xe+'" alt="'+te+'"';return pe&&($e+=' title="'+pe+'"'),$e+=this.options.xhtml?"/>":">",$e},kt.text=function(Xe){return Xe},zt}(),Ne=function(){function zt(){}var kt=zt.prototype;return kt.strong=function(Xe){return Xe},kt.em=function(Xe){return Xe},kt.codespan=function(Xe){return Xe},kt.del=function(Xe){return Xe},kt.html=function(Xe){return Xe},kt.text=function(Xe){return Xe},kt.link=function(Xe,pe,te){return""+te},kt.image=function(Xe,pe,te){return""+te},kt.br=function(){return""},zt}(),Ee=function(){function zt(){this.seen={}}var kt=zt.prototype;return kt.slug=function(Xe){var pe=Xe.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(pe)){var te=pe;do this.seen[te]++,pe=te+"-"+this.seen[te];while(this.seen.hasOwnProperty(pe))}return this.seen[pe]=0,pe},zt}(),de=h.defaults,me=j.unescape,Le=function(){function zt(Vt){this.options=Vt||de,this.options.renderer=this.options.renderer||new we,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ne,this.slugger=new Ee}zt.parse=function(Xe,pe){var te=new zt(pe);return te.parse(Xe)};var kt=zt.prototype;return kt.parse=function(Xe,pe){pe===void 0&&(pe=!0);var te="",$e,He,ae,ft,Mt,mt,or,vr,fn,sr,Ir,lr,Wt,xt,rn,Dn,Xn,ri,Ui=Xe.length;for($e=0;$e<Ui;$e++){sr=Xe[$e];switch(sr.type){case"space":continue;case"hr":{te+=this.renderer.hr();continue}case"heading":{te+=this.renderer.heading(this.parseInline(sr.tokens),sr.depth,me(this.parseInline(sr.tokens,this.textRenderer)),this.slugger);continue}case"code":{te+=this.renderer.code(sr.text,sr.lang,sr.escaped);continue}case"table":{for(vr="",or="",ft=sr.header.length,He=0;He<ft;He++)or+=this.renderer.tablecell(this.parseInline(sr.tokens.header[He]),{header:!0,align:sr.align[He]});for(vr+=this.renderer.tablerow(or),fn="",ft=sr.cells.length,He=0;He<ft;He++){for(mt=sr.tokens.cells[He],or="",Mt=mt.length,ae=0;ae<Mt;ae++)or+=this.renderer.tablecell(this.parseInline(mt[ae]),{header:!1,align:sr.align[ae]});fn+=this.renderer.tablerow(or)}te+=this.renderer.table(vr,fn);continue}case"blockquote":{fn=this.parse(sr.tokens),te+=this.renderer.blockquote(fn);continue}case"list":{for(Ir=sr.ordered,lr=sr.start,Wt=sr.loose,ft=sr.items.length,fn="",He=0;He<ft;He++)rn=sr.items[He],Dn=rn.checked,Xn=rn.task,xt="",rn.task&&(ri=this.renderer.checkbox(Dn),Wt?rn.tokens.length>0&&rn.tokens[0].type==="text"?(rn.tokens[0].text=ri+" "+rn.tokens[0].text,rn.tokens[0].tokens&&rn.tokens[0].tokens.length>0&&rn.tokens[0].tokens[0].type==="text"&&(rn.tokens[0].tokens[0].text=ri+" "+rn.tokens[0].tokens[0].text)):rn.tokens.unshift({type:"text",text:ri}):xt+=ri),xt+=this.parse(rn.tokens,Wt),fn+=this.renderer.listitem(xt,Xn,Dn);te+=this.renderer.list(fn,Ir,lr);continue}case"html":{te+=this.renderer.html(sr.text);continue}case"paragraph":{te+=this.renderer.paragraph(this.parseInline(sr.tokens));continue}case"text":{for(fn=sr.tokens?this.parseInline(sr.tokens):sr.text;$e+1<Ui&&Xe[$e+1].type==="text";)sr=Xe[++$e],fn+=`
|
|
|
`+(sr.tokens?this.parseInline(sr.tokens):sr.text);te+=pe?this.renderer.paragraph(fn):fn;continue}default:{var Bn='Token with "'+sr.type+'" type was not found.';if(this.options.silent){console.error(Bn);return}else throw new Error(Bn)}}}return te},kt.parseInline=function(Xe,pe){pe=pe||this.renderer;var te="",$e,He,ae=Xe.length;for($e=0;$e<ae;$e++){He=Xe[$e];switch(He.type){case"escape":{te+=pe.text(He.text);break}case"html":{te+=pe.html(He.text);break}case"link":{te+=pe.link(He.href,He.title,this.parseInline(He.tokens,pe));break}case"image":{te+=pe.image(He.href,He.title,He.text);break}case"strong":{te+=pe.strong(this.parseInline(He.tokens,pe));break}case"em":{te+=pe.em(this.parseInline(He.tokens,pe));break}case"codespan":{te+=pe.codespan(He.text);break}case"br":{te+=pe.br();break}case"del":{te+=pe.del(this.parseInline(He.tokens,pe));break}case"text":{te+=pe.text(He.text);break}default:{var ft='Token with "'+He.type+'" type was not found.';if(this.options.silent){console.error(ft);return}else throw new Error(ft)}}}return te},zt}(),tt=j.merge,At=j.checkSanitizeDeprecation,ht=j.escape,Ke=h.getDefaults,Jt=h.changeDefaults,ct=h.defaults;function Gt(zt,kt,Vt){if(typeof zt=="undefined"||zt===null)throw new Error("marked(): input parameter is undefined or null");if(typeof zt!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(zt)+", string expected");if(typeof kt=="function"&&(Vt=kt,kt=null),kt=tt({},Gt.defaults,kt||{}),At(kt),Vt){var Xe=kt.highlight,pe;try{pe=J.lex(zt,kt)}catch(ae){return Vt(ae)}var te=function(ft){var Mt;if(!ft)try{Mt=Le.parse(pe,kt)}catch(mt){ft=mt}return kt.highlight=Xe,ft?Vt(ft):Vt(null,Mt)};if(!Xe||Xe.length<3)return te();if(delete kt.highlight,!pe.length)return te();var $e=0;Gt.walkTokens(pe,function(ae){ae.type==="code"&&($e++,setTimeout(function(){Xe(ae.text,ae.lang,function(ft,Mt){if(ft)return te(ft);Mt!=null&&Mt!==ae.text&&(ae.text=Mt,ae.escaped=!0),$e--,$e===0&&te()})},0))}),$e===0&&te();return}try{var He=J.lex(zt,kt);return kt.walkTokens&&Gt.walkTokens(He,kt.walkTokens),Le.parse(He,kt)}catch(ae){if(ae.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,kt.silent)return"<p>An error occurred:</p><pre>"+ht(ae.message+"",!0)+"</pre>";throw ae}}Gt.options=Gt.setOptions=function(zt){return tt(Gt.defaults,zt),Jt(Gt.defaults),Gt},Gt.getDefaults=Ke,Gt.defaults=ct,Gt.use=function(zt){var kt=tt({},zt);if(zt.renderer&&function(){var Xe=Gt.defaults.renderer||new we,pe=function(He){var ae=Xe[He];Xe[He]=function(){for(var ft=arguments.length,Mt=new Array(ft),mt=0;mt<ft;mt++)Mt[mt]=arguments[mt];var or=zt.renderer[He].apply(Xe,Mt);return or===!1&&(or=ae.apply(Xe,Mt)),or}};for(var te in zt.renderer)pe(te);kt.renderer=Xe}(),zt.tokenizer&&function(){var Xe=Gt.defaults.tokenizer||new be,pe=function(He){var ae=Xe[He];Xe[He]=function(){for(var ft=arguments.length,Mt=new Array(ft),mt=0;mt<ft;mt++)Mt[mt]=arguments[mt];var or=zt.tokenizer[He].apply(Xe,Mt);return or===!1&&(or=ae.apply(Xe,Mt)),or}};for(var te in zt.tokenizer)pe(te);kt.tokenizer=Xe}(),zt.walkTokens){var Vt=Gt.defaults.walkTokens;kt.walkTokens=function(Xe){zt.walkTokens(Xe),Vt&&Vt(Xe)}}Gt.setOptions(kt)},Gt.walkTokens=function(zt,kt){for(var Vt=m(zt),Xe;!(Xe=Vt()).done;){var pe=Xe.value;kt(pe);switch(pe.type){case"table":{for(var te=m(pe.tokens.header),$e;!($e=te()).done;){var He=$e.value;Gt.walkTokens(He,kt)}for(var ae=m(pe.tokens.cells),ft;!(ft=ae()).done;)for(var Mt=ft.value,mt=m(Mt),or;!(or=mt()).done;){var vr=or.value;Gt.walkTokens(vr,kt)}break}case"list":{Gt.walkTokens(pe.items,kt);break}default:pe.tokens&&Gt.walkTokens(pe.tokens,kt)}}},Gt.Parser=Le,Gt.parser=Le.parse,Gt.Renderer=we,Gt.TextRenderer=Ne,Gt.Lexer=J,Gt.lexer=J.lex,Gt.Tokenizer=be,Gt.Slugger=Ee,Gt.parse=Gt;var dr=Gt;return dr})},"DlR+":function(k,D,n){var y=n("MFOe"),p=y.Global,x=y.trim;k.exports={name:"cookieStorage",read:m,write:h,each:f,remove:u,clearAll:a};var A=p.document;function m(t){if(!t||!i(t))return null;var o="(?:^|.*;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(A.cookie.replace(new RegExp(o),"$1"))}function f(t){for(var o=A.cookie.split(/; ?/g),e=o.length-1;e>=0;e--){if(!x(o[e]))continue;var l=o[e].split("="),r=unescape(l[0]),s=unescape(l[1]);t(s,r)}}function h(t,o){if(!t)return;A.cookie=escape(t)+"="+escape(o)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"}function u(t){if(!t||!i(t))return;A.cookie=escape(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}function a(){f(function(t,o){u(o)})}function i(t){return new RegExp("(?:^|;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(A.cookie)}},Ducp:function(k,D,n){var y=n("bYtY"),p=n("IwbS"),x=n("+TT/"),A=n("XpcN"),m=p.Group,f=["width","height"],h=["x","y"],u=A.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){u.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new m),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new m),this._showController},resetInner:function(){u.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(i,t,o,e,l,r,s){var c=this;u.superCall(this,"renderInner",i,t,o,e,l,r,s);var d=this._controllerGroup,g=t.get("pageIconSize",!0);y.isArray(g)||(g=[g,g]),b("pagePrev",0);var v=t.getModel("pageTextStyle");d.add(new p.Text({name:"pageText",style:{textFill:v.getTextColor(),font:v.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),b("pageNext",1);function b(S,E){var C=S+"DataIndex",_=p.createIcon(t.get("pageIcons",!0)[t.getOrient().name][E],{onclick:y.bind(c._pageGo,c,C,t,e)},{x:-g[0]/2,y:-g[1]/2,width:g[0],height:g[1]});_.name=S,d.add(_)}},layoutInner:function(i,t,o,e,l,r){var s=this.getSelectorGroup(),c=i.getOrient().index,d=f[c],g=h[c],v=f[1-c],b=h[1-c];l&&x.box("horizontal",s,i.get("selectorItemGap",!0));var S=i.get("selectorButtonGap",!0),E=s.getBoundingRect(),C=[-E.x,-E.y],_=y.clone(o);l&&(_[d]=o[d]-E[d]-S);var T=this._layoutContentAndController(i,e,_,c,d,v,b);if(l){if(r==="end")C[c]+=T[d]+S;else{var w=E[d]+S;C[c]-=w,T[g]-=w}T[d]+=E[d]+S,C[1-c]+=T[b]+T[v]/2-E[v]/2,T[v]=Math.max(T[v],E[v]),T[b]=Math.min(T[b],E[b]+C[1-c]),s.attr("position",C)}return T},_layoutContentAndController:function(i,t,o,e,l,r,s){var c=this.getContentGroup(),d=this._containerGroup,g=this._controllerGroup;x.box(i.get("orient"),c,i.get("itemGap"),e?o.width:null,e?null:o.height),x.box("horizontal",g,i.get("pageButtonItemGap",!0));var v=c.getBoundingRect(),b=g.getBoundingRect(),S=this._showController=v[l]>o[l],E=[-v.x,-v.y];t||(E[e]=c.position[e]);var C=[0,0],_=[-b.x,-b.y],T=y.retrieve2(i.get("pageButtonGap",!0),i.get("itemGap",!0));if(S){var w=i.get("pageButtonPosition",!0);w==="end"?_[e]+=o[l]-b[l]:C[e]+=b[l]+T}_[1-e]+=v[r]/2-b[r]/2,c.attr("position",E),d.attr("position",C),g.attr("position",_);var O={x:0,y:0};if(O[l]=S?o[l]:v[l],O[r]=Math.max(v[r],b[r]),O[s]=Math.min(0,b[s]+_[1-e]),d.__rectSize=o[l],S){var I={x:0,y:0};I[l]=Math.max(o[l]-b[l]-T,0),I[r]=O[r],d.setClipPath(new p.Rect({shape:I})),d.__rectSize=I[l]}else g.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var R=this._getPageInfo(i);return R.pageIndex!=null&&p.updateProps(c,{position:R.contentPosition},S?i:!1),this._updatePageInfoView(i,R),O},_pageGo:function(i,t,o){var e=this._getPageInfo(t)[i];e!=null&&o.dispatchAction({type:"legendScroll",scrollDataIndex:e,legendId:t.id})},_updatePageInfoView:function(i,t){var o=this._controllerGroup;y.each(["pagePrev","pageNext"],function(d){var g=t[d+"DataIndex"]!=null,v=o.childOfName(d);v&&(v.setStyle("fill",g?i.get("pageIconColor",!0):i.get("pageIconInactiveColor",!0)),v.cursor=g?"pointer":"default")});var e=o.childOfName("pageText"),l=i.get("pageFormatter"),r=t.pageIndex,s=r!=null?r+1:0,c=t.pageCount;e&&l&&e.setStyle("text",y.isString(l)?l.replace("{current}",s).replace("{total}",c):l({current:s,total:c}))},_getPageInfo:function(i){var t=i.get("scrollDataIndex",!0),o=this.getContentGroup(),e=this._containerGroup.__rectSize,l=i.getOrient().index,r=f[l],s=h[l],c=this._findTargetItemIndex(t),d=o.children(),g=d[c],v=d.length,b=v?1:0,S={contentPosition:o.position.slice(),pageCount:b,pageIndex:b-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!g)return S;var E=O(g);S.contentPosition[l]=-E.s;for(var C=c+1,_=E,T=E,w=null;C<=v;++C)w=O(d[C]),(!w&&T.e>_.s+e||w&&!I(w,_.s))&&(T.i>_.i?_=T:_=w,_&&(S.pageNextDataIndex==null&&(S.pageNextDataIndex=_.i),++S.pageCount)),T=w;for(var C=c-1,_=E,T=E,w=null;C>=-1;--C)w=O(d[C]),(!w||!I(T,w.s))&&_.i<T.i&&(T=_,S.pagePrevDataIndex==null&&(S.pagePrevDataIndex=_.i),++S.pageCount,++S.pageIndex),_=w;return S;function O(R){if(R){var M=R.getBoundingRect(),F=M[s]+R.position[l];return{s:F,e:F+M[r],i:R.__legendDataIndex}}}function I(R,M){return R.e>=M&&R.s<=M+e}},_findTargetItemIndex:function(i){if(!this._showController)return 0;var t,o=this.getContentGroup(),e;return o.eachChild(function(l,r){var s=l.__legendDataIndex;e==null&&s!=null&&(e=r),s===i&&(t=r)}),t!=null?t:e}}),a=u;k.exports=a},DxGw:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("GtAB"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},"E/ki":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};D.default=y},E2g8:function(k,D,n){(function(y,p){/*!
|
|
|
* @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.8+1e68dce6
|
|
|
*/(function(x,A){k.exports=A()})(this,function(){"use strict";function x(we){var Ne=typeof we;return we!==null&&(Ne==="object"||Ne==="function")}function A(we){return typeof we=="function"}var m=void 0;Array.isArray?m=Array.isArray:m=function(Ne){return Object.prototype.toString.call(Ne)==="[object Array]"};var f=m,h=0,u=void 0,a=void 0,i=function(Ne,Ee){E[h]=Ne,E[h+1]=Ee,h+=2,h===2&&(a?a(C):T())};function t(we){a=we}function o(we){i=we}var e=typeof window!="undefined"?window:void 0,l=e||{},r=l.MutationObserver||l.WebKitMutationObserver,s=typeof self=="undefined"&&typeof y!="undefined"&&{}.toString.call(y)==="[object process]",c=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function d(){return function(){return y.nextTick(C)}}function g(){return typeof u!="undefined"?function(){u(C)}:S()}function v(){var we=0,Ne=new r(C),Ee=document.createTextNode("");return Ne.observe(Ee,{characterData:!0}),function(){Ee.data=we=++we%2}}function b(){var we=new MessageChannel;return we.port1.onmessage=C,function(){return we.port2.postMessage(0)}}function S(){var we=setTimeout;return function(){return we(C,1)}}var E=new Array(1e3);function C(){for(var we=0;we<h;we+=2){var Ne=E[we],Ee=E[we+1];Ne(Ee),E[we]=void 0,E[we+1]=void 0}h=0}function _(){try{var we=Function("return this")().require("vertx");return u=we.runOnLoop||we.runOnContext,g()}catch(Ne){return S()}}var T=void 0;s?T=d():r?T=v():c?T=b():e===void 0&&!0?T=_():T=S();function w(we,Ne){var Ee=this,de=new this.constructor(R);de[I]===void 0&&We(de);var me=Ee._state;if(me){var Le=arguments[me-1];i(function(){return Ie(me,de,Le,Ee._result)})}else be(Ee,de,we,Ne);return de}function O(we){var Ne=this;if(we&&typeof we=="object"&&we.constructor===Ne)return we;var Ee=new Ne(R);return Q(Ee,we),Ee}var I=Math.random().toString(36).substring(2);function R(){}var M=void 0,F=1,P=2;function X(){return new TypeError("You cannot resolve a promise with itself")}function B(){return new TypeError("A promises callback cannot return that same promise.")}function j(we,Ne,Ee,de){try{we.call(Ne,Ee,de)}catch(me){return me}}function W(we,Ne,Ee){i(function(de){var me=!1,Le=j(Ee,Ne,function(tt){if(me)return;me=!0,Ne!==tt?Q(de,tt):ee(de,tt)},function(tt){if(me)return;me=!0,ce(de,tt)},"Settle: "+(de._label||" unknown promise"));!me&&Le&&(me=!0,ce(de,Le))},we)}function z(we,Ne){Ne._state===F?ee(we,Ne._result):Ne._state===P?ce(we,Ne._result):be(Ne,void 0,function(Ee){return Q(we,Ee)},function(Ee){return ce(we,Ee)})}function V(we,Ne,Ee){Ne.constructor===we.constructor&&Ee===w&&Ne.constructor.resolve===O?z(we,Ne):Ee===void 0?ee(we,Ne):A(Ee)?W(we,Ne,Ee):ee(we,Ne)}function Q(we,Ne){if(we===Ne)ce(we,X());else if(x(Ne)){var Ee=void 0;try{Ee=Ne.then}catch(de){ce(we,de);return}V(we,Ne,Ee)}else ee(we,Ne)}function G(we){we._onerror&&we._onerror(we._result),le(we)}function ee(we,Ne){if(we._state!==M)return;we._result=Ne,we._state=F,we._subscribers.length!==0&&i(le,we)}function ce(we,Ne){if(we._state!==M)return;we._state=P,we._result=Ne,i(G,we)}function be(we,Ne,Ee,de){var me=we._subscribers,Le=me.length;we._onerror=null,me[Le]=Ne,me[Le+F]=Ee,me[Le+P]=de,Le===0&&we._state&&i(le,we)}function le(we){var Ne=we._subscribers,Ee=we._state;if(Ne.length===0)return;for(var de=void 0,me=void 0,Le=we._result,tt=0;tt<Ne.length;tt+=3)de=Ne[tt],me=Ne[tt+Ee],de?Ie(Ee,de,me,Le):me(Le);we._subscribers.length=0}function Ie(we,Ne,Ee,de){var me=A(Ee),Le=void 0,tt=void 0,At=!0;if(me){try{Le=Ee(de)}catch(ht){At=!1,tt=ht}if(Ne===Le){ce(Ne,B());return}}else Le=de;Ne._state!==M||(me&&At?Q(Ne,Le):At===!1?ce(Ne,tt):we===F?ee(Ne,Le):we===P&&ce(Ne,Le))}function ke(we,Ne){try{Ne(function(de){Q(we,de)},function(de){ce(we,de)})}catch(Ee){ce(we,Ee)}}var Re=0;function Qe(){return Re++}function We(we){we[I]=Re++,we._state=void 0,we._result=void 0,we._subscribers=[]}function ot(){return new Error("Array Methods must be provided an Array")}var Oe=function(){function we(Ne,Ee){this._instanceConstructor=Ne,this.promise=new Ne(R),this.promise[I]||We(this.promise),f(Ee)?(this.length=Ee.length,this._remaining=Ee.length,this._result=new Array(this.length),this.length===0?ee(this.promise,this._result):(this.length=this.length||0,this._enumerate(Ee),this._remaining===0&&ee(this.promise,this._result))):ce(this.promise,ot())}return we.prototype._enumerate=function(Ee){for(var de=0;this._state===M&&de<Ee.length;de++)this._eachEntry(Ee[de],de)},we.prototype._eachEntry=function(Ee,de){var me=this._instanceConstructor,Le=me.resolve;if(Le===O){var tt=void 0,At=void 0,ht=!1;try{tt=Ee.then}catch(Jt){ht=!0,At=Jt}if(tt===w&&Ee._state!==M)this._settledAt(Ee._state,de,Ee._result);else if(typeof tt!="function")this._remaining--,this._result[de]=Ee;else if(me===$){var Ke=new me(R);ht?ce(Ke,At):V(Ke,Ee,tt),this._willSettleAt(Ke,de)}else this._willSettleAt(new me(function(Jt){return Jt(Ee)}),de)}else this._willSettleAt(Le(Ee),de)},we.prototype._settledAt=function(Ee,de,me){var Le=this.promise;Le._state===M&&(this._remaining--,Ee===P?ce(Le,me):this._result[de]=me),this._remaining===0&&ee(Le,this._result)},we.prototype._willSettleAt=function(Ee,de){var me=this;be(Ee,void 0,function(Le){return me._settledAt(F,de,Le)},function(Le){return me._settledAt(P,de,Le)})},we}();function oe(we){return new Oe(this,we).promise}function st(we){var Ne=this;return f(we)?new Ne(function(Ee,de){for(var me=we.length,Le=0;Le<me;Le++)Ne.resolve(we[Le]).then(Ee,de)}):new Ne(function(Ee,de){return de(new TypeError("You must pass an array to race."))})}function he(we){var Ne=this,Ee=new Ne(R);return ce(Ee,we),Ee}function J(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Y(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var $=function(){function we(Ne){this[I]=Qe(),this._result=this._state=void 0,this._subscribers=[],R!==Ne&&(typeof Ne!="function"&&J(),this instanceof we?ke(this,Ne):Y())}return we.prototype.catch=function(Ee){return this.then(null,Ee)},we.prototype.finally=function(Ee){var de=this,me=de.constructor;return A(Ee)?de.then(function(Le){return me.resolve(Ee()).then(function(){return Le})},function(Le){return me.resolve(Ee()).then(function(){throw Le})}):de.then(Ee,Ee)},we}();$.prototype.then=w,$.all=oe,$.race=st,$.resolve=O,$.reject=he,$._setScheduler=t,$._setAsap=o,$._asap=i;function fe(){var we=void 0;if(typeof p!="undefined")we=p;else if(typeof self!="undefined")we=self;else try{we=Function("return this")()}catch(de){throw new Error("polyfill failed because global object is unavailable in this environment")}var Ne=we.Promise;if(Ne){var Ee=null;try{Ee=Object.prototype.toString.call(Ne.resolve())}catch(de){}if(Ee==="[object Promise]"&&!Ne.cast)return}we.Promise=$}return $.polyfill=fe,$.Promise=$,$})}).call(this,n("Q2Ig"),n("yLpj"))},E2jh:function(k,D,n){var y=n("2gN3"),p=function(){var A=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||"");return A?"Symbol(src)_1."+A:""}();function x(A){return!!p&&p in A}k.exports=x},E4JC:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"))})(this,function(y){return function(){var p=y,x=p.lib,A=x.StreamCipher,m=p.algo,f=[],h=[],u=[],a=m.Rabbit=A.extend({_doReset:function(){for(var o=this._key.words,e=this.cfg.iv,l=0;l<4;l++)o[l]=(o[l]<<8|o[l]>>>24)&16711935|(o[l]<<24|o[l]>>>8)&4278255360;var r=this._X=[o[0],o[3]<<16|o[2]>>>16,o[1],o[0]<<16|o[3]>>>16,o[2],o[1]<<16|o[0]>>>16,o[3],o[2]<<16|o[1]>>>16],s=this._C=[o[2]<<16|o[2]>>>16,o[0]&4294901760|o[1]&65535,o[3]<<16|o[3]>>>16,o[1]&4294901760|o[2]&65535,o[0]<<16|o[0]>>>16,o[2]&4294901760|o[3]&65535,o[1]<<16|o[1]>>>16,o[3]&4294901760|o[0]&65535];this._b=0;for(var l=0;l<4;l++)i.call(this);for(var l=0;l<8;l++)s[l]^=r[l+4&7];if(e){var c=e.words,d=c[0],g=c[1],v=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,b=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,S=v>>>16|b&4294901760,E=b<<16|v&65535;s[0]^=v,s[1]^=S,s[2]^=b,s[3]^=E,s[4]^=v,s[5]^=S,s[6]^=b,s[7]^=E;for(var l=0;l<4;l++)i.call(this)}},_doProcessBlock:function(o,e){var l=this._X;i.call(this),f[0]=l[0]^l[5]>>>16^l[3]<<16,f[1]=l[2]^l[7]>>>16^l[5]<<16,f[2]=l[4]^l[1]>>>16^l[7]<<16,f[3]=l[6]^l[3]>>>16^l[1]<<16;for(var r=0;r<4;r++)f[r]=(f[r]<<8|f[r]>>>24)&16711935|(f[r]<<24|f[r]>>>8)&4278255360,o[e+r]^=f[r]},blockSize:128/32,ivSize:64/32});function i(){for(var t=this._X,o=this._C,e=0;e<8;e++)h[e]=o[e];o[0]=o[0]+1295307597+this._b|0,o[1]=o[1]+3545052371+(o[0]>>>0<h[0]>>>0?1:0)|0,o[2]=o[2]+886263092+(o[1]>>>0<h[1]>>>0?1:0)|0,o[3]=o[3]+1295307597+(o[2]>>>0<h[2]>>>0?1:0)|0,o[4]=o[4]+3545052371+(o[3]>>>0<h[3]>>>0?1:0)|0,o[5]=o[5]+886263092+(o[4]>>>0<h[4]>>>0?1:0)|0,o[6]=o[6]+1295307597+(o[5]>>>0<h[5]>>>0?1:0)|0,o[7]=o[7]+3545052371+(o[6]>>>0<h[6]>>>0?1:0)|0,this._b=o[7]>>>0<h[7]>>>0?1:0;for(var e=0;e<8;e++){var l=t[e]+o[e],r=l&65535,s=l>>>16,c=((r*r>>>17)+r*s>>>15)+s*s,d=((l&4294901760)*l|0)+((l&65535)*l|0);u[e]=c^d}t[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,t[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,t[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,t[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,t[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,t[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,t[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,t[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}p.Rabbit=A._createHelper(a)}(),y.Rabbit})},E9nw:function(k,D){k.exports=function(){var n=document.getSelection();if(!n.rangeCount)return function(){};for(var y=document.activeElement,p=[],x=0;x<n.rangeCount;x++)p.push(n.getRangeAt(x));switch(y.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":y.blur();break;default:y=null;break}return n.removeAllRanges(),function(){n.type==="Caret"&&n.removeAllRanges(),n.rangeCount||p.forEach(function(A){n.addRange(A)}),y&&y.focus()}}},ELLl:function(k,D,n){(function(y){y(n("VrN/"))})(function(y){var p={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},x=y.Pos;y.defineOption("autoCloseBrackets",!1,function(r,s,c){c&&c!=y.Init&&(r.removeKeyMap(m),r.state.closeBrackets=null),s&&(f(A(s,"pairs")),r.state.closeBrackets=s,r.addKeyMap(m))});function A(r,s){return s=="pairs"&&typeof r=="string"?r:typeof r=="object"&&r[s]!=null?r[s]:p[s]}var m={Backspace:a,Enter:i};function f(r){for(var s=0;s<r.length;s++){var c=r.charAt(s),d="'"+c+"'";m[d]||(m[d]=h(c))}}f(p.pairs+"`");function h(r){return function(s){return o(s,r)}}function u(r){var s=r.state.closeBrackets;if(!s||s.override)return s;var c=r.getModeAt(r.getCursor());return c.closeBrackets||s}function a(r){var s=u(r);if(!s||r.getOption("disableInput"))return y.Pass;for(var c=A(s,"pairs"),d=r.listSelections(),g=0;g<d.length;g++){if(!d[g].empty())return y.Pass;var v=e(r,d[g].head);if(!v||c.indexOf(v)%2!=0)return y.Pass}for(var g=d.length-1;g>=0;g--){var b=d[g].head;r.replaceRange("",x(b.line,b.ch-1),x(b.line,b.ch+1),"+delete")}}function i(r){var s=u(r),c=s&&A(s,"explode");if(!c||r.getOption("disableInput"))return y.Pass;for(var d=r.listSelections(),g=0;g<d.length;g++){if(!d[g].empty())return y.Pass;var v=e(r,d[g].head);if(!v||c.indexOf(v)%2!=0)return y.Pass}r.operation(function(){var b=r.lineSeparator()||`
|
|
|
`;r.replaceSelection(b+b,null),r.execCommand("goCharLeft"),d=r.listSelections();for(var S=0;S<d.length;S++){var E=d[S].head.line;r.indentLine(E,null,!0),r.indentLine(E+1,null,!0)}})}function t(r){var s=y.cmpPos(r.anchor,r.head)>0;return{anchor:new x(r.anchor.line,r.anchor.ch+(s?-1:1)),head:new x(r.head.line,r.head.ch+(s?1:-1))}}function o(r,s){var c=u(r);if(!c||r.getOption("disableInput"))return y.Pass;var d=A(c,"pairs"),g=d.indexOf(s);if(g==-1)return y.Pass;for(var v=A(c,"closeBefore"),b=A(c,"triples"),S=d.charAt(g+1)==s,E=r.listSelections(),C=g%2==0,_,T=0;T<E.length;T++){var w=E[T],O=w.head,I,R=r.getRange(O,x(O.line,O.ch+1));if(C&&!w.empty())I="surround";else if((S||!C)&&R==s)S&&l(r,O)?I="both":b.indexOf(s)>=0&&r.getRange(O,x(O.line,O.ch+3))==s+s+s?I="skipThree":I="skip";else if(S&&O.ch>1&&b.indexOf(s)>=0&&r.getRange(x(O.line,O.ch-2),O)==s+s){if(O.ch>2&&/\bstring/.test(r.getTokenTypeAt(x(O.line,O.ch-2))))return y.Pass;I="addFour"}else if(S){var M=O.ch==0?" ":r.getRange(x(O.line,O.ch-1),O);if(!y.isWordChar(R)&&M!=s&&!y.isWordChar(M))I="both";else return y.Pass}else if(C&&(R.length===0||/\s/.test(R)||v.indexOf(R)>-1))I="both";else return y.Pass;if(!_)_=I;else if(_!=I)return y.Pass}var F=g%2?d.charAt(g-1):s,P=g%2?s:d.charAt(g+1);r.operation(function(){if(_=="skip")r.execCommand("goCharRight");else if(_=="skipThree")for(var X=0;X<3;X++)r.execCommand("goCharRight");else if(_=="surround"){for(var B=r.getSelections(),X=0;X<B.length;X++)B[X]=F+B[X]+P;r.replaceSelections(B,"around"),B=r.listSelections().slice();for(var X=0;X<B.length;X++)B[X]=t(B[X]);r.setSelections(B)}else _=="both"?(r.replaceSelection(F+P,null),r.triggerElectric(F+P),r.execCommand("goCharLeft")):_=="addFour"&&(r.replaceSelection(F+F+F+F,"before"),r.execCommand("goCharRight"))})}function e(r,s){var c=r.getRange(x(s.line,s.ch-1),x(s.line,s.ch+1));return c.length==2?c:null}function l(r,s){var c=r.getTokenAt(x(s.line,s.ch+1));return/\bstring/.test(c.type)&&c.start==s.ch&&(s.ch==0||!/\bstring/.test(r.getTokenTypeAt(s)))}})},ELcG:function(k,D,n){(function(y,p){k.exports=D=p(n("Ib8C"))})(this,function(y){/** @preserve
|
|
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
|
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
|
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
*/return function(p){var x=y,A=x.lib,m=A.WordArray,f=A.Hasher,h=x.algo,u=m.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=m.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),i=m.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),t=m.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),o=m.create([0,1518500249,1859775393,2400959708,2840853838]),e=m.create([1352829926,1548603684,1836072691,2053994217,0]),l=h.RIPEMD160=f.extend({_doReset:function(){this._hash=m.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(S,E){for(var C=0;C<16;C++){var _=E+C,T=S[_];S[_]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}var w=this._hash.words,O=o.words,I=e.words,R=u.words,M=a.words,F=i.words,P=t.words,X,B,j,W,z,V,Q,G,ee,ce;V=X=w[0],Q=B=w[1],G=j=w[2],ee=W=w[3],ce=z=w[4];for(var be,C=0;C<80;C+=1)be=X+S[E+R[C]]|0,C<16?be+=r(B,j,W)+O[0]:C<32?be+=s(B,j,W)+O[1]:C<48?be+=c(B,j,W)+O[2]:C<64?be+=d(B,j,W)+O[3]:be+=g(B,j,W)+O[4],be=be|0,be=v(be,F[C]),be=be+z|0,X=z,z=W,W=v(j,10),j=B,B=be,be=V+S[E+M[C]]|0,C<16?be+=g(Q,G,ee)+I[0]:C<32?be+=d(Q,G,ee)+I[1]:C<48?be+=c(Q,G,ee)+I[2]:C<64?be+=s(Q,G,ee)+I[3]:be+=r(Q,G,ee)+I[4],be=be|0,be=v(be,P[C]),be=be+ce|0,V=ce,ce=ee,ee=v(G,10),G=Q,Q=be;be=w[1]+j+ee|0,w[1]=w[2]+W+ce|0,w[2]=w[3]+z+V|0,w[3]=w[4]+X+Q|0,w[4]=w[0]+B+G|0,w[0]=be},_doFinalize:function(){var S=this._data,E=S.words,C=this._nDataBytes*8,_=S.sigBytes*8;E[_>>>5]|=128<<24-_%32,E[(_+64>>>9<<4)+14]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,S.sigBytes=(E.length+1)*4,this._process();for(var T=this._hash,w=T.words,O=0;O<5;O++){var I=w[O];w[O]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return T},clone:function(){var S=f.clone.call(this);return S._hash=this._hash.clone(),S}});function r(b,S,E){return b^S^E}function s(b,S,E){return b&S|~b&E}function c(b,S,E){return(b|~S)^E}function d(b,S,E){return b&E|S&~E}function g(b,S,E){return b^(S|~E)}function v(b,S){return b<<S|b>>>32-S}x.RIPEMD160=f._createHelper(l),x.HmacRIPEMD160=f._createHmacHelper(l)}(Math),y.RIPEMD160})},EMyp:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("mFDi"),A=n("K4ya"),m=n("qJCg"),f=n("iLNv"),h=n("vZ6x"),u=["inBrush","outOfBrush"],a="__ecBrushSelect",i="__ecInBrushSelectEvent",t=y.PRIORITY.VISUAL.BRUSH;y.registerLayout(t,function(b,S,E){b.eachComponent({mainType:"brush"},function(C){E&&E.type==="takeGlobalCursor"&&C.setBrushOption(E.key==="brush"?E.brushOption:{brushType:!1})}),o(b)});function o(b){b.eachComponent({mainType:"brush"},function(S){var E=S.brushTargetManager=new h(S.option,b);E.setInputRanges(S.areas,b)})}y.registerVisual(t,function(b,S,E){var C=[],_,T;b.eachComponent({mainType:"brush"},function(w,O){var I={brushId:w.id,brushIndex:O,brushName:w.name,areas:p.clone(w.areas),selected:[]};C.push(I);var R=w.option,M=R.brushLink,F=[],P=[],X=[],B=0;O||(_=R.throttleType,T=R.throttleDelay);var j=p.map(w.areas,function(ee){return d(p.defaults({boundingRect:g[ee.brushType](ee)},ee))}),W=A.createVisualMappings(w.option,u,function(ee){ee.mappingMethod="fixed"});p.isArray(M)&&p.each(M,function(ee){F[ee]=1});function z(ee){return M==="all"||F[ee]}function V(ee){return!!ee.length}b.eachSeries(function(ee,ce){var be=X[ce]=[];ee.subType==="parallel"?Q(ee,ce,be):G(ee,ce,be)});function Q(ee,ce){var be=ee.coordinateSystem;B|=be.hasAxisBrushed(),z(ce)&&be.eachActiveState(ee.getData(),function(le,Ie){le==="active"&&(P[Ie]=1)})}function G(ee,ce,be){var le=s(ee);if(!le||c(w,ce))return;if(p.each(j,function(ke){le[ke.brushType]&&w.brushTargetManager.controlSeries(ke,ee,b)&&be.push(ke),B|=V(be)}),z(ce)&&V(be)){var Ie=ee.getData();Ie.each(function(ke){r(le,be,Ie,ke)&&(P[ke]=1)})}}b.eachSeries(function(ee,ce){var be={seriesId:ee.id,seriesIndex:ce,seriesName:ee.name,dataIndex:[]};I.selected.push(be);var le=s(ee),Ie=X[ce],ke=ee.getData(),Re=z(ce)?function(Qe){return P[Qe]?(be.dataIndex.push(ke.getRawIndex(Qe)),"inBrush"):"outOfBrush"}:function(Qe){return r(le,Ie,ke,Qe)?(be.dataIndex.push(ke.getRawIndex(Qe)),"inBrush"):"outOfBrush"};(z(ce)?B:V(Ie))&&A.applyVisual(u,W,ke,Re)})}),e(S,_,T,C,E)});function e(b,S,E,C,_){if(!_)return;var T=b.getZr();if(T[i])return;T[a]||(T[a]=l);var w=f.createOrUpdate(T,a,E,S);w(b,C)}function l(b,S){if(!b.isDisposed()){var E=b.getZr();E[i]=!0,b.dispatchAction({type:"brushSelect",batch:S}),E[i]=!1}}function r(b,S,E,C){for(var _=0,T=S.length;_<T;_++){var w=S[_];if(b[w.brushType](C,E,w.selectors,w))return!0}}function s(b){var S=b.brushSelector;if(p.isString(S)){var E=[];return p.each(m,function(_,T){E[T]=function(w,O,I,R){var M=O.getItemLayout(w);return _[S](M,I,R)}}),E}else if(p.isFunction(S)){var C={};return p.each(m,function(_,T){C[T]=S}),C}return S}function c(b,S){var E=b.option.seriesIndex;return E!=null&&E!=="all"&&(p.isArray(E)?p.indexOf(E,S)<0:S!==E)}function d(b){var S=b.selectors={};return p.each(m[b.brushType],function(E,C){S[C]=function(_){return E(_,S,b)}}),b}var g={lineX:p.noop,lineY:p.noop,rect:function(b){return v(b.range)},polygon:function(b){for(var S,E=b.range,C=0,_=E.length;C<_;C++){S=S||[[Infinity,-Infinity],[Infinity,-Infinity]];var T=E[C];T[0]<S[0][0]&&(S[0][0]=T[0]),T[0]>S[0][1]&&(S[0][1]=T[0]),T[1]<S[1][0]&&(S[1][0]=T[1]),T[1]>S[1][1]&&(S[1][1]=T[1])}return S&&v(S)}};function v(b){return new x(b[0][0],b[1][0],b[0][1]-b[0][0],b[1][1]-b[1][0])}D.layoutCovers=o},ERHi:function(k,D,n){var y=n("ProS");n("Z6js"),n("R4Th");var p=n("f5Yq"),x=n("h8O9");y.registerVisual(p("effectScatter","circle")),y.registerLayout(x("effectScatter"))},ETIr:function(k,D,n){(function(y,p){k.exports=D=p(n("Ib8C"))})(this,function(y){return function(){var p=y,x=p.lib,A=x.WordArray,m=p.enc,f=m.Base64={stringify:function(a){var i=a.words,t=a.sigBytes,o=this._map;a.clamp();for(var e=[],l=0;l<t;l+=3)for(var r=i[l>>>2]>>>24-l%4*8&255,s=i[l+1>>>2]>>>24-(l+1)%4*8&255,c=i[l+2>>>2]>>>24-(l+2)%4*8&255,d=r<<16|s<<8|c,g=0;g<4&&l+g*.75<t;g++)e.push(o.charAt(d>>>6*(3-g)&63));var v=o.charAt(64);if(v)for(;e.length%4;)e.push(v);return e.join("")},parse:function(a){var i=a.length,t=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var e=0;e<t.length;e++)o[t.charCodeAt(e)]=e}var l=t.charAt(64);if(l){var r=a.indexOf(l);r!==-1&&(i=r)}return h(a,i,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function h(u,a,i){for(var t=[],o=0,e=0;e<a;e++)if(e%4){var l=i[u.charCodeAt(e-1)]<<e%4*2,r=i[u.charCodeAt(e)]>>>6-e%4*2,s=l|r;t[o>>>2]|=s<<24-o%4*8,o++}return A.create(t,o)}}(),y.enc.Base64})},EWH9:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("YXTf"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},EXcs:function(k,D,n){"use strict";var y=function(){return{height:0,opacity:0}},p=function(h){return{height:h.scrollHeight,opacity:1}},x=function(h){return{height:h.offsetHeight}},A=function(h,u){return u.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:y,onEnterStart:y,onAppearActive:p,onEnterActive:p,onLeaveStart:x,onLeaveActive:y,onAppearEnd:A,onEnterEnd:A,onLeaveEnd:A,motionDeadline:500};D.a=m},Eh2f:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("0PSX"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},Em2t:function(k,D,n){var y=n("bahg"),p=n("quyA"),x=n("0JQy");function A(m){return p(m)?x(m):y(m)}k.exports=A},EpBk:function(k,D){function n(y){var p=typeof y;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?y!=="__proto__":y===null}k.exports=n},Ez2D:function(k,D,n){var y=n("bYtY"),p=n("4NO4");function x(A,m){var f=[],h=A.seriesIndex,u;if(h==null||!(u=m.getSeriesByIndex(h)))return{point:[]};var a=u.getData(),i=p.queryDataIndex(a,A);if(i==null||i<0||y.isArray(i))return{point:[]};var t=a.getItemGraphicEl(i),o=u.coordinateSystem;if(u.getTooltipPosition)f=u.getTooltipPosition(i)||[];else if(o&&o.dataToPoint)f=o.dataToPoint(a.getValues(y.map(o.dimensions,function(l){return a.mapDimension(l)}),i,!0))||[];else if(t){var e=t.getBoundingRect().clone();e.applyTransform(t.transform),f=[e.x+e.width/2,e.y+e.height/2]}return{point:f,el:t}}k.exports=x},"F+F2":function(k,D,n){(function(y,p){k.exports=D=p(n("Ib8C"))})(this,function(y){return function(){if(typeof ArrayBuffer!="function")return;var p=y,x=p.lib,A=x.WordArray,m=A.init,f=A.init=function(h){if(h instanceof ArrayBuffer&&(h=new Uint8Array(h)),(h instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&h instanceof Uint8ClampedArray||h instanceof Int16Array||h instanceof Uint16Array||h instanceof Int32Array||h instanceof Uint32Array||h instanceof Float32Array||h instanceof Float64Array)&&(h=new Uint8Array(h.buffer,h.byteOffset,h.byteLength)),h instanceof Uint8Array){for(var u=h.byteLength,a=[],i=0;i<u;i++)a[i>>>2]|=h[i]<<24-i%4*8;m.call(this,a,u)}else m.apply(this,arguments)};f.prototype=A}(),y.lib.WordArray})},F0hE:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("ca2m"),A=n("Qxkt"),m=n("ICMv"),f=x.valueAxis;function h(i,t){return p.defaults({show:t},i)}var u=y.extendComponentModel({type:"radar",optionUpdated:function(){var i=this.get("boundaryGap"),t=this.get("splitNumber"),o=this.get("scale"),e=this.get("axisLine"),l=this.get("axisTick"),r=this.get("axisType"),s=this.get("axisLabel"),c=this.get("name"),d=this.get("name.show"),g=this.get("name.formatter"),v=this.get("nameGap"),b=this.get("triggerEvent"),S=p.map(this.get("indicator")||[],function(E){E.max!=null&&E.max>0&&!E.min?E.min=0:E.min!=null&&E.min<0&&!E.max&&(E.max=0);var C=c;if(E.color!=null&&(C=p.defaults({color:E.color},c)),E=p.merge(p.clone(E),{boundaryGap:i,splitNumber:t,scale:o,axisLine:e,axisTick:l,axisType:r,axisLabel:s,name:E.text,nameLocation:"end",nameGap:v,nameTextStyle:C,triggerEvent:b},!1),d||(E.name=""),typeof g=="string"){var _=E.name;E.name=g.replace("{value}",_!=null?_:"")}else typeof g=="function"&&(E.name=g(E.name,E));var T=p.extend(new A(E,null,this.ecModel),m);return T.mainType="radar",T.componentIndex=this.componentIndex,T},this);this.getIndicatorModels=function(){return S}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:p.merge({lineStyle:{color:"#bbb"}},f.axisLine),axisLabel:h(f.axisLabel,!1),axisTick:h(f.axisTick,!1),axisType:"interval",splitLine:h(f.splitLine,!0),splitArea:h(f.splitArea,!0),indicator:[]}}),a=u;k.exports=a},F5Ls:function(k,D){var n={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function y(p,x){if(p==="china"){var A=n[x.name];if(A){var m=x.center;m[0]+=A[0]/10.5,m[1]+=-A[1]/(10.5/.75)}}}k.exports=y},F7hV:function(k,D,n){var y=n("MBQ8"),p=y.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return this.get("large")?this.get("progressive"):!1},getProgressiveThreshold:function(){var x=this.get("progressiveThreshold"),A=this.get("largeThreshold");return A>x&&(x=A),x},defaultOption:{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1}}});k.exports=p},F9bG:function(k,D,n){var y=n("bYtY"),p=n("ItGF"),x=n("4NO4"),A=x.makeInner,m=A(),f=y.each;function h(l,r,s){if(p.node)return;var c=r.getZr();m(c).records||(m(c).records={}),u(c,r);var d=m(c).records[l]||(m(c).records[l]={});d.handler=s}function u(l,r){if(m(l).initialized)return;m(l).initialized=!0,s("click",y.curry(t,"click")),s("mousemove",y.curry(t,"mousemove")),s("globalout",i);function s(c,d){l.on(c,function(g){var v=o(r);f(m(l).records,function(b){b&&d(b,g,v.dispatchAction)}),a(v.pendings,r)})}}function a(l,r){var s=l.showTip.length,c=l.hideTip.length,d;s?d=l.showTip[s-1]:c&&(d=l.hideTip[c-1]),d&&(d.dispatchAction=null,r.dispatchAction(d))}function i(l,r,s){l.handler("leave",null,s)}function t(l,r,s,c){r.handler(l,s,c)}function o(l){var r={showTip:[],hideTip:[]},s=function(c){var d=r[c.type];d?d.push(c):(c.dispatchAction=s,l.dispatchAction(c))};return{dispatchAction:s,pendings:r}}function e(l,r){if(p.node)return;var s=r.getZr(),c=(m(s).records||{})[l];c&&(m(s).records[l]=null)}D.register=h,D.unregister=e},FBjb:function(k,D,n){var y=n("bYtY"),p=n("oVpE"),x=p.createSymbol,A=n("IwbS"),m=n("OELB"),f=m.parsePercent,h=n("x3X8"),u=h.getDefaultLabel;function a(v,b,S){A.Group.call(this),this.updateData(v,b,S)}var i=a.prototype,t=a.getSymbolSize=function(v,b){var S=v.getItemVisual(b,"symbolSize");return S instanceof Array?S.slice():[+S,+S]};function o(v){return[v[0]/2,v[1]/2]}function e(v,b){this.parent.drift(v,b)}i._createSymbol=function(v,b,S,E,C){this.removeAll();var _=b.getItemVisual(S,"color"),T=x(v,-1,-1,2,2,_,C);T.attr({z2:100,culling:!0,scale:o(E)}),T.drift=e,this._symbolType=v,this.add(T)},i.stopSymbolAnimation=function(v){this.childAt(0).stopAnimation(v)},i.getSymbolPath=function(){return this.childAt(0)},i.getScale=function(){return this.childAt(0).scale},i.highlight=function(){this.childAt(0).trigger("emphasis")},i.downplay=function(){this.childAt(0).trigger("normal")},i.setZ=function(v,b){var S=this.childAt(0);S.zlevel=v,S.z=b},i.setDraggable=function(v){var b=this.childAt(0);b.draggable=v,b.cursor=v?"move":b.cursor},i.updateData=function(v,b,S){this.silent=!1;var E=v.getItemVisual(b,"symbol")||"circle",C=v.hostModel,_=t(v,b),T=E!==this._symbolType;if(T){var w=v.getItemVisual(b,"symbolKeepAspect");this._createSymbol(E,v,b,_,w)}else{var O=this.childAt(0);O.silent=!1,A.updateProps(O,{scale:o(_)},C,b)}if(this._updateCommon(v,b,_,S),T){var O=this.childAt(0),I=S&&S.fadeIn,R={scale:O.scale.slice()};I&&(R.style={opacity:O.style.opacity}),O.scale=[0,0],I&&(O.style.opacity=0),A.initProps(O,R,C,b)}this._seriesModel=C};var l=["itemStyle"],r=["emphasis","itemStyle"],s=["label"],c=["emphasis","label"];i._updateCommon=function(v,b,S,E){var C=this.childAt(0),_=v.hostModel,T=v.getItemVisual(b,"color");C.type!=="image"?C.useStyle({strokeNoScale:!0}):C.setStyle({opacity:null,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var w=E&&E.itemStyle,O=E&&E.hoverItemStyle,I=E&&E.symbolOffset,R=E&&E.labelModel,M=E&&E.hoverLabelModel,F=E&&E.hoverAnimation,P=E&&E.cursorStyle;if(!E||v.hasItemOption){var X=E&&E.itemModel?E.itemModel:v.getItemModel(b);w=X.getModel(l).getItemStyle(["color"]),O=X.getModel(r).getItemStyle(),I=X.getShallow("symbolOffset"),R=X.getModel(s),M=X.getModel(c),F=X.getShallow("hoverAnimation"),P=X.getShallow("cursor")}else O=y.extend({},O);var B=C.style,j=v.getItemVisual(b,"symbolRotate");C.attr("rotation",(j||0)*Math.PI/180||0),I&&C.attr("position",[f(I[0],S[0]),f(I[1],S[1])]),P&&C.attr("cursor",P),C.setColor(T,E&&E.symbolInnerColor),C.setStyle(w);var W=v.getItemVisual(b,"opacity");W!=null&&(B.opacity=W);var z=v.getItemVisual(b,"liftZ"),V=C.__z2Origin;z!=null?V==null&&(C.__z2Origin=C.z2,C.z2+=z):V!=null&&(C.z2=V,C.__z2Origin=null);var Q=E&&E.useNameLabel;A.setLabelStyle(B,O,R,M,{labelFetcher:_,labelDataIndex:b,defaultText:G,isRectText:!0,autoColor:T});function G(ee,ce){return Q?v.getName(ee):u(v,ee)}C.__symbolOriginalScale=o(S),C.hoverStyle=O,C.highDownOnUpdate=F&&_.isAnimationEnabled()?d:null,A.setHoverStyle(C)};function d(v,b){if(this.incremental||this.useHoverLayer)return;if(b==="emphasis"){var S=this.__symbolOriginalScale,E=S[1]/S[0],C={scale:[Math.max(S[0]*1.1,S[0]+3),Math.max(S[1]*1.1,S[1]+3*E)]};this.animateTo(C,400,"elasticOut")}else b==="normal"&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}i.fadeOut=function(v,b){var S=this.childAt(0);this.silent=S.silent=!0,!(b&&b.keepLabel)&&(S.style.text=null),A.updateProps(S,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,v)},y.inherits(a,A.Group);var g=a;k.exports=g},FGaS:function(k,D,n){var y=n("ProS"),p=n("IwbS"),x=n("bYtY"),A=n("oVpE");function m(h){return x.isArray(h)||(h=[+h,+h]),h}var f=y.extendChartView({type:"radar",render:function(h,u,a){var i=h.coordinateSystem,t=this.group,o=h.getData(),e=this._data;function l(c,d){var g=c.getItemVisual(d,"symbol")||"circle",v=c.getItemVisual(d,"color");if(g==="none")return;var b=m(c.getItemVisual(d,"symbolSize")),S=A.createSymbol(g,-1,-1,2,2,v);return S.attr({style:{strokeNoScale:!0},z2:100,scale:[b[0]/2,b[1]/2]}),S}function r(c,d,g,v,b,S){g.removeAll();for(var E=0;E<d.length-1;E++){var C=l(v,b);C&&(C.__dimIdx=E,c[E]?(C.attr("position",c[E]),p[S?"initProps":"updateProps"](C,{position:d[E]},h,b)):C.attr("position",d[E]),g.add(C))}}function s(c){return x.map(c,function(d){return[i.cx,i.cy]})}o.diff(e).add(function(c){var d=o.getItemLayout(c);if(!d)return;var g=new p.Polygon,v=new p.Polyline,b={shape:{points:d}};g.shape.points=s(d),v.shape.points=s(d),p.initProps(g,b,h,c),p.initProps(v,b,h,c);var S=new p.Group,E=new p.Group;S.add(v),S.add(g),S.add(E),r(v.shape.points,d,E,o,c,!0),o.setItemGraphicEl(c,S)}).update(function(c,d){var g=e.getItemGraphicEl(d),v=g.childAt(0),b=g.childAt(1),S=g.childAt(2),E={shape:{points:o.getItemLayout(c)}};if(!E.shape.points)return;r(v.shape.points,E.shape.points,S,o,c,!1),p.updateProps(v,E,h),p.updateProps(b,E,h),o.setItemGraphicEl(c,g)}).remove(function(c){t.remove(e.getItemGraphicEl(c))}).execute(),o.eachItemGraphicEl(function(c,d){var g=o.getItemModel(d),v=c.childAt(0),b=c.childAt(1),S=c.childAt(2),E=o.getItemVisual(d,"color");t.add(c),v.useStyle(x.defaults(g.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:E})),v.hoverStyle=g.getModel("emphasis.lineStyle").getLineStyle();var C=g.getModel("areaStyle"),_=g.getModel("emphasis.areaStyle"),T=C.isEmpty()&&C.parentModel.isEmpty(),w=_.isEmpty()&&_.parentModel.isEmpty();w=w&&T,b.ignore=T,b.useStyle(x.defaults(C.getAreaStyle(),{fill:E,opacity:.7})),b.hoverStyle=_.getAreaStyle();var O=g.getModel("itemStyle").getItemStyle(["color"]),I=g.getModel("emphasis.itemStyle").getItemStyle(),R=g.getModel("label"),M=g.getModel("emphasis.label");S.eachChild(function(F){F.setStyle(O),F.hoverStyle=x.clone(I);var P=o.get(o.dimensions[F.__dimIdx],d);(P==null||isNaN(P))&&(P=""),p.setLabelStyle(F.style,F.hoverStyle,R,M,{labelFetcher:o.hostModel,labelDataIndex:d,labelDimIndex:F.__dimIdx,defaultText:P,autoColor:E,isRectText:!0})}),c.highDownOnUpdate=function(F,P){b.attr("ignore",P==="emphasis"?w:T)},p.setHoverStyle(c)}),this._data=o},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});k.exports=f},FJo9:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("8txm"),A=n.n(x),m=n("MXD1")},FNN5:function(k,D,n){var y=n("bYtY"),p=n("IwbS"),x=n("+rIm"),A=n("Znkb"),m=["axisLine","axisTickLabel","axisName"],f=["splitLine","splitArea","minorSplitLine"],h=A.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(a,i){if(this.group.removeAll(),!a.get("show"))return;var t=a.axis,o=t.polar,e=o.getAngleAxis(),l=t.getTicksCoords(),r=t.getMinorTicksCoords(),s=e.getExtent()[0],c=t.getExtent(),d=u(o,a,s),g=new x(a,d);y.each(m,g.add,g),this.group.add(g.getGroup()),y.each(f,function(v){a.get(v+".show")&&!t.scale.isBlank()&&this["_"+v](a,o,s,c,l,r)},this)},_splitLine:function(a,i,t,o,e){var l=a.getModel("splitLine"),r=l.getModel("lineStyle"),s=r.get("color"),c=0;s=s instanceof Array?s:[s];for(var d=[],g=0;g<e.length;g++){var v=c++%s.length;d[v]=d[v]||[],d[v].push(new p.Circle({shape:{cx:i.cx,cy:i.cy,r:e[g].coord}}))}for(var g=0;g<d.length;g++)this.group.add(p.mergePath(d[g],{style:y.defaults({stroke:s[g%s.length],fill:null},r.getLineStyle()),silent:!0}))},_minorSplitLine:function(a,i,t,o,e,l){if(!l.length)return;for(var r=a.getModel("minorSplitLine"),s=r.getModel("lineStyle"),c=[],d=0;d<l.length;d++)for(var g=0;g<l[d].length;g++)c.push(new p.Circle({shape:{cx:i.cx,cy:i.cy,r:l[d][g].coord}}));this.group.add(p.mergePath(c,{style:y.defaults({fill:null},s.getLineStyle()),silent:!0}))},_splitArea:function(a,i,t,o,e){if(!e.length)return;var l=a.getModel("splitArea"),r=l.getModel("areaStyle"),s=r.get("color"),c=0;s=s instanceof Array?s:[s];for(var d=[],g=e[0].coord,v=1;v<e.length;v++){var b=c++%s.length;d[b]=d[b]||[],d[b].push(new p.Sector({shape:{cx:i.cx,cy:i.cy,r0:g,r:e[v].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),g=e[v].coord}for(var v=0;v<d.length;v++)this.group.add(p.mergePath(d[v],{style:y.defaults({fill:s[v%s.length]},r.getAreaStyle()),silent:!0}))}});function u(a,i,t){return{position:[a.cx,a.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:i.getModel("axisLabel").get("rotate"),z2:1}}k.exports=h},FRVV:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("fk+n"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},FTAc:function(k,D,n){"use strict";n.d(D,"a",function(){return x});var y=n("q1tI"),p=n.n(y),x=y.createContext(null)},FUi9:function(k,D,n){var y=n("bYtY"),p=n("MwEJ"),x=n("aX7z"),A=n("ICMv"),m=n("Qxkt"),f=n("+TT/"),h=f.getLayoutRect;D.getLayoutRect=f.getLayoutRect;var u=n("7hqr"),a=u.enableDataStack,i=u.isDimensionStacked,t=u.getStackedDimension,o=n("hi0g");D.completeDimensions=o;var e=n("sdST");D.createDimensions=e;var l=n("oVpE");D.createSymbol=l.createSymbol;function r(g){return p(g.getSource(),g)}var s={isDimensionStacked:i,enableDataStack:a,getStackedDimension:t};function c(g,v){var b=v;m.isInstance(v)||(b=new m(v),y.mixin(b,A));var S=x.createScaleByModel(b);return S.setExtent(g[0],g[1]),x.niceScaleExtent(S,b),S}function d(g){y.mixin(g,A)}D.createList=r,D.dataStack=s,D.createScale=c,D.mixinAxisModelCommonMethods=d},"Fa/5":function(k,D,n){var y=n("ProS");n("y2l5"),n("q/+u");var p=n("f5Yq"),x=n("h8O9");n("Ae16"),y.registerVisual(p("scatter","circle")),y.registerLayout(x("scatter"))},FhB9:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};D.default=y},Fofx:function(k,D){var n=typeof Float32Array=="undefined"?Array:Float32Array;function y(){var i=new n(6);return p(i),i}function p(i){return i[0]=1,i[1]=0,i[2]=0,i[3]=1,i[4]=0,i[5]=0,i}function x(i,t){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3],i[4]=t[4],i[5]=t[5],i}function A(i,t,o){var e=t[0]*o[0]+t[2]*o[1],l=t[1]*o[0]+t[3]*o[1],r=t[0]*o[2]+t[2]*o[3],s=t[1]*o[2]+t[3]*o[3],c=t[0]*o[4]+t[2]*o[5]+t[4],d=t[1]*o[4]+t[3]*o[5]+t[5];return i[0]=e,i[1]=l,i[2]=r,i[3]=s,i[4]=c,i[5]=d,i}function m(i,t,o){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3],i[4]=t[4]+o[0],i[5]=t[5]+o[1],i}function f(i,t,o){var e=t[0],l=t[2],r=t[4],s=t[1],c=t[3],d=t[5],g=Math.sin(o),v=Math.cos(o);return i[0]=e*v+s*g,i[1]=-e*g+s*v,i[2]=l*v+c*g,i[3]=-l*g+v*c,i[4]=v*r+g*d,i[5]=v*d-g*r,i}function h(i,t,o){var e=o[0],l=o[1];return i[0]=t[0]*e,i[1]=t[1]*l,i[2]=t[2]*e,i[3]=t[3]*l,i[4]=t[4]*e,i[5]=t[5]*l,i}function u(i,t){var o=t[0],e=t[2],l=t[4],r=t[1],s=t[3],c=t[5],d=o*s-r*e;return d?(d=1/d,i[0]=s*d,i[1]=-r*d,i[2]=-e*d,i[3]=o*d,i[4]=(e*c-s*l)*d,i[5]=(r*l-o*c)*d,i):null}function a(i){var t=y();return x(t,i),t}D.create=y,D.identity=p,D.copy=x,D.mul=A,D.translate=m,D.rotate=f,D.scale=h,D.invert=u,D.clone=a},Fv0C:function(k,D,n){"use strict";function y(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(s){return typeof s}:y=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},y(l)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var p=a(n("Lo0S")),x=n("vewr"),A=a(n("8CQX")),m=h(n("mHUz")),f=a(n("GdRQ"));function h(l){return l&&l.__esModule?l:{default:l}}function u(){if(typeof WeakMap!="function")return null;var l=new WeakMap;return u=function(){return l},l}function a(l){if(l&&l.__esModule)return l;if(l===null||y(l)!=="object"&&typeof l!="function")return{default:l};var r=u();if(r&&r.has(l))return r.get(l);var s={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in l)if(Object.prototype.hasOwnProperty.call(l,d)){var g=c?Object.getOwnPropertyDescriptor(l,d):null;g&&(g.get||g.set)?Object.defineProperty(s,d,g):s[d]=l[d]}return s.default=l,r&&r.set(l,s),s}function i(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}function t(l,r){for(var s=0;s<r.length;s++){var c=r[s];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(l,c.key,c)}}function o(l,r,s){return r&&t(l.prototype,r),s&&t(l,s),l}var e=function(){function l(r){i(this,l),this._target=r||null,this._keyDownList={},this._pendingKey=null,this._altGrArmed=!1,this._eventHandlers={keyup:this._handleKeyUp.bind(this),keydown:this._handleKeyDown.bind(this),keypress:this._handleKeyPress.bind(this),blur:this._allKeysUp.bind(this),checkalt:this._checkAlt.bind(this)},this.onkeyevent=function(){}}return o(l,[{key:"_sendKeyEvent",value:function(s,c,d){if(d)this._keyDownList[c]=s;else{if(!(c in this._keyDownList))return;delete this._keyDownList[c]}p.Debug("onkeyevent "+(d?"down":"up")+", keysym: "+s,", code: "+c),this.onkeyevent(s,c,d)}},{key:"_getKeyCode",value:function(s){var c=A.getKeycode(s);if(c!=="Unidentified")return c;if(s.keyCode&&s.type!=="keypress"&&s.keyCode!==229)return"Platform"+s.keyCode;if(s.keyIdentifier){if(s.keyIdentifier.substr(0,2)!=="U+")return s.keyIdentifier;var d=parseInt(s.keyIdentifier.substr(2),16),g=String.fromCharCode(d).toUpperCase();return"Platform"+g.charCodeAt()}return"Unidentified"}},{key:"_handleKeyDown",value:function(s){var c=this._getKeyCode(s),d=A.getKeysym(s);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),c==="AltRight"&&s.timeStamp-this._altGrCtrlTime<50?d=m.default.XK_ISO_Level3_Shift:this._sendKeyEvent(m.default.XK_Control_L,"ControlLeft",!0)),c==="Unidentified"){d&&(this._sendKeyEvent(d,c,!0),this._sendKeyEvent(d,c,!1)),(0,x.stopEvent)(s);return}if(f.isMac()||f.isIOS())switch(d){case m.default.XK_Super_L:d=m.default.XK_Alt_L;break;case m.default.XK_Super_R:d=m.default.XK_Super_L;break;case m.default.XK_Alt_L:d=m.default.XK_Mode_switch;break;case m.default.XK_Alt_R:d=m.default.XK_ISO_Level3_Shift;break}if(c in this._keyDownList&&(d=this._keyDownList[c]),(f.isMac()||f.isIOS())&&c==="CapsLock"){this._sendKeyEvent(m.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(m.default.XK_Caps_Lock,"CapsLock",!1),(0,x.stopEvent)(s);return}if(!d&&(!s.key||f.isIE()||f.isEdge())){this._pendingKey=c,setTimeout(this._handleKeyPressTimeout.bind(this),10,s);return}if(this._pendingKey=null,(0,x.stopEvent)(s),c==="ControlLeft"&&f.isWindows()&&!("ControlLeft"in this._keyDownList)){this._altGrArmed=!0,this._altGrTimeout=setTimeout(this._handleAltGrTimeout.bind(this),100),this._altGrCtrlTime=s.timeStamp;return}this._sendKeyEvent(d,c,!0)}},{key:"_handleKeyPress",value:function(s){if((0,x.stopEvent)(s),this._pendingKey===null)return;var c=this._getKeyCode(s),d=A.getKeysym(s);if(c!=="Unidentified"&&c!=this._pendingKey)return;if(c=this._pendingKey,this._pendingKey=null,!d){p.Info("keypress with no keysym:",s);return}this._sendKeyEvent(d,c,!0)}},{key:"_handleKeyPressTimeout",value:function(s){if(this._pendingKey===null)return;var c,d=this._pendingKey;if(this._pendingKey=null,s.keyCode>=48&&s.keyCode<=57)c=s.keyCode;else if(s.keyCode>=65&&s.keyCode<=90){var g=String.fromCharCode(s.keyCode);s.shiftKey?g=g.toUpperCase():g=g.toLowerCase(),c=g.charCodeAt()}else c=0;this._sendKeyEvent(c,d,!0)}},{key:"_handleKeyUp",value:function(s){(0,x.stopEvent)(s);var c=this._getKeyCode(s);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(m.default.XK_Control_L,"ControlLeft",!0)),(f.isMac()||f.isIOS())&&c==="CapsLock"){this._sendKeyEvent(m.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(m.default.XK_Caps_Lock,"CapsLock",!1);return}this._sendKeyEvent(this._keyDownList[c],c,!1),f.isWindows()&&(c==="ShiftLeft"||c==="ShiftRight")&&("ShiftRight"in this._keyDownList&&this._sendKeyEvent(this._keyDownList.ShiftRight,"ShiftRight",!1),"ShiftLeft"in this._keyDownList&&this._sendKeyEvent(this._keyDownList.ShiftLeft,"ShiftLeft",!1))}},{key:"_handleAltGrTimeout",value:function(){this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(m.default.XK_Control_L,"ControlLeft",!0)}},{key:"_allKeysUp",value:function(){p.Debug(">> Keyboard.allKeysUp");for(var s in this._keyDownList)this._sendKeyEvent(this._keyDownList[s],s,!1);p.Debug("<< Keyboard.allKeysUp")}},{key:"_checkAlt",value:function(s){if(s.skipCheckAlt)return;if(s.altKey)return;var c=this._target,d=this._keyDownList;["AltLeft","AltRight"].forEach(function(g){if(!(g in d))return;var v=new KeyboardEvent("keyup",{key:d[g],code:g});v.skipCheckAlt=!0,c.dispatchEvent(v)})}},{key:"grab",value:function(){if(this._target.addEventListener("keydown",this._eventHandlers.keydown),this._target.addEventListener("keyup",this._eventHandlers.keyup),this._target.addEventListener("keypress",this._eventHandlers.keypress),window.addEventListener("blur",this._eventHandlers.blur),f.isWindows()&&f.isFirefox()){var s=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(c){return document.addEventListener(c,s,{capture:!0,passive:!0})})}}},{key:"ungrab",value:function(){if(f.isWindows()&&f.isFirefox()){var s=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(c){return document.removeEventListener(c,s)})}this._target.removeEventListener("keydown",this._eventHandlers.keydown),this._target.removeEventListener("keyup",this._eventHandlers.keyup),this._target.removeEventListener("keypress",this._eventHandlers.keypress),window.removeEventListener("blur",this._eventHandlers.blur),this._allKeysUp()}}]),l}();D.default=e},FxDU:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.createSensor=void 0;var y=n("QO+J"),p=n("j5sG"),x=typeof ResizeObserver!="undefined"?p.createSensor:y.createSensor;D.createSensor=x},GIiI:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="PoweroffOutlined";var h=D.a=p.forwardRef(f)},GMDS:function(k,D,n){var y=n("bYtY"),p=n("4NgU"),x=n("jkPA"),A=p.prototype,m=p.extend({type:"ordinal",init:function(h,u){(!h||y.isArray(h))&&(h=new x({categories:h})),this._ordinalMeta=h,this._extent=u||[0,h.categories.length-1]},parse:function(h){return typeof h=="string"?this._ordinalMeta.getOrdinal(h):Math.round(h)},contain:function(h){return h=this.parse(h),A.contain.call(this,h)&&this._ordinalMeta.categories[h]!=null},normalize:function(h){return A.normalize.call(this,this.parse(h))},scale:function(h){return Math.round(A.scale.call(this,h))},getTicks:function(){for(var h=[],u=this._extent,a=u[0];a<=u[1];)h.push(a),a++;return h},getLabel:function(h){if(!this.isBlank())return this._ordinalMeta.categories[h]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(h,u){this.unionExtent(h.getApproximateExtent(u))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:y.noop,niceExtent:y.noop});m.create=function(){return new m};var f=m;k.exports=f},GQ8N:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.toUnsigned32bit=y,D.toSigned32bit=p;function y(x){return x>>>0}function p(x){return x|0}},GRuw:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("lPiR"))})(this,function(y){return function(){var p=y,x=p.lib,A=x.WordArray,m=p.algo,f=m.SHA256,h=m.SHA224=f.extend({_doReset:function(){this._hash=new A.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var a=f._doFinalize.call(this);return a.sigBytes-=4,a}});p.SHA224=f._createHelper(h),p.HmacSHA224=f._createHmacHelper(h)}(),y.SHA224})},GUcZ:function(k,D,n){"use strict";var y=n("fWQN"),p=n("mtLc"),x=function(){function Xt(){Object(y.a)(this,Xt)}return Object(p.a)(Xt,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(Fe,Pe){return Fe.__proto__=Pe,Fe},Object.assign=Object.assign||function(Fe){if(Fe==null)throw new TypeError("Cannot convert undefined or null to object");for(var Pe=Object(Fe),Be=1;Be<arguments.length;Be++){var nt=arguments[Be];if(nt!=null)for(var vt in nt)nt.hasOwnProperty(vt)&&(Pe[vt]=nt[vt])}return Pe},typeof self.Promise!="function"&&n("E2g8").polyfill()}}]),Xt}();x.install();var A=x,m=n("+qE3"),f=n.n(m),h=function(){function Xt(){Object(y.a)(this,Xt)}return Object(p.a)(Xt,null,[{key:"e",value:function(Fe,Pe){(!Fe||Xt.FORCE_GLOBAL_TAG)&&(Fe=Xt.GLOBAL_TAG);var Be="[".concat(Fe,"] > ").concat(Pe);if(Xt.ENABLE_CALLBACK&&Xt.emitter.emit("log","error",Be),!Xt.ENABLE_ERROR)return;console.error?console.error(Be):console.warn?console.warn(Be):console.log(Be)}},{key:"i",value:function(Fe,Pe){(!Fe||Xt.FORCE_GLOBAL_TAG)&&(Fe=Xt.GLOBAL_TAG);var Be="[".concat(Fe,"] > ").concat(Pe);if(Xt.ENABLE_CALLBACK&&Xt.emitter.emit("log","info",Be),!Xt.ENABLE_INFO)return;console.info?console.info(Be):console.log(Be)}},{key:"w",value:function(Fe,Pe){(!Fe||Xt.FORCE_GLOBAL_TAG)&&(Fe=Xt.GLOBAL_TAG);var Be="[".concat(Fe,"] > ").concat(Pe);if(Xt.ENABLE_CALLBACK&&Xt.emitter.emit("log","warn",Be),!Xt.ENABLE_WARN)return;console.warn?console.warn(Be):console.log(Be)}},{key:"d",value:function(Fe,Pe){(!Fe||Xt.FORCE_GLOBAL_TAG)&&(Fe=Xt.GLOBAL_TAG);var Be="[".concat(Fe,"] > ").concat(Pe);if(Xt.ENABLE_CALLBACK&&Xt.emitter.emit("log","debug",Be),!Xt.ENABLE_DEBUG)return;console.debug?console.debug(Be):console.log(Be)}},{key:"v",value:function(Fe,Pe){(!Fe||Xt.FORCE_GLOBAL_TAG)&&(Fe=Xt.GLOBAL_TAG);var Be="[".concat(Fe,"] > ").concat(Pe);if(Xt.ENABLE_CALLBACK&&Xt.emitter.emit("log","verbose",Be),!Xt.ENABLE_VERBOSE)return;console.log(Be)}}]),Xt}();h.GLOBAL_TAG="flv.js",h.FORCE_GLOBAL_TAG=!1,h.ENABLE_ERROR=!0,h.ENABLE_INFO=!0,h.ENABLE_WARN=!0,h.ENABLE_DEBUG=!0,h.ENABLE_VERBOSE=!0,h.ENABLE_CALLBACK=!1,h.emitter=new f.a;var u=h,a=function(){function Xt(){Object(y.a)(this,Xt),this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return Object(p.a)(Xt,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(Fe){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=Fe,this._totalBytes+=Fe):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=Fe,this._totalBytes+=Fe):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=Fe,this._totalBytes+=Fe,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var Fe=(this._now()-this._lastCheckpoint)/1e3;return Fe==0&&(Fe=1),this._intervalBytes/Fe/1024}},{key:"lastSecondKBps",get:function(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}},{key:"averageKBps",get:function(){var Fe=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/Fe/1024}}]),Xt}(),i=a,t=n("yKVA"),o=n("879j"),e=function(){function Xt(_t){Object(y.a)(this,Xt),this._message=_t}return Object(p.a)(Xt,[{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}},{key:"toString",value:function(){return this.name+": "+this.message}}]),Xt}(),l=function(Xt){Object(t.a)(Fe,Xt);var _t=Object(o.a)(Fe);function Fe(Pe){return Object(y.a)(this,Fe),_t.call(this,Pe)}return Object(p.a)(Fe,[{key:"name",get:function(){return"IllegalStateException"}}]),Fe}(e),r=function(Xt){Object(t.a)(Fe,Xt);var _t=Object(o.a)(Fe);function Fe(Pe){return Object(y.a)(this,Fe),_t.call(this,Pe)}return Object(p.a)(Fe,[{key:"name",get:function(){return"InvalidArgumentException"}}]),Fe}(e),s=function(Xt){Object(t.a)(Fe,Xt);var _t=Object(o.a)(Fe);function Fe(Pe){return Object(y.a)(this,Fe),_t.call(this,Pe)}return Object(p.a)(Fe,[{key:"name",get:function(){return"NotImplementedException"}}]),Fe}(e),c={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},d={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},g=function(){function Xt(_t){Object(y.a)(this,Xt),this._type=_t||"undefined",this._status=c.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return Object(p.a)(Xt,[{key:"destroy",value:function(){this._status=c.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===c.kConnecting||this._status===c.kBuffering}},{key:"type",get:function(){return this._type}},{key:"status",get:function(){return this._status}},{key:"needStashBuffer",get:function(){return this._needStash}},{key:"onContentLengthKnown",get:function(){return this._onContentLengthKnown},set:function(Fe){this._onContentLengthKnown=Fe}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(Fe){this._onURLRedirect=Fe}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(Fe){this._onDataArrival=Fe}},{key:"onError",get:function(){return this._onError},set:function(Fe){this._onError=Fe}},{key:"onComplete",get:function(){return this._onComplete},set:function(Fe){this._onComplete=Fe}},{key:"open",value:function(Fe,Pe){throw new s("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new s("Unimplemented abstract function!")}}]),Xt}(),v=n("w4Tj"),b=n("oZsa"),S={};function E(){var Xt=self.navigator.userAgent.toLowerCase(),_t=/(edge)\/([\w.]+)/.exec(Xt)||/(opr)[\/]([\w.]+)/.exec(Xt)||/(chrome)[ \/]([\w.]+)/.exec(Xt)||/(iemobile)[\/]([\w.]+)/.exec(Xt)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Xt)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Xt)||/(webkit)[ \/]([\w.]+)/.exec(Xt)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(Xt)||/(msie) ([\w.]+)/.exec(Xt)||Xt.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(Xt)||Xt.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(Xt)||[],Fe=/(ipad)/.exec(Xt)||/(ipod)/.exec(Xt)||/(windows phone)/.exec(Xt)||/(iphone)/.exec(Xt)||/(kindle)/.exec(Xt)||/(android)/.exec(Xt)||/(windows)/.exec(Xt)||/(mac)/.exec(Xt)||/(linux)/.exec(Xt)||/(cros)/.exec(Xt)||[],Pe={browser:_t[5]||_t[3]||_t[1]||"",version:_t[2]||_t[4]||"0",majorVersion:_t[4]||_t[2]||"0",platform:Fe[0]||""},Be={};if(Pe.browser){Be[Pe.browser]=!0;var nt=Pe.majorVersion.split(".");Be.version={major:parseInt(Pe.majorVersion,10),string:Pe.version},nt.length>1&&(Be.version.minor=parseInt(nt[1],10)),nt.length>2&&(Be.version.build=parseInt(nt[2],10))}if(Pe.platform&&(Be[Pe.platform]=!0),(Be.chrome||Be.opr||Be.safari)&&(Be.webkit=!0),Be.rv||Be.iemobile){Be.rv&&delete Be.rv;var vt="msie";Pe.browser=vt,Be[vt]=!0}if(Be.edge){delete Be.edge;var ar="msedge";Pe.browser=ar,Be[ar]=!0}if(Be.opr){var kr="opera";Pe.browser=kr,Be[kr]=!0}if(Be.safari&&Be.android){var mn="android";Pe.browser=mn,Be[mn]=!0}Be.name=Pe.browser,Be.platform=Pe.platform;for(var Zn in S)S.hasOwnProperty(Zn)&&delete S[Zn];Object.assign(S,Be)}E();var C=S,_=function(Xt){Object(t.a)(Fe,Xt);var _t=Object(o.a)(Fe);function Fe(Pe,Be){var nt;return Object(y.a)(this,Fe),nt=_t.call(this,"fetch-stream-loader"),nt.TAG="FetchStreamLoader",nt._seekHandler=Pe,nt._config=Be,nt._needStash=!0,nt._requestAbort=!1,nt._contentLength=null,nt._receivedLength=0,nt}return Object(p.a)(Fe,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),Object(v.a)(Object(b.a)(Fe.prototype),"destroy",this).call(this)}},{key:"open",value:function(Be,nt){var vt=this;this._dataSource=Be,this._range=nt;var ar=Be.url;this._config.reuseRedirectedURL&&Be.redirectedURL!=null&&(ar=Be.redirectedURL);var kr=this._seekHandler.getConfig(ar,nt),mn=new self.Headers;if(typeof kr.headers=="object"){var Zn=kr.headers;for(var ni in Zn)Zn.hasOwnProperty(ni)&&mn.append(ni,Zn[ni])}var ur={method:"GET",headers:mn,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var Nt in this._config.headers)mn.append(Nt,this._config.headers[Nt]);Be.cors===!1&&(ur.mode="same-origin"),Be.withCredentials&&(ur.credentials="include"),Be.referrerPolicy&&(ur.referrerPolicy=Be.referrerPolicy),this._status=c.kConnecting,self.fetch(kr.url,ur).then(function(bt){if(vt._requestAbort){vt._requestAbort=!1,vt._status=c.kIdle;return}if(bt.ok&&bt.status>=200&&bt.status<=299){if(bt.url!==kr.url&&vt._onURLRedirect){var gr=vt._seekHandler.removeURLParameters(bt.url);vt._onURLRedirect(gr)}var Yt=bt.headers.get("Content-Length");return Yt!=null&&(vt._contentLength=parseInt(Yt),vt._contentLength!==0&&(vt._onContentLengthKnown&&vt._onContentLengthKnown(vt._contentLength))),vt._pump.call(vt,bt.body.getReader())}else if(vt._status=c.kError,vt._onError)vt._onError(d.HTTP_STATUS_CODE_INVALID,{code:bt.status,msg:bt.statusText});else throw new e("FetchStreamLoader: Http code invalid, "+bt.status+" "+bt.statusText)}).catch(function(bt){if(vt._status=c.kError,vt._onError)vt._onError(d.EXCEPTION,{code:-1,msg:bt.message});else throw bt})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(Be){var nt=this;return Be.read().then(function(vt){if(vt.done)if(nt._contentLength!==null&&nt._receivedLength<nt._contentLength){nt._status=c.kError;var ar=d.EARLY_EOF,kr={code:-1,msg:"Fetch stream meet Early-EOF"};if(nt._onError)nt._onError(ar,kr);else throw new e(kr.msg)}else nt._status=c.kComplete,nt._onComplete&&nt._onComplete(nt._range.from,nt._range.from+nt._receivedLength-1);else{if(nt._requestAbort===!0)return nt._requestAbort=!1,nt._status=c.kComplete,Be.cancel();nt._status=c.kBuffering;var mn=vt.value.buffer,Zn=nt._range.from+nt._receivedLength;nt._receivedLength+=mn.byteLength,nt._onDataArrival&&nt._onDataArrival(mn,Zn,nt._receivedLength),nt._pump(Be)}}).catch(function(vt){if(vt.code===11&&C.msedge)return;nt._status=c.kError;var ar=0,kr=null;if((vt.code===19||vt.message==="network error")&&(nt._contentLength===null||nt._contentLength!==null&&nt._receivedLength<nt._contentLength)?(ar=d.EARLY_EOF,kr={code:vt.code,msg:"Fetch stream meet Early-EOF"}):(ar=d.EXCEPTION,kr={code:vt.code,msg:vt.message}),nt._onError)nt._onError(ar,kr);else throw new e(kr.msg)})}}],[{key:"isSupported",value:function(){try{var Be=C.msedge&&C.version.minor>=15048,nt=C.msedge?Be:!0;return self.fetch&&self.ReadableStream&&nt}catch(vt){return!1}}}]),Fe}(g),T=_,w=function(Xt){Object(t.a)(Fe,Xt);var _t=Object(o.a)(Fe);function Fe(Pe,Be){var nt;return Object(y.a)(this,Fe),nt=_t.call(this,"xhr-moz-chunked-loader"),nt.TAG="MozChunkedLoader",nt._seekHandler=Pe,nt._config=Be,nt._needStash=!0,nt._xhr=null,nt._requestAbort=!1,nt._contentLength=null,nt._receivedLength=0,nt}return Object(p.a)(Fe,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),Object(v.a)(Object(b.a)(Fe.prototype),"destroy",this).call(this)}},{key:"open",value:function(Be,nt){this._dataSource=Be,this._range=nt;var vt=Be.url;this._config.reuseRedirectedURL&&Be.redirectedURL!=null&&(vt=Be.redirectedURL);var ar=this._seekHandler.getConfig(vt,nt);this._requestURL=ar.url;var kr=this._xhr=new XMLHttpRequest;if(kr.open("GET",ar.url,!0),kr.responseType="moz-chunked-arraybuffer",kr.onreadystatechange=this._onReadyStateChange.bind(this),kr.onprogress=this._onProgress.bind(this),kr.onloadend=this._onLoadEnd.bind(this),kr.onerror=this._onXhrError.bind(this),Be.withCredentials&&(kr.withCredentials=!0),typeof ar.headers=="object"){var mn=ar.headers;for(var Zn in mn)mn.hasOwnProperty(Zn)&&kr.setRequestHeader(Zn,mn[Zn])}if(typeof this._config.headers=="object"){var ni=this._config.headers;for(var ur in ni)ni.hasOwnProperty(ur)&&kr.setRequestHeader(ur,ni[ur])}this._status=c.kConnecting,kr.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=c.kComplete}},{key:"_onReadyStateChange",value:function(Be){var nt=Be.target;if(nt.readyState===2){if(nt.responseURL!=null&&nt.responseURL!==this._requestURL&&this._onURLRedirect){var vt=this._seekHandler.removeURLParameters(nt.responseURL);this._onURLRedirect(vt)}if(nt.status!==0&&(nt.status<200||nt.status>299))if(this._status=c.kError,this._onError)this._onError(d.HTTP_STATUS_CODE_INVALID,{code:nt.status,msg:nt.statusText});else throw new e("MozChunkedLoader: Http code invalid, "+nt.status+" "+nt.statusText);else this._status=c.kBuffering}}},{key:"_onProgress",value:function(Be){if(this._status===c.kError)return;this._contentLength===null&&(Be.total!==null&&Be.total!==0&&(this._contentLength=Be.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)));var nt=Be.target.response,vt=this._range.from+this._receivedLength;this._receivedLength+=nt.byteLength,this._onDataArrival&&this._onDataArrival(nt,vt,this._receivedLength)}},{key:"_onLoadEnd",value:function(Be){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===c.kError)return;this._status=c.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}},{key:"_onXhrError",value:function(Be){this._status=c.kError;var nt=0,vt=null;if(this._contentLength&&Be.loaded<this._contentLength?(nt=d.EARLY_EOF,vt={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(nt=d.EXCEPTION,vt={code:-1,msg:Be.constructor.name+" "+Be.type}),this._onError)this._onError(nt,vt);else throw new e(vt.msg)}}],[{key:"isSupported",value:function(){try{var Be=new XMLHttpRequest;return Be.open("GET","https://example.com",!0),Be.responseType="moz-chunked-arraybuffer",Be.responseType==="moz-chunked-arraybuffer"}catch(nt){return u.w("MozChunkedLoader",nt.message),!1}}}]),Fe}(g),O=w,I=function(Xt){Object(t.a)(Fe,Xt);var _t=Object(o.a)(Fe);function Fe(Pe,Be){var nt;return Object(y.a)(this,Fe),nt=_t.call(this,"xhr-msstream-loader"),nt.TAG="MSStreamLoader",nt._seekHandler=Pe,nt._config=Be,nt._needStash=!0,nt._xhr=null,nt._reader=null,nt._totalRange=null,nt._currentRange=null,nt._currentRequestURL=null,nt._currentRedirectedURL=null,nt._contentLength=null,nt._receivedLength=0,nt._bufferLimit=16*1024*1024,nt._lastTimeBufferSize=0,nt._isReconnecting=!1,nt}return Object(p.a)(Fe,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._reader&&(this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr=null),Object(v.a)(Object(b.a)(Fe.prototype),"destroy",this).call(this)}},{key:"open",value:function(Be,nt){this._internalOpen(Be,nt,!1)}},{key:"_internalOpen",value:function(Be,nt,vt){this._dataSource=Be,vt?this._currentRange=nt:this._totalRange=nt;var ar=Be.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?ar=this._currentRedirectedURL:Be.redirectedURL!=null&&(ar=Be.redirectedURL));var kr=this._seekHandler.getConfig(ar,nt);this._currentRequestURL=kr.url;var mn=this._reader=new self.MSStreamReader;mn.onprogress=this._msrOnProgress.bind(this),mn.onload=this._msrOnLoad.bind(this),mn.onerror=this._msrOnError.bind(this);var Zn=this._xhr=new XMLHttpRequest;if(Zn.open("GET",kr.url,!0),Zn.responseType="ms-stream",Zn.onreadystatechange=this._xhrOnReadyStateChange.bind(this),Zn.onerror=this._xhrOnError.bind(this),Be.withCredentials&&(Zn.withCredentials=!0),typeof kr.headers=="object"){var ni=kr.headers;for(var ur in ni)ni.hasOwnProperty(ur)&&Zn.setRequestHeader(ur,ni[ur])}if(typeof this._config.headers=="object"){var Nt=this._config.headers;for(var bt in Nt)Nt.hasOwnProperty(bt)&&Zn.setRequestHeader(bt,Nt[bt])}this._isReconnecting?this._isReconnecting=!1:this._status=c.kConnecting,Zn.send()}},{key:"abort",value:function(){this._internalAbort(),this._status=c.kComplete}},{key:"_internalAbort",value:function(){this._reader&&(this._reader.readyState===1&&this._reader.abort(),this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.abort(),this._xhr.onreadystatechange=null,this._xhr=null)}},{key:"_xhrOnReadyStateChange",value:function(Be){var nt=Be.target;if(nt.readyState===2)if(nt.status>=200&&nt.status<=299){if(this._status=c.kBuffering,nt.responseURL!=null){var vt=this._seekHandler.removeURLParameters(nt.responseURL);nt.responseURL!==this._currentRequestURL&&vt!==this._currentRedirectedURL&&(this._currentRedirectedURL=vt,this._onURLRedirect&&this._onURLRedirect(vt))}var ar=nt.getResponseHeader("Content-Length");if(ar!=null&&this._contentLength==null){var kr=parseInt(ar);kr>0&&(this._contentLength=kr,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=c.kError,this._onError)this._onError(d.HTTP_STATUS_CODE_INVALID,{code:nt.status,msg:nt.statusText});else throw new e("MSStreamLoader: Http code invalid, "+nt.status+" "+nt.statusText);else if(nt.readyState===3&&(nt.status>=200&&nt.status<=299)){this._status=c.kBuffering;var mn=nt.response;this._reader.readAsArrayBuffer(mn)}}},{key:"_xhrOnError",value:function(Be){this._status=c.kError;var nt=d.EXCEPTION,vt={code:-1,msg:Be.constructor.name+" "+Be.type};if(this._onError)this._onError(nt,vt);else throw new e(vt.msg)}},{key:"_msrOnProgress",value:function(Be){var nt=Be.target,vt=nt.result;if(vt==null){this._doReconnectIfNeeded();return}var ar=vt.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=vt.byteLength;var kr=this._totalRange.from+this._receivedLength;this._receivedLength+=ar.byteLength,this._onDataArrival&&this._onDataArrival(ar,kr,this._receivedLength),vt.byteLength>=this._bufferLimit&&(u.v(this.TAG,"MSStream buffer exceeded max size near ".concat(kr+ar.byteLength,", reconnecting...")),this._doReconnectIfNeeded())}},{key:"_doReconnectIfNeeded",value:function(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();var Be={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,Be,!0)}}},{key:"_msrOnLoad",value:function(Be){this._status=c.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}},{key:"_msrOnError",value:function(Be){this._status=c.kError;var nt=0,vt=null;if(this._contentLength&&this._receivedLength<this._contentLength?(nt=d.EARLY_EOF,vt={code:-1,msg:"MSStream meet Early-Eof"}):(nt=d.EARLY_EOF,vt={code:-1,msg:Be.constructor.name+" "+Be.type}),this._onError)this._onError(nt,vt);else throw new e(vt.msg)}}],[{key:"isSupported",value:function(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;var Be=new XMLHttpRequest;return Be.open("GET","https://example.com",!0),Be.responseType="ms-stream",Be.responseType==="ms-stream"}catch(nt){return u.w("MSStreamLoader",nt.message),!1}}}]),Fe}(g),R=I,M=function(Xt){Object(t.a)(Fe,Xt);var _t=Object(o.a)(Fe);function Fe(Pe,Be){var nt;return Object(y.a)(this,Fe),nt=_t.call(this,"xhr-range-loader"),nt.TAG="RangeLoader",nt._seekHandler=Pe,nt._config=Be,nt._needStash=!1,nt._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],nt._currentChunkSizeKB=384,nt._currentSpeedNormalized=0,nt._zeroSpeedChunkCount=0,nt._xhr=null,nt._speedSampler=new i,nt._requestAbort=!1,nt._waitForTotalLength=!1,nt._totalLengthReceived=!1,nt._currentRequestURL=null,nt._currentRedirectedURL=null,nt._currentRequestRange=null,nt._totalLength=null,nt._contentLength=null,nt._receivedLength=0,nt._lastTimeLoaded=0,nt}return Object(p.a)(Fe,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),Object(v.a)(Object(b.a)(Fe.prototype),"destroy",this).call(this)}},{key:"currentSpeed",get:function(){return this._speedSampler.lastSecondKBps}},{key:"open",value:function(Be,nt){this._dataSource=Be,this._range=nt,this._status=c.kConnecting;var vt=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(vt=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!vt?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}},{key:"_openSubRange",value:function(){var Be=this._currentChunkSizeKB*1024,nt=this._range.from+this._receivedLength,vt=nt+Be;this._contentLength!=null&&(vt-this._range.from>=this._contentLength&&(vt=this._range.from+this._contentLength-1)),this._currentRequestRange={from:nt,to:vt},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(Be,nt){this._lastTimeLoaded=0;var vt=Be.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?vt=this._currentRedirectedURL:Be.redirectedURL!=null&&(vt=Be.redirectedURL));var ar=this._seekHandler.getConfig(vt,nt);this._currentRequestURL=ar.url;var kr=this._xhr=new XMLHttpRequest;if(kr.open("GET",ar.url,!0),kr.responseType="arraybuffer",kr.onreadystatechange=this._onReadyStateChange.bind(this),kr.onprogress=this._onProgress.bind(this),kr.onload=this._onLoad.bind(this),kr.onerror=this._onXhrError.bind(this),Be.withCredentials&&(kr.withCredentials=!0),typeof ar.headers=="object"){var mn=ar.headers;for(var Zn in mn)mn.hasOwnProperty(Zn)&&kr.setRequestHeader(Zn,mn[Zn])}if(typeof this._config.headers=="object"){var ni=this._config.headers;for(var ur in ni)ni.hasOwnProperty(ur)&&kr.setRequestHeader(ur,ni[ur])}kr.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=c.kComplete}},{key:"_internalAbort",value:function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}},{key:"_onReadyStateChange",value:function(Be){var nt=Be.target;if(nt.readyState===2){if(nt.responseURL!=null){var vt=this._seekHandler.removeURLParameters(nt.responseURL);nt.responseURL!==this._currentRequestURL&&vt!==this._currentRedirectedURL&&(this._currentRedirectedURL=vt,this._onURLRedirect&&this._onURLRedirect(vt))}if(nt.status>=200&&nt.status<=299){if(this._waitForTotalLength)return;this._status=c.kBuffering}else if(this._status=c.kError,this._onError)this._onError(d.HTTP_STATUS_CODE_INVALID,{code:nt.status,msg:nt.statusText});else throw new e("RangeLoader: Http code invalid, "+nt.status+" "+nt.statusText)}}},{key:"_onProgress",value:function(Be){if(this._status===c.kError)return;if(this._contentLength===null){var nt=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,nt=!0;var vt=Be.total;this._internalAbort(),vt!=null&vt!==0&&(this._totalLength=vt)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,nt){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var ar=Be.loaded-this._lastTimeLoaded;this._lastTimeLoaded=Be.loaded,this._speedSampler.addBytes(ar)}},{key:"_normalizeSpeed",value:function(Be){var nt=this._chunkSizeKBList,vt=nt.length-1,ar=0,kr=0,mn=vt;if(Be<nt[0])return nt[0];for(;kr<=mn;){if(ar=kr+Math.floor((mn-kr)/2),ar===vt||Be>=nt[ar]&&Be<nt[ar+1])return nt[ar];nt[ar]<Be?kr=ar+1:mn=ar-1}}},{key:"_onLoad",value:function(Be){if(this._status===c.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;var nt=this._speedSampler.lastSecondKBps;if(nt===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(nt=this._speedSampler.currentKBps)),nt!==0){var vt=this._normalizeSpeed(nt);this._currentSpeedNormalized!==vt&&(this._currentSpeedNormalized=vt,this._currentChunkSizeKB=vt)}var ar=Be.target.response,kr=this._range.from+this._receivedLength;this._receivedLength+=ar.byteLength;var mn=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():mn=!0,this._onDataArrival&&this._onDataArrival(ar,kr,this._receivedLength),mn&&(this._status=c.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}},{key:"_onXhrError",value:function(Be){this._status=c.kError;var nt=0,vt=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(nt=d.EARLY_EOF,vt={code:-1,msg:"RangeLoader meet Early-Eof"}):(nt=d.EXCEPTION,vt={code:-1,msg:Be.constructor.name+" "+Be.type}),this._onError)this._onError(nt,vt);else throw new e(vt.msg)}}],[{key:"isSupported",value:function(){try{var Be=new XMLHttpRequest;return Be.open("GET","https://example.com",!0),Be.responseType="arraybuffer",Be.responseType==="arraybuffer"}catch(nt){return u.w("RangeLoader",nt.message),!1}}}]),Fe}(g),F=M,P=function(Xt){Object(t.a)(Fe,Xt);var _t=Object(o.a)(Fe);function Fe(){var Pe;return Object(y.a)(this,Fe),Pe=_t.call(this,"websocket-loader"),Pe.TAG="WebSocketLoader",Pe._needStash=!0,Pe._ws=null,Pe._requestAbort=!1,Pe._receivedLength=0,Pe}return Object(p.a)(Fe,[{key:"destroy",value:function(){this._ws&&this.abort(),Object(v.a)(Object(b.a)(Fe.prototype),"destroy",this).call(this)}},{key:"open",value:function(Be){try{var nt=this._ws=new self.WebSocket(Be.url);nt.binaryType="arraybuffer",nt.onopen=this._onWebSocketOpen.bind(this),nt.onclose=this._onWebSocketClose.bind(this),nt.onmessage=this._onWebSocketMessage.bind(this),nt.onerror=this._onWebSocketError.bind(this),this._status=c.kConnecting}catch(ar){this._status=c.kError;var vt={code:ar.code,msg:ar.message};if(this._onError)this._onError(d.EXCEPTION,vt);else throw new e(vt.msg)}}},{key:"abort",value:function(){var Be=this._ws;Be&&(Be.readyState===0||Be.readyState===1)&&(this._requestAbort=!0,Be.close()),this._ws=null,this._status=c.kComplete}},{key:"_onWebSocketOpen",value:function(Be){this._status=c.kBuffering}},{key:"_onWebSocketClose",value:function(Be){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=c.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}},{key:"_onWebSocketMessage",value:function(Be){var nt=this;if(Be.data instanceof ArrayBuffer)this._dispatchArrayBuffer(Be.data);else if(Be.data instanceof Blob){var vt=new FileReader;vt.onload=function(){nt._dispatchArrayBuffer(vt.result)},vt.readAsArrayBuffer(Be.data)}else{this._status=c.kError;var ar={code:-1,msg:"Unsupported WebSocket message type: "+Be.data.constructor.name};if(this._onError)this._onError(d.EXCEPTION,ar);else throw new e(ar.msg)}}},{key:"_dispatchArrayBuffer",value:function(Be){var nt=Be,vt=this._receivedLength;this._receivedLength+=nt.byteLength,this._onDataArrival&&this._onDataArrival(nt,vt,this._receivedLength)}},{key:"_onWebSocketError",value:function(Be){this._status=c.kError;var nt={code:Be.code,msg:Be.message};if(this._onError)this._onError(d.EXCEPTION,nt);else throw new e(nt.msg)}}],[{key:"isSupported",value:function(){try{return typeof self.WebSocket!="undefined"}catch(Be){return!1}}}]),Fe}(g),X=P,B=function(){function Xt(_t){Object(y.a)(this,Xt),this._zeroStart=_t||!1}return Object(p.a)(Xt,[{key:"getConfig",value:function(Fe,Pe){var Be={};if(Pe.from!==0||Pe.to!==-1){var nt;Pe.to!==-1?nt="bytes=".concat(Pe.from.toString(),"-").concat(Pe.to.toString()):nt="bytes=".concat(Pe.from.toString(),"-"),Be.Range=nt}else this._zeroStart&&(Be.Range="bytes=0-");return{url:Fe,headers:Be}}},{key:"removeURLParameters",value:function(Fe){return Fe}}]),Xt}(),j=B,W=function(){function Xt(_t,Fe){Object(y.a)(this,Xt),this._startName=_t,this._endName=Fe}return Object(p.a)(Xt,[{key:"getConfig",value:function(Fe,Pe){var Be=Fe;if(Pe.from!==0||Pe.to!==-1){var nt=!0;Be.indexOf("?")===-1&&(Be+="?",nt=!1),nt&&(Be+="&"),Be+="".concat(this._startName,"=").concat(Pe.from.toString()),Pe.to!==-1&&(Be+="&".concat(this._endName,"=").concat(Pe.to.toString()))}return{url:Be,headers:{}}}},{key:"removeURLParameters",value:function(Fe){var Pe=Fe.split("?")[0],Be=void 0,nt=Fe.indexOf("?");nt!==-1&&(Be=Fe.substring(nt+1));var vt="";if(Be!=null&&Be.length>0)for(var ar=Be.split("&"),kr=0;kr<ar.length;kr++){var mn=ar[kr].split("="),Zn=kr>0;mn[0]!==this._startName&&mn[0]!==this._endName&&(Zn&&(vt+="&"),vt+=ar[kr])}return vt.length===0?Pe:Pe+"?"+vt}}]),Xt}(),z=W,V=function(){function Xt(_t,Fe,Pe){Object(y.a)(this,Xt),this.TAG="IOController",this._config=Fe,this._extraData=Pe,this._stashInitialSize=1024*384,Fe.stashInitialSize!=null&&Fe.stashInitialSize>0&&(this._stashInitialSize=Fe.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,Fe.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=_t,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(_t.url),this._refTotalLength=_t.filesize?_t.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new i,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return Object(p.a)(Xt,[{key:"destroy",value:function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}},{key:"isWorking",value:function(){return this._loader&&this._loader.isWorking()&&!this._paused}},{key:"isPaused",value:function(){return this._paused}},{key:"status",get:function(){return this._loader.status}},{key:"extraData",get:function(){return this._extraData},set:function(Fe){this._extraData=Fe}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(Fe){this._onDataArrival=Fe}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(Fe){this._onSeeked=Fe}},{key:"onError",get:function(){return this._onError},set:function(Fe){this._onError=Fe}},{key:"onComplete",get:function(){return this._onComplete},set:function(Fe){this._onComplete=Fe}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(Fe){this._onRedirect=Fe}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(Fe){this._onRecoveredEarlyEof=Fe}},{key:"currentURL",get:function(){return this._dataSource.url}},{key:"hasRedirect",get:function(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null}},{key:"currentRedirectedURL",get:function(){return this._redirectedURL||this._dataSource.redirectedURL}},{key:"currentSpeed",get:function(){return this._loaderClass===F?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}},{key:"_selectSeekHandler",value:function(){var Fe=this._config;if(Fe.seekType==="range")this._seekHandler=new j(this._config.rangeLoadZeroStart);else if(Fe.seekType==="param"){var Pe=Fe.seekParamStart||"bstart",Be=Fe.seekParamEnd||"bend";this._seekHandler=new z(Pe,Be)}else if(Fe.seekType==="custom"){if(typeof Fe.customSeekHandler!="function")throw new r("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new Fe.customSeekHandler}else throw new r("Invalid seekType in config: ".concat(Fe.seekType))}},{key:"_selectLoader",value:function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=X;else if(T.isSupported())this._loaderClass=T;else if(O.isSupported())this._loaderClass=O;else if(F.isSupported())this._loaderClass=F;else throw new e("Your browser doesn't support xhr with arraybuffer responseType!")}},{key:"_createLoader",value:function(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}},{key:"open",value:function(Fe){this._currentRange={from:0,to:-1},Fe&&(this._currentRange.from=Fe),this._speedSampler.reset(),Fe||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}},{key:"abort",value:function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}},{key:"pause",value:function(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}},{key:"resume",value:function(){if(this._paused){this._paused=!1;var Fe=this._resumeFrom;this._resumeFrom=0,this._internalSeek(Fe,!0)}}},{key:"seek",value:function(Fe){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(Fe,!0)}},{key:"_internalSeek",value:function(Fe,Pe){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(Pe),this._loader.destroy(),this._loader=null;var Be={from:Fe,to:-1};this._currentRange={from:Be.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,Be),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(Fe){if(!Fe||typeof Fe!="string"||Fe.length===0)throw new r("Url must be a non-empty string!");this._dataSource.url=Fe}},{key:"_expandBuffer",value:function(Fe){for(var Pe=this._stashSize;Pe+1024*1024*1<Fe;)Pe*=2;if(Pe+=1024*1024*1,Pe===this._bufferSize)return;var Be=new ArrayBuffer(Pe);if(this._stashUsed>0){var nt=new Uint8Array(this._stashBuffer,0,this._stashUsed),vt=new Uint8Array(Be,0,Pe);vt.set(nt,0)}this._stashBuffer=Be,this._bufferSize=Pe}},{key:"_normalizeSpeed",value:function(Fe){var Pe=this._speedNormalizeList,Be=Pe.length-1,nt=0,vt=0,ar=Be;if(Fe<Pe[0])return Pe[0];for(;vt<=ar;){if(nt=vt+Math.floor((ar-vt)/2),nt===Be||Fe>=Pe[nt]&&Fe<Pe[nt+1])return Pe[nt];Pe[nt]<Fe?vt=nt+1:ar=nt-1}}},{key:"_adjustStashSize",value:function(Fe){var Pe=0;this._config.isLive||Fe<512?Pe=Fe:Fe>=512&&Fe<=1024?Pe=Math.floor(Fe*1.5):Pe=Fe*2,Pe>8192&&(Pe=8192);var Be=Pe*1024+1024*1024*1;this._bufferSize<Be&&this._expandBuffer(Be),this._stashSize=Pe*1024}},{key:"_dispatchChunks",value:function(Fe,Pe){return this._currentRange.to=Pe+Fe.byteLength-1,this._onDataArrival(Fe,Pe)}},{key:"_onURLRedirect",value:function(Fe){this._redirectedURL=Fe,this._onRedirect&&this._onRedirect(Fe)}},{key:"_onContentLengthKnown",value:function(Fe){Fe&&this._fullRequestFlag&&(this._totalLength=Fe,this._fullRequestFlag=!1)}},{key:"_onLoaderChunkArrival",value:function(Fe,Pe,Be){if(!this._onDataArrival)throw new l("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(Fe.byteLength);var nt=this._speedSampler.lastSecondKBps;if(nt!==0){var vt=this._normalizeSpeed(nt);this._speedNormalized!==vt&&(this._speedNormalized=vt,this._adjustStashSize(vt))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=Pe),this._stashUsed+Fe.byteLength<=this._stashSize){var Nt=new Uint8Array(this._stashBuffer,0,this._stashSize);Nt.set(new Uint8Array(Fe),this._stashUsed),this._stashUsed+=Fe.byteLength}else{var bt=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){var gr=this._stashBuffer.slice(0,this._stashUsed),Yt=this._dispatchChunks(gr,this._stashByteStart);if(Yt<gr.byteLength){if(Yt>0){var Pt=new Uint8Array(gr,Yt);bt.set(Pt,0),this._stashUsed=Pt.byteLength,this._stashByteStart+=Yt}}else this._stashUsed=0,this._stashByteStart+=Yt;this._stashUsed+Fe.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+Fe.byteLength),bt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),bt.set(new Uint8Array(Fe),this._stashUsed),this._stashUsed+=Fe.byteLength}else{var rr=this._dispatchChunks(Fe,Pe);if(rr<Fe.byteLength){var Rt=Fe.byteLength-rr;Rt>this._bufferSize&&(this._expandBuffer(Rt),bt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),bt.set(new Uint8Array(Fe,rr),0),this._stashUsed+=Rt,this._stashByteStart=Pe+rr}}}else if(this._stashUsed===0){var ar=this._dispatchChunks(Fe,Pe);if(ar<Fe.byteLength){var kr=Fe.byteLength-ar;kr>this._bufferSize&&this._expandBuffer(kr);var mn=new Uint8Array(this._stashBuffer,0,this._bufferSize);mn.set(new Uint8Array(Fe,ar),0),this._stashUsed+=kr,this._stashByteStart=Pe+ar}}else{this._stashUsed+Fe.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+Fe.byteLength);var Zn=new Uint8Array(this._stashBuffer,0,this._bufferSize);Zn.set(new Uint8Array(Fe),this._stashUsed),this._stashUsed+=Fe.byteLength;var ni=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(ni<this._stashUsed&&ni>0){var ur=new Uint8Array(this._stashBuffer,ni);Zn.set(ur,0)}this._stashUsed-=ni,this._stashByteStart+=ni}}},{key:"_flushStashBuffer",value:function(Fe){if(this._stashUsed>0){var Pe=this._stashBuffer.slice(0,this._stashUsed),Be=this._dispatchChunks(Pe,this._stashByteStart),nt=Pe.byteLength-Be;if(Be<Pe.byteLength)if(Fe)u.w(this.TAG,"".concat(nt," bytes unconsumed data remain when flush buffer, dropped"));else{if(Be>0){var vt=new Uint8Array(this._stashBuffer,0,this._bufferSize),ar=new Uint8Array(Pe,Be);vt.set(ar,0),this._stashUsed=ar.byteLength,this._stashByteStart+=Be}return 0}return this._stashUsed=0,this._stashByteStart=0,nt}return 0}},{key:"_onLoaderComplete",value:function(Fe,Pe){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(Fe,Pe){u.e(this.TAG,"Loader error, code = ".concat(Pe.code,", msg = ").concat(Pe.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,Fe=d.UNRECOVERABLE_EARLY_EOF);switch(Fe){case d.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var Be=this._currentRange.to+1;Be<this._totalLength&&(u.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(Be,!1));return}Fe=d.UNRECOVERABLE_EARLY_EOF;break}case d.UNRECOVERABLE_EARLY_EOF:case d.CONNECTING_TIMEOUT:case d.HTTP_STATUS_CODE_INVALID:case d.EXCEPTION:break}if(this._onError)this._onError(Fe,Pe);else throw new e("IOException: "+Pe.msg)}}]),Xt}(),Q=V,G={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:3*60,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:3*60,autoCleanupMinBackwardDuration:2*60,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1,headers:void 0,customLoader:void 0};function ee(){return Object.assign({},G)}var ce=function(){function Xt(){Object(y.a)(this,Xt)}return Object(p.a)(Xt,null,[{key:"supportMSEH264Playback",value:function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}},{key:"supportNetworkStreamIO",value:function(){var Fe=new Q({},ee()),Pe=Fe.loaderType;return Fe.destroy(),Pe=="fetch-stream-loader"||Pe=="xhr-moz-chunked-loader"}},{key:"getNetworkLoaderTypeName",value:function(){var Fe=new Q({},ee()),Pe=Fe.loaderType;return Fe.destroy(),Pe}},{key:"supportNativeMediaPlayback",value:function(Fe){Xt.videoElement==null&&(Xt.videoElement=window.document.createElement("video"));var Pe=Xt.videoElement.canPlayType(Fe);return Pe==="probably"||Pe=="maybe"}},{key:"getFeatureList",value:function(){var Fe={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return Fe.mseFlvPlayback=Xt.supportMSEH264Playback(),Fe.networkStreamIO=Xt.supportNetworkStreamIO(),Fe.networkLoaderName=Xt.getNetworkLoaderTypeName(),Fe.mseLiveFlvPlayback=Fe.mseFlvPlayback&&Fe.networkStreamIO,Fe.nativeMP4H264Playback=Xt.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),Fe.nativeWebmVP8Playback=Xt.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),Fe.nativeWebmVP9Playback=Xt.supportNativeMediaPlayback('video/webm; codecs="vp9"'),Fe}}]),Xt}(),be=ce,le={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"},Ie=le,ke=function(){function Xt(){Object(y.a)(this,Xt)}return Object(p.a)(Xt,null,[{key:"forceGlobalTag",get:function(){return u.FORCE_GLOBAL_TAG},set:function(Fe){u.FORCE_GLOBAL_TAG=Fe,Xt._notifyChange()}},{key:"globalTag",get:function(){return u.GLOBAL_TAG},set:function(Fe){u.GLOBAL_TAG=Fe,Xt._notifyChange()}},{key:"enableAll",get:function(){return u.ENABLE_VERBOSE&&u.ENABLE_DEBUG&&u.ENABLE_INFO&&u.ENABLE_WARN&&u.ENABLE_ERROR},set:function(Fe){u.ENABLE_VERBOSE=Fe,u.ENABLE_DEBUG=Fe,u.ENABLE_INFO=Fe,u.ENABLE_WARN=Fe,u.ENABLE_ERROR=Fe,Xt._notifyChange()}},{key:"enableDebug",get:function(){return u.ENABLE_DEBUG},set:function(Fe){u.ENABLE_DEBUG=Fe,Xt._notifyChange()}},{key:"enableVerbose",get:function(){return u.ENABLE_VERBOSE},set:function(Fe){u.ENABLE_VERBOSE=Fe,Xt._notifyChange()}},{key:"enableInfo",get:function(){return u.ENABLE_INFO},set:function(Fe){u.ENABLE_INFO=Fe,Xt._notifyChange()}},{key:"enableWarn",get:function(){return u.ENABLE_WARN},set:function(Fe){u.ENABLE_WARN=Fe,Xt._notifyChange()}},{key:"enableError",get:function(){return u.ENABLE_ERROR},set:function(Fe){u.ENABLE_ERROR=Fe,Xt._notifyChange()}},{key:"getConfig",value:function(){return{globalTag:u.GLOBAL_TAG,forceGlobalTag:u.FORCE_GLOBAL_TAG,enableVerbose:u.ENABLE_VERBOSE,enableDebug:u.ENABLE_DEBUG,enableInfo:u.ENABLE_INFO,enableWarn:u.ENABLE_WARN,enableError:u.ENABLE_ERROR,enableCallback:u.ENABLE_CALLBACK}}},{key:"applyConfig",value:function(Fe){u.GLOBAL_TAG=Fe.globalTag,u.FORCE_GLOBAL_TAG=Fe.forceGlobalTag,u.ENABLE_VERBOSE=Fe.enableVerbose,u.ENABLE_DEBUG=Fe.enableDebug,u.ENABLE_INFO=Fe.enableInfo,u.ENABLE_WARN=Fe.enableWarn,u.ENABLE_ERROR=Fe.enableError,u.ENABLE_CALLBACK=Fe.enableCallback}},{key:"_notifyChange",value:function(){var Fe=Xt.emitter;if(Fe.listenerCount("change")>0){var Pe=Xt.getConfig();Fe.emit("change",Pe)}}},{key:"registerListener",value:function(Fe){Xt.emitter.addListener("change",Fe)}},{key:"removeListener",value:function(Fe){Xt.emitter.removeListener("change",Fe)}},{key:"addLogListener",value:function(Fe){u.emitter.addListener("log",Fe),u.emitter.listenerCount("log")>0&&(u.ENABLE_CALLBACK=!0,Xt._notifyChange())}},{key:"removeLogListener",value:function(Fe){u.emitter.removeListener("log",Fe),u.emitter.listenerCount("log")===0&&(u.ENABLE_CALLBACK=!1,Xt._notifyChange())}}]),Xt}();ke.emitter=new f.a;var Re=ke,Qe=function(){function Xt(){Object(y.a)(this,Xt),this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}return Object(p.a)(Xt,[{key:"isComplete",value:function(){var Fe=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,Pe=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&Fe&&Pe}},{key:"isSeekable",value:function(){return this.hasKeyframesIndex===!0}},{key:"getNearestKeyframe",value:function(Fe){if(this.keyframesIndex==null)return null;var Pe=this.keyframesIndex,Be=this._search(Pe.times,Fe);return{index:Be,milliseconds:Pe.times[Be],fileposition:Pe.filepositions[Be]}}},{key:"_search",value:function(Fe,Pe){var Be=0,nt=Fe.length-1,vt=0,ar=0,kr=nt;for(Pe<Fe[0]&&(Be=0,ar=kr+1);ar<=kr;)if(vt=ar+Math.floor((kr-ar)/2),vt===nt||Pe>=Fe[vt]&&Pe<Fe[vt+1]){Be=vt;break}else Fe[vt]<Pe?ar=vt+1:kr=vt-1;return Be}}]),Xt}(),We=Qe;function ot(Xt,_t,Fe){var Pe=Xt;if(_t+Fe<Pe.length){for(;Fe--;)if((Pe[++_t]&192)!==128)return!1;return!0}else return!1}function Oe(Xt){for(var _t=[],Fe=Xt,Pe=0,Be=Xt.length;Pe<Be;){if(Fe[Pe]<128){_t.push(String.fromCharCode(Fe[Pe])),++Pe;continue}else if(!(Fe[Pe]<192)){if(Fe[Pe]<224){if(ot(Fe,Pe,1)){var nt=(Fe[Pe]&31)<<6|Fe[Pe+1]&63;if(nt>=128){_t.push(String.fromCharCode(nt&65535)),Pe+=2;continue}}}else if(Fe[Pe]<240){if(ot(Fe,Pe,2)){var vt=(Fe[Pe]&15)<<12|(Fe[Pe+1]&63)<<6|Fe[Pe+2]&63;if(vt>=2048&&(vt&63488)!==55296){_t.push(String.fromCharCode(vt&65535)),Pe+=3;continue}}}else if(Fe[Pe]<248&&ot(Fe,Pe,3)){var ar=(Fe[Pe]&7)<<18|(Fe[Pe+1]&63)<<12|(Fe[Pe+2]&63)<<6|Fe[Pe+3]&63;if(ar>65536&&ar<1114112){ar-=65536,_t.push(String.fromCharCode(ar>>>10|55296)),_t.push(String.fromCharCode(ar&1023|56320)),Pe+=4;continue}}}_t.push(String.fromCharCode(65533)),++Pe}return _t.join("")}var oe=Oe,st=function(){var Xt=new ArrayBuffer(2);return new DataView(Xt).setInt16(0,256,!0),new Int16Array(Xt)[0]===256}(),he=function(){function Xt(){Object(y.a)(this,Xt)}return Object(p.a)(Xt,null,[{key:"parseScriptData",value:function(Fe,Pe,Be){var nt={};try{var vt=Xt.parseValue(Fe,Pe,Be),ar=Xt.parseValue(Fe,Pe+vt.size,Be-vt.size);nt[vt.data]=ar.data}catch(kr){u.e("AMF",kr.toString())}return nt}},{key:"parseObject",value:function(Fe,Pe,Be){if(Be<3)throw new l("Data not enough when parse ScriptDataObject");var nt=Xt.parseString(Fe,Pe,Be),vt=Xt.parseValue(Fe,Pe+nt.size,Be-nt.size),ar=vt.objectEnd;return{data:{name:nt.data,value:vt.data},size:nt.size+vt.size,objectEnd:ar}}},{key:"parseVariable",value:function(Fe,Pe,Be){return Xt.parseObject(Fe,Pe,Be)}},{key:"parseString",value:function(Fe,Pe,Be){if(Be<2)throw new l("Data not enough when parse String");var nt=new DataView(Fe,Pe,Be),vt=nt.getUint16(0,!st),ar;return vt>0?ar=oe(new Uint8Array(Fe,Pe+2,vt)):ar="",{data:ar,size:2+vt}}},{key:"parseLongString",value:function(Fe,Pe,Be){if(Be<4)throw new l("Data not enough when parse LongString");var nt=new DataView(Fe,Pe,Be),vt=nt.getUint32(0,!st),ar;return vt>0?ar=oe(new Uint8Array(Fe,Pe+4,vt)):ar="",{data:ar,size:4+vt}}},{key:"parseDate",value:function(Fe,Pe,Be){if(Be<10)throw new l("Data size invalid when parse Date");var nt=new DataView(Fe,Pe,Be),vt=nt.getFloat64(0,!st),ar=nt.getInt16(8,!st);return vt+=ar*60*1e3,{data:new Date(vt),size:8+2}}},{key:"parseValue",value:function(Fe,Pe,Be){if(Be<1)throw new l("Data not enough when parse Value");var nt=new DataView(Fe,Pe,Be),vt=1,ar=nt.getUint8(0),kr,mn=!1;try{switch(ar){case 0:kr=nt.getFloat64(1,!st),vt+=8;break;case 1:{var Zn=nt.getUint8(1);kr=!!Zn,vt+=1;break}case 2:{var ni=Xt.parseString(Fe,Pe+1,Be-1);kr=ni.data,vt+=ni.size;break}case 3:{kr={};var ur=0;for((nt.getUint32(Be-4,!st)&16777215)===9&&(ur=3);vt<Be-4;){var Nt=Xt.parseObject(Fe,Pe+vt,Be-vt-ur);if(Nt.objectEnd)break;kr[Nt.data.name]=Nt.data.value,vt+=Nt.size}if(vt<=Be-3){var bt=nt.getUint32(vt-1,!st)&16777215;bt===9&&(vt+=3)}break}case 8:{kr={},vt+=4;var gr=0;for((nt.getUint32(Be-4,!st)&16777215)===9&&(gr=3);vt<Be-8;){var Yt=Xt.parseVariable(Fe,Pe+vt,Be-vt-gr);if(Yt.objectEnd)break;kr[Yt.data.name]=Yt.data.value,vt+=Yt.size}if(vt<=Be-3){var Pt=nt.getUint32(vt-1,!st)&16777215;Pt===9&&(vt+=3)}break}case 9:kr=void 0,vt=1,mn=!0;break;case 10:{kr=[];var rr=nt.getUint32(1,!st);vt+=4;for(var Rt=0;Rt<rr;Rt++){var qt=Xt.parseValue(Fe,Pe+vt,Be-vt);kr.push(qt.data),vt+=qt.size}break}case 11:{var Yr=Xt.parseDate(Fe,Pe+1,Be-1);kr=Yr.data,vt+=Yr.size;break}case 12:{var Mr=Xt.parseString(Fe,Pe+1,Be-1);kr=Mr.data,vt+=Mr.size;break}default:vt=Be,u.w("AMF","Unsupported AMF value type "+ar)}}catch(Dr){u.e("AMF",Dr.toString())}return{data:kr,size:vt,objectEnd:mn}}}]),Xt}(),J=he,Y=function(){function Xt(_t){Object(y.a)(this,Xt),this.TAG="ExpGolomb",this._buffer=_t,this._buffer_index=0,this._total_bytes=_t.byteLength,this._total_bits=_t.byteLength*8,this._current_word=0,this._current_word_bits_left=0}return Object(p.a)(Xt,[{key:"destroy",value:function(){this._buffer=null}},{key:"_fillCurrentWord",value:function(){var Fe=this._total_bytes-this._buffer_index;if(Fe<=0)throw new l("ExpGolomb: _fillCurrentWord() but no bytes available");var Pe=Math.min(4,Fe),Be=new Uint8Array(4);Be.set(this._buffer.subarray(this._buffer_index,this._buffer_index+Pe)),this._current_word=new DataView(Be.buffer).getUint32(0,!1),this._buffer_index+=Pe,this._current_word_bits_left=Pe*8}},{key:"readBits",value:function(Fe){if(Fe>32)throw new r("ExpGolomb: readBits() bits exceeded max 32bits!");if(Fe<=this._current_word_bits_left){var Pe=this._current_word>>>32-Fe;return this._current_word<<=Fe,this._current_word_bits_left-=Fe,Pe}var Be=this._current_word_bits_left?this._current_word:0;Be=Be>>>32-this._current_word_bits_left;var nt=Fe-this._current_word_bits_left;this._fillCurrentWord();var vt=Math.min(nt,this._current_word_bits_left),ar=this._current_word>>>32-vt;return this._current_word<<=vt,this._current_word_bits_left-=vt,Be=Be<<vt|ar,Be}},{key:"readBool",value:function(){return this.readBits(1)===1}},{key:"readByte",value:function(){return this.readBits(8)}},{key:"_skipLeadingZero",value:function(){var Fe;for(Fe=0;Fe<this._current_word_bits_left;Fe++)if((this._current_word&2147483648>>>Fe)!==0)return this._current_word<<=Fe,this._current_word_bits_left-=Fe,Fe;return this._fillCurrentWord(),Fe+this._skipLeadingZero()}},{key:"readUEG",value:function(){var Fe=this._skipLeadingZero();return this.readBits(Fe+1)-1}},{key:"readSEG",value:function(){var Fe=this.readUEG();return Fe&1?Fe+1>>>1:-1*(Fe>>>1)}}]),Xt}(),$=Y,fe=function(){function Xt(){Object(y.a)(this,Xt)}return Object(p.a)(Xt,null,[{key:"_ebsp2rbsp",value:function(Fe){for(var Pe=Fe,Be=Pe.byteLength,nt=new Uint8Array(Be),vt=0,ar=0;ar<Be;ar++){if(ar>=2&&(Pe[ar]===3&&Pe[ar-1]===0&&Pe[ar-2]===0))continue;nt[vt]=Pe[ar],vt++}return new Uint8Array(nt.buffer,0,vt)}},{key:"parseSPS",value:function(Fe){var Pe=Xt._ebsp2rbsp(Fe),Be=new $(Pe);Be.readByte();var nt=Be.readByte();Be.readByte();var vt=Be.readByte();Be.readUEG();var ar=Xt.getProfileString(nt),kr=Xt.getLevelString(vt),mn=1,Zn=420,ni=[0,420,422,444],ur=8;if((nt===100||nt===110||nt===122||nt===244||nt===44||nt===83||nt===86||nt===118||nt===128||nt===138||nt===144)&&(mn=Be.readUEG(),mn===3&&Be.readBits(1),mn<=3&&(Zn=ni[mn]),ur=Be.readUEG()+8,Be.readUEG(),Be.readBits(1),Be.readBool()))for(var Nt=mn!==3?8:12,bt=0;bt<Nt;bt++)Be.readBool()&&(bt<6?Xt._skipScalingList(Be,16):Xt._skipScalingList(Be,64));Be.readUEG();var gr=Be.readUEG();if(gr===0)Be.readUEG();else if(gr===1){Be.readBits(1),Be.readSEG(),Be.readSEG();for(var Yt=Be.readUEG(),Pt=0;Pt<Yt;Pt++)Be.readSEG()}var rr=Be.readUEG();Be.readBits(1);var Rt=Be.readUEG(),qt=Be.readUEG(),Yr=Be.readBits(1);Yr===0&&Be.readBits(1),Be.readBits(1);var Mr=0,Dr=0,un=0,wn=0,ai=Be.readBool();ai&&(Mr=Be.readUEG(),Dr=Be.readUEG(),un=Be.readUEG(),wn=Be.readUEG());var ei=1,gi=1,Ii=0,ki=!0,Qi=0,it=0,Me=Be.readBool();if(Me){if(Be.readBool()){var je=Be.readByte(),Ye=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],rt=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];je>0&&je<16?(ei=Ye[je-1],gi=rt[je-1]):je===255&&(ei=Be.readByte()<<8|Be.readByte(),gi=Be.readByte()<<8|Be.readByte())}if(Be.readBool()&&Be.readBool(),Be.readBool()&&(Be.readBits(4),Be.readBool()&&Be.readBits(24)),Be.readBool()&&(Be.readUEG(),Be.readUEG()),Be.readBool()){var qe=Be.readBits(32),at=Be.readBits(32);ki=Be.readBool(),Qi=at,it=qe*2,Ii=Qi/it}}var St=1;(ei!==1||gi!==1)&&(St=ei/gi);var gt=0,hr=0;if(mn===0)gt=1,hr=2-Yr;else{var Qr=mn===3?1:2,Xr=mn===1?2:1;gt=Qr,hr=Xr*(2-Yr)}var dn=(Rt+1)*16,mr=(2-Yr)*((qt+1)*16);dn-=(Mr+Dr)*gt,mr-=(un+wn)*hr;var Kn=Math.ceil(dn*St);return Be.destroy(),Be=null,{profile_string:ar,level_string:kr,bit_depth:ur,ref_frames:rr,chroma_format:Zn,chroma_format_string:Xt.getChromaFormatString(Zn),frame_rate:{fixed:ki,fps:Ii,fps_den:it,fps_num:Qi},sar_ratio:{width:ei,height:gi},codec_size:{width:dn,height:mr},present_size:{width:Kn,height:mr}}}},{key:"_skipScalingList",value:function(Fe,Pe){for(var Be=8,nt=8,vt=0,ar=0;ar<Pe;ar++)nt!==0&&(vt=Fe.readSEG(),nt=(Be+vt+256)%256),Be=nt===0?Be:nt}},{key:"getProfileString",value:function(Fe){switch(Fe){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}},{key:"getLevelString",value:function(Fe){return(Fe/10).toFixed(1)}},{key:"getChromaFormatString",value:function(Fe){switch(Fe){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}]),Xt}(),we=fe,Ne={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"},Ee=Ne;function de(Xt){return Xt>>>8&255|(Xt&255)<<8}function me(Xt){return(Xt&4278190080)>>>24|(Xt&16711680)>>>8|(Xt&65280)<<8|(Xt&255)<<24}function Le(Xt,_t){return Xt[_t]<<24|Xt[_t+1]<<16|Xt[_t+2]<<8|Xt[_t+3]}var tt=function(){function Xt(_t,Fe){Object(y.a)(this,Xt),this.TAG="FLVDemuxer",this._config=Fe,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=_t.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=_t.hasAudioTrack,this._hasVideo=_t.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new We,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){var Pe=new ArrayBuffer(2);return new DataView(Pe).setInt16(0,256,!0),new Int16Array(Pe)[0]===256}()}return Object(p.a)(Xt,[{key:"destroy",value:function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}},{key:"bindDataSource",value:function(Fe){return Fe.onDataArrival=this.parseChunks.bind(this),this}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(Fe){this._onTrackMetadata=Fe}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(Fe){this._onMediaInfo=Fe}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(Fe){this._onMetaDataArrived=Fe}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(Fe){this._onScriptDataArrived=Fe}},{key:"onError",get:function(){return this._onError},set:function(Fe){this._onError=Fe}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(Fe){this._onDataAvailable=Fe}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(Fe){this._timestampBase=Fe}},{key:"overridedDuration",get:function(){return this._duration},set:function(Fe){this._durationOverrided=!0,this._duration=Fe,this._mediaInfo.duration=Fe}},{key:"overridedHasAudio",set:function(Fe){this._hasAudioFlagOverrided=!0,this._hasAudio=Fe,this._mediaInfo.hasAudio=Fe}},{key:"overridedHasVideo",set:function(Fe){this._hasVideoFlagOverrided=!0,this._hasVideo=Fe,this._mediaInfo.hasVideo=Fe}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new We}},{key:"_isInitialMetadataDispatched",value:function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}},{key:"parseChunks",value:function(Fe,Pe){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new l("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var Be=0,nt=this._littleEndian;if(Pe===0)if(Fe.byteLength>13){var vt=Xt.probe(Fe);Be=vt.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,Pe+Be!==this._dataOffset&&u.w(this.TAG,"First time parsing but chunk byteStart invalid!");var ar=new DataView(Fe,Be),kr=ar.getUint32(0,!nt);kr!==0&&u.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Be+=4}for(;Be<Fe.byteLength;){this._dispatch=!0;var mn=new DataView(Fe,Be);if(Be+11+4>Fe.byteLength)break;var Zn=mn.getUint8(0),ni=mn.getUint32(0,!nt)&16777215;if(Be+11+ni+4>Fe.byteLength)break;if(Zn!==8&&Zn!==9&&Zn!==18){u.w(this.TAG,"Unsupported tag type ".concat(Zn,", skipped")),Be+=11+ni+4;continue}var ur=mn.getUint8(4),Nt=mn.getUint8(5),bt=mn.getUint8(6),gr=mn.getUint8(7),Yt=bt|Nt<<8|ur<<16|gr<<24,Pt=mn.getUint32(7,!nt)&16777215;Pt!==0&&u.w(this.TAG,"Meet tag which has StreamID != 0!");var rr=Be+11;switch(Zn){case 8:this._parseAudioData(Fe,rr,ni,Yt);break;case 9:this._parseVideoData(Fe,rr,ni,Yt,Pe+Be);break;case 18:this._parseScriptData(Fe,rr,ni);break}var Rt=mn.getUint32(11+ni,!nt);Rt!==11+ni&&u.w(this.TAG,"Invalid PrevTagSize ".concat(Rt)),Be+=11+ni+4}return this._isInitialMetadataDispatched()&&(this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack)),Be}},{key:"_parseScriptData",value:function(Fe,Pe,Be){var nt=J.parseScriptData(Fe,Pe,Be);if(nt.hasOwnProperty("onMetaData")){if(nt.onMetaData==null||typeof nt.onMetaData!="object"){u.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&u.w(this.TAG,"Found another onMetaData tag!"),this._metadata=nt;var vt=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},vt)),typeof vt.hasAudio=="boolean"&&(this._hasAudioFlagOverrided===!1&&(this._hasAudio=vt.hasAudio,this._mediaInfo.hasAudio=this._hasAudio)),typeof vt.hasVideo=="boolean"&&(this._hasVideoFlagOverrided===!1&&(this._hasVideo=vt.hasVideo,this._mediaInfo.hasVideo=this._hasVideo)),typeof vt.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=vt.audiodatarate),typeof vt.videodatarate=="number"&&(this._mediaInfo.videoDataRate=vt.videodatarate),typeof vt.width=="number"&&(this._mediaInfo.width=vt.width),typeof vt.height=="number"&&(this._mediaInfo.height=vt.height),typeof vt.duration=="number"){if(!this._durationOverrided){var ar=Math.floor(vt.duration*this._timescale);this._duration=ar,this._mediaInfo.duration=ar}}else this._mediaInfo.duration=0;if(typeof vt.framerate=="number"){var kr=Math.floor(vt.framerate*1e3);if(kr>0){var mn=kr/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=mn,this._referenceFrameRate.fps_num=kr,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=mn}}if(typeof vt.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var Zn=vt.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(Zn),vt.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=vt,u.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(nt).length>0&&(this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},nt)))}},{key:"_parseKeyframesIndex",value:function(Fe){for(var Pe=[],Be=[],nt=1;nt<Fe.times.length;nt++){var vt=this._timestampBase+Math.floor(Fe.times[nt]*1e3);Pe.push(vt),Be.push(Fe.filepositions[nt])}return{times:Pe,filepositions:Be}}},{key:"_parseAudioData",value:function(Fe,Pe,Be,nt){if(Be<=1){u.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;var vt=this._littleEndian,ar=new DataView(Fe,Pe,Be),kr=ar.getUint8(0),mn=kr>>>4;if(mn!==2&&mn!==10){this._onError(Ee.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+mn);return}var Zn=0,ni=(kr&12)>>>2;if(ni>=0&&ni<=4)Zn=this._flvSoundRateTable[ni];else{this._onError(Ee.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+ni);return}var ur=(kr&2)>>>1,Nt=kr&1,bt=this._audioMetadata,gr=this._audioTrack;if(bt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),bt=this._audioMetadata={},bt.type="audio",bt.id=gr.id,bt.timescale=this._timescale,bt.duration=this._duration,bt.audioSampleRate=Zn,bt.channelCount=Nt===0?1:2),mn===10){var Yt=this._parseAACAudioData(Fe,Pe+1,Be-1);if(Yt==null)return;if(Yt.packetType===0){bt.config&&u.w(this.TAG,"Found another AudioSpecificConfig!");var Pt=Yt.data;bt.audioSampleRate=Pt.samplingRate,bt.channelCount=Pt.channelCount,bt.codec=Pt.codec,bt.originalCodec=Pt.originalCodec,bt.config=Pt.config,bt.refSampleDuration=1024/bt.audioSampleRate*bt.timescale,u.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",bt);var rr=this._mediaInfo;rr.audioCodec=bt.originalCodec,rr.audioSampleRate=bt.audioSampleRate,rr.audioChannelCount=bt.channelCount,rr.hasVideo?rr.videoCodec!=null&&(rr.mimeType='video/x-flv; codecs="'+rr.videoCodec+","+rr.audioCodec+'"'):rr.mimeType='video/x-flv; codecs="'+rr.audioCodec+'"',rr.isComplete()&&this._onMediaInfo(rr)}else if(Yt.packetType===1){var Rt=this._timestampBase+nt,qt={unit:Yt.data,length:Yt.data.byteLength,dts:Rt,pts:Rt};gr.samples.push(qt),gr.length+=Yt.data.length}else u.e(this.TAG,"Flv: Unsupported AAC data type ".concat(Yt.packetType))}else if(mn===2){if(!bt.codec){var Yr=this._parseMP3AudioData(Fe,Pe+1,Be-1,!0);if(Yr==null)return;bt.audioSampleRate=Yr.samplingRate,bt.channelCount=Yr.channelCount,bt.codec=Yr.codec,bt.originalCodec=Yr.originalCodec,bt.refSampleDuration=1152/bt.audioSampleRate*bt.timescale,u.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",bt);var Mr=this._mediaInfo;Mr.audioCodec=bt.codec,Mr.audioSampleRate=bt.audioSampleRate,Mr.audioChannelCount=bt.channelCount,Mr.audioDataRate=Yr.bitRate,Mr.hasVideo?Mr.videoCodec!=null&&(Mr.mimeType='video/x-flv; codecs="'+Mr.videoCodec+","+Mr.audioCodec+'"'):Mr.mimeType='video/x-flv; codecs="'+Mr.audioCodec+'"',Mr.isComplete()&&this._onMediaInfo(Mr)}var Dr=this._parseMP3AudioData(Fe,Pe+1,Be-1,!1);if(Dr==null)return;var un=this._timestampBase+nt,wn={unit:Dr,length:Dr.byteLength,dts:un,pts:un};gr.samples.push(wn),gr.length+=Dr.length}}},{key:"_parseAACAudioData",value:function(Fe,Pe,Be){if(Be<=1){u.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var nt={},vt=new Uint8Array(Fe,Pe,Be);return nt.packetType=vt[0],vt[0]===0?nt.data=this._parseAACAudioSpecificConfig(Fe,Pe+1,Be-1):nt.data=vt.subarray(1),nt}},{key:"_parseAACAudioSpecificConfig",value:function(Fe,Pe,Be){var nt=new Uint8Array(Fe,Pe,Be),vt=null,ar=0,kr=0,mn=null,Zn=0,ni=null;if(ar=kr=nt[0]>>>3,Zn=(nt[0]&7)<<1|nt[1]>>>7,Zn<0||Zn>=this._mpegSamplingRates.length){this._onError(Ee.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var ur=this._mpegSamplingRates[Zn],Nt=(nt[1]&120)>>>3;if(Nt<0||Nt>=8){this._onError(Ee.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}ar===5&&(ni=(nt[1]&7)<<1|nt[2]>>>7,mn=(nt[2]&124)>>>2);var bt=self.navigator.userAgent.toLowerCase();return bt.indexOf("firefox")!==-1?Zn>=6?(ar=5,vt=new Array(4),ni=Zn-3):(ar=2,vt=new Array(2),ni=Zn):bt.indexOf("android")!==-1?(ar=2,vt=new Array(2),ni=Zn):(ar=5,ni=Zn,vt=new Array(4),Zn>=6?ni=Zn-3:Nt===1&&(ar=2,vt=new Array(2),ni=Zn)),vt[0]=ar<<3,vt[0]|=(Zn&15)>>>1,vt[1]=(Zn&15)<<7,vt[1]|=(Nt&15)<<3,ar===5&&(vt[1]|=(ni&15)>>>1,vt[2]=(ni&1)<<7,vt[2]|=2<<2,vt[3]=0),{config:vt,samplingRate:ur,channelCount:Nt,codec:"mp4a.40."+ar,originalCodec:"mp4a.40."+kr}}},{key:"_parseMP3AudioData",value:function(Fe,Pe,Be,nt){if(Be<4){u.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}var vt=this._littleEndian,ar=new Uint8Array(Fe,Pe,Be),kr=null;if(nt){if(ar[0]!==255)return;var mn=ar[1]>>>3&3,Zn=(ar[1]&6)>>1,ni=(ar[2]&240)>>>4,ur=(ar[2]&12)>>>2,Nt=ar[3]>>>6&3,bt=Nt!==3?2:1,gr=0,Yt=0,Pt=34,rr="mp3";switch(mn){case 0:gr=this._mpegAudioV25SampleRateTable[ur];break;case 2:gr=this._mpegAudioV20SampleRateTable[ur];break;case 3:gr=this._mpegAudioV10SampleRateTable[ur];break}switch(Zn){case 1:Pt=34,ni<this._mpegAudioL3BitRateTable.length&&(Yt=this._mpegAudioL3BitRateTable[ni]);break;case 2:Pt=33,ni<this._mpegAudioL2BitRateTable.length&&(Yt=this._mpegAudioL2BitRateTable[ni]);break;case 3:Pt=32,ni<this._mpegAudioL1BitRateTable.length&&(Yt=this._mpegAudioL1BitRateTable[ni]);break}kr={bitRate:Yt,samplingRate:gr,channelCount:bt,codec:rr,originalCodec:rr}}else kr=ar;return kr}},{key:"_parseVideoData",value:function(Fe,Pe,Be,nt,vt){if(Be<=1){u.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;var ar=new Uint8Array(Fe,Pe,Be)[0],kr=(ar&240)>>>4,mn=ar&15;if(mn!==7){this._onError(Ee.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(mn));return}this._parseAVCVideoPacket(Fe,Pe+1,Be-1,nt,vt,kr)}},{key:"_parseAVCVideoPacket",value:function(Fe,Pe,Be,nt,vt,ar){if(Be<4){u.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var kr=this._littleEndian,mn=new DataView(Fe,Pe,Be),Zn=mn.getUint8(0),ni=mn.getUint32(0,!kr)&16777215,ur=ni<<8>>8;if(Zn===0)this._parseAVCDecoderConfigurationRecord(Fe,Pe+4,Be-4);else if(Zn===1)this._parseAVCVideoData(Fe,Pe+4,Be-4,nt,vt,ar,ur);else if(!(Zn===2)){this._onError(Ee.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(Zn));return}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(Fe,Pe,Be){if(Be<7){u.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var nt=this._videoMetadata,vt=this._videoTrack,ar=this._littleEndian,kr=new DataView(Fe,Pe,Be);nt?typeof nt.avcc!="undefined"&&u.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),nt=this._videoMetadata={},nt.type="video",nt.id=vt.id,nt.timescale=this._timescale,nt.duration=this._duration);var mn=kr.getUint8(0),Zn=kr.getUint8(1),ni=kr.getUint8(2),ur=kr.getUint8(3);if(mn!==1||Zn===0){this._onError(Ee.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(kr.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Ee.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));return}var Nt=kr.getUint8(5)&31;if(Nt===0){this._onError(Ee.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Nt>1&&u.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(Nt));for(var bt=6,gr=0;gr<Nt;gr++){var Yt=kr.getUint16(bt,!ar);if(bt+=2,Yt===0)continue;var Pt=new Uint8Array(Fe,Pe+bt,Yt);bt+=Yt;var rr=we.parseSPS(Pt);if(gr!==0)continue;nt.codecWidth=rr.codec_size.width,nt.codecHeight=rr.codec_size.height,nt.presentWidth=rr.present_size.width,nt.presentHeight=rr.present_size.height,nt.profile=rr.profile_string,nt.level=rr.level_string,nt.bitDepth=rr.bit_depth,nt.chromaFormat=rr.chroma_format,nt.sarRatio=rr.sar_ratio,nt.frameRate=rr.frame_rate,(rr.frame_rate.fixed===!1||rr.frame_rate.fps_num===0||rr.frame_rate.fps_den===0)&&(nt.frameRate=this._referenceFrameRate);var Rt=nt.frameRate.fps_den,qt=nt.frameRate.fps_num;nt.refSampleDuration=nt.timescale*(Rt/qt);for(var Yr=Pt.subarray(1,4),Mr="avc1.",Dr=0;Dr<3;Dr++){var un=Yr[Dr].toString(16);un.length<2&&(un="0"+un),Mr+=un}nt.codec=Mr;var wn=this._mediaInfo;wn.width=nt.codecWidth,wn.height=nt.codecHeight,wn.fps=nt.frameRate.fps,wn.profile=nt.profile,wn.level=nt.level,wn.refFrames=rr.ref_frames,wn.chromaFormat=rr.chroma_format_string,wn.sarNum=nt.sarRatio.width,wn.sarDen=nt.sarRatio.height,wn.videoCodec=Mr,wn.hasAudio?wn.audioCodec!=null&&(wn.mimeType='video/x-flv; codecs="'+wn.videoCodec+","+wn.audioCodec+'"'):wn.mimeType='video/x-flv; codecs="'+wn.videoCodec+'"',wn.isComplete()&&this._onMediaInfo(wn)}var ai=kr.getUint8(bt);if(ai===0){this._onError(Ee.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else ai>1&&u.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(ai));bt++;for(var ei=0;ei<ai;ei++){var gi=kr.getUint16(bt,!ar);if(bt+=2,gi===0)continue;bt+=gi}nt.avcc=new Uint8Array(Be),nt.avcc.set(new Uint8Array(Fe,Pe,Be),0),u.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",nt)}},{key:"_parseAVCVideoData",value:function(Fe,Pe,Be,nt,vt,ar,kr){for(var mn=this._littleEndian,Zn=new DataView(Fe,Pe,Be),ni=[],ur=0,Nt=0,bt=this._naluLengthSize,gr=this._timestampBase+nt,Yt=ar===1;Nt<Be;){if(Nt+4>=Be){u.w(this.TAG,"Malformed Nalu near timestamp ".concat(gr,", offset = ").concat(Nt,", dataSize = ").concat(Be));break}var Pt=Zn.getUint32(Nt,!mn);if(bt===3&&(Pt>>>=8),Pt>Be-bt){u.w(this.TAG,"Malformed Nalus near timestamp ".concat(gr,", NaluSize > DataSize!"));return}var rr=Zn.getUint8(Nt+bt)&31;rr===5&&(Yt=!0);var Rt=new Uint8Array(Fe,Pe+Nt,bt+Pt),qt={type:rr,data:Rt};ni.push(qt),ur+=Rt.byteLength,Nt+=bt+Pt}if(ni.length){var Yr=this._videoTrack,Mr={units:ni,length:ur,isKeyframe:Yt,dts:gr,cts:kr,pts:gr+kr};Yt&&(Mr.fileposition=vt),Yr.samples.push(Mr),Yr.length+=ur}}}],[{key:"probe",value:function(Fe){var Pe=new Uint8Array(Fe),Be={match:!1};if(Pe[0]!==70||Pe[1]!==76||Pe[2]!==86||Pe[3]!==1)return Be;var nt=(Pe[4]&4)>>>2!==0,vt=(Pe[4]&1)!==0,ar=Le(Pe,5);return ar<9?Be:{match:!0,consumed:ar,dataOffset:ar,hasAudioTrack:nt,hasVideoTrack:vt}}}]),Xt}(),At=tt,ht=function(){function Xt(){Object(y.a)(this,Xt)}return Object(p.a)(Xt,null,[{key:"init",value:function(){Xt.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(var Fe in Xt.types)Xt.types.hasOwnProperty(Fe)&&(Xt.types[Fe]=[Fe.charCodeAt(0),Fe.charCodeAt(1),Fe.charCodeAt(2),Fe.charCodeAt(3)]);var Pe=Xt.constants={};Pe.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),Pe.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),Pe.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),Pe.STSC=Pe.STCO=Pe.STTS,Pe.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Pe.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),Pe.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),Pe.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Pe.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Pe.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(Fe){for(var Pe=8,Be=null,nt=Array.prototype.slice.call(arguments,1),vt=nt.length,ar=0;ar<vt;ar++)Pe+=nt[ar].byteLength;Be=new Uint8Array(Pe),Be[0]=Pe>>>24&255,Be[1]=Pe>>>16&255,Be[2]=Pe>>>8&255,Be[3]=Pe&255,Be.set(Fe,4);for(var kr=8,mn=0;mn<vt;mn++)Be.set(nt[mn],kr),kr+=nt[mn].byteLength;return Be}},{key:"generateInitSegment",value:function(Fe){var Pe=Xt.box(Xt.types.ftyp,Xt.constants.FTYP),Be=Xt.moov(Fe),nt=new Uint8Array(Pe.byteLength+Be.byteLength);return nt.set(Pe,0),nt.set(Be,Pe.byteLength),nt}},{key:"moov",value:function(Fe){var Pe=Xt.mvhd(Fe.timescale,Fe.duration),Be=Xt.trak(Fe),nt=Xt.mvex(Fe);return Xt.box(Xt.types.moov,Pe,Be,nt)}},{key:"mvhd",value:function(Fe,Pe){return Xt.box(Xt.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,Fe>>>24&255,Fe>>>16&255,Fe>>>8&255,Fe&255,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}},{key:"trak",value:function(Fe){return Xt.box(Xt.types.trak,Xt.tkhd(Fe),Xt.mdia(Fe))}},{key:"tkhd",value:function(Fe){var Pe=Fe.id,Be=Fe.duration,nt=Fe.presentWidth,vt=Fe.presentHeight;return Xt.box(Xt.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255,0,0,0,0,Be>>>24&255,Be>>>16&255,Be>>>8&255,Be&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,nt>>>8&255,nt&255,0,0,vt>>>8&255,vt&255,0,0]))}},{key:"mdia",value:function(Fe){return Xt.box(Xt.types.mdia,Xt.mdhd(Fe),Xt.hdlr(Fe),Xt.minf(Fe))}},{key:"mdhd",value:function(Fe){var Pe=Fe.timescale,Be=Fe.duration;return Xt.box(Xt.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255,Be>>>24&255,Be>>>16&255,Be>>>8&255,Be&255,85,196,0,0]))}},{key:"hdlr",value:function(Fe){var Pe=null;return Fe.type==="audio"?Pe=Xt.constants.HDLR_AUDIO:Pe=Xt.constants.HDLR_VIDEO,Xt.box(Xt.types.hdlr,Pe)}},{key:"minf",value:function(Fe){var Pe=null;return Fe.type==="audio"?Pe=Xt.box(Xt.types.smhd,Xt.constants.SMHD):Pe=Xt.box(Xt.types.vmhd,Xt.constants.VMHD),Xt.box(Xt.types.minf,Pe,Xt.dinf(),Xt.stbl(Fe))}},{key:"dinf",value:function(){var Fe=Xt.box(Xt.types.dinf,Xt.box(Xt.types.dref,Xt.constants.DREF));return Fe}},{key:"stbl",value:function(Fe){var Pe=Xt.box(Xt.types.stbl,Xt.stsd(Fe),Xt.box(Xt.types.stts,Xt.constants.STTS),Xt.box(Xt.types.stsc,Xt.constants.STSC),Xt.box(Xt.types.stsz,Xt.constants.STSZ),Xt.box(Xt.types.stco,Xt.constants.STCO));return Pe}},{key:"stsd",value:function(Fe){return Fe.type==="audio"?Fe.codec==="mp3"?Xt.box(Xt.types.stsd,Xt.constants.STSD_PREFIX,Xt.mp3(Fe)):Xt.box(Xt.types.stsd,Xt.constants.STSD_PREFIX,Xt.mp4a(Fe)):Xt.box(Xt.types.stsd,Xt.constants.STSD_PREFIX,Xt.avc1(Fe))}},{key:"mp3",value:function(Fe){var Pe=Fe.channelCount,Be=Fe.audioSampleRate,nt=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Pe,0,16,0,0,0,0,Be>>>8&255,Be&255,0,0]);return Xt.box(Xt.types[".mp3"],nt)}},{key:"mp4a",value:function(Fe){var Pe=Fe.channelCount,Be=Fe.audioSampleRate,nt=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Pe,0,16,0,0,0,0,Be>>>8&255,Be&255,0,0]);return Xt.box(Xt.types.mp4a,nt,Xt.esds(Fe))}},{key:"esds",value:function(Fe){var Pe=Fe.config||[],Be=Pe.length,nt=new Uint8Array([0,0,0,0,3,23+Be,0,1,0,4,15+Be,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([Be]).concat(Pe).concat([6,1,2]));return Xt.box(Xt.types.esds,nt)}},{key:"avc1",value:function(Fe){var Pe=Fe.avcc,Be=Fe.codecWidth,nt=Fe.codecHeight,vt=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,Be>>>8&255,Be&255,nt>>>8&255,nt&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return Xt.box(Xt.types.avc1,vt,Xt.box(Xt.types.avcC,Pe))}},{key:"mvex",value:function(Fe){return Xt.box(Xt.types.mvex,Xt.trex(Fe))}},{key:"trex",value:function(Fe){var Pe=Fe.id,Be=new Uint8Array([0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return Xt.box(Xt.types.trex,Be)}},{key:"moof",value:function(Fe,Pe){return Xt.box(Xt.types.moof,Xt.mfhd(Fe.sequenceNumber),Xt.traf(Fe,Pe))}},{key:"mfhd",value:function(Fe){var Pe=new Uint8Array([0,0,0,0,Fe>>>24&255,Fe>>>16&255,Fe>>>8&255,Fe&255]);return Xt.box(Xt.types.mfhd,Pe)}},{key:"traf",value:function(Fe,Pe){var Be=Fe.id,nt=Xt.box(Xt.types.tfhd,new Uint8Array([0,0,0,0,Be>>>24&255,Be>>>16&255,Be>>>8&255,Be&255])),vt=Xt.box(Xt.types.tfdt,new Uint8Array([0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255])),ar=Xt.sdtp(Fe),kr=Xt.trun(Fe,ar.byteLength+16+16+8+16+8+8);return Xt.box(Xt.types.traf,nt,vt,kr,ar)}},{key:"sdtp",value:function(Fe){for(var Pe=Fe.samples||[],Be=Pe.length,nt=new Uint8Array(4+Be),vt=0;vt<Be;vt++){var ar=Pe[vt].flags;nt[vt+4]=ar.isLeading<<6|ar.dependsOn<<4|ar.isDependedOn<<2|ar.hasRedundancy}return Xt.box(Xt.types.sdtp,nt)}},{key:"trun",value:function(Fe,Pe){var Be=Fe.samples||[],nt=Be.length,vt=12+16*nt,ar=new Uint8Array(vt);Pe+=8+vt,ar.set([0,0,15,1,nt>>>24&255,nt>>>16&255,nt>>>8&255,nt&255,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255],0);for(var kr=0;kr<nt;kr++){var mn=Be[kr].duration,Zn=Be[kr].size,ni=Be[kr].flags,ur=Be[kr].cts;ar.set([mn>>>24&255,mn>>>16&255,mn>>>8&255,mn&255,Zn>>>24&255,Zn>>>16&255,Zn>>>8&255,Zn&255,ni.isLeading<<2|ni.dependsOn,ni.isDependedOn<<6|ni.hasRedundancy<<4|ni.isNonSync,0,0,ur>>>24&255,ur>>>16&255,ur>>>8&255,ur&255],12+16*kr)}return Xt.box(Xt.types.trun,ar)}},{key:"mdat",value:function(Fe){return Xt.box(Xt.types.mdat,Fe)}}]),Xt}();ht.init();var Ke=ht,Jt=function(){function Xt(){Object(y.a)(this,Xt)}return Object(p.a)(Xt,null,[{key:"getSilentFrame",value:function(Fe,Pe){if(Fe==="mp4a.40.2"){if(Pe===1)return new Uint8Array([0,200,0,128,35,128]);if(Pe===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(Pe===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(Pe===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(Pe===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(Pe===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(Pe===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(Pe===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(Pe===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}]),Xt}(),ct=Jt,Gt=Object(p.a)(function Xt(_t,Fe,Pe,Be,nt){Object(y.a)(this,Xt),this.dts=_t,this.pts=Fe,this.duration=Pe,this.originalDts=Be,this.isSyncPoint=nt,this.fileposition=null}),dr=function(){function Xt(){Object(y.a)(this,Xt),this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}return Object(p.a)(Xt,[{key:"appendSyncPoint",value:function(Fe){Fe.isSyncPoint=!0,this.syncPoints.push(Fe)}}]),Xt}(),zt=function(){function Xt(){Object(y.a)(this,Xt),this._list=[]}return Object(p.a)(Xt,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(Fe){var Pe=this._list;if(Fe.length===0)return;Pe.length>0&&Fe[0].originalDts<Pe[Pe.length-1].originalDts&&this.clear(),Array.prototype.push.apply(Pe,Fe)}},{key:"getLastSyncPointBeforeDts",value:function(Fe){if(this._list.length==0)return null;var Pe=this._list,Be=0,nt=Pe.length-1,vt=0,ar=0,kr=nt;for(Fe<Pe[0].dts&&(Be=0,ar=kr+1);ar<=kr;)if(vt=ar+Math.floor((kr-ar)/2),vt===nt||Fe>=Pe[vt].dts&&Fe<Pe[vt+1].dts){Be=vt;break}else Pe[vt].dts<Fe?ar=vt+1:kr=vt-1;return this._list[Be]}}]),Xt}(),kt=function(){function Xt(_t){Object(y.a)(this,Xt),this._type=_t,this._list=[],this._lastAppendLocation=-1}return Object(p.a)(Xt,[{key:"type",get:function(){return this._type}},{key:"length",get:function(){return this._list.length}},{key:"isEmpty",value:function(){return this._list.length===0}},{key:"clear",value:function(){this._list=[],this._lastAppendLocation=-1}},{key:"_searchNearestSegmentBefore",value:function(Fe){var Pe=this._list;if(Pe.length===0)return-2;var Be=Pe.length-1,nt=0,vt=0,ar=Be,kr=0;if(Fe<Pe[0].originalBeginDts)return kr=-1,kr;for(;vt<=ar;)if(nt=vt+Math.floor((ar-vt)/2),nt===Be||Fe>Pe[nt].lastSample.originalDts&&Fe<Pe[nt+1].originalBeginDts){kr=nt;break}else Pe[nt].originalBeginDts<Fe?vt=nt+1:ar=nt-1;return kr}},{key:"_searchNearestSegmentAfter",value:function(Fe){return this._searchNearestSegmentBefore(Fe)+1}},{key:"append",value:function(Fe){var Pe=this._list,Be=Fe,nt=this._lastAppendLocation,vt=0;nt!==-1&&nt<Pe.length&&Be.originalBeginDts>=Pe[nt].lastSample.originalDts&&(nt===Pe.length-1||nt<Pe.length-1&&Be.originalBeginDts<Pe[nt+1].originalBeginDts)?vt=nt+1:Pe.length>0&&(vt=this._searchNearestSegmentBefore(Be.originalBeginDts)+1),this._lastAppendLocation=vt,this._list.splice(vt,0,Be)}},{key:"getLastSegmentBefore",value:function(Fe){var Pe=this._searchNearestSegmentBefore(Fe);return Pe>=0?this._list[Pe]:null}},{key:"getLastSampleBefore",value:function(Fe){var Pe=this.getLastSegmentBefore(Fe);return Pe!=null?Pe.lastSample:null}},{key:"getLastSyncPointBefore",value:function(Fe){for(var Pe=this._searchNearestSegmentBefore(Fe),Be=this._list[Pe].syncPoints;Be.length===0&&Pe>0;)Pe--,Be=this._list[Pe].syncPoints;return Be.length>0?Be[Be.length-1]:null}}]),Xt}(),Vt=function(){function Xt(_t){Object(y.a)(this,Xt),this.TAG="MP4Remuxer",this._config=_t,this._isLive=_t.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=Infinity,this._videoDtsBase=Infinity,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new kt("audio"),this._videoSegmentInfoList=new kt("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(C.chrome&&(C.version.major<50||C.version.major===50&&C.version.build<2661)),this._fillSilentAfterSeek=C.msedge||C.msie,this._mp3UseMpegAudio=!C.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return Object(p.a)(Xt,[{key:"destroy",value:function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}},{key:"bindDataSource",value:function(Fe){return Fe.onDataAvailable=this.remux.bind(this),Fe.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(Fe){this._onInitSegment=Fe}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(Fe){this._onMediaSegment=Fe}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(Fe){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(Fe,Pe){if(!this._onMediaSegment)throw new l("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(Fe,Pe),this._remuxVideo(Pe),this._remuxAudio(Fe)}},{key:"_onTrackMetadataReceived",value:function(Fe,Pe){var Be=null,nt="mp4",vt=Pe.codec;if(Fe==="audio")this._audioMeta=Pe,Pe.codec==="mp3"&&this._mp3UseMpegAudio?(nt="mpeg",vt="",Be=new Uint8Array):Be=Ke.generateInitSegment(Pe);else if(Fe==="video")this._videoMeta=Pe,Be=Ke.generateInitSegment(Pe);else return;if(!this._onInitSegment)throw new l("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(Fe,{type:Fe,data:Be.buffer,codec:vt,container:"".concat(Fe,"/").concat(nt),mediaDuration:Pe.duration})}},{key:"_calculateDtsBase",value:function(Fe,Pe){if(this._dtsBaseInited)return;Fe.samples&&Fe.samples.length&&(this._audioDtsBase=Fe.samples[0].dts),Pe.samples&&Pe.samples.length&&(this._videoDtsBase=Pe.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0}},{key:"flushStashedSamples",value:function(){var Fe=this._videoStashedLastSample,Pe=this._audioStashedLastSample,Be={type:"video",id:1,sequenceNumber:0,samples:[],length:0};Fe!=null&&(Be.samples.push(Fe),Be.length=Fe.length);var nt={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};Pe!=null&&(nt.samples.push(Pe),nt.length=Pe.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Be,!0),this._remuxAudio(nt,!0)}},{key:"_remuxAudio",value:function(Fe,Pe){if(this._audioMeta==null)return;var Be=Fe,nt=Be.samples,vt=void 0,ar=-1,kr=-1,mn=-1,Zn=this._audioMeta.refSampleDuration,ni=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,ur=this._dtsBaseInited&&this._audioNextDts===void 0,Nt=!1;if(!nt||nt.length===0)return;if(nt.length===1&&!Pe)return;var bt=0,gr=null,Yt=0;ni?(bt=0,Yt=Be.length):(bt=8,Yt=8+Be.length);var Pt=null;if(nt.length>1&&(Pt=nt.pop(),Yt-=Pt.length),this._audioStashedLastSample!=null){var rr=this._audioStashedLastSample;this._audioStashedLastSample=null,nt.unshift(rr),Yt+=rr.length}Pt!=null&&(this._audioStashedLastSample=Pt);var Rt=nt[0].dts-this._dtsBase;if(this._audioNextDts)vt=Rt-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())vt=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&(this._audioMeta.originalCodec!=="mp3"&&(Nt=!0));else{var qt=this._audioSegmentInfoList.getLastSampleBefore(Rt);if(qt!=null){var Yr=Rt-(qt.originalDts+qt.duration);Yr<=3&&(Yr=0);var Mr=qt.dts+qt.duration+Yr;vt=Rt-Mr}else vt=0}if(Nt){var Dr=Rt-vt,un=this._videoSegmentInfoList.getLastSegmentBefore(Rt);if(un!=null&&un.beginDts<Dr){var wn=ct.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(wn){var ai=un.beginDts,ei=Dr-un.beginDts;u.v(this.TAG,"InsertPrefixSilentAudio: dts: ".concat(ai,", duration: ").concat(ei)),nt.unshift({unit:wn,dts:ai,pts:ai}),Yt+=wn.byteLength}}else Nt=!1}for(var gi=[],Ii=0;Ii<nt.length;Ii++){var ki=nt[Ii],Qi=ki.unit,it=ki.dts-this._dtsBase,Me=it-vt;ar===-1&&(ar=Me);var je=0;if(Ii!==nt.length-1){var Ye=nt[Ii+1].dts-this._dtsBase-vt;je=Ye-Me}else if(Pt!=null){var rt=Pt.dts-this._dtsBase-vt;je=rt-Me}else gi.length>=1?je=gi[gi.length-1].duration:je=Math.floor(Zn);var qe=!1,at=null;if(je>Zn*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!C.safari){qe=!0;var St=Math.abs(je-Zn),gt=Math.ceil(St/Zn),hr=Me+Zn;u.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
|
|
|
`+"dts: ".concat(Me+je," ms, expected: ").concat(Me+Math.round(Zn)," ms, ")+"delta: ".concat(Math.round(St)," ms, generate: ").concat(gt," frames"));var Qr=ct.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Qr==null&&(u.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),Qr=Qi),at=[];for(var Xr=0;Xr<gt;Xr++){var dn=Math.round(hr);if(at.length>0){var mr=at[at.length-1];mr.duration=dn-mr.dts}var Kn={dts:dn,pts:dn,cts:0,unit:Qr,size:Qr.byteLength,duration:0,originalDts:it,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};at.push(Kn),Yt+=Kn.size,hr+=Zn}var Rr=at[at.length-1];Rr.duration=Me+je-Rr.dts,je=Math.round(Zn)}gi.push({dts:Me,pts:Me,cts:0,unit:ki.unit,size:ki.unit.byteLength,duration:je,originalDts:it,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),qe&&gi.push.apply(gi,at)}ni?gr=new Uint8Array(Yt):(gr=new Uint8Array(Yt),gr[0]=Yt>>>24&255,gr[1]=Yt>>>16&255,gr[2]=Yt>>>8&255,gr[3]=Yt&255,gr.set(Ke.types.mdat,4));for(var Rn=0;Rn<gi.length;Rn++){var An=gi[Rn].unit;gr.set(An,bt),bt+=An.byteLength}var Zr=gi[gi.length-1];kr=Zr.dts+Zr.duration,this._audioNextDts=kr;var hi=new dr;hi.beginDts=ar,hi.endDts=kr,hi.beginPts=ar,hi.endPts=kr,hi.originalBeginDts=gi[0].originalDts,hi.originalEndDts=Zr.originalDts+Zr.duration,hi.firstSample=new Gt(gi[0].dts,gi[0].pts,gi[0].duration,gi[0].originalDts,!1),hi.lastSample=new Gt(Zr.dts,Zr.pts,Zr.duration,Zr.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(hi),Be.samples=gi,Be.sequenceNumber++;var Mi=null;ni?Mi=new Uint8Array:Mi=Ke.moof(Be,ar),Be.samples=[],Be.length=0;var Zi={type:"audio",data:this._mergeBoxes(Mi,gr).buffer,sampleCount:gi.length,info:hi};ni&&ur&&(Zi.timestampOffset=ar),this._onMediaSegment("audio",Zi)}},{key:"_remuxVideo",value:function(Fe,Pe){if(this._videoMeta==null)return;var Be=Fe,nt=Be.samples,vt=void 0,ar=-1,kr=-1,mn=-1,Zn=-1;if(!nt||nt.length===0)return;if(nt.length===1&&!Pe)return;var ni=8,ur=null,Nt=8+Fe.length,bt=null;if(nt.length>1&&(bt=nt.pop(),Nt-=bt.length),this._videoStashedLastSample!=null){var gr=this._videoStashedLastSample;this._videoStashedLastSample=null,nt.unshift(gr),Nt+=gr.length}bt!=null&&(this._videoStashedLastSample=bt);var Yt=nt[0].dts-this._dtsBase;if(this._videoNextDts)vt=Yt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())vt=0;else{var Pt=this._videoSegmentInfoList.getLastSampleBefore(Yt);if(Pt!=null){var rr=Yt-(Pt.originalDts+Pt.duration);rr<=3&&(rr=0);var Rt=Pt.dts+Pt.duration+rr;vt=Yt-Rt}else vt=0}for(var qt=new dr,Yr=[],Mr=0;Mr<nt.length;Mr++){var Dr=nt[Mr],un=Dr.dts-this._dtsBase,wn=Dr.isKeyframe,ai=un-vt,ei=Dr.cts,gi=ai+ei;ar===-1&&(ar=ai,mn=gi);var Ii=0;if(Mr!==nt.length-1){var ki=nt[Mr+1].dts-this._dtsBase-vt;Ii=ki-ai}else if(bt!=null){var Qi=bt.dts-this._dtsBase-vt;Ii=Qi-ai}else Yr.length>=1?Ii=Yr[Yr.length-1].duration:Ii=Math.floor(this._videoMeta.refSampleDuration);if(wn){var it=new Gt(ai,gi,Ii,Dr.dts,!0);it.fileposition=Dr.fileposition,qt.appendSyncPoint(it)}Yr.push({dts:ai,pts:gi,cts:ei,units:Dr.units,size:Dr.length,isKeyframe:wn,duration:Ii,originalDts:un,flags:{isLeading:0,dependsOn:wn?2:1,isDependedOn:wn?1:0,hasRedundancy:0,isNonSync:wn?0:1}})}ur=new Uint8Array(Nt),ur[0]=Nt>>>24&255,ur[1]=Nt>>>16&255,ur[2]=Nt>>>8&255,ur[3]=Nt&255,ur.set(Ke.types.mdat,4);for(var Me=0;Me<Yr.length;Me++)for(var je=Yr[Me].units;je.length;){var Ye=je.shift(),rt=Ye.data;ur.set(rt,ni),ni+=rt.byteLength}var qe=Yr[Yr.length-1];if(kr=qe.dts+qe.duration,Zn=qe.pts+qe.duration,this._videoNextDts=kr,qt.beginDts=ar,qt.endDts=kr,qt.beginPts=mn,qt.endPts=Zn,qt.originalBeginDts=Yr[0].originalDts,qt.originalEndDts=qe.originalDts+qe.duration,qt.firstSample=new Gt(Yr[0].dts,Yr[0].pts,Yr[0].duration,Yr[0].originalDts,Yr[0].isKeyframe),qt.lastSample=new Gt(qe.dts,qe.pts,qe.duration,qe.originalDts,qe.isKeyframe),this._isLive||this._videoSegmentInfoList.append(qt),Be.samples=Yr,Be.sequenceNumber++,this._forceFirstIDR){var at=Yr[0].flags;at.dependsOn=2,at.isNonSync=0}var St=Ke.moof(Be,ar);Be.samples=[],Be.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(St,ur).buffer,sampleCount:Yr.length,info:qt})}},{key:"_mergeBoxes",value:function(Fe,Pe){var Be=new Uint8Array(Fe.byteLength+Pe.byteLength);return Be.set(Fe,0),Be.set(Pe,Fe.byteLength),Be}}]),Xt}(),Xe=Vt,pe={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"},te=pe,$e=function(){function Xt(_t,Fe){Object(y.a)(this,Xt),this.TAG="TransmuxingController",this._emitter=new f.a,this._config=Fe,_t.segments||(_t.segments=[{duration:_t.duration,filesize:_t.filesize,url:_t.url}]),typeof _t.cors!="boolean"&&(_t.cors=!0),typeof _t.withCredentials!="boolean"&&(_t.withCredentials=!1),this._mediaDataSource=_t,this._currentSegmentIndex=0;var Pe=0;this._mediaDataSource.segments.forEach(function(Be){Be.timestampBase=Pe,Pe+=Be.duration,Be.cors=_t.cors,Be.withCredentials=_t.withCredentials,Fe.referrerPolicy&&(Be.referrerPolicy=Fe.referrerPolicy)}),!isNaN(Pe)&&this._mediaDataSource.duration!==Pe&&(this._mediaDataSource.duration=Pe),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return Object(p.a)(Xt,[{key:"destroy",value:function(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Fe,Pe){this._emitter.addListener(Fe,Pe)}},{key:"off",value:function(Fe,Pe){this._emitter.removeListener(Fe,Pe)}},{key:"start",value:function(){this._loadSegment(0),this._enableStatisticsReporter()}},{key:"_loadSegment",value:function(Fe,Pe){this._currentSegmentIndex=Fe;var Be=this._mediaDataSource.segments[Fe],nt=this._ioctl=new Q(Be,this._config,Fe);nt.onError=this._onIOException.bind(this),nt.onSeeked=this._onIOSeeked.bind(this),nt.onComplete=this._onIOComplete.bind(this),nt.onRedirect=this._onIORedirect.bind(this),nt.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),Pe?this._demuxer.bindDataSource(this._ioctl):nt.onDataArrival=this._onInitChunkArrival.bind(this),nt.open(Pe)}},{key:"stop",value:function(){this._internalAbort(),this._disableStatisticsReporter()}},{key:"_internalAbort",value:function(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}},{key:"pause",value:function(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}},{key:"resume",value:function(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}},{key:"seek",value:function(Fe){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;var Pe=this._searchSegmentIndexContains(Fe);if(Pe===this._currentSegmentIndex){var Be=this._mediaInfo.segments[Pe];if(Be==null)this._pendingSeekTime=Fe;else{var nt=Be.getNearestKeyframe(Fe);this._remuxer.seek(nt.milliseconds),this._ioctl.seek(nt.fileposition),this._pendingResolveSeekPoint=nt.milliseconds}}else{var vt=this._mediaInfo.segments[Pe];if(vt==null)this._pendingSeekTime=Fe,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(Pe);else{var ar=vt.getNearestKeyframe(Fe);this._internalAbort(),this._remuxer.seek(Fe),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[Pe].timestampBase,this._loadSegment(Pe,ar.fileposition),this._pendingResolveSeekPoint=ar.milliseconds,this._reportSegmentMediaInfo(Pe)}}this._enableStatisticsReporter()}},{key:"_searchSegmentIndexContains",value:function(Fe){for(var Pe=this._mediaDataSource.segments,Be=Pe.length-1,nt=0;nt<Pe.length;nt++)if(Fe<Pe[nt].timestampBase){Be=nt-1;break}return Be}},{key:"_onInitChunkArrival",value:function(Fe,Pe){var Be=this,nt=null,vt=0;if(Pe>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,vt=this._demuxer.parseChunks(Fe,Pe);else if((nt=At.probe(Fe)).match){this._demuxer=new At(nt,this._config),this._remuxer||(this._remuxer=new Xe(this._config));var ar=this._mediaDataSource;ar.duration!=null&&!isNaN(ar.duration)&&(this._demuxer.overridedDuration=ar.duration),typeof ar.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=ar.hasAudio),typeof ar.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=ar.hasVideo),this._demuxer.timestampBase=ar.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),vt=this._demuxer.parseChunks(Fe,Pe)}else nt=null,u.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){Be._internalAbort()}),this._emitter.emit(te.DEMUX_ERROR,Ee.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),vt=0;return vt}},{key:"_onMediaInfo",value:function(Fe){var Pe=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},Fe),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,We.prototype));var Be=Object.assign({},Fe);Object.setPrototypeOf(Be,We.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=Be,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var nt=Pe._pendingSeekTime;Pe._pendingSeekTime=null,Pe.seek(nt)})}},{key:"_onMetaDataArrived",value:function(Fe){this._emitter.emit(te.METADATA_ARRIVED,Fe)}},{key:"_onScriptDataArrived",value:function(Fe){this._emitter.emit(te.SCRIPTDATA_ARRIVED,Fe)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(Fe){var Pe=Fe,Be=Pe+1;Be<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(Be)):(this._remuxer.flushStashedSamples(),this._emitter.emit(te.LOADING_COMPLETE),this._disableStatisticsReporter())}},{key:"_onIORedirect",value:function(Fe){var Pe=this._ioctl.extraData;this._mediaDataSource.segments[Pe].redirectedURL=Fe}},{key:"_onIORecoveredEarlyEof",value:function(){this._emitter.emit(te.RECOVERED_EARLY_EOF)}},{key:"_onIOException",value:function(Fe,Pe){u.e(this.TAG,"IOException: type = ".concat(Fe,", code = ").concat(Pe.code,", msg = ").concat(Pe.msg)),this._emitter.emit(te.IO_ERROR,Fe,Pe),this._disableStatisticsReporter()}},{key:"_onDemuxException",value:function(Fe,Pe){u.e(this.TAG,"DemuxException: type = ".concat(Fe,", info = ").concat(Pe)),this._emitter.emit(te.DEMUX_ERROR,Fe,Pe)}},{key:"_onRemuxerInitSegmentArrival",value:function(Fe,Pe){this._emitter.emit(te.INIT_SEGMENT,Fe,Pe)}},{key:"_onRemuxerMediaSegmentArrival",value:function(Fe,Pe){if(this._pendingSeekTime!=null)return;if(this._emitter.emit(te.MEDIA_SEGMENT,Fe,Pe),this._pendingResolveSeekPoint!=null&&Fe==="video"){var Be=Pe.info.syncPoints,nt=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,C.safari&&Be.length>0&&Be[0].originalDts===nt&&(nt=Be[0].pts),this._emitter.emit(te.RECOMMEND_SEEKPOINT,nt)}}},{key:"_enableStatisticsReporter",value:function(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}},{key:"_disableStatisticsReporter",value:function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"_reportSegmentMediaInfo",value:function(Fe){var Pe=this._mediaInfo.segments[Fe],Be=Object.assign({},Pe);Be.duration=this._mediaInfo.duration,Be.segmentCount=this._mediaInfo.segmentCount,delete Be.segments,delete Be.keyframesIndex,this._emitter.emit(te.MEDIA_INFO,Be)}},{key:"_reportStatisticsInfo",value:function(){var Fe={};Fe.url=this._ioctl.currentURL,Fe.hasRedirect=this._ioctl.hasRedirect,Fe.hasRedirect&&(Fe.redirectedURL=this._ioctl.currentRedirectedURL),Fe.speed=this._ioctl.currentSpeed,Fe.loaderType=this._ioctl.loaderType,Fe.currentSegmentIndex=this._currentSegmentIndex,Fe.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(te.STATISTICS_INFO,Fe)}}]),Xt}(),He=$e,ae=function(_t){var Fe="TransmuxingWorker",Pe=null,Be=Yt.bind(this);A.install(),_t.addEventListener("message",function(Pt){switch(Pt.data.cmd){case"init":Pe=new He(Pt.data.param[0],Pt.data.param[1]),Pe.on(te.IO_ERROR,Nt.bind(this)),Pe.on(te.DEMUX_ERROR,bt.bind(this)),Pe.on(te.INIT_SEGMENT,nt.bind(this)),Pe.on(te.MEDIA_SEGMENT,vt.bind(this)),Pe.on(te.LOADING_COMPLETE,ar.bind(this)),Pe.on(te.RECOVERED_EARLY_EOF,kr.bind(this)),Pe.on(te.MEDIA_INFO,mn.bind(this)),Pe.on(te.METADATA_ARRIVED,Zn.bind(this)),Pe.on(te.SCRIPTDATA_ARRIVED,ni.bind(this)),Pe.on(te.STATISTICS_INFO,ur.bind(this)),Pe.on(te.RECOMMEND_SEEKPOINT,gr.bind(this));break;case"destroy":Pe&&(Pe.destroy(),Pe=null),_t.postMessage({msg:"destroyed"});break;case"start":Pe.start();break;case"stop":Pe.stop();break;case"seek":Pe.seek(Pt.data.param);break;case"pause":Pe.pause();break;case"resume":Pe.resume();break;case"logging_config":{var rr=Pt.data.param;Re.applyConfig(rr),rr.enableCallback===!0?Re.addLogListener(Be):Re.removeLogListener(Be);break}}});function nt(Pt,rr){var Rt={msg:te.INIT_SEGMENT,data:{type:Pt,data:rr}};_t.postMessage(Rt,[rr.data])}function vt(Pt,rr){var Rt={msg:te.MEDIA_SEGMENT,data:{type:Pt,data:rr}};_t.postMessage(Rt,[rr.data])}function ar(){var Pt={msg:te.LOADING_COMPLETE};_t.postMessage(Pt)}function kr(){var Pt={msg:te.RECOVERED_EARLY_EOF};_t.postMessage(Pt)}function mn(Pt){var rr={msg:te.MEDIA_INFO,data:Pt};_t.postMessage(rr)}function Zn(Pt){var rr={msg:te.METADATA_ARRIVED,data:Pt};_t.postMessage(rr)}function ni(Pt){var rr={msg:te.SCRIPTDATA_ARRIVED,data:Pt};_t.postMessage(rr)}function ur(Pt){var rr={msg:te.STATISTICS_INFO,data:Pt};_t.postMessage(rr)}function Nt(Pt,rr){_t.postMessage({msg:te.IO_ERROR,data:{type:Pt,info:rr}})}function bt(Pt,rr){_t.postMessage({msg:te.DEMUX_ERROR,data:{type:Pt,info:rr}})}function gr(Pt){_t.postMessage({msg:te.RECOMMEND_SEEKPOINT,data:Pt})}function Yt(Pt,rr){_t.postMessage({msg:"logcat_callback",data:{type:Pt,logcat:rr}})}},ft=ae,Mt=function(){function Xt(_t,Fe){if(Object(y.a)(this,Xt),this.TAG="Transmuxer",this._emitter=new f.a,Fe.enableWorker&&typeof Worker!="undefined")try{var Pe=n("0r65");this._worker=Pe(ft),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[_t,Fe]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},Re.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:Re.getConfig()})}catch(nt){u.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new He(_t,Fe)}else this._controller=new He(_t,Fe);if(this._controller){var Be=this._controller;Be.on(te.IO_ERROR,this._onIOError.bind(this)),Be.on(te.DEMUX_ERROR,this._onDemuxError.bind(this)),Be.on(te.INIT_SEGMENT,this._onInitSegment.bind(this)),Be.on(te.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Be.on(te.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Be.on(te.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Be.on(te.MEDIA_INFO,this._onMediaInfo.bind(this)),Be.on(te.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Be.on(te.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Be.on(te.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Be.on(te.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Object(p.a)(Xt,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),Re.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Fe,Pe){this._emitter.addListener(Fe,Pe)}},{key:"off",value:function(Fe,Pe){this._emitter.removeListener(Fe,Pe)}},{key:"hasWorker",value:function(){return this._worker!=null}},{key:"open",value:function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}},{key:"close",value:function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}},{key:"seek",value:function(Fe){this._worker?this._worker.postMessage({cmd:"seek",param:Fe}):this._controller.seek(Fe)}},{key:"pause",value:function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}},{key:"resume",value:function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}},{key:"_onInitSegment",value:function(Fe,Pe){var Be=this;Promise.resolve().then(function(){Be._emitter.emit(te.INIT_SEGMENT,Fe,Pe)})}},{key:"_onMediaSegment",value:function(Fe,Pe){var Be=this;Promise.resolve().then(function(){Be._emitter.emit(te.MEDIA_SEGMENT,Fe,Pe)})}},{key:"_onLoadingComplete",value:function(){var Fe=this;Promise.resolve().then(function(){Fe._emitter.emit(te.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var Fe=this;Promise.resolve().then(function(){Fe._emitter.emit(te.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(Fe){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(te.MEDIA_INFO,Fe)})}},{key:"_onMetaDataArrived",value:function(Fe){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(te.METADATA_ARRIVED,Fe)})}},{key:"_onScriptDataArrived",value:function(Fe){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(te.SCRIPTDATA_ARRIVED,Fe)})}},{key:"_onStatisticsInfo",value:function(Fe){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(te.STATISTICS_INFO,Fe)})}},{key:"_onIOError",value:function(Fe,Pe){var Be=this;Promise.resolve().then(function(){Be._emitter.emit(te.IO_ERROR,Fe,Pe)})}},{key:"_onDemuxError",value:function(Fe,Pe){var Be=this;Promise.resolve().then(function(){Be._emitter.emit(te.DEMUX_ERROR,Fe,Pe)})}},{key:"_onRecommendSeekpoint",value:function(Fe){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(te.RECOMMEND_SEEKPOINT,Fe)})}},{key:"_onLoggingConfigChanged",value:function(Fe){this._worker&&this._worker.postMessage({cmd:"logging_config",param:Fe})}},{key:"_onWorkerMessage",value:function(Fe){var Pe=Fe.data,Be=Pe.data;if(Pe.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(Pe.msg){case te.INIT_SEGMENT:case te.MEDIA_SEGMENT:this._emitter.emit(Pe.msg,Be.type,Be.data);break;case te.LOADING_COMPLETE:case te.RECOVERED_EARLY_EOF:this._emitter.emit(Pe.msg);break;case te.MEDIA_INFO:Object.setPrototypeOf(Be,We.prototype),this._emitter.emit(Pe.msg,Be);break;case te.METADATA_ARRIVED:case te.SCRIPTDATA_ARRIVED:case te.STATISTICS_INFO:this._emitter.emit(Pe.msg,Be);break;case te.IO_ERROR:case te.DEMUX_ERROR:this._emitter.emit(Pe.msg,Be.type,Be.info);break;case te.RECOMMEND_SEEKPOINT:this._emitter.emit(Pe.msg,Be);break;case"logcat_callback":u.emitter.emit("log",Be.type,Be.logcat);break;default:break}}}]),Xt}(),mt=Mt,or={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},vr=or,fn=function(){function Xt(_t){Object(y.a)(this,Xt),this.TAG="MSEController",this._config=_t,this._emitter=new f.a,this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new zt}return Object(p.a)(Xt,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Fe,Pe){this._emitter.addListener(Fe,Pe)}},{key:"off",value:function(Fe,Pe){this._emitter.removeListener(Fe,Pe)}},{key:"attachMediaElement",value:function(Fe){if(this._mediaSource)throw new l("MediaSource has been attached to an HTMLMediaElement!");var Pe=this._mediaSource=new window.MediaSource;Pe.addEventListener("sourceopen",this.e.onSourceOpen),Pe.addEventListener("sourceended",this.e.onSourceEnded),Pe.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=Fe,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),Fe.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var Fe=this._mediaSource;for(var Pe in this._sourceBuffers){var Be=this._pendingSegments[Pe];Be.splice(0,Be.length),this._pendingSegments[Pe]=null,this._pendingRemoveRanges[Pe]=null,this._lastInitSegments[Pe]=null;var nt=this._sourceBuffers[Pe];if(nt){if(Fe.readyState!=="closed"){try{Fe.removeSourceBuffer(nt)}catch(vt){u.e(this.TAG,vt.message)}nt.removeEventListener("error",this.e.onSourceBufferError),nt.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[Pe]=null,this._sourceBuffers[Pe]=null}}if(Fe.readyState==="open")try{Fe.endOfStream()}catch(vt){u.e(this.TAG,vt.message)}Fe.removeEventListener("sourceopen",this.e.onSourceOpen),Fe.removeEventListener("sourceended",this.e.onSourceEnded),Fe.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}},{key:"appendInitSegment",value:function(Fe,Pe){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(Fe),this._pendingSegments[Fe.type].push(Fe);return}var Be=Fe,nt="".concat(Be.container);Be.codec&&Be.codec.length>0&&(nt+=";codecs=".concat(Be.codec));var vt=!1;if(u.v(this.TAG,"Received Initialization Segment, mimeType: "+nt),this._lastInitSegments[Be.type]=Be,nt!==this._mimeTypes[Be.type]){if(this._mimeTypes[Be.type])u.v(this.TAG,"Notice: ".concat(Be.type," mimeType changed, origin: ").concat(this._mimeTypes[Be.type],", target: ").concat(nt));else{vt=!0;try{var ar=this._sourceBuffers[Be.type]=this._mediaSource.addSourceBuffer(nt);ar.addEventListener("error",this.e.onSourceBufferError),ar.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(kr){u.e(this.TAG,kr.message),this._emitter.emit(vr.ERROR,{code:kr.code,msg:kr.message});return}}this._mimeTypes[Be.type]=nt}Pe||this._pendingSegments[Be.type].push(Be),vt||this._sourceBuffers[Be.type]&&!this._sourceBuffers[Be.type].updating&&this._doAppendSegments(),C.safari&&Be.container==="audio/mpeg"&&Be.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=Be.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(Fe){var Pe=Fe;this._pendingSegments[Pe.type].push(Pe),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var Be=this._sourceBuffers[Pe.type];Be&&!Be.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}},{key:"seek",value:function(Fe){for(var Pe in this._sourceBuffers){if(!this._sourceBuffers[Pe])continue;var Be=this._sourceBuffers[Pe];if(this._mediaSource.readyState==="open")try{Be.abort()}catch(Zn){u.e(this.TAG,Zn.message)}this._idrList.clear();var nt=this._pendingSegments[Pe];if(nt.splice(0,nt.length),this._mediaSource.readyState==="closed")continue;for(var vt=0;vt<Be.buffered.length;vt++){var ar=Be.buffered.start(vt),kr=Be.buffered.end(vt);this._pendingRemoveRanges[Pe].push({start:ar,end:kr})}if(Be.updating||this._doRemoveRanges(),C.safari){var mn=this._lastInitSegments[Pe];mn&&(this._pendingSegments[Pe].push(mn),Be.updating||this._doAppendSegments())}}}},{key:"endOfStream",value:function(){var Fe=this._mediaSource,Pe=this._sourceBuffers;if(!Fe||Fe.readyState!=="open"){Fe&&Fe.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}Pe.video&&Pe.video.updating||Pe.audio&&Pe.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,Fe.endOfStream())}},{key:"getNearestKeyframe",value:function(Fe){return this._idrList.getLastSyncPointBeforeDts(Fe)}},{key:"_needCleanupSourceBuffer",value:function(){if(!this._config.autoCleanupSourceBuffer)return!1;var Fe=this._mediaElement.currentTime;for(var Pe in this._sourceBuffers){var Be=this._sourceBuffers[Pe];if(Be){var nt=Be.buffered;if(nt.length>=1&&Fe-nt.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var Fe=this._mediaElement.currentTime;for(var Pe in this._sourceBuffers){var Be=this._sourceBuffers[Pe];if(Be){for(var nt=Be.buffered,vt=!1,ar=0;ar<nt.length;ar++){var kr=nt.start(ar),mn=nt.end(ar);if(kr<=Fe&&Fe<mn+3){if(Fe-kr>=this._config.autoCleanupMaxBackwardDuration){vt=!0;var Zn=Fe-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[Pe].push({start:kr,end:Zn})}}else mn<Fe&&(vt=!0,this._pendingRemoveRanges[Pe].push({start:kr,end:mn}))}vt&&!Be.updating&&this._doRemoveRanges()}}}},{key:"_updateMediaSourceDuration",value:function(){var Fe=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open")return;if(Fe.video&&Fe.video.updating||Fe.audio&&Fe.audio.updating)return;var Pe=this._mediaSource.duration,Be=this._pendingMediaDuration;Be>0&&(isNaN(Pe)||Be>Pe)&&(u.v(this.TAG,"Update MediaSource duration from ".concat(Pe," to ").concat(Be)),this._mediaSource.duration=Be),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},{key:"_doRemoveRanges",value:function(){for(var Fe in this._pendingRemoveRanges){if(!this._sourceBuffers[Fe]||this._sourceBuffers[Fe].updating)continue;for(var Pe=this._sourceBuffers[Fe],Be=this._pendingRemoveRanges[Fe];Be.length&&!Pe.updating;){var nt=Be.shift();Pe.remove(nt.start,nt.end)}}}},{key:"_doAppendSegments",value:function(){var Fe=this._pendingSegments;for(var Pe in Fe){if(!this._sourceBuffers[Pe]||this._sourceBuffers[Pe].updating)continue;if(Fe[Pe].length>0){var Be=Fe[Pe].shift();if(Be.timestampOffset){var nt=this._sourceBuffers[Pe].timestampOffset,vt=Be.timestampOffset/1e3,ar=Math.abs(nt-vt);ar>.1&&(u.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(nt," to ").concat(vt)),this._sourceBuffers[Pe].timestampOffset=vt),delete Be.timestampOffset}if(!Be.data||Be.data.byteLength===0)continue;try{this._sourceBuffers[Pe].appendBuffer(Be.data),this._isBufferFull=!1,Pe==="video"&&Be.hasOwnProperty("info")&&this._idrList.appendArray(Be.info.syncPoints)}catch(kr){this._pendingSegments[Pe].unshift(Be),kr.code===22?(this._isBufferFull||this._emitter.emit(vr.BUFFER_FULL),this._isBufferFull=!0):(u.e(this.TAG,kr.message),this._emitter.emit(vr.ERROR,{code:kr.code,msg:kr.message}))}}}}},{key:"_onSourceOpen",value:function(){if(u.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var Fe=this._pendingSourceBufferInit;Fe.length;){var Pe=Fe.shift();this.appendInitSegment(Pe,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(vr.SOURCE_OPEN)}},{key:"_onSourceEnded",value:function(){u.v(this.TAG,"MediaSource onSourceEnded")}},{key:"_onSourceClose",value:function(){u.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}},{key:"_hasPendingSegments",value:function(){var Fe=this._pendingSegments;return Fe.video.length>0||Fe.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var Fe=this._pendingRemoveRanges;return Fe.video.length>0||Fe.audio.length>0}},{key:"_onSourceBufferUpdateEnd",value:function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(vr.UPDATE_END)}},{key:"_onSourceBufferError",value:function(Fe){u.e(this.TAG,"SourceBuffer Error: ".concat(Fe))}}]),Xt}(),sr=fn,Ir={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},lr={NETWORK_EXCEPTION:d.EXCEPTION,NETWORK_STATUS_CODE_INVALID:d.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:d.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:d.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:Ee.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Ee.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Ee.CODEC_UNSUPPORTED},Wt=function(){function Xt(_t,Fe){if(Object(y.a)(this,Xt),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new f.a,this._config=ee(),typeof Fe=="object"&&Object.assign(this._config,Fe),_t.type.toLowerCase()!=="flv")throw new r("FlvPlayer requires an flv MediaDataSource input!");_t.isLive===!0&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=_t,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;var Pe=C.chrome&&(C.version.major<50||C.version.major===50&&C.version.build<2661);this._alwaysSeekKeyframe=!!(Pe||C.msedge||C.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Object(p.a)(Xt,[{key:"destroy",value:function(){this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Fe,Pe){var Be=this;Fe===Ie.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(function(){Be._emitter.emit(Ie.MEDIA_INFO,Be.mediaInfo)}):Fe===Ie.STATISTICS_INFO&&(this._statisticsInfo!=null&&Promise.resolve().then(function(){Be._emitter.emit(Ie.STATISTICS_INFO,Be.statisticsInfo)})),this._emitter.addListener(Fe,Pe)}},{key:"off",value:function(Fe,Pe){this._emitter.removeListener(Fe,Pe)}},{key:"attachMediaElement",value:function(Fe){var Pe=this;if(this._mediaElement=Fe,Fe.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),Fe.addEventListener("seeking",this.e.onvSeeking),Fe.addEventListener("canplay",this.e.onvCanPlay),Fe.addEventListener("stalled",this.e.onvStalled),Fe.addEventListener("progress",this.e.onvProgress),this._msectl=new sr(this._config),this._msectl.on(vr.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(vr.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(vr.SOURCE_OPEN,function(){Pe._mseSourceOpened=!0,Pe._hasPendingLoad&&(Pe._hasPendingLoad=!1,Pe.load())}),this._msectl.on(vr.ERROR,function(Be){Pe._emitter.emit(Ie.ERROR,Ir.MEDIA_ERROR,lr.MEDIA_MSE_ERROR,Be)}),this._msectl.attachMediaElement(Fe),this._pendingSeekTime!=null)try{Fe.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Be){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}},{key:"load",value:function(){var Fe=this;if(!this._mediaElement)throw new l("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new l("FlvPlayer.load() has been called, please call unload() first!");if(this._hasPendingLoad)return;if(this._config.deferLoadAfterSourceOpen&&this._mseSourceOpened===!1){this._hasPendingLoad=!0;return}this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new mt(this._mediaDataSource,this._config),this._transmuxer.on(te.INIT_SEGMENT,function(Pe,Be){Fe._msectl.appendInitSegment(Be)}),this._transmuxer.on(te.MEDIA_SEGMENT,function(Pe,Be){if(Fe._msectl.appendMediaSegment(Be),Fe._config.lazyLoad&&!Fe._config.isLive){var nt=Fe._mediaElement.currentTime;Be.info.endDts>=(nt+Fe._config.lazyLoadMaxDuration)*1e3&&(Fe._progressChecker==null&&(u.v(Fe.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),Fe._suspendTransmuxer()))}}),this._transmuxer.on(te.LOADING_COMPLETE,function(){Fe._msectl.endOfStream(),Fe._emitter.emit(Ie.LOADING_COMPLETE)}),this._transmuxer.on(te.RECOVERED_EARLY_EOF,function(){Fe._emitter.emit(Ie.RECOVERED_EARLY_EOF)}),this._transmuxer.on(te.IO_ERROR,function(Pe,Be){Fe._emitter.emit(Ie.ERROR,Ir.NETWORK_ERROR,Pe,Be)}),this._transmuxer.on(te.DEMUX_ERROR,function(Pe,Be){Fe._emitter.emit(Ie.ERROR,Ir.MEDIA_ERROR,Pe,{code:-1,msg:Be})}),this._transmuxer.on(te.MEDIA_INFO,function(Pe){Fe._mediaInfo=Pe,Fe._emitter.emit(Ie.MEDIA_INFO,Object.assign({},Pe))}),this._transmuxer.on(te.METADATA_ARRIVED,function(Pe){Fe._emitter.emit(Ie.METADATA_ARRIVED,Pe)}),this._transmuxer.on(te.SCRIPTDATA_ARRIVED,function(Pe){Fe._emitter.emit(Ie.SCRIPTDATA_ARRIVED,Pe)}),this._transmuxer.on(te.STATISTICS_INFO,function(Pe){Fe._statisticsInfo=Fe._fillStatisticsInfo(Pe),Fe._emitter.emit(Ie.STATISTICS_INFO,Object.assign({},Fe._statisticsInfo))}),this._transmuxer.on(te.RECOMMEND_SEEKPOINT,function(Pe){Fe._mediaElement&&!Fe._config.accurateSeek&&(Fe._requestSetTime=!0,Fe._mediaElement.currentTime=Pe/1e3)}),this._transmuxer.open()}},{key:"unload",value:function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(Fe){this._mediaElement.volume=Fe}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(Fe){this._mediaElement.muted=Fe}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(Fe){this._mediaElement?this._internalSeek(Fe):this._pendingSeekTime=Fe}},{key:"mediaInfo",get:function(){return Object.assign({},this._mediaInfo)}},{key:"statisticsInfo",get:function(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}},{key:"_fillStatisticsInfo",value:function(Fe){if(Fe.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return Fe;var Pe=!0,Be=0,nt=0;if(this._mediaElement.getVideoPlaybackQuality){var vt=this._mediaElement.getVideoPlaybackQuality();Be=vt.totalVideoFrames,nt=vt.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Be=this._mediaElement.webkitDecodedFrameCount,nt=this._mediaElement.webkitDroppedFrameCount):Pe=!1;return Pe&&(Fe.decodedFrames=Be,Fe.droppedFrames=nt),Fe}},{key:"_onmseUpdateEnd",value:function(){if(!this._config.lazyLoad||this._config.isLive)return;for(var Fe=this._mediaElement.buffered,Pe=this._mediaElement.currentTime,Be=0,nt=0,vt=0;vt<Fe.length;vt++){var ar=Fe.start(vt),kr=Fe.end(vt);if(ar<=Pe&&Pe<kr){Be=ar,nt=kr;break}}nt>=Pe+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(u.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},{key:"_onmseBufferFull",value:function(){u.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}},{key:"_suspendTransmuxer",value:function(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}},{key:"_checkProgressAndResume",value:function(){for(var Fe=this._mediaElement.currentTime,Pe=this._mediaElement.buffered,Be=!1,nt=0;nt<Pe.length;nt++){var vt=Pe.start(nt),ar=Pe.end(nt);if(Fe>=vt&&Fe<ar){Fe>=ar-this._config.lazyLoadRecoverDuration&&(Be=!0);break}}Be&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Be&&(u.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(Fe){for(var Pe=this._mediaElement.buffered,Be=0;Be<Pe.length;Be++){var nt=Pe.start(Be),vt=Pe.end(Be);if(Fe>=nt&&Fe<vt)return!0}return!1}},{key:"_internalSeek",value:function(Fe){var Pe=this._isTimepointBuffered(Fe),Be=!1,nt=0;if(Fe<1&&this._mediaElement.buffered.length>0){var vt=this._mediaElement.buffered.start(0);(vt<1&&Fe<vt||C.safari)&&(Be=!0,nt=C.safari?.1:vt)}if(Be)this._requestSetTime=!0,this._mediaElement.currentTime=nt;else if(Pe){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=Fe;else{var ar=this._msectl.getNearestKeyframe(Math.floor(Fe*1e3));this._requestSetTime=!0,ar!=null?this._mediaElement.currentTime=ar.dts/1e3:this._mediaElement.currentTime=Fe}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(Fe),this._transmuxer.seek(Math.floor(Fe*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Fe)}},{key:"_checkAndApplyUnbufferedSeekpoint",value:function(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){var Fe=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(Fe)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(Fe),this._transmuxer.seek(Math.floor(Fe*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Fe))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_checkAndResumeStuckPlayback",value:function(Fe){var Pe=this._mediaElement;if(Fe||!this._receivedCanPlay||Pe.readyState<2){var Be=Pe.buffered;Be.length>0&&Pe.currentTime<Be.start(0)&&(u.w(this.TAG,"Playback seems stuck at ".concat(Pe.currentTime,", seek to ").concat(Be.start(0))),this._requestSetTime=!0,this._mediaElement.currentTime=Be.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}},{key:"_onvLoadedMetadata",value:function(Fe){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}},{key:"_onvSeeking",value:function(Fe){var Pe=this._mediaElement.currentTime,Be=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(Pe<1&&Be.length>0){var nt=Be.start(0);if(nt<1&&Pe<nt||C.safari){this._requestSetTime=!0,this._mediaElement.currentTime=C.safari?.1:nt;return}}if(this._isTimepointBuffered(Pe)){if(this._alwaysSeekKeyframe){var vt=this._msectl.getNearestKeyframe(Math.floor(Pe*1e3));vt!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=vt.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:Pe,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_onvCanPlay",value:function(Fe){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}},{key:"_onvStalled",value:function(Fe){this._checkAndResumeStuckPlayback(!0)}},{key:"_onvProgress",value:function(Fe){this._checkAndResumeStuckPlayback()}}]),Xt}(),xt=Wt,rn=function(){function Xt(_t,Fe){if(Object(y.a)(this,Xt),this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new f.a,this._config=ee(),typeof Fe=="object"&&Object.assign(this._config,Fe),_t.type.toLowerCase()==="flv")throw new r("NativePlayer does't support flv MediaDataSource input!");if(_t.hasOwnProperty("segments"))throw new r("NativePlayer(".concat(_t.type,") doesn't support multipart playback!"));this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=_t,this._mediaElement=null}return Object(p.a)(Xt,[{key:"destroy",value:function(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Fe,Pe){var Be=this;Fe===Ie.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Be._emitter.emit(Ie.MEDIA_INFO,Be.mediaInfo)}):Fe===Ie.STATISTICS_INFO&&(this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Be._emitter.emit(Ie.STATISTICS_INFO,Be.statisticsInfo)})),this._emitter.addListener(Fe,Pe)}},{key:"off",value:function(Fe,Pe){this._emitter.removeListener(Fe,Pe)}},{key:"attachMediaElement",value:function(Fe){if(this._mediaElement=Fe,Fe.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{Fe.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Pe){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"load",value:function(){if(!this._mediaElement)throw new l("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}},{key:"unload",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(Fe){this._mediaElement.volume=Fe}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(Fe){this._mediaElement.muted=Fe}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(Fe){this._mediaElement?this._mediaElement.currentTime=Fe:this._pendingSeekTime=Fe}},{key:"mediaInfo",get:function(){var Fe=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",Pe={mimeType:Fe+this._mediaDataSource.type};return this._mediaElement&&(Pe.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(Pe.width=this._mediaElement.videoWidth,Pe.height=this._mediaElement.videoHeight)),Pe}},{key:"statisticsInfo",get:function(){var Fe={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return Fe;var Pe=!0,Be=0,nt=0;if(this._mediaElement.getVideoPlaybackQuality){var vt=this._mediaElement.getVideoPlaybackQuality();Be=vt.totalVideoFrames,nt=vt.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Be=this._mediaElement.webkitDecodedFrameCount,nt=this._mediaElement.webkitDroppedFrameCount):Pe=!1;return Pe&&(Fe.decodedFrames=Be,Fe.droppedFrames=nt),Fe}},{key:"_onvLoadedMetadata",value:function(Fe){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(Ie.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(Ie.STATISTICS_INFO,this.statisticsInfo)}}]),Xt}(),Dn=rn;A.install();function Xn(Xt,_t){var Fe=Xt;if(Fe==null||typeof Fe!="object")throw new r("MediaDataSource must be an javascript object!");if(!Fe.hasOwnProperty("type"))throw new r("MediaDataSource must has type field to indicate video file type!");switch(Fe.type){case"flv":return new xt(Fe,_t);default:return new Dn(Fe,_t)}}function ri(){return be.supportMSEH264Playback()}function Ui(){return be.getFeatureList()}var Bn={};Bn.createPlayer=Xn,Bn.isSupported=ri,Bn.getFeatureList=Ui,Bn.BaseLoader=g,Bn.LoaderStatus=c,Bn.LoaderErrors=d,Bn.Events=Ie,Bn.ErrorTypes=Ir,Bn.ErrorDetails=lr,Bn.FlvPlayer=xt,Bn.NativePlayer=Dn,Bn.LoggingControl=Re,Object.defineProperty(Bn,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Jn=D.a=Bn},GVMX:function(k,D,n){var y=n("JEkh"),p=y.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});k.exports=p},GdRQ:function(k,D,n){"use strict";function y(C){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(T){return typeof T}:y=function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},y(C)}Object.defineProperty(D,"__esModule",{value:!0}),D.isMac=c,D.isWindows=d,D.isIOS=g,D.isSafari=v,D.isIE=b,D.isEdge=S,D.isFirefox=E,D.hasScrollbarGutter=D.supportsImageMetadata=D.supportsCursorURIs=D.dragThreshold=D.isTouchDevice=void 0;var p=A(n("Lo0S"));function x(){if(typeof WeakMap!="function")return null;var C=new WeakMap;return x=function(){return C},C}function A(C){if(C&&C.__esModule)return C;if(C===null||y(C)!=="object"&&typeof C!="function")return{default:C};var _=x();if(_&&_.has(C))return _.get(C);var T={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in C)if(Object.prototype.hasOwnProperty.call(C,O)){var I=w?Object.getOwnPropertyDescriptor(C,O):null;I&&(I.get||I.set)?Object.defineProperty(T,O,I):T[O]=C[O]}return T.default=C,_&&_.set(C,T),T}var m="ontouchstart"in document.documentElement||document.ontouchstart!==void 0||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;D.isTouchDevice=m,window.addEventListener("touchstart",function C(){D.isTouchDevice=m=!0,window.removeEventListener("touchstart",C,!1)},!1);var f=10*(window.devicePixelRatio||1);D.dragThreshold=f;var h=!1;try{var u=document.createElement("canvas");u.style.cursor='url("data:image/x-icon;base64,AAACAAEACAgAAAIAAgA4AQAAFgAAACgAAAAIAAAAEAAAAAEAIAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAAAAAAAAAAAAAAAAAAAAA==") 2 2, default',u.style.cursor.indexOf("url")===0?(p.Info("Data URI scheme cursor supported"),h=!0):p.Warn("Data URI scheme cursor not supported")}catch(C){p.Error("Data URI scheme cursor test exception: "+C)}var a=h;D.supportsCursorURIs=a;var i=!1;try{new ImageData(new Uint8ClampedArray(4),1,1),i=!0}catch(C){}var t=i;D.supportsImageMetadata=t;var o=!0;try{var e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);var l=document.createElement("div");e.appendChild(l);var r=e.offsetWidth-l.offsetWidth;e.parentNode.removeChild(e),o=r!=0}catch(C){p.Error("Scrollbar test exception: "+C)}var s=o;D.hasScrollbarGutter=s;function c(){return navigator&&!!/mac/i.exec(navigator.platform)}function d(){return navigator&&!!/win/i.exec(navigator.platform)}function g(){return navigator&&(!!/ipad/i.exec(navigator.platform)||!!/iphone/i.exec(navigator.platform)||!!/ipod/i.exec(navigator.platform))}function v(){return navigator&&navigator.userAgent.indexOf("Safari")!==-1&&navigator.userAgent.indexOf("Chrome")===-1}function b(){return navigator&&!!/trident/i.exec(navigator.userAgent)}function S(){return navigator&&!!/edge/i.exec(navigator.userAgent)}function E(){return navigator&&!!/firefox/i.exec(navigator.userAgent)}},GeKi:function(k,D,n){var y=n("bYtY"),p=n("6Ic6"),x=n("IwbS"),A=n("y+Vt"),m=n("sK/D"),f=m.createClipPath,h=["itemStyle"],u=["emphasis","itemStyle"],a=["color","color0","borderColor","borderColor0"],i=p.extend({type:"candlestick",render:function(v,b,S){this.group.removeClipPath(),this._updateDrawMode(v),this._isLargeDraw?this._renderLarge(v):this._renderNormal(v)},incrementalPrepareRender:function(v,b,S){this._clear(),this._updateDrawMode(v)},incrementalRender:function(v,b,S,E){this._isLargeDraw?this._incrementalRenderLarge(v,b):this._incrementalRenderNormal(v,b)},_updateDrawMode:function(v){var b=v.pipelineContext.large;(this._isLargeDraw==null||b^this._isLargeDraw)&&(this._isLargeDraw=b,this._clear())},_renderNormal:function(v){var b=v.getData(),S=this._data,E=this.group,C=b.getLayout("isSimpleBox"),_=v.get("clip",!0),T=v.coordinateSystem,w=T.getArea&&T.getArea();this._data||E.removeAll(),b.diff(S).add(function(O){if(b.hasValue(O)){var I,R=b.getItemLayout(O);if(_&&e(w,R))return;I=o(R,O,!0),x.initProps(I,{shape:{points:R.ends}},v,O),l(I,b,O,C),E.add(I),b.setItemGraphicEl(O,I)}}).update(function(O,I){var R=S.getItemGraphicEl(I);if(!b.hasValue(O)){E.remove(R);return}var M=b.getItemLayout(O);if(_&&e(w,M)){E.remove(R);return}R?x.updateProps(R,{shape:{points:M.ends}},v,O):R=o(M,O),l(R,b,O,C),E.add(R),b.setItemGraphicEl(O,R)}).remove(function(O){var I=S.getItemGraphicEl(O);I&&E.remove(I)}).execute(),this._data=b},_renderLarge:function(v){this._clear(),c(v,this.group);var b=v.get("clip",!0)?f(v.coordinateSystem,!1,v):null;b?this.group.setClipPath(b):this.group.removeClipPath()},_incrementalRenderNormal:function(v,b){for(var S=b.getData(),E=S.getLayout("isSimpleBox"),C;(C=v.next())!=null;){var _,T=S.getItemLayout(C);_=o(T,C),l(_,S,C,E),_.incremental=!0,this.group.add(_)}},_incrementalRenderLarge:function(v,b){c(b,this.group,!0)},remove:function(v){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:y.noop}),t=A.extend({type:"normalCandlestickBox",shape:{},buildPath:function(v,b){var S=b.points;this.__simpleBox?(v.moveTo(S[4][0],S[4][1]),v.lineTo(S[6][0],S[6][1])):(v.moveTo(S[0][0],S[0][1]),v.lineTo(S[1][0],S[1][1]),v.lineTo(S[2][0],S[2][1]),v.lineTo(S[3][0],S[3][1]),v.closePath(),v.moveTo(S[4][0],S[4][1]),v.lineTo(S[5][0],S[5][1]),v.moveTo(S[6][0],S[6][1]),v.lineTo(S[7][0],S[7][1]))}});function o(v,b,S){var E=v.ends;return new t({shape:{points:S?r(E,v):E},z2:100})}function e(v,b){for(var S=!0,E=0;E<b.ends.length;E++)if(v.contain(b.ends[E][0],b.ends[E][1])){S=!1;break}return S}function l(v,b,S,E){var C=b.getItemModel(S),_=C.getModel(h),T=b.getItemVisual(S,"color"),w=b.getItemVisual(S,"borderColor")||T,O=_.getItemStyle(a);v.useStyle(O),v.style.strokeNoScale=!0,v.style.fill=T,v.style.stroke=w,v.__simpleBox=E;var I=C.getModel(u).getItemStyle();x.setHoverStyle(v,I)}function r(v,b){return y.map(v,function(S){return S=S.slice(),S[1]=b.initBaseline,S})}var s=A.extend({type:"largeCandlestickBox",shape:{},buildPath:function(v,b){for(var S=b.points,E=0;E<S.length;)if(this.__sign===S[E++]){var C=S[E++];v.moveTo(C,S[E++]),v.lineTo(C,S[E++])}else E+=3}});function c(v,b,S){var E=v.getData(),C=E.getLayout("largePoints"),_=new s({shape:{points:C},__sign:1});b.add(_);var T=new s({shape:{points:C},__sign:-1});b.add(T),d(1,_,v,E),d(-1,T,v,E),S&&(_.incremental=!0,T.incremental=!0)}function d(v,b,S,E){var C=v>0?"P":"N",_=E.getVisual("borderColor"+C)||E.getVisual("color"+C),T=S.getModel(h).getItemStyle(a);b.useStyle(T),b.style.fill=null,b.style.stroke=_}var g=i;k.exports=g},Gev7:function(k,D,n){var y=n("bYtY"),p=n("K2GJ"),x=n("1bdT"),A=n("ni6a");function m(h){h=h||{},x.call(this,h);for(var u in h)h.hasOwnProperty(u)&&u!=="style"&&(this[u]=h[u]);this.style=new p(h.style,this),this._rect=null,this.__clipPaths=null}m.prototype={constructor:m,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(u){},afterBrush:function(u){},brush:function(u,a){},getBoundingRect:function(){},contain:function(u,a){return this.rectContain(u,a)},traverse:function(u,a){u.call(a,this)},rectContain:function(u,a){var i=this.transformCoordToLocal(u,a),t=this.getBoundingRect();return t.contain(i[0],i[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(u){return this.animate("style",u)},attrKV:function(u,a){u!=="style"?x.prototype.attrKV.call(this,u,a):this.style.set(a)},setStyle:function(u,a){return this.style.set(u,a),this.dirty(!1),this},useStyle:function(u){return this.style=new p(u,this),this.dirty(!1),this},calculateTextPosition:null},y.inherits(m,x),y.mixin(m,A);var f=m;k.exports=f},Gfru:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("a7Wl")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="CaretUpOutlined";var i=A.forwardRef(a);D.default=i},GrNh:function(k,D,n){var y=n("bYtY"),p=n("IwbS"),x=n("6Ic6");function A(i,t,o,e){var l=t.getData(),r=this.dataIndex,s=l.getName(r),c=t.get("selectedOffset");e.dispatchAction({type:"pieToggleSelect",from:i,name:s,seriesId:t.id}),l.each(function(d){m(l.getItemGraphicEl(d),l.getItemLayout(d),t.isSelected(l.getName(d)),c,o)})}function m(i,t,o,e,l){var r=(t.startAngle+t.endAngle)/2,s=Math.cos(r),c=Math.sin(r),d=o?e:0,g=[s*d,c*d];l?i.animate().when(200,{position:g}).start("bounceOut"):i.attr("position",g)}function f(i,t){p.Group.call(this);var o=new p.Sector({z2:2}),e=new p.Polyline,l=new p.Text;this.add(o),this.add(e),this.add(l),this.updateData(i,t,!0)}var h=f.prototype;h.updateData=function(i,t,o){var e=this.childAt(0),l=this.childAt(1),r=this.childAt(2),s=i.hostModel,c=i.getItemModel(t),d=i.getItemLayout(t),g=y.extend({},d);g.label=null;var v=s.getShallow("animationTypeUpdate");if(o){e.setShape(g);var b=s.getShallow("animationType");b==="scale"?(e.shape.r=d.r0,p.initProps(e,{shape:{r:d.r}},s,t)):(e.shape.endAngle=d.startAngle,p.updateProps(e,{shape:{endAngle:d.endAngle}},s,t))}else v==="expansion"?e.setShape(g):p.updateProps(e,{shape:g},s,t);var S=i.getItemVisual(t,"color");e.useStyle(y.defaults({lineJoin:"bevel",fill:S},c.getModel("itemStyle").getItemStyle())),e.hoverStyle=c.getModel("emphasis.itemStyle").getItemStyle();var E=c.getShallow("cursor");E&&e.attr("cursor",E),m(this,i.getItemLayout(t),s.isSelected(i.getName(t)),s.get("selectedOffset"),s.get("animation"));var C=!o&&v==="transition";this._updateLabel(i,t,C),this.highDownOnUpdate=s.get("silent")?null:function(_,T){var w=s.isAnimationEnabled()&&c.get("hoverAnimation");T==="emphasis"?(l.ignore=l.hoverIgnore,r.ignore=r.hoverIgnore,w&&(e.stopAnimation(!0),e.animateTo({shape:{r:d.r+s.get("hoverOffset")}},300,"elasticOut"))):(l.ignore=l.normalIgnore,r.ignore=r.normalIgnore,w&&(e.stopAnimation(!0),e.animateTo({shape:{r:d.r}},300,"elasticOut")))},p.setHoverStyle(this)},h._updateLabel=function(i,t,o){var e=this.childAt(1),l=this.childAt(2),r=i.hostModel,s=i.getItemModel(t),c=i.getItemLayout(t),d=c.label,g=i.getItemVisual(t,"color");if(!d||isNaN(d.x)||isNaN(d.y)){l.ignore=l.normalIgnore=l.hoverIgnore=e.ignore=e.normalIgnore=e.hoverIgnore=!0;return}var v={points:d.linePoints||[[d.x,d.y],[d.x,d.y],[d.x,d.y]]},b={x:d.x,y:d.y};o?(p.updateProps(e,{shape:v},r,t),p.updateProps(l,{style:b},r,t)):(e.attr({shape:v}),l.attr({style:b})),l.attr({rotation:d.rotation,origin:[d.x,d.y],z2:10});var S=s.getModel("label"),E=s.getModel("emphasis.label"),C=s.getModel("labelLine"),_=s.getModel("emphasis.labelLine"),g=i.getItemVisual(t,"color");p.setLabelStyle(l.style,l.hoverStyle={},S,E,{labelFetcher:i.hostModel,labelDataIndex:t,defaultText:d.text,autoColor:g,useInsideStyle:!!d.inside},{textAlign:d.textAlign,textVerticalAlign:d.verticalAlign,opacity:i.getItemVisual(t,"opacity")}),l.ignore=l.normalIgnore=!S.get("show"),l.hoverIgnore=!E.get("show"),e.ignore=e.normalIgnore=!C.get("show"),e.hoverIgnore=!_.get("show"),e.setStyle({stroke:g,opacity:i.getItemVisual(t,"opacity")}),e.setStyle(C.getModel("lineStyle").getLineStyle()),e.hoverStyle=_.getModel("lineStyle").getLineStyle();var T=C.get("smooth");T&&T===!0&&(T=.4),e.setShape({smooth:T})},y.inherits(f,p.Group);var u=x.extend({type:"pie",init:function(){var i=new p.Group;this._sectorGroup=i},render:function(i,t,o,e){if(e&&e.from===this.uid)return;var l=i.getData(),r=this._data,s=this.group,c=t.get("animation"),d=!r,g=i.get("animationType"),v=i.get("animationTypeUpdate"),b=y.curry(A,this.uid,i,c,o),S=i.get("selectedMode");if(l.diff(r).add(function(w){var O=new f(l,w);d&&g!=="scale"&&O.eachChild(function(I){I.stopAnimation(!0)}),S&&O.on("click",b),l.setItemGraphicEl(w,O),s.add(O)}).update(function(w,O){var I=r.getItemGraphicEl(O);!d&&v!=="transition"&&I.eachChild(function(R){R.stopAnimation(!0)}),I.updateData(l,w),I.off("click"),S&&I.on("click",b),s.add(I),l.setItemGraphicEl(w,I)}).remove(function(w){var O=r.getItemGraphicEl(w);s.remove(O)}).execute(),c&&l.count()>0&&(d?g!=="scale":v!=="transition")){for(var E=l.getItemLayout(0),C=1;isNaN(E.startAngle)&&C<l.count();++C)E=l.getItemLayout(C);var _=Math.max(o.getWidth(),o.getHeight())/2,T=y.bind(s.removeClipPath,s);s.setClipPath(this._createClipPath(E.cx,E.cy,_,E.startAngle,E.clockwise,T,i,d))}else s.removeClipPath();this._data=l},dispose:function(){},_createClipPath:function(i,t,o,e,l,r,s,c){var d=new p.Sector({shape:{cx:i,cy:t,r0:0,r:o,startAngle:e,endAngle:e,clockwise:l}}),g=c?p.initProps:p.updateProps;return g(d,{shape:{endAngle:e+(l?1:-1)*Math.PI*2}},s,r),d},containPoint:function(i,t){var o=t.getData(),e=o.getItemLayout(0);if(e){var l=i[0]-e.cx,r=i[1]-e.cy,s=Math.sqrt(l*l+r*r);return s<=e.r&&s>=e.r0}}}),a=u;k.exports=a},GtAB:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("gKaM")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="DoubleLeftOutlined";var i=A.forwardRef(a);D.default=i},Gytx:function(k,D){k.exports=function(y,p,x,A){var m=x?x.call(A,y,p):void 0;if(m!==void 0)return!!m;if(y===p)return!0;if(typeof y!="object"||!y||typeof p!="object"||!p)return!1;var f=Object.keys(y),h=Object.keys(p);if(f.length!==h.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(p),a=0;a<f.length;a++){var i=f[a];if(!u(i))return!1;var t=y[i],o=p[i];if(m=x?x.call(A,t,o,i):void 0,m===!1||m===void 0&&t!==o)return!1}return!0}},GzdX:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("q1tI"),A=n.n(x),m=n("rePB"),f=n("1OyB"),h=n("vuIU"),u=n("Ji7U"),a=n("md7G"),i=n("foSv"),t=n("m+aA"),o=n("TSYQ"),e=n.n(o),l=n("4IlW");function r(j){var W=j.pageXOffset,z="scrollLeft";if(typeof W!="number"){var V=j.document;W=V.documentElement[z],typeof W!="number"&&(W=V.body[z])}return W}function s(j){var W,z,V=j.ownerDocument,Q=V.body,G=V&&V.documentElement,ee=j.getBoundingClientRect();return W=ee.left,z=ee.top,W-=G.clientLeft||Q.clientLeft||0,z-=G.clientTop||Q.clientTop||0,{left:W,top:z}}function c(j){var W=s(j),z=j.ownerDocument,V=z.defaultView||z.parentWindow;return W.left+=r(V),W.left}function d(j){var W=g();return function(){var V=Object(i.a)(j),Q;if(W){var G=Object(i.a)(this).constructor;Q=Reflect.construct(V,arguments,G)}else Q=V.apply(this,arguments);return Object(a.a)(this,Q)}}function g(){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(j){return!1}}var v=function(j){Object(u.a)(z,j);var W=d(z);function z(){var V;return Object(f.a)(this,z),V=W.apply(this,arguments),V.onHover=function(Q){var G=V.props,ee=G.onHover,ce=G.index;ee(Q,ce)},V.onClick=function(Q){var G=V.props,ee=G.onClick,ce=G.index;ee(Q,ce)},V.onKeyDown=function(Q){var G=V.props,ee=G.onClick,ce=G.index;Q.keyCode===13&&ee(Q,ce)},V}return Object(h.a)(z,[{key:"getClassName",value:function(){var Q=this.props,G=Q.prefixCls,ee=Q.index,ce=Q.value,be=Q.allowHalf,le=Q.focused,Ie=ee+1,ke=G;return ce===0&&ee===0&&le?ke+=" ".concat(G,"-focused"):be&&ce+.5>=Ie&&ce<Ie?(ke+=" ".concat(G,"-half ").concat(G,"-active"),le&&(ke+=" ".concat(G,"-focused"))):(ke+=Ie<=ce?" ".concat(G,"-full"):" ".concat(G,"-zero"),Ie===ce&&le&&(ke+=" ".concat(G,"-focused"))),ke}},{key:"render",value:function(){var Q=this.onHover,G=this.onClick,ee=this.onKeyDown,ce=this.props,be=ce.disabled,le=ce.prefixCls,Ie=ce.character,ke=ce.characterRender,Re=ce.index,Qe=ce.count,We=ce.value,ot=typeof Ie=="function"?Ie(this.props):Ie,Oe=A.a.createElement("li",{className:this.getClassName()},A.a.createElement("div",{onClick:be?null:G,onKeyDown:be?null:ee,onMouseMove:be?null:Q,role:"radio","aria-checked":We>Re?"true":"false","aria-posinset":Re+1,"aria-setsize":Qe,tabIndex:be?-1:0},A.a.createElement("div",{className:"".concat(le,"-first")},ot),A.a.createElement("div",{className:"".concat(le,"-second")},ot)));return ke&&(Oe=ke(Oe,this.props)),Oe}}]),z}(A.a.Component);function b(j,W){var z=Object.keys(j);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(j);W&&(V=V.filter(function(Q){return Object.getOwnPropertyDescriptor(j,Q).enumerable})),z.push.apply(z,V)}return z}function S(j){for(var W=1;W<arguments.length;W++){var z=arguments[W]!=null?arguments[W]:{};W%2?b(Object(z),!0).forEach(function(V){Object(m.a)(j,V,z[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(z)):b(Object(z)).forEach(function(V){Object.defineProperty(j,V,Object.getOwnPropertyDescriptor(z,V))})}return j}function E(j){var W=C();return function(){var V=Object(i.a)(j),Q;if(W){var G=Object(i.a)(this).constructor;Q=Reflect.construct(V,arguments,G)}else Q=V.apply(this,arguments);return Object(a.a)(this,Q)}}function C(){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(j){return!1}}function _(){}var T=function(j){Object(u.a)(z,j);var W=E(z);function z(V){var Q;Object(f.a)(this,z),Q=W.call(this,V),Q.onHover=function(ee,ce){var be=Q.props.onHoverChange,le=Q.getStarValue(ce,ee.pageX),Ie=Q.state.cleanedValue;le!==Ie&&Q.setState({hoverValue:le,cleanedValue:null}),be(le)},Q.onMouseLeave=function(){var ee=Q.props.onHoverChange;Q.setState({hoverValue:void 0,cleanedValue:null}),ee(void 0)},Q.onClick=function(ee,ce){var be=Q.props.allowClear,le=Q.state.value,Ie=Q.getStarValue(ce,ee.pageX),ke=!1;be&&(ke=Ie===le),Q.onMouseLeave(),Q.changeValue(ke?0:Ie),Q.setState({cleanedValue:ke?Ie:null})},Q.onFocus=function(){var ee=Q.props.onFocus;Q.setState({focused:!0}),ee&&ee()},Q.onBlur=function(){var ee=Q.props.onBlur;Q.setState({focused:!1}),ee&&ee()},Q.onKeyDown=function(ee){var ce=ee.keyCode,be=Q.props,le=be.count,Ie=be.allowHalf,ke=be.onKeyDown,Re=be.direction,Qe=Re==="rtl",We=Q.state.value;ce===l.a.RIGHT&&We<le&&!Qe?(Ie?We+=.5:We+=1,Q.changeValue(We),ee.preventDefault()):ce===l.a.LEFT&&We>0&&!Qe||ce===l.a.RIGHT&&We>0&&Qe?(Ie?We-=.5:We-=1,Q.changeValue(We),ee.preventDefault()):ce===l.a.LEFT&&We<le&&Qe&&(Ie?We+=.5:We+=1,Q.changeValue(We),ee.preventDefault()),ke&&ke(ee)},Q.saveRef=function(ee){return function(ce){Q.stars[ee]=ce}},Q.saveRate=function(ee){Q.rate=ee};var G=V.value;return G===void 0&&(G=V.defaultValue),Q.stars={},Q.state={value:G,focused:!1,cleanedValue:null},Q}return Object(h.a)(z,[{key:"componentDidMount",value:function(){var Q=this.props,G=Q.autoFocus,ee=Q.disabled;G&&!ee&&this.focus()}},{key:"getStarDOM",value:function(Q){return Object(t.a)(this.stars[Q])}},{key:"getStarValue",value:function(Q,G){var ee=this.props,ce=ee.allowHalf,be=ee.direction,le=be==="rtl",Ie=Q+1;if(ce){var ke=this.getStarDOM(Q),Re=c(ke),Qe=ke.clientWidth;(le&&G-Re>Qe/2||!le&&G-Re<Qe/2)&&(Ie-=.5)}return Ie}},{key:"focus",value:function(){var Q=this.props.disabled;Q||this.rate.focus()}},{key:"blur",value:function(){var Q=this.props.disabled;Q||this.rate.blur()}},{key:"changeValue",value:function(Q){var G=this.props.onChange;"value"in this.props||this.setState({value:Q}),G(Q)}},{key:"render",value:function(){for(var Q=this.props,G=Q.count,ee=Q.allowHalf,ce=Q.style,be=Q.prefixCls,le=Q.disabled,Ie=Q.className,ke=Q.character,Re=Q.characterRender,Qe=Q.tabIndex,We=Q.direction,ot=this.state,Oe=ot.value,oe=ot.hoverValue,st=ot.focused,he=[],J=le?"".concat(be,"-disabled"):"",Y=0;Y<G;Y+=1)he.push(A.a.createElement(v,{ref:this.saveRef(Y),index:Y,count:G,disabled:le,prefixCls:"".concat(be,"-star"),allowHalf:ee,value:oe===void 0?Oe:oe,onClick:this.onClick,onHover:this.onHover,key:Y,character:ke,characterRender:Re,focused:st}));var $=e()(be,J,Ie,Object(m.a)({},"".concat(be,"-rtl"),We==="rtl"));return A.a.createElement("ul",{className:$,style:ce,onMouseLeave:le?null:this.onMouseLeave,tabIndex:le?-1:Qe,onFocus:le?null:this.onFocus,onBlur:le?null:this.onBlur,onKeyDown:le?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},he)}}],[{key:"getDerivedStateFromProps",value:function(Q,G){return"value"in Q&&Q.value!==void 0?S(S({},G),{},{value:Q.value}):G}}]),z}(A.a.Component);T.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:_,character:"\u2605",onHoverChange:_,tabIndex:0,direction:"ltr"};var w=T,O=w,I=n("S3Q+"),R=n.n(I),M=n("3S7+"),F=n("H84U"),P=function(j,W){var z={};for(var V in j)Object.prototype.hasOwnProperty.call(j,V)&&W.indexOf(V)<0&&(z[V]=j[V]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,V=Object.getOwnPropertySymbols(j);Q<V.length;Q++)W.indexOf(V[Q])<0&&Object.prototype.propertyIsEnumerable.call(j,V[Q])&&(z[V[Q]]=j[V[Q]]);return z},X=x.forwardRef(function(j,W){var z=j.prefixCls,V=j.tooltips,Q=P(j,["prefixCls","tooltips"]),G=function(ke,Re){var Qe=Re.index;return V?x.createElement(M.a,{title:V[Qe]},ke):ke},ee=x.useContext(F.b),ce=ee.getPrefixCls,be=ee.direction,le=ce("rate",z);return x.createElement(O,p()({ref:W,characterRender:G},Q,{prefixCls:le,direction:be}))});X.displayName="Rate",X.defaultProps={character:x.createElement(R.a,null)};var B=D.a=X},H2oc:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("zzLK"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},H6uX:function(k,D){var n=Array.prototype.slice,y=function(f){this._$handlers={},this._$eventProcessor=f};y.prototype={constructor:y,one:function(f,h,u,a){return x(this,f,h,u,a,!0)},on:function(f,h,u,a){return x(this,f,h,u,a,!1)},isSilent:function(f){var h=this._$handlers;return!h[f]||!h[f].length},off:function(f,h){var u=this._$handlers;if(!f)return this._$handlers={},this;if(h){if(u[f]){for(var a=[],i=0,t=u[f].length;i<t;i++)u[f][i].h!==h&&a.push(u[f][i]);u[f]=a}u[f]&&u[f].length===0&&delete u[f]}else delete u[f];return this},trigger:function(f){var h=this._$handlers[f],u=this._$eventProcessor;if(h){var a=arguments,i=a.length;i>3&&(a=n.call(a,1));for(var t=h.length,o=0;o<t;){var e=h[o];if(u&&u.filter&&e.query!=null&&!u.filter(f,e.query)){o++;continue}switch(i){case 1:e.h.call(e.ctx);break;case 2:e.h.call(e.ctx,a[1]);break;case 3:e.h.call(e.ctx,a[1],a[2]);break;default:e.h.apply(e.ctx,a);break}e.one?(h.splice(o,1),t--):o++}}return u&&u.afterTrigger&&u.afterTrigger(f),this},triggerWithContext:function(f){var h=this._$handlers[f],u=this._$eventProcessor;if(h){var a=arguments,i=a.length;i>4&&(a=n.call(a,1,a.length-1));for(var t=a[a.length-1],o=h.length,e=0;e<o;){var l=h[e];if(u&&u.filter&&l.query!=null&&!u.filter(f,l.query)){e++;continue}switch(i){case 1:l.h.call(t);break;case 2:l.h.call(t,a[1]);break;case 3:l.h.call(t,a[1],a[2]);break;default:l.h.apply(t,a);break}l.one?(h.splice(e,1),o--):e++}}return u&&u.afterTrigger&&u.afterTrigger(f),this}};function p(m,f){var h=m._$eventProcessor;return f!=null&&h&&h.normalizeQuery&&(f=h.normalizeQuery(f)),f}function x(m,f,h,u,a,i){var t=m._$handlers;if(typeof h=="function"&&(a=u,u=h,h=null),!u||!f)return m;h=p(m,h),t[f]||(t[f]=[]);for(var o=0;o<t[f].length;o++)if(t[f][o].h===u)return m;var e={h:u,one:i,query:h,ctx:a||m,callAtLast:u.zrEventfulCallAtLast},l=t[f].length-1,r=t[f][l];return r&&r.callAtLast?t[f].splice(l,0,e):t[f].push(e),m}var A=y;k.exports=A},H7XF:function(k,D,n){"use strict";D.byteLength=u,D.toByteArray=i,D.fromByteArray=e;for(var y=[],p=[],x=typeof Uint8Array!="undefined"?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,f=A.length;m<f;++m)y[m]=A[m],p[A.charCodeAt(m)]=m;p["-".charCodeAt(0)]=62,p["_".charCodeAt(0)]=63;function h(l){var r=l.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var s=l.indexOf("=");s===-1&&(s=r);var c=s===r?0:4-s%4;return[s,c]}function u(l){var r=h(l),s=r[0],c=r[1];return(s+c)*3/4-c}function a(l,r,s){return(r+s)*3/4-s}function i(l){var r,s=h(l),c=s[0],d=s[1],g=new x(a(l,c,d)),v=0,b=d>0?c-4:c,S;for(S=0;S<b;S+=4)r=p[l.charCodeAt(S)]<<18|p[l.charCodeAt(S+1)]<<12|p[l.charCodeAt(S+2)]<<6|p[l.charCodeAt(S+3)],g[v++]=r>>16&255,g[v++]=r>>8&255,g[v++]=r&255;return d===2&&(r=p[l.charCodeAt(S)]<<2|p[l.charCodeAt(S+1)]>>4,g[v++]=r&255),d===1&&(r=p[l.charCodeAt(S)]<<10|p[l.charCodeAt(S+1)]<<4|p[l.charCodeAt(S+2)]>>2,g[v++]=r>>8&255,g[v++]=r&255),g}function t(l){return y[l>>18&63]+y[l>>12&63]+y[l>>6&63]+y[l&63]}function o(l,r,s){for(var c,d=[],g=r;g<s;g+=3)c=(l[g]<<16&16711680)+(l[g+1]<<8&65280)+(l[g+2]&255),d.push(t(c));return d.join("")}function e(l){for(var r,s=l.length,c=s%3,d=[],g=16383,v=0,b=s-c;v<b;v+=g)d.push(o(l,v,v+g>b?b:v+g));return c===1?(r=l[s-1],d.push(y[r>>2]+y[r<<4&63]+"==")):c===2&&(r=(l[s-2]<<8)+l[s-1],d.push(y[r>>10]+y[r>>4&63]+y[r<<2&63]+"=")),d.join("")}},H8j4:function(k,D,n){var y=n("QkVE");function p(x,A){var m=y(this,x),f=m.size;return m.set(x,A),this.size+=m.size==f?0:1,this}k.exports=p},HBhm:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};D.default=y},HDXh:function(k,D,n){"use strict";(function(y){/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/var p=n("H7XF"),x=n("kVK+"),A=n("49sm");D.Buffer=u,D.SlowBuffer=d,D.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=y.TYPED_ARRAY_SUPPORT!==void 0?y.TYPED_ARRAY_SUPPORT:m(),D.kMaxLength=f();function m(){try{var he=new Uint8Array(1);return he.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},he.foo()===42&&typeof he.subarray=="function"&&he.subarray(1,1).byteLength===0}catch(J){return!1}}function f(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function h(he,J){if(f()<J)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(he=new Uint8Array(J),he.__proto__=u.prototype):(he===null&&(he=new u(J)),he.length=J),he}function u(he,J,Y){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(he,J,Y);if(typeof he=="number"){if(typeof J=="string")throw new Error("If encoding is specified then the first argument must be a string");return o(this,he)}return a(this,he,J,Y)}u.poolSize=8192,u._augment=function(he){return he.__proto__=u.prototype,he};function a(he,J,Y,$){if(typeof J=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&J instanceof ArrayBuffer?r(he,J,Y,$):typeof J=="string"?e(he,J,Y):s(he,J)}u.from=function(he,J,Y){return a(null,he,J,Y)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0}));function i(he){if(typeof he!="number")throw new TypeError('"size" argument must be a number');if(he<0)throw new RangeError('"size" argument must not be negative')}function t(he,J,Y,$){return i(J),J<=0?h(he,J):Y!==void 0?typeof $=="string"?h(he,J).fill(Y,$):h(he,J).fill(Y):h(he,J)}u.alloc=function(he,J,Y){return t(null,he,J,Y)};function o(he,J){if(i(J),he=h(he,J<0?0:c(J)|0),!u.TYPED_ARRAY_SUPPORT)for(var Y=0;Y<J;++Y)he[Y]=0;return he}u.allocUnsafe=function(he){return o(null,he)},u.allocUnsafeSlow=function(he){return o(null,he)};function e(he,J,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!u.isEncoding(Y))throw new TypeError('"encoding" must be a valid string encoding');var $=g(J,Y)|0;he=h(he,$);var fe=he.write(J,Y);return fe!==$&&(he=he.slice(0,fe)),he}function l(he,J){var Y=J.length<0?0:c(J.length)|0;he=h(he,Y);for(var $=0;$<Y;$+=1)he[$]=J[$]&255;return he}function r(he,J,Y,$){if(J.byteLength,Y<0||J.byteLength<Y)throw new RangeError("'offset' is out of bounds");if(J.byteLength<Y+($||0))throw new RangeError("'length' is out of bounds");return Y===void 0&&$===void 0?J=new Uint8Array(J):$===void 0?J=new Uint8Array(J,Y):J=new Uint8Array(J,Y,$),u.TYPED_ARRAY_SUPPORT?(he=J,he.__proto__=u.prototype):he=l(he,J),he}function s(he,J){if(u.isBuffer(J)){var Y=c(J.length)|0;return he=h(he,Y),he.length===0||J.copy(he,0,0,Y),he}if(J){if(typeof ArrayBuffer!="undefined"&&J.buffer instanceof ArrayBuffer||"length"in J)return typeof J.length!="number"||st(J.length)?h(he,0):l(he,J);if(J.type==="Buffer"&&A(J.data))return l(he,J.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(he){if(he>=f())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f().toString(16)+" bytes");return he|0}function d(he){return+he!=he&&(he=0),u.alloc(+he)}u.isBuffer=function(J){return!!(J!=null&&J._isBuffer)},u.compare=function(J,Y){if(!u.isBuffer(J)||!u.isBuffer(Y))throw new TypeError("Arguments must be Buffers");if(J===Y)return 0;for(var $=J.length,fe=Y.length,we=0,Ne=Math.min($,fe);we<Ne;++we)if(J[we]!==Y[we]){$=J[we],fe=Y[we];break}return $<fe?-1:fe<$?1:0},u.isEncoding=function(J){switch(String(J).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(J,Y){if(!A(J))throw new TypeError('"list" argument must be an Array of Buffers');if(J.length===0)return u.alloc(0);var $;if(Y===void 0)for(Y=0,$=0;$<J.length;++$)Y+=J[$].length;var fe=u.allocUnsafe(Y),we=0;for($=0;$<J.length;++$){var Ne=J[$];if(!u.isBuffer(Ne))throw new TypeError('"list" argument must be an Array of Buffers');Ne.copy(fe,we),we+=Ne.length}return fe};function g(he,J){if(u.isBuffer(he))return he.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(he)||he instanceof ArrayBuffer))return he.byteLength;typeof he!="string"&&(he=""+he);var Y=he.length;if(Y===0)return 0;for(var $=!1;;)switch(J){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":case void 0:return Qe(he).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y*2;case"hex":return Y>>>1;case"base64":return Oe(he).length;default:if($)return Qe(he).length;J=(""+J).toLowerCase(),$=!0}}u.byteLength=g;function v(he,J,Y){var $=!1;if((J===void 0||J<0)&&(J=0),J>this.length)return"";if((Y===void 0||Y>this.length)&&(Y=this.length),Y<=0)return"";if(Y>>>=0,J>>>=0,Y<=J)return"";for(he||(he="utf8");;)switch(he){case"hex":return j(this,J,Y);case"utf8":case"utf-8":return M(this,J,Y);case"ascii":return X(this,J,Y);case"latin1":case"binary":return B(this,J,Y);case"base64":return R(this,J,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,J,Y);default:if($)throw new TypeError("Unknown encoding: "+he);he=(he+"").toLowerCase(),$=!0}}u.prototype._isBuffer=!0;function b(he,J,Y){var $=he[J];he[J]=he[Y],he[Y]=$}u.prototype.swap16=function(){var J=this.length;if(J%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Y=0;Y<J;Y+=2)b(this,Y,Y+1);return this},u.prototype.swap32=function(){var J=this.length;if(J%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Y=0;Y<J;Y+=4)b(this,Y,Y+3),b(this,Y+1,Y+2);return this},u.prototype.swap64=function(){var J=this.length;if(J%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Y=0;Y<J;Y+=8)b(this,Y,Y+7),b(this,Y+1,Y+6),b(this,Y+2,Y+5),b(this,Y+3,Y+4);return this},u.prototype.toString=function(){var J=this.length|0;return J===0?"":arguments.length===0?M(this,0,J):v.apply(this,arguments)},u.prototype.equals=function(J){if(!u.isBuffer(J))throw new TypeError("Argument must be a Buffer");return this===J?!0:u.compare(this,J)===0},u.prototype.inspect=function(){var J="",Y=D.INSPECT_MAX_BYTES;return this.length>0&&(J=this.toString("hex",0,Y).match(/.{2}/g).join(" "),this.length>Y&&(J+=" ... ")),"<Buffer "+J+">"},u.prototype.compare=function(J,Y,$,fe,we){if(!u.isBuffer(J))throw new TypeError("Argument must be a Buffer");if(Y===void 0&&(Y=0),$===void 0&&($=J?J.length:0),fe===void 0&&(fe=0),we===void 0&&(we=this.length),Y<0||$>J.length||fe<0||we>this.length)throw new RangeError("out of range index");if(fe>=we&&Y>=$)return 0;if(fe>=we)return-1;if(Y>=$)return 1;if(Y>>>=0,$>>>=0,fe>>>=0,we>>>=0,this===J)return 0;for(var Ne=we-fe,Ee=$-Y,de=Math.min(Ne,Ee),me=this.slice(fe,we),Le=J.slice(Y,$),tt=0;tt<de;++tt)if(me[tt]!==Le[tt]){Ne=me[tt],Ee=Le[tt];break}return Ne<Ee?-1:Ee<Ne?1:0};function S(he,J,Y,$,fe){if(he.length===0)return-1;if(typeof Y=="string"?($=Y,Y=0):Y>2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,isNaN(Y)&&(Y=fe?0:he.length-1),Y<0&&(Y=he.length+Y),Y>=he.length){if(fe)return-1;Y=he.length-1}else if(Y<0)if(fe)Y=0;else return-1;if(typeof J=="string"&&(J=u.from(J,$)),u.isBuffer(J))return J.length===0?-1:E(he,J,Y,$,fe);if(typeof J=="number")return J=J&255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?fe?Uint8Array.prototype.indexOf.call(he,J,Y):Uint8Array.prototype.lastIndexOf.call(he,J,Y):E(he,[J],Y,$,fe);throw new TypeError("val must be string, number or Buffer")}function E(he,J,Y,$,fe){var we=1,Ne=he.length,Ee=J.length;if($!==void 0&&($=String($).toLowerCase(),$==="ucs2"||$==="ucs-2"||$==="utf16le"||$==="utf-16le")){if(he.length<2||J.length<2)return-1;we=2,Ne/=2,Ee/=2,Y/=2}function de(ht,Ke){return we===1?ht[Ke]:ht.readUInt16BE(Ke*we)}var me;if(fe){var Le=-1;for(me=Y;me<Ne;me++)if(de(he,me)===de(J,Le===-1?0:me-Le)){if(Le===-1&&(Le=me),me-Le+1===Ee)return Le*we}else Le!==-1&&(me-=me-Le),Le=-1}else for(Y+Ee>Ne&&(Y=Ne-Ee),me=Y;me>=0;me--){for(var tt=!0,At=0;At<Ee;At++)if(de(he,me+At)!==de(J,At)){tt=!1;break}if(tt)return me}return-1}u.prototype.includes=function(J,Y,$){return this.indexOf(J,Y,$)!==-1},u.prototype.indexOf=function(J,Y,$){return S(this,J,Y,$,!0)},u.prototype.lastIndexOf=function(J,Y,$){return S(this,J,Y,$,!1)};function C(he,J,Y,$){Y=Number(Y)||0;var fe=he.length-Y;$?($=Number($),$>fe&&($=fe)):$=fe;var we=J.length;if(we%2!==0)throw new TypeError("Invalid hex string");$>we/2&&($=we/2);for(var Ne=0;Ne<$;++Ne){var Ee=parseInt(J.substr(Ne*2,2),16);if(isNaN(Ee))return Ne;he[Y+Ne]=Ee}return Ne}function _(he,J,Y,$){return oe(Qe(J,he.length-Y),he,Y,$)}function T(he,J,Y,$){return oe(We(J),he,Y,$)}function w(he,J,Y,$){return T(he,J,Y,$)}function O(he,J,Y,$){return oe(Oe(J),he,Y,$)}function I(he,J,Y,$){return oe(ot(J,he.length-Y),he,Y,$)}u.prototype.write=function(J,Y,$,fe){if(Y===void 0)fe="utf8",$=this.length,Y=0;else if($===void 0&&typeof Y=="string")fe=Y,$=this.length,Y=0;else if(isFinite(Y))Y=Y|0,isFinite($)?($=$|0,fe===void 0&&(fe="utf8")):(fe=$,$=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var we=this.length-Y;if(($===void 0||$>we)&&($=we),J.length>0&&($<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");fe||(fe="utf8");for(var Ne=!1;;)switch(fe){case"hex":return C(this,J,Y,$);case"utf8":case"utf-8":return _(this,J,Y,$);case"ascii":return T(this,J,Y,$);case"latin1":case"binary":return w(this,J,Y,$);case"base64":return O(this,J,Y,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,J,Y,$);default:if(Ne)throw new TypeError("Unknown encoding: "+fe);fe=(""+fe).toLowerCase(),Ne=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function R(he,J,Y){return J===0&&Y===he.length?p.fromByteArray(he):p.fromByteArray(he.slice(J,Y))}function M(he,J,Y){Y=Math.min(he.length,Y);for(var $=[],fe=J;fe<Y;){var we=he[fe],Ne=null,Ee=we>239?4:we>223?3:we>191?2:1;if(fe+Ee<=Y){var de,me,Le,tt;switch(Ee){case 1:we<128&&(Ne=we);break;case 2:de=he[fe+1],(de&192)===128&&(tt=(we&31)<<6|de&63,tt>127&&(Ne=tt));break;case 3:de=he[fe+1],me=he[fe+2],(de&192)===128&&(me&192)===128&&(tt=(we&15)<<12|(de&63)<<6|me&63,tt>2047&&(tt<55296||tt>57343)&&(Ne=tt));break;case 4:de=he[fe+1],me=he[fe+2],Le=he[fe+3],(de&192)===128&&(me&192)===128&&(Le&192)===128&&(tt=(we&15)<<18|(de&63)<<12|(me&63)<<6|Le&63,tt>65535&&tt<1114112&&(Ne=tt))}}Ne===null?(Ne=65533,Ee=1):Ne>65535&&(Ne-=65536,$.push(Ne>>>10&1023|55296),Ne=56320|Ne&1023),$.push(Ne),fe+=Ee}return P($)}var F=4096;function P(he){var J=he.length;if(J<=F)return String.fromCharCode.apply(String,he);for(var Y="",$=0;$<J;)Y+=String.fromCharCode.apply(String,he.slice($,$+=F));return Y}function X(he,J,Y){var $="";Y=Math.min(he.length,Y);for(var fe=J;fe<Y;++fe)$+=String.fromCharCode(he[fe]&127);return $}function B(he,J,Y){var $="";Y=Math.min(he.length,Y);for(var fe=J;fe<Y;++fe)$+=String.fromCharCode(he[fe]);return $}function j(he,J,Y){var $=he.length;(!J||J<0)&&(J=0),(!Y||Y<0||Y>$)&&(Y=$);for(var fe="",we=J;we<Y;++we)fe+=Re(he[we]);return fe}function W(he,J,Y){for(var $=he.slice(J,Y),fe="",we=0;we<$.length;we+=2)fe+=String.fromCharCode($[we]+$[we+1]*256);return fe}u.prototype.slice=function(J,Y){var $=this.length;J=~~J,Y=Y===void 0?$:~~Y,J<0?(J+=$,J<0&&(J=0)):J>$&&(J=$),Y<0?(Y+=$,Y<0&&(Y=0)):Y>$&&(Y=$),Y<J&&(Y=J);var fe;if(u.TYPED_ARRAY_SUPPORT)fe=this.subarray(J,Y),fe.__proto__=u.prototype;else{var we=Y-J;fe=new u(we,void 0);for(var Ne=0;Ne<we;++Ne)fe[Ne]=this[Ne+J]}return fe};function z(he,J,Y){if(he%1!==0||he<0)throw new RangeError("offset is not uint");if(he+J>Y)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUIntLE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var fe=this[J],we=1,Ne=0;++Ne<Y&&(we*=256);)fe+=this[J+Ne]*we;return fe},u.prototype.readUIntBE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var fe=this[J+--Y],we=1;Y>0&&(we*=256);)fe+=this[J+--Y]*we;return fe},u.prototype.readUInt8=function(J,Y){return Y||z(J,1,this.length),this[J]},u.prototype.readUInt16LE=function(J,Y){return Y||z(J,2,this.length),this[J]|this[J+1]<<8},u.prototype.readUInt16BE=function(J,Y){return Y||z(J,2,this.length),this[J]<<8|this[J+1]},u.prototype.readUInt32LE=function(J,Y){return Y||z(J,4,this.length),(this[J]|this[J+1]<<8|this[J+2]<<16)+this[J+3]*16777216},u.prototype.readUInt32BE=function(J,Y){return Y||z(J,4,this.length),this[J]*16777216+(this[J+1]<<16|this[J+2]<<8|this[J+3])},u.prototype.readIntLE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var fe=this[J],we=1,Ne=0;++Ne<Y&&(we*=256);)fe+=this[J+Ne]*we;return we*=128,fe>=we&&(fe-=Math.pow(2,8*Y)),fe},u.prototype.readIntBE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var fe=Y,we=1,Ne=this[J+--fe];fe>0&&(we*=256);)Ne+=this[J+--fe]*we;return we*=128,Ne>=we&&(Ne-=Math.pow(2,8*Y)),Ne},u.prototype.readInt8=function(J,Y){return Y||z(J,1,this.length),this[J]&128?(255-this[J]+1)*-1:this[J]},u.prototype.readInt16LE=function(J,Y){Y||z(J,2,this.length);var $=this[J]|this[J+1]<<8;return $&32768?$|4294901760:$},u.prototype.readInt16BE=function(J,Y){Y||z(J,2,this.length);var $=this[J+1]|this[J]<<8;return $&32768?$|4294901760:$},u.prototype.readInt32LE=function(J,Y){return Y||z(J,4,this.length),this[J]|this[J+1]<<8|this[J+2]<<16|this[J+3]<<24},u.prototype.readInt32BE=function(J,Y){return Y||z(J,4,this.length),this[J]<<24|this[J+1]<<16|this[J+2]<<8|this[J+3]},u.prototype.readFloatLE=function(J,Y){return Y||z(J,4,this.length),x.read(this,J,!0,23,4)},u.prototype.readFloatBE=function(J,Y){return Y||z(J,4,this.length),x.read(this,J,!1,23,4)},u.prototype.readDoubleLE=function(J,Y){return Y||z(J,8,this.length),x.read(this,J,!0,52,8)},u.prototype.readDoubleBE=function(J,Y){return Y||z(J,8,this.length),x.read(this,J,!1,52,8)};function V(he,J,Y,$,fe,we){if(!u.isBuffer(he))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>fe||J<we)throw new RangeError('"value" argument is out of bounds');if(Y+$>he.length)throw new RangeError("Index out of range")}u.prototype.writeUIntLE=function(J,Y,$,fe){if(J=+J,Y=Y|0,$=$|0,!fe){var we=Math.pow(2,8*$)-1;V(this,J,Y,$,we,0)}var Ne=1,Ee=0;for(this[Y]=J&255;++Ee<$&&(Ne*=256);)this[Y+Ee]=J/Ne&255;return Y+$},u.prototype.writeUIntBE=function(J,Y,$,fe){if(J=+J,Y=Y|0,$=$|0,!fe){var we=Math.pow(2,8*$)-1;V(this,J,Y,$,we,0)}var Ne=$-1,Ee=1;for(this[Y+Ne]=J&255;--Ne>=0&&(Ee*=256);)this[Y+Ne]=J/Ee&255;return Y+$},u.prototype.writeUInt8=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,1,255,0),u.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),this[Y]=J&255,Y+1};function Q(he,J,Y,$){J<0&&(J=65535+J+1);for(var fe=0,we=Math.min(he.length-Y,2);fe<we;++fe)he[Y+fe]=(J&255<<8*($?fe:1-fe))>>>($?fe:1-fe)*8}u.prototype.writeUInt16LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8):Q(this,J,Y,!0),Y+2},u.prototype.writeUInt16BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>8,this[Y+1]=J&255):Q(this,J,Y,!1),Y+2};function G(he,J,Y,$){J<0&&(J=4294967295+J+1);for(var fe=0,we=Math.min(he.length-Y,4);fe<we;++fe)he[Y+fe]=J>>>($?fe:3-fe)*8&255}u.prototype.writeUInt32LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[Y+3]=J>>>24,this[Y+2]=J>>>16,this[Y+1]=J>>>8,this[Y]=J&255):G(this,J,Y,!0),Y+4},u.prototype.writeUInt32BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>24,this[Y+1]=J>>>16,this[Y+2]=J>>>8,this[Y+3]=J&255):G(this,J,Y,!1),Y+4},u.prototype.writeIntLE=function(J,Y,$,fe){if(J=+J,Y=Y|0,!fe){var we=Math.pow(2,8*$-1);V(this,J,Y,$,we-1,-we)}var Ne=0,Ee=1,de=0;for(this[Y]=J&255;++Ne<$&&(Ee*=256);)J<0&&de===0&&this[Y+Ne-1]!==0&&(de=1),this[Y+Ne]=(J/Ee>>0)-de&255;return Y+$},u.prototype.writeIntBE=function(J,Y,$,fe){if(J=+J,Y=Y|0,!fe){var we=Math.pow(2,8*$-1);V(this,J,Y,$,we-1,-we)}var Ne=$-1,Ee=1,de=0;for(this[Y+Ne]=J&255;--Ne>=0&&(Ee*=256);)J<0&&de===0&&this[Y+Ne+1]!==0&&(de=1),this[Y+Ne]=(J/Ee>>0)-de&255;return Y+$},u.prototype.writeInt8=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,1,127,-128),u.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),J<0&&(J=255+J+1),this[Y]=J&255,Y+1},u.prototype.writeInt16LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8):Q(this,J,Y,!0),Y+2},u.prototype.writeInt16BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>8,this[Y+1]=J&255):Q(this,J,Y,!1),Y+2},u.prototype.writeInt32LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8,this[Y+2]=J>>>16,this[Y+3]=J>>>24):G(this,J,Y,!0),Y+4},u.prototype.writeInt32BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,2147483647,-2147483648),J<0&&(J=4294967295+J+1),u.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>24,this[Y+1]=J>>>16,this[Y+2]=J>>>8,this[Y+3]=J&255):G(this,J,Y,!1),Y+4};function ee(he,J,Y,$,fe,we){if(Y+$>he.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function ce(he,J,Y,$,fe){return fe||ee(he,J,Y,4,34028234663852886e22,-34028234663852886e22),x.write(he,J,Y,$,23,4),Y+4}u.prototype.writeFloatLE=function(J,Y,$){return ce(this,J,Y,!0,$)},u.prototype.writeFloatBE=function(J,Y,$){return ce(this,J,Y,!1,$)};function be(he,J,Y,$,fe){return fe||ee(he,J,Y,8,17976931348623157e292,-17976931348623157e292),x.write(he,J,Y,$,52,8),Y+8}u.prototype.writeDoubleLE=function(J,Y,$){return be(this,J,Y,!0,$)},u.prototype.writeDoubleBE=function(J,Y,$){return be(this,J,Y,!1,$)},u.prototype.copy=function(J,Y,$,fe){if($||($=0),!fe&&fe!==0&&(fe=this.length),Y>=J.length&&(Y=J.length),Y||(Y=0),fe>0&&fe<$&&(fe=$),fe===$)return 0;if(J.length===0||this.length===0)return 0;if(Y<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("sourceStart out of bounds");if(fe<0)throw new RangeError("sourceEnd out of bounds");fe>this.length&&(fe=this.length),J.length-Y<fe-$&&(fe=J.length-Y+$);var we=fe-$,Ne;if(this===J&&$<Y&&Y<fe)for(Ne=we-1;Ne>=0;--Ne)J[Ne+Y]=this[Ne+$];else if(we<1e3||!u.TYPED_ARRAY_SUPPORT)for(Ne=0;Ne<we;++Ne)J[Ne+Y]=this[Ne+$];else Uint8Array.prototype.set.call(J,this.subarray($,$+we),Y);return we},u.prototype.fill=function(J,Y,$,fe){if(typeof J=="string"){if(typeof Y=="string"?(fe=Y,Y=0,$=this.length):typeof $=="string"&&(fe=$,$=this.length),J.length===1){var we=J.charCodeAt(0);we<256&&(J=we)}if(fe!==void 0&&typeof fe!="string")throw new TypeError("encoding must be a string");if(typeof fe=="string"&&!u.isEncoding(fe))throw new TypeError("Unknown encoding: "+fe)}else typeof J=="number"&&(J=J&255);if(Y<0||this.length<Y||this.length<$)throw new RangeError("Out of range index");if($<=Y)return this;Y=Y>>>0,$=$===void 0?this.length:$>>>0,J||(J=0);var Ne;if(typeof J=="number")for(Ne=Y;Ne<$;++Ne)this[Ne]=J;else{var Ee=u.isBuffer(J)?J:Qe(new u(J,fe).toString()),de=Ee.length;for(Ne=0;Ne<$-Y;++Ne)this[Ne+Y]=Ee[Ne%de]}return this};var le=/[^+\/0-9A-Za-z-_]/g;function Ie(he){if(he=ke(he).replace(le,""),he.length<2)return"";for(;he.length%4!==0;)he=he+"=";return he}function ke(he){return he.trim?he.trim():he.replace(/^\s+|\s+$/g,"")}function Re(he){return he<16?"0"+he.toString(16):he.toString(16)}function Qe(he,J){J=J||Infinity;for(var Y,$=he.length,fe=null,we=[],Ne=0;Ne<$;++Ne){if(Y=he.charCodeAt(Ne),Y>55295&&Y<57344){if(!fe){if(Y>56319){(J-=3)>-1&&we.push(239,191,189);continue}else if(Ne+1===$){(J-=3)>-1&&we.push(239,191,189);continue}fe=Y;continue}if(Y<56320){(J-=3)>-1&&we.push(239,191,189),fe=Y;continue}Y=(fe-55296<<10|Y-56320)+65536}else fe&&((J-=3)>-1&&we.push(239,191,189));if(fe=null,Y<128){if((J-=1)<0)break;we.push(Y)}else if(Y<2048){if((J-=2)<0)break;we.push(Y>>6|192,Y&63|128)}else if(Y<65536){if((J-=3)<0)break;we.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if((J-=4)<0)break;we.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,Y&63|128)}else throw new Error("Invalid code point")}return we}function We(he){for(var J=[],Y=0;Y<he.length;++Y)J.push(he.charCodeAt(Y)&255);return J}function ot(he,J){for(var Y,$,fe,we=[],Ne=0;Ne<he.length&&!((J-=2)<0);++Ne)Y=he.charCodeAt(Ne),$=Y>>8,fe=Y%256,we.push(fe),we.push($);return we}function Oe(he){return p.toByteArray(Ie(he))}function oe(he,J,Y,$){for(var fe=0;fe<$&&!(fe+Y>=J.length||fe>=he.length);++fe)J[fe+Y]=he[fe];return fe}function st(he){return he!==he}}).call(this,n("yLpj"))},HDyB:function(k,D,n){var y=n("nmnc"),p=n("JHRd"),x=n("ljhN"),A=n("or5M"),m=n("7fqy"),f=n("rEGp"),h=1,u=2,a="[object Boolean]",i="[object Date]",t="[object Error]",o="[object Map]",e="[object Number]",l="[object RegExp]",r="[object Set]",s="[object String]",c="[object Symbol]",d="[object ArrayBuffer]",g="[object DataView]",v=y?y.prototype:void 0,b=v?v.valueOf:void 0;function S(E,C,_,T,w,O,I){switch(_){case g:if(E.byteLength!=C.byteLength||E.byteOffset!=C.byteOffset)return!1;E=E.buffer,C=C.buffer;case d:return!(E.byteLength!=C.byteLength||!O(new p(E),new p(C)));case a:case i:case e:return x(+E,+C);case t:return E.name==C.name&&E.message==C.message;case l:case s:return E==C+"";case o:var R=m;case r:var M=T&h;if(R||(R=f),E.size!=C.size&&!M)return!1;var F=I.get(E);if(F)return F==C;T|=u,I.set(E,C);var P=A(R(E),R(C),T,w,O,I);return I.delete(E),P;case c:if(b)return b.call(E)==b.call(C)}return!1}k.exports=S},"HF/U":function(k,D,n){var y=n("QBsz");function p(A){var m=A.coordinateSystem;if(m&&m.type!=="view")return;var f=A.getGraph();f.eachNode(function(h){var u=h.getModel();h.setLayout([+u.get("x"),+u.get("y")])}),x(f)}function x(A){A.eachEdge(function(m){var f=m.getModel().get("lineStyle.curveness")||0,h=y.clone(m.node1.getLayout()),u=y.clone(m.node2.getLayout()),a=[h,u];+f&&a.push([(h[0]+u[0])/2-(h[1]-u[1])*f,(h[1]+u[1])/2-(u[0]-h[0])*f]),m.setLayout(a)})}D.simpleLayout=p,D.simpleLayoutEdge=x},"HM/N":function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=n("/SeX"),m=n("OELB"),f=m.parsePercent,h=n("aX7z"),u=h.createScaleByModel,a=h.niceScaleExtent,i=n("IDmD"),t=n("7hqr"),o=t.getStackedDimension;n("ePAk");function e(c,d,g){var v=d.get("center"),b=g.getWidth(),S=g.getHeight();c.cx=f(v[0],b),c.cy=f(v[1],S);var E=c.getRadiusAxis(),C=Math.min(b,S)/2,_=d.get("radius");_==null?_=[0,"100%"]:x.isArray(_)||(_=[0,_]),_=[f(_[0],C),f(_[1],C)],E.inverse?E.setExtent(_[1],_[0]):E.setExtent(_[0],_[1])}function l(c,d){var g=this,v=g.getAngleAxis(),b=g.getRadiusAxis();if(v.scale.setExtent(Infinity,-Infinity),b.scale.setExtent(Infinity,-Infinity),c.eachSeries(function(C){if(C.coordinateSystem===g){var _=C.getData();x.each(_.mapDimension("radius",!0),function(T){b.scale.unionExtentFromData(_,o(_,T))}),x.each(_.mapDimension("angle",!0),function(T){v.scale.unionExtentFromData(_,o(_,T))})}}),a(v.scale,v.model),a(b.scale,b.model),v.type==="category"&&!v.onBand){var S=v.getExtent(),E=360/v.scale.count();v.inverse?S[1]+=E:S[1]-=E,v.setExtent(S[0],S[1])}}function r(c,d){if(c.type=d.get("type"),c.scale=u(d),c.onBand=d.get("boundaryGap")&&c.type==="category",c.inverse=d.get("inverse"),d.mainType==="angleAxis"){c.inverse^=d.get("clockwise");var g=d.get("startAngle");c.setExtent(g,g+(c.inverse?-360:360))}d.axis=c,c.model=d}var s={dimensions:A.prototype.dimensions,create:function(c,d){var g=[];return c.eachComponent("polar",function(v,b){var S=new A(b);S.update=l;var E=S.getRadiusAxis(),C=S.getAngleAxis(),_=v.findAxisModel("radiusAxis"),T=v.findAxisModel("angleAxis");r(E,_),r(C,T),e(S,v,d),g.push(S),v.coordinateSystem=S,S.model=v}),c.eachSeries(function(v){if(v.get("coordinateSystem")==="polar"){var b=c.queryComponents({mainType:"polar",index:v.get("polarIndex"),id:v.get("polarId")})[0];v.coordinateSystem=b.coordinateSystem}}),g}};i.register("polar",s)},HOxn:function(k,D,n){var y=n("Cwc5"),p=n("Kz5y"),x=y(p,"Promise");k.exports=x},HQLL:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("DL4k")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="CaretDownOutlined";var i=A.forwardRef(a);D.default=i},"HT/e":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("rYzl"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},HjIi:function(k,D,n){var y=n("bYtY"),p=n("OELB"),x=p.parsePercent,A=n("7hqr"),m=A.isDimensionStacked;function f(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function h(t,o){return o.dim+t.model.componentIndex}function u(t,o,e){var l={},r=a(y.filter(o.getSeriesByType(t),function(s){return!o.isSeriesFiltered(s)&&s.coordinateSystem&&s.coordinateSystem.type==="polar"}));o.eachSeriesByType(t,function(s){if(s.coordinateSystem.type!=="polar")return;var c=s.getData(),d=s.coordinateSystem,g=d.getBaseAxis(),v=h(d,g),b=f(s),S=r[v][b],E=S.offset,C=S.width,_=d.getOtherAxis(g),T=s.coordinateSystem.cx,w=s.coordinateSystem.cy,O=s.get("barMinHeight")||0,I=s.get("barMinAngle")||0;l[b]=l[b]||[];for(var R=c.mapDimension(_.dim),M=c.mapDimension(g.dim),F=m(c,R),P=g.dim!=="radius"||!s.get("roundCap",!0),X=_.getExtent()[0],B=0,j=c.count();B<j;B++){var W=c.get(R,B),z=c.get(M,B),V=W>=0?"p":"n",Q=X;F&&(l[b][z]||(l[b][z]={p:X,n:X}),Q=l[b][z][V]);var G,ee,ce,be;if(_.dim==="radius"){var le=_.dataToRadius(W)-X,Ie=g.dataToAngle(z);Math.abs(le)<O&&(le=(le<0?-1:1)*O),G=Q,ee=Q+le,ce=Ie-E,be=ce-C,F&&(l[b][z][V]=ee)}else{var ke=_.dataToAngle(W,P)-X,Re=g.dataToRadius(z);Math.abs(ke)<I&&(ke=(ke<0?-1:1)*I),G=Re+E,ee=G+C,ce=Q,be=Q+ke,F&&(l[b][z][V]=be)}c.setItemLayout(B,{cx:T,cy:w,r0:G,r:ee,startAngle:-ce*Math.PI/180,endAngle:-be*Math.PI/180})}},this)}function a(t,o){var e={};y.each(t,function(r,s){var c=r.getData(),d=r.coordinateSystem,g=d.getBaseAxis(),v=h(d,g),b=g.getExtent(),S=g.type==="category"?g.getBandWidth():Math.abs(b[1]-b[0])/c.count(),E=e[v]||{bandWidth:S,remainedWidth:S,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},C=E.stacks;e[v]=E;var _=f(r);C[_]||E.autoWidthCount++,C[_]=C[_]||{width:0,maxWidth:0};var T=x(r.get("barWidth"),S),w=x(r.get("barMaxWidth"),S),O=r.get("barGap"),I=r.get("barCategoryGap");T&&!C[_].width&&(T=Math.min(E.remainedWidth,T),C[_].width=T,E.remainedWidth-=T),w&&(C[_].maxWidth=w),O!=null&&(E.gap=O),I!=null&&(E.categoryGap=I)});var l={};return y.each(e,function(r,s){l[s]={};var c=r.stacks,d=r.bandWidth,g=x(r.categoryGap,d),v=x(r.gap,1),b=r.remainedWidth,S=r.autoWidthCount,E=(b-g)/(S+(S-1)*v);E=Math.max(E,0),y.each(c,function(w,O){var I=w.maxWidth;I&&I<E&&(I=Math.min(I,b),w.width&&(I=Math.min(I,w.width)),b-=I,w.width=I,S--)}),E=(b-g)/(S+(S-1)*v),E=Math.max(E,0);var C=0,_;y.each(c,function(w,O){w.width||(w.width=E),_=w,C+=w.width*(1+v)}),_&&(C-=_.width*v);var T=-C/2;y.each(c,function(w,O){l[s][O]=l[s][O]||{offset:T,width:w.width},T+=w.width*(1+v)})}),l}var i=u;k.exports=i},HjOm:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={locale:"zh_CN",today:"\u4ECA\u5929",now:"\u6B64\u523B",backToToday:"\u8FD4\u56DE\u4ECA\u5929",ok:"\u786E\u5B9A",timeSelect:"\u9009\u62E9\u65F6\u95F4",dateSelect:"\u9009\u62E9\u65E5\u671F",weekSelect:"\u9009\u62E9\u5468",clear:"\u6E05\u9664",month:"\u6708",year:"\u5E74",previousMonth:"\u4E0A\u4E2A\u6708 (\u7FFB\u9875\u4E0A\u952E)",nextMonth:"\u4E0B\u4E2A\u6708 (\u7FFB\u9875\u4E0B\u952E)",monthSelect:"\u9009\u62E9\u6708\u4EFD",yearSelect:"\u9009\u62E9\u5E74\u4EFD",decadeSelect:"\u9009\u62E9\u5E74\u4EE3",yearFormat:"YYYY\u5E74",dayFormat:"D\u65E5",dateFormat:"YYYY\u5E74M\u6708D\u65E5",dateTimeFormat:"YYYY\u5E74M\u6708D\u65E5 HH\u65F6mm\u5206ss\u79D2",previousYear:"\u4E0A\u4E00\u5E74 (Control\u952E\u52A0\u5DE6\u65B9\u5411\u952E)",nextYear:"\u4E0B\u4E00\u5E74 (Control\u952E\u52A0\u53F3\u65B9\u5411\u952E)",previousDecade:"\u4E0A\u4E00\u5E74\u4EE3",nextDecade:"\u4E0B\u4E00\u5E74\u4EE3",previousCentury:"\u4E0A\u4E00\u4E16\u7EAA",nextCentury:"\u4E0B\u4E00\u4E16\u7EAA"},p=y;D.default=p},Hvzi:function(k,D){function n(y){var p=this.has(y)&&delete this.__data__[y];return this.size-=p?1:0,p}k.exports=n},Hw7h:function(k,D,n){var y=n("y+Vt"),p=y.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(x,A){var m=Math.cos,f=Math.sin,h=A.r,u=A.width,a=A.angle,i=A.x-m(a)*u*(u>=h/3?1:2),t=A.y-f(a)*u*(u>=h/3?1:2);a=A.angle-Math.PI/2,x.moveTo(i,t),x.lineTo(A.x+m(a)*u,A.y+f(a)*u),x.lineTo(A.x+m(A.angle)*h,A.y+f(A.angle)*h),x.lineTo(A.x-m(a)*u,A.y-f(a)*u),x.lineTo(i,t);return}});k.exports=p},Hxpc:function(k,D,n){var y=n("bYtY"),p=n("4NO4"),x=n("bLfw"),A=n("Qxkt"),m=n("cCMj"),f=n("7uqq"),h=x.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(a){x.prototype.init.apply(this,arguments),p.defaultEmphasis(a,"label",["show"])},optionUpdated:function(){var a=this.option,i=this;a.regions=f.getFilledRegions(a.regions,a.map,a.nameMap),this._optionModelMap=y.reduce(a.regions||[],function(t,o){return o.name&&t.set(o.name,new A(o,i)),t},y.createHashMap()),this.updateSelectedMap(a.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(a){return this._optionModelMap.get(a)||new A(null,this,this.ecModel)},getFormattedLabel:function(a,i){var t=this.getRegionModel(a),o=t.get("label"+(i==="normal"?".":i+".")+"formatter"),e={name:a};if(typeof o=="function")return e.status=i,o(e);if(typeof o=="string")return o.replace("{a}",a!=null?a:"")},setZoom:function(a){this.option.zoom=a},setCenter:function(a){this.option.center=a}});y.mixin(h,m);var u=h;k.exports=u},"I+77":function(k,D,n){var y=n("ProS");n("h54F"),n("lwQL"),n("10cm");var p=n("Z1r0"),x=n("f5Yq"),A=n("KUOm"),m=n("3m61"),f=n("01d+"),h=n("rdor"),u=n("WGYa"),a=n("ewwo");y.registerProcessor(p),y.registerVisual(x("graph","circle",null)),y.registerVisual(A),y.registerVisual(m),y.registerLayout(f),y.registerLayout(y.PRIORITY.VISUAL.POST_CHART_LAYOUT,h),y.registerLayout(u),y.registerCoordinateSystem("graphView",{create:a})},"I+Bx":function(k,D,n){var y=n("bYtY"),p=n("eIcI"),x=n("ieMj"),A=n("OELB"),m=n("aX7z"),f=m.getScaleExtent,h=m.niceScaleExtent,u=n("IDmD"),a=n("jCoz");function i(o,e,l){this._model=o,this.dimensions=[],this._indicatorAxes=y.map(o.getIndicatorModels(),function(r,s){var c="indicator_"+s,d=new p(c,r.get("axisType")==="log"?new a:new x);return d.name=r.get("name"),d.model=r,r.axis=d,this.dimensions.push(c),d},this),this.resize(o,l),this.cx,this.cy,this.r,this.r0,this.startAngle}i.prototype.getIndicatorAxes=function(){return this._indicatorAxes},i.prototype.dataToPoint=function(o,e){var l=this._indicatorAxes[e];return this.coordToPoint(l.dataToCoord(o),e)},i.prototype.coordToPoint=function(o,e){var l=this._indicatorAxes[e],r=l.angle,s=this.cx+o*Math.cos(r),c=this.cy-o*Math.sin(r);return[s,c]},i.prototype.pointToData=function(o){var e=o[0]-this.cx,l=o[1]-this.cy,r=Math.sqrt(e*e+l*l);e/=r,l/=r;for(var s=Math.atan2(-l,e),c=Infinity,d,g=-1,v=0;v<this._indicatorAxes.length;v++){var b=this._indicatorAxes[v],S=Math.abs(s-b.angle);S<c&&(d=b,g=v,c=S)}return[g,+(d&&d.coordToData(r))]},i.prototype.resize=function(o,e){var l=o.get("center"),r=e.getWidth(),s=e.getHeight(),c=Math.min(r,s)/2;this.cx=A.parsePercent(l[0],r),this.cy=A.parsePercent(l[1],s),this.startAngle=o.get("startAngle")*Math.PI/180;var d=o.get("radius");(typeof d=="string"||typeof d=="number")&&(d=[0,d]),this.r0=A.parsePercent(d[0],c),this.r=A.parsePercent(d[1],c),y.each(this._indicatorAxes,function(g,v){g.setExtent(this.r0,this.r);var b=this.startAngle+v*Math.PI*2/this._indicatorAxes.length;b=Math.atan2(Math.sin(b),Math.cos(b)),g.angle=b},this)},i.prototype.update=function(o,e){var l=this._indicatorAxes,r=this._model;y.each(l,function(d){d.scale.setExtent(Infinity,-Infinity)}),o.eachSeriesByType("radar",function(d,g){if(d.get("coordinateSystem")!=="radar"||o.getComponent("radar",d.get("radarIndex"))!==r)return;var v=d.getData();y.each(l,function(b){b.scale.unionExtentFromData(v,v.mapDimension(b.dim))})},this);var s=r.get("splitNumber");function c(d){var g=Math.pow(10,Math.floor(Math.log(d)/Math.LN10)),v=d/g;return v===2?v=5:v*=2,v*g}y.each(l,function(d,g){var v=f(d.scale,d.model).extent;h(d.scale,d.model);var b=d.model,S=d.scale,E=b.getMin(),C=b.getMax(),_=S.getInterval();if(E!=null&&C!=null)S.setExtent(+E,+C),S.setInterval((C-E)/s);else if(E!=null){var T;do T=E+_*s,S.setExtent(+E,T),S.setInterval(_),_=c(_);while(T<v[1]&&isFinite(T)&&isFinite(v[1]))}else if(C!=null){var w;do w=C-_*s,S.setExtent(w,+C),S.setInterval(_),_=c(_);while(w>v[0]&&isFinite(w)&&isFinite(v[0]))}else{var O=S.getTicks().length-1;O>s&&(_=c(_));var T=Math.ceil(v[1]/_)*_,w=A.round(T-_*s);S.setExtent(w,T),S.setInterval(_)}})},i.dimensions=[],i.create=function(o,e){var l=[];return o.eachComponent("radar",function(r){var s=new i(r,o,e);l.push(s),r.coordinateSystem=s}),o.eachSeriesByType("radar",function(r){r.get("coordinateSystem")==="radar"&&(r.coordinateSystem=l[r.get("radarIndex")||0])}),l},u.register("radar",i);var t=i;k.exports=t},"I3/A":function(k,D,n){var y=n("bYtY"),p=n("YXkt"),x=n("c2i1"),A=n("Mdki"),m=n("sdST"),f=n("IDmD"),h=n("MwEJ");function u(a,i,t,o,e){for(var l=new x(o),r=0;r<a.length;r++)l.addNode(y.retrieve(a[r].id,a[r].name,r),r);for(var s=[],c=[],d=0,r=0;r<i.length;r++){var g=i[r],v=g.source,b=g.target;l.addEdge(v,b,d)&&(c.push(g),s.push(y.retrieve(g.id,v+" > "+b)),d++)}var S=t.get("coordinateSystem"),E;if(S==="cartesian2d"||S==="polar")E=h(a,t);else{var C=f.get(S),_=C&&C.type!=="view"?C.dimensions||[]:[];y.indexOf(_,"value")<0&&_.concat(["value"]);var T=m(a,{coordDimensions:_});E=new p(T,t),E.initData(a)}var w=new p(["value"],t);return w.initData(c,s),e&&e(E,w),A({mainData:E,struct:l,structAttr:"graph",datas:{node:E,edge:w},datasAttr:{node:"data",edge:"edgeData"}}),l.update(),l}k.exports=u},I8Z2:function(k,D,n){"use strict";n.d(D,"a",function(){return A}),n.d(D,"b",function(){return e}),n.d(D,"c",function(){return r});var y=n("q1tI"),p=function(){var s=function(d,g){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var S in b)b.hasOwnProperty(S)&&(v[S]=b[S])},s(d,g)};return function(c,d){s(c,d);function g(){this.constructor=c}c.prototype=d===null?Object.create(d):(g.prototype=d.prototype,new g)}}(),x=y.createContext(null),A=function(s){p(c,s);function c(){return s!==null&&s.apply(this,arguments)||this}return c.prototype.render=function(){return y.createElement(x.Provider,{value:this.props.store},this.props.children)},c}(y.Component),m=n("Gytx"),f=n.n(m),h=n("2mql"),u=n.n(h),a=function(){var s=function(d,g){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var S in b)b.hasOwnProperty(S)&&(v[S]=b[S])},s(d,g)};return function(c,d){s(c,d);function g(){this.constructor=c}c.prototype=d===null?Object.create(d):(g.prototype=d.prototype,new g)}}(),i=function(){return i=Object.assign||function(s){for(var c,d=1,g=arguments.length;d<g;d++){c=arguments[d];for(var v in c)Object.prototype.hasOwnProperty.call(c,v)&&(s[v]=c[v])}return s},i.apply(this,arguments)};function t(s){return s.displayName||s.name||"Component"}var o=function(){return{}};function e(s,c){c===void 0&&(c={});var d=!!s,g=s||o;return function(b){var S=function(C){a(_,C);function _(T,w){var O=C.call(this,T,w)||this;return O.unsubscribe=null,O.handleChange=function(){if(!O.unsubscribe)return;var I=g(O.store.getState(),O.props);O.setState({subscribed:I})},O.store=O.context,O.state={subscribed:g(O.store.getState(),T),store:O.store,props:T},O}return _.getDerivedStateFromProps=function(T,w){return s&&s.length===2&&T!==w.props?{subscribed:g(w.store.getState(),T),props:T}:{props:T}},_.prototype.componentDidMount=function(){this.trySubscribe()},_.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},_.prototype.shouldComponentUpdate=function(T,w){return!f()(this.props,T)||!f()(this.state.subscribed,w.subscribed)},_.prototype.trySubscribe=function(){d&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},_.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},_.prototype.render=function(){var T=i(i(i({},this.props),this.state.subscribed),{store:this.store});return y.createElement(b,i({},T,{ref:this.props.miniStoreForwardedRef}))},_.displayName="Connect("+t(b)+")",_.contextType=x,_}(y.Component);if(c.forwardRef){var E=y.forwardRef(function(C,_){return y.createElement(S,i({},C,{miniStoreForwardedRef:_}))});return u()(E,b)}return u()(S,b)}}var l=function(){return l=Object.assign||function(s){for(var c,d=1,g=arguments.length;d<g;d++){c=arguments[d];for(var v in c)Object.prototype.hasOwnProperty.call(c,v)&&(s[v]=c[v])}return s},l.apply(this,arguments)};function r(s){var c=s,d=[];function g(S){c=l(l({},c),S);for(var E=0;E<d.length;E++)d[E]()}function v(){return c}function b(S){return d.push(S),function(){var C=d.indexOf(S);d.splice(C,1)}}return{setState:g,getState:v,subscribe:b}}},ICMv:function(k,D,n){var y=n("bYtY"),p={getMin:function(x){var A=this.option,m=!x&&A.rangeStart!=null?A.rangeStart:A.min;return this.axis&&m!=null&&m!=="dataMin"&&typeof m!="function"&&!y.eqNaN(m)&&(m=this.axis.scale.parse(m)),m},getMax:function(x){var A=this.option,m=!x&&A.rangeEnd!=null?A.rangeEnd:A.max;return this.axis&&m!=null&&m!=="dataMax"&&typeof m!="function"&&!y.eqNaN(m)&&(m=this.axis.scale.parse(m)),m},getNeedCrossZero:function(){var x=this.option;return x.rangeStart!=null||x.rangeEnd!=null?!1:!x.scale},getCoordSysModel:y.noop,setRange:function(x,A){this.option.rangeStart=x,this.option.rangeEnd=A},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};k.exports=p},"ID/q":function(k,D,n){"use strict";n.d(D,"a",function(){return A});var y=n("cDf5"),p=n.n(y);function x(m,f){typeof m=="function"?m(f):p()(m)==="object"&&m&&"current"in m&&(m.current=f)}function A(){for(var m=arguments.length,f=new Array(m),h=0;h<m;h++)f[h]=arguments[h];return function(u){f.forEach(function(a){x(a,u)})}}},IDmD:function(k,D,n){var y=n("bYtY"),p={};function x(){this._coordinateSystems=[]}x.prototype={constructor:x,create:function(m,f){var h=[];y.each(p,function(u,a){var i=u.create(m,f);h=h.concat(i||[])}),this._coordinateSystems=h},update:function(m,f){y.each(this._coordinateSystems,function(h){h.update&&h.update(m,f)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},x.register=function(m,f){p[m]=f},x.get=function(m){return p[m]};var A=x;k.exports=A},IMiH:function(k,D,n){var y=n("Sj9i"),p=n("QBsz"),x=n("4mN7"),A=n("mFDi"),m=n("LPTA"),f=m.devicePixelRatio,h={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],a=[],i=[],t=[],o=Math.min,e=Math.max,l=Math.cos,r=Math.sin,s=Math.sqrt,c=Math.abs,d=typeof Float32Array!="undefined",g=function(S){this._saveData=!(S||!1),this._saveData&&(this.data=[]),this._ctx=null};g.prototype={constructor:g,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(S,E,C){C=C||0,this._ux=c(C/f/S)||0,this._uy=c(C/f/E)||0},getContext:function(){return this._ctx},beginPath:function(S){return this._ctx=S,S&&S.beginPath(),S&&(this.dpr=S.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(S,E){return this.addData(h.M,S,E),this._ctx&&this._ctx.moveTo(S,E),this._x0=S,this._y0=E,this._xi=S,this._yi=E,this},lineTo:function(S,E){var C=c(S-this._xi)>this._ux||c(E-this._yi)>this._uy||this._len<5;return this.addData(h.L,S,E),this._ctx&&C&&(this._needsDash()?this._dashedLineTo(S,E):this._ctx.lineTo(S,E)),C&&(this._xi=S,this._yi=E),this},bezierCurveTo:function(S,E,C,_,T,w){return this.addData(h.C,S,E,C,_,T,w),this._ctx&&(this._needsDash()?this._dashedBezierTo(S,E,C,_,T,w):this._ctx.bezierCurveTo(S,E,C,_,T,w)),this._xi=T,this._yi=w,this},quadraticCurveTo:function(S,E,C,_){return this.addData(h.Q,S,E,C,_),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(S,E,C,_):this._ctx.quadraticCurveTo(S,E,C,_)),this._xi=C,this._yi=_,this},arc:function(S,E,C,_,T,w){return this.addData(h.A,S,E,C,C,_,T-_,0,w?0:1),this._ctx&&this._ctx.arc(S,E,C,_,T,w),this._xi=l(T)*C+S,this._yi=r(T)*C+E,this},arcTo:function(S,E,C,_,T){return this._ctx&&this._ctx.arcTo(S,E,C,_,T),this},rect:function(S,E,C,_){return this._ctx&&this._ctx.rect(S,E,C,_),this.addData(h.R,S,E,C,_),this},closePath:function(){this.addData(h.Z);var S=this._ctx,E=this._x0,C=this._y0;return S&&(this._needsDash()&&this._dashedLineTo(E,C),S.closePath()),this._xi=E,this._yi=C,this},fill:function(S){S&&S.fill(),this.toStatic()},stroke:function(S){S&&S.stroke(),this.toStatic()},setLineDash:function(S){if(S instanceof Array){this._lineDash=S,this._dashIdx=0;for(var E=0,C=0;C<S.length;C++)E+=S[C];this._dashSum=E}return this},setLineDashOffset:function(S){return this._dashOffset=S,this},len:function(){return this._len},setData:function(S){var E=S.length;!(this.data&&this.data.length===E)&&d&&(this.data=new Float32Array(E));for(var C=0;C<E;C++)this.data[C]=S[C];this._len=E},appendPath:function(S){S instanceof Array||(S=[S]);for(var E=S.length,C=0,_=this._len,T=0;T<E;T++)C+=S[T].len();d&&this.data instanceof Float32Array&&(this.data=new Float32Array(_+C));for(var T=0;T<E;T++)for(var w=S[T].data,O=0;O<w.length;O++)this.data[_++]=w[O];this._len=_},addData:function(S){if(!this._saveData)return;var E=this.data;this._len+arguments.length>E.length&&(this._expandData(),E=this.data);for(var C=0;C<arguments.length;C++)E[this._len++]=arguments[C];this._prevCmd=S},_expandData:function(){if(!(this.data instanceof Array)){for(var S=[],E=0;E<this._len;E++)S[E]=this.data[E];this.data=S}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(S,E){var C=this._dashSum,_=this._dashOffset,T=this._lineDash,w=this._ctx,O=this._xi,I=this._yi,R=S-O,M=E-I,F=s(R*R+M*M),P=O,X=I,B,j=T.length,W;for(R/=F,M/=F,_<0&&(_=C+_),_%=C,P-=_*R,X-=_*M;R>0&&P<=S||R<0&&P>=S||R===0&&(M>0&&X<=E||M<0&&X>=E);){if(W=this._dashIdx,B=T[W],P+=R*B,X+=M*B,this._dashIdx=(W+1)%j,R>0&&P<O||R<0&&P>O||M>0&&X<I||M<0&&X>I)continue;w[W%2?"moveTo":"lineTo"](R>=0?o(P,S):e(P,S),M>=0?o(X,E):e(X,E))}R=P-S,M=X-E,this._dashOffset=-s(R*R+M*M)},_dashedBezierTo:function(S,E,C,_,T,w){var O=this._dashSum,I=this._dashOffset,R=this._lineDash,M=this._ctx,F=this._xi,P=this._yi,X,B,j,W=y.cubicAt,z=0,V=this._dashIdx,Q=R.length,G,ee,ce=0;for(I<0&&(I=O+I),I%=O,X=0;X<1;X+=.1)B=W(F,S,C,T,X+.1)-W(F,S,C,T,X),j=W(P,E,_,w,X+.1)-W(P,E,_,w,X),z+=s(B*B+j*j);for(;V<Q&&!(ce+=R[V],ce>I);V++);for(X=(ce-I)/z;X<=1;)G=W(F,S,C,T,X),ee=W(P,E,_,w,X),V%2?M.moveTo(G,ee):M.lineTo(G,ee),X+=R[V]/z,V=(V+1)%Q;V%2!==0&&M.lineTo(T,w),B=T-G,j=w-ee,this._dashOffset=-s(B*B+j*j)},_dashedQuadraticTo:function(S,E,C,_){var T=C,w=_;C=(C+2*S)/3,_=(_+2*E)/3,S=(this._xi+2*S)/3,E=(this._yi+2*E)/3,this._dashedBezierTo(S,E,C,_,T,w)},toStatic:function(){var S=this.data;S instanceof Array&&(S.length=this._len,d&&(this.data=new Float32Array(S)))},getBoundingRect:function(){u[0]=u[1]=i[0]=i[1]=Number.MAX_VALUE,a[0]=a[1]=t[0]=t[1]=-Number.MAX_VALUE;for(var S=this.data,E=0,C=0,_=0,T=0,w=0;w<S.length;){var O=S[w++];w===1&&(E=S[w],C=S[w+1],_=E,T=C);switch(O){case h.M:_=S[w++],T=S[w++],E=_,C=T,i[0]=_,i[1]=T,t[0]=_,t[1]=T;break;case h.L:x.fromLine(E,C,S[w],S[w+1],i,t),E=S[w++],C=S[w++];break;case h.C:x.fromCubic(E,C,S[w++],S[w++],S[w++],S[w++],S[w],S[w+1],i,t),E=S[w++],C=S[w++];break;case h.Q:x.fromQuadratic(E,C,S[w++],S[w++],S[w],S[w+1],i,t),E=S[w++],C=S[w++];break;case h.A:var I=S[w++],R=S[w++],M=S[w++],F=S[w++],P=S[w++],X=S[w++]+P;w+=1;var B=1-S[w++];w===1&&(_=l(P)*M+I,T=r(P)*F+R),x.fromArc(I,R,M,F,P,X,B,i,t),E=l(X)*M+I,C=r(X)*F+R;break;case h.R:_=E=S[w++],T=C=S[w++];var j=S[w++],W=S[w++];x.fromLine(_,T,_+j,T+W,i,t);break;case h.Z:E=_,C=T;break}p.min(u,u,i),p.max(a,a,t)}return w===0&&(u[0]=u[1]=a[0]=a[1]=0),new A(u[0],u[1],a[0]-u[0],a[1]-u[1])},rebuildPath:function(S){for(var E=this.data,C,_,T,w,O,I,R=this._ux,M=this._uy,F=this._len,P=0;P<F;){var X=E[P++];P===1&&(T=E[P],w=E[P+1],C=T,_=w);switch(X){case h.M:C=T=E[P++],_=w=E[P++],S.moveTo(T,w);break;case h.L:O=E[P++],I=E[P++],(c(O-T)>R||c(I-w)>M||P===F-1)&&(S.lineTo(O,I),T=O,w=I);break;case h.C:S.bezierCurveTo(E[P++],E[P++],E[P++],E[P++],E[P++],E[P++]),T=E[P-2],w=E[P-1];break;case h.Q:S.quadraticCurveTo(E[P++],E[P++],E[P++],E[P++]),T=E[P-2],w=E[P-1];break;case h.A:var B=E[P++],j=E[P++],W=E[P++],z=E[P++],V=E[P++],Q=E[P++],G=E[P++],ee=E[P++],ce=W>z?W:z,be=W>z?1:W/z,le=W>z?z/W:1,Ie=Math.abs(W-z)>.001,ke=V+Q;Ie?(S.translate(B,j),S.rotate(G),S.scale(be,le),S.arc(0,0,ce,V,ke,1-ee),S.scale(1/be,1/le),S.rotate(-G),S.translate(-B,-j)):S.arc(B,j,ce,V,ke,1-ee),P===1&&(C=l(V)*W+B,_=r(V)*z+j),T=l(ke)*W+B,w=r(ke)*z+j;break;case h.R:C=T=E[P],_=w=E[P+1],S.rect(E[P++],E[P++],E[P++],E[P++]);break;case h.Z:S.closePath(),T=C,w=_}}}},g.CMD=h;var v=g;k.exports=v},IUWy:function(k,D){var n={};function y(x,A){n[x]=A}function p(x){return n[x]}D.register=y,D.get=p},IWNH:function(k,D,n){var y=n("T4UG"),p=n("Bsck"),x=n("7aKB"),A=x.encodeHTML,m=n("Qxkt"),f=y.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(h){var u={name:h.name,children:h.data},a=h.leaves||{},i=new m(a,this,this.ecModel),t=p.createTree(u,this,{},o);function o(s){s.wrapMethod("getItemModel",function(c,d){var g=t.getNodeByDataIndex(d);return(!g.children.length||!g.isExpand)&&(c.parentModel=i),c})}var e=0;t.eachNode("preorder",function(s){s.depth>e&&(e=s.depth)});var l=h.expandAndCollapse,r=l&&h.initialTreeDepth>=0?h.initialTreeDepth:e;return t.root.eachNode("preorder",function(s){var c=s.hostTree.data.getRawDataItem(s.dataIndex);s.isExpand=c&&c.collapsed!=null?!c.collapsed:s.depth<=r}),t.data},getOrient:function(){var h=this.get("orient");return h==="horizontal"?h="LR":h==="vertical"&&(h="TB"),h},setZoom:function(h){this.option.zoom=h},setCenter:function(h){this.option.center=h},formatTooltip:function(h){for(var u=this.getData().tree,a=u.root.children[0],i=u.getNodeByDataIndex(h),t=i.getValue(),o=i.name;i&&i!==a;)o=i.parentNode.name+"."+o,i=i.parentNode;return A(o+(isNaN(t)||t==null?"":" : "+t))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});k.exports=f},IWp7:function(k,D,n){var y=n("bYtY"),p=n("OELB"),x=n("7aKB"),A=n("lE7J"),m=n("ieMj"),f=m.prototype,h=Math.ceil,u=Math.floor,a=1e3,i=a*60,t=i*60,o=t*24,e=function(c,d,g,v){for(;g<v;){var b=g+v>>>1;c[b][1]<d?g=b+1:v=b}return g},l=m.extend({type:"time",getLabel:function(c){var d=this._stepLvl,g=new Date(c);return x.formatTime(d[0],g,this.getSetting("useUTC"))},niceExtent:function(c){var d=this._extent;if(d[0]===d[1]&&(d[0]-=o,d[1]+=o),d[1]===-Infinity&&d[0]===Infinity){var g=new Date;d[1]=+new Date(g.getFullYear(),g.getMonth(),g.getDate()),d[0]=d[1]-o}this.niceTicks(c.splitNumber,c.minInterval,c.maxInterval);var v=this._interval;c.fixMin||(d[0]=p.round(u(d[0]/v)*v)),c.fixMax||(d[1]=p.round(h(d[1]/v)*v))},niceTicks:function(c,d,g){c=c||10;var v=this._extent,b=v[1]-v[0],S=b/c;d!=null&&S<d&&(S=d),g!=null&&S>g&&(S=g);var E=r.length,C=e(r,S,0,E),_=r[Math.min(C,E-1)],T=_[1];if(_[0]==="year"){var w=b/T,O=p.nice(w/c,!0);T*=O}var I=this.getSetting("useUTC")?0:new Date(+v[0]||+v[1]).getTimezoneOffset()*60*1e3,R=[Math.round(h((v[0]-I)/T)*T+I),Math.round(u((v[1]-I)/T)*T+I)];A.fixExtent(R,v),this._stepLvl=_,this._interval=T,this._niceExtent=R},parse:function(c){return+p.parseDate(c)}});y.each(["contain","normalize"],function(c){l.prototype[c]=function(d){return f[c].call(this,this.parse(d))}});var r=[["hh:mm:ss",a],["hh:mm:ss",a*5],["hh:mm:ss",a*10],["hh:mm:ss",a*15],["hh:mm:ss",a*30],[`hh:mm
|
|
|
MM-dd`,i],[`hh:mm
|
|
|
MM-dd`,i*5],[`hh:mm
|
|
|
MM-dd`,i*10],[`hh:mm
|
|
|
MM-dd`,i*15],[`hh:mm
|
|
|
MM-dd`,i*30],[`hh:mm
|
|
|
MM-dd`,t],[`hh:mm
|
|
|
MM-dd`,t*2],[`hh:mm
|
|
|
MM-dd`,t*6],[`hh:mm
|
|
|
MM-dd`,t*12],[`MM-dd
|
|
|
yyyy`,o],[`MM-dd
|
|
|
yyyy`,o*2],[`MM-dd
|
|
|
yyyy`,o*3],[`MM-dd
|
|
|
yyyy`,o*4],[`MM-dd
|
|
|
yyyy`,o*5],[`MM-dd
|
|
|
yyyy`,o*6],["week",o*7],[`MM-dd
|
|
|
yyyy`,o*10],["week",o*14],["week",o*21],["month",o*31],["week",o*42],["month",o*62],["week",o*70],["quarter",o*95],["month",o*31*4],["month",o*31*5],["half-year",o*380/2],["month",o*31*8],["month",o*31*10],["year",o*380]];l.create=function(c){return new l({useUTC:c.ecModel.get("useUTC")})};var s=l;k.exports=s},IXuL:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("MwEJ"),A=n("T4UG"),m=A.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(f,h){return x(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:Infinity}});k.exports=m},IXyC:function(k,D,n){var y=n("bYtY"),p=n("bLfw");n("3zoK");var x=p.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){p.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(A){var m=this.option;A&&y.merge(m,A,!0),this._initDimensions()},contains:function(A,m){var f=A.get("parallelIndex");return f!=null&&m.getComponent("parallel",f)===this},setAxisExpand:function(A){y.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(m){A.hasOwnProperty(m)&&(this.option[m]=A[m])},this)},_initDimensions:function(){var A=this.dimensions=[],m=this.parallelAxisIndex=[],f=y.filter(this.dependentModels.parallelAxis,function(h){return(h.get("parallelIndex")||0)===this.componentIndex},this);y.each(f,function(h){A.push("dim"+h.get("dim")),m.push(h.componentIndex)})}});k.exports=x},Ib8C:function(k,D,n){(function(y){(function(p,x){k.exports=D=x()})(this,function(){var p=p||function(x,A){var m;if(typeof window!="undefined"&&window.crypto&&(m=window.crypto),typeof self!="undefined"&&self.crypto&&(m=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(m=globalThis.crypto),!m&&typeof window!="undefined"&&window.msCrypto&&(m=window.msCrypto),!m&&typeof y!="undefined"&&y.crypto&&(m=y.crypto),!m&&!0)try{m=n(4)}catch(g){}var f=function(){if(m){if(typeof m.getRandomValues=="function")try{return m.getRandomValues(new Uint32Array(1))[0]}catch(v){}if(typeof m.randomBytes=="function")try{return m.randomBytes(4).readInt32LE()}catch(v){}}throw new Error("Native crypto module could not be used to get secure random number.")},h=Object.create||function(){function g(){}return function(v){var b;return g.prototype=v,b=new g,g.prototype=null,b}}(),u={},a=u.lib={},i=a.Base=function(){return{extend:function(v){var b=h(this);return v&&b.mixIn(v),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var v=this.extend();return v.init.apply(v,arguments),v},init:function(){},mixIn:function(v){for(var b in v)v.hasOwnProperty(b)&&(this[b]=v[b]);v.hasOwnProperty("toString")&&(this.toString=v.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),t=a.WordArray=i.extend({init:function(v,b){v=this.words=v||[],b!=A?this.sigBytes=b:this.sigBytes=v.length*4},toString:function(v){return(v||e).stringify(this)},concat:function(v){var b=this.words,S=v.words,E=this.sigBytes,C=v.sigBytes;if(this.clamp(),E%4)for(var _=0;_<C;_++){var T=S[_>>>2]>>>24-_%4*8&255;b[E+_>>>2]|=T<<24-(E+_)%4*8}else for(var w=0;w<C;w+=4)b[E+w>>>2]=S[w>>>2];return this.sigBytes+=C,this},clamp:function(){var v=this.words,b=this.sigBytes;v[b>>>2]&=4294967295<<32-b%4*8,v.length=x.ceil(b/4)},clone:function(){var v=i.clone.call(this);return v.words=this.words.slice(0),v},random:function(v){for(var b=[],S=0;S<v;S+=4)b.push(f());return new t.init(b,v)}}),o=u.enc={},e=o.Hex={stringify:function(v){for(var b=v.words,S=v.sigBytes,E=[],C=0;C<S;C++){var _=b[C>>>2]>>>24-C%4*8&255;E.push((_>>>4).toString(16)),E.push((_&15).toString(16))}return E.join("")},parse:function(v){for(var b=v.length,S=[],E=0;E<b;E+=2)S[E>>>3]|=parseInt(v.substr(E,2),16)<<24-E%8*4;return new t.init(S,b/2)}},l=o.Latin1={stringify:function(v){for(var b=v.words,S=v.sigBytes,E=[],C=0;C<S;C++){var _=b[C>>>2]>>>24-C%4*8&255;E.push(String.fromCharCode(_))}return E.join("")},parse:function(v){for(var b=v.length,S=[],E=0;E<b;E++)S[E>>>2]|=(v.charCodeAt(E)&255)<<24-E%4*8;return new t.init(S,b)}},r=o.Utf8={stringify:function(v){try{return decodeURIComponent(escape(l.stringify(v)))}catch(b){throw new Error("Malformed UTF-8 data")}},parse:function(v){return l.parse(unescape(encodeURIComponent(v)))}},s=a.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new t.init,this._nDataBytes=0},_append:function(v){typeof v=="string"&&(v=r.parse(v)),this._data.concat(v),this._nDataBytes+=v.sigBytes},_process:function(v){var b,S=this._data,E=S.words,C=S.sigBytes,_=this.blockSize,T=_*4,w=C/T;v?w=x.ceil(w):w=x.max((w|0)-this._minBufferSize,0);var O=w*_,I=x.min(O*4,C);if(O){for(var R=0;R<O;R+=_)this._doProcessBlock(E,R);b=E.splice(0,O),S.sigBytes-=I}return new t.init(b,I)},clone:function(){var v=i.clone.call(this);return v._data=this._data.clone(),v},_minBufferSize:0}),c=a.Hasher=s.extend({cfg:i.extend(),init:function(v){this.cfg=this.cfg.extend(v),this.reset()},reset:function(){s.reset.call(this),this._doReset()},update:function(v){return this._append(v),this._process(),this},finalize:function(v){v&&this._append(v);var b=this._doFinalize();return b},blockSize:512/32,_createHelper:function(v){return function(b,S){return new v.init(S).finalize(b)}},_createHmacHelper:function(v){return function(b,S){return new d.HMAC.init(v,S).finalize(b)}}}),d=u.algo={};return u}(Math);return p})}).call(this,n("yLpj"))},ItGF:function(k,D){var n={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?n={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?n={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?n={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:n=p(navigator.userAgent);var y=n;function p(x){var A={},m={},f=x.match(/Firefox\/([\d.]+)/),h=x.match(/MSIE\s([\d.]+)/)||x.match(/Trident\/.+?rv:(([\d.]+))/),u=x.match(/Edge\/([\d.]+)/),a=/micromessenger/i.test(x);return f&&(m.firefox=!0,m.version=f[1]),h&&(m.ie=!0,m.version=h[1]),u&&(m.edge=!0,m.version=u[1]),a&&(m.weChat=!0),{browser:m,os:A,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!m.ie&&!m.edge,pointerEventsSupported:"onpointerdown"in window&&(m.edge||m.ie&&m.version>=11),domSupported:typeof document!="undefined"}}k.exports=y},ItS6:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=n("eP3c"),p=x(n("1q3G"));function x(u){return u&&u.__esModule?u:{default:u}}function A(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function m(u,a){for(var i=0;i<a.length;i++){var t=a[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(u,t.key,t)}}function f(u,a,i){return a&&m(u.prototype,a),i&&m(u,i),u}var h=function(){function u(){A(this,u),this.strm=new p.default,this.chunkSize=1024*10*10,this.strm.output=new Uint8Array(this.chunkSize),this.windowBits=5,(0,y.inflateInit)(this.strm,this.windowBits)}return f(u,[{key:"setInput",value:function(i){i?(this.strm.input=i,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0):(this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0)}},{key:"inflate",value:function(i){i>this.chunkSize&&(this.chunkSize=i,this.strm.output=new Uint8Array(this.chunkSize)),this.strm.next_out=0,this.strm.avail_out=i;var t=(0,y.inflate)(this.strm,0);if(t<0)throw new Error("zlib inflate failed");if(this.strm.next_out!=i)throw new Error("Incomplete zlib block");return new Uint8Array(this.strm.output.buffer,0,this.strm.next_out)}},{key:"reset",value:function(){(0,y.inflateReset)(this.strm)}}]),u}();D.default=h},Itpr:function(k,D,n){var y=n("+TT/");function p(r){r.hierNode={defaultAncestor:null,ancestor:r,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var s=[r],c,d;c=s.pop();)if(d=c.children,c.isExpand&&d.length)for(var g=d.length,v=g-1;v>=0;v--){var b=d[v];b.hierNode={defaultAncestor:null,ancestor:b,prelim:0,modifier:0,change:0,shift:0,i:v,thread:null},s.push(b)}}function x(r,s){var c=r.isExpand?r.children:[],d=r.parentNode.children,g=r.hierNode.i?d[r.hierNode.i-1]:null;if(c.length){u(r);var v=(c[0].hierNode.prelim+c[c.length-1].hierNode.prelim)/2;g?(r.hierNode.prelim=g.hierNode.prelim+s(r,g),r.hierNode.modifier=r.hierNode.prelim-v):r.hierNode.prelim=v}else g&&(r.hierNode.prelim=g.hierNode.prelim+s(r,g));r.parentNode.hierNode.defaultAncestor=a(r,g,r.parentNode.hierNode.defaultAncestor||d[0],s)}function A(r){var s=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:s},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function m(r){return arguments.length?r:l}function f(r,s){var c={};return r-=Math.PI/2,c.x=s*Math.cos(r),c.y=s*Math.sin(r),c}function h(r,s){return y.getLayoutRect(r.getBoxLayoutParams(),{width:s.getWidth(),height:s.getHeight()})}function u(r){for(var s=r.children,c=s.length,d=0,g=0;--c>=0;){var v=s[c];v.hierNode.prelim+=d,v.hierNode.modifier+=d,g+=v.hierNode.change,d+=v.hierNode.shift+g}}function a(r,s,c,d){if(s){for(var g=r,v=r,b=v.parentNode.children[0],S=s,E=g.hierNode.modifier,C=v.hierNode.modifier,_=b.hierNode.modifier,T=S.hierNode.modifier;S=i(S),v=t(v),S&&v;){g=i(g),b=t(b),g.hierNode.ancestor=r;var w=S.hierNode.prelim+T-v.hierNode.prelim-C+d(S,v);w>0&&(e(o(S,r,c),r,w),C+=w,E+=w),T+=S.hierNode.modifier,C+=v.hierNode.modifier,E+=g.hierNode.modifier,_+=b.hierNode.modifier}S&&!i(g)&&(g.hierNode.thread=S,g.hierNode.modifier+=T-E),v&&!t(b)&&(b.hierNode.thread=v,b.hierNode.modifier+=C-_,c=r)}return c}function i(r){var s=r.children;return s.length&&r.isExpand?s[s.length-1]:r.hierNode.thread}function t(r){var s=r.children;return s.length&&r.isExpand?s[0]:r.hierNode.thread}function o(r,s,c){return r.hierNode.ancestor.parentNode===s.parentNode?r.hierNode.ancestor:c}function e(r,s,c){var d=c/(s.hierNode.i-r.hierNode.i);s.hierNode.change-=d,s.hierNode.shift+=c,s.hierNode.modifier+=c,s.hierNode.prelim+=c,r.hierNode.change+=d}function l(r,s){return r.parentNode===s.parentNode?1:2}D.init=p,D.firstWalk=x,D.secondWalk=A,D.separation=m,D.radialCoordinate=f,D.getViewRect=h},IwbS:function(k,D,n){var y=n("bYtY"),p=n("NC18"),x=n("Qe9p"),A=n("Fofx"),m=n("QBsz"),f=n("y+Vt"),h=n("DN4a"),u=n("Dagg");D.Image=u;var a=n("4fz+");D.Group=a;var i=n("dqUG");D.Text=i;var t=n("2fw6");D.Circle=t;var o=n("SqI9");D.Sector=o;var e=n("RXMa");D.Ring=e;var l=n("h7HQ");D.Polygon=l;var r=n("1Jh7");D.Polyline=r;var s=n("x6Kt");D.Rect=s;var c=n("yxFR");D.Line=c;var d=n("rA99");D.BezierCurve=d;var g=n("jTL6");D.Arc=g;var v=n("1MYJ");D.CompoundPath=v;var b=n("SKnc");D.LinearGradient=b;var S=n("3e3G");D.RadialGradient=S;var E=n("mFDi");D.BoundingRect=E;var C=n("OS9S");D.IncrementalDisplayable=C;var _=n("nPnh"),T=Math.max,w=Math.min,O={},I=1,R={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},M="emphasis",F="normal",P=1,X={},B={};function j(Wt){return f.extend(Wt)}function W(Wt,xt){return p.extendFromString(Wt,xt)}function z(Wt,xt){B[Wt]=xt}function V(Wt){if(B.hasOwnProperty(Wt))return B[Wt]}function Q(Wt,xt,rn,Dn){var Xn=p.createFromString(Wt,xt);return rn&&(Dn==="center"&&(rn=ee(rn,Xn.getBoundingRect())),be(Xn,rn)),Xn}function G(Wt,xt,rn){var Dn=new u({style:{image:Wt,x:xt.x,y:xt.y,width:xt.width,height:xt.height},onload:function(Xn){if(rn==="center"){var ri={width:Xn.width,height:Xn.height};Dn.setStyle(ee(xt,ri))}}});return Dn}function ee(Wt,xt){var rn=xt.width/xt.height,Dn=Wt.height*rn,Xn;Dn<=Wt.width?Xn=Wt.height:(Dn=Wt.width,Xn=Dn/rn);var ri=Wt.x+Wt.width/2,Ui=Wt.y+Wt.height/2;return{x:ri-Dn/2,y:Ui-Xn/2,width:Dn,height:Xn}}var ce=p.mergePath;function be(Wt,xt){if(!Wt.applyTransform)return;var rn=Wt.getBoundingRect(),Dn=rn.calculateTransform(xt);Wt.applyTransform(Dn)}function le(Wt){return _.subPixelOptimizeLine(Wt.shape,Wt.shape,Wt.style),Wt}function Ie(Wt){return _.subPixelOptimizeRect(Wt.shape,Wt.shape,Wt.style),Wt}var ke=_.subPixelOptimize;function Re(Wt){return Wt!=null&&Wt!=="none"}var Qe=y.createHashMap(),We=0;function ot(Wt){if(typeof Wt!="string")return Wt;var xt=Qe.get(Wt);return xt||(xt=x.lift(Wt,-.1),We<1e4&&(Qe.set(Wt,xt),We++)),xt}function Oe(Wt){if(!Wt.__hoverStlDirty)return;Wt.__hoverStlDirty=!1;var xt=Wt.__hoverStl;if(!xt){Wt.__cachedNormalStl=Wt.__cachedNormalZ2=null;return}var rn=Wt.__cachedNormalStl={};Wt.__cachedNormalZ2=Wt.z2;var Dn=Wt.style;for(var Xn in xt)xt[Xn]!=null&&(rn[Xn]=Dn[Xn]);rn.fill=Dn.fill,rn.stroke=Dn.stroke}function oe(Wt){var xt=Wt.__hoverStl;if(!xt||Wt.__highlighted)return;var rn=Wt.__zr,Dn=Wt.useHoverLayer&&rn&&rn.painter.type==="canvas";if(Wt.__highlighted=Dn?"layer":"plain",Wt.isGroup||!rn&&Wt.useHoverLayer)return;var Xn=Wt,ri=Wt.style;Dn&&(Xn=rn.addHover(Wt),ri=Xn.style),Vt(ri),Dn||Oe(Xn),ri.extendFrom(xt),st(ri,xt,"fill"),st(ri,xt,"stroke"),kt(ri),Dn||(Wt.dirty(!1),Wt.z2+=I)}function st(Wt,xt,rn){!Re(xt[rn])&&Re(Wt[rn])&&(Wt[rn]=ot(Wt[rn]))}function he(Wt){var xt=Wt.__highlighted;if(!xt)return;if(Wt.__highlighted=!1,Wt.isGroup)return;if(xt==="layer")Wt.__zr&&Wt.__zr.removeHover(Wt);else{var rn=Wt.style,Dn=Wt.__cachedNormalStl;Dn&&(Vt(rn),Wt.setStyle(Dn),kt(rn));var Xn=Wt.__cachedNormalZ2;Xn!=null&&Wt.z2-Xn===I&&(Wt.z2=Xn)}}function J(Wt,xt,rn){var Dn=F,Xn=F,ri;Wt.__highlighted&&(Dn=M,ri=!0),xt(Wt,rn),Wt.__highlighted&&(Xn=M,ri=!0),Wt.isGroup&&Wt.traverse(function(Ui){!Ui.isGroup&&xt(Ui,rn)}),ri&&Wt.__highDownOnUpdate&&Wt.__highDownOnUpdate(Dn,Xn)}function Y(Wt,xt){xt=Wt.__hoverStl=xt!==!1&&(Wt.hoverStyle||xt||{}),Wt.__hoverStlDirty=!0,Wt.__highlighted&&(Wt.__cachedNormalStl=null,he(Wt),oe(Wt))}function $(Wt){!Ee(this,Wt)&&!this.__highByOuter&&J(this,oe)}function fe(Wt){!Ee(this,Wt)&&!this.__highByOuter&&J(this,he)}function we(Wt){this.__highByOuter|=1<<(Wt||0),J(this,oe)}function Ne(Wt){!(this.__highByOuter&=~(1<<(Wt||0)))&&J(this,he)}function Ee(Wt,xt){return Wt.__highDownSilentOnTouch&&xt.zrByTouch}function de(Wt,xt){me(Wt,!0),J(Wt,Y,xt)}function me(Wt,xt){var rn=xt===!1;if(Wt.__highDownSilentOnTouch=Wt.highDownSilentOnTouch,Wt.__highDownOnUpdate=Wt.highDownOnUpdate,!rn||Wt.__highDownDispatcher){var Dn=rn?"off":"on";Wt[Dn]("mouseover",$)[Dn]("mouseout",fe),Wt[Dn]("emphasis",we)[Dn]("normal",Ne),Wt.__highByOuter=Wt.__highByOuter||0,Wt.__highDownDispatcher=!rn}}function Le(Wt){return!!(Wt&&Wt.__highDownDispatcher)}function tt(Wt){var xt=X[Wt];return xt==null&&P<=32&&(xt=X[Wt]=P++),xt}function At(Wt,xt,rn,Dn,Xn,ri,Ui){Xn=Xn||O;var Bn=Xn.labelFetcher,Jn=Xn.labelDataIndex,Xt=Xn.labelDimIndex,_t=Xn.labelProp,Fe=rn.getShallow("show"),Pe=Dn.getShallow("show"),Be;(Fe||Pe)&&(Bn&&(Be=Bn.getFormattedLabel(Jn,"normal",null,Xt,_t)),Be==null&&(Be=y.isFunction(Xn.defaultText)?Xn.defaultText(Jn,Xn):Xn.defaultText));var nt=Fe?Be:null,vt=Pe?y.retrieve2(Bn?Bn.getFormattedLabel(Jn,"emphasis",null,Xt,_t):null,Be):null;(nt!=null||vt!=null)&&(Ke(Wt,rn,ri,Xn),Ke(xt,Dn,Ui,Xn,!0)),Wt.text=nt,xt.text=vt}function ht(Wt,xt,rn){var Dn=Wt.style;xt&&(Vt(Dn),Wt.setStyle(xt),kt(Dn)),Dn=Wt.__hoverStl,rn&&Dn&&(Vt(Dn),y.extend(Dn,rn),kt(Dn))}function Ke(Wt,xt,rn,Dn,Xn){return ct(Wt,xt,Dn,Xn),rn&&y.extend(Wt,rn),Wt}function Jt(Wt,xt,rn){var Dn={isRectText:!0},Xn;rn===!1?Xn=!0:Dn.autoColor=rn,ct(Wt,xt,Dn,Xn)}function ct(Wt,xt,rn,Dn){if(rn=rn||O,rn.isRectText){var Xn;rn.getTextPosition?Xn=rn.getTextPosition(xt,Dn):(Xn=xt.getShallow("position")||(Dn?null:"inside"),Xn==="outside"&&(Xn="top")),Wt.textPosition=Xn,Wt.textOffset=xt.getShallow("offset");var ri=xt.getShallow("rotate");ri!=null&&(ri*=Math.PI/180),Wt.textRotation=ri,Wt.textDistance=y.retrieve2(xt.getShallow("distance"),Dn?null:5)}var Ui=xt.ecModel,Bn=Ui&&Ui.option.textStyle,Jn=Gt(xt),Xt;if(Jn){Xt={};for(var _t in Jn)if(Jn.hasOwnProperty(_t)){var Fe=xt.getModel(["rich",_t]);dr(Xt[_t]={},Fe,Bn,rn,Dn)}}return Wt.rich=Xt,dr(Wt,xt,Bn,rn,Dn,!0),rn.forceRich&&!rn.textStyle&&(rn.textStyle={}),Wt}function Gt(Wt){for(var xt;Wt&&Wt!==Wt.ecModel;){var rn=(Wt.option||O).rich;if(rn){xt=xt||{};for(var Dn in rn)rn.hasOwnProperty(Dn)&&(xt[Dn]=1)}Wt=Wt.parentModel}return xt}function dr(Wt,xt,rn,Dn,Xn,ri){rn=!Xn&&rn||O,Wt.textFill=zt(xt.getShallow("color"),Dn)||rn.color,Wt.textStroke=zt(xt.getShallow("textBorderColor"),Dn)||rn.textBorderColor,Wt.textStrokeWidth=y.retrieve2(xt.getShallow("textBorderWidth"),rn.textBorderWidth),Xn||(ri&&(Wt.insideRollbackOpt=Dn,kt(Wt)),Wt.textFill==null&&(Wt.textFill=Dn.autoColor)),Wt.fontStyle=xt.getShallow("fontStyle")||rn.fontStyle,Wt.fontWeight=xt.getShallow("fontWeight")||rn.fontWeight,Wt.fontSize=xt.getShallow("fontSize")||rn.fontSize,Wt.fontFamily=xt.getShallow("fontFamily")||rn.fontFamily,Wt.textAlign=xt.getShallow("align"),Wt.textVerticalAlign=xt.getShallow("verticalAlign")||xt.getShallow("baseline"),Wt.textLineHeight=xt.getShallow("lineHeight"),Wt.textWidth=xt.getShallow("width"),Wt.textHeight=xt.getShallow("height"),Wt.textTag=xt.getShallow("tag"),(!ri||!Dn.disableBox)&&(Wt.textBackgroundColor=zt(xt.getShallow("backgroundColor"),Dn),Wt.textPadding=xt.getShallow("padding"),Wt.textBorderColor=zt(xt.getShallow("borderColor"),Dn),Wt.textBorderWidth=xt.getShallow("borderWidth"),Wt.textBorderRadius=xt.getShallow("borderRadius"),Wt.textBoxShadowColor=xt.getShallow("shadowColor"),Wt.textBoxShadowBlur=xt.getShallow("shadowBlur"),Wt.textBoxShadowOffsetX=xt.getShallow("shadowOffsetX"),Wt.textBoxShadowOffsetY=xt.getShallow("shadowOffsetY")),Wt.textShadowColor=xt.getShallow("textShadowColor")||rn.textShadowColor,Wt.textShadowBlur=xt.getShallow("textShadowBlur")||rn.textShadowBlur,Wt.textShadowOffsetX=xt.getShallow("textShadowOffsetX")||rn.textShadowOffsetX,Wt.textShadowOffsetY=xt.getShallow("textShadowOffsetY")||rn.textShadowOffsetY}function zt(Wt,xt){return Wt!=="auto"?Wt:xt&&xt.autoColor?xt.autoColor:null}function kt(Wt){var xt=Wt.textPosition,rn=Wt.insideRollbackOpt,Dn;if(rn&&Wt.textFill==null){var Xn=rn.autoColor,ri=rn.isRectText,Ui=rn.useInsideStyle,Bn=Ui!==!1&&(Ui===!0||ri&&xt&&typeof xt=="string"&&xt.indexOf("inside")>=0),Jn=!Bn&&Xn!=null;(Bn||Jn)&&(Dn={textFill:Wt.textFill,textStroke:Wt.textStroke,textStrokeWidth:Wt.textStrokeWidth}),Bn&&(Wt.textFill="#fff",Wt.textStroke==null&&(Wt.textStroke=Xn,Wt.textStrokeWidth==null&&(Wt.textStrokeWidth=2))),Jn&&(Wt.textFill=Xn)}Wt.insideRollback=Dn}function Vt(Wt){var xt=Wt.insideRollback;xt&&(Wt.textFill=xt.textFill,Wt.textStroke=xt.textStroke,Wt.textStrokeWidth=xt.textStrokeWidth,Wt.insideRollback=null)}function Xe(Wt,xt){var rn=xt&&xt.getModel("textStyle");return y.trim([Wt.fontStyle||rn&&rn.getShallow("fontStyle")||"",Wt.fontWeight||rn&&rn.getShallow("fontWeight")||"",(Wt.fontSize||rn&&rn.getShallow("fontSize")||12)+"px",Wt.fontFamily||rn&&rn.getShallow("fontFamily")||"sans-serif"].join(" "))}function pe(Wt,xt,rn,Dn,Xn,ri){typeof Xn=="function"&&(ri=Xn,Xn=null);var Ui=Dn&&Dn.isAnimationEnabled();if(Ui){var Bn=Wt?"Update":"",Jn=Dn.getShallow("animationDuration"+Bn),Xt=Dn.getShallow("animationEasing"+Bn),_t=Dn.getShallow("animationDelay"+Bn);typeof _t=="function"&&(_t=_t(Xn,Dn.getAnimationDelayParams?Dn.getAnimationDelayParams(xt,Xn):null)),typeof Jn=="function"&&(Jn=Jn(Xn)),Jn>0?xt.animateTo(rn,Jn,_t||0,Xt,ri,!!ri):(xt.stopAnimation(),xt.attr(rn),ri&&ri())}else xt.stopAnimation(),xt.attr(rn),ri&&ri()}function te(Wt,xt,rn,Dn,Xn){pe(!0,Wt,xt,rn,Dn,Xn)}function $e(Wt,xt,rn,Dn,Xn){pe(!1,Wt,xt,rn,Dn,Xn)}function He(Wt,xt){for(var rn=A.identity([]);Wt&&Wt!==xt;)A.mul(rn,Wt.getLocalTransform(),rn),Wt=Wt.parent;return rn}function ae(Wt,xt,rn){return xt&&!y.isArrayLike(xt)&&(xt=h.getLocalTransform(xt)),rn&&(xt=A.invert([],xt)),m.applyTransform([],Wt,xt)}function ft(Wt,xt,rn){var Dn=xt[4]===0||xt[5]===0||xt[0]===0?1:Math.abs(2*xt[4]/xt[0]),Xn=xt[4]===0||xt[5]===0||xt[2]===0?1:Math.abs(2*xt[4]/xt[2]),ri=[Wt==="left"?-Dn:Wt==="right"?Dn:0,Wt==="top"?-Xn:Wt==="bottom"?Xn:0];return ri=ae(ri,xt,rn),Math.abs(ri[0])>Math.abs(ri[1])?ri[0]>0?"right":"left":ri[1]>0?"bottom":"top"}function Mt(Wt,xt,rn,Dn){if(!Wt||!xt)return;function Xn(Bn){var Jn={};return Bn.traverse(function(Xt){!Xt.isGroup&&Xt.anid&&(Jn[Xt.anid]=Xt)}),Jn}function ri(Bn){var Jn={position:m.clone(Bn.position),rotation:Bn.rotation};return Bn.shape&&(Jn.shape=y.extend({},Bn.shape)),Jn}var Ui=Xn(Wt);xt.traverse(function(Bn){if(!Bn.isGroup&&Bn.anid){var Jn=Ui[Bn.anid];if(Jn){var Xt=ri(Bn);Bn.attr(ri(Jn)),te(Bn,Xt,rn,Bn.dataIndex)}}})}function mt(Wt,xt){return y.map(Wt,function(rn){var Dn=rn[0];Dn=T(Dn,xt.x),Dn=w(Dn,xt.x+xt.width);var Xn=rn[1];return Xn=T(Xn,xt.y),Xn=w(Xn,xt.y+xt.height),[Dn,Xn]})}function or(Wt,xt){var rn=T(Wt.x,xt.x),Dn=w(Wt.x+Wt.width,xt.x+xt.width),Xn=T(Wt.y,xt.y),ri=w(Wt.y+Wt.height,xt.y+xt.height);if(Dn>=rn&&ri>=Xn)return{x:rn,y:Xn,width:Dn-rn,height:ri-Xn}}function vr(Wt,xt,rn){xt=y.extend({rectHover:!0},xt);var Dn=xt.style={strokeNoScale:!0};if(rn=rn||{x:-1,y:-1,width:2,height:2},Wt)return Wt.indexOf("image://")===0?(Dn.image=Wt.slice(8),y.defaults(Dn,rn),new u(xt)):Q(Wt.replace("path://",""),xt,rn,"center")}function fn(Wt,xt,rn,Dn,Xn){for(var ri=0,Ui=Xn[Xn.length-1];ri<Xn.length;ri++){var Bn=Xn[ri];if(sr(Wt,xt,rn,Dn,Bn[0],Bn[1],Ui[0],Ui[1]))return!0;Ui=Bn}}function sr(Wt,xt,rn,Dn,Xn,ri,Ui,Bn){var Jn=rn-Wt,Xt=Dn-xt,_t=Ui-Xn,Fe=Bn-ri,Pe=Ir(_t,Fe,Jn,Xt);if(lr(Pe))return!1;var Be=Wt-Xn,nt=xt-ri,vt=Ir(Be,nt,Jn,Xt)/Pe;if(vt<0||vt>1)return!1;var ar=Ir(Be,nt,_t,Fe)/Pe;return!(ar<0||ar>1)}function Ir(Wt,xt,rn,Dn){return Wt*Dn-rn*xt}function lr(Wt){return Wt<=1e-6&&Wt>=-1e-6}z("circle",t),z("sector",o),z("ring",e),z("polygon",l),z("polyline",r),z("rect",s),z("line",c),z("bezierCurve",d),z("arc",g),D.Z2_EMPHASIS_LIFT=I,D.CACHED_LABEL_STYLE_PROPERTIES=R,D.extendShape=j,D.extendPath=W,D.registerShape=z,D.getShapeClass=V,D.makePath=Q,D.makeImage=G,D.mergePath=ce,D.resizePath=be,D.subPixelOptimizeLine=le,D.subPixelOptimizeRect=Ie,D.subPixelOptimize=ke,D.setElementHoverStyle=Y,D.setHoverStyle=de,D.setAsHighDownDispatcher=me,D.isHighDownDispatcher=Le,D.getHighlightDigit=tt,D.setLabelStyle=At,D.modifyLabelStyle=ht,D.setTextStyle=Ke,D.setText=Jt,D.getFont=Xe,D.updateProps=te,D.initProps=$e,D.getTransform=He,D.applyTransform=ae,D.transformDirection=ft,D.groupTransition=Mt,D.clipPointsByRect=mt,D.clipRectByRect=or,D.createIcon=vr,D.linePolygonIntersect=fn,D.lineLineIntersect=sr},IyUQ:function(k,D,n){var y=n("bYtY"),p=n("YH21"),x=n("IwbS"),A=n("iLNv"),m=n("fc+c"),f=n("OELB"),h=n("+TT/"),u=n("72pK"),a=x.Rect,i=f.linearMap,t=f.asc,o=y.bind,e=y.each,l=7,r=1,s=30,c="horizontal",d="vertical",g=5,v=["line","bar","candlestick","scatter"],b=m.extend({type:"dataZoom.slider",init:function(_,T){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=T},render:function(_,T,w,O){if(b.superApply(this,"render",arguments),A.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=_.get("orient"),this.dataZoomModel.get("show")===!1){this.group.removeAll();return}(!O||O.type!=="dataZoom"||O.from!==this.uid)&&this._buildView(),this._updateView()},remove:function(){b.superApply(this,"remove",arguments),A.clear(this,"_dispatchZoomAction")},dispose:function(){b.superApply(this,"dispose",arguments),A.clear(this,"_dispatchZoomAction")},_buildView:function(){var _=this.group;_.removeAll(),this._resetLocation(),this._resetInterval();var T=this._displayables.barGroup=new x.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),_.add(T),this._positionGroup()},_resetLocation:function(){var _=this.dataZoomModel,T=this.api,w=this._findCoordRect(),O={width:T.getWidth(),height:T.getHeight()},I=this._orient===c?{right:O.width-w.x-w.width,top:O.height-s-l,width:w.width,height:s}:{right:l,top:w.y,width:s,height:w.height},R=h.getLayoutParams(_.option);y.each(["right","top","width","height"],function(F){R[F]==="ph"&&(R[F]=I[F])});var M=h.getLayoutRect(R,O,_.padding);this._location={x:M.x,y:M.y},this._size=[M.width,M.height],this._orient===d&&this._size.reverse()},_positionGroup:function(){var _=this.group,T=this._location,w=this._orient,O=this.dataZoomModel.getFirstTargetAxisModel(),I=O&&O.get("inverse"),R=this._displayables.barGroup,M=(this._dataShadowInfo||{}).otherAxisInverse;R.attr(w===c&&!I?{scale:M?[1,1]:[1,-1]}:w===c&&I?{scale:M?[-1,1]:[-1,-1]}:w===d&&!I?{scale:M?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:M?[-1,-1]:[-1,1],rotation:Math.PI/2});var F=_.getBoundingRect([R]);_.attr("position",[T.x-F.x,T.y-F.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var _=this.dataZoomModel,T=this._size,w=this._displayables.barGroup;w.add(new a({silent:!0,shape:{x:0,y:0,width:T[0],height:T[1]},style:{fill:_.get("backgroundColor")},z2:-40})),w.add(new a({shape:{x:0,y:0,width:T[0],height:T[1]},style:{fill:"transparent"},z2:0,onclick:y.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var _=this._dataShadowInfo=this._prepareDataShadowInfo();if(!_)return;var T=this._size,w=_.series,O=w.getRawData(),I=w.getShadowDim?w.getShadowDim():_.otherDim;if(I==null)return;var R=O.getDataExtent(I),M=(R[1]-R[0])*.3;R=[R[0]-M,R[1]+M];var F=[0,T[1]],P=[0,T[0]],X=[[T[0],0],[0,0]],B=[],j=P[1]/(O.count()-1),W=0,z=Math.round(O.count()/T[0]),V;O.each([I],function(G,ee){if(z>0&&ee%z){W+=j;return}var ce=G==null||isNaN(G)||G==="",be=ce?0:i(G,R,F,!0);ce&&!V&&ee?(X.push([X[X.length-1][0],0]),B.push([B[B.length-1][0],0])):!ce&&V&&(X.push([W,0]),B.push([W,0])),X.push([W,be]),B.push([W,be]),W+=j,V=ce});var Q=this.dataZoomModel;this._displayables.barGroup.add(new x.Polygon({shape:{points:X},style:y.defaults({fill:Q.get("dataBackgroundColor")},Q.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new x.Polyline({shape:{points:B},style:Q.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))},_prepareDataShadowInfo:function(){var _=this.dataZoomModel,T=_.get("showDataShadow");if(T===!1)return;var w,O=this.ecModel;return _.eachTargetAxis(function(I,R){var M=_.getAxisProxy(I.name,R).getTargetSeriesModels();y.each(M,function(F){if(w)return;if(T!==!0&&y.indexOf(v,F.get("type"))<0)return;var P=O.getComponent(I.axis,R).axis,X=S(I.name),B,j=F.coordinateSystem;X!=null&&j.getOtherAxis&&(B=j.getOtherAxis(P).inverse),X=F.getData().mapDimension(X),w={thisAxis:P,series:F,thisDim:I.name,otherDim:X,otherAxisInverse:B}},this)},this),w},_renderHandle:function(){var _=this._displayables,T=_.handles=[],w=_.handleLabels=[],O=this._displayables.barGroup,I=this._size,R=this.dataZoomModel;O.add(_.filler=new a({draggable:!0,cursor:E(this._orient),drift:o(this._onDragMove,this,"all"),ondragstart:o(this._showDataInfo,this,!0),ondragend:o(this._onDragEnd,this),onmouseover:o(this._showDataInfo,this,!0),onmouseout:o(this._showDataInfo,this,!1),style:{fill:R.get("fillerColor"),textPosition:"inside"}})),O.add(new a({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:I[0],height:I[1]},style:{stroke:R.get("dataBackgroundColor")||R.get("borderColor"),lineWidth:r,fill:"rgba(0,0,0,0)"}})),e([0,1],function(M){var F=x.createIcon(R.get("handleIcon"),{cursor:E(this._orient),draggable:!0,drift:o(this._onDragMove,this,M),ondragend:o(this._onDragEnd,this),onmouseover:o(this._showDataInfo,this,!0),onmouseout:o(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),P=F.getBoundingRect();this._handleHeight=f.parsePercent(R.get("handleSize"),this._size[1]),this._handleWidth=P.width/P.height*this._handleHeight,F.setStyle(R.getModel("handleStyle").getItemStyle());var X=R.get("handleColor");X!=null&&(F.style.fill=X),O.add(T[M]=F);var B=R.textStyleModel;this.group.add(w[M]=new x.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:B.getTextColor(),textFont:B.getFont()},z2:10}))},this)},_resetInterval:function(){var _=this._range=this.dataZoomModel.getPercentRange(),T=this._getViewExtent();this._handleEnds=[i(_[0],[0,100],T,!0),i(_[1],[0,100],T,!0)]},_updateInterval:function(_,T){var w=this.dataZoomModel,O=this._handleEnds,I=this._getViewExtent(),R=w.findRepresentativeAxisProxy().getMinMaxSpan(),M=[0,100];u(T,O,I,w.get("zoomLock")?"all":_,R.minSpan!=null?i(R.minSpan,M,I,!0):null,R.maxSpan!=null?i(R.maxSpan,M,I,!0):null);var F=this._range,P=this._range=t([i(O[0],I,M,!0),i(O[1],I,M,!0)]);return!F||F[0]!==P[0]||F[1]!==P[1]},_updateView:function(_){var T=this._displayables,w=this._handleEnds,O=t(w.slice()),I=this._size;e([0,1],function(R){var M=T.handles[R],F=this._handleHeight;M.attr({scale:[F/2,F/2],position:[w[R],I[1]/2-F/2]})},this),T.filler.setShape({x:O[0],y:0,width:O[1]-O[0],height:I[1]}),this._updateDataInfo(_)},_updateDataInfo:function(_){var T=this.dataZoomModel,w=this._displayables,O=w.handleLabels,I=this._orient,R=["",""];if(T.get("showDetail")){var M=T.findRepresentativeAxisProxy();if(M){var F=M.getAxisModel().axis,P=this._range,X=_?M.calculateDataWindow({start:P[0],end:P[1]}).valueWindow:M.getDataValueWindow();R=[this._formatLabel(X[0],F),this._formatLabel(X[1],F)]}}var B=t(this._handleEnds.slice());j.call(this,0),j.call(this,1);function j(W){var z=x.getTransform(w.handles[W].parent,this.group),V=x.transformDirection(W===0?"right":"left",z),Q=this._handleWidth/2+g,G=x.applyTransform([B[W]+(W===0?-Q:Q),this._size[1]/2],z);O[W].setStyle({x:G[0],y:G[1],textVerticalAlign:I===c?"middle":V,textAlign:I===c?V:"center",text:R[W]})}},_formatLabel:function(_,T){var w=this.dataZoomModel,O=w.get("labelFormatter"),I=w.get("labelPrecision");(I==null||I==="auto")&&(I=T.getPixelPrecision());var R=_==null||isNaN(_)?"":T.type==="category"||T.type==="time"?T.scale.getLabel(Math.round(_)):_.toFixed(Math.min(I,20));return y.isFunction(O)?O(_,R):y.isString(O)?O.replace("{value}",R):R},_showDataInfo:function(_){_=this._dragging||_;var T=this._displayables.handleLabels;T[0].attr("invisible",!_),T[1].attr("invisible",!_)},_onDragMove:function(_,T,w,O){this._dragging=!0,p.stop(O.event);var I=this._displayables.barGroup.getLocalTransform(),R=x.applyTransform([T,w],I,!0),M=this._updateInterval(_,R[0]),F=this.dataZoomModel.get("realtime");this._updateView(!F),M&&F&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var _=this.dataZoomModel.get("realtime");!_&&this._dispatchZoomAction()},_onClickPanelClick:function(_){var T=this._size,w=this._displayables.barGroup.transformCoordToLocal(_.offsetX,_.offsetY);if(w[0]<0||w[0]>T[0]||w[1]<0||w[1]>T[1])return;var O=this._handleEnds,I=(O[0]+O[1])/2,R=this._updateInterval("all",w[0]-I);this._updateView(),R&&this._dispatchZoomAction()},_dispatchZoomAction:function(){var _=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:_[0],end:_[1]})},_findCoordRect:function(){var _;if(e(this.getTargetCoordInfo(),function(O){if(!_&&O.length){var I=O[0].model.coordinateSystem;_=I.getRect&&I.getRect()}}),!_){var T=this.api.getWidth(),w=this.api.getHeight();_={x:T*.2,y:w*.2,width:T*.6,height:w*.6}}return _}});function S(_){var T={x:"y",y:"x",radius:"angle",angle:"radius"};return T[_]}function E(_){return _==="vertical"?"ns-resize":"ew-resize"}var C=b;k.exports=C},IzEo:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("lnY3"),A=n.n(x),m=n("Znn+"),f=n("14J3"),h=n("jCWc")},J66h:function(k,D,n){(function(y){var p,x;(function(A,m){k.exports=m(A)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof y!="undefined"?y:this,function(A){"use strict";A=A||{};var m=A.Base64,f="2.6.4",h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=function(F){for(var P={},X=0,B=F.length;X<B;X++)P[F.charAt(X)]=X;return P}(h),a=String.fromCharCode,i=function(P){if(P.length<2){var X=P.charCodeAt(0);return X<128?P:X<2048?a(192|X>>>6)+a(128|X&63):a(224|X>>>12&15)+a(128|X>>>6&63)+a(128|X&63)}else{var X=65536+(P.charCodeAt(0)-55296)*1024+(P.charCodeAt(1)-56320);return a(240|X>>>18&7)+a(128|X>>>12&63)+a(128|X>>>6&63)+a(128|X&63)}},t=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,o=function(P){return P.replace(t,i)},e=function(P){var X=[0,2,1][P.length%3],B=P.charCodeAt(0)<<16|(P.length>1?P.charCodeAt(1):0)<<8|(P.length>2?P.charCodeAt(2):0),j=[h.charAt(B>>>18),h.charAt(B>>>12&63),X>=2?"=":h.charAt(B>>>6&63),X>=1?"=":h.charAt(B&63)];return j.join("")},l=A.btoa&&typeof A.btoa=="function"?function(F){return A.btoa(F)}:function(F){if(F.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return F.replace(/[\s\S]{1,3}/g,e)},r=function(P){return l(o(String(P)))},s=function(P){return P.replace(/[+\/]/g,function(X){return X=="+"?"-":"_"}).replace(/=/g,"")},c=function(P,X){return X?s(r(P)):r(P)},d=function(P){return c(P,!0)},g;A.Uint8Array&&(g=function(P,X){for(var B="",j=0,W=P.length;j<W;j+=3){var z=P[j],V=P[j+1],Q=P[j+2],G=z<<16|V<<8|Q;B+=h.charAt(G>>>18)+h.charAt(G>>>12&63)+(typeof V!="undefined"?h.charAt(G>>>6&63):"=")+(typeof Q!="undefined"?h.charAt(G&63):"=")}return X?s(B):B});var v=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,b=function(P){switch(P.length){case 4:var X=(7&P.charCodeAt(0))<<18|(63&P.charCodeAt(1))<<12|(63&P.charCodeAt(2))<<6|63&P.charCodeAt(3),B=X-65536;return a((B>>>10)+55296)+a((B&1023)+56320);case 3:return a((15&P.charCodeAt(0))<<12|(63&P.charCodeAt(1))<<6|63&P.charCodeAt(2));default:return a((31&P.charCodeAt(0))<<6|63&P.charCodeAt(1))}},S=function(P){return P.replace(v,b)},E=function(P){var X=P.length,B=X%4,j=(X>0?u[P.charAt(0)]<<18:0)|(X>1?u[P.charAt(1)]<<12:0)|(X>2?u[P.charAt(2)]<<6:0)|(X>3?u[P.charAt(3)]:0),W=[a(j>>>16),a(j>>>8&255),a(j&255)];return W.length-=[0,0,2,1][B],W.join("")},C=A.atob&&typeof A.atob=="function"?function(F){return A.atob(F)}:function(F){return F.replace(/\S{1,4}/g,E)},_=function(P){return C(String(P).replace(/[^A-Za-z0-9\+\/]/g,""))},T=function(P){return S(C(P))},w=function(P){return String(P).replace(/[-_]/g,function(X){return X=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},O=function(P){return T(w(P))},I;A.Uint8Array&&(I=function(P){return Uint8Array.from(_(w(P)),function(X){return X.charCodeAt(0)})});var R=function(){var P=A.Base64;return A.Base64=m,P};if(A.Base64={VERSION:f,atob:_,btoa:l,fromBase64:O,toBase64:c,utob:o,encode:c,encodeURI:d,btou:S,decode:O,noConflict:R,fromUint8Array:g,toUint8Array:I},typeof Object.defineProperty=="function"){var M=function(P){return{value:P,enumerable:!1,writable:!0,configurable:!0}};A.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",M(function(){return O(this)})),Object.defineProperty(String.prototype,"toBase64",M(function(F){return c(this,F)})),Object.defineProperty(String.prototype,"toBase64URI",M(function(){return c(this,!0)}))}}return A.Meteor&&(Base64=A.Base64),k.exports?k.exports.Base64=A.Base64:!(p=[],x=function(){return A.Base64}.apply(D,p),x!==void 0&&(k.exports=x)),{Base64:A.Base64}})}).call(this,n("yLpj"))},JEkh:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),A=n("bYtY"),m=n("ItGF"),f=n("4NO4"),h=n("7aKB"),u=n("OKJ2"),a=h.addCommas,i=h.encodeHTML;function t(l){f.defaultEmphasis(l,"label",["show"])}var o=x.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(l,r,s){this.mergeDefaultAndTheme(l,s),this._mergeOption(l,s,!1,!0)},isAnimationEnabled:function(){if(m.node)return!1;var l=this.__hostSeries;return this.getShallow("animation")&&l&&l.isAnimationEnabled()},mergeOption:function(l,r){this._mergeOption(l,r,!1,!1)},_mergeOption:function(l,r,s,c){var d=this.constructor,g=this.mainType+"Model";s||r.eachSeries(function(v){var b=v.get(this.mainType,!0),S=v[g];if(!b||!b.data){v[g]=null;return}S?S._mergeOption(b,r,!0):(c&&t(b),A.each(b.data,function(E){E instanceof Array?(t(E[0]),t(E[1])):t(E)}),S=new d(b,this,r),A.extend(S,{mainType:this.mainType,seriesIndex:v.seriesIndex,name:v.name,createdBySelf:!0}),S.__hostSeries=v),v[g]=S},this)},formatTooltip:function(l){var r=this.getData(),s=this.getRawValue(l),c=A.isArray(s)?A.map(s,a).join(", "):a(s),d=r.getName(l),g=i(this.name);return(s!=null||d)&&(g+="<br />"),d&&(g+=i(d),s!=null&&(g+=" : ")),s!=null&&(g+=i(c)),g},getData:function(){return this._data},setData:function(l){this._data=l}});A.mixin(o,u);var e=o;k.exports=e},JGo8:function(k,D,n){},JHRd:function(k,D,n){var y=n("Kz5y"),p=y.Uint8Array;k.exports=p},JHgL:function(k,D,n){var y=n("QkVE");function p(x){return y(this,x).get(x)}k.exports=p},JLnu:function(k,D,n){var y=n("+TT/"),p=n("OELB"),x=p.parsePercent,A=p.linearMap;function m(a,i){return y.getLayoutRect(a.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}function f(a,i){for(var t=a.mapDimension("value"),o=a.mapArray(t,function(c){return c}),e=[],l=i==="ascending",r=0,s=a.count();r<s;r++)e[r]=r;return typeof i=="function"?e.sort(i):i!=="none"&&e.sort(function(c,d){return l?o[c]-o[d]:o[d]-o[c]}),e}function h(a){a.each(function(i){var t=a.getItemModel(i),o=t.getModel("label"),e=o.get("position"),l=t.getModel("labelLine"),r=a.getItemLayout(i),s=r.points,c=e==="inner"||e==="inside"||e==="center"||e==="insideLeft"||e==="insideRight",d,g,v,b;if(c)e==="insideLeft"?(g=(s[0][0]+s[3][0])/2+5,v=(s[0][1]+s[3][1])/2,d="left"):e==="insideRight"?(g=(s[1][0]+s[2][0])/2-5,v=(s[1][1]+s[2][1])/2,d="right"):(g=(s[0][0]+s[1][0]+s[2][0]+s[3][0])/4,v=(s[0][1]+s[1][1]+s[2][1]+s[3][1])/4,d="center"),b=[[g,v],[g,v]];else{var S,E,C,_=l.get("length");e==="left"?(S=(s[3][0]+s[0][0])/2,E=(s[3][1]+s[0][1])/2,C=S-_,g=C-5,d="right"):e==="right"?(S=(s[1][0]+s[2][0])/2,E=(s[1][1]+s[2][1])/2,C=S+_,g=C+5,d="left"):e==="rightTop"?(S=s[1][0],E=s[1][1],C=S+_,g=C+5,d="top"):e==="rightBottom"?(S=s[2][0],E=s[2][1],C=S+_,g=C+5,d="bottom"):e==="leftTop"?(S=s[0][0],E=s[1][1],C=S-_,g=C-5,d="right"):e==="leftBottom"?(S=s[3][0],E=s[2][1],C=S-_,g=C-5,d="right"):(S=(s[1][0]+s[2][0])/2,E=(s[1][1]+s[2][1])/2,C=S+_,g=C+5,d="left");var T=E;b=[[S,E],[C,T]],v=T}r.label={linePoints:b,x:g,y:v,verticalAlign:"middle",textAlign:d,inside:c}})}function u(a,i,t){a.eachSeriesByType("funnel",function(o){var e=o.getData(),l=e.mapDimension("value"),r=o.get("sort"),s=m(o,i),c=f(e,r),d=[x(o.get("minSize"),s.width),x(o.get("maxSize"),s.width)],g=e.getDataExtent(l),v=o.get("min"),b=o.get("max");v==null&&(v=Math.min(g[0],0)),b==null&&(b=g[1]);var S=o.get("funnelAlign"),E=o.get("gap"),C=(s.height-E*(e.count()-1))/e.count(),_=s.y,T=function(X,B){var j=e.get(l,X)||0,W=A(j,[v,b],d,!0),z;switch(S){case"left":z=s.x;break;case"center":z=s.x+(s.width-W)/2;break;case"right":z=s.x+s.width-W;break}return[[z,B],[z+W,B]]};r==="ascending"&&(C=-C,E=-E,_+=s.height,c=c.reverse());for(var w=0;w<c.length;w++){var O=c[w],I=c[w+1],R=e.getItemModel(O),M=R.get("itemStyle.height");M==null?M=C:(M=x(M,s.height),r==="ascending"&&(M=-M));var F=T(O,_),P=T(I,_+M);_+=M+E,e.setItemLayout(O,{points:F.concat(P.slice().reverse())})}h(e)})}k.exports=u},JSQU:function(k,D,n){var y=n("YESw"),p="__lodash_hash_undefined__";function x(A,m){var f=this.__data__;return this.size+=this.has(A)?0:1,f[A]=y&&m===void 0?p:m,this}k.exports=x},JSwD:function(k,D,n){"use strict";function y(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(d){return typeof d}:y=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},y(s)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=r;var p=A(n("6BzB"));function x(){if(typeof WeakMap!="function")return null;var s=new WeakMap;return x=function(){return s},s}function A(s){if(s&&s.__esModule)return s;if(s===null||y(s)!=="object"&&typeof s!="function")return{default:s};var c=x();if(c&&c.has(s))return c.get(s);var d={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in s)if(Object.prototype.hasOwnProperty.call(s,v)){var b=g?Object.getOwnPropertyDescriptor(s,v):null;b&&(b.get||b.set)?Object.defineProperty(d,v,b):d[v]=s[v]}return d.default=s,c&&c.set(s,d),d}var m=15,f=852,h=592,u=0,a=1,i=2,t=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],e=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function r(s,c,d,g,v,b,S,E){var C=E.bits,_=0,T=0,w=0,O=0,I=0,R=0,M=0,F=0,P=0,X=0,B,j,W,z,V,Q=null,G=0,ee,ce=new p.Buf16(m+1),be=new p.Buf16(m+1),le=null,Ie=0,ke,Re,Qe;for(_=0;_<=m;_++)ce[_]=0;for(T=0;T<g;T++)ce[c[d+T]]++;for(I=C,O=m;O>=1&&!(ce[O]!==0);O--);if(I>O&&(I=O),O===0)return v[b++]=1<<24|64<<16|0,v[b++]=1<<24|64<<16|0,E.bits=1,0;for(w=1;w<O&&!(ce[w]!==0);w++);for(I<w&&(I=w),F=1,_=1;_<=m;_++)if(F<<=1,F-=ce[_],F<0)return-1;if(F>0&&(s===u||O!==1))return-1;for(be[1]=0,_=1;_<m;_++)be[_+1]=be[_]+ce[_];for(T=0;T<g;T++)c[d+T]!==0&&(S[be[c[d+T]]++]=T);if(s===u?(Q=le=S,ee=19):s===a?(Q=t,G-=257,le=o,Ie-=257,ee=256):(Q=e,le=l,ee=-1),X=0,T=0,_=w,V=b,R=I,M=0,W=-1,P=1<<I,z=P-1,s===a&&P>f||s===i&&P>h)return 1;for(;;){ke=_-M,S[T]<ee?(Re=0,Qe=S[T]):S[T]>ee?(Re=le[Ie+S[T]],Qe=Q[G+S[T]]):(Re=32+64,Qe=0),B=1<<_-M,j=1<<R,w=j;do j-=B,v[V+(X>>M)+j]=ke<<24|Re<<16|Qe|0;while(j!==0);for(B=1<<_-1;X&B;)B>>=1;if(B!==0?(X&=B-1,X+=B):X=0,T++,--ce[_]===0){if(_===O)break;_=c[d+S[T]]}if(_>I&&(X&z)!==W){for(M===0&&(M=I),V+=w,R=_-M,F=1<<R;R+M<O&&!(F-=ce[R+M],F<=0);)R++,F<<=1;if(P+=1<<R,s===a&&P>f||s===i&&P>h)return 1;W=X&z,v[W]=I<<24|R<<16|V-b|0}}return X!==0&&(v[V+X]=_-M<<24|64<<16|0),E.bits=I,0}},JTzB:function(k,D,n){var y=n("NykK"),p=n("ExA7"),x="[object Arguments]";function A(m){return p(m)&&y(m)==x}k.exports=A},JU1q:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("4xFK")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="DoubleRightOutlined";var i=A.forwardRef(a);D.default=i},JVwQ:function(k,D,n){var y=n("ProS"),p=n("1NG9"),x=p.Polygon,A=n("IwbS"),m=n("bYtY"),f=m.bind,h=m.extend,u=n("gPAo"),a=y.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(t,o,e){var l=t.getData(),r=this.group,s=t.getLayerSeries(),c=l.getLayout("layoutInfo"),d=c.rect,g=c.boundaryGap;r.attr("position",[0,d.y+g[0]]);function v(C){return C.name}var b=new u(this._layersSeries||[],s,v,v),S={};b.add(f(E,this,"add")).update(f(E,this,"update")).remove(f(E,this,"remove")).execute();function E(C,_,T){var w=this._layers;if(C==="remove"){r.remove(w[_]);return}for(var O=[],I=[],R,M=s[_].indices,F=0;F<M.length;F++){var P=l.getItemLayout(M[F]),X=P.x,B=P.y0,j=P.y;O.push([X,B]),I.push([X,B+j]),R=l.getItemVisual(M[F],"color")}var W,z,V=l.getItemLayout(M[0]),Q=l.getItemModel(M[F-1]),G=Q.getModel("label"),ee=G.get("margin");if(C==="add"){var ce=S[_]=new A.Group;W=new x({shape:{points:O,stackedOnPoints:I,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),z=new A.Text({style:{x:V.x-ee,y:V.y0+V.y/2}}),ce.add(W),ce.add(z),r.add(ce),W.setClipPath(i(W.getBoundingRect(),t,function(){W.removeClipPath()}))}else{var ce=w[T];W=ce.childAt(0),z=ce.childAt(1),r.add(ce),S[_]=ce,A.updateProps(W,{shape:{points:O,stackedOnPoints:I}},t),A.updateProps(z,{style:{x:V.x-ee,y:V.y0+V.y/2}},t)}var be=Q.getModel("emphasis.itemStyle"),le=Q.getModel("itemStyle");A.setTextStyle(z.style,G,{text:G.get("show")?t.getFormattedLabel(M[F-1],"normal")||l.getName(M[F-1]):null,textVerticalAlign:"middle"}),W.setStyle(h({fill:R},le.getItemStyle(["color"]))),A.setHoverStyle(W,be.getItemStyle())}this._layersSeries=s,this._layers=S},dispose:function(){}});function i(t,o,e){var l=new A.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return A.initProps(l,{shape:{width:t.width+20,height:t.height+20}},o,e),l}k.exports=a},JgUQ:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};D.default=y},JiDT:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("JU1q"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},JsLm:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("lwsE"),f=n.n(m),h=n("W8MJ"),u=n.n(h),a=n("PJYZ"),i=n.n(a),t=n("7W2i"),o=n.n(t),e=n("LQ03"),l=n.n(e),r=n("q1tI"),s=n("i8i4"),c=n("TSYQ"),d=n.n(c),g=n("zT1h"),v=n("cDf5"),b=n.n(v),S=n("BGR+"),E=n("6ner"),C=n("H84U"),_=n("RIqP"),T=n.n(_),w=n("xEkU"),O=n.n(w);function I(he){var J,Y=function(we){return function(){J=null,he.apply(void 0,T()(we))}},$=function(){if(J==null){for(var we=arguments.length,Ne=new Array(we),Ee=0;Ee<we;Ee++)Ne[Ee]=arguments[Ee];J=O()(Y(Ne))}};return $.cancel=function(){return O.a.cancel(J)},$}function R(){return function(he,J,Y){var $=Y.value,fe=!1;return{configurable:!0,get:function(){if(fe||this===he.prototype||this.hasOwnProperty(J))return $;var Ne=I($.bind(this));return fe=!0,Object.defineProperty(this,J,{value:Ne,configurable:!0,writable:!0}),fe=!1,Ne}}}}function M(he){return he!==window?he.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function F(he,J,Y){return Y!==void 0&&J.top>he.top-Y?Y+J.top:void 0}function P(he,J,Y){if(Y!==void 0&&J.bottom<he.bottom+Y){var $=window.innerHeight-J.bottom;return Y+$}return}var X=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],B=[];function j(){return B}function W(he,J){if(!he)return;var Y=B.find(function($){return $.target===he});Y?Y.affixList.push(J):(Y={target:he,affixList:[J],eventHandlers:{}},B.push(Y),X.forEach(function($){Y.eventHandlers[$]=Object(g.a)(he,$,function(){Y.affixList.forEach(function(fe){fe.lazyUpdatePosition()})})}))}function z(he){var J=B.find(function(Y){var $=Y.affixList.some(function(fe){return fe===he});return $&&(Y.affixList=Y.affixList.filter(function(fe){return fe!==he})),$});J&&J.affixList.length===0&&(B=B.filter(function(Y){return Y!==J}),X.forEach(function(Y){var $=J.eventHandlers[Y];$&&$.remove&&$.remove()}))}var V=function(he,J,Y,$){var fe=arguments.length,we=fe<3?J:$===null?$=Object.getOwnPropertyDescriptor(J,Y):$,Ne;if((typeof Reflect=="undefined"?"undefined":b()(Reflect))==="object"&&typeof Reflect.decorate=="function")we=Reflect.decorate(he,J,Y,$);else for(var Ee=he.length-1;Ee>=0;Ee--)(Ne=he[Ee])&&(we=(fe<3?Ne(we):fe>3?Ne(J,Y,we):Ne(J,Y))||we);return fe>3&&we&&Object.defineProperty(J,Y,we),we};function Q(){return typeof window!="undefined"?window:null}var G;(function(he){he[he.None=0]="None",he[he.Prepare=1]="Prepare"})(G||(G={}));var ee=function(he){o()(Y,he);var J=l()(Y);function Y(){var $;return f()(this,Y),$=J.apply(this,arguments),$.state={status:G.None,lastAffix:!1,prevTarget:null},$.getOffsetTop=function(){var fe=$.props.offsetBottom,we=$.props.offsetTop;return fe===void 0&&we===void 0&&(we=0),we},$.getOffsetBottom=function(){return $.props.offsetBottom},$.savePlaceholderNode=function(fe){$.placeholderNode=fe},$.saveFixedNode=function(fe){$.fixedNode=fe},$.measure=function(){var fe=$.state,we=fe.status,Ne=fe.lastAffix,Ee=$.props.onChange,de=$.getTargetFunc();if(we!==G.Prepare||!$.fixedNode||!$.placeholderNode||!de)return;var me=$.getOffsetTop(),Le=$.getOffsetBottom(),tt=de();if(!tt)return;var At={status:G.None},ht=M(tt),Ke=M($.placeholderNode),Jt=F(Ke,ht,me),ct=P(Ke,ht,Le);Jt!==void 0?(At.affixStyle={position:"fixed",top:Jt,width:Ke.width,height:Ke.height},At.placeholderStyle={width:Ke.width,height:Ke.height}):ct!==void 0&&(At.affixStyle={position:"fixed",bottom:ct,width:Ke.width,height:Ke.height},At.placeholderStyle={width:Ke.width,height:Ke.height}),At.lastAffix=!!At.affixStyle,Ee&&Ne!==At.lastAffix&&Ee(At.lastAffix),$.setState(At)},$.prepareMeasure=function(){if($.setState({status:G.Prepare,affixStyle:void 0,placeholderStyle:void 0}),!1)var fe},$.render=function(){var fe=$.context.getPrefixCls,we=$.state,Ne=we.affixStyle,Ee=we.placeholderStyle,de=$.props,me=de.prefixCls,Le=de.children,tt=d()(A()({},fe("affix",me),Ne)),At=Object(S.default)($.props,["prefixCls","offsetTop","offsetBottom","target","onChange"]);return r.createElement(E.a,{onResize:function(){$.updatePosition()}},r.createElement("div",p()({},At,{ref:$.savePlaceholderNode}),Ne&&r.createElement("div",{style:Ee,"aria-hidden":"true"}),r.createElement("div",{className:tt,ref:$.saveFixedNode,style:Ne},r.createElement(E.a,{onResize:function(){$.updatePosition()}},Le))))},$}return u()(Y,[{key:"getTargetFunc",value:function(){var fe=this.context.getTargetContainer,we=this.props.target;return we!==void 0?we:fe||Q}},{key:"componentDidMount",value:function(){var fe=this,we=this.getTargetFunc();we&&(this.timeout=setTimeout(function(){W(we(),fe),fe.updatePosition()}))}},{key:"componentDidUpdate",value:function(fe){var we=this.state.prevTarget,Ne=this.getTargetFunc(),Ee=null;Ne&&(Ee=Ne()||null),we!==Ee&&(z(this),Ee&&(W(Ee,this),this.updatePosition()),this.setState({prevTarget:Ee})),(fe.offsetTop!==this.props.offsetTop||fe.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),z(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var fe=this.getTargetFunc(),we=this.state.affixStyle;if(fe&&we){var Ne=this.getOffsetTop(),Ee=this.getOffsetBottom(),de=fe();if(de&&this.placeholderNode){var me=M(de),Le=M(this.placeholderNode),tt=F(Le,me,Ne),At=P(Le,me,Ee);if(tt!==void 0&&we.top===tt||At!==void 0&&we.bottom===At)return}}this.prepareMeasure()}}]),Y}(r.Component);ee.contextType=C.b,V([R()],ee.prototype,"updatePosition",null),V([R()],ee.prototype,"lazyUpdatePosition",null);var ce=ee,be=n("zAh6"),le=n("i6bk"),Ie=r.createContext(null),ke=Ie;function Re(){return window}function Qe(he,J){if(!he.getClientRects().length)return 0;var Y=he.getBoundingClientRect();return Y.width||Y.height?J===window?(J=he.ownerDocument.documentElement,Y.top-J.clientTop):Y.top-J.getBoundingClientRect().top:Y.top}var We=/#(\S+)$/,ot=function(he){o()(Y,he);var J=l()(Y);function Y(){var $;return f()(this,Y),$=J.apply(this,arguments),$.state={activeLink:null},$.links=[],$.registerLink=function(fe){$.links.includes(fe)||$.links.push(fe)},$.unregisterLink=function(fe){var we=$.links.indexOf(fe);we!==-1&&$.links.splice(we,1)},$.getContainer=function(){var fe=$.context.getTargetContainer,we=$.props.getContainer,Ne=we||fe||Re;return Ne()},$.handleScrollTo=function(fe){var we=$.props,Ne=we.offsetTop,Ee=we.targetOffset;$.setCurrentActiveLink(fe);var de=$.getContainer(),me=Object(le.a)(de,!0),Le=We.exec(fe);if(!Le)return;var tt=document.getElementById(Le[1]);if(!tt)return;var At=Qe(tt,de),ht=me+At;ht-=Ee!==void 0?Ee:Ne||0,$.animating=!0,Object(be.a)(ht,{callback:function(){$.animating=!1},getContainer:$.getContainer})},$.saveInkNode=function(fe){$.inkNode=fe},$.setCurrentActiveLink=function(fe){var we=$.state.activeLink,Ne=$.props.onChange;we!==fe&&($.setState({activeLink:fe}),Ne&&Ne(fe))},$.handleScroll=function(){if($.animating)return;var fe=$.props,we=fe.offsetTop,Ne=fe.bounds,Ee=fe.targetOffset,de=$.getCurrentAnchor(Ee!==void 0?Ee:we||0,Ne);$.setCurrentActiveLink(de)},$.updateInk=function(){var fe=i()($),we=fe.prefixCls,Ne=s.findDOMNode(i()($)),Ee=Ne.getElementsByClassName("".concat(we,"-link-title-active"))[0];Ee&&($.inkNode.style.top="".concat(Ee.offsetTop+Ee.clientHeight/2-4.5,"px"))},$.render=function(){var fe=$.context,we=fe.getPrefixCls,Ne=fe.direction,Ee=$.props,de=Ee.prefixCls,me=Ee.className,Le=me===void 0?"":me,tt=Ee.style,At=Ee.offsetTop,ht=Ee.affix,Ke=Ee.showInkInFixed,Jt=Ee.children,ct=$.state.activeLink,Gt=we("anchor",de);$.prefixCls=Gt;var dr=d()("".concat(Gt,"-ink-ball"),{visible:ct}),zt=d()(Le,"".concat(Gt,"-wrapper"),A()({},"".concat(Gt,"-rtl"),Ne==="rtl")),kt=d()(Gt,{fixed:!ht&&!Ke}),Vt=p()({maxHeight:At?"calc(100vh - ".concat(At,"px)"):"100vh"},tt),Xe=r.createElement("div",{className:zt,style:Vt},r.createElement("div",{className:kt},r.createElement("div",{className:"".concat(Gt,"-ink")},r.createElement("span",{className:dr,ref:$.saveInkNode})),Jt));return r.createElement(ke.Provider,{value:{registerLink:$.registerLink,unregisterLink:$.unregisterLink,activeLink:$.state.activeLink,scrollTo:$.handleScrollTo,onClick:$.props.onClick}},ht?r.createElement(ce,{offsetTop:At,target:$.getContainer},Xe):Xe)},$}return u()(Y,[{key:"componentDidMount",value:function(){this.scrollContainer=this.getContainer(),this.scrollEvent=Object(g.a)(this.scrollContainer,"scroll",this.handleScroll),this.handleScroll()}},{key:"componentDidUpdate",value:function(){if(this.scrollEvent){var fe=this.getContainer();this.scrollContainer!==fe&&(this.scrollContainer=fe,this.scrollEvent.remove(),this.scrollEvent=Object(g.a)(this.scrollContainer,"scroll",this.handleScroll),this.handleScroll())}this.updateInk()}},{key:"componentWillUnmount",value:function(){this.scrollEvent&&this.scrollEvent.remove()}},{key:"getCurrentAnchor",value:function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,Ne=this.props.getCurrentAnchor;if(typeof Ne=="function")return Ne();var Ee=[],de=this.getContainer();if(this.links.forEach(function(Le){var tt=We.exec(Le.toString());if(!tt)return;var At=document.getElementById(tt[1]);if(At){var ht=Qe(At,de);ht<fe+we&&Ee.push({link:Le,top:ht})}}),Ee.length){var me=Ee.reduce(function(Le,tt){return tt.top>Le.top?tt:Le});return me.link}return""}}]),Y}(r.Component);ot.defaultProps={affix:!0,showInkInFixed:!1},ot.contextType=C.b;var Oe=function(he){o()(Y,he);var J=l()(Y);function Y(){var $;return f()(this,Y),$=J.apply(this,arguments),$.handleClick=function(fe){var we=$.context,Ne=we.scrollTo,Ee=we.onClick,de=$.props,me=de.href,Le=de.title;Ee&&Ee(fe,{title:Le,href:me}),Ne(me)},$.renderAnchorLink=function(fe){var we=fe.getPrefixCls,Ne=$.props,Ee=Ne.prefixCls,de=Ne.href,me=Ne.title,Le=Ne.children,tt=Ne.className,At=Ne.target,ht=we("anchor",Ee),Ke=$.context.activeLink===de,Jt=d()(tt,"".concat(ht,"-link"),A()({},"".concat(ht,"-link-active"),Ke)),ct=d()("".concat(ht,"-link-title"),A()({},"".concat(ht,"-link-title-active"),Ke));return r.createElement("div",{className:Jt},r.createElement("a",{className:ct,href:de,title:typeof me=="string"?me:"",target:At,onClick:$.handleClick},me),Le)},$}return u()(Y,[{key:"componentDidMount",value:function(){this.context.registerLink(this.props.href)}},{key:"componentDidUpdate",value:function(fe){var we=fe.href,Ne=this.props.href;we!==Ne&&(this.context.unregisterLink(we),this.context.registerLink(Ne))}},{key:"componentWillUnmount",value:function(){this.context.unregisterLink(this.props.href)}},{key:"render",value:function(){return r.createElement(C.a,null,this.renderAnchorLink)}}]),Y}(r.Component);Oe.defaultProps={href:"#"},Oe.contextType=ke;var oe=Oe;ot.Link=oe;var st=D.a=ot},JuEJ:function(k,D,n){var y=n("bYtY"),p=n("4NO4"),x=y.each,A=y.isObject,m=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function f(r){var s=r&&r.itemStyle;if(!s)return;for(var c=0,d=m.length;c<d;c++){var g=m[c],v=s.normal,b=s.emphasis;v&&v[g]&&(r[g]=r[g]||{},r[g].normal?y.merge(r[g].normal,v[g]):r[g].normal=v[g],v[g]=null),b&&b[g]&&(r[g]=r[g]||{},r[g].emphasis?y.merge(r[g].emphasis,b[g]):r[g].emphasis=b[g],b[g]=null)}}function h(r,s,c){if(r&&r[s]&&(r[s].normal||r[s].emphasis)){var d=r[s].normal,g=r[s].emphasis;d&&(c?(r[s].normal=r[s].emphasis=null,y.defaults(r[s],d)):r[s]=d),g&&(r.emphasis=r.emphasis||{},r.emphasis[s]=g)}}function u(r){h(r,"itemStyle"),h(r,"lineStyle"),h(r,"areaStyle"),h(r,"label"),h(r,"labelLine"),h(r,"upperLabel"),h(r,"edgeLabel")}function a(r,s){var c=A(r)&&r[s],d=A(c)&&c.textStyle;if(d)for(var g=0,v=p.TEXT_STYLE_OPTIONS.length;g<v;g++){var s=p.TEXT_STYLE_OPTIONS[g];d.hasOwnProperty(s)&&(c[s]=d[s])}}function i(r){r&&(u(r),a(r,"label"),r.emphasis&&a(r.emphasis,"label"))}function t(r){if(!A(r))return;f(r),u(r),a(r,"label"),a(r,"upperLabel"),a(r,"edgeLabel"),r.emphasis&&(a(r.emphasis,"label"),a(r.emphasis,"upperLabel"),a(r.emphasis,"edgeLabel"));var s=r.markPoint;s&&(f(s),i(s));var c=r.markLine;c&&(f(c),i(c));var d=r.markArea;d&&i(d);var g=r.data;if(r.type==="graph"){g=g||r.nodes;var v=r.links||r.edges;if(v&&!y.isTypedArray(v))for(var b=0;b<v.length;b++)i(v[b]);y.each(r.categories,function(C){u(C)})}if(g&&!y.isTypedArray(g))for(var b=0;b<g.length;b++)i(g[b]);var s=r.markPoint;if(s&&s.data)for(var S=s.data,b=0;b<S.length;b++)i(S[b]);var c=r.markLine;if(c&&c.data)for(var E=c.data,b=0;b<E.length;b++)y.isArray(E[b])?(i(E[b][0]),i(E[b][1])):i(E[b]);r.type==="gauge"?(a(r,"axisLabel"),a(r,"title"),a(r,"detail")):r.type==="treemap"?(h(r.breadcrumb,"itemStyle"),y.each(r.levels,function(C){u(C)})):r.type==="tree"&&u(r.leaves)}function o(r){return y.isArray(r)?r:r?[r]:[]}function e(r){return(y.isArray(r)?r[0]:r)||{}}function l(r,s){x(o(r.series),function(d){A(d)&&t(d)});var c=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];s&&c.push("valueAxis","categoryAxis","logAxis","timeAxis"),x(c,function(d){x(o(r[d]),function(g){g&&(a(g,"axisLabel"),a(g.axisPointer,"label"))})}),x(o(r.parallel),function(d){var g=d&&d.parallelAxisDefault;a(g,"axisLabel"),a(g&&g.axisPointer,"label")}),x(o(r.calendar),function(d){h(d,"itemStyle"),a(d,"dayLabel"),a(d,"monthLabel"),a(d,"yearLabel")}),x(o(r.radar),function(d){a(d,"name")}),x(o(r.geo),function(d){A(d)&&(i(d),x(o(d.regions),function(g){i(g)}))}),x(o(r.timeline),function(d){i(d),h(d,"label"),h(d,"itemStyle"),h(d,"controlStyle",!0);var g=d.data;y.isArray(g)&&y.each(g,function(v){y.isObject(v)&&(h(v,"label"),h(v,"itemStyle"))})}),x(o(r.toolbox),function(d){h(d,"iconStyle"),x(d.feature,function(g){h(g,"iconStyle")})}),a(e(r.axisPointer),"label"),a(e(r.tooltip).axisPointer,"label")}k.exports=l},K2GJ:function(k,D,n){var y=n("fW2E"),p=n("gut8"),x=p.ContextCachedBy,A=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],m=function(e){this.extendFrom(e,!1)};function f(o,e,l){var r=e.x==null?0:e.x,s=e.x2==null?1:e.x2,c=e.y==null?0:e.y,d=e.y2==null?0:e.y2;e.global||(r=r*l.width+l.x,s=s*l.width+l.x,c=c*l.height+l.y,d=d*l.height+l.y),r=isNaN(r)?0:r,s=isNaN(s)?1:s,c=isNaN(c)?0:c,d=isNaN(d)?0:d;var g=o.createLinearGradient(r,c,s,d);return g}function h(o,e,l){var r=l.width,s=l.height,c=Math.min(r,s),d=e.x==null?.5:e.x,g=e.y==null?.5:e.y,v=e.r==null?.5:e.r;e.global||(d=d*r+l.x,g=g*s+l.y,v=v*c);var b=o.createRadialGradient(d,g,0,d,g,v);return b}m.prototype={constructor:m,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(e,l,r){var s=this,c=r&&r.style,d=!c||e.__attrCachedBy!==x.STYLE_BIND;e.__attrCachedBy=x.STYLE_BIND;for(var g=0;g<A.length;g++){var v=A[g],b=v[0];(d||s[b]!==c[b])&&(e[b]=y(e,b,s[b]||v[1]))}if((d||s.fill!==c.fill)&&(e.fillStyle=s.fill),(d||s.stroke!==c.stroke)&&(e.strokeStyle=s.stroke),(d||s.opacity!==c.opacity)&&(e.globalAlpha=s.opacity==null?1:s.opacity),(d||s.blend!==c.blend)&&(e.globalCompositeOperation=s.blend||"source-over"),this.hasStroke()){var S=s.lineWidth;e.lineWidth=S/(this.strokeNoScale&&l&&l.getLineScale?l.getLineScale():1)}},hasFill:function(){var e=this.fill;return e!=null&&e!=="none"},hasStroke:function(){var e=this.stroke;return e!=null&&e!=="none"&&this.lineWidth>0},extendFrom:function(e,l){if(e)for(var r in e)e.hasOwnProperty(r)&&(l===!0||(l===!1?!this.hasOwnProperty(r):e[r]!=null))&&(this[r]=e[r])},set:function(e,l){typeof e=="string"?this[e]=l:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,l,r){for(var s=l.type==="radial"?h:f,c=s(e,l,r),d=l.colorStops,g=0;g<d.length;g++)c.addColorStop(d[g].offset,d[g].color);return c}};for(var u=m.prototype,a=0;a<A.length;a++){var i=A[a];i[0]in u||(u[i[0]]=i[1])}m.getGradient=u.getGradient;var t=m;k.exports=t},K3mO:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("3y9D"),n("WYAk"))})(this,function(y){return function(){var p=y,x=p.lib,A=x.Base,m=x.WordArray,f=p.algo,h=f.MD5,u=f.EvpKDF=A.extend({cfg:A.extend({keySize:128/32,hasher:h,iterations:1}),init:function(i){this.cfg=this.cfg.extend(i)},compute:function(i,t){for(var o,e=this.cfg,l=e.hasher.create(),r=m.create(),s=r.words,c=e.keySize,d=e.iterations;s.length<c;){o&&l.update(o),o=l.update(i).finalize(t),l.reset();for(var g=1;g<d;g++)o=l.finalize(o),l.reset();r.concat(o)}return r.sigBytes=c*4,r}});p.EvpKDF=function(a,i,t){return u.create(t).compute(a,i)}}(),y.EvpKDF})},K4ya:function(k,D,n){var y=n("bYtY"),p=n("XxSj"),x=y.each;function A(a){if(a){for(var i in a)if(a.hasOwnProperty(i))return!0}}function m(a,i,t){var o={};return x(i,function(l){var r=o[l]=e();x(a[l],function(s,c){if(!p.isValidType(c))return;var d={type:c,visual:s};t&&t(d,l),r[c]=new p(d),c==="opacity"&&(d=y.clone(d),d.type="colorAlpha",r.__hidden.__alphaForOpacity=new p(d))})}),o;function e(){var l=function(){};l.prototype.__hidden=l.prototype;var r=new l;return r}}function f(a,i,t){var o;y.each(t,function(e){i.hasOwnProperty(e)&&A(i[e])&&(o=!0)}),o&&y.each(t,function(e){i.hasOwnProperty(e)&&A(i[e])?a[e]=y.clone(i[e]):delete a[e]})}function h(a,i,t,o,e,l){var r={};y.each(a,function(v){var b=p.prepareVisualTypes(i[v]);r[v]=b});var s;function c(v){return t.getItemVisual(s,v)}function d(v,b){t.setItemVisual(s,v,b)}l==null?t.each(g):t.each([l],g);function g(v,b){s=l==null?v:b;var S=t.getRawDataItem(s);if(S&&S.visualMap===!1)return;for(var E=o.call(e,v),C=i[E],_=r[E],T=0,w=_.length;T<w;T++){var O=_[T];C[O]&&C[O].applyVisual(v,c,d)}}}function u(a,i,t,o){var e={};y.each(a,function(r){var s=p.prepareVisualTypes(i[r]);e[r]=s});function l(r,s){o!=null&&(o=s.getDimension(o));function c(O){return s.getItemVisual(g,O)}function d(O,I){s.setItemVisual(g,O,I)}for(var g;(g=r.next())!=null;){var v=s.getRawDataItem(g);if(v&&v.visualMap===!1)continue;for(var b=o!=null?s.get(o,g,!0):g,S=t(b),E=i[S],C=e[S],_=0,T=C.length;_<T;_++){var w=C[_];E[w]&&E[w].applyVisual(b,c,d)}}}return{progress:l}}D.createVisualMappings=m,D.replaceVisualOption=f,D.applyVisual=h,D.incrementalApplyVisual=u},KCsZ:function(k,D,n){var y=n("bYtY");function p(x){for(var A=0;A<x.length;A++)x[A][1]||(x[A][1]=x[A][0]);return function(m,f,h){for(var u={},a=0;a<x.length;a++){var i=x[a][1];if(f&&y.indexOf(f,i)>=0||h&&y.indexOf(h,i)<0)continue;var t=m.getShallow(i);t!=null&&(u[x[a][0]]=t)}return u}}k.exports=p},KMkd:function(k,D){function n(){this.__data__=[],this.size=0}k.exports=n},KPFz:function(k,D,n){},KQeH:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};D.default=y},KS52:function(k,D,n){var y=n("OELB"),p=y.parsePercent,x=y.linearMap,A=n("+TT/"),m=n("u3DP"),f=n("bYtY"),h=Math.PI*2,u=Math.PI/180;function a(t,o){return A.getLayoutRect(t.getBoxLayoutParams(),{width:o.getWidth(),height:o.getHeight()})}function i(t,o,e,l){o.eachSeriesByType(t,function(r){var s=r.getData(),c=s.mapDimension("value"),d=a(r,e),g=r.get("center"),v=r.get("radius");f.isArray(v)||(v=[0,v]),f.isArray(g)||(g=[g,g]);var b=p(d.width,e.getWidth()),S=p(d.height,e.getHeight()),E=Math.min(b,S),C=p(g[0],b)+d.x,_=p(g[1],S)+d.y,T=p(v[0],E/2),w=p(v[1],E/2),O=-r.get("startAngle")*u,I=r.get("minAngle")*u,R=0;s.each(c,function(ee){!isNaN(ee)&&R++});var M=s.getSum(c),F=Math.PI/(M||R)*2,P=r.get("clockwise"),X=r.get("roseType"),B=r.get("stillShowZeroSum"),j=s.getDataExtent(c);j[0]=0;var W=h,z=0,V=O,Q=P?1:-1;if(s.each(c,function(ee,ce){var be;if(isNaN(ee)){s.setItemLayout(ce,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:P,cx:C,cy:_,r0:T,r:X?NaN:w,viewRect:d});return}X!=="area"?be=M===0&&B?F:ee*F:be=h/R,be<I?(be=I,W-=I):z+=ee;var le=V+Q*be;s.setItemLayout(ce,{angle:be,startAngle:V,endAngle:le,clockwise:P,cx:C,cy:_,r0:T,r:X?x(ee,j,[T,w]):w,viewRect:d}),V=le}),W<h&&R)if(W<=.001){var G=h/R;s.each(c,function(ee,ce){if(!isNaN(ee)){var be=s.getItemLayout(ce);be.angle=G,be.startAngle=O+Q*ce*G,be.endAngle=O+Q*(ce+1)*G}})}else F=W/z,V=O,s.each(c,function(ee,ce){if(!isNaN(ee)){var be=s.getItemLayout(ce),le=be.angle===I?I:ee*F;be.startAngle=V,be.endAngle=V+Q*le,V+=Q*le}});m(r,w,d.width,d.height,d.x,d.y)})}k.exports=i},KUOm:function(k,D){function n(y){var p={};y.eachSeriesByType("graph",function(x){var A=x.getCategoriesData(),m=x.getData(),f={};A.each(function(h){var u=A.getName(h);f["ec-"+u]=h;var a=A.getItemModel(h),i=a.get("itemStyle.color")||x.getColorFromPalette(u,p);A.setItemVisual(h,"color",i);for(var t=["opacity","symbol","symbolSize","symbolKeepAspect"],o=0;o<t.length;o++){var e=a.getShallow(t[o],!0);e!=null&&A.setItemVisual(h,t[o],e)}}),A.count()&&m.each(function(h){var u=m.getItemModel(h),a=u.getShallow("category");if(a!=null){typeof a=="string"&&(a=f["ec-"+a]);for(var i=["color","opacity","symbol","symbolSize","symbolKeepAspect"],t=0;t<i.length;t++)m.getItemVisual(h,i[t],!0)==null&&m.setItemVisual(h,i[t],A.getItemVisual(a,i[t]))}})})}k.exports=n},Kagy:function(k,D){var n={legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};k.exports=n},KamJ:function(k,D,n){var y=n("ProS"),p=n("szbU");n("vF/C"),n("qwVE"),n("BuqR"),n("AE9C"),n("1u/T"),y.registerPreprocessor(p)},KmYQ:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("OLod"))})(this,function(y){return y.pad.ZeroPadding={pad:function(x,A){var m=A*4;x.clamp(),x.sigBytes+=m-(x.sigBytes%m||m)},unpad:function(x){for(var A=x.words,m=x.sigBytes-1,m=x.sigBytes-1;m>=0;m--)if(A[m>>>2]>>>24-m%4*8&255){x.sigBytes=m+1;break}}},y.pad.ZeroPadding})},KrTs:function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("cDf5"),A=n.n(x),m=n("pVnL"),f=n.n(m),h=n("q1tI"),u=n("UmKh"),a=n("TSYQ"),i=n.n(a),t=n("J4zp"),o=n.n(t),e=n("H84U"),l=n("0n0R"),r=function(w,O){var I={};for(var R in w)Object.prototype.hasOwnProperty.call(w,R)&&O.indexOf(R)<0&&(I[R]=w[R]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,R=Object.getOwnPropertySymbols(w);M<R.length;M++)O.indexOf(R[M])<0&&Object.prototype.propertyIsEnumerable.call(w,R[M])&&(I[R[M]]=w[R[M]]);return I};function s(w){return w?w.toString().split("").reverse().map(function(O){var I=Number(O);return isNaN(I)?O:I}):[]}function c(w,O){for(var I=[],R=0;R<30;R++)I.push(h.createElement("p",{key:R.toString(),className:i()(O,{current:w===R})},R%10));return I}var d=function(O){var I=O.prefixCls,R=O.count,M=O.className,F=O.style,P=O.title,X=O.component,B=X===void 0?"sup":X,j=O.displayComponent,W=O.onAnimated,z=W===void 0?function(){}:W,V=r(O,["prefixCls","count","className","style","title","component","displayComponent","onAnimated"]),Q=h.useState(!0),G=o()(Q,2),ee=G[0],ce=G[1],be=h.useState(R),le=o()(be,2),Ie=le[0],ke=le[1],Re=h.useState(R),Qe=o()(Re,2),We=Qe[0],ot=Qe[1],Oe=h.useState(R),oe=o()(Oe,2),st=oe[0],he=oe[1],J=h.useContext(e.b),Y=J.getPrefixCls,$=Y("scroll-number",I);We!==R&&(ce(!0),ot(R)),h.useEffect(function(){he(Ie);var de;return ee&&(de=setTimeout(function(){ce(!1),ke(R),z()})),function(){de&&clearTimeout(de)}},[ee,R,z]);var fe=function(me,Le){var tt=Math.abs(Number(Ie)),At=Math.abs(Number(st)),ht=Math.abs(s(Ie)[Le]),Ke=Math.abs(s(At)[Le]);return ee?10+me:tt>At?ht>=Ke?10+me:20+me:ht<=Ke?10+me:me},we=function(me,Le){if(typeof me=="number"){var tt=fe(me,Le),At=ee||s(st)[Le]===void 0;return h.createElement("span",{className:"".concat($,"-only"),style:{transition:At?"none":void 0,msTransform:"translateY(".concat(-tt*100,"%)"),WebkitTransform:"translateY(".concat(-tt*100,"%)"),transform:"translateY(".concat(-tt*100,"%)")},key:Le},c(tt,"".concat($,"-only-unit")))}return h.createElement("span",{key:"symbol",className:"".concat($,"-symbol")},me)},Ne=function(){return Ie&&Number(Ie)%1===0?s(Ie).map(function(me,Le){return we(me,Le)}).reverse():Ie},Ee=f()(f()({},V),{style:F,className:i()($,M),title:P});return F&&F.borderColor&&(Ee.style=f()(f()({},F),{boxShadow:"0 0 0 1px ".concat(F.borderColor," inset")})),j?Object(l.a)(j,{className:i()("".concat($,"-custom-component"),j.props&&j.props.className)}):h.createElement(B,Ee,Ne())},g=d,v=n("09Wf");function b(w){return v.a.indexOf(w)!==-1}var S=function(O){var I,R=O.className,M=O.prefixCls,F=O.style,P=O.color,X=O.children,B=O.text,j=O.placement,W=j===void 0?"end":j,z=h.useContext(e.b),V=z.getPrefixCls,Q=z.direction,G=V("ribbon",M),ee=b(P),ce=i()(G,R,"".concat(G,"-placement-").concat(W),(I={},p()(I,"".concat(G,"-rtl"),Q==="rtl"),p()(I,"".concat(G,"-color-").concat(P),ee),I)),be={},le={};return P&&!ee&&(be.background=P,le.color=P),h.createElement("div",{className:"".concat(G,"-wrapper")},X,h.createElement("div",{className:ce,style:f()(f()({},be),F)},B,h.createElement("div",{className:"".concat(G,"-corner"),style:le})))},E=S,C=function(w,O){var I={};for(var R in w)Object.prototype.hasOwnProperty.call(w,R)&&O.indexOf(R)<0&&(I[R]=w[R]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,R=Object.getOwnPropertySymbols(w);M<R.length;M++)O.indexOf(R[M])<0&&Object.prototype.propertyIsEnumerable.call(w,R[M])&&(I[R[M]]=w[R[M]]);return I},_=function(O){var I,R,M=O.prefixCls,F=O.scrollNumberPrefixCls,P=O.children,X=O.status,B=O.text,j=O.color,W=O.count,z=W===void 0?null:W,V=O.overflowCount,Q=V===void 0?99:V,G=O.dot,ee=G===void 0?!1:G,ce=O.size,be=ce===void 0?"default":ce,le=O.title,Ie=O.offset,ke=O.style,Re=O.className,Qe=O.showZero,We=Qe===void 0?!1:Qe,ot=C(O,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","showZero"]),Oe=h.useContext(e.b),oe=Oe.getPrefixCls,st=Oe.direction,he=oe("badge",M),J=function(){var dr=z>Q?"".concat(Q,"+"):z;return dr},Y=function(){return!!X||!!j},$=function(){var dr=J();return dr==="0"||dr===0},fe=function(){return ee&&!$()||Y()},we=function(){return fe()?"":J()},Ne=function(){return le||(typeof z=="string"||typeof z=="number"?z:void 0)},Ee=function(){return st==="rtl"?Ie?f()({left:parseInt(Ie[0],10),marginTop:Ie[1]},ke):ke:Ie?f()({right:-parseInt(Ie[0],10),marginTop:Ie[1]},ke):ke},de=function(){var dr=we(),zt=dr==null||dr==="";return(zt||$()&&!We)&&!fe()},me=function(){var dr=de();return dr||!B?null:h.createElement("span",{className:"".concat(he,"-status-text")},B)},Le=function(){var dr=z;return!dr||A()(dr)!=="object"?void 0:Object(l.a)(dr,{style:f()(f()({},Ee()),dr.props&&dr.props.style)})},tt=function(){var dr,zt=oe("scroll-number",F),kt=we(),Vt=fe(),Xe=de(),pe=i()((dr={},p()(dr,"".concat(he,"-dot"),Vt),p()(dr,"".concat(he,"-count"),!Vt),p()(dr,"".concat(he,"-count-sm"),be==="small"),p()(dr,"".concat(he,"-multiple-words"),!Vt&&z&&z.toString&&z.toString().length>1),p()(dr,"".concat(he,"-status-").concat(X),!!X),p()(dr,"".concat(he,"-status-").concat(j),b(j)),dr)),te=Ee();return j&&!b(j)&&(te=te||{},te.background=j),Xe?null:h.createElement(g,{prefixCls:zt,"data-show":!Xe,className:pe,count:kt,displayComponent:Le(),title:Ne(),style:te,key:"scrollNumber"})},At=i()((I={},p()(I,"".concat(he,"-status-dot"),Y()),p()(I,"".concat(he,"-status-").concat(X),!!X),p()(I,"".concat(he,"-status-").concat(j),b(j)),I)),ht={};j&&!b(j)&&(ht.background=j);var Ke=i()(Re,he,(R={},p()(R,"".concat(he,"-status"),Y()),p()(R,"".concat(he,"-not-a-wrapper"),!P),p()(R,"".concat(he,"-rtl"),st==="rtl"),R));if(!P&&Y()){var Jt=Ee(),ct=Jt&&Jt.color;return h.createElement("span",f()({},ot,{className:Ke,style:Jt}),h.createElement("span",{className:At,style:ht}),h.createElement("span",{style:{color:ct},className:"".concat(he,"-status-text")},B))}return h.createElement("span",f()({},ot,{className:Ke}),P,h.createElement(u.a,{component:"",showProp:"data-show",transitionName:P?"".concat(he,"-zoom"):"",transitionAppear:!0},tt()),me())};_.Ribbon=E;var T=D.a=_},Kvyg:function(k,D,n){},KxBF:function(k,D){function n(y,p,x){var A=-1,m=y.length;p<0&&(p=-p>m?0:m+p),x=x>m?m:x,x<0&&(x+=m),m=p>x?0:x-p>>>0,p>>>=0;for(var f=Array(m);++A<m;)f[A]=y[A+p];return f}k.exports=n},KxFI:function(k,D,n){},KxfA:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=x.isTypedArray,m=x.extend,f=x.assert,h=x.each,u=x.isObject,a=n("4NO4"),i=a.getDataItemValue,t=a.isDataItemOption,o=n("OELB"),e=o.parseDate,l=n("7G+c"),r=n("k9D9"),s=r.SOURCE_FORMAT_TYPED_ARRAY,c=r.SOURCE_FORMAT_ARRAY_ROWS,d=r.SOURCE_FORMAT_ORIGINAL,g=r.SOURCE_FORMAT_OBJECT_ROWS;function v(P,X){l.isInstance(P)||(P=l.seriesDataToSource(P)),this._source=P;var B=this._data=P.data,j=P.sourceFormat;j===s&&(this._offset=0,this._dimSize=X,this._data=B);var W=S[j===c?j+"_"+P.seriesLayoutBy:j];m(this,W)}var b=v.prototype;b.pure=!1,b.persistent=!0,b.getSource=function(){return this._source};var S={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(P){return this._data[P+this._source.startIndex]},appendData:_},arrayRows_row:{pure:!0,count:function(){var P=this._data[0];return P?Math.max(0,P.length-this._source.startIndex):0},getItem:function(P){P+=this._source.startIndex;for(var X=[],B=this._data,j=0;j<B.length;j++){var W=B[j];X.push(W?W[P]:null)}return X},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:E,getItem:C,appendData:_},keyedColumns:{pure:!0,count:function(){var P=this._source.dimensionsDefine[0].name,X=this._data[P];return X?X.length:0},getItem:function(P){for(var X=[],B=this._source.dimensionsDefine,j=0;j<B.length;j++){var W=this._data[B[j].name];X.push(W?W[P]:null)}return X},appendData:function(P){var X=this._data;h(P,function(B,j){for(var W=X[j]||(X[j]=[]),z=0;z<(B||[]).length;z++)W.push(B[z])})}},original:{count:E,getItem:C,appendData:_},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(P,X){P=P-this._offset,X=X||[];for(var B=this._dimSize*P,j=0;j<this._dimSize;j++)X[j]=this._data[B+j];return X},appendData:function(P){this._data=P},clean:function(){this._offset+=this.count(),this._data=null}}};function E(){return this._data.length}function C(P){return this._data[P]}function _(P){for(var X=0;X<P.length;X++)this._data.push(P[X])}var T={arrayRows:w,objectRows:function(P,X,B,j){return B!=null?P[j]:P},keyedColumns:w,original:function(P,X,B,j){var W=i(P);return B==null||!(W instanceof Array)?W:W[B]},typedArray:w};function w(P,X,B,j){return B!=null?P[B]:P}var O={arrayRows:I,objectRows:function(P,X,B,j){return R(P[X],this._dimensionInfos[X])},keyedColumns:I,original:function(P,X,B,j){var W=P&&(P.value==null?P:P.value);return!this._rawData.pure&&t(P)&&(this.hasItemOption=!0),R(W instanceof Array?W[j]:W,this._dimensionInfos[X])},typedArray:function(P,X,B,j){return P[j]}};function I(P,X,B,j){return R(P[j],this._dimensionInfos[X])}function R(P,X){var B=X&&X.type;if(B==="ordinal"){var j=X&&X.ordinalMeta;return j?j.parseAndCollect(P):P}return B==="time"&&typeof P!="number"&&P!=null&&P!=="-"&&(P=+e(P)),P==null||P===""?NaN:+P}function M(P,X,B){if(!P)return;var j=P.getRawDataItem(X);if(j==null)return;var W=P.getProvider().getSource().sourceFormat,z,V,Q=P.getDimensionInfo(B);return Q&&(z=Q.name,V=Q.index),T[W](j,X,V,z)}function F(P,X,B){if(!P)return;var j=P.getProvider().getSource().sourceFormat;if(j!==d&&j!==g)return;var W=P.getRawDataItem(X);if(j===d&&!u(W)&&(W=null),W)return W[B]}D.DefaultDataProvider=v,D.defaultDimValueGetters=O,D.retrieveRawValue=M,D.retrieveRawAttr=F},L0Ub:function(k,D,n){var y=n("bYtY"),p=y.each,x=y.createHashMap,A=y.assert,m=n("Tghj"),f=m.__DEV__,h=x(["tooltip","label","itemName","itemId","seriesName"]);function u(o){var e={},l=e.encode={},r=x(),s=[],c=[],d=e.userOutput={dimensionNames:o.dimensions.slice(),encode:{}};p(o.dimensions,function(E){var C=o.getDimensionInfo(E),_=C.coordDim;if(_){var T=C.coordDimIndex;a(l,_)[T]=E,C.isExtraCoord||(r.set(_,1),t(C.type)&&(s[0]=E),a(d.encode,_)[T]=C.index),C.defaultTooltip&&c.push(E)}h.each(function(w,O){var I=a(l,O),R=C.otherDims[O];R!=null&&R!==!1&&(I[R]=C.name)})});var g=[],v={};r.each(function(E,C){var _=l[C];v[C]=_[0],g=g.concat(_)}),e.dataDimsOnCoord=g,e.encodeFirstDimNotExtra=v;var b=l.label;b&&b.length&&(s=b.slice());var S=l.tooltip;return S&&S.length?c=S.slice():c.length||(c=s.slice()),l.defaultedLabel=s,l.defaultedTooltip=c,e}function a(o,e){return o.hasOwnProperty(e)||(o[e]=[]),o[e]}function i(o){return o==="category"?"ordinal":o==="time"?"time":"float"}function t(o){return!(o==="ordinal"||o==="time")}D.OTHER_DIMENSIONS=h,D.summarizeDimensions=u,D.getDimensionTypeByAxis=i},L3Oj:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("HjIi");n("HM/N"),n("9eas"),n("eS4l"),n("y4/Y"),n("as94"),y.registerLayout(p.curry(x,"bar")),y.extendComponentView({type:"polar"})},L41K:function(k,D,n){"use strict";n.d(D,"a",function(){return z});var y=n("pVnL"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("lwsE"),f=n.n(m),h=n("W8MJ"),u=n.n(h),a=n("7W2i"),i=n.n(a),t=n("LQ03"),o=n.n(t),e=n("q1tI"),l=n.n(e),r=n("BGR+"),s=n("VTBJ"),c=n("rePB"),d=n("Ff2n"),g=n("1OyB"),v=n("vuIU"),b=n("Ji7U"),S=n("LK+K"),E=n("Zm9Q"),C=n("TSYQ"),_=n.n(C),T=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick"];function w(V){return typeof V=="string"}var O=function(V){Object(b.a)(G,V);var Q=Object(S.a)(G);function G(){var ee;return Object(g.a)(this,G),ee=Q.apply(this,arguments),ee.onClick=function(){var ce=ee.props,be=ce.onClick,le=ce.onStepClick,Ie=ce.stepIndex;be&&be.apply(void 0,arguments),le(Ie)},ee}return Object(v.a)(G,[{key:"renderIconNode",value:function(){var ce,be=this.props,le=be.prefixCls,Ie=be.progressDot,ke=be.stepIcon,Re=be.stepNumber,Qe=be.status,We=be.title,ot=be.description,Oe=be.icon,oe=be.iconPrefix,st=be.icons,he,J=_()("".concat(le,"-icon"),"".concat(oe,"icon"),(ce={},Object(c.a)(ce,"".concat(oe,"icon-").concat(Oe),Oe&&w(Oe)),Object(c.a)(ce,"".concat(oe,"icon-check"),!Oe&&Qe==="finish"&&(st&&!st.finish||!st)),Object(c.a)(ce,"".concat(oe,"icon-cross"),!Oe&&Qe==="error"&&(st&&!st.error||!st)),ce)),Y=e.createElement("span",{className:"".concat(le,"-icon-dot")});return Ie?typeof Ie=="function"?he=e.createElement("span",{className:"".concat(le,"-icon")},Ie(Y,{index:Re-1,status:Qe,title:We,description:ot})):he=e.createElement("span",{className:"".concat(le,"-icon")},Y):Oe&&!w(Oe)?he=e.createElement("span",{className:"".concat(le,"-icon")},Oe):st&&st.finish&&Qe==="finish"?he=e.createElement("span",{className:"".concat(le,"-icon")},st.finish):st&&st.error&&Qe==="error"?he=e.createElement("span",{className:"".concat(le,"-icon")},st.error):Oe||Qe==="finish"||Qe==="error"?he=e.createElement("span",{className:J}):he=e.createElement("span",{className:"".concat(le,"-icon")},Re),ke&&(he=ke({index:Re-1,status:Qe,title:We,description:ot,node:he})),he}},{key:"render",value:function(){var ce,be=this.props,le=be.className,Ie=be.prefixCls,ke=be.style,Re=be.active,Qe=be.status,We=Qe===void 0?"wait":Qe,ot=be.iconPrefix,Oe=be.icon,oe=be.wrapperStyle,st=be.stepNumber,he=be.disabled,J=be.description,Y=be.title,$=be.subTitle,fe=be.progressDot,we=be.stepIcon,Ne=be.tailContent,Ee=be.icons,de=be.stepIndex,me=be.onStepClick,Le=be.onClick,tt=Object(d.a)(be,T),At=_()("".concat(Ie,"-item"),"".concat(Ie,"-item-").concat(We),le,(ce={},Object(c.a)(ce,"".concat(Ie,"-item-custom"),Oe),Object(c.a)(ce,"".concat(Ie,"-item-active"),Re),Object(c.a)(ce,"".concat(Ie,"-item-disabled"),he===!0),ce)),ht=Object(s.a)({},ke),Ke={};return me&&!he&&(Ke.role="button",Ke.tabIndex=0,Ke.onClick=this.onClick),e.createElement("div",Object.assign({},tt,{className:At,style:ht}),e.createElement("div",Object.assign({onClick:Le},Ke,{className:"".concat(Ie,"-item-container")}),e.createElement("div",{className:"".concat(Ie,"-item-tail")},Ne),e.createElement("div",{className:"".concat(Ie,"-item-icon")},this.renderIconNode()),e.createElement("div",{className:"".concat(Ie,"-item-content")},e.createElement("div",{className:"".concat(Ie,"-item-title")},Y,$&&e.createElement("div",{title:typeof $=="string"?$:void 0,className:"".concat(Ie,"-item-subtitle")},$)),J&&e.createElement("div",{className:"".concat(Ie,"-item-description")},J))))}}]),G}(e.Component),I=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange"],R=function(V){Object(b.a)(G,V);var Q=Object(S.a)(G);function G(){var ee;return Object(g.a)(this,G),ee=Q.apply(this,arguments),ee.onStepClick=function(ce){var be=ee.props,le=be.onChange,Ie=be.current;le&&Ie!==ce&&le(ce)},ee}return Object(v.a)(G,[{key:"render",value:function(){var ce,be=this,le=this.props,Ie=le.prefixCls,ke=le.style,Re=ke===void 0?{}:ke,Qe=le.className,We=le.children,ot=le.direction,Oe=le.type,oe=le.labelPlacement,st=le.iconPrefix,he=le.status,J=le.size,Y=le.current,$=le.progressDot,fe=le.stepIcon,we=le.initial,Ne=le.icons,Ee=le.onChange,de=Object(d.a)(le,I),me=Oe==="navigation",Le=$?"vertical":oe,tt=_()(Ie,"".concat(Ie,"-").concat(ot),Qe,(ce={},Object(c.a)(ce,"".concat(Ie,"-").concat(J),J),Object(c.a)(ce,"".concat(Ie,"-label-").concat(Le),ot==="horizontal"),Object(c.a)(ce,"".concat(Ie,"-dot"),!!$),Object(c.a)(ce,"".concat(Ie,"-navigation"),me),ce));return l.a.createElement("div",Object.assign({className:tt,style:Re},de),Object(E.a)(We).map(function(At,ht){var Ke=we+ht,Jt=Object(s.a)({stepNumber:"".concat(Ke+1),stepIndex:Ke,key:Ke,prefixCls:Ie,iconPrefix:st,wrapperStyle:Re,progressDot:$,stepIcon:fe,icons:Ne,onStepClick:Ee&&be.onStepClick},At.props);return he==="error"&&ht===Y-1&&(Jt.className="".concat(Ie,"-next-error")),At.props.status||(Ke===Y?Jt.status=he:Ke<Y?Jt.status="finish":Jt.status="wait"),Jt.active=Ke===Y,Object(e.cloneElement)(At,Jt)}))}}]),G}(l.a.Component);R.Step=O,R.defaultProps={type:"default",prefixCls:"rc-steps",iconPrefix:"rc",direction:"horizontal",labelPlacement:"horizontal",initial:0,current:0,status:"process",size:"",progressDot:!1};var M=R,F=n("Eh2f"),P=n.n(F),X=n("1S0Z"),B=n.n(X),j=n("H84U"),W=n("CFYs"),z=function(V){i()(G,V);var Q=o()(G);function G(){var ee;return f()(this,G),ee=Q.apply(this,arguments),ee.renderSteps=function(ce){var be=ce.getPrefixCls,le=ce.direction,Ie=be("steps",ee.props.prefixCls),ke=be("",ee.props.iconPrefix),Re=ee.props,Qe=Re.percent,We=Re.size,ot=_()(ee.props.className,A()({},"".concat(Ie,"-rtl"),le==="rtl")),Oe={finish:e.createElement(P.a,{className:"".concat(Ie,"-finish-icon")}),error:e.createElement(B.a,{className:"".concat(Ie,"-error-icon")})},oe=function(he){var J=he.node,Y=he.status;if(Y==="process"&&Qe!==void 0){var $=We==="small"?32:40,fe=e.createElement("div",{className:"".concat(Ie,"-progress-icon")},e.createElement(W.a,{type:"circle",percent:Qe,width:$,strokeWidth:4,format:function(){return null}}),J);return fe}return J};return e.createElement(M,p()({icons:Oe},Object(r.default)(ee.props,["progress"]),{stepIcon:oe,prefixCls:Ie,iconPrefix:ke,className:ot}))},ee}return u()(G,[{key:"render",value:function(){return e.createElement(j.a,null,this.renderSteps)}}]),G}(e.Component);z.Step=M.Step,z.defaultProps={current:0}},L5E0:function(k,D){var n=["itemStyle","borderColor"];function y(p,x){var A=p.get("color");p.eachRawSeriesByType("boxplot",function(m){var f=A[m.seriesIndex%A.length],h=m.getData();h.setVisual({legendSymbol:"roundRect",color:m.get(n)||f}),p.isSeriesFiltered(m)||h.each(function(u){var a=h.getItemModel(u);h.setItemVisual(u,{color:a.get(n,!0)})})})}k.exports=y},L8xA:function(k,D){function n(y){var p=this.__data__,x=p.delete(y);return this.size=p.size,x}k.exports=n},LBfv:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=p.createHashMap,A=p.each;y.registerProcessor({getTargetSeries:function(m){var f=x();return m.eachComponent("dataZoom",function(h){h.eachTargetAxis(function(u,a,i){var t=i.getAxisProxy(u.name,a);A(t.getTargetSeriesModels(),function(o){f.set(o.uid,o)})})}),f},modifyOutputEnd:!0,overallReset:function(m,f){m.eachComponent("dataZoom",function(h){h.eachTargetAxis(function(u,a,i){i.getAxisProxy(u.name,a).reset(i,f)}),h.eachTargetAxis(function(u,a,i){i.getAxisProxy(u.name,a).filterData(i,f)})}),m.eachComponent("dataZoom",function(h){var u=h.findRepresentativeAxisProxy(),a=u.getDataPercentWindow(),i=u.getDataValueWindow();h.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})})}})},LCi9:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function p(v,b){for(var S=0;S<b.length;S++){var E=b[S];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(v,E.key,E)}}function x(v,b,S){return b&&p(v.prototype,b),S&&p(v,S),v}var A=0,m=1,f=2,h=4,u=8,a=16,i=32,t=64,o=127,e=50,l=90,r=250,s=1e3,c=1e3,d=50,g=function(){function v(){y(this,v),this._target=null,this._state=o,this._tracked=[],this._ignored=[],this._waitingRelease=!1,this._releaseStart=0,this._longpressTimeoutId=null,this._twoTouchTimeoutId=null,this._boundEventHandler=this._eventHandler.bind(this)}return x(v,[{key:"attach",value:function(S){this.detach(),this._target=S,this._target.addEventListener("touchstart",this._boundEventHandler),this._target.addEventListener("touchmove",this._boundEventHandler),this._target.addEventListener("touchend",this._boundEventHandler),this._target.addEventListener("touchcancel",this._boundEventHandler)}},{key:"detach",value:function(){if(!this._target)return;this._stopLongpressTimeout(),this._stopTwoTouchTimeout(),this._target.removeEventListener("touchstart",this._boundEventHandler),this._target.removeEventListener("touchmove",this._boundEventHandler),this._target.removeEventListener("touchend",this._boundEventHandler),this._target.removeEventListener("touchcancel",this._boundEventHandler),this._target=null}},{key:"_eventHandler",value:function(S){var E;S.stopPropagation(),S.preventDefault();switch(S.type){case"touchstart":E=this._touchStart;break;case"touchmove":E=this._touchMove;break;case"touchend":case"touchcancel":E=this._touchEnd;break}for(var C=0;C<S.changedTouches.length;C++){var _=S.changedTouches[C];E.call(this,_.identifier,_.clientX,_.clientY)}}},{key:"_touchStart",value:function(S,E,C){if(this._hasDetectedGesture()||this._state===A){this._ignored.push(S);return}if(this._tracked.length>0&&Date.now()-this._tracked[0].started>r){this._state=A,this._ignored.push(S);return}if(this._waitingRelease){this._state=A,this._ignored.push(S);return}this._tracked.push({id:S,started:Date.now(),active:!0,firstX:E,firstY:C,lastX:E,lastY:C,angle:0});switch(this._tracked.length){case 1:this._startLongpressTimeout();break;case 2:this._state&=~(m|u|a),this._stopLongpressTimeout();break;case 3:this._state&=~(f|i|t);break;default:this._state=A}}},{key:"_touchMove",value:function(S,E,C){var _=this._tracked.find(function(M){return M.id===S});if(_===void 0)return;_.lastX=E,_.lastY=C;var T=E-_.firstX,w=C-_.firstY;if((_.firstX!==_.lastX||_.firstY!==_.lastY)&&(_.angle=Math.atan2(w,T)*180/Math.PI),!this._hasDetectedGesture()){if(Math.hypot(T,w)<e)return;if(this._state&=~(m|f|h|a),this._stopLongpressTimeout(),this._tracked.length!==1&&(this._state&=~u),this._tracked.length!==2&&(this._state&=~(i|t)),this._tracked.length===2){var O=this._tracked.find(function(M){return M.id!==S}),I=Math.hypot(O.firstX-O.lastX,O.firstY-O.lastY);if(I>e){var R=Math.abs(_.angle-O.angle);R=Math.abs((R+180)%360-180),R>l?this._state&=~i:this._state&=~t,this._isTwoTouchTimeoutRunning()&&this._stopTwoTouchTimeout()}else this._isTwoTouchTimeoutRunning()||this._startTwoTouchTimeout()}if(!this._hasDetectedGesture())return;this._pushEvent("gesturestart")}this._pushEvent("gesturemove")}},{key:"_touchEnd",value:function(S,E,C){if(this._ignored.indexOf(S)!==-1){this._ignored.splice(this._ignored.indexOf(S),1),this._ignored.length===0&&this._tracked.length===0&&(this._state=o,this._waitingRelease=!1);return}if(!this._hasDetectedGesture()&&this._isTwoTouchTimeoutRunning()&&(this._stopTwoTouchTimeout(),this._state=A),!this._hasDetectedGesture()&&(this._state&=~(u|i|t),this._state&=~a,this._stopLongpressTimeout(),!this._waitingRelease)){this._releaseStart=Date.now(),this._waitingRelease=!0;switch(this._tracked.length){case 1:this._state&=~(f|h);break;case 2:this._state&=~(m|h);break}}if(this._waitingRelease){Date.now()-this._releaseStart>r&&(this._state=A),this._tracked.some(function(w){return Date.now()-w.started>s})&&(this._state=A);var _=this._tracked.find(function(w){return w.id===S});if(_.active=!1,this._hasDetectedGesture())this._pushEvent("gesturestart");else if(this._state!==A)return}this._hasDetectedGesture()&&this._pushEvent("gestureend");for(var T=0;T<this._tracked.length;T++)this._tracked[T].active&&this._ignored.push(this._tracked[T].id);this._tracked=[],this._state=A,this._ignored.indexOf(S)!==-1&&this._ignored.splice(this._ignored.indexOf(S),1),this._ignored.length===0&&(this._state=o,this._waitingRelease=!1)}},{key:"_hasDetectedGesture",value:function(){return this._state===A||this._state&this._state-1?!1:!(this._state&(m|f|h)&&this._tracked.some(function(S){return S.active}))}},{key:"_startLongpressTimeout",value:function(){var S=this;this._stopLongpressTimeout(),this._longpressTimeoutId=setTimeout(function(){return S._longpressTimeout()},c)}},{key:"_stopLongpressTimeout",value:function(){clearTimeout(this._longpressTimeoutId),this._longpressTimeoutId=null}},{key:"_longpressTimeout",value:function(){if(this._hasDetectedGesture())throw new Error("A longpress gesture failed, conflict with a different gesture");this._state=a,this._pushEvent("gesturestart")}},{key:"_startTwoTouchTimeout",value:function(){var S=this;this._stopTwoTouchTimeout(),this._twoTouchTimeoutId=setTimeout(function(){return S._twoTouchTimeout()},d)}},{key:"_stopTwoTouchTimeout",value:function(){clearTimeout(this._twoTouchTimeoutId),this._twoTouchTimeoutId=null}},{key:"_isTwoTouchTimeoutRunning",value:function(){return this._twoTouchTimeoutId!==null}},{key:"_twoTouchTimeout",value:function(){if(this._tracked.length===0)throw new Error("A pinch or two drag gesture failed, no tracked touches");var S=this._getAverageMovement(),E=Math.abs(S.x),C=Math.abs(S.y),_=this._getAverageDistance(),T=Math.abs(Math.hypot(_.first.x,_.first.y)-Math.hypot(_.last.x,_.last.y));C<T&&E<T?this._state=t:this._state=i,this._pushEvent("gesturestart"),this._pushEvent("gesturemove")}},{key:"_pushEvent",value:function(S){var E={type:this._stateToGesture(this._state)},C=this._getPosition(),_=C.last;S==="gesturestart"&&(_=C.first);switch(this._state){case i:case t:_=C.first;break}if(E.clientX=_.x,E.clientY=_.y,this._state===t){var T=this._getAverageDistance();S==="gesturestart"?(E.magnitudeX=T.first.x,E.magnitudeY=T.first.y):(E.magnitudeX=T.last.x,E.magnitudeY=T.last.y)}else if(this._state===i)if(S==="gesturestart")E.magnitudeX=0,E.magnitudeY=0;else{var w=this._getAverageMovement();E.magnitudeX=w.x,E.magnitudeY=w.y}var O=new CustomEvent(S,{detail:E});this._target.dispatchEvent(O)}},{key:"_stateToGesture",value:function(S){switch(S){case m:return"onetap";case f:return"twotap";case h:return"threetap";case u:return"drag";case a:return"longpress";case i:return"twodrag";case t:return"pinch"}throw new Error("Unknown gesture state: "+S)}},{key:"_getPosition",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture position, no tracked touches");for(var S=this._tracked.length,E=0,C=0,_=0,T=0,w=0;w<this._tracked.length;w++)E+=this._tracked[w].firstX,C+=this._tracked[w].firstY,_+=this._tracked[w].lastX,T+=this._tracked[w].lastY;return{first:{x:E/S,y:C/S},last:{x:_/S,y:T/S}}}},{key:"_getAverageMovement",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture movement, no tracked touches");var S,E;S=E=0;for(var C=this._tracked.length,_=0;_<this._tracked.length;_++)S+=this._tracked[_].lastX-this._tracked[_].firstX,E+=this._tracked[_].lastY-this._tracked[_].firstY;return{x:S/C,y:E/C}}},{key:"_getAverageDistance",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture distance, no tracked touches");var S=this._tracked[0],E=this._tracked[this._tracked.length-1],C=Math.abs(E.firstX-S.firstX),_=Math.abs(E.firstY-S.firstY),T=Math.abs(E.lastX-S.lastX),w=Math.abs(E.lastY-S.lastY);return{first:{x:C,y:_},last:{x:T,y:w}}}}]),v}();D.default=g},LHiK:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("pl8g"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},LPTA:function(k,D){var n=1;typeof window!="undefined"&&(n=Math.max(window.devicePixelRatio||1,1));var y=0,p=n;D.debugMode=y,D.devicePixelRatio=p},LPzL:function(k,D,n){var y=n("ProS");n("QzjZ"),n("vL6D"),n("xiyX"),n("y4/Y"),n("8Th4"),y.extendComponentView({type:"single"})},LSTS:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y=function(){function o(e,l){for(var r=0;r<l.length;r++){var s=l[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(e,l,r){return l&&o(e.prototype,l),r&&o(e,r),e}}(),p=n("q1tI"),x=f(p),A=n("17x9"),m=f(A);function f(o){return o&&o.__esModule?o:{default:o}}function h(o,e){var l={};for(var r in o){if(e.indexOf(r)>=0)continue;if(!Object.prototype.hasOwnProperty.call(o,r))continue;l[r]=o[r]}return l}function u(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}function a(o,e){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:o}function i(o,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}var t=function(o){i(e,o);function e(l){u(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,l));return r.scrollListener=r.scrollListener.bind(r),r.eventListenerOptions=r.eventListenerOptions.bind(r),r.mousewheelListener=r.mousewheelListener.bind(r),r}return y(e,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var r=this.getParentElement(this.scrollComponent);r.scrollTop=r.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var r=!1,s={get passive(){r=!0}};try{document.addEventListener("test",null,s),document.removeEventListener("test",null,s)}catch(c){}return r}},{key:"eventListenerOptions",value:function(){var r=this.props.useCapture;return this.isPassiveSupported()&&(r={useCapture:this.props.useCapture,passive:!0}),r}},{key:"setDefaultLoader",value:function(r){this.defaultLoader=r}},{key:"detachMousewheelListener",value:function(){var r=window;this.props.useWindow===!1&&(r=this.scrollComponent.parentNode),r.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var r=window;this.props.useWindow===!1&&(r=this.getParentElement(this.scrollComponent)),r.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),r.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(r){var s=this.props.getScrollParent&&this.props.getScrollParent();return s!=null?s:r&&r.parentNode}},{key:"filterProps",value:function(r){return r}},{key:"attachScrollListener",value:function(){var r=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!r)return;var s=window;this.props.useWindow===!1&&(s=r),s.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),s.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),s.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(r){r.deltaY===1&&!this.isPassiveSupported()&&r.preventDefault()}},{key:"scrollListener",value:function(){var r=this.scrollComponent,s=window,c=this.getParentElement(r),d=void 0;if(this.props.useWindow){var g=document.documentElement||document.body.parentNode||document.body,v=s.pageYOffset!==void 0?s.pageYOffset:g.scrollTop;this.props.isReverse?d=v:d=this.calculateOffset(r,v)}else this.props.isReverse?d=c.scrollTop:d=r.scrollHeight-c.scrollTop-c.clientHeight;d<Number(this.props.threshold)&&r&&r.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=c.scrollHeight,this.beforeScrollTop=c.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(r,s){return r?this.calculateTopPosition(r)+(r.offsetHeight-s-window.innerHeight):0}},{key:"calculateTopPosition",value:function(r){return r?r.offsetTop+this.calculateTopPosition(r.offsetParent):0}},{key:"render",value:function(){var r=this,s=this.filterProps(this.props),c=s.children,d=s.element,g=s.hasMore,v=s.initialLoad,b=s.isReverse,S=s.loader,E=s.loadMore,C=s.pageStart,_=s.ref,T=s.threshold,w=s.useCapture,O=s.useWindow,I=s.getScrollParent,R=h(s,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);R.ref=function(F){r.scrollComponent=F,_&&_(F)};var M=[c];return g&&(S?b?M.unshift(S):M.push(S):this.defaultLoader&&(b?M.unshift(this.defaultLoader):M.push(this.defaultLoader))),x.default.createElement(d,R,M)}}]),e}(p.Component);t.propTypes={children:m.default.node.isRequired,element:m.default.node,hasMore:m.default.bool,initialLoad:m.default.bool,isReverse:m.default.bool,loader:m.default.node,loadMore:m.default.func.isRequired,pageStart:m.default.number,ref:m.default.func,getScrollParent:m.default.func,threshold:m.default.number,useCapture:m.default.bool,useWindow:m.default.bool},t.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},D.default=t,k.exports=D.default},LXxW:function(k,D){function n(y,p){for(var x=-1,A=y==null?0:y.length,m=0,f=[];++x<A;){var h=y[x];p(h,x,y)&&(f[m++]=h)}return f}k.exports=n},LlR5:function(k,D,n){"use strict";n.d(D,"b",function(){return b});var y=n("lSNA"),p=n.n(y),x=n("lwsE"),A=n.n(x),m=n("W8MJ"),f=n.n(m),h=n("7W2i"),u=n.n(h),a=n("LQ03"),i=n.n(a),t=n("q1tI"),o=n.n(t),e=n("TSYQ"),l=n.n(e),r=n("f0uV"),s=n.n(r),c=n("CWQg"),d=n("mh/l"),g=n("0n0R"),v=Object(c.a)("text","input");function b(E){return!!(E.prefix||E.suffix||E.allowClear)}var S=function(E){u()(_,E);var C=i()(_);function _(){var T;return A()(this,_),T=C.apply(this,arguments),T.containerRef=t.createRef(),T.onInputMouseUp=function(w){var O;if((O=T.containerRef.current)===null||O===void 0?void 0:O.contains(w.target)){var I=T.props.triggerFocus;I()}},T}return f()(_,[{key:"renderClearIcon",value:function(w){var O=this.props,I=O.allowClear,R=O.value,M=O.disabled,F=O.readOnly,P=O.inputType,X=O.handleReset;if(!I)return null;var B=!M&&!F&&R,j=P===v[0]?"".concat(w,"-textarea-clear-icon"):"".concat(w,"-clear-icon");return t.createElement(s.a,{onClick:X,className:l()(j,p()({},"".concat(j,"-hidden"),!B)),role:"button"})}},{key:"renderSuffix",value:function(w){var O=this.props,I=O.suffix,R=O.allowClear;return I||R?t.createElement("span",{className:"".concat(w,"-suffix")},this.renderClearIcon(w),I):null}},{key:"renderLabeledIcon",value:function(w,O){var I,R=this.props,M=R.focused,F=R.value,P=R.prefix,X=R.className,B=R.size,j=R.suffix,W=R.disabled,z=R.allowClear,V=R.direction,Q=R.style,G=R.readOnly,ee=R.bordered,ce=this.renderSuffix(w);if(!b(this.props))return Object(g.a)(O,{value:F});var be=P?t.createElement("span",{className:"".concat(w,"-prefix")},P):null,le=l()(X,"".concat(w,"-affix-wrapper"),(I={},p()(I,"".concat(w,"-affix-wrapper-focused"),M),p()(I,"".concat(w,"-affix-wrapper-disabled"),W),p()(I,"".concat(w,"-affix-wrapper-sm"),B==="small"),p()(I,"".concat(w,"-affix-wrapper-lg"),B==="large"),p()(I,"".concat(w,"-affix-wrapper-input-with-clear-btn"),j&&z&&F),p()(I,"".concat(w,"-affix-wrapper-rtl"),V==="rtl"),p()(I,"".concat(w,"-affix-wrapper-readonly"),G),p()(I,"".concat(w,"-affix-wrapper-borderless"),!ee),I));return t.createElement("span",{ref:this.containerRef,className:le,style:Q,onMouseUp:this.onInputMouseUp},be,Object(g.a)(O,{style:null,value:F,className:Object(d.c)(w,ee,B,W)}),ce)}},{key:"renderInputWithLabel",value:function(w,O){var I,R,M=this.props,F=M.addonBefore,P=M.addonAfter,X=M.style,B=M.size,j=M.className,W=M.direction;if(!F&&!P)return O;var z="".concat(w,"-group"),V="".concat(z,"-addon"),Q=F?t.createElement("span",{className:V},F):null,G=P?t.createElement("span",{className:V},P):null,ee=l()("".concat(w,"-wrapper"),(I={},p()(I,z,F||P),p()(I,"".concat(z,"-rtl"),W==="rtl"),I)),ce=l()(j,"".concat(w,"-group-wrapper"),(R={},p()(R,"".concat(w,"-group-wrapper-sm"),B==="small"),p()(R,"".concat(w,"-group-wrapper-lg"),B==="large"),p()(R,"".concat(w,"-group-wrapper-rtl"),W==="rtl"),R));return t.createElement("span",{className:ce,style:X},t.createElement("span",{className:ee},Q,Object(g.a)(O,{style:null}),G))}},{key:"renderTextAreaWithClearIcon",value:function(w,O){var I,R=this.props,M=R.value,F=R.allowClear,P=R.className,X=R.style,B=R.direction,j=R.bordered;if(!F)return Object(g.a)(O,{value:M});var W=l()(P,"".concat(w,"-affix-wrapper"),"".concat(w,"-affix-wrapper-textarea-with-clear-btn"),(I={},p()(I,"".concat(w,"-affix-wrapper-rtl"),B==="rtl"),p()(I,"".concat(w,"-affix-wrapper-borderless"),!j),I));return t.createElement("span",{className:W,style:X},Object(g.a)(O,{style:null,value:M}),this.renderClearIcon(w))}},{key:"render",value:function(){var w=this.props,O=w.prefixCls,I=w.inputType,R=w.element;return I===v[0]?this.renderTextAreaWithClearIcon(O,R):this.renderInputWithLabel(O,this.renderLabeledIcon(O,R))}}]),_}(t.Component);D.a=S},Llu2:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M632 698.3l141.9-112a8 8 0 000-12.6L632 461.7c-5.3-4.2-13-.4-13 6.3v76H295c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v76c0 6.7 7.8 10.4 13 6.3zm261.3-405L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v278c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V422c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-83.5c0-17-6.7-33.2-18.7-45.2zM640 288H384V184h256v104zm264 436h-56c-4.4 0-8 3.6-8 8v108H184V732c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v148c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V732c0-4.4-3.6-8-8-8z"}}]},name:"delivered-procedure",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="DeliveredProcedureOutlined";var h=D.a=p.forwardRef(f)},Lo0S:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.initLogging=f,D.getLogging=h,D.Error=D.Warn=D.Info=D.Debug=void 0;var y="warn",p=function(){};D.Debug=p;var x=function(){};D.Info=x;var A=function(){};D.Warn=A;var m=function(){};D.Error=m;function f(u){if(typeof u=="undefined"?u=y:y=u,D.Debug=p=D.Info=x=D.Warn=A=D.Error=m=function(){},typeof window.console!="undefined")switch(u){case"debug":D.Debug=p=console.debug.bind(window.console);case"info":D.Info=x=console.info.bind(window.console);case"warn":D.Warn=A=console.warn.bind(window.console);case"error":D.Error=m=console.error.bind(window.console);case"none":break;default:throw new window.Error("invalid logging type '"+u+"'")}}function h(){return y}f()},LtfV:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="InboxOutlined";var h=D.a=p.forwardRef(f)},Lyp1:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="QuestionCircleOutlined";var h=D.a=p.forwardRef(f)},LzGr:function(k,D,n){var y=n("ProS"),p=n("rnVJ");n("EMyp"),n("8x+h"),n("wt3j"),n("uOyE"),n("/stD"),y.registerPreprocessor(p)},MBQ8:function(k,D,n){var y=n("T4UG"),p=n("MwEJ"),x=y.extend({type:"series.__base_bar__",getInitialData:function(A,m){return p(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(A){var m=this.coordinateSystem;if(m){var f=m.dataToPoint(m.clampData(A)),h=this.getData(),u=h.getLayout("offset"),a=h.getLayout("size"),i=m.getBaseAxis().isHorizontal()?0:1;return f[i]+=u+a/2,f}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});k.exports=x},MEGo:function(k,D,n){var y=n("4fz+"),p=n("Dagg"),x=n("dqUG"),A=n("2fw6"),m=n("x6Kt"),f=n("rmlV"),h=n("yxFR"),u=n("y+Vt"),a=n("h7HQ"),i=n("1Jh7"),t=n("SKnc"),o=n("K2GJ"),e=n("Fofx"),l=n("NC18"),r=l.createFromString,s=n("bYtY"),c=s.isString,d=s.extend,g=s.defaults,v=s.trim,b=s.each,S=/[\s,]+/;function E(Q){if(c(Q)){var G=new DOMParser;Q=G.parseFromString(Q,"text/xml")}for(Q.nodeType===9&&(Q=Q.firstChild);Q.nodeName.toLowerCase()!=="svg"||Q.nodeType!==1;)Q=Q.nextSibling;return Q}function C(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}C.prototype.parse=function(Q,G){G=G||{};var ee=E(Q);if(!ee)throw new Error("Illegal svg");var ce=new y;this._root=ce;var be=ee.getAttribute("viewBox")||"",le=parseFloat(ee.getAttribute("width")||G.width),Ie=parseFloat(ee.getAttribute("height")||G.height);isNaN(le)&&(le=null),isNaN(Ie)&&(Ie=null),M(ee,ce,null,!0);for(var ke=ee.firstChild;ke;)this._parseNode(ke,ce),ke=ke.nextSibling;var Re,Qe;if(be){var We=v(be).split(S);We.length>=4&&(Re={x:parseFloat(We[0]||0),y:parseFloat(We[1]||0),width:parseFloat(We[2]),height:parseFloat(We[3])})}if(Re&&le!=null&&Ie!=null&&(Qe=z(Re,le,Ie),!G.ignoreViewBox)){var ot=ce;ce=new y,ce.add(ot),ot.scale=Qe.scale.slice(),ot.position=Qe.position.slice()}return!G.ignoreRootClip&&le!=null&&Ie!=null&&ce.setClipPath(new m({shape:{x:0,y:0,width:le,height:Ie}})),{root:ce,width:le,height:Ie,viewBoxRect:Re,viewBoxTransform:Qe}},C.prototype._parseNode=function(Q,G){var ee=Q.nodeName.toLowerCase();ee==="defs"?this._isDefine=!0:ee==="text"&&(this._isText=!0);var ce;if(this._isDefine){var be=T[ee];if(be){var le=be.call(this,Q),Ie=Q.getAttribute("id");Ie&&(this._defs[Ie]=le)}}else{var be=_[ee];be&&(ce=be.call(this,Q,G),G.add(ce))}for(var ke=Q.firstChild;ke;)ke.nodeType===1&&this._parseNode(ke,ce),ke.nodeType===3&&this._isText&&this._parseText(ke,ce),ke=ke.nextSibling;ee==="defs"?this._isDefine=!1:ee==="text"&&(this._isText=!1)},C.prototype._parseText=function(Q,G){if(Q.nodeType===1){var ee=Q.getAttribute("dx")||0,ce=Q.getAttribute("dy")||0;this._textX+=parseFloat(ee),this._textY+=parseFloat(ce)}var be=new x({style:{text:Q.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});O(G,be),M(Q,be,this._defs);var le=be.style.fontSize;le&&le<9&&(be.style.fontSize=9,be.scale=be.scale||[1,1],be.scale[0]*=le/9,be.scale[1]*=le/9);var Ie=be.getBoundingRect();return this._textX+=Ie.width,G.add(be),be};var _={g:function(G,ee){var ce=new y;return O(ee,ce),M(G,ce,this._defs),ce},rect:function(G,ee){var ce=new m;return O(ee,ce),M(G,ce,this._defs),ce.setShape({x:parseFloat(G.getAttribute("x")||0),y:parseFloat(G.getAttribute("y")||0),width:parseFloat(G.getAttribute("width")||0),height:parseFloat(G.getAttribute("height")||0)}),ce},circle:function(G,ee){var ce=new A;return O(ee,ce),M(G,ce,this._defs),ce.setShape({cx:parseFloat(G.getAttribute("cx")||0),cy:parseFloat(G.getAttribute("cy")||0),r:parseFloat(G.getAttribute("r")||0)}),ce},line:function(G,ee){var ce=new h;return O(ee,ce),M(G,ce,this._defs),ce.setShape({x1:parseFloat(G.getAttribute("x1")||0),y1:parseFloat(G.getAttribute("y1")||0),x2:parseFloat(G.getAttribute("x2")||0),y2:parseFloat(G.getAttribute("y2")||0)}),ce},ellipse:function(G,ee){var ce=new f;return O(ee,ce),M(G,ce,this._defs),ce.setShape({cx:parseFloat(G.getAttribute("cx")||0),cy:parseFloat(G.getAttribute("cy")||0),rx:parseFloat(G.getAttribute("rx")||0),ry:parseFloat(G.getAttribute("ry")||0)}),ce},polygon:function(G,ee){var ce=G.getAttribute("points");ce&&(ce=I(ce));var be=new a({shape:{points:ce||[]}});return O(ee,be),M(G,be,this._defs),be},polyline:function(G,ee){var ce=new u;O(ee,ce),M(G,ce,this._defs);var be=G.getAttribute("points");be&&(be=I(be));var le=new i({shape:{points:be||[]}});return le},image:function(G,ee){var ce=new p;return O(ee,ce),M(G,ce,this._defs),ce.setStyle({image:G.getAttribute("xlink:href"),x:G.getAttribute("x"),y:G.getAttribute("y"),width:G.getAttribute("width"),height:G.getAttribute("height")}),ce},text:function(G,ee){var ce=G.getAttribute("x")||0,be=G.getAttribute("y")||0,le=G.getAttribute("dx")||0,Ie=G.getAttribute("dy")||0;this._textX=parseFloat(ce)+parseFloat(le),this._textY=parseFloat(be)+parseFloat(Ie);var ke=new y;return O(ee,ke),M(G,ke,this._defs),ke},tspan:function(G,ee){var ce=G.getAttribute("x"),be=G.getAttribute("y");ce!=null&&(this._textX=parseFloat(ce)),be!=null&&(this._textY=parseFloat(be));var le=G.getAttribute("dx")||0,Ie=G.getAttribute("dy")||0,ke=new y;return O(ee,ke),M(G,ke,this._defs),this._textX+=le,this._textY+=Ie,ke},path:function(G,ee){var ce=G.getAttribute("d")||"",be=r(ce);return O(ee,be),M(G,be,this._defs),be}},T={lineargradient:function(G){var ee=parseInt(G.getAttribute("x1")||0,10),ce=parseInt(G.getAttribute("y1")||0,10),be=parseInt(G.getAttribute("x2")||10,10),le=parseInt(G.getAttribute("y2")||0,10),Ie=new t(ee,ce,be,le);return w(G,Ie),Ie},radialgradient:function(G){}};function w(Q,G){for(var ee=Q.firstChild;ee;){if(ee.nodeType===1){var ce=ee.getAttribute("offset");ce.indexOf("%")>0?ce=parseInt(ce,10)/100:ce?ce=parseFloat(ce):ce=0;var be=ee.getAttribute("stop-color")||"#000000";G.addColorStop(ce,be)}ee=ee.nextSibling}}function O(Q,G){Q&&Q.__inheritedStyle&&(G.__inheritedStyle||(G.__inheritedStyle={}),g(G.__inheritedStyle,Q.__inheritedStyle))}function I(Q){for(var G=v(Q).split(S),ee=[],ce=0;ce<G.length;ce+=2){var be=parseFloat(G[ce]),le=parseFloat(G[ce+1]);ee.push([be,le])}return ee}var R={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function M(Q,G,ee,ce){var be=G.__inheritedStyle||{},le=G.type==="text";if(Q.nodeType===1&&(B(Q,G),d(be,W(Q)),!ce)){for(var Ie in R)if(R.hasOwnProperty(Ie)){var ke=Q.getAttribute(Ie);ke!=null&&(be[R[Ie]]=ke)}}var Re=le?"textFill":"fill",Qe=le?"textStroke":"stroke";G.style=G.style||new o;var We=G.style;be.fill!=null&&We.set(Re,P(be.fill,ee)),be.stroke!=null&&We.set(Qe,P(be.stroke,ee)),b(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(ot){var Oe=ot==="lineWidth"&&le?"textStrokeWidth":ot;be[ot]!=null&&We.set(Oe,parseFloat(be[ot]))}),(!be.textBaseline||be.textBaseline==="auto")&&(be.textBaseline="alphabetic"),be.textBaseline==="alphabetic"&&(be.textBaseline="bottom"),be.textAlign==="start"&&(be.textAlign="left"),be.textAlign==="end"&&(be.textAlign="right"),b(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(ot){be[ot]!=null&&We.set(ot,be[ot])}),be.lineDash&&(G.style.lineDash=v(be.lineDash).split(S)),We[Qe]&&We[Qe]!=="none"&&(G[Qe]=!0),G.__inheritedStyle=be}var F=/url\(\s*#(.*?)\)/;function P(Q,G){var ee=G&&Q&&Q.match(F);if(ee){var ce=v(ee[1]),be=G[ce];return be}return Q}var X=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function B(Q,G){var ee=Q.getAttribute("transform");if(ee){ee=ee.replace(/,/g," ");var ce=null,be=[];ee.replace(X,function(Re,Qe,We){be.push(Qe,We)});for(var le=be.length-1;le>0;le-=2){var Ie=be[le],ke=be[le-1];ce=ce||e.create();switch(ke){case"translate":Ie=v(Ie).split(S),e.translate(ce,ce,[parseFloat(Ie[0]),parseFloat(Ie[1]||0)]);break;case"scale":Ie=v(Ie).split(S),e.scale(ce,ce,[parseFloat(Ie[0]),parseFloat(Ie[1]||Ie[0])]);break;case"rotate":Ie=v(Ie).split(S),e.rotate(ce,ce,parseFloat(Ie[0]));break;case"skew":Ie=v(Ie).split(S),console.warn("Skew transform is not supported yet");break;case"matrix":var Ie=v(Ie).split(S);ce[0]=parseFloat(Ie[0]),ce[1]=parseFloat(Ie[1]),ce[2]=parseFloat(Ie[2]),ce[3]=parseFloat(Ie[3]),ce[4]=parseFloat(Ie[4]),ce[5]=parseFloat(Ie[5]);break}}G.setLocalTransform(ce)}}var j=/([^\s:;]+)\s*:\s*([^:;]+)/g;function W(Q){var G=Q.getAttribute("style"),ee={};if(!G)return ee;var ce={};j.lastIndex=0;for(var be;(be=j.exec(G))!=null;)ce[be[1]]=be[2];for(var le in R)R.hasOwnProperty(le)&&ce[le]!=null&&(ee[R[le]]=ce[le]);return ee}function z(Q,G,ee){var ce=G/Q.width,be=ee/Q.height,le=Math.min(ce,be),Ie=[le,le],ke=[-(Q.x+Q.width/2)*le+G/2,-(Q.y+Q.height/2)*le+ee/2];return{scale:Ie,position:ke}}function V(Q,G){var ee=new C;return ee.parse(Q,G)}D.parseXML=E,D.makeViewBoxTransform=z,D.parseSVG=V},MFOe:function(k,D,n){(function(y){var p=f(),x=h(),A=u(),m=typeof window!="undefined"?window:y;k.exports={assign:p,create:x,trim:A,bind:a,slice:i,each:t,map:o,pluck:e,isList:l,isFunction:r,isObject:s,Global:m};function f(){return Object.assign?Object.assign:function(d,g,v,b){for(var S=1;S<arguments.length;S++)t(Object(arguments[S]),function(E,C){d[C]=E});return d}}function h(){if(Object.create)return function(g,v,b,S){var E=i(arguments,1);return p.apply(this,[Object.create(g)].concat(E))};var c=function(){};return function(g,v,b,S){var E=i(arguments,1);return c.prototype=g,p.apply(this,[new c].concat(E))}}function u(){return String.prototype.trim?function(d){return String.prototype.trim.call(d)}:function(d){return d.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function a(c,d){return function(){return d.apply(c,Array.prototype.slice.call(arguments,0))}}function i(c,d){return Array.prototype.slice.call(c,d||0)}function t(c,d){e(c,function(g,v){return d(g,v),!1})}function o(c,d){var g=l(c)?[]:{};return e(c,function(v,b){return g[b]=d(v,b),!1}),g}function e(c,d){if(l(c)){for(var g=0;g<c.length;g++)if(d(c[g],g))return c[g]}else for(var v in c)if(c.hasOwnProperty(v)&&d(c[v],v))return c[v]}function l(c){return c!=null&&typeof c!="function"&&typeof c.length=="number"}function r(c){return c&&{}.toString.call(c)==="[object Function]"}function s(c){return c&&{}.toString.call(c)==="[object Object]"}}).call(this,n("yLpj"))},MH26:function(k,D,n){var y=n("bYtY"),p=n("YXkt"),x=n("OELB"),A=n("kj2x"),m=n("c8qY"),f=n("iPDy"),h=n("7hqr"),u=h.getStackedDimension,a=function(s,c,d,g){var v=s.getData(),b=g.type;if(!y.isArray(g)&&(b==="min"||b==="max"||b==="average"||b==="median"||g.xAxis!=null||g.yAxis!=null)){var S,E;if(g.yAxis!=null||g.xAxis!=null)S=c.getAxis(g.yAxis!=null?"y":"x"),E=y.retrieve(g.yAxis,g.xAxis);else{var C=A.getAxisInfo(g,v,c,s);S=C.valueAxis;var _=u(v,C.valueDataDim);E=A.numCalculate(v,_,b)}var T=S.dim==="x"?0:1,w=1-T,O=y.clone(g),I={};O.type=null,O.coord=[],I.coord=[],O.coord[w]=-Infinity,I.coord[w]=Infinity;var R=d.get("precision");R>=0&&typeof E=="number"&&(E=+E.toFixed(Math.min(R,20))),O.coord[T]=I.coord[T]=E,g=[O,I,{type:b,valueIndex:g.valueIndex,value:E}]}return g=[A.dataTransform(s,g[0]),A.dataTransform(s,g[1]),y.extend({},g[2])],g[2].type=g[2].type||"",y.merge(g[2],g[0]),y.merge(g[2],g[1]),g};function i(s){return!isNaN(s)&&!isFinite(s)}function t(s,c,d,g){var v=1-s,b=g.dimensions[s];return i(c[v])&&i(d[v])&&c[s]===d[s]&&g.getAxis(b).containData(c[s])}function o(s,c){if(s.type==="cartesian2d"){var d=c[0].coord,g=c[1].coord;if(d&&g&&(t(1,d,g,s)||t(0,d,g,s)))return!0}return A.dataFilter(s,c[0])&&A.dataFilter(s,c[1])}function e(s,c,d,g,v){var b=g.coordinateSystem,S=s.getItemModel(c),E,C=x.parsePercent(S.get("x"),v.getWidth()),_=x.parsePercent(S.get("y"),v.getHeight());if(!isNaN(C)&&!isNaN(_))E=[C,_];else{if(g.getMarkerPosition)E=g.getMarkerPosition(s.getValues(s.dimensions,c));else{var T=b.dimensions,w=s.get(T[0],c),O=s.get(T[1],c);E=b.dataToPoint([w,O])}if(b.type==="cartesian2d"){var I=b.getAxis("x"),R=b.getAxis("y"),T=b.dimensions;i(s.get(T[0],c))?E[0]=I.toGlobalCoord(I.getExtent()[d?0:1]):i(s.get(T[1],c))&&(E[1]=R.toGlobalCoord(R.getExtent()[d?0:1]))}isNaN(C)||(E[0]=C),isNaN(_)||(E[1]=_)}s.setItemLayout(c,E)}var l=f.extend({type:"markLine",updateTransform:function(s,c,d){c.eachSeries(function(g){var v=g.markLineModel;if(v){var b=v.getData(),S=v.__from,E=v.__to;S.each(function(C){e(S,C,!0,g,d),e(E,C,!1,g,d)}),b.each(function(C){b.setItemLayout(C,[S.getItemLayout(C),E.getItemLayout(C)])}),this.markerGroupMap.get(g.id).updateLayout()}},this)},renderSeries:function(s,c,d,g){var v=s.coordinateSystem,b=s.id,S=s.getData(),E=this.markerGroupMap,C=E.get(b)||E.set(b,new m);this.group.add(C.group);var _=r(v,s,c),T=_.from,w=_.to,O=_.line;c.__from=T,c.__to=w,c.setData(O);var I=c.get("symbol"),R=c.get("symbolSize");y.isArray(I)||(I=[I,I]),typeof R=="number"&&(R=[R,R]),_.from.each(function(F){M(T,F,!0),M(w,F,!1)}),O.each(function(F){var P=O.getItemModel(F).get("lineStyle.color");O.setItemVisual(F,{color:P||T.getItemVisual(F,"color")}),O.setItemLayout(F,[T.getItemLayout(F),w.getItemLayout(F)]),O.setItemVisual(F,{fromSymbolSize:T.getItemVisual(F,"symbolSize"),fromSymbol:T.getItemVisual(F,"symbol"),toSymbolSize:w.getItemVisual(F,"symbolSize"),toSymbol:w.getItemVisual(F,"symbol")})}),C.updateData(O),_.line.eachItemGraphicEl(function(F,P){F.traverse(function(X){X.dataModel=c})});function M(F,P,X){var B=F.getItemModel(P);e(F,P,X,s,g),F.setItemVisual(P,{symbolSize:B.get("symbolSize")||R[X?0:1],symbol:B.get("symbol",!0)||I[X?0:1],color:B.get("itemStyle.color")||S.getVisual("color")})}C.__keep=!0,C.group.silent=c.get("silent")||s.get("silent")}});function r(s,c,d){var g;s?g=y.map(s&&s.dimensions,function(_){var T=c.getData().getDimensionInfo(c.getData().mapDimension(_))||{};return y.defaults({name:_},T)}):g=[{name:"value",type:"float"}];var v=new p(g,d),b=new p(g,d),S=new p([],d),E=y.map(d.get("data"),y.curry(a,c,s,d));s&&(E=y.filter(E,y.curry(o,s)));var C=s?A.dimValueGetter:function(_){return _.value};return v.initData(y.map(E,function(_){return _[0]}),null,C),b.initData(y.map(E,function(_){return _[1]}),null,C),S.initData(y.map(E,function(_){return _[2]})),S.hasItemOption=!0,{from:v,to:b,line:S}}k.exports=l},MHoB:function(k,D,n){var y=n("bYtY"),p=n("6uqw"),x=n("OELB"),A=[20,140],m=p.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(u,a){m.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){m.superApply(this,"resetItemSize",arguments);var u=this.itemSize;this._orient==="horizontal"&&u.reverse(),(u[0]==null||isNaN(u[0]))&&(u[0]=A[0]),(u[1]==null||isNaN(u[1]))&&(u[1]=A[1])},_resetRange:function(){var u=this.getExtent(),a=this.option.range;!a||a.auto?(u.auto=1,this.option.range=u):y.isArray(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],u[0]),a[1]=Math.min(a[1],u[1]))},completeVisualOption:function(){p.prototype.completeVisualOption.apply(this,arguments),y.each(this.stateList,function(u){var a=this.option.controller[u].symbolSize;a&&a[0]!==a[1]&&(a[0]=0)},this)},setSelected:function(u){this.option.range=u.slice(),this._resetRange()},getSelected:function(){var u=this.getExtent(),a=x.asc((this.get("range")||[]).slice());return a[0]>u[1]&&(a[0]=u[1]),a[1]>u[1]&&(a[1]=u[1]),a[0]<u[0]&&(a[0]=u[0]),a[1]<u[0]&&(a[1]=u[0]),a},getValueState:function(u){var a=this.option.range,i=this.getExtent();return(a[0]<=i[0]||a[0]<=u)&&(a[1]>=i[1]||u<=a[1])?"inRange":"outOfRange"},findTargetDataIndices:function(u){var a=[];return this.eachTargetSeries(function(i){var t=[],o=i.getData();o.each(this.getDataDimension(o),function(e,l){u[0]<=e&&e<=u[1]&&t.push(l)},this),a.push({seriesId:i.id,dataIndex:t})},this),a},getVisualMeta:function(u){var a=f(this,"outOfRange",this.getExtent()),i=f(this,"inRange",this.option.range.slice()),t=[];function o(g,v){t.push({value:g,color:u(g,v)})}for(var e=0,l=0,r=i.length,s=a.length;l<s&&(!i.length||a[l]<=i[0]);l++)a[l]<i[e]&&o(a[l],"outOfRange");for(var c=1;e<r;e++,c=0)c&&t.length&&o(i[e],"outOfRange"),o(i[e],"inRange");for(var c=1;l<s;l++)(!i.length||i[i.length-1]<a[l])&&(c&&(t.length&&o(t[t.length-1].value,"outOfRange"),c=0),o(a[l],"outOfRange"));var d=t.length;return{stops:t,outerColors:[d?t[0].color:"transparent",d?t[d-1].color:"transparent"]}}});function f(u,a,i){if(i[0]===i[1])return i.slice();for(var t=200,o=(i[1]-i[0])/t,e=i[0],l=[],r=0;r<=t&&e<i[1];r++)l.push(e),e+=o;return l.push(i[1]),l}var h=m;k.exports=h},MHtr:function(k,D,n){var y=n("bYtY");function p(A,m){var f=this.getAxis(),h=m instanceof Array?m[0]:m,u=(A instanceof Array?A[0]:A)/2;return f.type==="category"?f.getBandWidth():Math.abs(f.dataToCoord(h-u)-f.dataToCoord(h+u))}function x(A){var m=A.getRect();return{coordSys:{type:"singleAxis",x:m.x,y:m.y,width:m.width,height:m.height},api:{coord:function(f){return A.dataToPoint(f)},size:y.bind(p,A)}}}k.exports=x},MJZm:function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),A=n.n(x),m=n("q1tI"),f=n("rePB"),h=n("VTBJ"),u=n("KQm4"),a=n("1OyB"),i=n("vuIU"),t=n("Ji7U"),o=n("LK+K"),e=n("4IlW"),l=n("Kwbf"),r=n("TSYQ"),s=n.n(r),c=n("FTAc"),d=n("wPhX"),g=n("c3jg"),v=n("ODXe"),b=n("Ff2n"),S=n("+nKL"),E=n("HTfv"),C=n("lr6o"),_=function(kt,Vt){var Xe=kt.className,pe=kt.style,te=kt.motion,$e=kt.motionNodes,He=kt.motionType,ae=kt.onMotionStart,ft=kt.onMotionEnd,Mt=kt.active,mt=kt.treeNodeRequiredProps,or=Object(b.a)(kt,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),vr=m.useState(!0),fn=Object(v.a)(vr,2),sr=fn[0],Ir=fn[1],lr=m.useContext(c.a),Wt=lr.prefixCls,xt=m.useRef(!1),rn=function(){xt.current||ft(),xt.current=!0};return Object(m.useEffect)(function(){$e&&He==="hide"&&sr&&Ir(!1)},[$e]),Object(m.useEffect)(function(){return $e&&ae(),function(){$e&&rn()}},[]),$e?m.createElement(E.default,Object.assign({ref:Vt,visible:sr},te,{motionAppear:He==="show",onAppearEnd:rn,onLeaveEnd:rn}),function(Dn,Xn){var ri=Dn.className,Ui=Dn.style;return m.createElement("div",{ref:Xn,className:s()("".concat(Wt,"-treenode-motion"),ri),style:Ui},$e.map(function(Bn){var Jn=Bn.data,Xt=Jn.key,_t=Object(b.a)(Jn,["key"]),Fe=Bn.isStart,Pe=Bn.isEnd;delete _t.children;var Be=Object(g.f)(Xt,mt);return m.createElement(C.a,Object.assign({},_t,Be,{active:Mt,data:Bn.data,key:Xt,isStart:Fe,isEnd:Pe}))}))}):m.createElement(C.a,Object.assign({domRef:Vt,className:Xe,style:pe},or,{active:Mt}))};_.displayName="MotionTreeNode";var T=m.forwardRef(_),w=T;function O(){var zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Vt=zt.length,Xe=kt.length;if(Math.abs(Vt-Xe)!==1)return{add:!1,key:null};function pe(te,$e){var He=new Map;te.forEach(function(ft){He.set(ft,!0)});var ae=$e.filter(function(ft){return!He.has(ft)});return ae.length===1?ae[0]:null}return Vt<Xe?{add:!0,key:pe(zt,kt)}:{add:!1,key:pe(kt,zt)}}function I(zt,kt,Vt){var Xe=zt.findIndex(function(He){var ae=He.data;return ae.key===Vt}),pe=zt[Xe+1],te=kt.findIndex(function(He){var ae=He.data;return ae.key===Vt});if(pe){var $e=kt.findIndex(function(He){var ae=He.data;return ae.key===pe.data.key});return kt.slice(te+1,$e)}return kt.slice(te+1)}var R={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},M=function(){},F="RC_TREE_MOTION_".concat(Math.random()),P={key:F},X={key:F,level:0,index:0,pos:"0",node:P},B={parent:null,children:[],pos:X.pos,data:P,isStart:[],isEnd:[]};function j(zt,kt,Vt,Xe){return kt===!1||!Vt?zt:zt.slice(0,Math.ceil(Vt/Xe)+1)}function W(zt){var kt=zt.data.key,Vt=zt.pos;return Object(g.e)(kt,Vt)}function z(zt){for(var kt=String(zt.data.key),Vt=zt;Vt.parent;)Vt=Vt.parent,kt="".concat(Vt.data.key," > ").concat(kt);return kt}var V=function(kt,Vt){var Xe=kt.prefixCls,pe=kt.data,te=kt.selectable,$e=kt.checkable,He=kt.expandedKeys,ae=kt.selectedKeys,ft=kt.checkedKeys,Mt=kt.loadedKeys,mt=kt.loadingKeys,or=kt.halfCheckedKeys,vr=kt.keyEntities,fn=kt.disabled,sr=kt.dragging,Ir=kt.dragOverNodeKey,lr=kt.dropPosition,Wt=kt.motion,xt=kt.height,rn=kt.itemHeight,Dn=kt.virtual,Xn=kt.focusable,ri=kt.activeItem,Ui=kt.focused,Bn=kt.tabIndex,Jn=kt.onKeyDown,Xt=kt.onFocus,_t=kt.onBlur,Fe=kt.onActiveChange,Pe=kt.onListChangeStart,Be=kt.onListChangeEnd,nt=Object(b.a)(kt,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),vt=m.useRef(null);m.useImperativeHandle(Vt,function(){return{scrollTo:function(Qi){vt.current.scrollTo(Qi)}}});var ar=m.useState(He),kr=Object(v.a)(ar,2),mn=kr[0],Zn=kr[1],ni=m.useState(pe),ur=Object(v.a)(ni,2),Nt=ur[0],bt=ur[1],gr=m.useState(pe),Yt=Object(v.a)(gr,2),Pt=Yt[0],rr=Yt[1],Rt=m.useState([]),qt=Object(v.a)(Rt,2),Yr=qt[0],Mr=qt[1],Dr=m.useState(null),un=Object(v.a)(Dr,2),wn=un[0],ai=un[1];function ei(){bt(pe),rr(pe),Mr([]),ai(null),Be()}m.useEffect(function(){Zn(He);var ki=O(mn,He);if(ki.key!==null)if(ki.add){var Qi=Nt.findIndex(function(qe){var at=qe.data.key;return at===ki.key}),it=j(I(Nt,pe,ki.key),Dn,xt,rn),Me=Nt.slice();Me.splice(Qi+1,0,B),rr(Me),Mr(it),ai("show")}else{var je=pe.findIndex(function(qe){var at=qe.data.key;return at===ki.key}),Ye=j(I(pe,Nt,ki.key),Dn,xt,rn),rt=pe.slice();rt.splice(je+1,0,B),rr(rt),Mr(Ye),ai("hide")}else Nt!==pe&&(bt(pe),rr(pe))},[He,pe]),m.useEffect(function(){sr||ei()},[sr]);var gi=Wt?Pt:pe,Ii={expandedKeys:He,selectedKeys:ae,loadedKeys:Mt,loadingKeys:mt,checkedKeys:ft,halfCheckedKeys:or,dragOverNodeKey:Ir,dropPosition:lr,keyEntities:vr};return m.createElement(m.Fragment,null,Ui&&ri&&m.createElement("span",{style:R,"aria-live":"assertive"},z(ri)),m.createElement("div",{role:"tree"},m.createElement("input",{style:R,disabled:Xn===!1||fn,tabIndex:Xn!==!1?Bn:null,onKeyDown:Jn,onFocus:Xt,onBlur:_t,value:"",onChange:M})),m.createElement(S.a,Object.assign({},nt,{data:gi,itemKey:W,height:xt,fullHeight:!1,virtual:Dn,itemHeight:rn,prefixCls:"".concat(Xe,"-list"),ref:vt}),function(ki){var Qi=ki.pos,it=ki.data,Me=it.key,je=Object(b.a)(it,["key"]),Ye=ki.isStart,rt=ki.isEnd,qe=Object(g.e)(Me,Qi);delete je.children;var at=Object(g.f)(qe,Ii);return m.createElement(w,Object.assign({},je,at,{active:ri&&Me===ri.data.key,pos:Qi,data:ki.data,isStart:Ye,isEnd:rt,motion:Wt,motionNodes:Me===F?Yr:null,motionType:wn,onMotionStart:Pe,onMotionEnd:ei,treeNodeRequiredProps:Ii,onMouseMove:function(){Fe(null)}}))}))},Q=m.forwardRef(V);Q.displayName="NodeList";var G=Q,ee=n("qOx5"),ce=function(zt){Object(t.a)(Vt,zt);var kt=Object(o.a)(Vt);function Vt(){var Xe;return Object(a.a)(this,Vt),Xe=kt.apply(this,arguments),Xe.destroyed=!1,Xe.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},Xe.listRef=m.createRef(),Xe.onNodeDragStart=function(pe,te){var $e=Xe.state,He=$e.expandedKeys,ae=$e.keyEntities,ft=Xe.props.onDragStart,Mt=te.props.eventKey;Xe.dragNode=te;var mt=Object(d.b)(He,Mt);Xe.setState({dragging:!0,dragNodesKeys:Object(d.g)(Mt,ae)}),Xe.setExpandedKeys(mt),ft&&ft({event:pe,node:Object(g.b)(te.props)})},Xe.onNodeDragEnter=function(pe,te){var $e=Xe.state,He=$e.expandedKeys,ae=$e.keyEntities,ft=$e.dragNodesKeys,Mt=Xe.props.onDragEnter,mt=te.props,or=mt.pos,vr=mt.eventKey;if(!Xe.dragNode||ft.indexOf(vr)!==-1)return;var fn=Object(d.c)(pe,te);if(Xe.dragNode.props.eventKey===vr&&fn===0){Xe.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){Xe.setState({dragOverNodeKey:vr,dropPosition:fn}),Xe.delayedDragEnterLogic||(Xe.delayedDragEnterLogic={}),Object.keys(Xe.delayedDragEnterLogic).forEach(function(sr){clearTimeout(Xe.delayedDragEnterLogic[sr])}),Xe.delayedDragEnterLogic[or]=window.setTimeout(function(){if(!Xe.state.dragging)return;var sr=Object(u.a)(He),Ir=ae[vr];Ir&&(Ir.children||[]).length&&(sr=Object(d.a)(He,vr)),"expandedKeys"in Xe.props||Xe.setExpandedKeys(sr),Mt&&Mt({event:pe,node:Object(g.b)(te.props),expandedKeys:sr})},400)},0)},Xe.onNodeDragOver=function(pe,te){var $e=Xe.state.dragNodesKeys,He=Xe.props.onDragOver,ae=te.props.eventKey;if($e.indexOf(ae)!==-1)return;if(Xe.dragNode&&ae===Xe.state.dragOverNodeKey){var ft=Object(d.c)(pe,te);if(ft===Xe.state.dropPosition)return;Xe.setState({dropPosition:ft})}He&&He({event:pe,node:Object(g.b)(te.props)})},Xe.onNodeDragLeave=function(pe,te){var $e=Xe.props.onDragLeave;Xe.setState({dragOverNodeKey:""}),$e&&$e({event:pe,node:Object(g.b)(te.props)})},Xe.onNodeDragEnd=function(pe,te){var $e=Xe.props.onDragEnd;Xe.setState({dragOverNodeKey:""}),Xe.cleanDragState(),$e&&$e({event:pe,node:Object(g.b)(te.props)}),Xe.dragNode=null},Xe.onNodeDrop=function(pe,te){var $e=Xe.state,He=$e.dragNodesKeys,ae=He===void 0?[]:He,ft=$e.dropPosition,Mt=Xe.props.onDrop,mt=te.props,or=mt.eventKey,vr=mt.pos;if(Xe.setState({dragOverNodeKey:""}),Xe.cleanDragState(),ae.indexOf(or)!==-1){Object(l.a)(!1,"Can not drop to dragNode(include it's children node)");return}var fn=Object(d.k)(vr),sr={event:pe,node:Object(g.b)(te.props),dragNode:Xe.dragNode?Object(g.b)(Xe.dragNode.props):null,dragNodesKeys:ae.slice(),dropPosition:ft+Number(fn[fn.length-1]),dropToGap:!1};ft!==0&&(sr.dropToGap=!0),Mt&&Mt(sr),Xe.dragNode=null},Xe.cleanDragState=function(){var pe=Xe.state.dragging;pe&&Xe.setState({dragging:!1})},Xe.onNodeClick=function(pe,te){var $e=Xe.props.onClick;$e&&$e(pe,te)},Xe.onNodeDoubleClick=function(pe,te){var $e=Xe.props.onDoubleClick;$e&&$e(pe,te)},Xe.onNodeSelect=function(pe,te){var $e=Xe.state.selectedKeys,He=Xe.state.keyEntities,ae=Xe.props,ft=ae.onSelect,Mt=ae.multiple,mt=te.selected,or=te.key,vr=!mt;vr?Mt?$e=Object(d.a)($e,or):$e=[or]:$e=Object(d.b)($e,or);var fn=$e.map(function(sr){var Ir=He[sr];return Ir?Ir.node:null}).filter(function(sr){return sr});Xe.setUncontrolledState({selectedKeys:$e}),ft&&ft($e,{event:"select",selected:vr,node:te,selectedNodes:fn,nativeEvent:pe.nativeEvent})},Xe.onNodeCheck=function(pe,te,$e){var He=Xe.state,ae=He.keyEntities,ft=He.checkedKeys,Mt=He.halfCheckedKeys,mt=Xe.props,or=mt.checkStrictly,vr=mt.onCheck,fn=te.key,sr,Ir={event:"check",node:te,checked:$e,nativeEvent:pe.nativeEvent};if(or){var lr=$e?Object(d.a)(ft,fn):Object(d.b)(ft,fn),Wt=Object(d.b)(Mt,fn);sr={checked:lr,halfChecked:Wt},Ir.checkedNodes=lr.map(function(Ui){return ae[Ui]}).filter(function(Ui){return Ui}).map(function(Ui){return Ui.node}),Xe.setUncontrolledState({checkedKeys:lr})}else{var xt=Object(ee.a)([].concat(Object(u.a)(ft),[fn]),!0,ae),rn=xt.checkedKeys,Dn=xt.halfCheckedKeys;if(!$e){var Xn=new Set(rn);Xn.delete(fn);var ri=Object(ee.a)(Array.from(Xn),{checked:!1,halfCheckedKeys:Dn},ae);rn=ri.checkedKeys,Dn=ri.halfCheckedKeys}sr=rn,Ir.checkedNodes=[],Ir.checkedNodesPositions=[],Ir.halfCheckedKeys=Dn,rn.forEach(function(Ui){var Bn=ae[Ui];if(!Bn)return;var Jn=Bn.node,Xt=Bn.pos;Ir.checkedNodes.push(Jn),Ir.checkedNodesPositions.push({node:Jn,pos:Xt})}),Xe.setUncontrolledState({checkedKeys:rn},!1,{halfCheckedKeys:Dn})}vr&&vr(sr,Ir)},Xe.onNodeLoad=function(pe){return new Promise(function(te){Xe.setState(function($e){var He=$e.loadedKeys,ae=He===void 0?[]:He,ft=$e.loadingKeys,Mt=ft===void 0?[]:ft,mt=Xe.props,or=mt.loadData,vr=mt.onLoad,fn=pe.key;if(!or||ae.indexOf(fn)!==-1||Mt.indexOf(fn)!==-1)return{};var sr=or(pe);return sr.then(function(){var Ir=Xe.state,lr=Ir.loadedKeys,Wt=Ir.loadingKeys,xt=Object(d.a)(lr,fn),rn=Object(d.b)(Wt,fn);vr&&vr(xt,{event:"load",node:pe}),Xe.setUncontrolledState({loadedKeys:xt}),Xe.setState({loadingKeys:rn}),te()}),{loadingKeys:Object(d.a)(Mt,fn)}})})},Xe.onNodeMouseEnter=function(pe,te){var $e=Xe.props.onMouseEnter;$e&&$e({event:pe,node:te})},Xe.onNodeMouseLeave=function(pe,te){var $e=Xe.props.onMouseLeave;$e&&$e({event:pe,node:te})},Xe.onNodeContextMenu=function(pe,te){var $e=Xe.props.onRightClick;$e&&(pe.preventDefault(),$e({event:pe,node:te}))},Xe.onFocus=function(){var pe=Xe.props.onFocus;Xe.setState({focused:!0}),pe&&pe.apply(void 0,arguments)},Xe.onBlur=function(){var pe=Xe.props.onBlur;Xe.setState({focused:!1}),Xe.onActiveChange(null),pe&&pe.apply(void 0,arguments)},Xe.getTreeNodeRequiredProps=function(){var pe=Xe.state,te=pe.expandedKeys,$e=pe.selectedKeys,He=pe.loadedKeys,ae=pe.loadingKeys,ft=pe.checkedKeys,Mt=pe.halfCheckedKeys,mt=pe.dragOverNodeKey,or=pe.dropPosition,vr=pe.keyEntities;return{expandedKeys:te||[],selectedKeys:$e||[],loadedKeys:He||[],loadingKeys:ae||[],checkedKeys:ft||[],halfCheckedKeys:Mt||[],dragOverNodeKey:mt,dropPosition:or,keyEntities:vr}},Xe.setExpandedKeys=function(pe){var te=Xe.state.treeData,$e=Object(g.d)(te,pe);Xe.setUncontrolledState({expandedKeys:pe,flattenNodes:$e},!0)},Xe.onNodeExpand=function(pe,te){var $e=Xe.state.expandedKeys,He=Xe.state.listChanging,ae=Xe.props,ft=ae.onExpand,Mt=ae.loadData,mt=te.key,or=te.expanded;if(He)return;var vr=$e.indexOf(mt),fn=!or;if(Object(l.a)(or&&vr!==-1||!or&&vr===-1,"Expand state not sync with index check"),fn?$e=Object(d.a)($e,mt):$e=Object(d.b)($e,mt),Xe.setExpandedKeys($e),ft&&ft($e,{node:te,expanded:fn,nativeEvent:pe.nativeEvent}),fn&&Mt){var sr=Xe.onNodeLoad(te);sr&&sr.then(function(){var Ir=Object(g.d)(Xe.state.treeData,$e);Xe.setUncontrolledState({flattenNodes:Ir})})}},Xe.onListChangeStart=function(){Xe.setUncontrolledState({listChanging:!0})},Xe.onListChangeEnd=function(){setTimeout(function(){Xe.setUncontrolledState({listChanging:!1})})},Xe.onActiveChange=function(pe){var te=Xe.state.activeKey,$e=Xe.props.onActiveChange;if(te===pe)return;Xe.setState({activeKey:pe}),pe!==null&&Xe.scrollTo({key:pe}),$e&&$e(pe)},Xe.getActiveItem=function(){var pe=Xe.state,te=pe.activeKey,$e=pe.flattenNodes;return te===null?null:$e.find(function(He){var ae=He.data.key;return ae===te})||null},Xe.offsetActiveKey=function(pe){var te=Xe.state,$e=te.flattenNodes,He=te.activeKey,ae=$e.findIndex(function(mt){var or=mt.data.key;return or===He});ae===-1&&pe<0&&(ae=$e.length),ae=(ae+pe+$e.length)%$e.length;var ft=$e[ae];if(ft){var Mt=ft.data.key;Xe.onActiveChange(Mt)}else Xe.onActiveChange(null)},Xe.onKeyDown=function(pe){var te=Xe.state,$e=te.activeKey,He=te.expandedKeys,ae=te.checkedKeys,ft=Xe.props,Mt=ft.onKeyDown,mt=ft.checkable,or=ft.selectable;switch(pe.which){case e.a.UP:{Xe.offsetActiveKey(-1),pe.preventDefault();break}case e.a.DOWN:{Xe.offsetActiveKey(1),pe.preventDefault();break}}var vr=Xe.getActiveItem();if(vr&&vr.data){var fn=Xe.getTreeNodeRequiredProps(),sr=vr.data.isLeaf===!1||!!(vr.data.children||[]).length,Ir=Object(g.b)(Object(h.a)(Object(h.a)({},Object(g.f)($e,fn)),{},{data:vr.data,active:!0}));switch(pe.which){case e.a.LEFT:{sr&&He.includes($e)?Xe.onNodeExpand({},Ir):vr.parent&&Xe.onActiveChange(vr.parent.data.key),pe.preventDefault();break}case e.a.RIGHT:{sr&&!He.includes($e)?Xe.onNodeExpand({},Ir):vr.children&&vr.children.length&&Xe.onActiveChange(vr.children[0].data.key),pe.preventDefault();break}case e.a.ENTER:case e.a.SPACE:{mt&&!Ir.disabled&&Ir.checkable!==!1&&!Ir.disableCheckbox?Xe.onNodeCheck({},Ir,!ae.includes($e)):!mt&&or&&!Ir.disabled&&Ir.selectable!==!1&&Xe.onNodeSelect({},Ir);break}}}Mt&&Mt(pe)},Xe.setUncontrolledState=function(pe){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(Xe.destroyed)return;var He=!1,ae=!0,ft={};Object.keys(pe).forEach(function(Mt){if(Mt in Xe.props){ae=!1;return}He=!0,ft[Mt]=pe[Mt]}),He&&(!te||ae)&&Xe.setState(Object(h.a)(Object(h.a)({},ft),$e))},Xe.scrollTo=function(pe){Xe.listRef.current.scrollTo(pe)},Xe}return Object(i.a)(Vt,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var pe,te=this.state,$e=te.focused,He=te.flattenNodes,ae=te.keyEntities,ft=te.dragging,Mt=te.activeKey,mt=this.props,or=mt.prefixCls,vr=mt.className,fn=mt.style,sr=mt.showLine,Ir=mt.focusable,lr=mt.tabIndex,Wt=lr===void 0?0:lr,xt=mt.selectable,rn=mt.showIcon,Dn=mt.icon,Xn=mt.switcherIcon,ri=mt.draggable,Ui=mt.checkable,Bn=mt.checkStrictly,Jn=mt.disabled,Xt=mt.motion,_t=mt.loadData,Fe=mt.filterTreeNode,Pe=mt.height,Be=mt.itemHeight,nt=mt.virtual,vt=mt.titleRender,ar=mt.onContextMenu,kr=Object(d.f)(this.props);return m.createElement(c.a.Provider,{value:{prefixCls:or,selectable:xt,showIcon:rn,icon:Dn,switcherIcon:Xn,draggable:ri,checkable:Ui,checkStrictly:Bn,disabled:Jn,keyEntities:ae,loadData:_t,filterTreeNode:Fe,titleRender:vt,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},m.createElement("div",{className:s()(or,vr,(pe={},Object(f.a)(pe,"".concat(or,"-show-line"),sr),Object(f.a)(pe,"".concat(or,"-focused"),$e),Object(f.a)(pe,"".concat(or,"-active-focused"),Mt!==null),pe))},m.createElement(G,Object.assign({ref:this.listRef,prefixCls:or,style:fn,data:He,disabled:Jn,selectable:xt,checkable:!!Ui,motion:Xt,dragging:ft,height:Pe,itemHeight:Be,virtual:nt,focusable:Ir,focused:$e,tabIndex:Wt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ar},this.getTreeNodeRequiredProps(),kr))))}}],[{key:"getDerivedStateFromProps",value:function(pe,te){var $e=te.prevProps,He={prevProps:pe};function ae(Dn){return!$e&&Dn in pe||$e&&$e[Dn]!==pe[Dn]}var ft;if(ae("treeData")?ft=pe.treeData:ae("children")&&(Object(l.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ft=Object(g.c)(pe.children)),ft){He.treeData=ft;var Mt=Object(g.a)(ft);He.keyEntities=Object(h.a)(Object(f.a)({},F,X),Mt.keyEntities)}var mt=He.keyEntities||te.keyEntities;if(ae("expandedKeys")||$e&&ae("autoExpandParent"))He.expandedKeys=pe.autoExpandParent||!$e&&pe.defaultExpandParent?Object(d.e)(pe.expandedKeys,mt):pe.expandedKeys;else if(!$e&&pe.defaultExpandAll){var or=Object(h.a)({},mt);delete or[F],He.expandedKeys=Object.keys(or).map(function(Dn){return or[Dn].key})}else!$e&&pe.defaultExpandedKeys&&(He.expandedKeys=pe.autoExpandParent||pe.defaultExpandParent?Object(d.e)(pe.defaultExpandedKeys,mt):pe.defaultExpandedKeys);if(He.expandedKeys||delete He.expandedKeys,ft||He.expandedKeys){var vr=Object(g.d)(ft||te.treeData,He.expandedKeys||te.expandedKeys);He.flattenNodes=vr}if(pe.selectable&&(ae("selectedKeys")?He.selectedKeys=Object(d.d)(pe.selectedKeys,pe):!$e&&pe.defaultSelectedKeys&&(He.selectedKeys=Object(d.d)(pe.defaultSelectedKeys,pe))),pe.checkable){var fn;if(ae("checkedKeys")?fn=Object(d.j)(pe.checkedKeys)||{}:!$e&&pe.defaultCheckedKeys?fn=Object(d.j)(pe.defaultCheckedKeys)||{}:ft&&(fn=Object(d.j)(pe.checkedKeys)||{checkedKeys:te.checkedKeys,halfCheckedKeys:te.halfCheckedKeys}),fn){var sr=fn,Ir=sr.checkedKeys,lr=Ir===void 0?[]:Ir,Wt=sr.halfCheckedKeys,xt=Wt===void 0?[]:Wt;if(!pe.checkStrictly){var rn=Object(ee.a)(lr,!0,mt);lr=rn.checkedKeys,xt=rn.halfCheckedKeys}He.checkedKeys=lr,He.halfCheckedKeys=xt}}return ae("loadedKeys")&&(He.loadedKeys=pe.loadedKeys),He}}]),Vt}(m.Component);ce.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},ce.TreeNode=C.a;var be=ce,le=be,Ie=n("RIqP"),ke=n.n(Ie),Re=n("J4zp"),Qe=n.n(Re),We=n("sEfC"),ot=n.n(We),Oe=n("HT/e"),oe=n.n(Oe),st=n("ydAt"),he=n.n(st),J=n("EWH9"),Y=n.n(J),$=n("H84U"),fe;(function(zt){zt[zt.None=0]="None",zt[zt.Start=1]="Start",zt[zt.End=2]="End"})(fe||(fe={}));function we(zt,kt){function Vt(Xe){var pe=Xe.key,te=Xe.children;kt(pe,Xe)!==!1&&we(te||[],kt)}zt.forEach(Vt)}function Ne(zt){var kt=zt.treeData,Vt=zt.expandedKeys,Xe=zt.startKey,pe=zt.endKey,te=[],$e=fe.None;if(Xe&&Xe===pe)return[Xe];if(!Xe||!pe)return[];function He(ae){return ae===Xe||ae===pe}return we(kt,function(ae){if($e===fe.End)return!1;if(He(ae)){if(te.push(ae),$e===fe.None)$e=fe.Start;else if($e===fe.Start)return $e=fe.End,!1}else $e===fe.Start&&te.push(ae);return!(Vt.indexOf(ae)===-1)}),te}function Ee(zt,kt){var Vt=ke()(kt),Xe=[];return we(zt,function(pe,te){var $e=Vt.indexOf(pe);return $e!==-1&&(Xe.push(te),Vt.splice($e,1)),!!Vt.length}),Xe}var de=function(zt,kt){var Vt={};for(var Xe in zt)Object.prototype.hasOwnProperty.call(zt,Xe)&&kt.indexOf(Xe)<0&&(Vt[Xe]=zt[Xe]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,Xe=Object.getOwnPropertySymbols(zt);pe<Xe.length;pe++)kt.indexOf(Xe[pe])<0&&Object.prototype.propertyIsEnumerable.call(zt,Xe[pe])&&(Vt[Xe[pe]]=zt[Xe[pe]]);return Vt};function me(zt){var kt=zt.isLeaf,Vt=zt.expanded;return kt?m.createElement(oe.a,null):Vt?m.createElement(he.a,null):m.createElement(Y.a,null)}function Le(zt){var kt=zt.treeData,Vt=zt.children;return kt||Object(g.c)(Vt)}var tt=function(kt,Vt){var Xe=kt.defaultExpandAll,pe=kt.defaultExpandParent,te=kt.defaultExpandedKeys,$e=de(kt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),He=m.useRef(),ae=m.useRef(),ft=m.createRef();m.useImperativeHandle(Vt,function(){return ft.current});var Mt=function(){var ar=Object(g.a)(Le($e)),kr=ar.keyEntities,mn;return Xe?mn=Object.keys(kr):pe?mn=Object(d.e)($e.expandedKeys||te,kr):mn=$e.expandedKeys||te,mn},mt=m.useState($e.selectedKeys||$e.defaultSelectedKeys||[]),or=Qe()(mt,2),vr=or[0],fn=or[1],sr=m.useState(Mt()),Ir=Qe()(sr,2),lr=Ir[0],Wt=Ir[1];m.useEffect(function(){"selectedKeys"in $e&&fn($e.selectedKeys)},[$e.selectedKeys]),m.useEffect(function(){"expandedKeys"in $e&&Wt($e.expandedKeys)},[$e.expandedKeys]);var xt=function(ar,kr){var mn=kr.isLeaf;if(mn||ar.shiftKey||ar.metaKey||ar.ctrlKey)return;ft.current.onNodeExpand(ar,kr)},rn=ot()(xt,200,{leading:!0}),Dn=function(ar,kr){return"expandedKeys"in $e||Wt(ar),$e.onExpand?$e.onExpand(ar,kr):void 0},Xn=function(ar,kr){var mn=$e.expandAction;mn==="click"&&rn(ar,kr),$e.onClick&&$e.onClick(ar,kr)},ri=function(ar,kr){var mn=$e.expandAction;mn==="doubleClick"&&rn(ar,kr),$e.onDoubleClick&&$e.onDoubleClick(ar,kr)},Ui=function(ar,kr){var mn=$e.multiple,Zn=kr.node,ni=kr.nativeEvent,ur=Zn.key,Nt=ur===void 0?"":ur,bt=Le($e),gr=A()(A()({},kr),{selected:!0}),Yt=ni.ctrlKey||ni.metaKey,Pt=ni.shiftKey,rr;mn&&Yt?(rr=ar,He.current=Nt,ae.current=rr,gr.selectedNodes=Ee(bt,rr)):mn&&Pt?(rr=Array.from(new Set([].concat(ke()(ae.current||[]),ke()(Ne({treeData:bt,expandedKeys:lr,startKey:Nt,endKey:He.current}))))),gr.selectedNodes=Ee(bt,rr)):(rr=[Nt],He.current=Nt,ae.current=rr,gr.selectedNodes=Ee(bt,rr)),$e.onSelect&&$e.onSelect(rr,gr),"selectedKeys"in $e||fn(rr)},Bn=m.useContext($.b),Jn=Bn.getPrefixCls,Xt=Bn.direction,_t=$e.prefixCls,Fe=$e.className,Pe=de($e,["prefixCls","className"]),Be=Jn("tree",_t),nt=s()("".concat(Be,"-directory"),Fe,p()({},"".concat(Be,"-directory-rtl"),Xt==="rtl"));return m.createElement(Gt,A()({icon:me,ref:ft,blockNode:!0},Pe,{prefixCls:Be,className:nt,expandedKeys:lr,selectedKeys:vr,onSelect:Ui,onClick:Xn,onDoubleClick:ri,onExpand:Dn}))},At=m.forwardRef(tt);At.displayName="DirectoryTree",At.defaultProps={showIcon:!0,expandAction:"click"};var ht=At,Ke=n("EXcs"),Jt=n("2jpz"),ct=m.forwardRef(function(zt,kt){var Vt,Xe=m.useContext($.b),pe=Xe.getPrefixCls,te=Xe.direction,$e=Xe.virtual,He=zt.prefixCls,ae=zt.className,ft=zt.showIcon,Mt=zt.showLine,mt=zt.switcherIcon,or=zt.blockNode,vr=zt.children,fn=zt.checkable,sr=A()(A()({},zt),{showLine:Boolean(Mt)}),Ir=pe("tree",He);return m.createElement(le,A()({itemHeight:20,ref:kt,virtual:$e},sr,{prefixCls:Ir,className:s()(ae,(Vt={},p()(Vt,"".concat(Ir,"-icon-hide"),!ft),p()(Vt,"".concat(Ir,"-block-node"),or),p()(Vt,"".concat(Ir,"-rtl"),te==="rtl"),Vt)),checkable:fn&&m.createElement("span",{className:"".concat(Ir,"-checkbox-inner")}),switcherIcon:function(Wt){return Object(Jt.a)(Ir,mt,Mt,Wt)}}),vr)});ct.TreeNode=C.a,ct.DirectoryTree=ht,ct.defaultProps={checkable:!1,showIcon:!1,motion:A()(A()({},Ke.a),{motionAppear:!1}),blockNode:!1};var Gt=ct,dr=D.a=Gt},MKOG:function(k,D,n){var y=n("bYtY"),p=n("YH21"),x=p.Dispatcher,A=n("mLcG"),m=n("Bq2U"),f=function(a){a=a||{},this.stage=a.stage||{},this.onframe=a.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,x.call(this)};f.prototype={constructor:f,addClip:function(a){this._clips.push(a)},addAnimator:function(a){a.animation=this;for(var i=a.getClips(),t=0;t<i.length;t++)this.addClip(i[t])},removeClip:function(a){var i=y.indexOf(this._clips,a);i>=0&&this._clips.splice(i,1)},removeAnimator:function(a){for(var i=a.getClips(),t=0;t<i.length;t++)this.removeClip(i[t]);a.animation=null},_update:function(){for(var a=new Date().getTime()-this._pausedTime,i=a-this._time,t=this._clips,o=t.length,e=[],l=[],r=0;r<o;r++){var s=t[r],c=s.step(a,i);c&&(e.push(c),l.push(s))}for(var r=0;r<o;)t[r]._needsRemove?(t[r]=t[o-1],t.pop(),o--):r++;o=e.length;for(var r=0;r<o;r++)l[r].fire(e[r]);this._time=a,this.onframe(i),this.trigger("frame",i),this.stage.update&&this.stage.update()},_startLoop:function(){var a=this;this._running=!0;function i(){a._running&&(A(i),!a._paused&&a._update())}A(i)},start:function(){this._time=new Date().getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=new Date().getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=new Date().getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(a,i){i=i||{};var t=new m(a,i.loop,i.getter,i.setter);return this.addAnimator(t),t}},y.mixin(f,x);var h=f;k.exports=h},MMmD:function(k,D,n){var y=n("lSCD"),p=n("shjB");function x(A){return A!=null&&p(A.length)&&!y(A)}k.exports=x},MRoa:function(k,D,n){var y=n("ProS");n("0Bwj"),n("W2nI"),n("vcCh");var p=n("gawk"),x=n("Dg8C");y.registerLayout(p),y.registerVisual(x)},MT78:function(k,D,n){var y=n("ProS");(function(){for(var x in y){if(y==null||!y.hasOwnProperty(x)||x==="default"||x==="__esModule")return;D[x]=y[x]}})();var p=n("txkQ");(function(){for(var x in p){if(p==null||!p.hasOwnProperty(x)||x==="default"||x==="__esModule")return;D[x]=p[x]}})(),n("A1Ka"),n("75ce"),n("lLGD"),n("wDdD"),n("Fa/5"),n("jett"),n("Z1wy"),n("75ev"),n("2uGb"),n("I+77"),n("B+YJ"),n("pLH3"),n("CBdT"),n("MRoa"),n("+lIL"),n("CF2D"),n("ERHi"),n("p+If"),n("XOKv"),n("qt/9"),n("bBL8"),n("1xaR"),n("4Feb"),n("zRKj"),n("L3Oj"),n("0HBW"),n("LPzL"),n("8waO"),n("k5C7"),n("f1nB"),n("sRwP"),n("AH3D"),n("y4/Y"),n("LzGr"),n("Ynxi"),n("7pVf"),n("2w7y"),n("laiN"),n("fjKi"),n("C0tN"),n("0o9m"),n("Cm0C"),n("f3JH"),n("5NHt"),n("VFCP"),n("dBmv"),n("KamJ"),n("8XDt"),n("juDX")},MVse:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("HQLL"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},MXD1:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("Kvyg"),A=n.n(x)},MZdM:function(k,D,n){"use strict";function y(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(r){return typeof r}:y=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},y(e)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var p=u(n("Lo0S")),x=f(n("N/zr")),A=n("GdRQ"),m=n("GQ8N");function f(e){return e&&e.__esModule?e:{default:e}}function h(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return h=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(e===null||y(e)!=="object"&&typeof e!="function")return{default:e};var l=h();if(l&&l.has(e))return l.get(e);var r={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if(Object.prototype.hasOwnProperty.call(e,c)){var d=s?Object.getOwnPropertyDescriptor(e,c):null;d&&(d.get||d.set)?Object.defineProperty(r,c,d):r[c]=e[c]}return r.default=e,l&&l.set(e,r),r}function a(e,l){if(!(e instanceof l))throw new TypeError("Cannot call a class as a function")}function i(e,l){for(var r=0;r<l.length;r++){var s=l[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function t(e,l,r){return l&&i(e.prototype,l),r&&i(e,r),e}var o=function(){function e(l){if(a(this,e),this._drawCtx=null,this._renderQ=[],this._flushing=!1,this._fbWidth=0,this._fbHeight=0,this._prevDrawStyle="",this._tile=null,this._tile16x16=null,this._tileX=0,this._tileY=0,p.Debug(">> Display.constructor"),this._target=l,!this._target)throw new Error("Target must be set");if(typeof this._target=="string")throw new Error("target must be a DOM element");if(!this._target.getContext)throw new Error("no getContext method");if(this._targetCtx=this._target.getContext("2d"),this._viewportLoc={x:0,y:0,w:this._target.width,h:this._target.height},this._backbuffer=document.createElement("canvas"),this._drawCtx=this._backbuffer.getContext("2d"),this._damageBounds={left:0,top:0,right:this._backbuffer.width,bottom:this._backbuffer.height},p.Debug("User Agent: "+navigator.userAgent),!("createImageData"in this._drawCtx))throw new Error("Canvas does not support createImageData");this._tile16x16=this._drawCtx.createImageData(16,16),p.Debug("<< Display.constructor"),this._scale=1,this._clipViewport=!1,this.onflush=function(){}}return t(e,[{key:"viewportChangePos",value:function(r,s){var c=this._viewportLoc;r=Math.floor(r),s=Math.floor(s),this._clipViewport||(r=-c.w,s=-c.h);var d=c.x+c.w-1,g=c.y+c.h-1;if(r<0&&c.x+r<0&&(r=-c.x),d+r>=this._fbWidth&&(r-=d+r-this._fbWidth+1),c.y+s<0&&(s=-c.y),g+s>=this._fbHeight&&(s-=g+s-this._fbHeight+1),r===0&&s===0)return;p.Debug("viewportChange deltaX: "+r+", deltaY: "+s),c.x+=r,c.y+=s,this._damage(c.x,c.y,c.w,c.h),this.flip()}},{key:"viewportChangeSize",value:function(r,s){(!this._clipViewport||typeof r=="undefined"||typeof s=="undefined")&&(p.Debug("Setting viewport to full display region"),r=this._fbWidth,s=this._fbHeight),r=Math.floor(r),s=Math.floor(s),r>this._fbWidth&&(r=this._fbWidth),s>this._fbHeight&&(s=this._fbHeight);var c=this._viewportLoc;if(c.w!==r||c.h!==s){c.w=r,c.h=s;var d=this._target;d.width=r,d.height=s,this.viewportChangePos(0,0),this._damage(c.x,c.y,c.w,c.h),this.flip(),this._rescale(this._scale)}}},{key:"absX",value:function(r){return this._scale===0?0:(0,m.toSigned32bit)(r/this._scale+this._viewportLoc.x)}},{key:"absY",value:function(r){return this._scale===0?0:(0,m.toSigned32bit)(r/this._scale+this._viewportLoc.y)}},{key:"resize",value:function(r,s){this._prevDrawStyle="",this._fbWidth=r,this._fbHeight=s;var c=this._backbuffer;if(c.width!==r||c.height!==s){var d=null;c.width>0&&c.height>0&&(d=this._drawCtx.getImageData(0,0,c.width,c.height)),c.width!==r&&(c.width=r),c.height!==s&&(c.height=s),d&&this._drawCtx.putImageData(d,0,0)}var g=this._viewportLoc;this.viewportChangeSize(g.w,g.h),this.viewportChangePos(0,0)}},{key:"_damage",value:function(r,s,c,d){r<this._damageBounds.left&&(this._damageBounds.left=r),s<this._damageBounds.top&&(this._damageBounds.top=s),r+c>this._damageBounds.right&&(this._damageBounds.right=r+c),s+d>this._damageBounds.bottom&&(this._damageBounds.bottom=s+d)}},{key:"flip",value:function(r){if(this._renderQ.length!==0&&!r)this._renderQPush({type:"flip"});else{var s=this._damageBounds.left,c=this._damageBounds.top,d=this._damageBounds.right-s,g=this._damageBounds.bottom-c,v=s-this._viewportLoc.x,b=c-this._viewportLoc.y;v<0&&(d+=v,s-=v,v=0),b<0&&(g+=b,c-=b,b=0),v+d>this._viewportLoc.w&&(d=this._viewportLoc.w-v),b+g>this._viewportLoc.h&&(g=this._viewportLoc.h-b),d>0&&g>0&&this._targetCtx.drawImage(this._backbuffer,s,c,d,g,v,b,d,g),this._damageBounds.left=this._damageBounds.top=65535,this._damageBounds.right=this._damageBounds.bottom=0}}},{key:"pending",value:function(){return this._renderQ.length>0}},{key:"flush",value:function(){this._renderQ.length===0?this.onflush():this._flushing=!0}},{key:"fillRect",value:function(r,s,c,d,g,v){this._renderQ.length!==0&&!v?this._renderQPush({type:"fill",x:r,y:s,width:c,height:d,color:g}):(this._setFillColor(g),this._drawCtx.fillRect(r,s,c,d),this._damage(r,s,c,d))}},{key:"copyImage",value:function(r,s,c,d,g,v,b){this._renderQ.length!==0&&!b?this._renderQPush({type:"copy",oldX:r,oldY:s,x:c,y:d,width:g,height:v}):(this._drawCtx.mozImageSmoothingEnabled=!1,this._drawCtx.webkitImageSmoothingEnabled=!1,this._drawCtx.msImageSmoothingEnabled=!1,this._drawCtx.imageSmoothingEnabled=!1,this._drawCtx.drawImage(this._backbuffer,r,s,g,v,c,d,g,v),this._damage(c,d,g,v))}},{key:"imageRect",value:function(r,s,c,d,g,v){if(c===0||d===0)return;var b=new Image;b.src="data: "+g+";base64,"+x.default.encode(v),this._renderQPush({type:"img",img:b,x:r,y:s,width:c,height:d})}},{key:"startTile",value:function(r,s,c,d,g){this._tileX=r,this._tileY=s,c===16&&d===16?this._tile=this._tile16x16:this._tile=this._drawCtx.createImageData(c,d);for(var v=g[2],b=g[1],S=g[0],E=this._tile.data,C=0;C<c*d*4;C+=4)E[C]=v,E[C+1]=b,E[C+2]=S,E[C+3]=255}},{key:"subTile",value:function(r,s,c,d,g){for(var v=g[2],b=g[1],S=g[0],E=r+c,C=s+d,_=this._tile.data,T=this._tile.width,w=s;w<C;w++)for(var O=r;O<E;O++){var I=(O+w*T)*4;_[I]=v,_[I+1]=b,_[I+2]=S,_[I+3]=255}}},{key:"finishTile",value:function(){this._drawCtx.putImageData(this._tile,this._tileX,this._tileY),this._damage(this._tileX,this._tileY,this._tile.width,this._tile.height)}},{key:"blitImage",value:function(r,s,c,d,g,v,b){if(this._renderQ.length!==0&&!b){var S=new Uint8Array(c*d*4);S.set(new Uint8Array(g.buffer,0,S.length)),this._renderQPush({type:"blit",data:S,x:r,y:s,width:c,height:d})}else this._bgrxImageData(r,s,c,d,g,v)}},{key:"blitRgbImage",value:function(r,s,c,d,g,v,b){if(this._renderQ.length!==0&&!b){var S=new Uint8Array(c*d*3);S.set(new Uint8Array(g.buffer,0,S.length)),this._renderQPush({type:"blitRgb",data:S,x:r,y:s,width:c,height:d})}else this._rgbImageData(r,s,c,d,g,v)}},{key:"blitRgbxImage",value:function(r,s,c,d,g,v,b){if(this._renderQ.length!==0&&!b){var S=new Uint8Array(c*d*4);S.set(new Uint8Array(g.buffer,0,S.length)),this._renderQPush({type:"blitRgbx",data:S,x:r,y:s,width:c,height:d})}else this._rgbxImageData(r,s,c,d,g,v)}},{key:"drawImage",value:function(r,s,c){this._drawCtx.drawImage(r,s,c),this._damage(s,c,r.width,r.height)}},{key:"autoscale",value:function(r,s){var c;if(r===0||s===0)c=0;else{var d=this._viewportLoc,g=r/s,v=d.w/d.h;v>=g?c=r/d.w:c=s/d.h}this._rescale(c)}},{key:"_rescale",value:function(r){this._scale=r;var s=this._viewportLoc,c=r*s.w+"px",d=r*s.h+"px";(this._target.style.width!==c||this._target.style.height!==d)&&(this._target.style.width=c,this._target.style.height=d)}},{key:"_setFillColor",value:function(r){var s="rgb("+r[2]+","+r[1]+","+r[0]+")";s!==this._prevDrawStyle&&(this._drawCtx.fillStyle=s,this._prevDrawStyle=s)}},{key:"_rgbImageData",value:function(r,s,c,d,g,v){for(var b=this._drawCtx.createImageData(c,d),S=b.data,E=0,C=v;E<c*d*4;E+=4,C+=3)S[E]=g[C],S[E+1]=g[C+1],S[E+2]=g[C+2],S[E+3]=255;this._drawCtx.putImageData(b,r,s),this._damage(r,s,b.width,b.height)}},{key:"_bgrxImageData",value:function(r,s,c,d,g,v){for(var b=this._drawCtx.createImageData(c,d),S=b.data,E=0,C=v;E<c*d*4;E+=4,C+=4)S[E]=g[C+2],S[E+1]=g[C+1],S[E+2]=g[C],S[E+3]=255;this._drawCtx.putImageData(b,r,s),this._damage(r,s,b.width,b.height)}},{key:"_rgbxImageData",value:function(r,s,c,d,g,v){var b;A.supportsImageMetadata?b=new ImageData(new Uint8ClampedArray(g.buffer,g.byteOffset,c*d*4),c,d):(b=this._drawCtx.createImageData(c,d),b.data.set(new Uint8ClampedArray(g.buffer,g.byteOffset,c*d*4))),this._drawCtx.putImageData(b,r,s),this._damage(r,s,b.width,b.height)}},{key:"_renderQPush",value:function(r){this._renderQ.push(r),this._renderQ.length===1&&this._scanRenderQ()}},{key:"_resumeRenderQ",value:function(){this.removeEventListener("load",this._noVNCDisplay._resumeRenderQ),this._noVNCDisplay._scanRenderQ()}},{key:"_scanRenderQ",value:function(){for(var r=!0;r&&this._renderQ.length>0;){var s=this._renderQ[0];switch(s.type){case"flip":this.flip(!0);break;case"copy":this.copyImage(s.oldX,s.oldY,s.x,s.y,s.width,s.height,!0);break;case"fill":this.fillRect(s.x,s.y,s.width,s.height,s.color,!0);break;case"blit":this.blitImage(s.x,s.y,s.width,s.height,s.data,0,!0);break;case"blitRgb":this.blitRgbImage(s.x,s.y,s.width,s.height,s.data,0,!0);break;case"blitRgbx":this.blitRgbxImage(s.x,s.y,s.width,s.height,s.data,0,!0);break;case"img":if(s.img.complete&&s.img.width!==0&&s.img.height!==0){if(s.img.width!==s.width||s.img.height!==s.height){p.Error("Decoded image has incorrect dimensions. Got "+s.img.width+"x"+s.img.height+". Expected "+s.width+"x"+s.height+".");return}this.drawImage(s.img,s.x,s.y)}else s.img._noVNCDisplay=this,s.img.addEventListener("load",this._resumeRenderQ),r=!1;break}r&&this._renderQ.shift()}this._renderQ.length===0&&this._flushing&&(this._flushing=!1,this.onflush())}},{key:"scale",get:function(){return this._scale},set:function(r){this._rescale(r)}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(r){this._clipViewport=r;var s=this._viewportLoc;this.viewportChangeSize(s.w,s.h),this.viewportChangePos(0,0)}},{key:"width",get:function(){return this._fbWidth}},{key:"height",get:function(){return this._fbHeight}}]),e}();D.default=o},Mdki:function(k,D,n){var y=n("bYtY"),p=y.each,x="\0__link_datas",A="\0__link_mainData";function m(l){var r=l.mainData,s=l.datas;s||(s={main:r},l.datasAttr={main:"data"}),l.datas=l.mainData=null,t(r,s,l),p(s,function(c){p(r.TRANSFERABLE_METHODS,function(d){c.wrapMethod(d,y.curry(f,l))})}),r.wrapMethod("cloneShallow",y.curry(u,l)),p(r.CHANGABLE_METHODS,function(c){r.wrapMethod(c,y.curry(h,l))}),y.assert(s[r.dataType]===r)}function f(l,r){if(i(this)){var s=y.extend({},this[x]);s[this.dataType]=r,t(r,s,l)}else o(r,this.dataType,this[A],l);return r}function h(l,r){return l.struct&&l.struct.update(this),r}function u(l,r){return p(r[x],function(s,c){s!==r&&o(s.cloneShallow(),c,r,l)}),r}function a(l){var r=this[A];return l==null||r==null?r:r[x][l]}function i(l){return l[A]===l}function t(l,r,s){l[x]={},p(r,function(c,d){o(c,d,l,s)})}function o(l,r,s,c){s[x][r]=l,l[A]=s,l.dataType=r,c.struct&&(l[c.structAttr]=c.struct,c.struct[c.datasAttr[r]]=l),l.getLinkedData=a}var e=m;k.exports=e},Mgri:function(k,D,n){for(var y=n("bYtY"),p=n("8nly"),x=[126,25],A=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],m=0;m<A.length;m++)for(var f=0;f<A[m].length;f++)A[m][f][0]/=10.5,A[m][f][1]/=-10.5/.75,A[m][f][0]+=x[0],A[m][f][1]+=x[1];function h(u,a){u==="china"&&a.push(new p("\u5357\u6D77\u8BF8\u5C9B",y.map(A,function(i){return{type:"polygon",exterior:i}}),x))}k.exports=h},MlIO:function(k,D,n){(function(y,p){k.exports=D=p(n("Ib8C"))})(this,function(y){return function(p){var x=y,A=x.lib,m=A.Base,f=A.WordArray,h=x.x64={},u=h.Word=m.extend({init:function(t,o){this.high=t,this.low=o}}),a=h.WordArray=m.extend({init:function(t,o){t=this.words=t||[],o!=p?this.sigBytes=o:this.sigBytes=t.length*8},toX32:function(){for(var t=this.words,o=t.length,e=[],l=0;l<o;l++){var r=t[l];e.push(r.high),e.push(r.low)}return f.create(e,this.sigBytes)},clone:function(){for(var t=m.clone.call(this),o=t.words=this.words.slice(0),e=o.length,l=0;l<e;l++)o[l]=o[l].clone();return t}})}(),y})},Mmt2:function(k,D,n){"use strict";function y(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(e){return typeof e}:y=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(t)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var p=A(n("Lo0S"));function x(){if(typeof WeakMap!="function")return null;var t=new WeakMap;return x=function(){return t},t}function A(t){if(t&&t.__esModule)return t;if(t===null||y(t)!=="object"&&typeof t!="function")return{default:t};var o=x();if(o&&o.has(t))return o.get(t);var e={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var s=l?Object.getOwnPropertyDescriptor(t,r):null;s&&(s.get||s.set)?Object.defineProperty(e,r,s):e[r]=t[r]}return e.default=t,o&&o.set(t,e),e}function m(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function f(t,o){for(var e=0;e<o.length;e++){var l=o[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}function h(t,o,e){return o&&f(t.prototype,o),e&&f(t,e),t}var u=!1,a=40*1024*1024,i=function(){function t(){m(this,t),this._websocket=null,this._rQi=0,this._rQlen=0,this._rQbufferSize=1024*1024*4,this._rQ=null,this._sQbufferSize=1024*10,this._sQlen=0,this._sQ=null,this._eventHandlers={message:function(){},open:function(){},close:function(){},error:function(){}}}return h(t,[{key:"rQpeek8",value:function(){return this._rQ[this._rQi]}},{key:"rQskipBytes",value:function(e){this._rQi+=e}},{key:"rQshift8",value:function(){return this._rQshift(1)}},{key:"rQshift16",value:function(){return this._rQshift(2)}},{key:"rQshift32",value:function(){return this._rQshift(4)}},{key:"_rQshift",value:function(e){for(var l=0,r=e-1;r>=0;r--)l+=this._rQ[this._rQi++]<<r*8;return l}},{key:"rQshiftStr",value:function(e){typeof e=="undefined"&&(e=this.rQlen);for(var l="",r=0;r<e;r+=4096){var s=this.rQshiftBytes(Math.min(4096,e-r));l+=String.fromCharCode.apply(null,s)}return l}},{key:"rQshiftBytes",value:function(e){return typeof e=="undefined"&&(e=this.rQlen),this._rQi+=e,new Uint8Array(this._rQ.buffer,this._rQi-e,e)}},{key:"rQshiftTo",value:function(e,l){l===void 0&&(l=this.rQlen),e.set(new Uint8Array(this._rQ.buffer,this._rQi,l)),this._rQi+=l}},{key:"rQslice",value:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.rQlen;return new Uint8Array(this._rQ.buffer,this._rQi+e,l-e)}},{key:"rQwait",value:function(e,l,r){if(this.rQlen<l){if(r){if(this._rQi<r)throw new Error("rQwait cannot backup "+r+" bytes");this._rQi-=r}return!0}return!1}},{key:"flush",value:function(){this._sQlen>0&&this._websocket.readyState===WebSocket.OPEN&&(this._websocket.send(this._encodeMessage()),this._sQlen=0)}},{key:"send",value:function(e){this._sQ.set(e,this._sQlen),this._sQlen+=e.length,this.flush()}},{key:"sendString",value:function(e){this.send(e.split("").map(function(l){return l.charCodeAt(0)}))}},{key:"off",value:function(e){this._eventHandlers[e]=function(){}}},{key:"on",value:function(e,l){this._eventHandlers[e]=l}},{key:"_allocateBuffers",value:function(){this._rQ=new Uint8Array(this._rQbufferSize),this._sQ=new Uint8Array(this._sQbufferSize)}},{key:"init",value:function(){this._allocateBuffers(),this._rQi=0,this._websocket=null}},{key:"open",value:function(e,l){var r=this;this.init(),this._websocket=new WebSocket(e,l),this._websocket.binaryType="arraybuffer",this._websocket.onmessage=this._recvMessage.bind(this),this._websocket.onopen=function(){p.Debug(">> WebSock.onopen"),r._websocket.protocol&&p.Info("Server choose sub-protocol: "+r._websocket.protocol),r._eventHandlers.open(),p.Debug("<< WebSock.onopen")},this._websocket.onclose=function(s){p.Debug(">> WebSock.onclose"),r._eventHandlers.close(s),p.Debug("<< WebSock.onclose")},this._websocket.onerror=function(s){p.Debug(">> WebSock.onerror: "+s),r._eventHandlers.error(s),p.Debug("<< WebSock.onerror: "+s)}}},{key:"close",value:function(){this._websocket&&((this._websocket.readyState===WebSocket.OPEN||this._websocket.readyState===WebSocket.CONNECTING)&&(p.Info("Closing WebSocket connection"),this._websocket.close()),this._websocket.onmessage=function(){})}},{key:"_encodeMessage",value:function(){return new Uint8Array(this._sQ.buffer,0,this._sQlen)}},{key:"_expandCompactRQ",value:function(e){var l=(this._rQlen-this._rQi+e)*8,r=this._rQbufferSize<l;if(r&&(this._rQbufferSize=Math.max(this._rQbufferSize*2,l)),this._rQbufferSize>a&&(this._rQbufferSize=a,this._rQbufferSize-this.rQlen<e))throw new Error("Receive Queue buffer exceeded "+a+" bytes, and the new message could not fit");if(r){var s=this._rQ.buffer;this._rQ=new Uint8Array(this._rQbufferSize),this._rQ.set(new Uint8Array(s,this._rQi,this._rQlen-this._rQi))}else u?this._rQ.copyWithin(0,this._rQi,this._rQlen):this._rQ.set(new Uint8Array(this._rQ.buffer,this._rQi,this._rQlen-this._rQi));this._rQlen=this._rQlen-this._rQi,this._rQi=0}},{key:"_DecodeMessage",value:function(e){var l=new Uint8Array(e);l.length>this._rQbufferSize-this._rQlen&&this._expandCompactRQ(l.length),this._rQ.set(l,this._rQlen),this._rQlen+=l.length}},{key:"_recvMessage",value:function(e){this._DecodeMessage(e.data),this.rQlen>0?(this._eventHandlers.message(),this._rQlen==this._rQi&&(this._rQlen=0,this._rQi=0)):p.Debug("Ignoring empty message")}},{key:"sQ",get:function(){return this._sQ}},{key:"rQ",get:function(){return this._rQ}},{key:"rQi",get:function(){return this._rQi},set:function(e){this._rQi=e}},{key:"rQlen",get:function(){return this._rQlen-this._rQi}}]),t}();D.default=i},MqEG:function(k,D,n){var y=n("bYtY"),p=n("fc+c"),x=n("72pK"),A=n("VXYp"),m=y.bind,f=p.extend({type:"dataZoom.inside",init:function(t,o){this._range},render:function(t,o,e,l){f.superApply(this,"render",arguments),this._range=t.getPercentRange(),y.each(this.getTargetCoordInfo(),function(r,s){var c=y.map(r,function(d){return A.generateCoordId(d.model)});y.each(r,function(d){var g=d.model,v={};y.each(["pan","zoom","scrollMove"],function(b){v[b]=m(h[b],this,d,s)},this),A.register(e,{coordId:A.generateCoordId(g),allCoordIds:c,containsPoint:function(b,S,E){return g.coordinateSystem.containPoint([S,E])},dataZoomId:t.id,dataZoomModel:t,getRange:v})},this)},this)},dispose:function(){A.unregister(this.api,this.dataZoomModel.id),f.superApply(this,"dispose",arguments),this._range=null}}),h={zoom:function(t,o,e,l){var r=this._range,s=r.slice(),c=t.axisModels[0];if(!c)return;var d=a[o](null,[l.originX,l.originY],c,e,t),g=(d.signal>0?d.pixelStart+d.pixelLength-d.pixel:d.pixel-d.pixelStart)/d.pixelLength*(s[1]-s[0])+s[0],v=Math.max(1/l.scale,0);s[0]=(s[0]-g)*v+g,s[1]=(s[1]-g)*v+g;var b=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(x(0,s,[0,100],0,b.minSpan,b.maxSpan),this._range=s,r[0]!==s[0]||r[1]!==s[1])return s},pan:u(function(t,o,e,l,r,s){var c=a[l]([s.oldX,s.oldY],[s.newX,s.newY],o,r,e);return c.signal*(t[1]-t[0])*c.pixel/c.pixelLength}),scrollMove:u(function(t,o,e,l,r,s){var c=a[l]([0,0],[s.scrollDelta,s.scrollDelta],o,r,e);return c.signal*(t[1]-t[0])*s.scrollDelta})};function u(t){return function(o,e,l,r){var s=this._range,c=s.slice(),d=o.axisModels[0];if(!d)return;var g=t(c,d,o,e,l,r);if(x(g,c,[0,100],"all"),this._range=c,s[0]!==c[0]||s[1]!==c[1])return c}}var a={grid:function(t,o,e,l,r){var s=e.axis,c={},d=r.model.coordinateSystem.getRect();return t=t||[0,0],s.dim==="x"?(c.pixel=o[0]-t[0],c.pixelLength=d.width,c.pixelStart=d.x,c.signal=s.inverse?1:-1):(c.pixel=o[1]-t[1],c.pixelLength=d.height,c.pixelStart=d.y,c.signal=s.inverse?-1:1),c},polar:function(t,o,e,l,r){var s=e.axis,c={},d=r.model.coordinateSystem,g=d.getRadiusAxis().getExtent(),v=d.getAngleAxis().getExtent();return t=t?d.pointToCoord(t):[0,0],o=d.pointToCoord(o),e.mainType==="radiusAxis"?(c.pixel=o[0]-t[0],c.pixelLength=g[1]-g[0],c.pixelStart=g[0],c.signal=s.inverse?1:-1):(c.pixel=o[1]-t[1],c.pixelLength=v[1]-v[0],c.pixelStart=v[0],c.signal=s.inverse?-1:1),c},singleAxis:function(t,o,e,l,r){var s=e.axis,c=r.model.coordinateSystem.getRect(),d={};return t=t||[0,0],s.orient==="horizontal"?(d.pixel=o[0]-t[0],d.pixelLength=c.width,d.pixelStart=c.x,d.signal=s.inverse?1:-1):(d.pixel=o[1]-t[1],d.pixelLength=c.height,d.pixelStart=c.y,d.signal=s.inverse?-1:1),d}},i=f;k.exports=i},Mt2t:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("FhB9")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="SwapRightOutlined";var i=A.forwardRef(a);D.default=i},MvSz:function(k,D,n){var y=n("LXxW"),p=n("0ycA"),x=Object.prototype,A=x.propertyIsEnumerable,m=Object.getOwnPropertySymbols,f=m?function(h){return h==null?[]:(h=Object(h),y(m(h),function(u){return A.call(h,u)}))}:p;k.exports=f},MwEJ:function(k,D,n){var y=n("bYtY"),p=n("YXkt"),x=n("sdST"),A=n("k9D9"),m=A.SOURCE_FORMAT_ORIGINAL,f=n("L0Ub"),h=f.getDimensionTypeByAxis,u=n("4NO4"),a=u.getDataItemValue,i=n("IDmD"),t=n("i38C"),o=t.getCoordSysInfoBySeries,e=n("7G+c"),l=n("7hqr"),r=l.enableDataStack,s=n("D5nY"),c=s.makeSeriesEncodeForAxisCoordSys;function d(S,E,C){C=C||{},e.isInstance(S)||(S=e.seriesDataToSource(S));var _=E.get("coordinateSystem"),T=i.get(_),w=o(E),O;w&&(O=y.map(w.coordSysDims,function(B){var j={name:B},W=w.axisMap.get(B);if(W){var z=W.get("type");j.type=h(z)}return j})),O||(O=T&&(T.getDimensionsInfo?T.getDimensionsInfo():T.dimensions.slice())||["x","y"]);var I=x(S,{coordDimensions:O,generateCoord:C.generateCoord,encodeDefaulter:C.useEncodeDefaulter?y.curry(c,O,E):null}),R,M;w&&y.each(I,function(B,j){var W=B.coordDim,z=w.categoryAxisMap.get(W);z&&(R==null&&(R=j),B.ordinalMeta=z.getOrdinalMeta()),B.otherDims.itemName!=null&&(M=!0)}),!M&&R!=null&&(I[R].otherDims.itemName=0);var F=r(E,I),P=new p(I,E);P.setCalculationInfo(F);var X=R!=null&&g(S)?function(B,j,W,z){return z===R?W:this.defaultDimValueGetter(B,j,W,z)}:null;return P.hasItemOption=!1,P.initData(S,null,X),P}function g(S){if(S.sourceFormat===m){var E=v(S.data||[]);return E!=null&&!y.isArray(a(E))}}function v(S){for(var E=0;E<S.length&&S[E]==null;)E++;return S[E]}var b=d;k.exports=b},Mylv:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("IwbS"),A=n("oVpE"),m=A.createSymbol,f=n("OELB"),h=f.parsePercent,u=f.isNumeric,a=n("56rv"),i=a.setLabel,t=["itemStyle","borderWidth"],o=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],e=new x.Circle,l=y.extendChartView({type:"pictorialBar",render:function(V,Q,G){var ee=this.group,ce=V.getData(),be=this._data,le=V.coordinateSystem,Ie=le.getBaseAxis(),ke=!!Ie.isHorizontal(),Re=le.grid.getRect(),Qe={ecSize:{width:G.getWidth(),height:G.getHeight()},seriesModel:V,coordSys:le,coordSysExtent:[[Re.x,Re.x+Re.width],[Re.y,Re.y+Re.height]],isHorizontal:ke,valueDim:o[+ke],categoryDim:o[1-ke]};return ce.diff(be).add(function(We){if(!ce.hasValue(We))return;var ot=T(ce,We),Oe=r(ce,We,ot,Qe),oe=R(ce,Qe,Oe);ce.setItemGraphicEl(We,oe),ee.add(oe),j(oe,Qe,Oe)}).update(function(We,ot){var Oe=be.getItemGraphicEl(ot);if(!ce.hasValue(We)){ee.remove(Oe);return}var oe=T(ce,We),st=r(ce,We,oe,Qe),he=P(ce,st);Oe&&he!==Oe.__pictorialShapeStr&&(ee.remove(Oe),ce.setItemGraphicEl(We,null),Oe=null),Oe?M(Oe,Qe,st):Oe=R(ce,Qe,st,!0),ce.setItemGraphicEl(We,Oe),Oe.__pictorialSymbolMeta=st,ee.add(Oe),j(Oe,Qe,st)}).remove(function(We){var ot=be.getItemGraphicEl(We);ot&&F(be,We,ot.__pictorialSymbolMeta.animationModel,ot)}).execute(),this._data=ce,this.group},dispose:p.noop,remove:function(V,Q){var G=this.group,ee=this._data;V.get("animation")?ee&&ee.eachItemGraphicEl(function(ce){F(ee,ce.dataIndex,V,ce)}):G.removeAll()}});function r(V,Q,G,ee){var ce=V.getItemLayout(Q),be=G.get("symbolRepeat"),le=G.get("symbolClip"),Ie=G.get("symbolPosition")||"start",ke=G.get("symbolRotate"),Re=(ke||0)*Math.PI/180||0,Qe=G.get("symbolPatternSize")||2,We=G.isAnimationEnabled(),ot={dataIndex:Q,layout:ce,itemModel:G,symbolType:V.getItemVisual(Q,"symbol")||"circle",color:V.getItemVisual(Q,"color"),symbolClip:le,symbolRepeat:be,symbolRepeatDirection:G.get("symbolRepeatDirection"),symbolPatternSize:Qe,rotation:Re,animationModel:We?G:null,hoverAnimation:We&&G.get("hoverAnimation"),z2:G.getShallow("z",!0)||0};s(G,be,ce,ee,ot),d(V,Q,ce,be,le,ot.boundingLength,ot.pxSign,Qe,ee,ot),g(G,ot.symbolScale,Re,ee,ot);var Oe=ot.symbolSize,oe=G.get("symbolOffset");return p.isArray(oe)&&(oe=[h(oe[0],Oe[0]),h(oe[1],Oe[1])]),v(G,Oe,ce,be,le,oe,Ie,ot.valueLineWidth,ot.boundingLength,ot.repeatCutLength,ee,ot),ot}function s(V,Q,G,ee,ce){var be=ee.valueDim,le=V.get("symbolBoundingData"),Ie=ee.coordSys.getOtherAxis(ee.coordSys.getBaseAxis()),ke=Ie.toGlobalCoord(Ie.dataToCoord(0)),Re=1-+(G[be.wh]<=0),Qe;if(p.isArray(le)){var We=[c(Ie,le[0])-ke,c(Ie,le[1])-ke];We[1]<We[0]&&We.reverse(),Qe=We[Re]}else le!=null?Qe=c(Ie,le)-ke:Q?Qe=ee.coordSysExtent[be.index][Re]-ke:Qe=G[be.wh];ce.boundingLength=Qe,Q&&(ce.repeatCutLength=G[be.wh]),ce.pxSign=Qe>0?1:Qe<0?-1:0}function c(V,Q){return V.toGlobalCoord(V.dataToCoord(V.scale.parse(Q)))}function d(V,Q,G,ee,ce,be,le,Ie,ke,Re){var Qe=ke.valueDim,We=ke.categoryDim,ot=Math.abs(G[We.wh]),Oe=V.getItemVisual(Q,"symbolSize");p.isArray(Oe)?Oe=Oe.slice():(Oe==null&&(Oe="100%"),Oe=[Oe,Oe]),Oe[We.index]=h(Oe[We.index],ot),Oe[Qe.index]=h(Oe[Qe.index],ee?ot:Math.abs(be)),Re.symbolSize=Oe;var oe=Re.symbolScale=[Oe[0]/Ie,Oe[1]/Ie];oe[Qe.index]*=(ke.isHorizontal?-1:1)*le}function g(V,Q,G,ee,ce){var be=V.get(t)||0;be&&(e.attr({scale:Q.slice(),rotation:G}),e.updateTransform(),be/=e.getLineScale(),be*=Q[ee.valueDim.index]),ce.valueLineWidth=be}function v(V,Q,G,ee,ce,be,le,Ie,ke,Re,Qe,We){var ot=Qe.categoryDim,Oe=Qe.valueDim,oe=We.pxSign,st=Math.max(Q[Oe.index]+Ie,0),he=st;if(ee){var J=Math.abs(ke),Y=p.retrieve(V.get("symbolMargin"),"15%")+"",$=!1;Y.lastIndexOf("!")===Y.length-1&&($=!0,Y=Y.slice(0,Y.length-1)),Y=h(Y,Q[Oe.index]);var fe=Math.max(st+Y*2,0),we=$?0:Y*2,Ne=u(ee),Ee=Ne?ee:W((J+we)/fe),de=J-Ee*st;Y=de/2/($?Ee:Ee-1),fe=st+Y*2,we=$?0:Y*2,!Ne&&ee!=="fixed"&&(Ee=Re?W((Math.abs(Re)+we)/fe):0),he=Ee*fe-we,We.repeatTimes=Ee,We.symbolMargin=Y}var me=oe*(he/2),Le=We.pathPosition=[];Le[ot.index]=G[ot.wh]/2,Le[Oe.index]=le==="start"?me:le==="end"?ke-me:ke/2,be&&(Le[0]+=be[0],Le[1]+=be[1]);var tt=We.bundlePosition=[];tt[ot.index]=G[ot.xy],tt[Oe.index]=G[Oe.xy];var At=We.barRectShape=p.extend({},G);At[Oe.wh]=oe*Math.max(Math.abs(G[Oe.wh]),Math.abs(Le[Oe.index]+me)),At[ot.wh]=G[ot.wh];var ht=We.clipShape={};ht[ot.xy]=-G[ot.xy],ht[ot.wh]=Qe.ecSize[ot.wh],ht[Oe.xy]=0,ht[Oe.wh]=G[Oe.wh]}function b(V){var Q=V.symbolPatternSize,G=m(V.symbolType,-Q/2,-Q/2,Q,Q,V.color);return G.attr({culling:!0}),G.type!=="image"&&G.setStyle({strokeNoScale:!0}),G}function S(V,Q,G,ee){var ce=V.__pictorialBundle,be=G.symbolSize,le=G.valueLineWidth,Ie=G.pathPosition,ke=Q.valueDim,Re=G.repeatTimes||0,Qe=0,We=be[Q.valueDim.index]+le+G.symbolMargin*2;for(X(V,function(J){J.__pictorialAnimationIndex=Qe,J.__pictorialRepeatTimes=Re,Qe<Re?B(J,null,oe(Qe),G,ee):B(J,null,{scale:[0,0]},G,ee,function(){ce.remove(J)}),I(J,G),Qe++});Qe<Re;Qe++){var ot=b(G);ot.__pictorialAnimationIndex=Qe,ot.__pictorialRepeatTimes=Re,ce.add(ot);var Oe=oe(Qe);B(ot,{position:Oe.position,scale:[0,0]},{scale:Oe.scale,rotation:Oe.rotation},G,ee),ot.on("mouseover",st).on("mouseout",he),I(ot,G)}function oe(J){var Y=Ie.slice(),$=G.pxSign,fe=J;return(G.symbolRepeatDirection==="start"?$>0:$<0)&&(fe=Re-1-J),Y[ke.index]=We*(fe-Re/2+.5)+Ie[ke.index],{position:Y,scale:G.symbolScale.slice(),rotation:G.rotation}}function st(){X(V,function(J){J.trigger("emphasis")})}function he(){X(V,function(J){J.trigger("normal")})}}function E(V,Q,G,ee){var ce=V.__pictorialBundle,be=V.__pictorialMainPath;be?B(be,null,{position:G.pathPosition.slice(),scale:G.symbolScale.slice(),rotation:G.rotation},G,ee):(be=V.__pictorialMainPath=b(G),ce.add(be),B(be,{position:G.pathPosition.slice(),scale:[0,0],rotation:G.rotation},{scale:G.symbolScale.slice()},G,ee),be.on("mouseover",le).on("mouseout",Ie)),I(be,G);function le(){this.trigger("emphasis")}function Ie(){this.trigger("normal")}}function C(V,Q,G){var ee=p.extend({},Q.barRectShape),ce=V.__pictorialBarRect;ce?B(ce,null,{shape:ee},Q,G):(ce=V.__pictorialBarRect=new x.Rect({z2:2,shape:ee,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),V.add(ce))}function _(V,Q,G,ee){if(G.symbolClip){var ce=V.__pictorialClipPath,be=p.extend({},G.clipShape),le=Q.valueDim,Ie=G.animationModel,ke=G.dataIndex;if(ce)x.updateProps(ce,{shape:be},Ie,ke);else{be[le.wh]=0,ce=new x.Rect({shape:be}),V.__pictorialBundle.setClipPath(ce),V.__pictorialClipPath=ce;var Re={};Re[le.wh]=G.clipShape[le.wh],x[ee?"updateProps":"initProps"](ce,{shape:Re},Ie,ke)}}}function T(V,Q){var G=V.getItemModel(Q);return G.getAnimationDelayParams=w,G.isAnimationEnabled=O,G}function w(V){return{index:V.__pictorialAnimationIndex,count:V.__pictorialRepeatTimes}}function O(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function I(V,Q){V.off("emphasis").off("normal");var G=Q.symbolScale.slice();Q.hoverAnimation&&V.on("emphasis",function(){this.animateTo({scale:[G[0]*1.1,G[1]*1.1]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:G.slice()},400,"elasticOut")})}function R(V,Q,G,ee){var ce=new x.Group,be=new x.Group;return ce.add(be),ce.__pictorialBundle=be,be.attr("position",G.bundlePosition.slice()),G.symbolRepeat?S(ce,Q,G):E(ce,Q,G),C(ce,G,ee),_(ce,Q,G,ee),ce.__pictorialShapeStr=P(V,G),ce.__pictorialSymbolMeta=G,ce}function M(V,Q,G){var ee=G.animationModel,ce=G.dataIndex,be=V.__pictorialBundle;x.updateProps(be,{position:G.bundlePosition.slice()},ee,ce),G.symbolRepeat?S(V,Q,G,!0):E(V,Q,G,!0),C(V,G,!0),_(V,Q,G,!0)}function F(V,Q,G,ee){var ce=ee.__pictorialBarRect;ce&&(ce.style.text=null);var be=[];X(ee,function(le){be.push(le)}),ee.__pictorialMainPath&&be.push(ee.__pictorialMainPath),ee.__pictorialClipPath&&(G=null),p.each(be,function(le){x.updateProps(le,{scale:[0,0]},G,Q,function(){ee.parent&&ee.parent.remove(ee)})}),V.setItemGraphicEl(Q,null)}function P(V,Q){return[V.getItemVisual(Q.dataIndex,"symbol")||"none",!!Q.symbolRepeat,!!Q.symbolClip].join(":")}function X(V,Q,G){p.each(V.__pictorialBundle.children(),function(ee){ee!==V.__pictorialBarRect&&Q.call(G,ee)})}function B(V,Q,G,ee,ce,be){Q&&V.attr(Q),ee.symbolClip&&!ce?G&&V.attr(G):G&&x[ce?"updateProps":"initProps"](V,G,ee.animationModel,ee.dataIndex,be)}function j(V,Q,G){var ee=G.color,ce=G.dataIndex,be=G.itemModel,le=be.getModel("itemStyle").getItemStyle(["color"]),Ie=be.getModel("emphasis.itemStyle").getItemStyle(),ke=be.getShallow("cursor");X(V,function(ot){ot.setColor(ee),ot.setStyle(p.defaults({fill:ee,opacity:G.opacity},le)),x.setHoverStyle(ot,Ie),ke&&(ot.cursor=ke),ot.z2=G.z2});var Re={},Qe=Q.valueDim.posDesc[+(G.boundingLength>0)],We=V.__pictorialBarRect;i(We.style,Re,be,ee,Q.seriesModel,ce,Qe),x.setHoverStyle(We,Re)}function W(V){var Q=Math.round(V);return Math.abs(V-Q)<1e-4?Q:Math.ceil(V)}var z=l;k.exports=z},"N/zr":function(k,D,n){"use strict";function y(f){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(u){return typeof u}:y=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},y(f)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var p=A(n("Lo0S"));function x(){if(typeof WeakMap!="function")return null;var f=new WeakMap;return x=function(){return f},f}function A(f){if(f&&f.__esModule)return f;if(f===null||y(f)!=="object"&&typeof f!="function")return{default:f};var h=x();if(h&&h.has(f))return h.get(f);var u={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in f)if(Object.prototype.hasOwnProperty.call(f,i)){var t=a?Object.getOwnPropertyDescriptor(f,i):null;t&&(t.get||t.set)?Object.defineProperty(u,i,t):u[i]=f[i]}return u.default=f,h&&h.set(f,u),u}var m={toBase64Table:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),base64Pad:"=",encode:function(h){"use strict";for(var u="",a=h.length,i=a%3,t=0;t<a-2;t+=3)u+=this.toBase64Table[h[t]>>2],u+=this.toBase64Table[((h[t]&3)<<4)+(h[t+1]>>4)],u+=this.toBase64Table[((h[t+1]&15)<<2)+(h[t+2]>>6)],u+=this.toBase64Table[h[t+2]&63];var o=a-i;return i===2?(u+=this.toBase64Table[h[o]>>2],u+=this.toBase64Table[((h[o]&3)<<4)+(h[o+1]>>4)],u+=this.toBase64Table[(h[o+1]&15)<<2],u+=this.toBase64Table[64]):i===1&&(u+=this.toBase64Table[h[o]>>2],u+=this.toBase64Table[(h[o]&3)<<4],u+=this.toBase64Table[64],u+=this.toBase64Table[64]),u},toBinaryTable:[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1],decode:function(h){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=h.indexOf("=")-u;a<0&&(a=h.length-u);for(var i=(a>>2)*3+Math.floor(a%4/1.5),t=new Array(i),o=0,e=0,l=0,r=u;r<h.length;r++){var s=this.toBinaryTable[h.charCodeAt(r)&127],c=h.charAt(r)===this.base64Pad;if(s===-1){p.Error("Illegal character code "+h.charCodeAt(r)+" at position "+r);continue}e=e<<6|s,o+=6,o>=8&&(o-=8,c||(t[l++]=e>>o&255),e&=(1<<o)-1)}if(o){var d=new Error("Corrupted base64 string");throw d.name="Base64-Error",d}return t}};D.default=m},N5BQ:function(k,D,n){var y=n("OlYY"),p=y.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}}),x=p;k.exports=x},NA0q:function(k,D,n){var y=n("bYtY"),p=n("6Ic6"),x=n("TkdX"),A=n("gPAo"),m=n("7aKB"),f=m.windowOpen,h="sunburstRootToNode",u=p.extend({type:"sunburst",init:function(){},render:function(i,t,o,e){var l=this;this.seriesModel=i,this.api=o,this.ecModel=t;var r=i.getData(),s=r.tree.root,c=i.getViewRoot(),d=this.group,g=i.get("renderLabelForZeroData"),v=[];c.eachNode(function(O){v.push(O)});var b=this._oldChildren||[];if(C(v,b),w(s,c),e&&e.highlight&&e.highlight.piece){var S=i.getShallow("highlightPolicy");e.highlight.piece.onEmphasis(S)}else if(e&&e.unhighlight){var E=this.virtualPiece;!E&&s.children.length&&(E=s.children[0].piece),E&&E.onNormal()}this._initEvents(),this._oldChildren=v;function C(O,I){if(O.length===0&&I.length===0)return;new A(I,O,R,R).add(M).update(M).remove(y.curry(M,null)).execute();function R(F){return F.getId()}function M(F,P){var X=F==null?null:O[F],B=P==null?null:I[P];_(X,B)}}function _(O,I){if(!g&&O&&!O.getValue()&&(O=null),O!==s&&I!==s){if(I&&I.piece)O?(I.piece.updateData(!1,O,"normal",i,t),r.setItemGraphicEl(O.dataIndex,I.piece)):T(I);else if(O){var R=new x(O,i,t);d.add(R),r.setItemGraphicEl(O.dataIndex,R)}}}function T(O){if(!O)return;O.piece&&(d.remove(O.piece),O.piece=null)}function w(O,I){if(I.depth>0){l.virtualPiece?l.virtualPiece.updateData(!1,O,"normal",i,t):(l.virtualPiece=new x(O,i,t),d.add(l.virtualPiece)),I.piece._onclickEvent&&I.piece.off("click",I.piece._onclickEvent);var R=function(M){l._rootToNode(I.parentNode)};I.piece._onclickEvent=R,l.virtualPiece.on("click",R)}else l.virtualPiece&&(d.remove(l.virtualPiece),l.virtualPiece=null)}},dispose:function(){},_initEvents:function(){var i=this,t=function(o){var e=!1,l=i.seriesModel.getViewRoot();l.eachNode(function(r){if(!e&&r.piece&&r.piece.childAt(0)===o.target){var s=r.getModel().get("nodeClick");if(s==="rootToNode")i._rootToNode(r);else if(s==="link"){var c=r.getModel(),d=c.get("link");if(d){var g=c.get("target",!0)||"_blank";f(d,g)}}e=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",t),this.group._onclickEvent=t},_rootToNode:function(i){i!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:h,from:this.uid,seriesId:this.seriesModel.id,targetNode:i})},containPoint:function(i,t){var o=t.getData(),e=o.getItemLayout(0);if(e){var l=i[0]-e.cx,r=i[1]-e.cy,s=Math.sqrt(l*l+r*r);return s<=e.r&&s>=e.r0}}}),a=u;k.exports=a},NBmB:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.encodingName=p,D.encodings=void 0;var y={encodingRaw:0,encodingCopyRect:1,encodingRRE:2,encodingHextile:5,encodingTight:7,encodingTightPNG:-260,pseudoEncodingQualityLevel9:-23,pseudoEncodingQualityLevel0:-32,pseudoEncodingDesktopSize:-223,pseudoEncodingLastRect:-224,pseudoEncodingCursor:-239,pseudoEncodingQEMUExtendedKeyEvent:-258,pseudoEncodingDesktopName:-307,pseudoEncodingExtendedDesktopSize:-308,pseudoEncodingXvp:-309,pseudoEncodingFence:-312,pseudoEncodingContinuousUpdates:-313,pseudoEncodingCompressLevel9:-247,pseudoEncodingCompressLevel0:-256,pseudoEncodingVMwareCursor:1464686180,pseudoEncodingExtendedClipboard:3231835598};D.encodings=y;function p(x){switch(x){case y.encodingRaw:return"Raw";case y.encodingCopyRect:return"CopyRect";case y.encodingRRE:return"RRE";case y.encodingHextile:return"Hextile";case y.encodingTight:return"Tight";case y.encodingTightPNG:return"TightPNG";default:return"[unknown encoding "+x+"]"}}},NC18:function(k,D,n){var y=n("y+Vt"),p=n("IMiH"),x=n("7oTu"),A=Math.sqrt,m=Math.sin,f=Math.cos,h=Math.PI,u=function(v){return Math.sqrt(v[0]*v[0]+v[1]*v[1])},a=function(v,b){return(v[0]*b[0]+v[1]*b[1])/(u(v)*u(b))},i=function(v,b){return(v[0]*b[1]<v[1]*b[0]?-1:1)*Math.acos(a(v,b))};function t(g,v,b,S,E,C,_,T,w,O,I){var R=w*(h/180),M=f(R)*(g-b)/2+m(R)*(v-S)/2,F=-1*m(R)*(g-b)/2+f(R)*(v-S)/2,P=M*M/(_*_)+F*F/(T*T);P>1&&(_*=A(P),T*=A(P));var X=(E===C?-1:1)*A((_*_*(T*T)-_*_*(F*F)-T*T*(M*M))/(_*_*(F*F)+T*T*(M*M)))||0,B=X*_*F/T,j=X*-T*M/_,W=(g+b)/2+f(R)*B-m(R)*j,z=(v+S)/2+m(R)*B+f(R)*j,V=i([1,0],[(M-B)/_,(F-j)/T]),Q=[(M-B)/_,(F-j)/T],G=[(-1*M-B)/_,(-1*F-j)/T],ee=i(Q,G);a(Q,G)<=-1&&(ee=h),a(Q,G)>=1&&(ee=0),C===0&&ee>0&&(ee=ee-2*h),C===1&&ee<0&&(ee=ee+2*h),I.addData(O,W,z,_,T,V,ee,R,C)}var o=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function l(g){if(!g)return new p;for(var v=0,b=0,S=v,E=b,C,_=new p,T=p.CMD,w=g.match(o),O=0;O<w.length;O++){for(var I=w[O],R=I.charAt(0),M,F=I.match(e)||[],P=F.length,X=0;X<P;X++)F[X]=parseFloat(F[X]);for(var B=0;B<P;){var j,W,z,V,Q,G,ee,ce=v,be=b;switch(R){case"l":v+=F[B++],b+=F[B++],M=T.L,_.addData(M,v,b);break;case"L":v=F[B++],b=F[B++],M=T.L,_.addData(M,v,b);break;case"m":v+=F[B++],b+=F[B++],M=T.M,_.addData(M,v,b),S=v,E=b,R="l";break;case"M":v=F[B++],b=F[B++],M=T.M,_.addData(M,v,b),S=v,E=b,R="L";break;case"h":v+=F[B++],M=T.L,_.addData(M,v,b);break;case"H":v=F[B++],M=T.L,_.addData(M,v,b);break;case"v":b+=F[B++],M=T.L,_.addData(M,v,b);break;case"V":b=F[B++],M=T.L,_.addData(M,v,b);break;case"C":M=T.C,_.addData(M,F[B++],F[B++],F[B++],F[B++],F[B++],F[B++]),v=F[B-2],b=F[B-1];break;case"c":M=T.C,_.addData(M,F[B++]+v,F[B++]+b,F[B++]+v,F[B++]+b,F[B++]+v,F[B++]+b),v+=F[B-2],b+=F[B-1];break;case"S":j=v,W=b;var le=_.len(),Ie=_.data;C===T.C&&(j+=v-Ie[le-4],W+=b-Ie[le-3]),M=T.C,ce=F[B++],be=F[B++],v=F[B++],b=F[B++],_.addData(M,j,W,ce,be,v,b);break;case"s":j=v,W=b;var le=_.len(),Ie=_.data;C===T.C&&(j+=v-Ie[le-4],W+=b-Ie[le-3]),M=T.C,ce=v+F[B++],be=b+F[B++],v+=F[B++],b+=F[B++],_.addData(M,j,W,ce,be,v,b);break;case"Q":ce=F[B++],be=F[B++],v=F[B++],b=F[B++],M=T.Q,_.addData(M,ce,be,v,b);break;case"q":ce=F[B++]+v,be=F[B++]+b,v+=F[B++],b+=F[B++],M=T.Q,_.addData(M,ce,be,v,b);break;case"T":j=v,W=b;var le=_.len(),Ie=_.data;C===T.Q&&(j+=v-Ie[le-4],W+=b-Ie[le-3]),v=F[B++],b=F[B++],M=T.Q,_.addData(M,j,W,v,b);break;case"t":j=v,W=b;var le=_.len(),Ie=_.data;C===T.Q&&(j+=v-Ie[le-4],W+=b-Ie[le-3]),v+=F[B++],b+=F[B++],M=T.Q,_.addData(M,j,W,v,b);break;case"A":z=F[B++],V=F[B++],Q=F[B++],G=F[B++],ee=F[B++],ce=v,be=b,v=F[B++],b=F[B++],M=T.A,t(ce,be,v,b,G,ee,z,V,Q,M,_);break;case"a":z=F[B++],V=F[B++],Q=F[B++],G=F[B++],ee=F[B++],ce=v,be=b,v+=F[B++],b+=F[B++],M=T.A,t(ce,be,v,b,G,ee,z,V,Q,M,_);break}}(R==="z"||R==="Z")&&(M=T.Z,_.addData(M),v=S,b=E),C=M}return _.toStatic(),_}function r(g,v){var b=l(g);return v=v||{},v.buildPath=function(S){if(S.setData){S.setData(b.data);var E=S.getContext();E&&S.rebuildPath(E)}else{var E=S;b.rebuildPath(E)}},v.applyTransform=function(S){x(b,S),this.dirty(!0)},v}function s(g,v){return new y(r(g,v))}function c(g,v){return y.extend(r(g,v))}function d(g,v){for(var b=[],S=g.length,E=0;E<S;E++){var C=g[E];C.path||C.createPathProxy(),C.__dirtyPath&&C.buildPath(C.path,C.shape,!0),b.push(C.path)}var _=new y(v);return _.createPathProxy(),_.buildPath=function(T){T.appendPath(b);var w=T.getContext();w&&T.rebuildPath(w)},_}D.createFromString=s,D.extendFromString=c,D.mergePath=d},NFKh:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("MlIO"),n("F+F2"),n("qM6L"),n("ETIr"),n("wbyO"),n("cv67"),n("3y9D"),n("lPiR"),n("GRuw"),n("1uat"),n("uGsb"),n("5hvy"),n("ELcG"),n("WYAk"),n("e7zE"),n("K3mO"),n("OLod"),n("ALsQ"),n("9OqN"),n("qu8F"),n("S6kV"),n("gb/T"),n("qBft"),n("oRuE"),n("jO9C"),n("KmYQ"),n("uGxW"),n("bQjk"),n("wZgz"),n("pA7S"),n("w7YG"),n("E4JC"),n("PVpz"))})(this,function(y){return y})},NH9N:function(k,D,n){var y=n("bYtY"),p=n("mFDi"),x=n("Fofx"),A=n("IwbS"),m=n("+TT/"),f=n("kzvK"),h=n("CMP+"),u=n("oVpE"),a=u.createSymbol,i=n("aX7z"),t=n("OELB"),o=n("7aKB"),e=o.encodeHTML,l=y.bind,r=y.each,s=Math.PI,c=f.extend({type:"timeline.slider",init:function(S,E){this.api=E,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(S,E,C,_){if(this.model=S,this.api=C,this.ecModel=E,this.group.removeAll(),S.get("show",!0)){var T=this._layout(S,C),w=this._createGroup("mainGroup"),O=this._createGroup("labelGroup"),I=this._axis=this._createAxis(T,S);S.formatTooltip=function(R){return e(I.scale.getLabel(R))},r(["AxisLine","AxisTick","Control","CurrentPointer"],function(R){this["_render"+R](T,w,I,S)},this),this._renderAxisLabel(T,O,I,S),this._position(T,S)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(S,E){var C=S.get("label.position"),_=S.get("orient"),T=d(S,E);C==null||C==="auto"?C=_==="horizontal"?T.y+T.height/2<E.getHeight()/2?"-":"+":T.x+T.width/2<E.getWidth()/2?"+":"-":isNaN(C)&&(C={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[_][C]);var w={horizontal:"center",vertical:C>=0||C==="+"?"left":"right"},O={horizontal:C>=0||C==="+"?"top":"bottom",vertical:"middle"},I={horizontal:0,vertical:s/2},R=_==="vertical"?T.height:T.width,M=S.getModel("controlStyle"),F=M.get("show",!0),P=F?M.get("itemSize"):0,X=F?M.get("itemGap"):0,B=P+X,j=S.get("label.rotate")||0;j=j*s/180;var W,z,V,Q,G=M.get("position",!0),ee=F&&M.get("showPlayBtn",!0),ce=F&&M.get("showPrevBtn",!0),be=F&&M.get("showNextBtn",!0),le=0,Ie=R;return G==="left"||G==="bottom"?(ee&&(W=[0,0],le+=B),ce&&(z=[le,0],le+=B),be&&(V=[Ie-P,0],Ie-=B)):(ee&&(W=[Ie-P,0],Ie-=B),ce&&(z=[0,0],le+=B),be&&(V=[Ie-P,0],Ie-=B)),Q=[le,Ie],S.get("inverse")&&Q.reverse(),{viewRect:T,mainLength:R,orient:_,rotation:I[_],labelRotation:j,labelPosOpt:C,labelAlign:S.get("label.align")||w[_],labelBaseline:S.get("label.verticalAlign")||S.get("label.baseline")||O[_],playPosition:W,prevBtnPosition:z,nextBtnPosition:V,axisExtent:Q,controlSize:P,controlGap:X}},_position:function(S,E){var C=this._mainGroup,_=this._labelGroup,T=S.viewRect;if(S.orient==="vertical"){var w=x.create(),O=T.x,I=T.y+T.height;x.translate(w,w,[-O,-I]),x.rotate(w,w,-s/2),x.translate(w,w,[O,I]),T=T.clone(),T.applyTransform(w)}var R=z(T),M=z(C.getBoundingRect()),F=z(_.getBoundingRect()),P=C.position,X=_.position;X[0]=P[0]=R[0][0];var B=S.labelPosOpt;if(isNaN(B)){var j=B==="+"?0:1;V(P,M,R,1,j),V(X,F,R,1,1-j)}else{var j=B>=0?0:1;V(P,M,R,1,j),X[1]=P[1]+B}C.attr("position",P),_.attr("position",X),C.rotation=_.rotation=S.rotation,W(C),W(_);function W(Q){var G=Q.position;Q.origin=[R[0][0]-G[0],R[1][0]-G[1]]}function z(Q){return[[Q.x,Q.x+Q.width],[Q.y,Q.y+Q.height]]}function V(Q,G,ee,ce,be){Q[ce]+=ee[ce][be]-G[ce][be]}},_createAxis:function(S,E){var C=E.getData(),_=E.get("axisType"),T=i.createScaleByModel(E,_);T.getTicks=function(){return C.mapArray(["value"],function(I){return I})};var w=C.getDataExtent("value");T.setExtent(w[0],w[1]),T.niceTicks();var O=new h("value",T,S.axisExtent,_);return O.model=E,O},_createGroup:function(S){var E=this["_"+S]=new A.Group;return this.group.add(E),E},_renderAxisLine:function(S,E,C,_){var T=C.getExtent();if(!_.get("lineStyle.show"))return;E.add(new A.Line({shape:{x1:T[0],y1:0,x2:T[1],y2:0},style:y.extend({lineCap:"round"},_.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(S,E,C,_){var T=_.getData(),w=C.scale.getTicks();r(w,function(O){var I=C.dataToCoord(O),R=T.getItemModel(O),M=R.getModel("itemStyle"),F=R.getModel("emphasis.itemStyle"),P={position:[I,0],onclick:l(this._changeTimeline,this,O)},X=v(R,M,E,P);A.setHoverStyle(X,F.getItemStyle()),R.get("tooltip")?(X.dataIndex=O,X.dataModel=_):X.dataIndex=X.dataModel=null},this)},_renderAxisLabel:function(S,E,C,_){var T=C.getLabelModel();if(!T.get("show"))return;var w=_.getData(),O=C.getViewLabels();r(O,function(I){var R=I.tickValue,M=w.getItemModel(R),F=M.getModel("label"),P=M.getModel("emphasis.label"),X=C.dataToCoord(I.tickValue),B=new A.Text({position:[X,0],rotation:S.labelRotation-S.rotation,onclick:l(this._changeTimeline,this,R),silent:!1});A.setTextStyle(B.style,F,{text:I.formattedLabel,textAlign:S.labelAlign,textVerticalAlign:S.labelBaseline}),E.add(B),A.setHoverStyle(B,A.setTextStyle({},P))},this)},_renderControl:function(S,E,C,_){var T=S.controlSize,w=S.rotation,O=_.getModel("controlStyle").getItemStyle(),I=_.getModel("emphasis.controlStyle").getItemStyle(),R=[0,-T/2,T,T],M=_.getPlayState(),F=_.get("inverse",!0);P(S.nextBtnPosition,"controlStyle.nextIcon",l(this._changeTimeline,this,F?"-":"+")),P(S.prevBtnPosition,"controlStyle.prevIcon",l(this._changeTimeline,this,F?"+":"-")),P(S.playPosition,"controlStyle."+(M?"stopIcon":"playIcon"),l(this._handlePlayClick,this,!M),!0);function P(X,B,j,W){if(!X)return;var z={position:X,origin:[T/2,0],rotation:W?-w:0,rectHover:!0,style:O,onclick:j},V=g(_,B,R,z);E.add(V),A.setHoverStyle(V,I)}},_renderCurrentPointer:function(S,E,C,_){var T=_.getData(),w=_.getCurrentIndex(),O=T.getItemModel(w).getModel("checkpointStyle"),I=this,R={onCreate:function(M){M.draggable=!0,M.drift=l(I._handlePointerDrag,I),M.ondragend=l(I._handlePointerDragend,I),b(M,w,C,_,!0)},onUpdate:function(M){b(M,w,C,_)}};this._currentPointer=v(O,O,this._mainGroup,{},this._currentPointer,R)},_handlePlayClick:function(S){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:S,from:this.uid})},_handlePointerDrag:function(S,E,C){this._clearTimer(),this._pointerChangeTimeline([C.offsetX,C.offsetY])},_handlePointerDragend:function(S){this._pointerChangeTimeline([S.offsetX,S.offsetY],!0)},_pointerChangeTimeline:function(S,E){var C=this._toAxisCoord(S)[0],_=this._axis,T=t.asc(_.getExtent().slice());C>T[1]&&(C=T[1]),C<T[0]&&(C=T[0]),this._currentPointer.position[0]=C,this._currentPointer.dirty();var w=this._findNearestTick(C),O=this.model;(E||w!==O.getCurrentIndex()&&O.get("realtime"))&&this._changeTimeline(w)},_doPlayStop:function(){this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(l(S,this),this.model.get("playInterval")));function S(){var E=this.model;this._changeTimeline(E.getCurrentIndex()+(E.get("rewind",!0)?-1:1))}},_toAxisCoord:function(S){var E=this._mainGroup.getLocalTransform();return A.applyTransform(S,E,!0)},_findNearestTick:function(S){var E=this.model.getData(),C=Infinity,_,T=this._axis;return E.each(["value"],function(w,O){var I=T.dataToCoord(w),R=Math.abs(I-S);R<C&&(C=R,_=O)}),_},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(S){var E=this.model.getCurrentIndex();S==="+"?S=E+1:S==="-"&&(S=E-1),this.api.dispatchAction({type:"timelineChange",currentIndex:S,from:this.uid})}});function d(S,E){return m.getLayoutRect(S.getBoxLayoutParams(),{width:E.getWidth(),height:E.getHeight()},S.get("padding"))}function g(S,E,C,_){var T=A.makePath(S.get(E).replace(/^path:\/\//,""),y.clone(_||{}),new p(C[0],C[1],C[2],C[3]),"center");return T}function v(S,E,C,_,T,w){var O=E.get("color");if(T)T.setColor(O),C.add(T),w&&w.onUpdate(T);else{var I=S.get("symbol");T=a(I,-1,-1,2,2,O),T.setStyle("strokeNoScale",!0),C.add(T),w&&w.onCreate(T)}var R=E.getItemStyle(["color","symbol","symbolSize"]);T.setStyle(R),_=y.merge({rectHover:!0,z2:100},_,!0);var M=S.get("symbolSize");M=M instanceof Array?M.slice():[+M,+M],M[0]/=2,M[1]/=2,_.scale=M;var F=S.get("symbolOffset");if(F){var P=_.position=_.position||[0,0];P[0]+=t.parsePercent(F[0],M[0]),P[1]+=t.parsePercent(F[1],M[1])}var X=S.get("symbolRotate");return _.rotation=(X||0)*Math.PI/180||0,T.attr(_),T.updateTransform(),T}function b(S,E,C,_,T){if(S.dragging)return;var w=_.getModel("checkpointStyle"),O=C.dataToCoord(_.getData().get(["value"],E));T||!w.get("animation",!0)?S.attr({position:[O,0]}):(S.stopAnimation(!0),S.animateTo({position:[O,0]},w.get("animationDuration",!0),w.get("animationEasing",!0)))}k.exports=c},NJEC:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("J4zp"),A=n.n(x),m=n("q1tI"),f=n.n(m),h=n("TSYQ"),u=n.n(h),a=n("/TCm"),i=n.n(a),t=n("4IlW"),o=n("3S7+"),e=n("2/Rp"),l=n("zvFY"),r=n("YMnH"),s=n("ZvpZ"),c=n("H84U"),d=n("bogI"),g=n("0n0R"),v=void 0,b=function(E,C){var _={};for(var T in E)Object.prototype.hasOwnProperty.call(E,T)&&C.indexOf(T)<0&&(_[T]=E[T]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,T=Object.getOwnPropertySymbols(E);w<T.length;w++)C.indexOf(T[w])<0&&Object.prototype.propertyIsEnumerable.call(E,T[w])&&(_[T[w]]=E[T[w]]);return _},S=m.forwardRef(function(E,C){var _=m.useState(E.visible),T=A()(_,2),w=T[0],O=T[1];m.useEffect(function(){"visible"in E&&O(E.visible)},[E.visible]),m.useEffect(function(){"defaultVisible"in E&&O(E.defaultVisible)},[E.defaultVisible]);var I=function(ke,Re){"visible"in E||O(ke),E.onVisibleChange&&E.onVisibleChange(ke,Re)},R=function(ke){I(!1,ke),E.onConfirm&&E.onConfirm.call(v,ke)},M=function(ke){I(!1,ke),E.onCancel&&E.onCancel.call(v,ke)},F=function(ke){ke.keyCode===t.a.ESC&&w&&I(!1,ke)},P=function(ke){var Re=E.disabled;if(Re)return;I(ke)},X=function(ke,Re){var Qe=E.okButtonProps,We=E.cancelButtonProps,ot=E.title,Oe=E.cancelText,oe=E.okText,st=E.okType,he=E.icon;return m.createElement("div",{className:"".concat(ke,"-inner-content")},m.createElement("div",{className:"".concat(ke,"-message")},he,m.createElement("div",{className:"".concat(ke,"-message-title")},Object(d.a)(ot))),m.createElement("div",{className:"".concat(ke,"-buttons")},m.createElement(e.a,p()({onClick:M,size:"small"},We),Oe||Re.cancelText),m.createElement(e.a,p()({onClick:R},Object(l.a)(st),{size:"small"},Qe),oe||Re.okText)))},B=m.useContext(c.b),j=B.getPrefixCls,W=E.prefixCls,z=E.placement,V=E.children,Q=E.overlayClassName,G=b(E,["prefixCls","placement","children","overlayClassName"]),ee=j("popover",W),ce=j("popconfirm",W),be=u()(ce,Q),le=m.createElement(r.a,{componentName:"Popconfirm",defaultLocale:s.a.Popconfirm},function(Ie){return X(ee,Ie)});return m.createElement(o.a,p()({},G,{prefixCls:ee,placement:z,onVisibleChange:P,visible:w,overlay:le,overlayClassName:be,ref:C}),Object(g.a)(V,{onKeyDown:function(ke){var Re,Qe;(Qe=V==null?void 0:(Re=V.props).onKeyDown)===null||Qe===void 0||Qe.call(Re,ke),F(ke)}}))});S.defaultProps={transitionName:"zoom-big",placement:"top",trigger:"click",okType:"primary",icon:m.createElement(i.a,null),disabled:!1},D.a=S},NKxu:function(k,D,n){var y=n("lSCD"),p=n("E2jh"),x=n("GoyQ"),A=n("3Fdi"),m=/[\\^$.*+?()[\]{}|]/g,f=/^\[object .+?Constructor\]$/,h=Function.prototype,u=Object.prototype,a=h.toString,i=u.hasOwnProperty,t=RegExp("^"+a.call(i).replace(m,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function o(e){if(!x(e)||p(e))return!1;var l=y(e)?t:f;return l.test(A(e))}k.exports=o},NUBc:function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),A=n.n(x),m=n("q1tI"),f=n.n(m),h=n("wx14"),u=n("rePB"),a=n("VTBJ"),i=n("1OyB"),t=n("vuIU"),o=n("Ji7U"),e=n("LK+K"),l=n("TSYQ"),r=n.n(l),s=function(Re){var Qe,We="".concat(Re.rootPrefixCls,"-item"),ot=r()(We,"".concat(We,"-").concat(Re.page),(Qe={},Object(u.a)(Qe,"".concat(We,"-active"),Re.active),Object(u.a)(Qe,Re.className,!!Re.className),Object(u.a)(Qe,"".concat(We,"-disabled"),!Re.page),Qe)),Oe=function(){Re.onClick(Re.page)},oe=function(he){Re.onKeyPress(he,Re.onClick,Re.page)};return f.a.createElement("li",{title:Re.showTitle?Re.page:null,className:ot,onClick:Oe,onKeyPress:oe,tabIndex:"0"},Re.itemRender(Re.page,"page",f.a.createElement("a",{rel:"nofollow"},Re.page)))},c=s,d={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},g=function(ke){Object(o.a)(Qe,ke);var Re=Object(e.a)(Qe);function Qe(){var We;Object(i.a)(this,Qe);for(var ot=arguments.length,Oe=new Array(ot),oe=0;oe<ot;oe++)Oe[oe]=arguments[oe];return We=Re.call.apply(Re,[this].concat(Oe)),We.state={goInputText:""},We.buildOptionText=function(st){return"".concat(st," ").concat(We.props.locale.items_per_page)},We.changeSize=function(st){We.props.changeSize(Number(st))},We.handleChange=function(st){We.setState({goInputText:st.target.value})},We.handleBlur=function(st){var he=We.props,J=he.goButton,Y=he.quickGo,$=he.rootPrefixCls,fe=We.state.goInputText;if(J||fe==="")return;if(st.relatedTarget&&(st.relatedTarget.className.indexOf("".concat($,"-prev"))>=0||st.relatedTarget.className.indexOf("".concat($,"-next"))>=0))return;We.setState({goInputText:""}),Y(We.getValidValue())},We.go=function(st){var he=We.state.goInputText;if(he==="")return;(st.keyCode===d.ENTER||st.type==="click")&&(We.setState({goInputText:""}),We.props.quickGo(We.getValidValue()))},We}return Object(t.a)(Qe,[{key:"getValidValue",value:function(){var ot=this.state,Oe=ot.goInputText,oe=ot.current;return!Oe||isNaN(Oe)?oe:Number(Oe)}},{key:"getPageSizeOptions",value:function(){var ot=this.props,Oe=ot.pageSize,oe=ot.pageSizeOptions;return oe.some(function(st){return st.toString()===Oe.toString()})?oe:oe.concat([Oe.toString()]).sort(function(st,he){var J=isNaN(Number(st))?0:Number(st),Y=isNaN(Number(he))?0:Number(he);return J-Y})}},{key:"render",value:function(){var ot=this,Oe=this.props,oe=Oe.pageSize,st=Oe.locale,he=Oe.rootPrefixCls,J=Oe.changeSize,Y=Oe.quickGo,$=Oe.goButton,fe=Oe.selectComponentClass,we=Oe.buildOptionText,Ne=Oe.selectPrefixCls,Ee=Oe.disabled,de=this.state.goInputText,me="".concat(he,"-options"),Le=fe,tt=null,At=null,ht=null;if(!J&&!Y)return null;var Ke=this.getPageSizeOptions();if(J&&Le){var Jt=Ke.map(function(ct,Gt){return f.a.createElement(Le.Option,{key:Gt,value:ct.toString()},(we||ot.buildOptionText)(ct))});tt=f.a.createElement(Le,{disabled:Ee,prefixCls:Ne,showSearch:!1,className:"".concat(me,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(oe||Ke[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Gt){return Gt.parentNode}},Jt)}return Y&&($&&(ht=typeof $=="boolean"?f.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Ee,className:"".concat(me,"-quick-jumper-button")},st.jump_to_confirm):f.a.createElement("span",{onClick:this.go,onKeyUp:this.go},$)),At=f.a.createElement("div",{className:"".concat(me,"-quick-jumper")},st.jump_to,f.a.createElement("input",{disabled:Ee,type:"text",value:de,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),st.page,ht)),f.a.createElement("li",{className:"".concat(me)},tt,At)}}]),Qe}(f.a.Component);g.defaultProps={pageSizeOptions:["10","20","50","100"]};var v=g,b=n("N2Kk");function S(){}function E(ke){return typeof ke=="number"&&isFinite(ke)&&Math.floor(ke)===ke}function C(ke,Re,Qe){return Qe}function _(ke,Re,Qe){var We=typeof ke=="undefined"?Re.pageSize:ke;return Math.floor((Qe.total-1)/We)+1}var T=function(ke){Object(o.a)(Qe,ke);var Re=Object(e.a)(Qe);function Qe(We){var ot;Object(i.a)(this,Qe),ot=Re.call(this,We),ot.getJumpPrevPage=function(){return Math.max(1,ot.state.current-(ot.props.showLessItems?3:5))},ot.getJumpNextPage=function(){return Math.min(_(void 0,ot.state,ot.props),ot.state.current+(ot.props.showLessItems?3:5))},ot.getItemIcon=function(J,Y){var $=ot.props.prefixCls,fe=J||f.a.createElement("button",{type:"button","aria-label":Y,className:"".concat($,"-item-link")});return typeof J=="function"&&(fe=f.a.createElement(J,Object(a.a)({},ot.props))),fe},ot.savePaginationNode=function(J){ot.paginationNode=J},ot.isValid=function(J){return E(J)&&J!==ot.state.current},ot.shouldDisplayQuickJumper=function(){var J=ot.props,Y=J.showQuickJumper,$=J.pageSize,fe=J.total;return fe<=$?!1:Y},ot.handleKeyDown=function(J){(J.keyCode===d.ARROW_UP||J.keyCode===d.ARROW_DOWN)&&J.preventDefault()},ot.handleKeyUp=function(J){var Y=ot.getValidValue(J),$=ot.state.currentInputValue;Y!==$&&ot.setState({currentInputValue:Y}),J.keyCode===d.ENTER?ot.handleChange(Y):J.keyCode===d.ARROW_UP?ot.handleChange(Y-1):J.keyCode===d.ARROW_DOWN&&ot.handleChange(Y+1)},ot.changePageSize=function(J){var Y=ot.state.current,$=_(J,ot.state,ot.props);Y=Y>$?$:Y,$===0&&(Y=ot.state.current),typeof J=="number"&&("pageSize"in ot.props||ot.setState({pageSize:J}),"current"in ot.props||ot.setState({current:Y,currentInputValue:Y})),ot.props.onShowSizeChange(Y,J),"onChange"in ot.props&&ot.props.onChange&&ot.props.onChange(Y,J)},ot.handleChange=function(J){var Y=ot.props.disabled,$=J;if(ot.isValid($)&&!Y){var fe=_(void 0,ot.state,ot.props);$>fe?$=fe:$<1&&($=1),"current"in ot.props||ot.setState({current:$,currentInputValue:$});var we=ot.state.pageSize;return ot.props.onChange($,we),$}return ot.state.current},ot.prev=function(){ot.hasPrev()&&ot.handleChange(ot.state.current-1)},ot.next=function(){ot.hasNext()&&ot.handleChange(ot.state.current+1)},ot.jumpPrev=function(){ot.handleChange(ot.getJumpPrevPage())},ot.jumpNext=function(){ot.handleChange(ot.getJumpNextPage())},ot.hasPrev=function(){return ot.state.current>1},ot.hasNext=function(){return ot.state.current<_(void 0,ot.state,ot.props)},ot.runIfEnter=function(J,Y){if(J.key==="Enter"||J.charCode===13){for(var $=arguments.length,fe=new Array($>2?$-2:0),we=2;we<$;we++)fe[we-2]=arguments[we];Y.apply(void 0,fe)}},ot.runIfEnterPrev=function(J){ot.runIfEnter(J,ot.prev)},ot.runIfEnterNext=function(J){ot.runIfEnter(J,ot.next)},ot.runIfEnterJumpPrev=function(J){ot.runIfEnter(J,ot.jumpPrev)},ot.runIfEnterJumpNext=function(J){ot.runIfEnter(J,ot.jumpNext)},ot.handleGoTO=function(J){(J.keyCode===d.ENTER||J.type==="click")&&ot.handleChange(ot.state.currentInputValue)};var Oe=We.onChange!==S,oe="current"in We;oe&&!Oe&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var st=We.defaultCurrent;"current"in We&&(st=We.current);var he=We.defaultPageSize;return"pageSize"in We&&(he=We.pageSize),st=Math.min(st,_(he,void 0,We)),ot.state={current:st,currentInputValue:st,pageSize:he},ot}return Object(t.a)(Qe,[{key:"componentDidUpdate",value:function(ot,Oe){var oe=this.props.prefixCls;if(Oe.current!==this.state.current&&this.paginationNode){var st=this.paginationNode.querySelector(".".concat(oe,"-item-").concat(Oe.current));st&&document.activeElement===st&&st.blur()}}},{key:"getValidValue",value:function(ot){var Oe=ot.target.value,oe=_(void 0,this.state,this.props),st=this.state.currentInputValue,he;return Oe===""?he=Oe:isNaN(Number(Oe))?he=st:Oe>=oe?he=oe:he=Number(Oe),he}},{key:"getShowSizeChanger",value:function(){var ot=this.props,Oe=ot.showSizeChanger,oe=ot.total,st=ot.totalBoundaryShowSizeChanger;return typeof Oe!="undefined"?Oe:oe>st}},{key:"renderPrev",value:function(ot){var Oe=this.props,oe=Oe.prevIcon,st=Oe.itemRender,he=st(ot,"prev",this.getItemIcon(oe,"prev page")),J=!this.hasPrev();return Object(m.isValidElement)(he)?Object(m.cloneElement)(he,{disabled:J}):he}},{key:"renderNext",value:function(ot){var Oe=this.props,oe=Oe.nextIcon,st=Oe.itemRender,he=st(ot,"next",this.getItemIcon(oe,"next page")),J=!this.hasNext();return Object(m.isValidElement)(he)?Object(m.cloneElement)(he,{disabled:J}):he}},{key:"render",value:function(){var ot=this,Oe=this.props,oe=Oe.prefixCls,st=Oe.className,he=Oe.style,J=Oe.disabled,Y=Oe.hideOnSinglePage,$=Oe.total,fe=Oe.locale,we=Oe.showQuickJumper,Ne=Oe.showLessItems,Ee=Oe.showTitle,de=Oe.showTotal,me=Oe.simple,Le=Oe.itemRender,tt=Oe.showPrevNextJumpers,At=Oe.jumpPrevIcon,ht=Oe.jumpNextIcon,Ke=Oe.selectComponentClass,Jt=Oe.selectPrefixCls,ct=Oe.pageSizeOptions,Gt=this.state,dr=Gt.current,zt=Gt.pageSize,kt=Gt.currentInputValue;if(Y===!0&&$<=zt)return null;var Vt=_(void 0,this.state,this.props),Xe=[],pe=null,te=null,$e=null,He=null,ae=null,ft=we&&we.goButton,Mt=Ne?1:2,mt=dr-1>0?dr-1:0,or=dr+1<Vt?dr+1:Vt,vr=Object.keys(this.props).reduce(function(Jn,Xt){return(Xt.substr(0,5)==="data-"||Xt.substr(0,5)==="aria-"||Xt==="role")&&(Jn[Xt]=ot.props[Xt]),Jn},{});if(me)return ft&&(typeof ft=="boolean"?ae=f.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},fe.jump_to_confirm):ae=f.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ft),ae=f.a.createElement("li",{title:Ee?"".concat(fe.jump_to).concat(dr,"/").concat(Vt):null,className:"".concat(oe,"-simple-pager")},ae)),f.a.createElement("ul",Object(h.a)({className:r()(oe,"".concat(oe,"-simple"),Object(u.a)({},"".concat(oe,"-disabled"),J),st),style:he,ref:this.savePaginationNode},vr),f.a.createElement("li",{title:Ee?fe.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:r()("".concat(oe,"-prev"),Object(u.a)({},"".concat(oe,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(mt)),f.a.createElement("li",{title:Ee?"".concat(dr,"/").concat(Vt):null,className:"".concat(oe,"-simple-pager")},f.a.createElement("input",{type:"text",value:kt,disabled:J,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),f.a.createElement("span",{className:"".concat(oe,"-slash")},"/"),Vt),f.a.createElement("li",{title:Ee?fe.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:r()("".concat(oe,"-next"),Object(u.a)({},"".concat(oe,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(or)),ae);if(Vt<=3+Mt*2){var fn={locale:fe,rootPrefixCls:oe,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Ee,itemRender:Le};Vt||Xe.push(f.a.createElement(c,Object(h.a)({},fn,{key:"noPager",page:Vt,className:"".concat(oe,"-disabled")})));for(var sr=1;sr<=Vt;sr+=1){var Ir=dr===sr;Xe.push(f.a.createElement(c,Object(h.a)({},fn,{key:sr,page:sr,active:Ir})))}}else{var lr=Ne?fe.prev_3:fe.prev_5,Wt=Ne?fe.next_3:fe.next_5;tt&&(pe=f.a.createElement("li",{title:Ee?lr:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:r()("".concat(oe,"-jump-prev"),Object(u.a)({},"".concat(oe,"-jump-prev-custom-icon"),!!At))},Le(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(At,"prev page"))),te=f.a.createElement("li",{title:Ee?Wt:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:r()("".concat(oe,"-jump-next"),Object(u.a)({},"".concat(oe,"-jump-next-custom-icon"),!!ht))},Le(this.getJumpNextPage(),"jump-next",this.getItemIcon(ht,"next page")))),He=f.a.createElement(c,{locale:fe,last:!0,rootPrefixCls:oe,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Vt,page:Vt,active:!1,showTitle:Ee,itemRender:Le}),$e=f.a.createElement(c,{locale:fe,rootPrefixCls:oe,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Ee,itemRender:Le});var xt=Math.max(1,dr-Mt),rn=Math.min(dr+Mt,Vt);dr-1<=Mt&&(rn=1+Mt*2),Vt-dr<=Mt&&(xt=Vt-Mt*2);for(var Dn=xt;Dn<=rn;Dn+=1){var Xn=dr===Dn;Xe.push(f.a.createElement(c,{locale:fe,rootPrefixCls:oe,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Dn,page:Dn,active:Xn,showTitle:Ee,itemRender:Le}))}dr-1>=Mt*2&&dr!==1+2&&(Xe[0]=Object(m.cloneElement)(Xe[0],{className:"".concat(oe,"-item-after-jump-prev")}),Xe.unshift(pe)),Vt-dr>=Mt*2&&dr!==Vt-2&&(Xe[Xe.length-1]=Object(m.cloneElement)(Xe[Xe.length-1],{className:"".concat(oe,"-item-before-jump-next")}),Xe.push(te)),xt!==1&&Xe.unshift($e),rn!==Vt&&Xe.push(He)}var ri=null;de&&(ri=f.a.createElement("li",{className:"".concat(oe,"-total-text")},de($,[$===0?0:(dr-1)*zt+1,dr*zt>$?$:dr*zt])));var Ui=!this.hasPrev()||!Vt,Bn=!this.hasNext()||!Vt;return f.a.createElement("ul",Object(h.a)({className:r()(oe,st,Object(u.a)({},"".concat(oe,"-disabled"),J)),style:he,unselectable:"unselectable",ref:this.savePaginationNode},vr),ri,f.a.createElement("li",{title:Ee?fe.prev_page:null,onClick:this.prev,tabIndex:Ui?null:0,onKeyPress:this.runIfEnterPrev,className:r()("".concat(oe,"-prev"),Object(u.a)({},"".concat(oe,"-disabled"),Ui)),"aria-disabled":Ui},this.renderPrev(mt)),Xe,f.a.createElement("li",{title:Ee?fe.next_page:null,onClick:this.next,tabIndex:Bn?null:0,onKeyPress:this.runIfEnterNext,className:r()("".concat(oe,"-next"),Object(u.a)({},"".concat(oe,"-disabled"),Bn)),"aria-disabled":Bn},this.renderNext(or)),f.a.createElement(v,{disabled:J,locale:fe,rootPrefixCls:oe,selectComponentClass:Ke,selectPrefixCls:Jt,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:dr,pageSize:zt,pageSizeOptions:ct,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ft}))}}],[{key:"getDerivedStateFromProps",value:function(ot,Oe){var oe={};if("current"in ot&&(oe.current=ot.current,ot.current!==Oe.current&&(oe.currentInputValue=oe.current)),"pageSize"in ot&&ot.pageSize!==Oe.pageSize){var st=Oe.current,he=_(ot.pageSize,Oe,ot);st=st>he?he:st,"current"in ot||(oe.current=st,oe.currentInputValue=st),oe.pageSize=ot.pageSize}return oe}}]),Qe}(f.a.Component);T.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:S,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:S,locale:b.a,style:{},itemRender:C,totalBoundaryShowSizeChanger:50};var w=T,O=n("H4fg"),I=n("FRVV"),R=n.n(I),M=n("nyS3"),F=n.n(M),P=n("DxGw"),X=n.n(P),B=n("JiDT"),j=n.n(B),W=n("2fM7"),z=function(Re){return m.createElement(W.a,A()({size:"small"},Re))};z.Option=W.a.Option;var V=z,Q=n("YMnH"),G=n("H84U"),ee=n("5OYt"),ce=function(ke,Re){var Qe={};for(var We in ke)Object.prototype.hasOwnProperty.call(ke,We)&&Re.indexOf(We)<0&&(Qe[We]=ke[We]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,We=Object.getOwnPropertySymbols(ke);ot<We.length;ot++)Re.indexOf(We[ot])<0&&Object.prototype.propertyIsEnumerable.call(ke,We[ot])&&(Qe[We[ot]]=ke[We[ot]]);return Qe},be=function(Re){var Qe=Re.prefixCls,We=Re.selectPrefixCls,ot=Re.className,Oe=Re.size,oe=Re.locale,st=ce(Re,["prefixCls","selectPrefixCls","className","size","locale"]),he=Object(ee.a)(),J=he.xs,Y=m.useContext(G.b),$=Y.getPrefixCls,fe=Y.direction,we=$("pagination",Qe),Ne=function(){var me=m.createElement("span",{className:"".concat(we,"-item-ellipsis")},"\u2022\u2022\u2022"),Le=m.createElement("button",{className:"".concat(we,"-item-link"),type:"button",tabIndex:-1},m.createElement(R.a,null)),tt=m.createElement("button",{className:"".concat(we,"-item-link"),type:"button",tabIndex:-1},m.createElement(F.a,null)),At=m.createElement("a",{className:"".concat(we,"-item-link")},m.createElement("div",{className:"".concat(we,"-item-container")},m.createElement(X.a,{className:"".concat(we,"-item-link-icon")}),me)),ht=m.createElement("a",{className:"".concat(we,"-item-link")},m.createElement("div",{className:"".concat(we,"-item-container")},m.createElement(j.a,{className:"".concat(we,"-item-link-icon")}),me));if(fe==="rtl"){var Ke=[tt,Le];Le=Ke[0],tt=Ke[1];var Jt=[ht,At];At=Jt[0],ht=Jt[1]}return{prevIcon:Le,nextIcon:tt,jumpPrevIcon:At,jumpNextIcon:ht}},Ee=function(me){var Le=A()(A()({},me),oe),tt=Oe==="small"||!!(J&&!Oe&&st.responsive),At=$("select",We),ht=r()(ot,p()({mini:tt},"".concat(we,"-rtl"),fe==="rtl"));return m.createElement(w,A()({},st,{prefixCls:we,selectPrefixCls:At},Ne(),{className:ht,selectComponentClass:tt?V:W.a,locale:Le}))};return m.createElement(Q.a,{componentName:"Pagination",defaultLocale:O.a},Ee)},le=be,Ie=D.a=le},NohK:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=function(x){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,m=null;return function(){for(var f=this,h=arguments.length,u=new Array(h),a=0;a<h;a++)u[a]=arguments[a];clearTimeout(m),m=setTimeout(function(){x.apply(f,u)},A)}};D.default=y},Npjl:function(k,D){function n(y,p){return y==null?void 0:y[p]}k.exports=n},Nu4q:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:function(x,A){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:x}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:A}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:A}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:A}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:x}}]}},name:"picture",theme:"twotone"};D.default=y},"O/iA":function(k,D,n){},O0TS:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("KQeH")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="DownloadOutlined";var i=A.forwardRef(a);D.default=i},O3gP:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("O/iA"),A=n.n(x),m=n("OaEy")},O49L:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("q3R3"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},OELB:function(k,D,n){var y=n("bYtY"),p=1e-4;function x(E){return E.replace(/^\s+|\s+$/g,"")}function A(E,C,_,T){var w=C[1]-C[0],O=_[1]-_[0];if(w===0)return O===0?_[0]:(_[0]+_[1])/2;if(T)if(w>0){if(E<=C[0])return _[0];if(E>=C[1])return _[1]}else{if(E>=C[0])return _[0];if(E<=C[1])return _[1]}else{if(E===C[0])return _[0];if(E===C[1])return _[1]}return(E-C[0])/w*O+_[0]}function m(E,C){switch(E){case"center":case"middle":E="50%";break;case"left":case"top":E="0%";break;case"right":case"bottom":E="100%";break}return typeof E=="string"?x(E).match(/%$/)?parseFloat(E)/100*C:parseFloat(E):E==null?NaN:+E}function f(E,C,_){return C==null&&(C=10),C=Math.min(Math.max(0,C),20),E=(+E).toFixed(C),_?E:+E}function h(E){return E.sort(function(C,_){return C-_}),E}function u(E){if(E=+E,isNaN(E))return 0;for(var C=1,_=0;Math.round(E*C)/C!==E;)C*=10,_++;return _}function a(E){var C=E.toString(),_=C.indexOf("e");if(_>0){var T=+C.slice(_+1);return T<0?-T:0}else{var w=C.indexOf(".");return w<0?0:C.length-1-w}}function i(E,C){var _=Math.log,T=Math.LN10,w=Math.floor(_(E[1]-E[0])/T),O=Math.round(_(Math.abs(C[1]-C[0]))/T),I=Math.min(Math.max(-w+O,0),20);return isFinite(I)?I:20}function t(E,C,_){if(!E[C])return 0;var T=y.reduce(E,function(W,z){return W+(isNaN(z)?0:z)},0);if(T===0)return 0;for(var w=Math.pow(10,_),O=y.map(E,function(W){return(isNaN(W)?0:W)/T*w*100}),I=w*100,R=y.map(O,function(W){return Math.floor(W)}),M=y.reduce(R,function(W,z){return W+z},0),F=y.map(O,function(W,z){return W-R[z]});M<I;){for(var P=Number.NEGATIVE_INFINITY,X=null,B=0,j=F.length;B<j;++B)F[B]>P&&(P=F[B],X=B);++R[X],F[X]=0,++M}return R[C]/w}var o=9007199254740991;function e(E){var C=Math.PI*2;return(E%C+C)%C}function l(E){return E>-p&&E<p}var r=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function s(E){if(E instanceof Date)return E;if(typeof E=="string"){var C=r.exec(E);if(!C)return new Date(NaN);if(C[8]){var _=+C[4]||0;return C[8].toUpperCase()!=="Z"&&(_-=C[8].slice(0,3)),new Date(Date.UTC(+C[1],+(C[2]||1)-1,+C[3]||1,_,+(C[5]||0),+C[6]||0,+C[7]||0))}else return new Date(+C[1],+(C[2]||1)-1,+C[3]||1,+C[4]||0,+(C[5]||0),+C[6]||0,+C[7]||0)}else if(E==null)return new Date(NaN);return new Date(Math.round(E))}function c(E){return Math.pow(10,d(E))}function d(E){if(E===0)return 0;var C=Math.floor(Math.log(E)/Math.LN10);return E/Math.pow(10,C)>=10&&C++,C}function g(E,C){var _=d(E),T=Math.pow(10,_),w=E/T,O;return C?w<1.5?O=1:w<2.5?O=2:w<4?O=3:w<7?O=5:O=10:w<1?O=1:w<2?O=2:w<3?O=3:w<5?O=5:O=10,E=O*T,_>=-20?+E.toFixed(_<0?-_:0):E}function v(E,C){var _=(E.length-1)*C+1,T=Math.floor(_),w=+E[T-1],O=_-T;return O?w+O*(E[T]-w):w}function b(E){E.sort(function(M,F){return R(M,F,0)?-1:1});for(var C=-Infinity,_=1,T=0;T<E.length;){for(var w=E[T].interval,O=E[T].close,I=0;I<2;I++)w[I]<=C&&(w[I]=C,O[I]=I?1:1-_),C=w[I],_=O[I];w[0]===w[1]&&O[0]*O[1]!==1?E.splice(T,1):T++}return E;function R(M,F,P){return M.interval[P]<F.interval[P]||M.interval[P]===F.interval[P]&&(M.close[P]-F.close[P]===(P?-1:1)||!P&&R(M,F,1))}}function S(E){return E-parseFloat(E)>=0}D.linearMap=A,D.parsePercent=m,D.round=f,D.asc=h,D.getPrecision=u,D.getPrecisionSafe=a,D.getPixelPrecision=i,D.getPercentWithPrecision=t,D.MAX_SAFE_INTEGER=o,D.remRadian=e,D.isRadianAroundZero=l,D.parseDate=s,D.quantity=c,D.quantityExponent=d,D.nice=g,D.quantile=v,D.reformIntervals=b,D.isNumeric=S},OKJ2:function(k,D,n){var y=n("KxfA"),p=y.retrieveRawValue,x=n("7aKB"),A=x.getTooltipMarker,m=x.formatTpl,f=n("4NO4"),h=f.getTooltipRenderMode,u=/\{@(.+?)\}/g,a={getDataParams:function(i,t){var o=this.getData(t),e=this.getRawValue(i,t),l=o.getRawIndex(i),r=o.getName(i),s=o.getRawDataItem(i),c=o.getItemVisual(i,"color"),d=o.getItemVisual(i,"borderColor"),g=this.ecModel.getComponent("tooltip"),v=g&&g.get("renderMode"),b=h(v),S=this.mainType,E=S==="series",C=o.userOutput;return{componentType:S,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:E?this.subType:null,seriesIndex:this.seriesIndex,seriesId:E?this.id:null,seriesName:E?this.name:null,name:r,dataIndex:l,data:s,dataType:t,value:e,color:c,borderColor:d,dimensionNames:C?C.dimensionNames:null,encode:C?C.encode:null,marker:A({color:c,renderMode:b}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(i,t,o,e,l){t=t||"normal";var r=this.getData(o),s=r.getItemModel(i),c=this.getDataParams(i,o);e!=null&&c.value instanceof Array&&(c.value=c.value[e]);var d=s.get(t==="normal"?[l||"label","formatter"]:[t,l||"label","formatter"]);if(typeof d=="function")return c.status=t,c.dimensionIndex=e,d(c);if(typeof d=="string"){var g=m(d,c);return g.replace(u,function(v,b){var S=b.length;return b.charAt(0)==="["&&b.charAt(S-1)==="]"&&(b=+b.slice(1,S-1)),p(r,i,b)})}},getRawValue:function(i,t){return p(this.getData(t),i)},formatTooltip:function(){}};k.exports=a},OLod:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("K3mO"))})(this,function(y){y.lib.Cipher||function(p){var x=y,A=x.lib,m=A.Base,f=A.WordArray,h=A.BufferedBlockAlgorithm,u=x.enc,a=u.Utf8,i=u.Base64,t=x.algo,o=t.EvpKDF,e=A.Cipher=h.extend({cfg:m.extend(),createEncryptor:function(I,R){return this.create(this._ENC_XFORM_MODE,I,R)},createDecryptor:function(I,R){return this.create(this._DEC_XFORM_MODE,I,R)},init:function(I,R,M){this.cfg=this.cfg.extend(M),this._xformMode=I,this._key=R,this.reset()},reset:function(){h.reset.call(this),this._doReset()},process:function(I){return this._append(I),this._process()},finalize:function(I){I&&this._append(I);var R=this._doFinalize();return R},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function O(I){return typeof I=="string"?w:C}return function(I){return{encrypt:function(M,F,P){return O(F).encrypt(I,M,F,P)},decrypt:function(M,F,P){return O(F).decrypt(I,M,F,P)}}}}()}),l=A.StreamCipher=e.extend({_doFinalize:function(){var I=this._process(!0);return I},blockSize:1}),r=x.mode={},s=A.BlockCipherMode=m.extend({createEncryptor:function(I,R){return this.Encryptor.create(I,R)},createDecryptor:function(I,R){return this.Decryptor.create(I,R)},init:function(I,R){this._cipher=I,this._iv=R}}),c=r.CBC=function(){var O=s.extend();O.Encryptor=O.extend({processBlock:function(M,F){var P=this._cipher,X=P.blockSize;I.call(this,M,F,X),P.encryptBlock(M,F),this._prevBlock=M.slice(F,F+X)}}),O.Decryptor=O.extend({processBlock:function(M,F){var P=this._cipher,X=P.blockSize,B=M.slice(F,F+X);P.decryptBlock(M,F),I.call(this,M,F,X),this._prevBlock=B}});function I(R,M,F){var P,X=this._iv;X?(P=X,this._iv=p):P=this._prevBlock;for(var B=0;B<F;B++)R[M+B]^=P[B]}return O}(),d=x.pad={},g=d.Pkcs7={pad:function(I,R){for(var M=R*4,F=M-I.sigBytes%M,P=F<<24|F<<16|F<<8|F,X=[],B=0;B<F;B+=4)X.push(P);var j=f.create(X,F);I.concat(j)},unpad:function(I){var R=I.words[I.sigBytes-1>>>2]&255;I.sigBytes-=R}},v=A.BlockCipher=e.extend({cfg:e.cfg.extend({mode:c,padding:g}),reset:function(){var I;e.reset.call(this);var R=this.cfg,M=R.iv,F=R.mode;this._xformMode==this._ENC_XFORM_MODE?I=F.createEncryptor:(I=F.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==I?this._mode.init(this,M&&M.words):(this._mode=I.call(F,this,M&&M.words),this._mode.__creator=I)},_doProcessBlock:function(I,R){this._mode.processBlock(I,R)},_doFinalize:function(){var I,R=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(R.pad(this._data,this.blockSize),I=this._process(!0)):(I=this._process(!0),R.unpad(I)),I},blockSize:128/32}),b=A.CipherParams=m.extend({init:function(I){this.mixIn(I)},toString:function(I){return(I||this.formatter).stringify(this)}}),S=x.format={},E=S.OpenSSL={stringify:function(I){var R,M=I.ciphertext,F=I.salt;return F?R=f.create([1398893684,1701076831]).concat(F).concat(M):R=M,R.toString(i)},parse:function(I){var R,M=i.parse(I),F=M.words;return F[0]==1398893684&&F[1]==1701076831&&(R=f.create(F.slice(2,4)),F.splice(0,4),M.sigBytes-=16),b.create({ciphertext:M,salt:R})}},C=A.SerializableCipher=m.extend({cfg:m.extend({format:E}),encrypt:function(I,R,M,F){F=this.cfg.extend(F);var P=I.createEncryptor(M,F),X=P.finalize(R),B=P.cfg;return b.create({ciphertext:X,key:M,iv:B.iv,algorithm:I,mode:B.mode,padding:B.padding,blockSize:I.blockSize,formatter:F.format})},decrypt:function(I,R,M,F){F=this.cfg.extend(F),R=this._parse(R,F.format);var P=I.createDecryptor(M,F).finalize(R.ciphertext);return P},_parse:function(I,R){return typeof I=="string"?R.parse(I,this):I}}),_=x.kdf={},T=_.OpenSSL={execute:function(I,R,M,F){F||(F=f.random(64/8));var P=o.create({keySize:R+M}).compute(I,F),X=f.create(P.words.slice(R),M*4);return P.sigBytes=R*4,b.create({key:P,iv:X,salt:F})}},w=A.PasswordBasedCipher=C.extend({cfg:C.cfg.extend({kdf:T}),encrypt:function(I,R,M,F){F=this.cfg.extend(F);var P=F.kdf.execute(M,I.keySize,I.ivSize);F.iv=P.iv;var X=C.encrypt.call(this,I,R,P.key,F);return X.mixIn(P),X},decrypt:function(I,R,M,F){F=this.cfg.extend(F),R=this._parse(R,F.format);var P=F.kdf.execute(M,I.keySize,I.ivSize,R.salt);F.iv=P.iv;var X=C.decrypt.call(this,I,R,P.key,F);return X}})}()})},OPEp:function(k,D,n){},OQFs:function(k,D,n){var y=n("KCsZ"),p=y([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),x={getLineStyle:function(A){var m=p(this,A);return m.lineDash=this.getLineDash(m.lineWidth),m},getLineDash:function(A){A==null&&(A=1);var m=this.get("type"),f=Math.max(A,2),h=A*4;return m==="solid"||m==null?!1:m==="dashed"?[h,h]:[f,f]}};k.exports=x},OS9S:function(k,D,n){var y=n("bYtY"),p=y.inherits,x=n("Gev7"),A=n("mFDi");function m(u){x.call(this,u),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}m.prototype.incremental=!0,m.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},m.prototype.addDisplayable=function(u,a){a?this._temporaryDisplayables.push(u):this._displayables.push(u),this.dirty()},m.prototype.addDisplayables=function(u,a){a=a||!1;for(var i=0;i<u.length;i++)this.addDisplayable(u[i],a)},m.prototype.eachPendingDisplayable=function(u){for(var a=this._cursor;a<this._displayables.length;a++)u&&u(this._displayables[a]);for(var a=0;a<this._temporaryDisplayables.length;a++)u&&u(this._temporaryDisplayables[a])},m.prototype.update=function(){this.updateTransform();for(var u=this._cursor;u<this._displayables.length;u++){var a=this._displayables[u];a.parent=this,a.update(),a.parent=null}for(var u=0;u<this._temporaryDisplayables.length;u++){var a=this._temporaryDisplayables[u];a.parent=this,a.update(),a.parent=null}},m.prototype.brush=function(u,a){for(var i=this._cursor;i<this._displayables.length;i++){var t=this._displayables[i];t.beforeBrush&&t.beforeBrush(u),t.brush(u,i===this._cursor?null:this._displayables[i-1]),t.afterBrush&&t.afterBrush(u)}this._cursor=i;for(var i=0;i<this._temporaryDisplayables.length;i++){var t=this._temporaryDisplayables[i];t.beforeBrush&&t.beforeBrush(u),t.brush(u,i===0?null:this._temporaryDisplayables[i-1]),t.afterBrush&&t.afterBrush(u)}this._temporaryDisplayables=[],this.notClear=!0};var f=[];m.prototype.getBoundingRect=function(){if(!this._rect){for(var u=new A(Infinity,Infinity,-Infinity,-Infinity),a=0;a<this._displayables.length;a++){var i=this._displayables[a],t=i.getBoundingRect().clone();i.needLocalTransform()&&t.applyTransform(i.getLocalTransform(f)),u.union(t)}this._rect=u}return this._rect},m.prototype.contain=function(u,a){var i=this.transformCoordToLocal(u,a),t=this.getBoundingRect();if(t.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var e=this._displayables[o];if(e.contain(u,a))return!0}return!1},p(m,x);var h=m;k.exports=h},OUJF:function(k,D,n){var y=n("ProS"),p=n("bYtY");y.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(x,A){var m=A.getComponent("timeline");return m&&x.currentIndex!=null&&(m.setCurrentIndex(x.currentIndex),!m.get("loop",!0)&&m.isIndexMax()&&m.setPlayState(!1)),A.resetOption("timeline"),p.defaults({currentIndex:m.option.currentIndex},x)}),y.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(x,A){var m=A.getComponent("timeline");m&&x.playState!=null&&m.setPlayState(x.playState)})},OXB0:function(k,D,n){var y=n("T4UG"),p=n("MwEJ"),x=n("IDmD"),A=y.extend({type:"series.heatmap",getInitialData:function(m,f){return p(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var m=x.get(this.get("coordinateSystem"));if(m&&m.dimensions)return m.dimensions[0]==="lng"&&m.dimensions[1]==="lat"},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});k.exports=A},OaEy:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("bKJz"),A=n.n(x),m=n("R9oj")},"Of+w":function(k,D,n){var y=n("Cwc5"),p=n("Kz5y"),x=y(p,"WeakMap");k.exports=x},Ol7k:function(k,D,n){"use strict";var y=n("PKem"),p=n("ZX9x");y.b.Sider=p.b,D.a=y.b},OlYY:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),A=n("bYtY"),m=n("ItGF"),f=n("4NO4"),h=n("UOVi"),u=n("zDms"),a=A.each,i=h.eachAxisDim,t=x.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(r,s,c){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var d=o(r);this.settledOption=d,this.mergeDefaultAndTheme(r,c),this.doInit(d)},mergeOption:function(r){var s=o(r);A.merge(this.option,r,!0),A.merge(this.settledOption,s,!0),this.doInit(s)},doInit:function(r){var s=this.option;m.canvasSupported||(s.realtime=!1),this._setDefaultThrottle(r),e(this,r);var c=this.settledOption;a([["start","startValue"],["end","endValue"]],function(d,g){this._rangePropMode[g]==="value"&&(s[d[0]]=c[d[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var r=this._axisProxies;this.eachTargetAxis(function(s,c,d,g){var v=this.dependentModels[s.axis][c],b=v.__dzAxisProxy||(v.__dzAxisProxy=new u(s.name,c,this,g));r[s.name+"_"+c]=b},this)},_resetTarget:function(){var r=this.option,s=this._judgeAutoMode();i(function(c){var d=c.axisIndex;r[d]=f.normalizeToArray(r[d])},this),s==="axisIndex"?this._autoSetAxisIndex():s==="orient"&&this._autoSetOrient()},_judgeAutoMode:function(){var r=this.option,s=!1;i(function(d){r[d.axisIndex]!=null&&(s=!0)},this);var c=r.orient;if(c==null&&s)return"orient";if(!s)return c==null&&(r.orient="horizontal"),"axisIndex"},_autoSetAxisIndex:function(){var r=!0,s=this.get("orient",!0),c=this.option,d=this.dependentModels;if(r){var g=s==="vertical"?"y":"x";d[g+"Axis"].length?(c[g+"AxisIndex"]=[0],r=!1):a(d.singleAxis,function(v){r&&v.get("orient",!0)===s&&(c.singleAxisIndex=[v.componentIndex],r=!1)})}r&&i(function(v){if(!r)return;var b=[],S=this.dependentModels[v.axis];if(S.length&&!b.length)for(var E=0,C=S.length;E<C;E++)S[E].get("type")==="category"&&b.push(E);c[v.axisIndex]=b,b.length&&(r=!1)},this),r&&this.ecModel.eachSeries(function(v){this._isSeriesHasAllAxesTypeOf(v,"value")&&i(function(b){var S=c[b.axisIndex],E=v.get(b.axisIndex),C=v.get(b.axisId),_=v.ecModel.queryComponents({mainType:b.axis,index:E,id:C})[0];E=_.componentIndex,A.indexOf(S,E)<0&&S.push(E)})},this)},_autoSetOrient:function(){var r;this.eachTargetAxis(function(s){!r&&(r=s.name)},this),this.option.orient=r==="y"?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(r,s){var c=!0;return i(function(d){var g=r.get(d.axisIndex),v=this.dependentModels[d.axis][g];(!v||v.get("type")!==s)&&(c=!1)},this),c},_setDefaultThrottle:function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var s=this.ecModel.option;this.option.throttle=s.animation&&s.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var r;return i(function(s){if(r==null){var c=this.get(s.axisIndex);c.length&&(r=this.dependentModels[s.axis][c[0]])}},this),r},eachTargetAxis:function(r,s){var c=this.ecModel;i(function(d){a(this.get(d.axisIndex),function(g){r.call(s,d,g,this,c)},this)},this)},getAxisProxy:function(r,s){return this._axisProxies[r+"_"+s]},getAxisModel:function(r,s){var c=this.getAxisProxy(r,s);return c&&c.getAxisModel()},setRawRange:function(r){var s=this.option,c=this.settledOption;a([["start","startValue"],["end","endValue"]],function(d){(r[d[0]]!=null||r[d[1]]!=null)&&(s[d[0]]=c[d[0]]=r[d[0]],s[d[1]]=c[d[1]]=r[d[1]])},this),e(this,r)},setCalculatedRange:function(r){var s=this.option;a(["start","startValue","end","endValue"],function(c){s[c]=r[c]})},getPercentRange:function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},getValueRange:function(r,s){if(r==null&&s==null){var c=this.findRepresentativeAxisProxy();if(c)return c.getDataValueWindow()}else return this.getAxisProxy(r,s).getDataValueWindow()},findRepresentativeAxisProxy:function(r){if(r)return r.__dzAxisProxy;var s=this._axisProxies;for(var c in s)if(s.hasOwnProperty(c)&&s[c].hostedBy(this))return s[c];for(var c in s)if(s.hasOwnProperty(c)&&!s[c].hostedBy(this))return s[c]},getRangePropMode:function(){return this._rangePropMode.slice()}});function o(r){var s={};return a(["start","end","startValue","endValue","throttle"],function(c){r.hasOwnProperty(c)&&(s[c]=r[c])}),s}function e(r,s){var c=r._rangePropMode,d=r.get("rangeMode");a([["start","startValue"],["end","endValue"]],function(g,v){var b=s[g[0]]!=null,S=s[g[1]]!=null;b&&!S?c[v]="percent":!b&&S?c[v]="value":d?c[v]=d[v]:b&&(c[v]="percent")})}var l=t;k.exports=l},OnYD:function(k,D,n){},"Oy/b":function(k,D,n){(function(p,x){k.exports=x()})(typeof self!="undefined"?self:this,function(){return function(y){var p={};function x(A){if(p[A])return p[A].exports;var m=p[A]={i:A,l:!1,exports:{}};return y[A].call(m.exports,m,m.exports,x),m.l=!0,m.exports}return x.m=y,x.c=p,x.d=function(A,m,f){x.o(A,m)||Object.defineProperty(A,m,{enumerable:!0,get:f})},x.r=function(A){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},x.t=function(A,m){if(m&1&&(A=x(A)),m&8)return A;if(m&4&&typeof A=="object"&&A&&A.__esModule)return A;var f=Object.create(null);if(x.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:A}),m&2&&typeof A!="string")for(var h in A)x.d(f,h,function(u){return A[u]}.bind(null,h));return f},x.n=function(A){var m=A&&A.__esModule?function(){return A.default}:function(){return A};return x.d(m,"a",m),m},x.o=function(A,m){return Object.prototype.hasOwnProperty.call(A,m)},x.p="",x(x.s=1)}([function(y,p,x){},function(y,p,x){"use strict";x.r(p);var A=x(0),m=function(){function It(ue,Se,_e){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=ue,this.start=Se,this.end=_e}return It.range=function(Se,_e){return _e?!Se||!Se.loc||!_e.loc||Se.loc.lexer!==_e.loc.lexer?null:new It(Se.loc.lexer,Se.loc.start,_e.loc.end):Se&&Se.loc},It}(),f=function(){function It(Se,_e){this.text=void 0,this.loc=void 0,this.text=Se,this.loc=_e}var ue=It.prototype;return ue.range=function(_e,Je){return new It(Je,m.range(this,_e))},It}(),h=function It(ue,Se){this.position=void 0;var _e="KaTeX parse error: "+ue,Je,Lt=Se&&Se.loc;if(Lt&&Lt.start<=Lt.end){var tr=Lt.lexer.input;Je=Lt.start;var Gr=Lt.end;Je===tr.length?_e+=" at end of input: ":_e+=" at position "+(Je+1)+": ";var cn=tr.slice(Je,Gr).replace(/[^]/g,"$&\u0332"),_n;Je>15?_n="\u2026"+tr.slice(Je-15,Je):_n=tr.slice(0,Je);var li;Gr+15<tr.length?li=tr.slice(Gr,Gr+15)+"\u2026":li=tr.slice(Gr),_e+=_n+cn+li}var wi=new Error(_e);return wi.name="ParseError",wi.__proto__=It.prototype,wi.position=Je,wi};h.prototype.__proto__=Error.prototype;var u=h,a=function(ue,Se){return ue.indexOf(Se)!==-1},i=function(ue,Se){return ue===void 0?Se:ue},t=/([A-Z])/g,o=function(ue){return ue.replace(t,"-$1").toLowerCase()},e={"&":"&",">":">","<":"<",'"':""","'":"'"},l=/[&><"']/g;function r(It){return String(It).replace(l,function(ue){return e[ue]})}var s=function It(ue){return ue.type==="ordgroup"||ue.type==="color"?ue.body.length===1?It(ue.body[0]):ue:ue.type==="font"?It(ue.body):ue},c=function(ue){var Se=s(ue);return Se.type==="mathord"||Se.type==="textord"||Se.type==="atom"},d=function(ue){if(!ue)throw new Error("Expected non-null, but got "+String(ue));return ue},g=function(ue){var Se=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(ue);return Se!=null?Se[1]:"_relative"},v={contains:a,deflt:i,escape:r,hyphenate:o,getBaseElem:s,isCharacterBox:c,protocolFromUrl:g},b=function(){function It(Se){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,Se=Se||{},this.displayMode=v.deflt(Se.displayMode,!1),this.output=v.deflt(Se.output,"htmlAndMathml"),this.leqno=v.deflt(Se.leqno,!1),this.fleqn=v.deflt(Se.fleqn,!1),this.throwOnError=v.deflt(Se.throwOnError,!0),this.errorColor=v.deflt(Se.errorColor,"#cc0000"),this.macros=Se.macros||{},this.minRuleThickness=Math.max(0,v.deflt(Se.minRuleThickness,0)),this.colorIsTextColor=v.deflt(Se.colorIsTextColor,!1),this.strict=v.deflt(Se.strict,"warn"),this.trust=v.deflt(Se.trust,!1),this.maxSize=Math.max(0,v.deflt(Se.maxSize,Infinity)),this.maxExpand=Math.max(0,v.deflt(Se.maxExpand,1e3))}var ue=It.prototype;return ue.reportNonstrict=function(_e,Je,Lt){var tr=this.strict;if(typeof tr=="function"&&(tr=tr(_e,Je,Lt)),!tr||tr==="ignore")return;if(tr===!0||tr==="error")throw new u("LaTeX-incompatible input and strict mode is set to 'error': "+(Je+" ["+_e+"]"),Lt);tr==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Je+" ["+_e+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+tr+"': "+Je+" ["+_e+"]"))},ue.useStrictBehavior=function(_e,Je,Lt){var tr=this.strict;if(typeof tr=="function")try{tr=tr(_e,Je,Lt)}catch(Gr){tr="error"}return!tr||tr==="ignore"?!1:tr===!0||tr==="error"?!0:tr==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Je+" ["+_e+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+tr+"': "+Je+" ["+_e+"]")),!1)},ue.isTrusted=function(_e){_e.url&&!_e.protocol&&(_e.protocol=v.protocolFromUrl(_e.url));var Je=typeof this.trust=="function"?this.trust(_e):this.trust;return Boolean(Je)},It}(),S=function(){function It(Se,_e,Je){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=Se,this.size=_e,this.cramped=Je}var ue=It.prototype;return ue.sup=function(){return M[F[this.id]]},ue.sub=function(){return M[P[this.id]]},ue.fracNum=function(){return M[X[this.id]]},ue.fracDen=function(){return M[B[this.id]]},ue.cramp=function(){return M[j[this.id]]},ue.text=function(){return M[W[this.id]]},ue.isTight=function(){return this.size>=2},It}(),E=0,C=1,_=2,T=3,w=4,O=5,I=6,R=7,M=[new S(E,0,!1),new S(C,0,!0),new S(_,1,!1),new S(T,1,!0),new S(w,2,!1),new S(O,2,!0),new S(I,3,!1),new S(R,3,!0)],F=[w,O,w,O,I,R,I,R],P=[O,O,O,O,R,R,R,R],X=[_,T,w,O,I,R,I,R],B=[T,T,O,O,R,R,R,R],j=[C,C,T,T,O,O,R,R],W=[E,C,_,T,_,T,_,T],z={DISPLAY:M[E],TEXT:M[_],SCRIPT:M[w],SCRIPTSCRIPT:M[I]},V=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Q(It){for(var ue=0;ue<V.length;ue++)for(var Se=V[ue],_e=0;_e<Se.blocks.length;_e++){var Je=Se.blocks[_e];if(It>=Je[0]&&It<=Je[1])return Se.name}return null}var G=[];V.forEach(function(It){return It.blocks.forEach(function(ue){return G.push.apply(G,ue)})});function ee(It){for(var ue=0;ue<G.length;ue+=2)if(It>=G[ue]&&It<=G[ue+1])return!0;return!1}var ce=80,be=function(ue,Se){return"M95,"+(622+ue+Se)+`
|
|
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
|
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
|
c69,-144,104.5,-217.7,106.5,-221
|
|
|
l`+ue/2.075+" -"+ue+`
|
|
|
c5.3,-9.3,12,-14,20,-14
|
|
|
H400000v`+(40+ue)+`H845.2724
|
|
|
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
|
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
|
M`+(834+ue)+" "+Se+"h400000v"+(40+ue)+"h-400000z"},le=function(ue,Se){return"M263,"+(601+ue+Se)+`c0.7,0,18,39.7,52,119
|
|
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
|
c340,-704.7,510.7,-1060.3,512,-1067
|
|
|
l`+ue/2.084+" -"+ue+`
|
|
|
c4.7,-7.3,11,-11,19,-11
|
|
|
H40000v`+(40+ue)+`H1012.3
|
|
|
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
|
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
|
M`+(1001+ue)+" "+Se+"h400000v"+(40+ue)+"h-400000z"},Ie=function(ue,Se){return"M983 "+(10+ue+Se)+`
|
|
|
l`+ue/3.13+" -"+ue+`
|
|
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+ue)+`
|
|
|
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
|
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
|
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
|
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
|
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
|
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
|
M`+(1001+ue)+" "+Se+"h400000v"+(40+ue)+"h-400000z"},ke=function(ue,Se){return"M424,"+(2398+ue+Se)+`
|
|
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
|
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
|
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
|
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
|
l`+ue/4.223+" -"+ue+`c4,-6.7,10,-10,18,-10 H400000
|
|
|
v`+(40+ue)+`H1014.6
|
|
|
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
|
c-2,6,-10,9,-24,9
|
|
|
c-8,0,-12,-0.7,-12,-2z M`+(1001+ue)+" "+Se+`
|
|
|
h400000v`+(40+ue)+"h-400000z"},Re=function(ue,Se){return"M473,"+(2713+ue+Se)+`
|
|
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+ue/5.298+" -"+ue+`
|
|
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+ue)+`H1017.7
|
|
|
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
|
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
|
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
|
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
|
606zM`+(1001+ue)+" "+Se+"h400000v"+(40+ue)+"H1017.7z"},Qe=function(ue,Se,_e){var Je=_e-54-Se-ue;return"M702 "+(ue+Se)+"H400000"+(40+ue)+`
|
|
|
H742v`+Je+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
|
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
|
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
|
219 661 l218 661zM702 `+Se+"H400000v"+(40+ue)+"H742z"},We=function(ue,Se,_e){Se=1e3*Se;var Je="";switch(ue){case"sqrtMain":Je=be(Se,ce);break;case"sqrtSize1":Je=le(Se,ce);break;case"sqrtSize2":Je=Ie(Se,ce);break;case"sqrtSize3":Je=ke(Se,ce);break;case"sqrtSize4":Je=Re(Se,ce);break;case"sqrtTall":Je=Qe(Se,ce,_e)}return Je},ot={doubleleftarrow:`M262 157
|
|
|
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
|
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
|
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
|
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
|
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
|
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
|
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
|
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
|
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
|
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
|
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
|
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
|
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
|
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
|
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
|
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
|
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
|
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
|
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
|
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
|
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
|
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
|
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
|
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
|
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
|
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
|
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
|
435 0h399565z`,leftgroupunder:`M400000 262
|
|
|
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
|
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
|
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
|
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
|
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
|
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
|
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
|
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
|
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
|
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
|
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
|
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
|
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
|
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
|
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
|
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
|
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
|
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
|
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
|
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
|
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
|
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
|
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
|
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
|
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
|
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
|
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
|
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
|
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
|
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
|
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
|
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
|
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
|
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
|
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
|
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
|
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
|
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
|
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
|
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
|
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
|
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
|
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
|
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
|
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
|
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
|
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
|
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
|
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
|
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
|
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
|
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
|
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
|
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
|
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
|
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
|
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
|
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
|
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
|
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
|
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
|
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
|
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
|
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
|
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
|
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
|
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
|
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
|
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
|
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
|
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
|
|
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
|
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
|
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
|
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
|
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
|
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
|
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
|
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
|
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
|
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
|
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
|
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
|
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
|
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
|
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
|
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
|
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
|
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
|
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
|
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
|
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
|
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
|
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
|
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
|
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
|
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
|
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
|
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
|
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
|
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
|
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
|
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
|
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
|
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
|
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
|
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
|
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
|
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
|
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
|
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
|
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
|
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
|
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
|
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
|
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
|
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
|
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
|
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
|
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
|
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
|
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
|
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
|
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
|
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
|
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
|
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Oe=function(){function It(Se){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=Se,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var ue=It.prototype;return ue.hasClass=function(_e){return v.contains(this.classes,_e)},ue.toNode=function(){for(var _e=document.createDocumentFragment(),Je=0;Je<this.children.length;Je++)_e.appendChild(this.children[Je].toNode());return _e},ue.toMarkup=function(){for(var _e="",Je=0;Je<this.children.length;Je++)_e+=this.children[Je].toMarkup();return _e},ue.toText=function(){var _e=function(Lt){return Lt.toText()};return this.children.map(_e).join("")},It}(),oe=function(ue){return ue.filter(function(Se){return Se}).join(" ")},st=function(ue,Se,_e){if(this.classes=ue||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=_e||{},Se){Se.style.isTight()&&this.classes.push("mtight");var Je=Se.getColor();Je&&(this.style.color=Je)}},he=function(ue){var Se=document.createElement(ue);Se.className=oe(this.classes);for(var _e in this.style)this.style.hasOwnProperty(_e)&&(Se.style[_e]=this.style[_e]);for(var Je in this.attributes)this.attributes.hasOwnProperty(Je)&&Se.setAttribute(Je,this.attributes[Je]);for(var Lt=0;Lt<this.children.length;Lt++)Se.appendChild(this.children[Lt].toNode());return Se},J=function(ue){var Se="<"+ue;this.classes.length&&(Se+=' class="'+v.escape(oe(this.classes))+'"');var _e="";for(var Je in this.style)this.style.hasOwnProperty(Je)&&(_e+=v.hyphenate(Je)+":"+this.style[Je]+";");_e&&(Se+=' style="'+v.escape(_e)+'"');for(var Lt in this.attributes)this.attributes.hasOwnProperty(Lt)&&(Se+=" "+Lt+'="'+v.escape(this.attributes[Lt])+'"');Se+=">";for(var tr=0;tr<this.children.length;tr++)Se+=this.children[tr].toMarkup();return Se+="</"+ue+">",Se},Y=function(){function It(Se,_e,Je,Lt){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,st.call(this,Se,Je,Lt),this.children=_e||[]}var ue=It.prototype;return ue.setAttribute=function(_e,Je){this.attributes[_e]=Je},ue.hasClass=function(_e){return v.contains(this.classes,_e)},ue.toNode=function(){return he.call(this,"span")},ue.toMarkup=function(){return J.call(this,"span")},It}(),$=function(){function It(Se,_e,Je,Lt){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,st.call(this,_e,Lt),this.children=Je||[],this.setAttribute("href",Se)}var ue=It.prototype;return ue.setAttribute=function(_e,Je){this.attributes[_e]=Je},ue.hasClass=function(_e){return v.contains(this.classes,_e)},ue.toNode=function(){return he.call(this,"a")},ue.toMarkup=function(){return J.call(this,"a")},It}(),fe=function(){function It(Se,_e,Je){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=_e,this.src=Se,this.classes=["mord"],this.style=Je}var ue=It.prototype;return ue.hasClass=function(_e){return v.contains(this.classes,_e)},ue.toNode=function(){var _e=document.createElement("img");_e.src=this.src,_e.alt=this.alt,_e.className="mord";for(var Je in this.style)this.style.hasOwnProperty(Je)&&(_e.style[Je]=this.style[Je]);return _e},ue.toMarkup=function(){var _e="<img src='"+this.src+" 'alt='"+this.alt+"' ",Je="";for(var Lt in this.style)this.style.hasOwnProperty(Lt)&&(Je+=v.hyphenate(Lt)+":"+this.style[Lt]+";");return Je&&(_e+=' style="'+v.escape(Je)+'"'),_e+="'/>",_e},It}(),we={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},Ne=function(){function It(Se,_e,Je,Lt,tr,Gr,cn,_n){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=Se,this.height=_e||0,this.depth=Je||0,this.italic=Lt||0,this.skew=tr||0,this.width=Gr||0,this.classes=cn||[],this.style=_n||{},this.maxFontSize=0;var li=Q(this.text.charCodeAt(0));li&&this.classes.push(li+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=we[this.text])}var ue=It.prototype;return ue.hasClass=function(_e){return v.contains(this.classes,_e)},ue.toNode=function(){var _e=document.createTextNode(this.text),Je=null;this.italic>0&&(Je=document.createElement("span"),Je.style.marginRight=this.italic+"em"),this.classes.length>0&&(Je=Je||document.createElement("span"),Je.className=oe(this.classes));for(var Lt in this.style)this.style.hasOwnProperty(Lt)&&(Je=Je||document.createElement("span"),Je.style[Lt]=this.style[Lt]);return Je?(Je.appendChild(_e),Je):_e},ue.toMarkup=function(){var _e=!1,Je="<span";this.classes.length&&(_e=!0,Je+=' class="',Je+=v.escape(oe(this.classes)),Je+='"');var Lt="";this.italic>0&&(Lt+="margin-right:"+this.italic+"em;");for(var tr in this.style)this.style.hasOwnProperty(tr)&&(Lt+=v.hyphenate(tr)+":"+this.style[tr]+";");Lt&&(_e=!0,Je+=' style="'+v.escape(Lt)+'"');var Gr=v.escape(this.text);return _e?(Je+=">",Je+=Gr,Je+="</span>",Je):Gr},It}(),Ee=function(){function It(Se,_e){this.children=void 0,this.attributes=void 0,this.children=Se||[],this.attributes=_e||{}}var ue=It.prototype;return ue.toNode=function(){var _e="http://www.w3.org/2000/svg",Je=document.createElementNS(_e,"svg");for(var Lt in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Lt)&&Je.setAttribute(Lt,this.attributes[Lt]);for(var tr=0;tr<this.children.length;tr++)Je.appendChild(this.children[tr].toNode());return Je},ue.toMarkup=function(){var _e="<svg";for(var Je in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Je)&&(_e+=" "+Je+"='"+this.attributes[Je]+"'");_e+=">";for(var Lt=0;Lt<this.children.length;Lt++)_e+=this.children[Lt].toMarkup();return _e+="</svg>",_e},It}(),de=function(){function It(Se,_e){this.pathName=void 0,this.alternate=void 0,this.pathName=Se,this.alternate=_e}var ue=It.prototype;return ue.toNode=function(){var _e="http://www.w3.org/2000/svg",Je=document.createElementNS(_e,"path");return this.alternate?Je.setAttribute("d",this.alternate):Je.setAttribute("d",ot[this.pathName]),Je},ue.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+ot[this.pathName]+"'/>"},It}(),me=function(){function It(Se){this.attributes=void 0,this.attributes=Se||{}}var ue=It.prototype;return ue.toNode=function(){var _e="http://www.w3.org/2000/svg",Je=document.createElementNS(_e,"line");for(var Lt in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Lt)&&Je.setAttribute(Lt,this.attributes[Lt]);return Je},ue.toMarkup=function(){var _e="<line";for(var Je in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Je)&&(_e+=" "+Je+"='"+this.attributes[Je]+"'");return _e+="/>",_e},It}();function Le(It){if(It instanceof Ne)return It;throw new Error("Expected symbolNode but got "+String(It)+".")}function tt(It){if(It instanceof Y)return It;throw new Error("Expected span<HtmlDomNode> but got "+String(It)+".")}var At={"AMS-Regular":{"65":[0,.68889,0,0,.72222],"66":[0,.68889,0,0,.66667],"67":[0,.68889,0,0,.72222],"68":[0,.68889,0,0,.72222],"69":[0,.68889,0,0,.66667],"70":[0,.68889,0,0,.61111],"71":[0,.68889,0,0,.77778],"72":[0,.68889,0,0,.77778],"73":[0,.68889,0,0,.38889],"74":[.16667,.68889,0,0,.5],"75":[0,.68889,0,0,.77778],"76":[0,.68889,0,0,.66667],"77":[0,.68889,0,0,.94445],"78":[0,.68889,0,0,.72222],"79":[.16667,.68889,0,0,.77778],"80":[0,.68889,0,0,.61111],"81":[.16667,.68889,0,0,.77778],"82":[0,.68889,0,0,.72222],"83":[0,.68889,0,0,.55556],"84":[0,.68889,0,0,.66667],"85":[0,.68889,0,0,.72222],"86":[0,.68889,0,0,.72222],"87":[0,.68889,0,0,1],"88":[0,.68889,0,0,.72222],"89":[0,.68889,0,0,.72222],"90":[0,.68889,0,0,.66667],"107":[0,.68889,0,0,.55556],"165":[0,.675,.025,0,.75],"174":[.15559,.69224,0,0,.94666],"240":[0,.68889,0,0,.55556],"295":[0,.68889,0,0,.54028],"710":[0,.825,0,0,2.33334],"732":[0,.9,0,0,2.33334],"770":[0,.825,0,0,2.33334],"771":[0,.9,0,0,2.33334],"989":[.08167,.58167,0,0,.77778],"1008":[0,.43056,.04028,0,.66667],"8245":[0,.54986,0,0,.275],"8463":[0,.68889,0,0,.54028],"8487":[0,.68889,0,0,.72222],"8498":[0,.68889,0,0,.55556],"8502":[0,.68889,0,0,.66667],"8503":[0,.68889,0,0,.44445],"8504":[0,.68889,0,0,.66667],"8513":[0,.68889,0,0,.63889],"8592":[-.03598,.46402,0,0,.5],"8594":[-.03598,.46402,0,0,.5],"8602":[-.13313,.36687,0,0,1],"8603":[-.13313,.36687,0,0,1],"8606":[.01354,.52239,0,0,1],"8608":[.01354,.52239,0,0,1],"8610":[.01354,.52239,0,0,1.11111],"8611":[.01354,.52239,0,0,1.11111],"8619":[0,.54986,0,0,1],"8620":[0,.54986,0,0,1],"8621":[-.13313,.37788,0,0,1.38889],"8622":[-.13313,.36687,0,0,1],"8624":[0,.69224,0,0,.5],"8625":[0,.69224,0,0,.5],"8630":[0,.43056,0,0,1],"8631":[0,.43056,0,0,1],"8634":[.08198,.58198,0,0,.77778],"8635":[.08198,.58198,0,0,.77778],"8638":[.19444,.69224,0,0,.41667],"8639":[.19444,.69224,0,0,.41667],"8642":[.19444,.69224,0,0,.41667],"8643":[.19444,.69224,0,0,.41667],"8644":[.1808,.675,0,0,1],"8646":[.1808,.675,0,0,1],"8647":[.1808,.675,0,0,1],"8648":[.19444,.69224,0,0,.83334],"8649":[.1808,.675,0,0,1],"8650":[.19444,.69224,0,0,.83334],"8651":[.01354,.52239,0,0,1],"8652":[.01354,.52239,0,0,1],"8653":[-.13313,.36687,0,0,1],"8654":[-.13313,.36687,0,0,1],"8655":[-.13313,.36687,0,0,1],"8666":[.13667,.63667,0,0,1],"8667":[.13667,.63667,0,0,1],"8669":[-.13313,.37788,0,0,1],"8672":[-.064,.437,0,0,1.334],"8674":[-.064,.437,0,0,1.334],"8705":[0,.825,0,0,.5],"8708":[0,.68889,0,0,.55556],"8709":[.08167,.58167,0,0,.77778],"8717":[0,.43056,0,0,.42917],"8722":[-.03598,.46402,0,0,.5],"8724":[.08198,.69224,0,0,.77778],"8726":[.08167,.58167,0,0,.77778],"8733":[0,.69224,0,0,.77778],"8736":[0,.69224,0,0,.72222],"8737":[0,.69224,0,0,.72222],"8738":[.03517,.52239,0,0,.72222],"8739":[.08167,.58167,0,0,.22222],"8740":[.25142,.74111,0,0,.27778],"8741":[.08167,.58167,0,0,.38889],"8742":[.25142,.74111,0,0,.5],"8756":[0,.69224,0,0,.66667],"8757":[0,.69224,0,0,.66667],"8764":[-.13313,.36687,0,0,.77778],"8765":[-.13313,.37788,0,0,.77778],"8769":[-.13313,.36687,0,0,.77778],"8770":[-.03625,.46375,0,0,.77778],"8774":[.30274,.79383,0,0,.77778],"8776":[-.01688,.48312,0,0,.77778],"8778":[.08167,.58167,0,0,.77778],"8782":[.06062,.54986,0,0,.77778],"8783":[.06062,.54986,0,0,.77778],"8785":[.08198,.58198,0,0,.77778],"8786":[.08198,.58198,0,0,.77778],"8787":[.08198,.58198,0,0,.77778],"8790":[0,.69224,0,0,.77778],"8791":[.22958,.72958,0,0,.77778],"8796":[.08198,.91667,0,0,.77778],"8806":[.25583,.75583,0,0,.77778],"8807":[.25583,.75583,0,0,.77778],"8808":[.25142,.75726,0,0,.77778],"8809":[.25142,.75726,0,0,.77778],"8812":[.25583,.75583,0,0,.5],"8814":[.20576,.70576,0,0,.77778],"8815":[.20576,.70576,0,0,.77778],"8816":[.30274,.79383,0,0,.77778],"8817":[.30274,.79383,0,0,.77778],"8818":[.22958,.72958,0,0,.77778],"8819":[.22958,.72958,0,0,.77778],"8822":[.1808,.675,0,0,.77778],"8823":[.1808,.675,0,0,.77778],"8828":[.13667,.63667,0,0,.77778],"8829":[.13667,.63667,0,0,.77778],"8830":[.22958,.72958,0,0,.77778],"8831":[.22958,.72958,0,0,.77778],"8832":[.20576,.70576,0,0,.77778],"8833":[.20576,.70576,0,0,.77778],"8840":[.30274,.79383,0,0,.77778],"8841":[.30274,.79383,0,0,.77778],"8842":[.13597,.63597,0,0,.77778],"8843":[.13597,.63597,0,0,.77778],"8847":[.03517,.54986,0,0,.77778],"8848":[.03517,.54986,0,0,.77778],"8858":[.08198,.58198,0,0,.77778],"8859":[.08198,.58198,0,0,.77778],"8861":[.08198,.58198,0,0,.77778],"8862":[0,.675,0,0,.77778],"8863":[0,.675,0,0,.77778],"8864":[0,.675,0,0,.77778],"8865":[0,.675,0,0,.77778],"8872":[0,.69224,0,0,.61111],"8873":[0,.69224,0,0,.72222],"8874":[0,.69224,0,0,.88889],"8876":[0,.68889,0,0,.61111],"8877":[0,.68889,0,0,.61111],"8878":[0,.68889,0,0,.72222],"8879":[0,.68889,0,0,.72222],"8882":[.03517,.54986,0,0,.77778],"8883":[.03517,.54986,0,0,.77778],"8884":[.13667,.63667,0,0,.77778],"8885":[.13667,.63667,0,0,.77778],"8888":[0,.54986,0,0,1.11111],"8890":[.19444,.43056,0,0,.55556],"8891":[.19444,.69224,0,0,.61111],"8892":[.19444,.69224,0,0,.61111],"8901":[0,.54986,0,0,.27778],"8903":[.08167,.58167,0,0,.77778],"8905":[.08167,.58167,0,0,.77778],"8906":[.08167,.58167,0,0,.77778],"8907":[0,.69224,0,0,.77778],"8908":[0,.69224,0,0,.77778],"8909":[-.03598,.46402,0,0,.77778],"8910":[0,.54986,0,0,.76042],"8911":[0,.54986,0,0,.76042],"8912":[.03517,.54986,0,0,.77778],"8913":[.03517,.54986,0,0,.77778],"8914":[0,.54986,0,0,.66667],"8915":[0,.54986,0,0,.66667],"8916":[0,.69224,0,0,.66667],"8918":[.0391,.5391,0,0,.77778],"8919":[.0391,.5391,0,0,.77778],"8920":[.03517,.54986,0,0,1.33334],"8921":[.03517,.54986,0,0,1.33334],"8922":[.38569,.88569,0,0,.77778],"8923":[.38569,.88569,0,0,.77778],"8926":[.13667,.63667,0,0,.77778],"8927":[.13667,.63667,0,0,.77778],"8928":[.30274,.79383,0,0,.77778],"8929":[.30274,.79383,0,0,.77778],"8934":[.23222,.74111,0,0,.77778],"8935":[.23222,.74111,0,0,.77778],"8936":[.23222,.74111,0,0,.77778],"8937":[.23222,.74111,0,0,.77778],"8938":[.20576,.70576,0,0,.77778],"8939":[.20576,.70576,0,0,.77778],"8940":[.30274,.79383,0,0,.77778],"8941":[.30274,.79383,0,0,.77778],"8994":[.19444,.69224,0,0,.77778],"8995":[.19444,.69224,0,0,.77778],"9416":[.15559,.69224,0,0,.90222],"9484":[0,.69224,0,0,.5],"9488":[0,.69224,0,0,.5],"9492":[0,.37788,0,0,.5],"9496":[0,.37788,0,0,.5],"9585":[.19444,.68889,0,0,.88889],"9586":[.19444,.74111,0,0,.88889],"9632":[0,.675,0,0,.77778],"9633":[0,.675,0,0,.77778],"9650":[0,.54986,0,0,.72222],"9651":[0,.54986,0,0,.72222],"9654":[.03517,.54986,0,0,.77778],"9660":[0,.54986,0,0,.72222],"9661":[0,.54986,0,0,.72222],"9664":[.03517,.54986,0,0,.77778],"9674":[.11111,.69224,0,0,.66667],"9733":[.19444,.69224,0,0,.94445],"10003":[0,.69224,0,0,.83334],"10016":[0,.69224,0,0,.83334],"10731":[.11111,.69224,0,0,.66667],"10846":[.19444,.75583,0,0,.61111],"10877":[.13667,.63667,0,0,.77778],"10878":[.13667,.63667,0,0,.77778],"10885":[.25583,.75583,0,0,.77778],"10886":[.25583,.75583,0,0,.77778],"10887":[.13597,.63597,0,0,.77778],"10888":[.13597,.63597,0,0,.77778],"10889":[.26167,.75726,0,0,.77778],"10890":[.26167,.75726,0,0,.77778],"10891":[.48256,.98256,0,0,.77778],"10892":[.48256,.98256,0,0,.77778],"10901":[.13667,.63667,0,0,.77778],"10902":[.13667,.63667,0,0,.77778],"10933":[.25142,.75726,0,0,.77778],"10934":[.25142,.75726,0,0,.77778],"10935":[.26167,.75726,0,0,.77778],"10936":[.26167,.75726,0,0,.77778],"10937":[.26167,.75726,0,0,.77778],"10938":[.26167,.75726,0,0,.77778],"10949":[.25583,.75583,0,0,.77778],"10950":[.25583,.75583,0,0,.77778],"10955":[.28481,.79383,0,0,.77778],"10956":[.28481,.79383,0,0,.77778],"57350":[.08167,.58167,0,0,.22222],"57351":[.08167,.58167,0,0,.38889],"57352":[.08167,.58167,0,0,.77778],"57353":[0,.43056,.04028,0,.66667],"57356":[.25142,.75726,0,0,.77778],"57357":[.25142,.75726,0,0,.77778],"57358":[.41951,.91951,0,0,.77778],"57359":[.30274,.79383,0,0,.77778],"57360":[.30274,.79383,0,0,.77778],"57361":[.41951,.91951,0,0,.77778],"57366":[.25142,.75726,0,0,.77778],"57367":[.25142,.75726,0,0,.77778],"57368":[.25142,.75726,0,0,.77778],"57369":[.25142,.75726,0,0,.77778],"57370":[.13597,.63597,0,0,.77778],"57371":[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{"48":[0,.43056,0,0,.5],"49":[0,.43056,0,0,.5],"50":[0,.43056,0,0,.5],"51":[.19444,.43056,0,0,.5],"52":[.19444,.43056,0,0,.5],"53":[.19444,.43056,0,0,.5],"54":[0,.64444,0,0,.5],"55":[.19444,.43056,0,0,.5],"56":[0,.64444,0,0,.5],"57":[.19444,.43056,0,0,.5],"65":[0,.68333,0,.19445,.79847],"66":[0,.68333,.03041,.13889,.65681],"67":[0,.68333,.05834,.13889,.52653],"68":[0,.68333,.02778,.08334,.77139],"69":[0,.68333,.08944,.11111,.52778],"70":[0,.68333,.09931,.11111,.71875],"71":[.09722,.68333,.0593,.11111,.59487],"72":[0,.68333,.00965,.11111,.84452],"73":[0,.68333,.07382,0,.54452],"74":[.09722,.68333,.18472,.16667,.67778],"75":[0,.68333,.01445,.05556,.76195],"76":[0,.68333,0,.13889,.68972],"77":[0,.68333,0,.13889,1.2009],"78":[0,.68333,.14736,.08334,.82049],"79":[0,.68333,.02778,.11111,.79611],"80":[0,.68333,.08222,.08334,.69556],"81":[.09722,.68333,0,.11111,.81667],"82":[0,.68333,0,.08334,.8475],"83":[0,.68333,.075,.13889,.60556],"84":[0,.68333,.25417,0,.54464],"85":[0,.68333,.09931,.08334,.62583],"86":[0,.68333,.08222,0,.61278],"87":[0,.68333,.08222,.08334,.98778],"88":[0,.68333,.14643,.13889,.7133],"89":[.09722,.68333,.08222,.08334,.66834],"90":[0,.68333,.07944,.13889,.72473]},"Fraktur-Regular":{"33":[0,.69141,0,0,.29574],"34":[0,.69141,0,0,.21471],"38":[0,.69141,0,0,.73786],"39":[0,.69141,0,0,.21201],"40":[.24982,.74947,0,0,.38865],"41":[.24982,.74947,0,0,.38865],"42":[0,.62119,0,0,.27764],"43":[.08319,.58283,0,0,.75623],"44":[0,.10803,0,0,.27764],"45":[.08319,.58283,0,0,.75623],"46":[0,.10803,0,0,.27764],"47":[.24982,.74947,0,0,.50181],"48":[0,.47534,0,0,.50181],"49":[0,.47534,0,0,.50181],"50":[0,.47534,0,0,.50181],"51":[.18906,.47534,0,0,.50181],"52":[.18906,.47534,0,0,.50181],"53":[.18906,.47534,0,0,.50181],"54":[0,.69141,0,0,.50181],"55":[.18906,.47534,0,0,.50181],"56":[0,.69141,0,0,.50181],"57":[.18906,.47534,0,0,.50181],"58":[0,.47534,0,0,.21606],"59":[.12604,.47534,0,0,.21606],"61":[-.13099,.36866,0,0,.75623],"63":[0,.69141,0,0,.36245],"65":[0,.69141,0,0,.7176],"66":[0,.69141,0,0,.88397],"67":[0,.69141,0,0,.61254],"68":[0,.69141,0,0,.83158],"69":[0,.69141,0,0,.66278],"70":[.12604,.69141,0,0,.61119],"71":[0,.69141,0,0,.78539],"72":[.06302,.69141,0,0,.7203],"73":[0,.69141,0,0,.55448],"74":[.12604,.69141,0,0,.55231],"75":[0,.69141,0,0,.66845],"76":[0,.69141,0,0,.66602],"77":[0,.69141,0,0,1.04953],"78":[0,.69141,0,0,.83212],"79":[0,.69141,0,0,.82699],"80":[.18906,.69141,0,0,.82753],"81":[.03781,.69141,0,0,.82699],"82":[0,.69141,0,0,.82807],"83":[0,.69141,0,0,.82861],"84":[0,.69141,0,0,.66899],"85":[0,.69141,0,0,.64576],"86":[0,.69141,0,0,.83131],"87":[0,.69141,0,0,1.04602],"88":[0,.69141,0,0,.71922],"89":[.18906,.69141,0,0,.83293],"90":[.12604,.69141,0,0,.60201],"91":[.24982,.74947,0,0,.27764],"93":[.24982,.74947,0,0,.27764],"94":[0,.69141,0,0,.49965],"97":[0,.47534,0,0,.50046],"98":[0,.69141,0,0,.51315],"99":[0,.47534,0,0,.38946],"100":[0,.62119,0,0,.49857],"101":[0,.47534,0,0,.40053],"102":[.18906,.69141,0,0,.32626],"103":[.18906,.47534,0,0,.5037],"104":[.18906,.69141,0,0,.52126],"105":[0,.69141,0,0,.27899],"106":[0,.69141,0,0,.28088],"107":[0,.69141,0,0,.38946],"108":[0,.69141,0,0,.27953],"109":[0,.47534,0,0,.76676],"110":[0,.47534,0,0,.52666],"111":[0,.47534,0,0,.48885],"112":[.18906,.52396,0,0,.50046],"113":[.18906,.47534,0,0,.48912],"114":[0,.47534,0,0,.38919],"115":[0,.47534,0,0,.44266],"116":[0,.62119,0,0,.33301],"117":[0,.47534,0,0,.5172],"118":[0,.52396,0,0,.5118],"119":[0,.52396,0,0,.77351],"120":[.18906,.47534,0,0,.38865],"121":[.18906,.47534,0,0,.49884],"122":[.18906,.47534,0,0,.39054],"8216":[0,.69141,0,0,.21471],"8217":[0,.69141,0,0,.21471],"58112":[0,.62119,0,0,.49749],"58113":[0,.62119,0,0,.4983],"58114":[.18906,.69141,0,0,.33328],"58115":[.18906,.69141,0,0,.32923],"58116":[.18906,.47534,0,0,.50343],"58117":[0,.69141,0,0,.33301],"58118":[0,.62119,0,0,.33409],"58119":[0,.47534,0,0,.50073]},"Main-Bold":{"33":[0,.69444,0,0,.35],"34":[0,.69444,0,0,.60278],"35":[.19444,.69444,0,0,.95833],"36":[.05556,.75,0,0,.575],"37":[.05556,.75,0,0,.95833],"38":[0,.69444,0,0,.89444],"39":[0,.69444,0,0,.31944],"40":[.25,.75,0,0,.44722],"41":[.25,.75,0,0,.44722],"42":[0,.75,0,0,.575],"43":[.13333,.63333,0,0,.89444],"44":[.19444,.15556,0,0,.31944],"45":[0,.44444,0,0,.38333],"46":[0,.15556,0,0,.31944],"47":[.25,.75,0,0,.575],"48":[0,.64444,0,0,.575],"49":[0,.64444,0,0,.575],"50":[0,.64444,0,0,.575],"51":[0,.64444,0,0,.575],"52":[0,.64444,0,0,.575],"53":[0,.64444,0,0,.575],"54":[0,.64444,0,0,.575],"55":[0,.64444,0,0,.575],"56":[0,.64444,0,0,.575],"57":[0,.64444,0,0,.575],"58":[0,.44444,0,0,.31944],"59":[.19444,.44444,0,0,.31944],"60":[.08556,.58556,0,0,.89444],"61":[-.10889,.39111,0,0,.89444],"62":[.08556,.58556,0,0,.89444],"63":[0,.69444,0,0,.54305],"64":[0,.69444,0,0,.89444],"65":[0,.68611,0,0,.86944],"66":[0,.68611,0,0,.81805],"67":[0,.68611,0,0,.83055],"68":[0,.68611,0,0,.88194],"69":[0,.68611,0,0,.75555],"70":[0,.68611,0,0,.72361],"71":[0,.68611,0,0,.90416],"72":[0,.68611,0,0,.9],"73":[0,.68611,0,0,.43611],"74":[0,.68611,0,0,.59444],"75":[0,.68611,0,0,.90138],"76":[0,.68611,0,0,.69166],"77":[0,.68611,0,0,1.09166],"78":[0,.68611,0,0,.9],"79":[0,.68611,0,0,.86388],"80":[0,.68611,0,0,.78611],"81":[.19444,.68611,0,0,.86388],"82":[0,.68611,0,0,.8625],"83":[0,.68611,0,0,.63889],"84":[0,.68611,0,0,.8],"85":[0,.68611,0,0,.88472],"86":[0,.68611,.01597,0,.86944],"87":[0,.68611,.01597,0,1.18888],"88":[0,.68611,0,0,.86944],"89":[0,.68611,.02875,0,.86944],"90":[0,.68611,0,0,.70277],"91":[.25,.75,0,0,.31944],"92":[.25,.75,0,0,.575],"93":[.25,.75,0,0,.31944],"94":[0,.69444,0,0,.575],"95":[.31,.13444,.03194,0,.575],"97":[0,.44444,0,0,.55902],"98":[0,.69444,0,0,.63889],"99":[0,.44444,0,0,.51111],"100":[0,.69444,0,0,.63889],"101":[0,.44444,0,0,.52708],"102":[0,.69444,.10903,0,.35139],"103":[.19444,.44444,.01597,0,.575],"104":[0,.69444,0,0,.63889],"105":[0,.69444,0,0,.31944],"106":[.19444,.69444,0,0,.35139],"107":[0,.69444,0,0,.60694],"108":[0,.69444,0,0,.31944],"109":[0,.44444,0,0,.95833],"110":[0,.44444,0,0,.63889],"111":[0,.44444,0,0,.575],"112":[.19444,.44444,0,0,.63889],"113":[.19444,.44444,0,0,.60694],"114":[0,.44444,0,0,.47361],"115":[0,.44444,0,0,.45361],"116":[0,.63492,0,0,.44722],"117":[0,.44444,0,0,.63889],"118":[0,.44444,.01597,0,.60694],"119":[0,.44444,.01597,0,.83055],"120":[0,.44444,0,0,.60694],"121":[.19444,.44444,.01597,0,.60694],"122":[0,.44444,0,0,.51111],"123":[.25,.75,0,0,.575],"124":[.25,.75,0,0,.31944],"125":[.25,.75,0,0,.575],"126":[.35,.34444,0,0,.575],"168":[0,.69444,0,0,.575],"172":[0,.44444,0,0,.76666],"176":[0,.69444,0,0,.86944],"177":[.13333,.63333,0,0,.89444],"184":[.17014,0,0,0,.51111],"198":[0,.68611,0,0,1.04166],"215":[.13333,.63333,0,0,.89444],"216":[.04861,.73472,0,0,.89444],"223":[0,.69444,0,0,.59722],"230":[0,.44444,0,0,.83055],"247":[.13333,.63333,0,0,.89444],"248":[.09722,.54167,0,0,.575],"305":[0,.44444,0,0,.31944],"338":[0,.68611,0,0,1.16944],"339":[0,.44444,0,0,.89444],"567":[.19444,.44444,0,0,.35139],"710":[0,.69444,0,0,.575],"711":[0,.63194,0,0,.575],"713":[0,.59611,0,0,.575],"714":[0,.69444,0,0,.575],"715":[0,.69444,0,0,.575],"728":[0,.69444,0,0,.575],"729":[0,.69444,0,0,.31944],"730":[0,.69444,0,0,.86944],"732":[0,.69444,0,0,.575],"733":[0,.69444,0,0,.575],"915":[0,.68611,0,0,.69166],"916":[0,.68611,0,0,.95833],"920":[0,.68611,0,0,.89444],"923":[0,.68611,0,0,.80555],"926":[0,.68611,0,0,.76666],"928":[0,.68611,0,0,.9],"931":[0,.68611,0,0,.83055],"933":[0,.68611,0,0,.89444],"934":[0,.68611,0,0,.83055],"936":[0,.68611,0,0,.89444],"937":[0,.68611,0,0,.83055],"8211":[0,.44444,.03194,0,.575],"8212":[0,.44444,.03194,0,1.14999],"8216":[0,.69444,0,0,.31944],"8217":[0,.69444,0,0,.31944],"8220":[0,.69444,0,0,.60278],"8221":[0,.69444,0,0,.60278],"8224":[.19444,.69444,0,0,.51111],"8225":[.19444,.69444,0,0,.51111],"8242":[0,.55556,0,0,.34444],"8407":[0,.72444,.15486,0,.575],"8463":[0,.69444,0,0,.66759],"8465":[0,.69444,0,0,.83055],"8467":[0,.69444,0,0,.47361],"8472":[.19444,.44444,0,0,.74027],"8476":[0,.69444,0,0,.83055],"8501":[0,.69444,0,0,.70277],"8592":[-.10889,.39111,0,0,1.14999],"8593":[.19444,.69444,0,0,.575],"8594":[-.10889,.39111,0,0,1.14999],"8595":[.19444,.69444,0,0,.575],"8596":[-.10889,.39111,0,0,1.14999],"8597":[.25,.75,0,0,.575],"8598":[.19444,.69444,0,0,1.14999],"8599":[.19444,.69444,0,0,1.14999],"8600":[.19444,.69444,0,0,1.14999],"8601":[.19444,.69444,0,0,1.14999],"8636":[-.10889,.39111,0,0,1.14999],"8637":[-.10889,.39111,0,0,1.14999],"8640":[-.10889,.39111,0,0,1.14999],"8641":[-.10889,.39111,0,0,1.14999],"8656":[-.10889,.39111,0,0,1.14999],"8657":[.19444,.69444,0,0,.70277],"8658":[-.10889,.39111,0,0,1.14999],"8659":[.19444,.69444,0,0,.70277],"8660":[-.10889,.39111,0,0,1.14999],"8661":[.25,.75,0,0,.70277],"8704":[0,.69444,0,0,.63889],"8706":[0,.69444,.06389,0,.62847],"8707":[0,.69444,0,0,.63889],"8709":[.05556,.75,0,0,.575],"8711":[0,.68611,0,0,.95833],"8712":[.08556,.58556,0,0,.76666],"8715":[.08556,.58556,0,0,.76666],"8722":[.13333,.63333,0,0,.89444],"8723":[.13333,.63333,0,0,.89444],"8725":[.25,.75,0,0,.575],"8726":[.25,.75,0,0,.575],"8727":[-.02778,.47222,0,0,.575],"8728":[-.02639,.47361,0,0,.575],"8729":[-.02639,.47361,0,0,.575],"8730":[.18,.82,0,0,.95833],"8733":[0,.44444,0,0,.89444],"8734":[0,.44444,0,0,1.14999],"8736":[0,.69224,0,0,.72222],"8739":[.25,.75,0,0,.31944],"8741":[.25,.75,0,0,.575],"8743":[0,.55556,0,0,.76666],"8744":[0,.55556,0,0,.76666],"8745":[0,.55556,0,0,.76666],"8746":[0,.55556,0,0,.76666],"8747":[.19444,.69444,.12778,0,.56875],"8764":[-.10889,.39111,0,0,.89444],"8768":[.19444,.69444,0,0,.31944],"8771":[.00222,.50222,0,0,.89444],"8776":[.02444,.52444,0,0,.89444],"8781":[.00222,.50222,0,0,.89444],"8801":[.00222,.50222,0,0,.89444],"8804":[.19667,.69667,0,0,.89444],"8805":[.19667,.69667,0,0,.89444],"8810":[.08556,.58556,0,0,1.14999],"8811":[.08556,.58556,0,0,1.14999],"8826":[.08556,.58556,0,0,.89444],"8827":[.08556,.58556,0,0,.89444],"8834":[.08556,.58556,0,0,.89444],"8835":[.08556,.58556,0,0,.89444],"8838":[.19667,.69667,0,0,.89444],"8839":[.19667,.69667,0,0,.89444],"8846":[0,.55556,0,0,.76666],"8849":[.19667,.69667,0,0,.89444],"8850":[.19667,.69667,0,0,.89444],"8851":[0,.55556,0,0,.76666],"8852":[0,.55556,0,0,.76666],"8853":[.13333,.63333,0,0,.89444],"8854":[.13333,.63333,0,0,.89444],"8855":[.13333,.63333,0,0,.89444],"8856":[.13333,.63333,0,0,.89444],"8857":[.13333,.63333,0,0,.89444],"8866":[0,.69444,0,0,.70277],"8867":[0,.69444,0,0,.70277],"8868":[0,.69444,0,0,.89444],"8869":[0,.69444,0,0,.89444],"8900":[-.02639,.47361,0,0,.575],"8901":[-.02639,.47361,0,0,.31944],"8902":[-.02778,.47222,0,0,.575],"8968":[.25,.75,0,0,.51111],"8969":[.25,.75,0,0,.51111],"8970":[.25,.75,0,0,.51111],"8971":[.25,.75,0,0,.51111],"8994":[-.13889,.36111,0,0,1.14999],"8995":[-.13889,.36111,0,0,1.14999],"9651":[.19444,.69444,0,0,1.02222],"9657":[-.02778,.47222,0,0,.575],"9661":[.19444,.69444,0,0,1.02222],"9667":[-.02778,.47222,0,0,.575],"9711":[.19444,.69444,0,0,1.14999],"9824":[.12963,.69444,0,0,.89444],"9825":[.12963,.69444,0,0,.89444],"9826":[.12963,.69444,0,0,.89444],"9827":[.12963,.69444,0,0,.89444],"9837":[0,.75,0,0,.44722],"9838":[.19444,.69444,0,0,.44722],"9839":[.19444,.69444,0,0,.44722],"10216":[.25,.75,0,0,.44722],"10217":[.25,.75,0,0,.44722],"10815":[0,.68611,0,0,.9],"10927":[.19667,.69667,0,0,.89444],"10928":[.19667,.69667,0,0,.89444],"57376":[.19444,.69444,0,0,0]},"Main-BoldItalic":{"33":[0,.69444,.11417,0,.38611],"34":[0,.69444,.07939,0,.62055],"35":[.19444,.69444,.06833,0,.94444],"37":[.05556,.75,.12861,0,.94444],"38":[0,.69444,.08528,0,.88555],"39":[0,.69444,.12945,0,.35555],"40":[.25,.75,.15806,0,.47333],"41":[.25,.75,.03306,0,.47333],"42":[0,.75,.14333,0,.59111],"43":[.10333,.60333,.03306,0,.88555],"44":[.19444,.14722,0,0,.35555],"45":[0,.44444,.02611,0,.41444],"46":[0,.14722,0,0,.35555],"47":[.25,.75,.15806,0,.59111],"48":[0,.64444,.13167,0,.59111],"49":[0,.64444,.13167,0,.59111],"50":[0,.64444,.13167,0,.59111],"51":[0,.64444,.13167,0,.59111],"52":[.19444,.64444,.13167,0,.59111],"53":[0,.64444,.13167,0,.59111],"54":[0,.64444,.13167,0,.59111],"55":[.19444,.64444,.13167,0,.59111],"56":[0,.64444,.13167,0,.59111],"57":[0,.64444,.13167,0,.59111],"58":[0,.44444,.06695,0,.35555],"59":[.19444,.44444,.06695,0,.35555],"61":[-.10889,.39111,.06833,0,.88555],"63":[0,.69444,.11472,0,.59111],"64":[0,.69444,.09208,0,.88555],"65":[0,.68611,0,0,.86555],"66":[0,.68611,.0992,0,.81666],"67":[0,.68611,.14208,0,.82666],"68":[0,.68611,.09062,0,.87555],"69":[0,.68611,.11431,0,.75666],"70":[0,.68611,.12903,0,.72722],"71":[0,.68611,.07347,0,.89527],"72":[0,.68611,.17208,0,.8961],"73":[0,.68611,.15681,0,.47166],"74":[0,.68611,.145,0,.61055],"75":[0,.68611,.14208,0,.89499],"76":[0,.68611,0,0,.69777],"77":[0,.68611,.17208,0,1.07277],"78":[0,.68611,.17208,0,.8961],"79":[0,.68611,.09062,0,.85499],"80":[0,.68611,.0992,0,.78721],"81":[.19444,.68611,.09062,0,.85499],"82":[0,.68611,.02559,0,.85944],"83":[0,.68611,.11264,0,.64999],"84":[0,.68611,.12903,0,.7961],"85":[0,.68611,.17208,0,.88083],"86":[0,.68611,.18625,0,.86555],"87":[0,.68611,.18625,0,1.15999],"88":[0,.68611,.15681,0,.86555],"89":[0,.68611,.19803,0,.86555],"90":[0,.68611,.14208,0,.70888],"91":[.25,.75,.1875,0,.35611],"93":[.25,.75,.09972,0,.35611],"94":[0,.69444,.06709,0,.59111],"95":[.31,.13444,.09811,0,.59111],"97":[0,.44444,.09426,0,.59111],"98":[0,.69444,.07861,0,.53222],"99":[0,.44444,.05222,0,.53222],"100":[0,.69444,.10861,0,.59111],"101":[0,.44444,.085,0,.53222],"102":[.19444,.69444,.21778,0,.4],"103":[.19444,.44444,.105,0,.53222],"104":[0,.69444,.09426,0,.59111],"105":[0,.69326,.11387,0,.35555],"106":[.19444,.69326,.1672,0,.35555],"107":[0,.69444,.11111,0,.53222],"108":[0,.69444,.10861,0,.29666],"109":[0,.44444,.09426,0,.94444],"110":[0,.44444,.09426,0,.64999],"111":[0,.44444,.07861,0,.59111],"112":[.19444,.44444,.07861,0,.59111],"113":[.19444,.44444,.105,0,.53222],"114":[0,.44444,.11111,0,.50167],"115":[0,.44444,.08167,0,.48694],"116":[0,.63492,.09639,0,.385],"117":[0,.44444,.09426,0,.62055],"118":[0,.44444,.11111,0,.53222],"119":[0,.44444,.11111,0,.76777],"120":[0,.44444,.12583,0,.56055],"121":[.19444,.44444,.105,0,.56166],"122":[0,.44444,.13889,0,.49055],"126":[.35,.34444,.11472,0,.59111],"163":[0,.69444,0,0,.86853],"168":[0,.69444,.11473,0,.59111],"176":[0,.69444,0,0,.94888],"184":[.17014,0,0,0,.53222],"198":[0,.68611,.11431,0,1.02277],"216":[.04861,.73472,.09062,0,.88555],"223":[.19444,.69444,.09736,0,.665],"230":[0,.44444,.085,0,.82666],"248":[.09722,.54167,.09458,0,.59111],"305":[0,.44444,.09426,0,.35555],"338":[0,.68611,.11431,0,1.14054],"339":[0,.44444,.085,0,.82666],"567":[.19444,.44444,.04611,0,.385],"710":[0,.69444,.06709,0,.59111],"711":[0,.63194,.08271,0,.59111],"713":[0,.59444,.10444,0,.59111],"714":[0,.69444,.08528,0,.59111],"715":[0,.69444,0,0,.59111],"728":[0,.69444,.10333,0,.59111],"729":[0,.69444,.12945,0,.35555],"730":[0,.69444,0,0,.94888],"732":[0,.69444,.11472,0,.59111],"733":[0,.69444,.11472,0,.59111],"915":[0,.68611,.12903,0,.69777],"916":[0,.68611,0,0,.94444],"920":[0,.68611,.09062,0,.88555],"923":[0,.68611,0,0,.80666],"926":[0,.68611,.15092,0,.76777],"928":[0,.68611,.17208,0,.8961],"931":[0,.68611,.11431,0,.82666],"933":[0,.68611,.10778,0,.88555],"934":[0,.68611,.05632,0,.82666],"936":[0,.68611,.10778,0,.88555],"937":[0,.68611,.0992,0,.82666],"8211":[0,.44444,.09811,0,.59111],"8212":[0,.44444,.09811,0,1.18221],"8216":[0,.69444,.12945,0,.35555],"8217":[0,.69444,.12945,0,.35555],"8220":[0,.69444,.16772,0,.62055],"8221":[0,.69444,.07939,0,.62055]},"Main-Italic":{"33":[0,.69444,.12417,0,.30667],"34":[0,.69444,.06961,0,.51444],"35":[.19444,.69444,.06616,0,.81777],"37":[.05556,.75,.13639,0,.81777],"38":[0,.69444,.09694,0,.76666],"39":[0,.69444,.12417,0,.30667],"40":[.25,.75,.16194,0,.40889],"41":[.25,.75,.03694,0,.40889],"42":[0,.75,.14917,0,.51111],"43":[.05667,.56167,.03694,0,.76666],"44":[.19444,.10556,0,0,.30667],"45":[0,.43056,.02826,0,.35778],"46":[0,.10556,0,0,.30667],"47":[.25,.75,.16194,0,.51111],"48":[0,.64444,.13556,0,.51111],"49":[0,.64444,.13556,0,.51111],"50":[0,.64444,.13556,0,.51111],"51":[0,.64444,.13556,0,.51111],"52":[.19444,.64444,.13556,0,.51111],"53":[0,.64444,.13556,0,.51111],"54":[0,.64444,.13556,0,.51111],"55":[.19444,.64444,.13556,0,.51111],"56":[0,.64444,.13556,0,.51111],"57":[0,.64444,.13556,0,.51111],"58":[0,.43056,.0582,0,.30667],"59":[.19444,.43056,.0582,0,.30667],"61":[-.13313,.36687,.06616,0,.76666],"63":[0,.69444,.1225,0,.51111],"64":[0,.69444,.09597,0,.76666],"65":[0,.68333,0,0,.74333],"66":[0,.68333,.10257,0,.70389],"67":[0,.68333,.14528,0,.71555],"68":[0,.68333,.09403,0,.755],"69":[0,.68333,.12028,0,.67833],"70":[0,.68333,.13305,0,.65277],"71":[0,.68333,.08722,0,.77361],"72":[0,.68333,.16389,0,.74333],"73":[0,.68333,.15806,0,.38555],"74":[0,.68333,.14028,0,.525],"75":[0,.68333,.14528,0,.76888],"76":[0,.68333,0,0,.62722],"77":[0,.68333,.16389,0,.89666],"78":[0,.68333,.16389,0,.74333],"79":[0,.68333,.09403,0,.76666],"80":[0,.68333,.10257,0,.67833],"81":[.19444,.68333,.09403,0,.76666],"82":[0,.68333,.03868,0,.72944],"83":[0,.68333,.11972,0,.56222],"84":[0,.68333,.13305,0,.71555],"85":[0,.68333,.16389,0,.74333],"86":[0,.68333,.18361,0,.74333],"87":[0,.68333,.18361,0,.99888],"88":[0,.68333,.15806,0,.74333],"89":[0,.68333,.19383,0,.74333],"90":[0,.68333,.14528,0,.61333],"91":[.25,.75,.1875,0,.30667],"93":[.25,.75,.10528,0,.30667],"94":[0,.69444,.06646,0,.51111],"95":[.31,.12056,.09208,0,.51111],"97":[0,.43056,.07671,0,.51111],"98":[0,.69444,.06312,0,.46],"99":[0,.43056,.05653,0,.46],"100":[0,.69444,.10333,0,.51111],"101":[0,.43056,.07514,0,.46],"102":[.19444,.69444,.21194,0,.30667],"103":[.19444,.43056,.08847,0,.46],"104":[0,.69444,.07671,0,.51111],"105":[0,.65536,.1019,0,.30667],"106":[.19444,.65536,.14467,0,.30667],"107":[0,.69444,.10764,0,.46],"108":[0,.69444,.10333,0,.25555],"109":[0,.43056,.07671,0,.81777],"110":[0,.43056,.07671,0,.56222],"111":[0,.43056,.06312,0,.51111],"112":[.19444,.43056,.06312,0,.51111],"113":[.19444,.43056,.08847,0,.46],"114":[0,.43056,.10764,0,.42166],"115":[0,.43056,.08208,0,.40889],"116":[0,.61508,.09486,0,.33222],"117":[0,.43056,.07671,0,.53666],"118":[0,.43056,.10764,0,.46],"119":[0,.43056,.10764,0,.66444],"120":[0,.43056,.12042,0,.46389],"121":[.19444,.43056,.08847,0,.48555],"122":[0,.43056,.12292,0,.40889],"126":[.35,.31786,.11585,0,.51111],"163":[0,.69444,0,0,.76909],"168":[0,.66786,.10474,0,.51111],"176":[0,.69444,0,0,.83129],"184":[.17014,0,0,0,.46],"198":[0,.68333,.12028,0,.88277],"216":[.04861,.73194,.09403,0,.76666],"223":[.19444,.69444,.10514,0,.53666],"230":[0,.43056,.07514,0,.71555],"248":[.09722,.52778,.09194,0,.51111],"305":[0,.43056,0,.02778,.32246],"338":[0,.68333,.12028,0,.98499],"339":[0,.43056,.07514,0,.71555],"567":[.19444,.43056,0,.08334,.38403],"710":[0,.69444,.06646,0,.51111],"711":[0,.62847,.08295,0,.51111],"713":[0,.56167,.10333,0,.51111],"714":[0,.69444,.09694,0,.51111],"715":[0,.69444,0,0,.51111],"728":[0,.69444,.10806,0,.51111],"729":[0,.66786,.11752,0,.30667],"730":[0,.69444,0,0,.83129],"732":[0,.66786,.11585,0,.51111],"733":[0,.69444,.1225,0,.51111],"915":[0,.68333,.13305,0,.62722],"916":[0,.68333,0,0,.81777],"920":[0,.68333,.09403,0,.76666],"923":[0,.68333,0,0,.69222],"926":[0,.68333,.15294,0,.66444],"928":[0,.68333,.16389,0,.74333],"931":[0,.68333,.12028,0,.71555],"933":[0,.68333,.11111,0,.76666],"934":[0,.68333,.05986,0,.71555],"936":[0,.68333,.11111,0,.76666],"937":[0,.68333,.10257,0,.71555],"8211":[0,.43056,.09208,0,.51111],"8212":[0,.43056,.09208,0,1.02222],"8216":[0,.69444,.12417,0,.30667],"8217":[0,.69444,.12417,0,.30667],"8220":[0,.69444,.1685,0,.51444],"8221":[0,.69444,.06961,0,.51444],"8463":[0,.68889,0,0,.54028]},"Main-Regular":{"32":[0,0,0,0,.25],"33":[0,.69444,0,0,.27778],"34":[0,.69444,0,0,.5],"35":[.19444,.69444,0,0,.83334],"36":[.05556,.75,0,0,.5],"37":[.05556,.75,0,0,.83334],"38":[0,.69444,0,0,.77778],"39":[0,.69444,0,0,.27778],"40":[.25,.75,0,0,.38889],"41":[.25,.75,0,0,.38889],"42":[0,.75,0,0,.5],"43":[.08333,.58333,0,0,.77778],"44":[.19444,.10556,0,0,.27778],"45":[0,.43056,0,0,.33333],"46":[0,.10556,0,0,.27778],"47":[.25,.75,0,0,.5],"48":[0,.64444,0,0,.5],"49":[0,.64444,0,0,.5],"50":[0,.64444,0,0,.5],"51":[0,.64444,0,0,.5],"52":[0,.64444,0,0,.5],"53":[0,.64444,0,0,.5],"54":[0,.64444,0,0,.5],"55":[0,.64444,0,0,.5],"56":[0,.64444,0,0,.5],"57":[0,.64444,0,0,.5],"58":[0,.43056,0,0,.27778],"59":[.19444,.43056,0,0,.27778],"60":[.0391,.5391,0,0,.77778],"61":[-.13313,.36687,0,0,.77778],"62":[.0391,.5391,0,0,.77778],"63":[0,.69444,0,0,.47222],"64":[0,.69444,0,0,.77778],"65":[0,.68333,0,0,.75],"66":[0,.68333,0,0,.70834],"67":[0,.68333,0,0,.72222],"68":[0,.68333,0,0,.76389],"69":[0,.68333,0,0,.68056],"70":[0,.68333,0,0,.65278],"71":[0,.68333,0,0,.78472],"72":[0,.68333,0,0,.75],"73":[0,.68333,0,0,.36111],"74":[0,.68333,0,0,.51389],"75":[0,.68333,0,0,.77778],"76":[0,.68333,0,0,.625],"77":[0,.68333,0,0,.91667],"78":[0,.68333,0,0,.75],"79":[0,.68333,0,0,.77778],"80":[0,.68333,0,0,.68056],"81":[.19444,.68333,0,0,.77778],"82":[0,.68333,0,0,.73611],"83":[0,.68333,0,0,.55556],"84":[0,.68333,0,0,.72222],"85":[0,.68333,0,0,.75],"86":[0,.68333,.01389,0,.75],"87":[0,.68333,.01389,0,1.02778],"88":[0,.68333,0,0,.75],"89":[0,.68333,.025,0,.75],"90":[0,.68333,0,0,.61111],"91":[.25,.75,0,0,.27778],"92":[.25,.75,0,0,.5],"93":[.25,.75,0,0,.27778],"94":[0,.69444,0,0,.5],"95":[.31,.12056,.02778,0,.5],"97":[0,.43056,0,0,.5],"98":[0,.69444,0,0,.55556],"99":[0,.43056,0,0,.44445],"100":[0,.69444,0,0,.55556],"101":[0,.43056,0,0,.44445],"102":[0,.69444,.07778,0,.30556],"103":[.19444,.43056,.01389,0,.5],"104":[0,.69444,0,0,.55556],"105":[0,.66786,0,0,.27778],"106":[.19444,.66786,0,0,.30556],"107":[0,.69444,0,0,.52778],"108":[0,.69444,0,0,.27778],"109":[0,.43056,0,0,.83334],"110":[0,.43056,0,0,.55556],"111":[0,.43056,0,0,.5],"112":[.19444,.43056,0,0,.55556],"113":[.19444,.43056,0,0,.52778],"114":[0,.43056,0,0,.39167],"115":[0,.43056,0,0,.39445],"116":[0,.61508,0,0,.38889],"117":[0,.43056,0,0,.55556],"118":[0,.43056,.01389,0,.52778],"119":[0,.43056,.01389,0,.72222],"120":[0,.43056,0,0,.52778],"121":[.19444,.43056,.01389,0,.52778],"122":[0,.43056,0,0,.44445],"123":[.25,.75,0,0,.5],"124":[.25,.75,0,0,.27778],"125":[.25,.75,0,0,.5],"126":[.35,.31786,0,0,.5],"160":[0,0,0,0,.25],"167":[.19444,.69444,0,0,.44445],"168":[0,.66786,0,0,.5],"172":[0,.43056,0,0,.66667],"176":[0,.69444,0,0,.75],"177":[.08333,.58333,0,0,.77778],"182":[.19444,.69444,0,0,.61111],"184":[.17014,0,0,0,.44445],"198":[0,.68333,0,0,.90278],"215":[.08333,.58333,0,0,.77778],"216":[.04861,.73194,0,0,.77778],"223":[0,.69444,0,0,.5],"230":[0,.43056,0,0,.72222],"247":[.08333,.58333,0,0,.77778],"248":[.09722,.52778,0,0,.5],"305":[0,.43056,0,0,.27778],"338":[0,.68333,0,0,1.01389],"339":[0,.43056,0,0,.77778],"567":[.19444,.43056,0,0,.30556],"710":[0,.69444,0,0,.5],"711":[0,.62847,0,0,.5],"713":[0,.56778,0,0,.5],"714":[0,.69444,0,0,.5],"715":[0,.69444,0,0,.5],"728":[0,.69444,0,0,.5],"729":[0,.66786,0,0,.27778],"730":[0,.69444,0,0,.75],"732":[0,.66786,0,0,.5],"733":[0,.69444,0,0,.5],"915":[0,.68333,0,0,.625],"916":[0,.68333,0,0,.83334],"920":[0,.68333,0,0,.77778],"923":[0,.68333,0,0,.69445],"926":[0,.68333,0,0,.66667],"928":[0,.68333,0,0,.75],"931":[0,.68333,0,0,.72222],"933":[0,.68333,0,0,.77778],"934":[0,.68333,0,0,.72222],"936":[0,.68333,0,0,.77778],"937":[0,.68333,0,0,.72222],"8211":[0,.43056,.02778,0,.5],"8212":[0,.43056,.02778,0,1],"8216":[0,.69444,0,0,.27778],"8217":[0,.69444,0,0,.27778],"8220":[0,.69444,0,0,.5],"8221":[0,.69444,0,0,.5],"8224":[.19444,.69444,0,0,.44445],"8225":[.19444,.69444,0,0,.44445],"8230":[0,.12,0,0,1.172],"8242":[0,.55556,0,0,.275],"8407":[0,.71444,.15382,0,.5],"8463":[0,.68889,0,0,.54028],"8465":[0,.69444,0,0,.72222],"8467":[0,.69444,0,.11111,.41667],"8472":[.19444,.43056,0,.11111,.63646],"8476":[0,.69444,0,0,.72222],"8501":[0,.69444,0,0,.61111],"8592":[-.13313,.36687,0,0,1],"8593":[.19444,.69444,0,0,.5],"8594":[-.13313,.36687,0,0,1],"8595":[.19444,.69444,0,0,.5],"8596":[-.13313,.36687,0,0,1],"8597":[.25,.75,0,0,.5],"8598":[.19444,.69444,0,0,1],"8599":[.19444,.69444,0,0,1],"8600":[.19444,.69444,0,0,1],"8601":[.19444,.69444,0,0,1],"8614":[.011,.511,0,0,1],"8617":[.011,.511,0,0,1.126],"8618":[.011,.511,0,0,1.126],"8636":[-.13313,.36687,0,0,1],"8637":[-.13313,.36687,0,0,1],"8640":[-.13313,.36687,0,0,1],"8641":[-.13313,.36687,0,0,1],"8652":[.011,.671,0,0,1],"8656":[-.13313,.36687,0,0,1],"8657":[.19444,.69444,0,0,.61111],"8658":[-.13313,.36687,0,0,1],"8659":[.19444,.69444,0,0,.61111],"8660":[-.13313,.36687,0,0,1],"8661":[.25,.75,0,0,.61111],"8704":[0,.69444,0,0,.55556],"8706":[0,.69444,.05556,.08334,.5309],"8707":[0,.69444,0,0,.55556],"8709":[.05556,.75,0,0,.5],"8711":[0,.68333,0,0,.83334],"8712":[.0391,.5391,0,0,.66667],"8715":[.0391,.5391,0,0,.66667],"8722":[.08333,.58333,0,0,.77778],"8723":[.08333,.58333,0,0,.77778],"8725":[.25,.75,0,0,.5],"8726":[.25,.75,0,0,.5],"8727":[-.03472,.46528,0,0,.5],"8728":[-.05555,.44445,0,0,.5],"8729":[-.05555,.44445,0,0,.5],"8730":[.2,.8,0,0,.83334],"8733":[0,.43056,0,0,.77778],"8734":[0,.43056,0,0,1],"8736":[0,.69224,0,0,.72222],"8739":[.25,.75,0,0,.27778],"8741":[.25,.75,0,0,.5],"8743":[0,.55556,0,0,.66667],"8744":[0,.55556,0,0,.66667],"8745":[0,.55556,0,0,.66667],"8746":[0,.55556,0,0,.66667],"8747":[.19444,.69444,.11111,0,.41667],"8764":[-.13313,.36687,0,0,.77778],"8768":[.19444,.69444,0,0,.27778],"8771":[-.03625,.46375,0,0,.77778],"8773":[-.022,.589,0,0,1],"8776":[-.01688,.48312,0,0,.77778],"8781":[-.03625,.46375,0,0,.77778],"8784":[-.133,.67,0,0,.778],"8801":[-.03625,.46375,0,0,.77778],"8804":[.13597,.63597,0,0,.77778],"8805":[.13597,.63597,0,0,.77778],"8810":[.0391,.5391,0,0,1],"8811":[.0391,.5391,0,0,1],"8826":[.0391,.5391,0,0,.77778],"8827":[.0391,.5391,0,0,.77778],"8834":[.0391,.5391,0,0,.77778],"8835":[.0391,.5391,0,0,.77778],"8838":[.13597,.63597,0,0,.77778],"8839":[.13597,.63597,0,0,.77778],"8846":[0,.55556,0,0,.66667],"8849":[.13597,.63597,0,0,.77778],"8850":[.13597,.63597,0,0,.77778],"8851":[0,.55556,0,0,.66667],"8852":[0,.55556,0,0,.66667],"8853":[.08333,.58333,0,0,.77778],"8854":[.08333,.58333,0,0,.77778],"8855":[.08333,.58333,0,0,.77778],"8856":[.08333,.58333,0,0,.77778],"8857":[.08333,.58333,0,0,.77778],"8866":[0,.69444,0,0,.61111],"8867":[0,.69444,0,0,.61111],"8868":[0,.69444,0,0,.77778],"8869":[0,.69444,0,0,.77778],"8872":[.249,.75,0,0,.867],"8900":[-.05555,.44445,0,0,.5],"8901":[-.05555,.44445,0,0,.27778],"8902":[-.03472,.46528,0,0,.5],"8904":[.005,.505,0,0,.9],"8942":[.03,.9,0,0,.278],"8943":[-.19,.31,0,0,1.172],"8945":[-.1,.82,0,0,1.282],"8968":[.25,.75,0,0,.44445],"8969":[.25,.75,0,0,.44445],"8970":[.25,.75,0,0,.44445],"8971":[.25,.75,0,0,.44445],"8994":[-.14236,.35764,0,0,1],"8995":[-.14236,.35764,0,0,1],"9136":[.244,.744,0,0,.412],"9137":[.244,.744,0,0,.412],"9651":[.19444,.69444,0,0,.88889],"9657":[-.03472,.46528,0,0,.5],"9661":[.19444,.69444,0,0,.88889],"9667":[-.03472,.46528,0,0,.5],"9711":[.19444,.69444,0,0,1],"9824":[.12963,.69444,0,0,.77778],"9825":[.12963,.69444,0,0,.77778],"9826":[.12963,.69444,0,0,.77778],"9827":[.12963,.69444,0,0,.77778],"9837":[0,.75,0,0,.38889],"9838":[.19444,.69444,0,0,.38889],"9839":[.19444,.69444,0,0,.38889],"10216":[.25,.75,0,0,.38889],"10217":[.25,.75,0,0,.38889],"10222":[.244,.744,0,0,.412],"10223":[.244,.744,0,0,.412],"10229":[.011,.511,0,0,1.609],"10230":[.011,.511,0,0,1.638],"10231":[.011,.511,0,0,1.859],"10232":[.024,.525,0,0,1.609],"10233":[.024,.525,0,0,1.638],"10234":[.024,.525,0,0,1.858],"10236":[.011,.511,0,0,1.638],"10815":[0,.68333,0,0,.75],"10927":[.13597,.63597,0,0,.77778],"10928":[.13597,.63597,0,0,.77778],"57376":[.19444,.69444,0,0,0]},"Math-BoldItalic":{"65":[0,.68611,0,0,.86944],"66":[0,.68611,.04835,0,.8664],"67":[0,.68611,.06979,0,.81694],"68":[0,.68611,.03194,0,.93812],"69":[0,.68611,.05451,0,.81007],"70":[0,.68611,.15972,0,.68889],"71":[0,.68611,0,0,.88673],"72":[0,.68611,.08229,0,.98229],"73":[0,.68611,.07778,0,.51111],"74":[0,.68611,.10069,0,.63125],"75":[0,.68611,.06979,0,.97118],"76":[0,.68611,0,0,.75555],"77":[0,.68611,.11424,0,1.14201],"78":[0,.68611,.11424,0,.95034],"79":[0,.68611,.03194,0,.83666],"80":[0,.68611,.15972,0,.72309],"81":[.19444,.68611,0,0,.86861],"82":[0,.68611,.00421,0,.87235],"83":[0,.68611,.05382,0,.69271],"84":[0,.68611,.15972,0,.63663],"85":[0,.68611,.11424,0,.80027],"86":[0,.68611,.25555,0,.67778],"87":[0,.68611,.15972,0,1.09305],"88":[0,.68611,.07778,0,.94722],"89":[0,.68611,.25555,0,.67458],"90":[0,.68611,.06979,0,.77257],"97":[0,.44444,0,0,.63287],"98":[0,.69444,0,0,.52083],"99":[0,.44444,0,0,.51342],"100":[0,.69444,0,0,.60972],"101":[0,.44444,0,0,.55361],"102":[.19444,.69444,.11042,0,.56806],"103":[.19444,.44444,.03704,0,.5449],"104":[0,.69444,0,0,.66759],"105":[0,.69326,0,0,.4048],"106":[.19444,.69326,.0622,0,.47083],"107":[0,.69444,.01852,0,.6037],"108":[0,.69444,.0088,0,.34815],"109":[0,.44444,0,0,1.0324],"110":[0,.44444,0,0,.71296],"111":[0,.44444,0,0,.58472],"112":[.19444,.44444,0,0,.60092],"113":[.19444,.44444,.03704,0,.54213],"114":[0,.44444,.03194,0,.5287],"115":[0,.44444,0,0,.53125],"116":[0,.63492,0,0,.41528],"117":[0,.44444,0,0,.68102],"118":[0,.44444,.03704,0,.56666],"119":[0,.44444,.02778,0,.83148],"120":[0,.44444,0,0,.65903],"121":[.19444,.44444,.03704,0,.59028],"122":[0,.44444,.04213,0,.55509],"915":[0,.68611,.15972,0,.65694],"916":[0,.68611,0,0,.95833],"920":[0,.68611,.03194,0,.86722],"923":[0,.68611,0,0,.80555],"926":[0,.68611,.07458,0,.84125],"928":[0,.68611,.08229,0,.98229],"931":[0,.68611,.05451,0,.88507],"933":[0,.68611,.15972,0,.67083],"934":[0,.68611,0,0,.76666],"936":[0,.68611,.11653,0,.71402],"937":[0,.68611,.04835,0,.8789],"945":[0,.44444,0,0,.76064],"946":[.19444,.69444,.03403,0,.65972],"947":[.19444,.44444,.06389,0,.59003],"948":[0,.69444,.03819,0,.52222],"949":[0,.44444,0,0,.52882],"950":[.19444,.69444,.06215,0,.50833],"951":[.19444,.44444,.03704,0,.6],"952":[0,.69444,.03194,0,.5618],"953":[0,.44444,0,0,.41204],"954":[0,.44444,0,0,.66759],"955":[0,.69444,0,0,.67083],"956":[.19444,.44444,0,0,.70787],"957":[0,.44444,.06898,0,.57685],"958":[.19444,.69444,.03021,0,.50833],"959":[0,.44444,0,0,.58472],"960":[0,.44444,.03704,0,.68241],"961":[.19444,.44444,0,0,.6118],"962":[.09722,.44444,.07917,0,.42361],"963":[0,.44444,.03704,0,.68588],"964":[0,.44444,.13472,0,.52083],"965":[0,.44444,.03704,0,.63055],"966":[.19444,.44444,0,0,.74722],"967":[.19444,.44444,0,0,.71805],"968":[.19444,.69444,.03704,0,.75833],"969":[0,.44444,.03704,0,.71782],"977":[0,.69444,0,0,.69155],"981":[.19444,.69444,0,0,.7125],"982":[0,.44444,.03194,0,.975],"1009":[.19444,.44444,0,0,.6118],"1013":[0,.44444,0,0,.48333]},"Math-Italic":{"65":[0,.68333,0,.13889,.75],"66":[0,.68333,.05017,.08334,.75851],"67":[0,.68333,.07153,.08334,.71472],"68":[0,.68333,.02778,.05556,.82792],"69":[0,.68333,.05764,.08334,.7382],"70":[0,.68333,.13889,.08334,.64306],"71":[0,.68333,0,.08334,.78625],"72":[0,.68333,.08125,.05556,.83125],"73":[0,.68333,.07847,.11111,.43958],"74":[0,.68333,.09618,.16667,.55451],"75":[0,.68333,.07153,.05556,.84931],"76":[0,.68333,0,.02778,.68056],"77":[0,.68333,.10903,.08334,.97014],"78":[0,.68333,.10903,.08334,.80347],"79":[0,.68333,.02778,.08334,.76278],"80":[0,.68333,.13889,.08334,.64201],"81":[.19444,.68333,0,.08334,.79056],"82":[0,.68333,.00773,.08334,.75929],"83":[0,.68333,.05764,.08334,.6132],"84":[0,.68333,.13889,.08334,.58438],"85":[0,.68333,.10903,.02778,.68278],"86":[0,.68333,.22222,0,.58333],"87":[0,.68333,.13889,0,.94445],"88":[0,.68333,.07847,.08334,.82847],"89":[0,.68333,.22222,0,.58056],"90":[0,.68333,.07153,.08334,.68264],"97":[0,.43056,0,0,.52859],"98":[0,.69444,0,0,.42917],"99":[0,.43056,0,.05556,.43276],"100":[0,.69444,0,.16667,.52049],"101":[0,.43056,0,.05556,.46563],"102":[.19444,.69444,.10764,.16667,.48959],"103":[.19444,.43056,.03588,.02778,.47697],"104":[0,.69444,0,0,.57616],"105":[0,.65952,0,0,.34451],"106":[.19444,.65952,.05724,0,.41181],"107":[0,.69444,.03148,0,.5206],"108":[0,.69444,.01968,.08334,.29838],"109":[0,.43056,0,0,.87801],"110":[0,.43056,0,0,.60023],"111":[0,.43056,0,.05556,.48472],"112":[.19444,.43056,0,.08334,.50313],"113":[.19444,.43056,.03588,.08334,.44641],"114":[0,.43056,.02778,.05556,.45116],"115":[0,.43056,0,.05556,.46875],"116":[0,.61508,0,.08334,.36111],"117":[0,.43056,0,.02778,.57246],"118":[0,.43056,.03588,.02778,.48472],"119":[0,.43056,.02691,.08334,.71592],"120":[0,.43056,0,.02778,.57153],"121":[.19444,.43056,.03588,.05556,.49028],"122":[0,.43056,.04398,.05556,.46505],"915":[0,.68333,.13889,.08334,.61528],"916":[0,.68333,0,.16667,.83334],"920":[0,.68333,.02778,.08334,.76278],"923":[0,.68333,0,.16667,.69445],"926":[0,.68333,.07569,.08334,.74236],"928":[0,.68333,.08125,.05556,.83125],"931":[0,.68333,.05764,.08334,.77986],"933":[0,.68333,.13889,.05556,.58333],"934":[0,.68333,0,.08334,.66667],"936":[0,.68333,.11,.05556,.61222],"937":[0,.68333,.05017,.08334,.7724],"945":[0,.43056,.0037,.02778,.6397],"946":[.19444,.69444,.05278,.08334,.56563],"947":[.19444,.43056,.05556,0,.51773],"948":[0,.69444,.03785,.05556,.44444],"949":[0,.43056,0,.08334,.46632],"950":[.19444,.69444,.07378,.08334,.4375],"951":[.19444,.43056,.03588,.05556,.49653],"952":[0,.69444,.02778,.08334,.46944],"953":[0,.43056,0,.05556,.35394],"954":[0,.43056,0,0,.57616],"955":[0,.69444,0,0,.58334],"956":[.19444,.43056,0,.02778,.60255],"957":[0,.43056,.06366,.02778,.49398],"958":[.19444,.69444,.04601,.11111,.4375],"959":[0,.43056,0,.05556,.48472],"960":[0,.43056,.03588,0,.57003],"961":[.19444,.43056,0,.08334,.51702],"962":[.09722,.43056,.07986,.08334,.36285],"963":[0,.43056,.03588,0,.57141],"964":[0,.43056,.1132,.02778,.43715],"965":[0,.43056,.03588,.02778,.54028],"966":[.19444,.43056,0,.08334,.65417],"967":[.19444,.43056,0,.05556,.62569],"968":[.19444,.69444,.03588,.11111,.65139],"969":[0,.43056,.03588,0,.62245],"977":[0,.69444,0,.08334,.59144],"981":[.19444,.69444,0,.08334,.59583],"982":[0,.43056,.02778,0,.82813],"1009":[.19444,.43056,0,.08334,.51702],"1013":[0,.43056,0,.05556,.4059]},"Math-Regular":{"65":[0,.68333,0,.13889,.75],"66":[0,.68333,.05017,.08334,.75851],"67":[0,.68333,.07153,.08334,.71472],"68":[0,.68333,.02778,.05556,.82792],"69":[0,.68333,.05764,.08334,.7382],"70":[0,.68333,.13889,.08334,.64306],"71":[0,.68333,0,.08334,.78625],"72":[0,.68333,.08125,.05556,.83125],"73":[0,.68333,.07847,.11111,.43958],"74":[0,.68333,.09618,.16667,.55451],"75":[0,.68333,.07153,.05556,.84931],"76":[0,.68333,0,.02778,.68056],"77":[0,.68333,.10903,.08334,.97014],"78":[0,.68333,.10903,.08334,.80347],"79":[0,.68333,.02778,.08334,.76278],"80":[0,.68333,.13889,.08334,.64201],"81":[.19444,.68333,0,.08334,.79056],"82":[0,.68333,.00773,.08334,.75929],"83":[0,.68333,.05764,.08334,.6132],"84":[0,.68333,.13889,.08334,.58438],"85":[0,.68333,.10903,.02778,.68278],"86":[0,.68333,.22222,0,.58333],"87":[0,.68333,.13889,0,.94445],"88":[0,.68333,.07847,.08334,.82847],"89":[0,.68333,.22222,0,.58056],"90":[0,.68333,.07153,.08334,.68264],"97":[0,.43056,0,0,.52859],"98":[0,.69444,0,0,.42917],"99":[0,.43056,0,.05556,.43276],"100":[0,.69444,0,.16667,.52049],"101":[0,.43056,0,.05556,.46563],"102":[.19444,.69444,.10764,.16667,.48959],"103":[.19444,.43056,.03588,.02778,.47697],"104":[0,.69444,0,0,.57616],"105":[0,.65952,0,0,.34451],"106":[.19444,.65952,.05724,0,.41181],"107":[0,.69444,.03148,0,.5206],"108":[0,.69444,.01968,.08334,.29838],"109":[0,.43056,0,0,.87801],"110":[0,.43056,0,0,.60023],"111":[0,.43056,0,.05556,.48472],"112":[.19444,.43056,0,.08334,.50313],"113":[.19444,.43056,.03588,.08334,.44641],"114":[0,.43056,.02778,.05556,.45116],"115":[0,.43056,0,.05556,.46875],"116":[0,.61508,0,.08334,.36111],"117":[0,.43056,0,.02778,.57246],"118":[0,.43056,.03588,.02778,.48472],"119":[0,.43056,.02691,.08334,.71592],"120":[0,.43056,0,.02778,.57153],"121":[.19444,.43056,.03588,.05556,.49028],"122":[0,.43056,.04398,.05556,.46505],"915":[0,.68333,.13889,.08334,.61528],"916":[0,.68333,0,.16667,.83334],"920":[0,.68333,.02778,.08334,.76278],"923":[0,.68333,0,.16667,.69445],"926":[0,.68333,.07569,.08334,.74236],"928":[0,.68333,.08125,.05556,.83125],"931":[0,.68333,.05764,.08334,.77986],"933":[0,.68333,.13889,.05556,.58333],"934":[0,.68333,0,.08334,.66667],"936":[0,.68333,.11,.05556,.61222],"937":[0,.68333,.05017,.08334,.7724],"945":[0,.43056,.0037,.02778,.6397],"946":[.19444,.69444,.05278,.08334,.56563],"947":[.19444,.43056,.05556,0,.51773],"948":[0,.69444,.03785,.05556,.44444],"949":[0,.43056,0,.08334,.46632],"950":[.19444,.69444,.07378,.08334,.4375],"951":[.19444,.43056,.03588,.05556,.49653],"952":[0,.69444,.02778,.08334,.46944],"953":[0,.43056,0,.05556,.35394],"954":[0,.43056,0,0,.57616],"955":[0,.69444,0,0,.58334],"956":[.19444,.43056,0,.02778,.60255],"957":[0,.43056,.06366,.02778,.49398],"958":[.19444,.69444,.04601,.11111,.4375],"959":[0,.43056,0,.05556,.48472],"960":[0,.43056,.03588,0,.57003],"961":[.19444,.43056,0,.08334,.51702],"962":[.09722,.43056,.07986,.08334,.36285],"963":[0,.43056,.03588,0,.57141],"964":[0,.43056,.1132,.02778,.43715],"965":[0,.43056,.03588,.02778,.54028],"966":[.19444,.43056,0,.08334,.65417],"967":[.19444,.43056,0,.05556,.62569],"968":[.19444,.69444,.03588,.11111,.65139],"969":[0,.43056,.03588,0,.62245],"977":[0,.69444,0,.08334,.59144],"981":[.19444,.69444,0,.08334,.59583],"982":[0,.43056,.02778,0,.82813],"1009":[.19444,.43056,0,.08334,.51702],"1013":[0,.43056,0,.05556,.4059]},"SansSerif-Bold":{"33":[0,.69444,0,0,.36667],"34":[0,.69444,0,0,.55834],"35":[.19444,.69444,0,0,.91667],"36":[.05556,.75,0,0,.55],"37":[.05556,.75,0,0,1.02912],"38":[0,.69444,0,0,.83056],"39":[0,.69444,0,0,.30556],"40":[.25,.75,0,0,.42778],"41":[.25,.75,0,0,.42778],"42":[0,.75,0,0,.55],"43":[.11667,.61667,0,0,.85556],"44":[.10556,.13056,0,0,.30556],"45":[0,.45833,0,0,.36667],"46":[0,.13056,0,0,.30556],"47":[.25,.75,0,0,.55],"48":[0,.69444,0,0,.55],"49":[0,.69444,0,0,.55],"50":[0,.69444,0,0,.55],"51":[0,.69444,0,0,.55],"52":[0,.69444,0,0,.55],"53":[0,.69444,0,0,.55],"54":[0,.69444,0,0,.55],"55":[0,.69444,0,0,.55],"56":[0,.69444,0,0,.55],"57":[0,.69444,0,0,.55],"58":[0,.45833,0,0,.30556],"59":[.10556,.45833,0,0,.30556],"61":[-.09375,.40625,0,0,.85556],"63":[0,.69444,0,0,.51945],"64":[0,.69444,0,0,.73334],"65":[0,.69444,0,0,.73334],"66":[0,.69444,0,0,.73334],"67":[0,.69444,0,0,.70278],"68":[0,.69444,0,0,.79445],"69":[0,.69444,0,0,.64167],"70":[0,.69444,0,0,.61111],"71":[0,.69444,0,0,.73334],"72":[0,.69444,0,0,.79445],"73":[0,.69444,0,0,.33056],"74":[0,.69444,0,0,.51945],"75":[0,.69444,0,0,.76389],"76":[0,.69444,0,0,.58056],"77":[0,.69444,0,0,.97778],"78":[0,.69444,0,0,.79445],"79":[0,.69444,0,0,.79445],"80":[0,.69444,0,0,.70278],"81":[.10556,.69444,0,0,.79445],"82":[0,.69444,0,0,.70278],"83":[0,.69444,0,0,.61111],"84":[0,.69444,0,0,.73334],"85":[0,.69444,0,0,.76389],"86":[0,.69444,.01528,0,.73334],"87":[0,.69444,.01528,0,1.03889],"88":[0,.69444,0,0,.73334],"89":[0,.69444,.0275,0,.73334],"90":[0,.69444,0,0,.67223],"91":[.25,.75,0,0,.34306],"93":[.25,.75,0,0,.34306],"94":[0,.69444,0,0,.55],"95":[.35,.10833,.03056,0,.55],"97":[0,.45833,0,0,.525],"98":[0,.69444,0,0,.56111],"99":[0,.45833,0,0,.48889],"100":[0,.69444,0,0,.56111],"101":[0,.45833,0,0,.51111],"102":[0,.69444,.07639,0,.33611],"103":[.19444,.45833,.01528,0,.55],"104":[0,.69444,0,0,.56111],"105":[0,.69444,0,0,.25556],"106":[.19444,.69444,0,0,.28611],"107":[0,.69444,0,0,.53056],"108":[0,.69444,0,0,.25556],"109":[0,.45833,0,0,.86667],"110":[0,.45833,0,0,.56111],"111":[0,.45833,0,0,.55],"112":[.19444,.45833,0,0,.56111],"113":[.19444,.45833,0,0,.56111],"114":[0,.45833,.01528,0,.37222],"115":[0,.45833,0,0,.42167],"116":[0,.58929,0,0,.40417],"117":[0,.45833,0,0,.56111],"118":[0,.45833,.01528,0,.5],"119":[0,.45833,.01528,0,.74445],"120":[0,.45833,0,0,.5],"121":[.19444,.45833,.01528,0,.5],"122":[0,.45833,0,0,.47639],"126":[.35,.34444,0,0,.55],"168":[0,.69444,0,0,.55],"176":[0,.69444,0,0,.73334],"180":[0,.69444,0,0,.55],"184":[.17014,0,0,0,.48889],"305":[0,.45833,0,0,.25556],"567":[.19444,.45833,0,0,.28611],"710":[0,.69444,0,0,.55],"711":[0,.63542,0,0,.55],"713":[0,.63778,0,0,.55],"728":[0,.69444,0,0,.55],"729":[0,.69444,0,0,.30556],"730":[0,.69444,0,0,.73334],"732":[0,.69444,0,0,.55],"733":[0,.69444,0,0,.55],"915":[0,.69444,0,0,.58056],"916":[0,.69444,0,0,.91667],"920":[0,.69444,0,0,.85556],"923":[0,.69444,0,0,.67223],"926":[0,.69444,0,0,.73334],"928":[0,.69444,0,0,.79445],"931":[0,.69444,0,0,.79445],"933":[0,.69444,0,0,.85556],"934":[0,.69444,0,0,.79445],"936":[0,.69444,0,0,.85556],"937":[0,.69444,0,0,.79445],"8211":[0,.45833,.03056,0,.55],"8212":[0,.45833,.03056,0,1.10001],"8216":[0,.69444,0,0,.30556],"8217":[0,.69444,0,0,.30556],"8220":[0,.69444,0,0,.55834],"8221":[0,.69444,0,0,.55834]},"SansSerif-Italic":{"33":[0,.69444,.05733,0,.31945],"34":[0,.69444,.00316,0,.5],"35":[.19444,.69444,.05087,0,.83334],"36":[.05556,.75,.11156,0,.5],"37":[.05556,.75,.03126,0,.83334],"38":[0,.69444,.03058,0,.75834],"39":[0,.69444,.07816,0,.27778],"40":[.25,.75,.13164,0,.38889],"41":[.25,.75,.02536,0,.38889],"42":[0,.75,.11775,0,.5],"43":[.08333,.58333,.02536,0,.77778],"44":[.125,.08333,0,0,.27778],"45":[0,.44444,.01946,0,.33333],"46":[0,.08333,0,0,.27778],"47":[.25,.75,.13164,0,.5],"48":[0,.65556,.11156,0,.5],"49":[0,.65556,.11156,0,.5],"50":[0,.65556,.11156,0,.5],"51":[0,.65556,.11156,0,.5],"52":[0,.65556,.11156,0,.5],"53":[0,.65556,.11156,0,.5],"54":[0,.65556,.11156,0,.5],"55":[0,.65556,.11156,0,.5],"56":[0,.65556,.11156,0,.5],"57":[0,.65556,.11156,0,.5],"58":[0,.44444,.02502,0,.27778],"59":[.125,.44444,.02502,0,.27778],"61":[-.13,.37,.05087,0,.77778],"63":[0,.69444,.11809,0,.47222],"64":[0,.69444,.07555,0,.66667],"65":[0,.69444,0,0,.66667],"66":[0,.69444,.08293,0,.66667],"67":[0,.69444,.11983,0,.63889],"68":[0,.69444,.07555,0,.72223],"69":[0,.69444,.11983,0,.59722],"70":[0,.69444,.13372,0,.56945],"71":[0,.69444,.11983,0,.66667],"72":[0,.69444,.08094,0,.70834],"73":[0,.69444,.13372,0,.27778],"74":[0,.69444,.08094,0,.47222],"75":[0,.69444,.11983,0,.69445],"76":[0,.69444,0,0,.54167],"77":[0,.69444,.08094,0,.875],"78":[0,.69444,.08094,0,.70834],"79":[0,.69444,.07555,0,.73611],"80":[0,.69444,.08293,0,.63889],"81":[.125,.69444,.07555,0,.73611],"82":[0,.69444,.08293,0,.64584],"83":[0,.69444,.09205,0,.55556],"84":[0,.69444,.13372,0,.68056],"85":[0,.69444,.08094,0,.6875],"86":[0,.69444,.1615,0,.66667],"87":[0,.69444,.1615,0,.94445],"88":[0,.69444,.13372,0,.66667],"89":[0,.69444,.17261,0,.66667],"90":[0,.69444,.11983,0,.61111],"91":[.25,.75,.15942,0,.28889],"93":[.25,.75,.08719,0,.28889],"94":[0,.69444,.0799,0,.5],"95":[.35,.09444,.08616,0,.5],"97":[0,.44444,.00981,0,.48056],"98":[0,.69444,.03057,0,.51667],"99":[0,.44444,.08336,0,.44445],"100":[0,.69444,.09483,0,.51667],"101":[0,.44444,.06778,0,.44445],"102":[0,.69444,.21705,0,.30556],"103":[.19444,.44444,.10836,0,.5],"104":[0,.69444,.01778,0,.51667],"105":[0,.67937,.09718,0,.23889],"106":[.19444,.67937,.09162,0,.26667],"107":[0,.69444,.08336,0,.48889],"108":[0,.69444,.09483,0,.23889],"109":[0,.44444,.01778,0,.79445],"110":[0,.44444,.01778,0,.51667],"111":[0,.44444,.06613,0,.5],"112":[.19444,.44444,.0389,0,.51667],"113":[.19444,.44444,.04169,0,.51667],"114":[0,.44444,.10836,0,.34167],"115":[0,.44444,.0778,0,.38333],"116":[0,.57143,.07225,0,.36111],"117":[0,.44444,.04169,0,.51667],"118":[0,.44444,.10836,0,.46111],"119":[0,.44444,.10836,0,.68334],"120":[0,.44444,.09169,0,.46111],"121":[.19444,.44444,.10836,0,.46111],"122":[0,.44444,.08752,0,.43472],"126":[.35,.32659,.08826,0,.5],"168":[0,.67937,.06385,0,.5],"176":[0,.69444,0,0,.73752],"184":[.17014,0,0,0,.44445],"305":[0,.44444,.04169,0,.23889],"567":[.19444,.44444,.04169,0,.26667],"710":[0,.69444,.0799,0,.5],"711":[0,.63194,.08432,0,.5],"713":[0,.60889,.08776,0,.5],"714":[0,.69444,.09205,0,.5],"715":[0,.69444,0,0,.5],"728":[0,.69444,.09483,0,.5],"729":[0,.67937,.07774,0,.27778],"730":[0,.69444,0,0,.73752],"732":[0,.67659,.08826,0,.5],"733":[0,.69444,.09205,0,.5],"915":[0,.69444,.13372,0,.54167],"916":[0,.69444,0,0,.83334],"920":[0,.69444,.07555,0,.77778],"923":[0,.69444,0,0,.61111],"926":[0,.69444,.12816,0,.66667],"928":[0,.69444,.08094,0,.70834],"931":[0,.69444,.11983,0,.72222],"933":[0,.69444,.09031,0,.77778],"934":[0,.69444,.04603,0,.72222],"936":[0,.69444,.09031,0,.77778],"937":[0,.69444,.08293,0,.72222],"8211":[0,.44444,.08616,0,.5],"8212":[0,.44444,.08616,0,1],"8216":[0,.69444,.07816,0,.27778],"8217":[0,.69444,.07816,0,.27778],"8220":[0,.69444,.14205,0,.5],"8221":[0,.69444,.00316,0,.5]},"SansSerif-Regular":{"33":[0,.69444,0,0,.31945],"34":[0,.69444,0,0,.5],"35":[.19444,.69444,0,0,.83334],"36":[.05556,.75,0,0,.5],"37":[.05556,.75,0,0,.83334],"38":[0,.69444,0,0,.75834],"39":[0,.69444,0,0,.27778],"40":[.25,.75,0,0,.38889],"41":[.25,.75,0,0,.38889],"42":[0,.75,0,0,.5],"43":[.08333,.58333,0,0,.77778],"44":[.125,.08333,0,0,.27778],"45":[0,.44444,0,0,.33333],"46":[0,.08333,0,0,.27778],"47":[.25,.75,0,0,.5],"48":[0,.65556,0,0,.5],"49":[0,.65556,0,0,.5],"50":[0,.65556,0,0,.5],"51":[0,.65556,0,0,.5],"52":[0,.65556,0,0,.5],"53":[0,.65556,0,0,.5],"54":[0,.65556,0,0,.5],"55":[0,.65556,0,0,.5],"56":[0,.65556,0,0,.5],"57":[0,.65556,0,0,.5],"58":[0,.44444,0,0,.27778],"59":[.125,.44444,0,0,.27778],"61":[-.13,.37,0,0,.77778],"63":[0,.69444,0,0,.47222],"64":[0,.69444,0,0,.66667],"65":[0,.69444,0,0,.66667],"66":[0,.69444,0,0,.66667],"67":[0,.69444,0,0,.63889],"68":[0,.69444,0,0,.72223],"69":[0,.69444,0,0,.59722],"70":[0,.69444,0,0,.56945],"71":[0,.69444,0,0,.66667],"72":[0,.69444,0,0,.70834],"73":[0,.69444,0,0,.27778],"74":[0,.69444,0,0,.47222],"75":[0,.69444,0,0,.69445],"76":[0,.69444,0,0,.54167],"77":[0,.69444,0,0,.875],"78":[0,.69444,0,0,.70834],"79":[0,.69444,0,0,.73611],"80":[0,.69444,0,0,.63889],"81":[.125,.69444,0,0,.73611],"82":[0,.69444,0,0,.64584],"83":[0,.69444,0,0,.55556],"84":[0,.69444,0,0,.68056],"85":[0,.69444,0,0,.6875],"86":[0,.69444,.01389,0,.66667],"87":[0,.69444,.01389,0,.94445],"88":[0,.69444,0,0,.66667],"89":[0,.69444,.025,0,.66667],"90":[0,.69444,0,0,.61111],"91":[.25,.75,0,0,.28889],"93":[.25,.75,0,0,.28889],"94":[0,.69444,0,0,.5],"95":[.35,.09444,.02778,0,.5],"97":[0,.44444,0,0,.48056],"98":[0,.69444,0,0,.51667],"99":[0,.44444,0,0,.44445],"100":[0,.69444,0,0,.51667],"101":[0,.44444,0,0,.44445],"102":[0,.69444,.06944,0,.30556],"103":[.19444,.44444,.01389,0,.5],"104":[0,.69444,0,0,.51667],"105":[0,.67937,0,0,.23889],"106":[.19444,.67937,0,0,.26667],"107":[0,.69444,0,0,.48889],"108":[0,.69444,0,0,.23889],"109":[0,.44444,0,0,.79445],"110":[0,.44444,0,0,.51667],"111":[0,.44444,0,0,.5],"112":[.19444,.44444,0,0,.51667],"113":[.19444,.44444,0,0,.51667],"114":[0,.44444,.01389,0,.34167],"115":[0,.44444,0,0,.38333],"116":[0,.57143,0,0,.36111],"117":[0,.44444,0,0,.51667],"118":[0,.44444,.01389,0,.46111],"119":[0,.44444,.01389,0,.68334],"120":[0,.44444,0,0,.46111],"121":[.19444,.44444,.01389,0,.46111],"122":[0,.44444,0,0,.43472],"126":[.35,.32659,0,0,.5],"168":[0,.67937,0,0,.5],"176":[0,.69444,0,0,.66667],"184":[.17014,0,0,0,.44445],"305":[0,.44444,0,0,.23889],"567":[.19444,.44444,0,0,.26667],"710":[0,.69444,0,0,.5],"711":[0,.63194,0,0,.5],"713":[0,.60889,0,0,.5],"714":[0,.69444,0,0,.5],"715":[0,.69444,0,0,.5],"728":[0,.69444,0,0,.5],"729":[0,.67937,0,0,.27778],"730":[0,.69444,0,0,.66667],"732":[0,.67659,0,0,.5],"733":[0,.69444,0,0,.5],"915":[0,.69444,0,0,.54167],"916":[0,.69444,0,0,.83334],"920":[0,.69444,0,0,.77778],"923":[0,.69444,0,0,.61111],"926":[0,.69444,0,0,.66667],"928":[0,.69444,0,0,.70834],"931":[0,.69444,0,0,.72222],"933":[0,.69444,0,0,.77778],"934":[0,.69444,0,0,.72222],"936":[0,.69444,0,0,.77778],"937":[0,.69444,0,0,.72222],"8211":[0,.44444,.02778,0,.5],"8212":[0,.44444,.02778,0,1],"8216":[0,.69444,0,0,.27778],"8217":[0,.69444,0,0,.27778],"8220":[0,.69444,0,0,.5],"8221":[0,.69444,0,0,.5]},"Script-Regular":{"65":[0,.7,.22925,0,.80253],"66":[0,.7,.04087,0,.90757],"67":[0,.7,.1689,0,.66619],"68":[0,.7,.09371,0,.77443],"69":[0,.7,.18583,0,.56162],"70":[0,.7,.13634,0,.89544],"71":[0,.7,.17322,0,.60961],"72":[0,.7,.29694,0,.96919],"73":[0,.7,.19189,0,.80907],"74":[.27778,.7,.19189,0,1.05159],"75":[0,.7,.31259,0,.91364],"76":[0,.7,.19189,0,.87373],"77":[0,.7,.15981,0,1.08031],"78":[0,.7,.3525,0,.9015],"79":[0,.7,.08078,0,.73787],"80":[0,.7,.08078,0,1.01262],"81":[0,.7,.03305,0,.88282],"82":[0,.7,.06259,0,.85],"83":[0,.7,.19189,0,.86767],"84":[0,.7,.29087,0,.74697],"85":[0,.7,.25815,0,.79996],"86":[0,.7,.27523,0,.62204],"87":[0,.7,.27523,0,.80532],"88":[0,.7,.26006,0,.94445],"89":[0,.7,.2939,0,.70961],"90":[0,.7,.24037,0,.8212]},"Size1-Regular":{"40":[.35001,.85,0,0,.45834],"41":[.35001,.85,0,0,.45834],"47":[.35001,.85,0,0,.57778],"91":[.35001,.85,0,0,.41667],"92":[.35001,.85,0,0,.57778],"93":[.35001,.85,0,0,.41667],"123":[.35001,.85,0,0,.58334],"125":[.35001,.85,0,0,.58334],"710":[0,.72222,0,0,.55556],"732":[0,.72222,0,0,.55556],"770":[0,.72222,0,0,.55556],"771":[0,.72222,0,0,.55556],"8214":[-99e-5,.601,0,0,.77778],"8593":[1e-5,.6,0,0,.66667],"8595":[1e-5,.6,0,0,.66667],"8657":[1e-5,.6,0,0,.77778],"8659":[1e-5,.6,0,0,.77778],"8719":[.25001,.75,0,0,.94445],"8720":[.25001,.75,0,0,.94445],"8721":[.25001,.75,0,0,1.05556],"8730":[.35001,.85,0,0,1],"8739":[-.00599,.606,0,0,.33333],"8741":[-.00599,.606,0,0,.55556],"8747":[.30612,.805,.19445,0,.47222],"8748":[.306,.805,.19445,0,.47222],"8749":[.306,.805,.19445,0,.47222],"8750":[.30612,.805,.19445,0,.47222],"8896":[.25001,.75,0,0,.83334],"8897":[.25001,.75,0,0,.83334],"8898":[.25001,.75,0,0,.83334],"8899":[.25001,.75,0,0,.83334],"8968":[.35001,.85,0,0,.47222],"8969":[.35001,.85,0,0,.47222],"8970":[.35001,.85,0,0,.47222],"8971":[.35001,.85,0,0,.47222],"9168":[-99e-5,.601,0,0,.66667],"10216":[.35001,.85,0,0,.47222],"10217":[.35001,.85,0,0,.47222],"10752":[.25001,.75,0,0,1.11111],"10753":[.25001,.75,0,0,1.11111],"10754":[.25001,.75,0,0,1.11111],"10756":[.25001,.75,0,0,.83334],"10758":[.25001,.75,0,0,.83334]},"Size2-Regular":{"40":[.65002,1.15,0,0,.59722],"41":[.65002,1.15,0,0,.59722],"47":[.65002,1.15,0,0,.81111],"91":[.65002,1.15,0,0,.47222],"92":[.65002,1.15,0,0,.81111],"93":[.65002,1.15,0,0,.47222],"123":[.65002,1.15,0,0,.66667],"125":[.65002,1.15,0,0,.66667],"710":[0,.75,0,0,1],"732":[0,.75,0,0,1],"770":[0,.75,0,0,1],"771":[0,.75,0,0,1],"8719":[.55001,1.05,0,0,1.27778],"8720":[.55001,1.05,0,0,1.27778],"8721":[.55001,1.05,0,0,1.44445],"8730":[.65002,1.15,0,0,1],"8747":[.86225,1.36,.44445,0,.55556],"8748":[.862,1.36,.44445,0,.55556],"8749":[.862,1.36,.44445,0,.55556],"8750":[.86225,1.36,.44445,0,.55556],"8896":[.55001,1.05,0,0,1.11111],"8897":[.55001,1.05,0,0,1.11111],"8898":[.55001,1.05,0,0,1.11111],"8899":[.55001,1.05,0,0,1.11111],"8968":[.65002,1.15,0,0,.52778],"8969":[.65002,1.15,0,0,.52778],"8970":[.65002,1.15,0,0,.52778],"8971":[.65002,1.15,0,0,.52778],"10216":[.65002,1.15,0,0,.61111],"10217":[.65002,1.15,0,0,.61111],"10752":[.55001,1.05,0,0,1.51112],"10753":[.55001,1.05,0,0,1.51112],"10754":[.55001,1.05,0,0,1.51112],"10756":[.55001,1.05,0,0,1.11111],"10758":[.55001,1.05,0,0,1.11111]},"Size3-Regular":{"40":[.95003,1.45,0,0,.73611],"41":[.95003,1.45,0,0,.73611],"47":[.95003,1.45,0,0,1.04445],"91":[.95003,1.45,0,0,.52778],"92":[.95003,1.45,0,0,1.04445],"93":[.95003,1.45,0,0,.52778],"123":[.95003,1.45,0,0,.75],"125":[.95003,1.45,0,0,.75],"710":[0,.75,0,0,1.44445],"732":[0,.75,0,0,1.44445],"770":[0,.75,0,0,1.44445],"771":[0,.75,0,0,1.44445],"8730":[.95003,1.45,0,0,1],"8968":[.95003,1.45,0,0,.58334],"8969":[.95003,1.45,0,0,.58334],"8970":[.95003,1.45,0,0,.58334],"8971":[.95003,1.45,0,0,.58334],"10216":[.95003,1.45,0,0,.75],"10217":[.95003,1.45,0,0,.75]},"Size4-Regular":{"40":[1.25003,1.75,0,0,.79167],"41":[1.25003,1.75,0,0,.79167],"47":[1.25003,1.75,0,0,1.27778],"91":[1.25003,1.75,0,0,.58334],"92":[1.25003,1.75,0,0,1.27778],"93":[1.25003,1.75,0,0,.58334],"123":[1.25003,1.75,0,0,.80556],"125":[1.25003,1.75,0,0,.80556],"710":[0,.825,0,0,1.8889],"732":[0,.825,0,0,1.8889],"770":[0,.825,0,0,1.8889],"771":[0,.825,0,0,1.8889],"8730":[1.25003,1.75,0,0,1],"8968":[1.25003,1.75,0,0,.63889],"8969":[1.25003,1.75,0,0,.63889],"8970":[1.25003,1.75,0,0,.63889],"8971":[1.25003,1.75,0,0,.63889],"9115":[.64502,1.155,0,0,.875],"9116":[1e-5,.6,0,0,.875],"9117":[.64502,1.155,0,0,.875],"9118":[.64502,1.155,0,0,.875],"9119":[1e-5,.6,0,0,.875],"9120":[.64502,1.155,0,0,.875],"9121":[.64502,1.155,0,0,.66667],"9122":[-99e-5,.601,0,0,.66667],"9123":[.64502,1.155,0,0,.66667],"9124":[.64502,1.155,0,0,.66667],"9125":[-99e-5,.601,0,0,.66667],"9126":[.64502,1.155,0,0,.66667],"9127":[1e-5,.9,0,0,.88889],"9128":[.65002,1.15,0,0,.88889],"9129":[.90001,0,0,0,.88889],"9130":[0,.3,0,0,.88889],"9131":[1e-5,.9,0,0,.88889],"9132":[.65002,1.15,0,0,.88889],"9133":[.90001,0,0,0,.88889],"9143":[.88502,.915,0,0,1.05556],"10216":[1.25003,1.75,0,0,.80556],"10217":[1.25003,1.75,0,0,.80556],"57344":[-.00499,.605,0,0,1.05556],"57345":[-.00499,.605,0,0,1.05556],"57680":[0,.12,0,0,.45],"57681":[0,.12,0,0,.45],"57682":[0,.12,0,0,.45],"57683":[0,.12,0,0,.45]},"Typewriter-Regular":{"32":[0,0,0,0,.525],"33":[0,.61111,0,0,.525],"34":[0,.61111,0,0,.525],"35":[0,.61111,0,0,.525],"36":[.08333,.69444,0,0,.525],"37":[.08333,.69444,0,0,.525],"38":[0,.61111,0,0,.525],"39":[0,.61111,0,0,.525],"40":[.08333,.69444,0,0,.525],"41":[.08333,.69444,0,0,.525],"42":[0,.52083,0,0,.525],"43":[-.08056,.53055,0,0,.525],"44":[.13889,.125,0,0,.525],"45":[-.08056,.53055,0,0,.525],"46":[0,.125,0,0,.525],"47":[.08333,.69444,0,0,.525],"48":[0,.61111,0,0,.525],"49":[0,.61111,0,0,.525],"50":[0,.61111,0,0,.525],"51":[0,.61111,0,0,.525],"52":[0,.61111,0,0,.525],"53":[0,.61111,0,0,.525],"54":[0,.61111,0,0,.525],"55":[0,.61111,0,0,.525],"56":[0,.61111,0,0,.525],"57":[0,.61111,0,0,.525],"58":[0,.43056,0,0,.525],"59":[.13889,.43056,0,0,.525],"60":[-.05556,.55556,0,0,.525],"61":[-.19549,.41562,0,0,.525],"62":[-.05556,.55556,0,0,.525],"63":[0,.61111,0,0,.525],"64":[0,.61111,0,0,.525],"65":[0,.61111,0,0,.525],"66":[0,.61111,0,0,.525],"67":[0,.61111,0,0,.525],"68":[0,.61111,0,0,.525],"69":[0,.61111,0,0,.525],"70":[0,.61111,0,0,.525],"71":[0,.61111,0,0,.525],"72":[0,.61111,0,0,.525],"73":[0,.61111,0,0,.525],"74":[0,.61111,0,0,.525],"75":[0,.61111,0,0,.525],"76":[0,.61111,0,0,.525],"77":[0,.61111,0,0,.525],"78":[0,.61111,0,0,.525],"79":[0,.61111,0,0,.525],"80":[0,.61111,0,0,.525],"81":[.13889,.61111,0,0,.525],"82":[0,.61111,0,0,.525],"83":[0,.61111,0,0,.525],"84":[0,.61111,0,0,.525],"85":[0,.61111,0,0,.525],"86":[0,.61111,0,0,.525],"87":[0,.61111,0,0,.525],"88":[0,.61111,0,0,.525],"89":[0,.61111,0,0,.525],"90":[0,.61111,0,0,.525],"91":[.08333,.69444,0,0,.525],"92":[.08333,.69444,0,0,.525],"93":[.08333,.69444,0,0,.525],"94":[0,.61111,0,0,.525],"95":[.09514,0,0,0,.525],"96":[0,.61111,0,0,.525],"97":[0,.43056,0,0,.525],"98":[0,.61111,0,0,.525],"99":[0,.43056,0,0,.525],"100":[0,.61111,0,0,.525],"101":[0,.43056,0,0,.525],"102":[0,.61111,0,0,.525],"103":[.22222,.43056,0,0,.525],"104":[0,.61111,0,0,.525],"105":[0,.61111,0,0,.525],"106":[.22222,.61111,0,0,.525],"107":[0,.61111,0,0,.525],"108":[0,.61111,0,0,.525],"109":[0,.43056,0,0,.525],"110":[0,.43056,0,0,.525],"111":[0,.43056,0,0,.525],"112":[.22222,.43056,0,0,.525],"113":[.22222,.43056,0,0,.525],"114":[0,.43056,0,0,.525],"115":[0,.43056,0,0,.525],"116":[0,.55358,0,0,.525],"117":[0,.43056,0,0,.525],"118":[0,.43056,0,0,.525],"119":[0,.43056,0,0,.525],"120":[0,.43056,0,0,.525],"121":[.22222,.43056,0,0,.525],"122":[0,.43056,0,0,.525],"123":[.08333,.69444,0,0,.525],"124":[.08333,.69444,0,0,.525],"125":[.08333,.69444,0,0,.525],"126":[0,.61111,0,0,.525],"127":[0,.61111,0,0,.525],"160":[0,0,0,0,.525],"176":[0,.61111,0,0,.525],"184":[.19445,0,0,0,.525],"305":[0,.43056,0,0,.525],"567":[.22222,.43056,0,0,.525],"711":[0,.56597,0,0,.525],"713":[0,.56555,0,0,.525],"714":[0,.61111,0,0,.525],"715":[0,.61111,0,0,.525],"728":[0,.61111,0,0,.525],"730":[0,.61111,0,0,.525],"770":[0,.61111,0,0,.525],"771":[0,.61111,0,0,.525],"776":[0,.61111,0,0,.525],"915":[0,.61111,0,0,.525],"916":[0,.61111,0,0,.525],"920":[0,.61111,0,0,.525],"923":[0,.61111,0,0,.525],"926":[0,.61111,0,0,.525],"928":[0,.61111,0,0,.525],"931":[0,.61111,0,0,.525],"933":[0,.61111,0,0,.525],"934":[0,.61111,0,0,.525],"936":[0,.61111,0,0,.525],"937":[0,.61111,0,0,.525],"8216":[0,.61111,0,0,.525],"8217":[0,.61111,0,0,.525],"8242":[0,.61111,0,0,.525],"9251":[.11111,.21944,0,0,.525]}},ht={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Ke={\u00C5:"A",\u00C7:"C",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00E7:"c",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function Jt(It,ue){At[It]=ue}function ct(It,ue,Se){if(!At[ue])throw new Error("Font metrics not found for font: "+ue+".");var _e=It.charCodeAt(0),Je=At[ue][_e];if(!Je&&It[0]in Ke&&(_e=Ke[It[0]].charCodeAt(0),Je=At[ue][_e]),!Je&&Se==="text"&&(ee(_e)&&(Je=At[ue][77])),Je)return{depth:Je[0],height:Je[1],italic:Je[2],skew:Je[3],width:Je[4]}}var Gt={};function dr(It){var ue;if(It>=5?ue=0:It>=3?ue=1:ue=2,!Gt[ue]){var Se=Gt[ue]={cssEmPerMu:ht.quad[ue]/18};for(var _e in ht)ht.hasOwnProperty(_e)&&(Se[_e]=ht[_e][ue])}return Gt[ue]}var zt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},kt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Vt={math:{},text:{}},Xe=Vt;function pe(It,ue,Se,_e,Je,Lt){Vt[It][Je]={font:ue,group:Se,replace:_e},Lt&&_e&&(Vt[It][_e]=Vt[It][Je])}var te="math",$e="text",He="main",ae="ams",ft="accent-token",Mt="bin",mt="close",or="inner",vr="mathord",fn="op-token",sr="open",Ir="punct",lr="rel",Wt="spacing",xt="textord";pe(te,He,lr,"\u2261","\\equiv",!0),pe(te,He,lr,"\u227A","\\prec",!0),pe(te,He,lr,"\u227B","\\succ",!0),pe(te,He,lr,"\u223C","\\sim",!0),pe(te,He,lr,"\u22A5","\\perp"),pe(te,He,lr,"\u2AAF","\\preceq",!0),pe(te,He,lr,"\u2AB0","\\succeq",!0),pe(te,He,lr,"\u2243","\\simeq",!0),pe(te,He,lr,"\u2223","\\mid",!0),pe(te,He,lr,"\u226A","\\ll",!0),pe(te,He,lr,"\u226B","\\gg",!0),pe(te,He,lr,"\u224D","\\asymp",!0),pe(te,He,lr,"\u2225","\\parallel"),pe(te,He,lr,"\u22C8","\\bowtie",!0),pe(te,He,lr,"\u2323","\\smile",!0),pe(te,He,lr,"\u2291","\\sqsubseteq",!0),pe(te,He,lr,"\u2292","\\sqsupseteq",!0),pe(te,He,lr,"\u2250","\\doteq",!0),pe(te,He,lr,"\u2322","\\frown",!0),pe(te,He,lr,"\u220B","\\ni",!0),pe(te,He,lr,"\u221D","\\propto",!0),pe(te,He,lr,"\u22A2","\\vdash",!0),pe(te,He,lr,"\u22A3","\\dashv",!0),pe(te,He,lr,"\u220B","\\owns"),pe(te,He,Ir,".","\\ldotp"),pe(te,He,Ir,"\u22C5","\\cdotp"),pe(te,He,xt,"#","\\#"),pe($e,He,xt,"#","\\#"),pe(te,He,xt,"&","\\&"),pe($e,He,xt,"&","\\&"),pe(te,He,xt,"\u2135","\\aleph",!0),pe(te,He,xt,"\u2200","\\forall",!0),pe(te,He,xt,"\u210F","\\hbar",!0),pe(te,He,xt,"\u2203","\\exists",!0),pe(te,He,xt,"\u2207","\\nabla",!0),pe(te,He,xt,"\u266D","\\flat",!0),pe(te,He,xt,"\u2113","\\ell",!0),pe(te,He,xt,"\u266E","\\natural",!0),pe(te,He,xt,"\u2663","\\clubsuit",!0),pe(te,He,xt,"\u2118","\\wp",!0),pe(te,He,xt,"\u266F","\\sharp",!0),pe(te,He,xt,"\u2662","\\diamondsuit",!0),pe(te,He,xt,"\u211C","\\Re",!0),pe(te,He,xt,"\u2661","\\heartsuit",!0),pe(te,He,xt,"\u2111","\\Im",!0),pe(te,He,xt,"\u2660","\\spadesuit",!0),pe($e,He,xt,"\xA7","\\S",!0),pe($e,He,xt,"\xB6","\\P",!0),pe(te,He,xt,"\u2020","\\dag"),pe($e,He,xt,"\u2020","\\dag"),pe($e,He,xt,"\u2020","\\textdagger"),pe(te,He,xt,"\u2021","\\ddag"),pe($e,He,xt,"\u2021","\\ddag"),pe($e,He,xt,"\u2021","\\textdaggerdbl"),pe(te,He,mt,"\u23B1","\\rmoustache",!0),pe(te,He,sr,"\u23B0","\\lmoustache",!0),pe(te,He,mt,"\u27EF","\\rgroup",!0),pe(te,He,sr,"\u27EE","\\lgroup",!0),pe(te,He,Mt,"\u2213","\\mp",!0),pe(te,He,Mt,"\u2296","\\ominus",!0),pe(te,He,Mt,"\u228E","\\uplus",!0),pe(te,He,Mt,"\u2293","\\sqcap",!0),pe(te,He,Mt,"\u2217","\\ast"),pe(te,He,Mt,"\u2294","\\sqcup",!0),pe(te,He,Mt,"\u25EF","\\bigcirc"),pe(te,He,Mt,"\u2219","\\bullet"),pe(te,He,Mt,"\u2021","\\ddagger"),pe(te,He,Mt,"\u2240","\\wr",!0),pe(te,He,Mt,"\u2A3F","\\amalg"),pe(te,He,Mt,"&","\\And"),pe(te,He,lr,"\u27F5","\\longleftarrow",!0),pe(te,He,lr,"\u21D0","\\Leftarrow",!0),pe(te,He,lr,"\u27F8","\\Longleftarrow",!0),pe(te,He,lr,"\u27F6","\\longrightarrow",!0),pe(te,He,lr,"\u21D2","\\Rightarrow",!0),pe(te,He,lr,"\u27F9","\\Longrightarrow",!0),pe(te,He,lr,"\u2194","\\leftrightarrow",!0),pe(te,He,lr,"\u27F7","\\longleftrightarrow",!0),pe(te,He,lr,"\u21D4","\\Leftrightarrow",!0),pe(te,He,lr,"\u27FA","\\Longleftrightarrow",!0),pe(te,He,lr,"\u21A6","\\mapsto",!0),pe(te,He,lr,"\u27FC","\\longmapsto",!0),pe(te,He,lr,"\u2197","\\nearrow",!0),pe(te,He,lr,"\u21A9","\\hookleftarrow",!0),pe(te,He,lr,"\u21AA","\\hookrightarrow",!0),pe(te,He,lr,"\u2198","\\searrow",!0),pe(te,He,lr,"\u21BC","\\leftharpoonup",!0),pe(te,He,lr,"\u21C0","\\rightharpoonup",!0),pe(te,He,lr,"\u2199","\\swarrow",!0),pe(te,He,lr,"\u21BD","\\leftharpoondown",!0),pe(te,He,lr,"\u21C1","\\rightharpoondown",!0),pe(te,He,lr,"\u2196","\\nwarrow",!0),pe(te,He,lr,"\u21CC","\\rightleftharpoons",!0),pe(te,ae,lr,"\u226E","\\nless",!0),pe(te,ae,lr,"\uE010","\\@nleqslant"),pe(te,ae,lr,"\uE011","\\@nleqq"),pe(te,ae,lr,"\u2A87","\\lneq",!0),pe(te,ae,lr,"\u2268","\\lneqq",!0),pe(te,ae,lr,"\uE00C","\\@lvertneqq"),pe(te,ae,lr,"\u22E6","\\lnsim",!0),pe(te,ae,lr,"\u2A89","\\lnapprox",!0),pe(te,ae,lr,"\u2280","\\nprec",!0),pe(te,ae,lr,"\u22E0","\\npreceq",!0),pe(te,ae,lr,"\u22E8","\\precnsim",!0),pe(te,ae,lr,"\u2AB9","\\precnapprox",!0),pe(te,ae,lr,"\u2241","\\nsim",!0),pe(te,ae,lr,"\uE006","\\@nshortmid"),pe(te,ae,lr,"\u2224","\\nmid",!0),pe(te,ae,lr,"\u22AC","\\nvdash",!0),pe(te,ae,lr,"\u22AD","\\nvDash",!0),pe(te,ae,lr,"\u22EA","\\ntriangleleft"),pe(te,ae,lr,"\u22EC","\\ntrianglelefteq",!0),pe(te,ae,lr,"\u228A","\\subsetneq",!0),pe(te,ae,lr,"\uE01A","\\@varsubsetneq"),pe(te,ae,lr,"\u2ACB","\\subsetneqq",!0),pe(te,ae,lr,"\uE017","\\@varsubsetneqq"),pe(te,ae,lr,"\u226F","\\ngtr",!0),pe(te,ae,lr,"\uE00F","\\@ngeqslant"),pe(te,ae,lr,"\uE00E","\\@ngeqq"),pe(te,ae,lr,"\u2A88","\\gneq",!0),pe(te,ae,lr,"\u2269","\\gneqq",!0),pe(te,ae,lr,"\uE00D","\\@gvertneqq"),pe(te,ae,lr,"\u22E7","\\gnsim",!0),pe(te,ae,lr,"\u2A8A","\\gnapprox",!0),pe(te,ae,lr,"\u2281","\\nsucc",!0),pe(te,ae,lr,"\u22E1","\\nsucceq",!0),pe(te,ae,lr,"\u22E9","\\succnsim",!0),pe(te,ae,lr,"\u2ABA","\\succnapprox",!0),pe(te,ae,lr,"\u2246","\\ncong",!0),pe(te,ae,lr,"\uE007","\\@nshortparallel"),pe(te,ae,lr,"\u2226","\\nparallel",!0),pe(te,ae,lr,"\u22AF","\\nVDash",!0),pe(te,ae,lr,"\u22EB","\\ntriangleright"),pe(te,ae,lr,"\u22ED","\\ntrianglerighteq",!0),pe(te,ae,lr,"\uE018","\\@nsupseteqq"),pe(te,ae,lr,"\u228B","\\supsetneq",!0),pe(te,ae,lr,"\uE01B","\\@varsupsetneq"),pe(te,ae,lr,"\u2ACC","\\supsetneqq",!0),pe(te,ae,lr,"\uE019","\\@varsupsetneqq"),pe(te,ae,lr,"\u22AE","\\nVdash",!0),pe(te,ae,lr,"\u2AB5","\\precneqq",!0),pe(te,ae,lr,"\u2AB6","\\succneqq",!0),pe(te,ae,lr,"\uE016","\\@nsubseteqq"),pe(te,ae,Mt,"\u22B4","\\unlhd"),pe(te,ae,Mt,"\u22B5","\\unrhd"),pe(te,ae,lr,"\u219A","\\nleftarrow",!0),pe(te,ae,lr,"\u219B","\\nrightarrow",!0),pe(te,ae,lr,"\u21CD","\\nLeftarrow",!0),pe(te,ae,lr,"\u21CF","\\nRightarrow",!0),pe(te,ae,lr,"\u21AE","\\nleftrightarrow",!0),pe(te,ae,lr,"\u21CE","\\nLeftrightarrow",!0),pe(te,ae,lr,"\u25B3","\\vartriangle"),pe(te,ae,xt,"\u210F","\\hslash"),pe(te,ae,xt,"\u25BD","\\triangledown"),pe(te,ae,xt,"\u25CA","\\lozenge"),pe(te,ae,xt,"\u24C8","\\circledS"),pe(te,ae,xt,"\xAE","\\circledR"),pe($e,ae,xt,"\xAE","\\circledR"),pe(te,ae,xt,"\u2221","\\measuredangle",!0),pe(te,ae,xt,"\u2204","\\nexists"),pe(te,ae,xt,"\u2127","\\mho"),pe(te,ae,xt,"\u2132","\\Finv",!0),pe(te,ae,xt,"\u2141","\\Game",!0),pe(te,ae,xt,"\u2035","\\backprime"),pe(te,ae,xt,"\u25B2","\\blacktriangle"),pe(te,ae,xt,"\u25BC","\\blacktriangledown"),pe(te,ae,xt,"\u25A0","\\blacksquare"),pe(te,ae,xt,"\u29EB","\\blacklozenge"),pe(te,ae,xt,"\u2605","\\bigstar"),pe(te,ae,xt,"\u2222","\\sphericalangle",!0),pe(te,ae,xt,"\u2201","\\complement",!0),pe(te,ae,xt,"\xF0","\\eth",!0),pe(te,ae,xt,"\u2571","\\diagup"),pe(te,ae,xt,"\u2572","\\diagdown"),pe(te,ae,xt,"\u25A1","\\square"),pe(te,ae,xt,"\u25A1","\\Box"),pe(te,ae,xt,"\u25CA","\\Diamond"),pe(te,ae,xt,"\xA5","\\yen",!0),pe($e,ae,xt,"\xA5","\\yen",!0),pe(te,ae,xt,"\u2713","\\checkmark",!0),pe($e,ae,xt,"\u2713","\\checkmark"),pe(te,ae,xt,"\u2136","\\beth",!0),pe(te,ae,xt,"\u2138","\\daleth",!0),pe(te,ae,xt,"\u2137","\\gimel",!0),pe(te,ae,xt,"\u03DD","\\digamma",!0),pe(te,ae,xt,"\u03F0","\\varkappa"),pe(te,ae,sr,"\u250C","\\ulcorner",!0),pe(te,ae,mt,"\u2510","\\urcorner",!0),pe(te,ae,sr,"\u2514","\\llcorner",!0),pe(te,ae,mt,"\u2518","\\lrcorner",!0),pe(te,ae,lr,"\u2266","\\leqq",!0),pe(te,ae,lr,"\u2A7D","\\leqslant",!0),pe(te,ae,lr,"\u2A95","\\eqslantless",!0),pe(te,ae,lr,"\u2272","\\lesssim",!0),pe(te,ae,lr,"\u2A85","\\lessapprox",!0),pe(te,ae,lr,"\u224A","\\approxeq",!0),pe(te,ae,Mt,"\u22D6","\\lessdot"),pe(te,ae,lr,"\u22D8","\\lll",!0),pe(te,ae,lr,"\u2276","\\lessgtr",!0),pe(te,ae,lr,"\u22DA","\\lesseqgtr",!0),pe(te,ae,lr,"\u2A8B","\\lesseqqgtr",!0),pe(te,ae,lr,"\u2251","\\doteqdot"),pe(te,ae,lr,"\u2253","\\risingdotseq",!0),pe(te,ae,lr,"\u2252","\\fallingdotseq",!0),pe(te,ae,lr,"\u223D","\\backsim",!0),pe(te,ae,lr,"\u22CD","\\backsimeq",!0),pe(te,ae,lr,"\u2AC5","\\subseteqq",!0),pe(te,ae,lr,"\u22D0","\\Subset",!0),pe(te,ae,lr,"\u228F","\\sqsubset",!0),pe(te,ae,lr,"\u227C","\\preccurlyeq",!0),pe(te,ae,lr,"\u22DE","\\curlyeqprec",!0),pe(te,ae,lr,"\u227E","\\precsim",!0),pe(te,ae,lr,"\u2AB7","\\precapprox",!0),pe(te,ae,lr,"\u22B2","\\vartriangleleft"),pe(te,ae,lr,"\u22B4","\\trianglelefteq"),pe(te,ae,lr,"\u22A8","\\vDash",!0),pe(te,ae,lr,"\u22AA","\\Vvdash",!0),pe(te,ae,lr,"\u2323","\\smallsmile"),pe(te,ae,lr,"\u2322","\\smallfrown"),pe(te,ae,lr,"\u224F","\\bumpeq",!0),pe(te,ae,lr,"\u224E","\\Bumpeq",!0),pe(te,ae,lr,"\u2267","\\geqq",!0),pe(te,ae,lr,"\u2A7E","\\geqslant",!0),pe(te,ae,lr,"\u2A96","\\eqslantgtr",!0),pe(te,ae,lr,"\u2273","\\gtrsim",!0),pe(te,ae,lr,"\u2A86","\\gtrapprox",!0),pe(te,ae,Mt,"\u22D7","\\gtrdot"),pe(te,ae,lr,"\u22D9","\\ggg",!0),pe(te,ae,lr,"\u2277","\\gtrless",!0),pe(te,ae,lr,"\u22DB","\\gtreqless",!0),pe(te,ae,lr,"\u2A8C","\\gtreqqless",!0),pe(te,ae,lr,"\u2256","\\eqcirc",!0),pe(te,ae,lr,"\u2257","\\circeq",!0),pe(te,ae,lr,"\u225C","\\triangleq",!0),pe(te,ae,lr,"\u223C","\\thicksim"),pe(te,ae,lr,"\u2248","\\thickapprox"),pe(te,ae,lr,"\u2AC6","\\supseteqq",!0),pe(te,ae,lr,"\u22D1","\\Supset",!0),pe(te,ae,lr,"\u2290","\\sqsupset",!0),pe(te,ae,lr,"\u227D","\\succcurlyeq",!0),pe(te,ae,lr,"\u22DF","\\curlyeqsucc",!0),pe(te,ae,lr,"\u227F","\\succsim",!0),pe(te,ae,lr,"\u2AB8","\\succapprox",!0),pe(te,ae,lr,"\u22B3","\\vartriangleright"),pe(te,ae,lr,"\u22B5","\\trianglerighteq"),pe(te,ae,lr,"\u22A9","\\Vdash",!0),pe(te,ae,lr,"\u2223","\\shortmid"),pe(te,ae,lr,"\u2225","\\shortparallel"),pe(te,ae,lr,"\u226C","\\between",!0),pe(te,ae,lr,"\u22D4","\\pitchfork",!0),pe(te,ae,lr,"\u221D","\\varpropto"),pe(te,ae,lr,"\u25C0","\\blacktriangleleft"),pe(te,ae,lr,"\u2234","\\therefore",!0),pe(te,ae,lr,"\u220D","\\backepsilon"),pe(te,ae,lr,"\u25B6","\\blacktriangleright"),pe(te,ae,lr,"\u2235","\\because",!0),pe(te,ae,lr,"\u22D8","\\llless"),pe(te,ae,lr,"\u22D9","\\gggtr"),pe(te,ae,Mt,"\u22B2","\\lhd"),pe(te,ae,Mt,"\u22B3","\\rhd"),pe(te,ae,lr,"\u2242","\\eqsim",!0),pe(te,He,lr,"\u22C8","\\Join"),pe(te,ae,lr,"\u2251","\\Doteq",!0),pe(te,ae,Mt,"\u2214","\\dotplus",!0),pe(te,ae,Mt,"\u2216","\\smallsetminus"),pe(te,ae,Mt,"\u22D2","\\Cap",!0),pe(te,ae,Mt,"\u22D3","\\Cup",!0),pe(te,ae,Mt,"\u2A5E","\\doublebarwedge",!0),pe(te,ae,Mt,"\u229F","\\boxminus",!0),pe(te,ae,Mt,"\u229E","\\boxplus",!0),pe(te,ae,Mt,"\u22C7","\\divideontimes",!0),pe(te,ae,Mt,"\u22C9","\\ltimes",!0),pe(te,ae,Mt,"\u22CA","\\rtimes",!0),pe(te,ae,Mt,"\u22CB","\\leftthreetimes",!0),pe(te,ae,Mt,"\u22CC","\\rightthreetimes",!0),pe(te,ae,Mt,"\u22CF","\\curlywedge",!0),pe(te,ae,Mt,"\u22CE","\\curlyvee",!0),pe(te,ae,Mt,"\u229D","\\circleddash",!0),pe(te,ae,Mt,"\u229B","\\circledast",!0),pe(te,ae,Mt,"\u22C5","\\centerdot"),pe(te,ae,Mt,"\u22BA","\\intercal",!0),pe(te,ae,Mt,"\u22D2","\\doublecap"),pe(te,ae,Mt,"\u22D3","\\doublecup"),pe(te,ae,Mt,"\u22A0","\\boxtimes",!0),pe(te,ae,lr,"\u21E2","\\dashrightarrow",!0),pe(te,ae,lr,"\u21E0","\\dashleftarrow",!0),pe(te,ae,lr,"\u21C7","\\leftleftarrows",!0),pe(te,ae,lr,"\u21C6","\\leftrightarrows",!0),pe(te,ae,lr,"\u21DA","\\Lleftarrow",!0),pe(te,ae,lr,"\u219E","\\twoheadleftarrow",!0),pe(te,ae,lr,"\u21A2","\\leftarrowtail",!0),pe(te,ae,lr,"\u21AB","\\looparrowleft",!0),pe(te,ae,lr,"\u21CB","\\leftrightharpoons",!0),pe(te,ae,lr,"\u21B6","\\curvearrowleft",!0),pe(te,ae,lr,"\u21BA","\\circlearrowleft",!0),pe(te,ae,lr,"\u21B0","\\Lsh",!0),pe(te,ae,lr,"\u21C8","\\upuparrows",!0),pe(te,ae,lr,"\u21BF","\\upharpoonleft",!0),pe(te,ae,lr,"\u21C3","\\downharpoonleft",!0),pe(te,ae,lr,"\u22B8","\\multimap",!0),pe(te,ae,lr,"\u21AD","\\leftrightsquigarrow",!0),pe(te,ae,lr,"\u21C9","\\rightrightarrows",!0),pe(te,ae,lr,"\u21C4","\\rightleftarrows",!0),pe(te,ae,lr,"\u21A0","\\twoheadrightarrow",!0),pe(te,ae,lr,"\u21A3","\\rightarrowtail",!0),pe(te,ae,lr,"\u21AC","\\looparrowright",!0),pe(te,ae,lr,"\u21B7","\\curvearrowright",!0),pe(te,ae,lr,"\u21BB","\\circlearrowright",!0),pe(te,ae,lr,"\u21B1","\\Rsh",!0),pe(te,ae,lr,"\u21CA","\\downdownarrows",!0),pe(te,ae,lr,"\u21BE","\\upharpoonright",!0),pe(te,ae,lr,"\u21C2","\\downharpoonright",!0),pe(te,ae,lr,"\u21DD","\\rightsquigarrow",!0),pe(te,ae,lr,"\u21DD","\\leadsto"),pe(te,ae,lr,"\u21DB","\\Rrightarrow",!0),pe(te,ae,lr,"\u21BE","\\restriction"),pe(te,He,xt,"\u2018","`"),pe(te,He,xt,"$","\\$"),pe($e,He,xt,"$","\\$"),pe($e,He,xt,"$","\\textdollar"),pe(te,He,xt,"%","\\%"),pe($e,He,xt,"%","\\%"),pe(te,He,xt,"_","\\_"),pe($e,He,xt,"_","\\_"),pe($e,He,xt,"_","\\textunderscore"),pe(te,He,xt,"\u2220","\\angle",!0),pe(te,He,xt,"\u221E","\\infty",!0),pe(te,He,xt,"\u2032","\\prime"),pe(te,He,xt,"\u25B3","\\triangle"),pe(te,He,xt,"\u0393","\\Gamma",!0),pe(te,He,xt,"\u0394","\\Delta",!0),pe(te,He,xt,"\u0398","\\Theta",!0),pe(te,He,xt,"\u039B","\\Lambda",!0),pe(te,He,xt,"\u039E","\\Xi",!0),pe(te,He,xt,"\u03A0","\\Pi",!0),pe(te,He,xt,"\u03A3","\\Sigma",!0),pe(te,He,xt,"\u03A5","\\Upsilon",!0),pe(te,He,xt,"\u03A6","\\Phi",!0),pe(te,He,xt,"\u03A8","\\Psi",!0),pe(te,He,xt,"\u03A9","\\Omega",!0),pe(te,He,xt,"A","\u0391"),pe(te,He,xt,"B","\u0392"),pe(te,He,xt,"E","\u0395"),pe(te,He,xt,"Z","\u0396"),pe(te,He,xt,"H","\u0397"),pe(te,He,xt,"I","\u0399"),pe(te,He,xt,"K","\u039A"),pe(te,He,xt,"M","\u039C"),pe(te,He,xt,"N","\u039D"),pe(te,He,xt,"O","\u039F"),pe(te,He,xt,"P","\u03A1"),pe(te,He,xt,"T","\u03A4"),pe(te,He,xt,"X","\u03A7"),pe(te,He,xt,"\xAC","\\neg",!0),pe(te,He,xt,"\xAC","\\lnot"),pe(te,He,xt,"\u22A4","\\top"),pe(te,He,xt,"\u22A5","\\bot"),pe(te,He,xt,"\u2205","\\emptyset"),pe(te,ae,xt,"\u2205","\\varnothing"),pe(te,He,vr,"\u03B1","\\alpha",!0),pe(te,He,vr,"\u03B2","\\beta",!0),pe(te,He,vr,"\u03B3","\\gamma",!0),pe(te,He,vr,"\u03B4","\\delta",!0),pe(te,He,vr,"\u03F5","\\epsilon",!0),pe(te,He,vr,"\u03B6","\\zeta",!0),pe(te,He,vr,"\u03B7","\\eta",!0),pe(te,He,vr,"\u03B8","\\theta",!0),pe(te,He,vr,"\u03B9","\\iota",!0),pe(te,He,vr,"\u03BA","\\kappa",!0),pe(te,He,vr,"\u03BB","\\lambda",!0),pe(te,He,vr,"\u03BC","\\mu",!0),pe(te,He,vr,"\u03BD","\\nu",!0),pe(te,He,vr,"\u03BE","\\xi",!0),pe(te,He,vr,"\u03BF","\\omicron",!0),pe(te,He,vr,"\u03C0","\\pi",!0),pe(te,He,vr,"\u03C1","\\rho",!0),pe(te,He,vr,"\u03C3","\\sigma",!0),pe(te,He,vr,"\u03C4","\\tau",!0),pe(te,He,vr,"\u03C5","\\upsilon",!0),pe(te,He,vr,"\u03D5","\\phi",!0),pe(te,He,vr,"\u03C7","\\chi",!0),pe(te,He,vr,"\u03C8","\\psi",!0),pe(te,He,vr,"\u03C9","\\omega",!0),pe(te,He,vr,"\u03B5","\\varepsilon",!0),pe(te,He,vr,"\u03D1","\\vartheta",!0),pe(te,He,vr,"\u03D6","\\varpi",!0),pe(te,He,vr,"\u03F1","\\varrho",!0),pe(te,He,vr,"\u03C2","\\varsigma",!0),pe(te,He,vr,"\u03C6","\\varphi",!0),pe(te,He,Mt,"\u2217","*"),pe(te,He,Mt,"+","+"),pe(te,He,Mt,"\u2212","-"),pe(te,He,Mt,"\u22C5","\\cdot",!0),pe(te,He,Mt,"\u2218","\\circ"),pe(te,He,Mt,"\xF7","\\div",!0),pe(te,He,Mt,"\xB1","\\pm",!0),pe(te,He,Mt,"\xD7","\\times",!0),pe(te,He,Mt,"\u2229","\\cap",!0),pe(te,He,Mt,"\u222A","\\cup",!0),pe(te,He,Mt,"\u2216","\\setminus"),pe(te,He,Mt,"\u2227","\\land"),pe(te,He,Mt,"\u2228","\\lor"),pe(te,He,Mt,"\u2227","\\wedge",!0),pe(te,He,Mt,"\u2228","\\vee",!0),pe(te,He,xt,"\u221A","\\surd"),pe(te,He,sr,"(","("),pe(te,He,sr,"[","["),pe(te,He,sr,"\u27E8","\\langle",!0),pe(te,He,sr,"\u2223","\\lvert"),pe(te,He,sr,"\u2225","\\lVert"),pe(te,He,mt,")",")"),pe(te,He,mt,"]","]"),pe(te,He,mt,"?","?"),pe(te,He,mt,"!","!"),pe(te,He,mt,"\u27E9","\\rangle",!0),pe(te,He,mt,"\u2223","\\rvert"),pe(te,He,mt,"\u2225","\\rVert"),pe(te,He,lr,"=","="),pe(te,He,lr,"<","<"),pe(te,He,lr,">",">"),pe(te,He,lr,":",":"),pe(te,He,lr,"\u2248","\\approx",!0),pe(te,He,lr,"\u2245","\\cong",!0),pe(te,He,lr,"\u2265","\\ge"),pe(te,He,lr,"\u2265","\\geq",!0),pe(te,He,lr,"\u2190","\\gets"),pe(te,He,lr,">","\\gt"),pe(te,He,lr,"\u2208","\\in",!0),pe(te,He,lr,"\uE020","\\@not"),pe(te,He,lr,"\u2282","\\subset",!0),pe(te,He,lr,"\u2283","\\supset",!0),pe(te,He,lr,"\u2286","\\subseteq",!0),pe(te,He,lr,"\u2287","\\supseteq",!0),pe(te,ae,lr,"\u2288","\\nsubseteq",!0),pe(te,ae,lr,"\u2289","\\nsupseteq",!0),pe(te,He,lr,"\u22A8","\\models"),pe(te,He,lr,"\u2190","\\leftarrow",!0),pe(te,He,lr,"\u2264","\\le"),pe(te,He,lr,"\u2264","\\leq",!0),pe(te,He,lr,"<","\\lt"),pe(te,He,lr,"\u2192","\\rightarrow",!0),pe(te,He,lr,"\u2192","\\to"),pe(te,ae,lr,"\u2271","\\ngeq",!0),pe(te,ae,lr,"\u2270","\\nleq",!0),pe(te,He,Wt,"\xA0","\\ "),pe(te,He,Wt,"\xA0","~"),pe(te,He,Wt,"\xA0","\\space"),pe(te,He,Wt,"\xA0","\\nobreakspace"),pe($e,He,Wt,"\xA0","\\ "),pe($e,He,Wt,"\xA0","~"),pe($e,He,Wt,"\xA0","\\space"),pe($e,He,Wt,"\xA0","\\nobreakspace"),pe(te,He,Wt,null,"\\nobreak"),pe(te,He,Wt,null,"\\allowbreak"),pe(te,He,Ir,",",","),pe(te,He,Ir,";",";"),pe(te,ae,Mt,"\u22BC","\\barwedge",!0),pe(te,ae,Mt,"\u22BB","\\veebar",!0),pe(te,He,Mt,"\u2299","\\odot",!0),pe(te,He,Mt,"\u2295","\\oplus",!0),pe(te,He,Mt,"\u2297","\\otimes",!0),pe(te,He,xt,"\u2202","\\partial",!0),pe(te,He,Mt,"\u2298","\\oslash",!0),pe(te,ae,Mt,"\u229A","\\circledcirc",!0),pe(te,ae,Mt,"\u22A1","\\boxdot",!0),pe(te,He,Mt,"\u25B3","\\bigtriangleup"),pe(te,He,Mt,"\u25BD","\\bigtriangledown"),pe(te,He,Mt,"\u2020","\\dagger"),pe(te,He,Mt,"\u22C4","\\diamond"),pe(te,He,Mt,"\u22C6","\\star"),pe(te,He,Mt,"\u25C3","\\triangleleft"),pe(te,He,Mt,"\u25B9","\\triangleright"),pe(te,He,sr,"{","\\{"),pe($e,He,xt,"{","\\{"),pe($e,He,xt,"{","\\textbraceleft"),pe(te,He,mt,"}","\\}"),pe($e,He,xt,"}","\\}"),pe($e,He,xt,"}","\\textbraceright"),pe(te,He,sr,"{","\\lbrace"),pe(te,He,mt,"}","\\rbrace"),pe(te,He,sr,"[","\\lbrack"),pe($e,He,xt,"[","\\lbrack"),pe(te,He,mt,"]","\\rbrack"),pe($e,He,xt,"]","\\rbrack"),pe(te,He,sr,"(","\\lparen"),pe(te,He,mt,")","\\rparen"),pe($e,He,xt,"<","\\textless"),pe($e,He,xt,">","\\textgreater"),pe(te,He,sr,"\u230A","\\lfloor",!0),pe(te,He,mt,"\u230B","\\rfloor",!0),pe(te,He,sr,"\u2308","\\lceil",!0),pe(te,He,mt,"\u2309","\\rceil",!0),pe(te,He,xt,"\\","\\backslash"),pe(te,He,xt,"\u2223","|"),pe(te,He,xt,"\u2223","\\vert"),pe($e,He,xt,"|","\\textbar"),pe(te,He,xt,"\u2225","\\|"),pe(te,He,xt,"\u2225","\\Vert"),pe($e,He,xt,"\u2225","\\textbardbl"),pe($e,He,xt,"~","\\textasciitilde"),pe($e,He,xt,"\\","\\textbackslash"),pe($e,He,xt,"^","\\textasciicircum"),pe(te,He,lr,"\u2191","\\uparrow",!0),pe(te,He,lr,"\u21D1","\\Uparrow",!0),pe(te,He,lr,"\u2193","\\downarrow",!0),pe(te,He,lr,"\u21D3","\\Downarrow",!0),pe(te,He,lr,"\u2195","\\updownarrow",!0),pe(te,He,lr,"\u21D5","\\Updownarrow",!0),pe(te,He,fn,"\u2210","\\coprod"),pe(te,He,fn,"\u22C1","\\bigvee"),pe(te,He,fn,"\u22C0","\\bigwedge"),pe(te,He,fn,"\u2A04","\\biguplus"),pe(te,He,fn,"\u22C2","\\bigcap"),pe(te,He,fn,"\u22C3","\\bigcup"),pe(te,He,fn,"\u222B","\\int"),pe(te,He,fn,"\u222B","\\intop"),pe(te,He,fn,"\u222C","\\iint"),pe(te,He,fn,"\u222D","\\iiint"),pe(te,He,fn,"\u220F","\\prod"),pe(te,He,fn,"\u2211","\\sum"),pe(te,He,fn,"\u2A02","\\bigotimes"),pe(te,He,fn,"\u2A01","\\bigoplus"),pe(te,He,fn,"\u2A00","\\bigodot"),pe(te,He,fn,"\u222E","\\oint"),pe(te,He,fn,"\u222F","\\oiint"),pe(te,He,fn,"\u2230","\\oiiint"),pe(te,He,fn,"\u2A06","\\bigsqcup"),pe(te,He,fn,"\u222B","\\smallint"),pe($e,He,or,"\u2026","\\textellipsis"),pe(te,He,or,"\u2026","\\mathellipsis"),pe($e,He,or,"\u2026","\\ldots",!0),pe(te,He,or,"\u2026","\\ldots",!0),pe(te,He,or,"\u22EF","\\@cdots",!0),pe(te,He,or,"\u22F1","\\ddots",!0),pe(te,He,xt,"\u22EE","\\varvdots"),pe(te,He,ft,"\u02CA","\\acute"),pe(te,He,ft,"\u02CB","\\grave"),pe(te,He,ft,"\xA8","\\ddot"),pe(te,He,ft,"~","\\tilde"),pe(te,He,ft,"\u02C9","\\bar"),pe(te,He,ft,"\u02D8","\\breve"),pe(te,He,ft,"\u02C7","\\check"),pe(te,He,ft,"^","\\hat"),pe(te,He,ft,"\u20D7","\\vec"),pe(te,He,ft,"\u02D9","\\dot"),pe(te,He,ft,"\u02DA","\\mathring"),pe(te,He,vr,"\u0131","\\imath",!0),pe(te,He,vr,"\u0237","\\jmath",!0),pe($e,He,xt,"\u0131","\\i",!0),pe($e,He,xt,"\u0237","\\j",!0),pe($e,He,xt,"\xDF","\\ss",!0),pe($e,He,xt,"\xE6","\\ae",!0),pe($e,He,xt,"\xE6","\\ae",!0),pe($e,He,xt,"\u0153","\\oe",!0),pe($e,He,xt,"\xF8","\\o",!0),pe($e,He,xt,"\xC6","\\AE",!0),pe($e,He,xt,"\u0152","\\OE",!0),pe($e,He,xt,"\xD8","\\O",!0),pe($e,He,ft,"\u02CA","\\'"),pe($e,He,ft,"\u02CB","\\`"),pe($e,He,ft,"\u02C6","\\^"),pe($e,He,ft,"\u02DC","\\~"),pe($e,He,ft,"\u02C9","\\="),pe($e,He,ft,"\u02D8","\\u"),pe($e,He,ft,"\u02D9","\\."),pe($e,He,ft,"\u02DA","\\r"),pe($e,He,ft,"\u02C7","\\v"),pe($e,He,ft,"\xA8",'\\"'),pe($e,He,ft,"\u02DD","\\H"),pe($e,He,ft,"\u25EF","\\textcircled");var rn={"--":!0,"---":!0,"``":!0,"''":!0};pe($e,He,xt,"\u2013","--"),pe($e,He,xt,"\u2013","\\textendash"),pe($e,He,xt,"\u2014","---"),pe($e,He,xt,"\u2014","\\textemdash"),pe($e,He,xt,"\u2018","`"),pe($e,He,xt,"\u2018","\\textquoteleft"),pe($e,He,xt,"\u2019","'"),pe($e,He,xt,"\u2019","\\textquoteright"),pe($e,He,xt,"\u201C","``"),pe($e,He,xt,"\u201C","\\textquotedblleft"),pe($e,He,xt,"\u201D","''"),pe($e,He,xt,"\u201D","\\textquotedblright"),pe(te,He,xt,"\xB0","\\degree",!0),pe($e,He,xt,"\xB0","\\degree"),pe($e,He,xt,"\xB0","\\textdegree",!0),pe(te,He,vr,"\xA3","\\pounds"),pe(te,He,vr,"\xA3","\\mathsterling",!0),pe($e,He,vr,"\xA3","\\pounds"),pe($e,He,vr,"\xA3","\\textsterling",!0),pe(te,ae,xt,"\u2720","\\maltese"),pe($e,ae,xt,"\u2720","\\maltese"),pe($e,He,Wt,"\xA0","\\ "),pe($e,He,Wt,"\xA0"," "),pe($e,He,Wt,"\xA0","~");for(var Dn='0123456789/@."',Xn=0;Xn<Dn.length;Xn++){var ri=Dn.charAt(Xn);pe(te,He,xt,ri,ri)}for(var Ui='0123456789!@*()-=+[]<>|";:?/.,',Bn=0;Bn<Ui.length;Bn++){var Jn=Ui.charAt(Bn);pe($e,He,xt,Jn,Jn)}for(var Xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",_t=0;_t<Xt.length;_t++){var Fe=Xt.charAt(_t);pe(te,He,vr,Fe,Fe),pe($e,He,xt,Fe,Fe)}pe(te,ae,xt,"C","\u2102"),pe($e,ae,xt,"C","\u2102"),pe(te,ae,xt,"H","\u210D"),pe($e,ae,xt,"H","\u210D"),pe(te,ae,xt,"N","\u2115"),pe($e,ae,xt,"N","\u2115"),pe(te,ae,xt,"P","\u2119"),pe($e,ae,xt,"P","\u2119"),pe(te,ae,xt,"Q","\u211A"),pe($e,ae,xt,"Q","\u211A"),pe(te,ae,xt,"R","\u211D"),pe($e,ae,xt,"R","\u211D"),pe(te,ae,xt,"Z","\u2124"),pe($e,ae,xt,"Z","\u2124"),pe(te,He,vr,"h","\u210E"),pe($e,He,vr,"h","\u210E");for(var Pe="",Be=0;Be<Xt.length;Be++){var nt=Xt.charAt(Be);Pe=String.fromCharCode(55349,56320+Be),pe(te,He,vr,nt,Pe),pe($e,He,xt,nt,Pe),Pe=String.fromCharCode(55349,56372+Be),pe(te,He,vr,nt,Pe),pe($e,He,xt,nt,Pe),Pe=String.fromCharCode(55349,56424+Be),pe(te,He,vr,nt,Pe),pe($e,He,xt,nt,Pe),Pe=String.fromCharCode(55349,56580+Be),pe(te,He,vr,nt,Pe),pe($e,He,xt,nt,Pe),Pe=String.fromCharCode(55349,56736+Be),pe(te,He,vr,nt,Pe),pe($e,He,xt,nt,Pe),Pe=String.fromCharCode(55349,56788+Be),pe(te,He,vr,nt,Pe),pe($e,He,xt,nt,Pe),Pe=String.fromCharCode(55349,56840+Be),pe(te,He,vr,nt,Pe),pe($e,He,xt,nt,Pe),Pe=String.fromCharCode(55349,56944+Be),pe(te,He,vr,nt,Pe),pe($e,He,xt,nt,Pe),Be<26&&(Pe=String.fromCharCode(55349,56632+Be),pe(te,He,vr,nt,Pe),pe($e,He,xt,nt,Pe),Pe=String.fromCharCode(55349,56476+Be),pe(te,He,vr,nt,Pe),pe($e,He,xt,nt,Pe))}Pe=String.fromCharCode(55349,56668),pe(te,He,vr,"k",Pe),pe($e,He,xt,"k",Pe);for(var vt=0;vt<10;vt++){var ar=vt.toString();Pe=String.fromCharCode(55349,57294+vt),pe(te,He,vr,ar,Pe),pe($e,He,xt,ar,Pe),Pe=String.fromCharCode(55349,57314+vt),pe(te,He,vr,ar,Pe),pe($e,He,xt,ar,Pe),Pe=String.fromCharCode(55349,57324+vt),pe(te,He,vr,ar,Pe),pe($e,He,xt,ar,Pe),Pe=String.fromCharCode(55349,57334+vt),pe(te,He,vr,ar,Pe),pe($e,He,xt,ar,Pe)}for(var kr="\xC7\xD0\xDE\xE7\xFE",mn=0;mn<kr.length;mn++){var Zn=kr.charAt(mn);pe(te,He,vr,Zn,Zn),pe($e,He,xt,Zn,Zn)}pe($e,He,xt,"\xF0","\xF0"),pe($e,He,xt,"\u2013","\u2013"),pe($e,He,xt,"\u2014","\u2014"),pe($e,He,xt,"\u2018","\u2018"),pe($e,He,xt,"\u2019","\u2019"),pe($e,He,xt,"\u201C","\u201C"),pe($e,He,xt,"\u201D","\u201D");var ni=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathdefault","textit","Math-Italic"],["mathdefault","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],ur=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Nt=function(ue,Se){var _e=ue.charCodeAt(0),Je=ue.charCodeAt(1),Lt=(_e-55296)*1024+(Je-56320)+65536,tr=Se==="math"?0:1;if(119808<=Lt&&Lt<120484){var Gr=Math.floor((Lt-119808)/26);return[ni[Gr][2],ni[Gr][tr]]}else if(120782<=Lt&&Lt<=120831){var cn=Math.floor((Lt-120782)/10);return[ur[cn][2],ur[cn][tr]]}else{if(Lt===120485||Lt===120486)return[ni[0][2],ni[0][tr]];if(120486<Lt&&Lt<120782)return["",""];throw new u("Unsupported character: "+ue)}},bt=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],gr=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Yt=function(ue,Se){return Se.size<2?ue:bt[ue-1][Se.size-1]},Pt=function(){function It(Se){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=Se.style,this.color=Se.color,this.size=Se.size||It.BASESIZE,this.textSize=Se.textSize||this.size,this.phantom=!!Se.phantom,this.font=Se.font||"",this.fontFamily=Se.fontFamily||"",this.fontWeight=Se.fontWeight||"",this.fontShape=Se.fontShape||"",this.sizeMultiplier=gr[this.size-1],this.maxSize=Se.maxSize,this.minRuleThickness=Se.minRuleThickness,this._fontMetrics=void 0}var ue=It.prototype;return ue.extend=function(_e){var Je={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var Lt in _e)_e.hasOwnProperty(Lt)&&(Je[Lt]=_e[Lt]);return new It(Je)},ue.havingStyle=function(_e){return this.style===_e?this:this.extend({style:_e,size:Yt(this.textSize,_e)})},ue.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},ue.havingSize=function(_e){return this.size===_e&&this.textSize===_e?this:this.extend({style:this.style.text(),size:_e,textSize:_e,sizeMultiplier:gr[_e-1]})},ue.havingBaseStyle=function(_e){_e=_e||this.style.text();var Je=Yt(It.BASESIZE,_e);return this.size===Je&&this.textSize===It.BASESIZE&&this.style===_e?this:this.extend({style:_e,size:Je})},ue.havingBaseSizing=function(){var _e;switch(this.style.id){case 4:case 5:_e=3;break;case 6:case 7:_e=1;break;default:_e=6}return this.extend({style:this.style.text(),size:_e})},ue.withColor=function(_e){return this.extend({color:_e})},ue.withPhantom=function(){return this.extend({phantom:!0})},ue.withFont=function(_e){return this.extend({font:_e})},ue.withTextFontFamily=function(_e){return this.extend({fontFamily:_e,font:""})},ue.withTextFontWeight=function(_e){return this.extend({fontWeight:_e,font:""})},ue.withTextFontShape=function(_e){return this.extend({fontShape:_e,font:""})},ue.sizingClasses=function(_e){return _e.size!==this.size?["sizing","reset-size"+_e.size,"size"+this.size]:[]},ue.baseSizingClasses=function(){return this.size!==It.BASESIZE?["sizing","reset-size"+this.size,"size"+It.BASESIZE]:[]},ue.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=dr(this.size)),this._fontMetrics},ue.getColor=function(){return this.phantom?"transparent":this.color},It}();Pt.BASESIZE=6;var rr=Pt,Rt={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},qt={ex:!0,em:!0,mu:!0},Yr=function(ue){return typeof ue!="string"&&(ue=ue.unit),ue in Rt||ue in qt||ue==="ex"},Mr=function(ue,Se){var _e;if(ue.unit in Rt)_e=Rt[ue.unit]/Se.fontMetrics().ptPerEm/Se.sizeMultiplier;else if(ue.unit==="mu")_e=Se.fontMetrics().cssEmPerMu;else{var Je;if(Se.style.isTight()?Je=Se.havingStyle(Se.style.text()):Je=Se,ue.unit==="ex")_e=Je.fontMetrics().xHeight;else if(ue.unit==="em")_e=Je.fontMetrics().quad;else throw new u("Invalid unit: '"+ue.unit+"'");Je!==Se&&(_e*=Je.sizeMultiplier/Se.sizeMultiplier)}return Math.min(ue.number*_e,Se.maxSize)},Dr=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],un=function(ue,Se,_e){return Xe[_e][ue]&&Xe[_e][ue].replace&&(ue=Xe[_e][ue].replace),{value:ue,metrics:ct(ue,Se,_e)}},wn=function(ue,Se,_e,Je,Lt){var tr=un(ue,Se,_e),Gr=tr.metrics;ue=tr.value;var cn;if(Gr){var _n=Gr.italic;(_e==="text"||Je&&Je.font==="mathit")&&(_n=0),cn=new Ne(ue,Gr.height,Gr.depth,_n,Gr.skew,Gr.width,Lt)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+ue+"' in style '"+Se+"' and mode '"+_e+"'")),cn=new Ne(ue,0,0,0,0,0,Lt);if(Je){cn.maxFontSize=Je.sizeMultiplier,Je.style.isTight()&&cn.classes.push("mtight");var li=Je.getColor();li&&(cn.style.color=li)}return cn},ai=function(ue,Se,_e,Je){return Je===void 0&&(Je=[]),_e.font==="boldsymbol"&&un(ue,"Main-Bold",Se).metrics?wn(ue,"Main-Bold",Se,_e,Je.concat(["mathbf"])):ue==="\\"||Xe[Se][ue].font==="main"?wn(ue,"Main-Regular",Se,_e,Je):wn(ue,"AMS-Regular",Se,_e,Je.concat(["amsrm"]))},ei=function(ue,Se,_e,Je){return/[0-9]/.test(ue.charAt(0))||v.contains(Dr,ue)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},gi=function(ue,Se,_e,Je){return v.contains(Dr,ue)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(ue.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},Ii=function(ue,Se,_e,Je){return un(ue,"Math-BoldItalic",Se).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},ki=function(ue,Se,_e){var Je=ue.mode,Lt=ue.text,tr=["mord"],Gr=Je==="math"||Je==="text"&&Se.font,cn=Gr?Se.font:Se.fontFamily;if(Lt.charCodeAt(0)===55349){var _n=Nt(Lt,Je),li=_n[0],wi=_n[1];return wn(Lt,li,Je,Se,tr.concat(wi))}else if(cn){var mi,Gi;if(cn==="boldsymbol"||cn==="mathnormal"){var sa=cn==="boldsymbol"?Ii(Lt,Je,Se,tr):gi(Lt,Je,Se,tr);mi=sa.fontName,Gi=[sa.fontClass]}else v.contains(Dr,Lt)?(mi="Main-Italic",Gi=["mathit"]):Gr?(mi=dn[cn].fontName,Gi=[cn]):(mi=Xr(cn,Se.fontWeight,Se.fontShape),Gi=[cn,Se.fontWeight,Se.fontShape]);if(un(Lt,mi,Je).metrics)return wn(Lt,mi,Je,Se,tr.concat(Gi));if(rn.hasOwnProperty(Lt)&&mi.substr(0,10)==="Typewriter"){for(var Ua=[],no=0;no<Lt.length;no++)Ua.push(wn(Lt[no],mi,Je,Se,tr.concat(Gi)));return at(Ua)}}if(_e==="mathord"){var Wo=ei(Lt,Je,Se,tr);return wn(Lt,Wo.fontName,Je,Se,tr.concat([Wo.fontClass]))}else if(_e==="textord"){var Zo=Xe[Je][Lt]&&Xe[Je][Lt].font;if(Zo==="ams"){var Bo=Xr("amsrm",Se.fontWeight,Se.fontShape);return wn(Lt,Bo,Je,Se,tr.concat("amsrm",Se.fontWeight,Se.fontShape))}else if(Zo==="main"||!Zo){var Es=Xr("textrm",Se.fontWeight,Se.fontShape);return wn(Lt,Es,Je,Se,tr.concat(Se.fontWeight,Se.fontShape))}else{var As=Xr(Zo,Se.fontWeight,Se.fontShape);return wn(Lt,As,Je,Se,tr.concat(As,Se.fontWeight,Se.fontShape))}}else throw new Error("unexpected type: "+_e+" in makeOrd")},Qi=function(ue,Se){if(oe(ue.classes)!==oe(Se.classes)||ue.skew!==Se.skew||ue.maxFontSize!==Se.maxFontSize)return!1;for(var _e in ue.style)if(ue.style.hasOwnProperty(_e)&&ue.style[_e]!==Se.style[_e])return!1;for(var Je in Se.style)if(Se.style.hasOwnProperty(Je)&&ue.style[Je]!==Se.style[Je])return!1;return!0},it=function(ue){for(var Se=0;Se<ue.length-1;Se++){var _e=ue[Se],Je=ue[Se+1];_e instanceof Ne&&Je instanceof Ne&&Qi(_e,Je)&&(_e.text+=Je.text,_e.height=Math.max(_e.height,Je.height),_e.depth=Math.max(_e.depth,Je.depth),_e.italic=Je.italic,ue.splice(Se+1,1),Se--)}return ue},Me=function(ue){for(var Se=0,_e=0,Je=0,Lt=0;Lt<ue.children.length;Lt++){var tr=ue.children[Lt];tr.height>Se&&(Se=tr.height),tr.depth>_e&&(_e=tr.depth),tr.maxFontSize>Je&&(Je=tr.maxFontSize)}ue.height=Se,ue.depth=_e,ue.maxFontSize=Je},je=function(ue,Se,_e,Je){var Lt=new Y(ue,Se,_e,Je);return Me(Lt),Lt},Ye=function(ue,Se,_e,Je){return new Y(ue,Se,_e,Je)},rt=function(ue,Se,_e){var Je=je([ue],[],Se);return Je.height=Math.max(_e||Se.fontMetrics().defaultRuleThickness,Se.minRuleThickness),Je.style.borderBottomWidth=Je.height+"em",Je.maxFontSize=1,Je},qe=function(ue,Se,_e,Je){var Lt=new $(ue,Se,_e,Je);return Me(Lt),Lt},at=function(ue){var Se=new Oe(ue);return Me(Se),Se},St=function(ue,Se){return ue instanceof Oe?je([],[ue],Se):ue},gt=function(ue){if(ue.positionType==="individualShift"){for(var Se=ue.children,_e=[Se[0]],Je=-Se[0].shift-Se[0].elem.depth,Lt=Je,tr=1;tr<Se.length;tr++){var Gr=-Se[tr].shift-Lt-Se[tr].elem.depth,cn=Gr-(Se[tr-1].elem.height+Se[tr-1].elem.depth);Lt=Lt+Gr,_e.push({type:"kern",size:cn}),_e.push(Se[tr])}return{children:_e,depth:Je}}var _n;if(ue.positionType==="top"){for(var li=ue.positionData,wi=0;wi<ue.children.length;wi++){var mi=ue.children[wi];li-=mi.type==="kern"?mi.size:mi.elem.height+mi.elem.depth}_n=li}else if(ue.positionType==="bottom")_n=-ue.positionData;else{var Gi=ue.children[0];if(Gi.type!=="elem")throw new Error('First child must have type "elem".');if(ue.positionType==="shift")_n=-Gi.elem.depth-ue.positionData;else if(ue.positionType==="firstBaseline")_n=-Gi.elem.depth;else throw new Error("Invalid positionType "+ue.positionType+".")}return{children:ue.children,depth:_n}},hr=function(ue,Se){for(var _e=gt(ue),Je=_e.children,Lt=_e.depth,tr=0,Gr=0;Gr<Je.length;Gr++){var cn=Je[Gr];if(cn.type==="elem"){var _n=cn.elem;tr=Math.max(tr,_n.maxFontSize,_n.height)}}tr+=2;var li=je(["pstrut"],[]);li.style.height=tr+"em";for(var wi=[],mi=Lt,Gi=Lt,sa=Lt,Ua=0;Ua<Je.length;Ua++){var no=Je[Ua];if(no.type==="kern")sa+=no.size;else{var Wo=no.elem,Zo=no.wrapperClasses||[],Bo=no.wrapperStyle||{},Es=je(Zo,[li,Wo],void 0,Bo);Es.style.top=-tr-sa-Wo.depth+"em",no.marginLeft&&(Es.style.marginLeft=no.marginLeft),no.marginRight&&(Es.style.marginRight=no.marginRight),wi.push(Es),sa+=Wo.height+Wo.depth}mi=Math.min(mi,sa),Gi=Math.max(Gi,sa)}var As=je(["vlist"],wi);As.style.height=Gi+"em";var $o;if(mi<0){var Do=je([],[]),vo=je(["vlist"],[Do]);vo.style.height=-mi+"em";var Ms=je(["vlist-s"],[new Ne("\u200B")]);$o=[je(["vlist-r"],[As,Ms]),je(["vlist-r"],[vo])]}else $o=[je(["vlist-r"],[As])];var rl=je(["vlist-t"],$o);return $o.length===2&&rl.classes.push("vlist-t2"),rl.height=Gi,rl.depth=-mi,rl},Qr=function(ue,Se){var _e=je(["mspace"],[],Se),Je=Mr(ue,Se);return _e.style.marginRight=Je+"em",_e},Xr=function(ue,Se,_e){var Je="";switch(ue){case"amsrm":Je="AMS";break;case"textrm":Je="Main";break;case"textsf":Je="SansSerif";break;case"texttt":Je="Typewriter";break;default:Je=ue}var Lt;return Se==="textbf"&&_e==="textit"?Lt="BoldItalic":Se==="textbf"?Lt="Bold":Se==="textit"?Lt="Italic":Lt="Regular",Je+"-"+Lt},dn={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},mr={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Kn=function(ue,Se){var _e=mr[ue],Je=_e[0],Lt=_e[1],tr=_e[2],Gr=new de(Je),cn=new Ee([Gr],{width:Lt+"em",height:tr+"em",style:"width:"+Lt+"em",viewBox:"0 0 "+1e3*Lt+" "+1e3*tr,preserveAspectRatio:"xMinYMin"}),_n=Ye(["overlay"],[cn],Se);return _n.height=tr,_n.style.height=tr+"em",_n.style.width=Lt+"em",_n},Rr={fontMap:dn,makeSymbol:wn,mathsym:ai,makeSpan:je,makeSvgSpan:Ye,makeLineSpan:rt,makeAnchor:qe,makeFragment:at,wrapFragment:St,makeVList:hr,makeOrd:ki,makeGlue:Qr,staticSvg:Kn,svgData:mr,tryCombineChars:it};function Rn(It,ue){var Se=An(It,ue);if(!Se)throw new Error("Expected node of type "+ue+", but got "+(It?"node of type "+It.type:String(It)));return Se}function An(It,ue){return It&&It.type===ue?It:null}function Zr(It,ue){var Se=hi(It,ue);if(!Se)throw new Error('Expected node of type "atom" and family "'+ue+'", but got '+(It?It.type==="atom"?"atom of family "+It.family:"node of type "+It.type:String(It)));return Se}function hi(It,ue){return It&&It.type==="atom"&&It.family===ue?It:null}function Mi(It){var ue=Zi(It);if(!ue)throw new Error("Expected node of symbol group type, but got "+(It?"node of type "+It.type:String(It)));return ue}function Zi(It){return It&&(It.type==="atom"||kt.hasOwnProperty(It.type))?It:null}var qr={number:3,unit:"mu"},xn={number:4,unit:"mu"},zn={number:5,unit:"mu"},Ht={mord:{mop:qr,mbin:xn,mrel:zn,minner:qr},mop:{mord:qr,mop:qr,mrel:zn,minner:qr},mbin:{mord:xn,mop:xn,mopen:xn,minner:xn},mrel:{mord:zn,mop:zn,mopen:zn,minner:zn},mopen:{},mclose:{mop:qr,mbin:xn,mrel:zn,minner:qr},mpunct:{mord:qr,mop:qr,mrel:zn,mopen:qr,mclose:qr,mpunct:qr,minner:qr},minner:{mord:qr,mop:qr,mbin:xn,mrel:zn,mopen:qr,mpunct:qr,minner:qr}},Tt={mord:{mop:qr},mop:{mord:qr,mop:qr},mbin:{},mrel:{},mopen:{},mclose:{mop:qr},mpunct:{},minner:{mop:qr}},Dt={},Bt={},jt={};function Ot(It){for(var ue=It.type,Se=It.names,_e=It.props,Je=It.handler,Lt=It.htmlBuilder,tr=It.mathmlBuilder,Gr={type:ue,numArgs:_e.numArgs,argTypes:_e.argTypes,greediness:_e.greediness===void 0?1:_e.greediness,allowedInText:!!_e.allowedInText,allowedInMath:_e.allowedInMath===void 0?!0:_e.allowedInMath,numOptionalArgs:_e.numOptionalArgs||0,infix:!!_e.infix,handler:Je},cn=0;cn<Se.length;++cn)Dt[Se[cn]]=Gr;ue&&(Lt&&(Bt[ue]=Lt),tr&&(jt[ue]=tr))}function nr(It){var ue=It.type,Se=It.htmlBuilder,_e=It.mathmlBuilder;Ot({type:ue,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:Se,mathmlBuilder:_e})}var pr=function(ue){var Se=An(ue,"ordgroup");return Se?Se.body:[ue]},Ar=Rr.makeSpan,Nr=["leftmost","mbin","mopen","mrel","mop","mpunct"],Hn=["rightmost","mrel","mclose","mpunct"],Ln={display:z.DISPLAY,text:z.TEXT,script:z.SCRIPT,scriptscript:z.SCRIPTSCRIPT},ci={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},hn=function(ue,Se,_e,Je){Je===void 0&&(Je=[null,null]);for(var Lt=[],tr=0;tr<ue.length;tr++){var Gr=xi(ue[tr],Se);if(Gr instanceof Oe){var cn=Gr.children;Lt.push.apply(Lt,cn)}else Lt.push(Gr)}if(!_e)return Lt;var _n=Se;if(ue.length===1){var li=An(ue[0],"sizing")||An(ue[0],"styling");li&&(li.type==="sizing"?_n=Se.havingSize(li.size):li.type==="styling"&&(_n=Se.havingStyle(Ln[li.style])))}var wi=Ar([Je[0]||"leftmost"],[],Se),mi=Ar([Je[1]||"rightmost"],[],Se);return Fr(Lt,function(Gi,sa){var Ua=sa.classes[0],no=Gi.classes[0];Ua==="mbin"&&v.contains(Hn,no)?sa.classes[0]="mord":no==="mbin"&&v.contains(Nr,Ua)&&(Gi.classes[0]="mord")},{node:wi},mi),Fr(Lt,function(Gi,sa){var Ua=Yn(sa),no=Yn(Gi),Wo=Ua&&no?Gi.hasClass("mtight")?Tt[Ua][no]:Ht[Ua][no]:null;if(Wo)return Rr.makeGlue(Wo,_n)},{node:wi},mi),Lt},Fr=function It(ue,Se,_e,Je){Je&&ue.push(Je);for(var Lt=0;Lt<ue.length;Lt++){var tr=ue[Lt],Gr=En(tr);if(Gr){It(Gr.children,Se,_e);continue}if(tr.classes[0]==="mspace")continue;var cn=Se(tr,_e.node);cn&&(_e.insertAfter?_e.insertAfter(cn):(ue.unshift(cn),Lt++)),_e.node=tr,_e.insertAfter=function(_n){return function(li){ue.splice(_n+1,0,li),Lt++}}(Lt)}Je&&ue.pop()},En=function(ue){return ue instanceof Oe||ue instanceof $?ue:null},Wn=function It(ue,Se){var _e=En(ue);if(_e){var Je=_e.children;if(Je.length){if(Se==="right")return It(Je[Je.length-1],"right");if(Se==="left")return It(Je[0],"left")}}return ue},Yn=function(ue,Se){return ue?(Se&&(ue=Wn(ue,Se)),ci[ue.classes[0]]||null):null},ii=function(ue,Se){var _e=["nulldelimiter"].concat(ue.baseSizingClasses());return Ar(Se.concat(_e))},xi=function(ue,Se,_e){if(!ue)return Ar();if(Bt[ue.type]){var Je=Bt[ue.type](ue,Se);if(_e&&Se.size!==_e.size){Je=Ar(Se.sizingClasses(_e),[Je],Se);var Lt=Se.sizeMultiplier/_e.sizeMultiplier;Je.height*=Lt,Je.depth*=Lt}return Je}else throw new u("Got group of unknown type: '"+ue.type+"'")};function Ni(It,ue){var Se=Ar(["base"],It,ue),_e=Ar(["strut"]);return _e.style.height=Se.height+Se.depth+"em",_e.style.verticalAlign=-Se.depth+"em",Se.children.unshift(_e),Se}function Li(It,ue){var Se=null;It.length===1&&It[0].type==="tag"&&(Se=It[0].tag,It=It[0].body);for(var _e=hn(It,ue,!0),Je=[],Lt=[],tr=0;tr<_e.length;tr++)if(Lt.push(_e[tr]),_e[tr].hasClass("mbin")||_e[tr].hasClass("mrel")||_e[tr].hasClass("allowbreak")){for(var Gr=!1;tr<_e.length-1&&_e[tr+1].hasClass("mspace")&&!_e[tr+1].hasClass("newline");)tr++,Lt.push(_e[tr]),_e[tr].hasClass("nobreak")&&(Gr=!0);Gr||(Je.push(Ni(Lt,ue)),Lt=[])}else _e[tr].hasClass("newline")&&(Lt.pop(),Lt.length>0&&(Je.push(Ni(Lt,ue)),Lt=[]),Je.push(_e[tr]));Lt.length>0&&Je.push(Ni(Lt,ue));var cn;Se&&(cn=Ni(hn(Se,ue,!0)),cn.classes=["tag"],Je.push(cn));var _n=Ar(["katex-html"],Je);if(_n.setAttribute("aria-hidden","true"),cn){var li=cn.children[0];li.style.height=_n.height+_n.depth+"em",li.style.verticalAlign=-_n.depth+"em"}return _n}function oa(It){return new Oe(It)}var ma=function(){function It(Se,_e){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=Se,this.attributes={},this.children=_e||[]}var ue=It.prototype;return ue.setAttribute=function(_e,Je){this.attributes[_e]=Je},ue.getAttribute=function(_e){return this.attributes[_e]},ue.toNode=function(){var _e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var Je in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Je)&&_e.setAttribute(Je,this.attributes[Je]);for(var Lt=0;Lt<this.children.length;Lt++)_e.appendChild(this.children[Lt].toNode());return _e},ue.toMarkup=function(){var _e="<"+this.type;for(var Je in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Je)&&(_e+=" "+Je+'="',_e+=v.escape(this.attributes[Je]),_e+='"');_e+=">";for(var Lt=0;Lt<this.children.length;Lt++)_e+=this.children[Lt].toMarkup();return _e+="</"+this.type+">",_e},ue.toText=function(){return this.children.map(function(_e){return _e.toText()}).join("")},It}(),ia=function(){function It(Se){this.text=void 0,this.text=Se}var ue=It.prototype;return ue.toNode=function(){return document.createTextNode(this.text)},ue.toMarkup=function(){return v.escape(this.toText())},ue.toText=function(){return this.text},It}(),ba=function(){function It(Se){this.width=void 0,this.character=void 0,this.width=Se,Se>=.05555&&Se<=.05556?this.character="\u200A":Se>=.1666&&Se<=.1667?this.character="\u2009":Se>=.2222&&Se<=.2223?this.character="\u2005":Se>=.2777&&Se<=.2778?this.character="\u2005\u200A":Se>=-.05556&&Se<=-.05555?this.character="\u200A\u2063":Se>=-.1667&&Se<=-.1666?this.character="\u2009\u2063":Se>=-.2223&&Se<=-.2222?this.character="\u205F\u2063":Se>=-.2778&&Se<=-.2777?this.character="\u2005\u2063":this.character=null}var ue=It.prototype;return ue.toNode=function(){if(this.character)return document.createTextNode(this.character);var _e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return _e.setAttribute("width",this.width+"em"),_e},ue.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},ue.toText=function(){return this.character?this.character:" "},It}(),vi={MathNode:ma,TextNode:ia,SpaceNode:ba,newDocumentFragment:oa},On=function(ue,Se,_e){return Xe[Se][ue]&&Xe[Se][ue].replace&&ue.charCodeAt(0)!==55349&&!(rn.hasOwnProperty(ue)&&_e&&(_e.fontFamily&&_e.fontFamily.substr(4,2)==="tt"||_e.font&&_e.font.substr(4,2)==="tt"))&&(ue=Xe[Se][ue].replace),new vi.TextNode(ue)},Fi=function(ue){return ue.length===1?ue[0]:new vi.MathNode("mrow",ue)},ha=function(ue,Se){if(Se.fontFamily==="texttt")return"monospace";if(Se.fontFamily==="textsf")return Se.fontShape==="textit"&&Se.fontWeight==="textbf"?"sans-serif-bold-italic":Se.fontShape==="textit"?"sans-serif-italic":Se.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(Se.fontShape==="textit"&&Se.fontWeight==="textbf")return"bold-italic";if(Se.fontShape==="textit")return"italic";if(Se.fontWeight==="textbf")return"bold";var _e=Se.font;if(!_e||_e==="mathnormal")return null;var Je=ue.mode;if(_e==="mathit")return"italic";if(_e==="boldsymbol")return"bold-italic";if(_e==="mathbf")return"bold";if(_e==="mathbb")return"double-struck";if(_e==="mathfrak")return"fraktur";if(_e==="mathscr"||_e==="mathcal")return"script";if(_e==="mathsf")return"sans-serif";if(_e==="mathtt")return"monospace";var Lt=ue.text;if(v.contains(["\\imath","\\jmath"],Lt))return null;Xe[Je][Lt]&&Xe[Je][Lt].replace&&(Lt=Xe[Je][Lt].replace);var tr=Rr.fontMap[_e].fontName;return ct(Lt,tr,Je)?Rr.fontMap[_e].variant:null},ea=function(ue,Se,_e){if(ue.length===1){var Je=Or(ue[0],Se);return _e&&Je instanceof ma&&Je.type==="mo"&&(Je.setAttribute("lspace","0em"),Je.setAttribute("rspace","0em")),[Je]}for(var Lt=[],tr,Gr=0;Gr<ue.length;Gr++){var cn=Or(ue[Gr],Se);if(cn instanceof ma&&tr instanceof ma){if(cn.type==="mtext"&&tr.type==="mtext"&&cn.getAttribute("mathvariant")===tr.getAttribute("mathvariant")){var _n;(_n=tr.children).push.apply(_n,cn.children);continue}else if(cn.type==="mn"&&tr.type==="mn"){var li;(li=tr.children).push.apply(li,cn.children);continue}else if(cn.type==="mi"&&cn.children.length===1&&tr.type==="mn"){var wi=cn.children[0];if(wi instanceof ia&&wi.text==="."){var mi;(mi=tr.children).push.apply(mi,cn.children);continue}}else if(tr.type==="mi"&&tr.children.length===1){var Gi=tr.children[0];if(Gi instanceof ia&&Gi.text==="\u0338"&&(cn.type==="mo"||cn.type==="mi"||cn.type==="mn")){var sa=cn.children[0];sa instanceof ia&&sa.text.length>0&&(sa.text=sa.text.slice(0,1)+"\u0338"+sa.text.slice(1),Lt.pop())}}}Lt.push(cn),tr=cn}return Lt},aa=function(ue,Se,_e){return Fi(ea(ue,Se,_e))},Or=function(ue,Se){if(!ue)return new vi.MathNode("mrow");if(jt[ue.type]){var _e=jt[ue.type](ue,Se);return _e}else throw new u("Got group of unknown type: '"+ue.type+"'")};function wr(It,ue,Se,_e){var Je=ea(It,Se),Lt;Je.length===1&&Je[0]instanceof ma&&v.contains(["mrow","mtable"],Je[0].type)?Lt=Je[0]:Lt=new vi.MathNode("mrow",Je);var tr=new vi.MathNode("annotation",[new vi.TextNode(ue)]);tr.setAttribute("encoding","application/x-tex");var Gr=new vi.MathNode("semantics",[Lt,tr]),cn=new vi.MathNode("math",[Gr]);cn.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var _n=_e?"katex":"katex-mathml";return Rr.makeSpan([_n],[cn])}var Sn=function(ue){return new rr({style:ue.displayMode?z.DISPLAY:z.TEXT,maxSize:ue.maxSize,minRuleThickness:ue.minRuleThickness})},cr=function(ue,Se){if(Se.displayMode){var _e=["katex-display"];Se.leqno&&_e.push("leqno"),Se.fleqn&&_e.push("fleqn"),ue=Rr.makeSpan(_e,[ue])}return ue},Lr=function(ue,Se,_e){var Je=Sn(_e),Lt;if(_e.output==="mathml")return wr(ue,Se,Je,!0);if(_e.output==="html"){var tr=Li(ue,Je);Lt=Rr.makeSpan(["katex"],[tr])}else{var Gr=wr(ue,Se,Je,!1),cn=Li(ue,Je);Lt=Rr.makeSpan(["katex"],[Gr,cn])}return cr(Lt,_e)},Wr=function(ue,Se,_e){var Je=Sn(_e),Lt=Li(ue,Je),tr=Rr.makeSpan(["katex"],[Lt]);return cr(tr,_e)},on=Lr,Nn={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB"},Et=function(ue){var Se=new vi.MathNode("mo",[new vi.TextNode(Nn[ue.substr(1)])]);return Se.setAttribute("stretchy","true"),Se},Cr={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},_r=function(ue){return ue.type==="ordgroup"?ue.body.length:1},$r=function(ue,Se){function _e(){var cn=4e5,_n=ue.label.substr(1);if(v.contains(["widehat","widecheck","widetilde","utilde"],_n)){var li=ue,wi=_r(li.base),mi,Gi,sa;if(wi>5)_n==="widehat"||_n==="widecheck"?(mi=420,cn=2364,sa=.42,Gi=_n+"4"):(mi=312,cn=2340,sa=.34,Gi="tilde4");else{var Ua=[1,1,2,2,3,3][wi];_n==="widehat"||_n==="widecheck"?(cn=[0,1062,2364,2364,2364][Ua],mi=[0,239,300,360,420][Ua],sa=[0,.24,.3,.3,.36,.42][Ua],Gi=_n+Ua):(cn=[0,600,1033,2339,2340][Ua],mi=[0,260,286,306,312][Ua],sa=[0,.26,.286,.3,.306,.34][Ua],Gi="tilde"+Ua)}var no=new de(Gi),Wo=new Ee([no],{width:"100%",height:sa+"em",viewBox:"0 0 "+cn+" "+mi,preserveAspectRatio:"none"});return{span:Rr.makeSvgSpan([],[Wo],Se),minWidth:0,height:sa}}else{var Zo=[],Bo=Cr[_n],Es=Bo[0],As=Bo[1],$o=Bo[2],Do=$o/1e3,vo=Es.length,Ms,rl;if(vo===1){var gs=Bo[3];Ms=["hide-tail"],rl=[gs]}else if(vo===2)Ms=["halfarrow-left","halfarrow-right"],rl=["xMinYMin","xMaxYMin"];else if(vo===3)Ms=["brace-left","brace-center","brace-right"],rl=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
|
`+vo+" children.");for(var Ra=0;Ra<vo;Ra++){var dl=new de(Es[Ra]),fl=new Ee([dl],{width:"400em",height:Do+"em",viewBox:"0 0 "+cn+" "+$o,preserveAspectRatio:rl[Ra]+" slice"}),js=Rr.makeSvgSpan([Ms[Ra]],[fl],Se);if(vo===1)return{span:js,minWidth:As,height:Do};js.style.height=Do+"em",Zo.push(js)}return{span:Rr.makeSpan(["stretchy"],Zo,Se),minWidth:As,height:Do}}}var Je=_e(),Lt=Je.span,tr=Je.minWidth,Gr=Je.height;return Lt.height=Gr,Lt.style.height=Gr+"em",tr>0&&(Lt.style.minWidth=tr+"em"),Lt},yn=function(ue,Se,_e,Je){var Lt,tr=ue.height+ue.depth+2*_e;if(/fbox|color/.test(Se)){if(Lt=Rr.makeSpan(["stretchy",Se],[],Je),Se==="fbox"){var Gr=Je.color&&Je.getColor();Gr&&(Lt.style.borderColor=Gr)}}else{var cn=[];/^[bx]cancel$/.test(Se)&&cn.push(new me({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(Se)&&cn.push(new me({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var _n=new Ee(cn,{width:"100%",height:tr+"em"});Lt=Rr.makeSvgSpan([],[_n],Je)}return Lt.height=tr,Lt.style.height=tr+"em",Lt},Tn={encloseSpan:yn,mathMLnode:Et,svgSpan:$r},vn=function(ue,Se){var _e,Je,Lt=An(ue,"supsub"),tr;Lt?(Je=Rn(Lt.base,"accent"),_e=Je.base,Lt.base=_e,tr=tt(xi(Lt,Se)),Lt.base=Je):(Je=Rn(ue,"accent"),_e=Je.base);var Gr=xi(_e,Se.havingCrampedStyle()),cn=Je.isShifty&&v.isCharacterBox(_e),_n=0;if(cn){var li=v.getBaseElem(_e),wi=xi(li,Se.havingCrampedStyle());_n=Le(wi).skew}var mi=Math.min(Gr.height,Se.fontMetrics().xHeight),Gi;if(Je.isStretchy)Gi=Tn.svgSpan(Je,Se),Gi=Rr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Gr},{type:"elem",elem:Gi,wrapperClasses:["svg-align"],wrapperStyle:_n>0?{width:"calc(100% - "+2*_n+"em)",marginLeft:2*_n+"em"}:void 0}]},Se);else{var sa,Ua;Je.label==="\\vec"?(sa=Rr.staticSvg("vec",Se),Ua=Rr.svgData.vec[1]):(sa=Rr.makeOrd({mode:Je.mode,text:Je.label},Se,"textord"),sa=Le(sa),sa.italic=0,Ua=sa.width),Gi=Rr.makeSpan(["accent-body"],[sa]);var no=Je.label==="\\textcircled";no&&(Gi.classes.push("accent-full"),mi=Gr.height);var Wo=_n;no||(Wo-=Ua/2),Gi.style.left=Wo+"em",Je.label==="\\textcircled"&&(Gi.style.top=".2em"),Gi=Rr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Gr},{type:"kern",size:-mi},{type:"elem",elem:Gi}]},Se)}var Zo=Rr.makeSpan(["mord","accent"],[Gi],Se);return tr?(tr.children[0]=Zo,tr.height=Math.max(Zo.height,tr.height),tr.classes[0]="mord",tr):Zo},Qn=function(ue,Se){var _e=ue.isStretchy?Tn.mathMLnode(ue.label):new vi.MathNode("mo",[On(ue.label,ue.mode)]),Je=new vi.MathNode("mover",[Or(ue.base,Se),_e]);return Je.setAttribute("accent","true"),Je},Fn=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(It){return"\\"+It}).join("|"));Ot({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(ue,Se){var _e=Se[0],Je=!Fn.test(ue.funcName),Lt=!Je||ue.funcName==="\\widehat"||ue.funcName==="\\widetilde"||ue.funcName==="\\widecheck";return{type:"accent",mode:ue.parser.mode,label:ue.funcName,isStretchy:Je,isShifty:Lt,base:_e}},htmlBuilder:vn,mathmlBuilder:Qn}),Ot({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(ue,Se){var _e=Se[0];return{type:"accent",mode:ue.parser.mode,label:ue.funcName,isStretchy:!1,isShifty:!0,base:_e}},htmlBuilder:vn,mathmlBuilder:Qn}),Ot({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(ue,Se){var _e=ue.parser,Je=ue.funcName,Lt=Se[0];return{type:"accentUnder",mode:_e.mode,label:Je,base:Lt}},htmlBuilder:function(ue,Se){var _e=xi(ue.base,Se),Je=Tn.svgSpan(ue,Se),Lt=ue.label==="\\utilde"?.12:0,tr=Rr.makeVList({positionType:"bottom",positionData:Je.height+Lt,children:[{type:"elem",elem:Je,wrapperClasses:["svg-align"]},{type:"kern",size:Lt},{type:"elem",elem:_e}]},Se);return Rr.makeSpan(["mord","accentunder"],[tr],Se)},mathmlBuilder:function(ue,Se){var _e=Tn.mathMLnode(ue.label),Je=new vi.MathNode("munder",[Or(ue.base,Se),_e]);return Je.setAttribute("accentunder","true"),Je}});var fi=function(ue){var Se=new vi.MathNode("mpadded",ue?[ue]:[]);return Se.setAttribute("width","+0.6em"),Se.setAttribute("lspace","0.3em"),Se};Ot({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(ue,Se,_e){var Je=ue.parser,Lt=ue.funcName;return{type:"xArrow",mode:Je.mode,label:Lt,body:Se[0],below:_e[0]}},htmlBuilder:function(ue,Se){var _e=Se.style,Je=Se.havingStyle(_e.sup()),Lt=Rr.wrapFragment(xi(ue.body,Je,Se),Se);Lt.classes.push("x-arrow-pad");var tr;ue.below&&(Je=Se.havingStyle(_e.sub()),tr=Rr.wrapFragment(xi(ue.below,Je,Se),Se),tr.classes.push("x-arrow-pad"));var Gr=Tn.svgSpan(ue,Se),cn=-Se.fontMetrics().axisHeight+.5*Gr.height,_n=-Se.fontMetrics().axisHeight-.5*Gr.height-.111;(Lt.depth>.25||ue.label==="\\xleftequilibrium")&&(_n-=Lt.depth);var li;if(tr){var wi=-Se.fontMetrics().axisHeight+tr.height+.5*Gr.height+.111;li=Rr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Lt,shift:_n},{type:"elem",elem:Gr,shift:cn},{type:"elem",elem:tr,shift:wi}]},Se)}else li=Rr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Lt,shift:_n},{type:"elem",elem:Gr,shift:cn}]},Se);return li.children[0].children[0].children[1].classes.push("svg-align"),Rr.makeSpan(["mrel","x-arrow"],[li],Se)},mathmlBuilder:function(ue,Se){var _e=Tn.mathMLnode(ue.label),Je;if(ue.body){var Lt=fi(Or(ue.body,Se));if(ue.below){var tr=fi(Or(ue.below,Se));Je=new vi.MathNode("munderover",[_e,tr,Lt])}else Je=new vi.MathNode("mover",[_e,Lt])}else if(ue.below){var Gr=fi(Or(ue.below,Se));Je=new vi.MathNode("munder",[_e,Gr])}else Je=fi(),Je=new vi.MathNode("mover",[_e,Je]);return Je}}),Ot({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(ue,Se){for(var _e=ue.parser,Je=Rn(Se[0],"ordgroup"),Lt=Je.body,tr="",Gr=0;Gr<Lt.length;Gr++){var cn=Rn(Lt[Gr],"textord");tr+=cn.text}var _n=parseInt(tr);if(isNaN(_n))throw new u("\\@char has non-numeric argument "+tr);return{type:"textord",mode:_e.mode,text:String.fromCharCode(_n)}}});var Ri=function(ue,Se){var _e=hn(ue.body,Se.withColor(ue.color),!1);return Rr.makeFragment(_e)},yi=function(ue,Se){var _e=ea(ue.body,Se.withColor(ue.color)),Je=new vi.MathNode("mstyle",_e);return Je.setAttribute("mathcolor",ue.color),Je};Ot({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(ue,Se){var _e=ue.parser,Je=Rn(Se[0],"color-token").color,Lt=Se[1];return{type:"color",mode:_e.mode,color:Je,body:pr(Lt)}},htmlBuilder:Ri,mathmlBuilder:yi}),Ot({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(ue,Se){var _e=ue.parser,Je=ue.breakOnTokenText,Lt=Rn(Se[0],"color-token").color;_e.gullet.macros.set("\\current@color",Lt);var tr=_e.parseExpression(!0,Je);return{type:"color",mode:_e.mode,color:Lt,body:tr}},htmlBuilder:Ri,mathmlBuilder:yi}),Ot({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ue,Se,_e){var Je=ue.parser,Lt=ue.funcName,tr=_e[0],Gr=Lt==="\\cr",cn=!1;return Gr||(Je.settings.displayMode&&Je.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?cn=!1:cn=!0),{type:"cr",mode:Je.mode,newLine:cn,newRow:Gr,size:tr&&Rn(tr,"size").value}},htmlBuilder:function(ue,Se){if(ue.newRow)throw new u("\\cr valid only within a tabular/array environment");var _e=Rr.makeSpan(["mspace"],[],Se);return ue.newLine&&(_e.classes.push("newline"),ue.size&&(_e.style.marginTop=Mr(ue.size,Se)+"em")),_e},mathmlBuilder:function(ue,Se){var _e=new vi.MathNode("mspace");return ue.newLine&&(_e.setAttribute("linebreak","newline"),ue.size&&_e.setAttribute("height",Mr(ue.size,Se)+"em")),_e}});var Ci=function(ue,Se,_e){var Je=Xe.math[ue]&&Xe.math[ue].replace,Lt=ct(Je||ue,Se,_e);if(!Lt)throw new Error("Unsupported symbol "+ue+" and font size "+Se+".");return Lt},Wi=function(ue,Se,_e,Je){var Lt=_e.havingBaseStyle(Se),tr=Rr.makeSpan(Je.concat(Lt.sizingClasses(_e)),[ue],_e),Gr=Lt.sizeMultiplier/_e.sizeMultiplier;return tr.height*=Gr,tr.depth*=Gr,tr.maxFontSize=Lt.sizeMultiplier,tr},qi=function(ue,Se,_e){var Je=Se.havingBaseStyle(_e),Lt=(1-Se.sizeMultiplier/Je.sizeMultiplier)*Se.fontMetrics().axisHeight;ue.classes.push("delimcenter"),ue.style.top=Lt+"em",ue.height-=Lt,ue.depth+=Lt},zi=function(ue,Se,_e,Je,Lt,tr){var Gr=Rr.makeSymbol(ue,"Main-Regular",Lt,Je),cn=Wi(Gr,Se,Je,tr);return _e&&qi(cn,Je,Se),cn},Ki=function(ue,Se,_e,Je){return Rr.makeSymbol(ue,"Size"+Se+"-Regular",_e,Je)},ji=function(ue,Se,_e,Je,Lt,tr){var Gr=Ki(ue,Se,Lt,Je),cn=Wi(Rr.makeSpan(["delimsizing","size"+Se],[Gr],Je),z.TEXT,Je,tr);return _e&&qi(cn,Je,z.TEXT),cn},Yi=function(ue,Se,_e){var Je;Se==="Size1-Regular"?Je="delim-size1":Je="delim-size4";var Lt=Rr.makeSpan(["delimsizinginner",Je],[Rr.makeSpan([],[Rr.makeSymbol(ue,Se,_e)])]);return{type:"elem",elem:Lt}},ca={type:"kern",size:-.005},Ca=function(ue,Se,_e,Je,Lt,tr){var Gr,cn,_n,li;Gr=_n=li=ue,cn=null;var wi="Size1-Regular";ue==="\\uparrow"?_n=li="\u23D0":ue==="\\Uparrow"?_n=li="\u2016":ue==="\\downarrow"?Gr=_n="\u23D0":ue==="\\Downarrow"?Gr=_n="\u2016":ue==="\\updownarrow"?(Gr="\\uparrow",_n="\u23D0",li="\\downarrow"):ue==="\\Updownarrow"?(Gr="\\Uparrow",_n="\u2016",li="\\Downarrow"):ue==="["||ue==="\\lbrack"?(Gr="\u23A1",_n="\u23A2",li="\u23A3",wi="Size4-Regular"):ue==="]"||ue==="\\rbrack"?(Gr="\u23A4",_n="\u23A5",li="\u23A6",wi="Size4-Regular"):ue==="\\lfloor"||ue==="\u230A"?(_n=Gr="\u23A2",li="\u23A3",wi="Size4-Regular"):ue==="\\lceil"||ue==="\u2308"?(Gr="\u23A1",_n=li="\u23A2",wi="Size4-Regular"):ue==="\\rfloor"||ue==="\u230B"?(_n=Gr="\u23A5",li="\u23A6",wi="Size4-Regular"):ue==="\\rceil"||ue==="\u2309"?(Gr="\u23A4",_n=li="\u23A5",wi="Size4-Regular"):ue==="("||ue==="\\lparen"?(Gr="\u239B",_n="\u239C",li="\u239D",wi="Size4-Regular"):ue===")"||ue==="\\rparen"?(Gr="\u239E",_n="\u239F",li="\u23A0",wi="Size4-Regular"):ue==="\\{"||ue==="\\lbrace"?(Gr="\u23A7",cn="\u23A8",li="\u23A9",_n="\u23AA",wi="Size4-Regular"):ue==="\\}"||ue==="\\rbrace"?(Gr="\u23AB",cn="\u23AC",li="\u23AD",_n="\u23AA",wi="Size4-Regular"):ue==="\\lgroup"||ue==="\u27EE"?(Gr="\u23A7",li="\u23A9",_n="\u23AA",wi="Size4-Regular"):ue==="\\rgroup"||ue==="\u27EF"?(Gr="\u23AB",li="\u23AD",_n="\u23AA",wi="Size4-Regular"):ue==="\\lmoustache"||ue==="\u23B0"?(Gr="\u23A7",li="\u23AD",_n="\u23AA",wi="Size4-Regular"):(ue==="\\rmoustache"||ue==="\u23B1")&&(Gr="\u23AB",li="\u23A9",_n="\u23AA",wi="Size4-Regular");var mi=Ci(Gr,wi,Lt),Gi=mi.height+mi.depth,sa=Ci(_n,wi,Lt),Ua=sa.height+sa.depth,no=Ci(li,wi,Lt),Wo=no.height+no.depth,Zo=0,Bo=1;if(cn!==null){var Es=Ci(cn,wi,Lt);Zo=Es.height+Es.depth,Bo=2}var As=Gi+Wo+Zo,$o=Math.max(0,Math.ceil((Se-As)/(Bo*Ua))),Do=As+$o*Bo*Ua,vo=Je.fontMetrics().axisHeight;_e&&(vo*=Je.sizeMultiplier);var Ms=Do/2-vo,rl=($o+1)*.005-Ua,gs=[];if(gs.push(Yi(li,wi,Lt)),cn===null)for(var Ra=0;Ra<$o;Ra++)gs.push(ca),gs.push(Yi(_n,wi,Lt));else{for(var dl=0;dl<$o;dl++)gs.push(ca),gs.push(Yi(_n,wi,Lt));gs.push({type:"kern",size:rl}),gs.push(Yi(_n,wi,Lt)),gs.push(ca),gs.push(Yi(cn,wi,Lt));for(var fl=0;fl<$o;fl++)gs.push(ca),gs.push(Yi(_n,wi,Lt))}gs.push({type:"kern",size:rl}),gs.push(Yi(_n,wi,Lt)),gs.push(ca),gs.push(Yi(Gr,wi,Lt));var js=Je.havingBaseStyle(z.TEXT),_s=Rr.makeVList({positionType:"bottom",positionData:Ms,children:gs},js);return Wi(Rr.makeSpan(["delimsizing","mult"],[_s],js),z.TEXT,Je,tr)},ra=80,Ma=.08,La=function(ue,Se,_e,Je,Lt){var tr=We(ue,Je,_e),Gr=new de(ue,tr),cn=new Ee([Gr],{width:"400em",height:Se+"em",viewBox:"0 0 400000 "+_e,preserveAspectRatio:"xMinYMin slice"});return Rr.makeSvgSpan(["hide-tail"],[cn],Lt)},va=function(ue,Se){var _e=Se.havingBaseSizing(),Je=Qo("\\surd",ue*_e.sizeMultiplier,io,_e),Lt=_e.sizeMultiplier,tr=Math.max(0,Se.minRuleThickness-Se.fontMetrics().sqrtRuleThickness),Gr,cn=0,_n=0,li=0,wi;return Je.type==="small"?(li=1e3+1e3*tr+ra,ue<1?Lt=1:ue<1.4&&(Lt=.7),cn=(1+tr+Ma)/Lt,_n=(1+tr)/Lt,Gr=La("sqrtMain",cn,li,tr,Se),Gr.style.minWidth="0.853em",wi=.833/Lt):Je.type==="large"?(li=(1e3+ra)*Ga[Je.size],_n=(Ga[Je.size]+tr)/Lt,cn=(Ga[Je.size]+tr+Ma)/Lt,Gr=La("sqrtSize"+Je.size,cn,li,tr,Se),Gr.style.minWidth="1.02em",wi=1/Lt):(cn=ue+tr+Ma,_n=ue+tr,li=Math.floor(1e3*ue+tr)+ra,Gr=La("sqrtTall",cn,li,tr,Se),Gr.style.minWidth="0.742em",wi=1.056),Gr.height=_n,Gr.style.height=cn+"em",{span:Gr,advanceWidth:wi,ruleWidth:(Se.fontMetrics().sqrtRuleThickness+tr)*Lt}},ga=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],Oa=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],Aa=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Ga=[0,1.2,1.8,2.4,3],_a=function(ue,Se,_e,Je,Lt){if(ue==="<"||ue==="\\lt"||ue==="\u27E8"?ue="\\langle":(ue===">"||ue==="\\gt"||ue==="\u27E9")&&(ue="\\rangle"),v.contains(ga,ue)||v.contains(Aa,ue))return ji(ue,Se,!1,_e,Je,Lt);if(v.contains(Oa,ue))return Ca(ue,Ga[Se],!1,_e,Je,Lt);throw new u("Illegal delimiter: '"+ue+"'")},Va=[{type:"small",style:z.SCRIPTSCRIPT},{type:"small",style:z.SCRIPT},{type:"small",style:z.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Bi=[{type:"small",style:z.SCRIPTSCRIPT},{type:"small",style:z.SCRIPT},{type:"small",style:z.TEXT},{type:"stack"}],io=[{type:"small",style:z.SCRIPTSCRIPT},{type:"small",style:z.SCRIPT},{type:"small",style:z.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],oo=function(ue){if(ue.type==="small")return"Main-Regular";if(ue.type==="large")return"Size"+ue.size+"-Regular";if(ue.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+ue.type+"' here.")},Qo=function(ue,Se,_e,Je){for(var Lt=Math.min(2,3-Je.style.size),tr=Lt;tr<_e.length&&!(_e[tr].type==="stack");tr++){var Gr=Ci(ue,oo(_e[tr]),"math"),cn=Gr.height+Gr.depth;if(_e[tr].type==="small"){var _n=Je.havingBaseStyle(_e[tr].style);cn*=_n.sizeMultiplier}if(cn>Se)return _e[tr]}return _e[_e.length-1]},mo=function(ue,Se,_e,Je,Lt,tr){ue==="<"||ue==="\\lt"||ue==="\u27E8"?ue="\\langle":(ue===">"||ue==="\\gt"||ue==="\u27E9")&&(ue="\\rangle");var Gr;v.contains(Aa,ue)?Gr=Va:v.contains(ga,ue)?Gr=io:Gr=Bi;var cn=Qo(ue,Se,Gr,Je);return cn.type==="small"?zi(ue,cn.style,_e,Je,Lt,tr):cn.type==="large"?ji(ue,cn.size,_e,Je,Lt,tr):Ca(ue,Se,_e,Je,Lt,tr)},To=function(ue,Se,_e,Je,Lt,tr){var Gr=Je.fontMetrics().axisHeight*Je.sizeMultiplier,cn=901,_n=5/Je.fontMetrics().ptPerEm,li=Math.max(Se-Gr,_e+Gr),wi=Math.max(li/500*cn,2*li-_n);return mo(ue,wi,!0,Je,Lt,tr)},ao={sqrtImage:va,sizedDelim:_a,customSizedDelim:mo,leftRightDelim:To},So={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},bo=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function to(It,ue){var Se=Zi(It);if(Se&&v.contains(bo,Se.text))return Se;throw new u("Invalid delimiter: '"+(Se?Se.text:JSON.stringify(It))+"' after '"+ue.funcName+"'",It)}Ot({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(ue,Se){var _e=to(Se[0],ue);return{type:"delimsizing",mode:ue.parser.mode,size:So[ue.funcName].size,mclass:So[ue.funcName].mclass,delim:_e.text}},htmlBuilder:function(ue,Se){return ue.delim==="."?Rr.makeSpan([ue.mclass]):ao.sizedDelim(ue.delim,ue.size,Se,ue.mode,[ue.mclass])},mathmlBuilder:function(ue){var Se=[];ue.delim!=="."&&Se.push(On(ue.delim,ue.mode));var _e=new vi.MathNode("mo",Se);return ue.mclass==="mopen"||ue.mclass==="mclose"?_e.setAttribute("fence","true"):_e.setAttribute("fence","false"),_e}});function Jo(It){if(!It.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Ot({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(ue,Se){var _e=ue.parser.gullet.macros.get("\\current@color");if(_e&&typeof _e!="string")throw new u("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:ue.parser.mode,delim:to(Se[0],ue).text,color:_e}}}),Ot({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(ue,Se){var _e=to(Se[0],ue),Je=ue.parser;++Je.leftrightDepth;var Lt=Je.parseExpression(!1);--Je.leftrightDepth,Je.expect("\\right",!1);var tr=Rn(Je.parseFunction(),"leftright-right");return{type:"leftright",mode:Je.mode,body:Lt,left:_e.text,right:tr.delim,rightColor:tr.color}},htmlBuilder:function(ue,Se){Jo(ue);for(var _e=hn(ue.body,Se,!0,["mopen","mclose"]),Je=0,Lt=0,tr=!1,Gr=0;Gr<_e.length;Gr++)_e[Gr].isMiddle?tr=!0:(Je=Math.max(_e[Gr].height,Je),Lt=Math.max(_e[Gr].depth,Lt));Je*=Se.sizeMultiplier,Lt*=Se.sizeMultiplier;var cn;if(ue.left==="."?cn=ii(Se,["mopen"]):cn=ao.leftRightDelim(ue.left,Je,Lt,Se,ue.mode,["mopen"]),_e.unshift(cn),tr)for(var _n=1;_n<_e.length;_n++){var li=_e[_n],wi=li.isMiddle;wi&&(_e[_n]=ao.leftRightDelim(wi.delim,Je,Lt,wi.options,ue.mode,[]))}var mi;if(ue.right===".")mi=ii(Se,["mclose"]);else{var Gi=ue.rightColor?Se.withColor(ue.rightColor):Se;mi=ao.leftRightDelim(ue.right,Je,Lt,Gi,ue.mode,["mclose"])}return _e.push(mi),Rr.makeSpan(["minner"],_e,Se)},mathmlBuilder:function(ue,Se){Jo(ue);var _e=ea(ue.body,Se);if(ue.left!=="."){var Je=new vi.MathNode("mo",[On(ue.left,ue.mode)]);Je.setAttribute("fence","true"),_e.unshift(Je)}if(ue.right!=="."){var Lt=new vi.MathNode("mo",[On(ue.right,ue.mode)]);Lt.setAttribute("fence","true"),ue.rightColor&&Lt.setAttribute("mathcolor",ue.rightColor),_e.push(Lt)}return Fi(_e)}}),Ot({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(ue,Se){var _e=to(Se[0],ue);if(!ue.parser.leftrightDepth)throw new u("\\middle without preceding \\left",_e);return{type:"middle",mode:ue.parser.mode,delim:_e.text}},htmlBuilder:function(ue,Se){var _e;if(ue.delim===".")_e=ii(Se,[]);else{_e=ao.sizedDelim(ue.delim,1,Se,ue.mode,[]);var Je={delim:ue.delim,options:Se};_e.isMiddle=Je}return _e},mathmlBuilder:function(ue,Se){var _e=ue.delim==="\\vert"||ue.delim==="|"?On("|","text"):On(ue.delim,ue.mode),Je=new vi.MathNode("mo",[_e]);return Je.setAttribute("fence","true"),Je.setAttribute("lspace","0.05em"),Je.setAttribute("rspace","0.05em"),Je}});var Uo=function(ue,Se){var _e=Rr.wrapFragment(xi(ue.body,Se),Se),Je=ue.label.substr(1),Lt=Se.sizeMultiplier,tr,Gr=0,cn=v.isCharacterBox(ue.body);if(Je==="sout")tr=Rr.makeSpan(["stretchy","sout"]),tr.height=Se.fontMetrics().defaultRuleThickness/Lt,Gr=-.5*Se.fontMetrics().xHeight;else{/cancel/.test(Je)?cn||_e.classes.push("cancel-pad"):_e.classes.push("boxpad");var _n=0,li=0;/box/.test(Je)?(li=Math.max(Se.fontMetrics().fboxrule,Se.minRuleThickness),_n=Se.fontMetrics().fboxsep+(Je==="colorbox"?0:li)):_n=cn?.2:0,tr=Tn.encloseSpan(_e,Je,_n,Se),/fbox|boxed|fcolorbox/.test(Je)&&(tr.style.borderStyle="solid",tr.style.borderWidth=li+"em"),Gr=_e.depth+_n,ue.backgroundColor&&(tr.style.backgroundColor=ue.backgroundColor,ue.borderColor&&(tr.style.borderColor=ue.borderColor))}var wi;return ue.backgroundColor?wi=Rr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:tr,shift:Gr},{type:"elem",elem:_e,shift:0}]},Se):wi=Rr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:_e,shift:0},{type:"elem",elem:tr,shift:Gr,wrapperClasses:/cancel/.test(Je)?["svg-align"]:[]}]},Se),/cancel/.test(Je)&&(wi.height=_e.height,wi.depth=_e.depth),/cancel/.test(Je)&&!cn?Rr.makeSpan(["mord","cancel-lap"],[wi],Se):Rr.makeSpan(["mord"],[wi],Se)},wo=function(ue,Se){var _e=0,Je=new vi.MathNode(ue.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Or(ue.body,Se)]);switch(ue.label){case"\\cancel":Je.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":Je.setAttribute("notation","downdiagonalstrike");break;case"\\sout":Je.setAttribute("notation","horizontalstrike");break;case"\\fbox":Je.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(_e=Se.fontMetrics().fboxsep*Se.fontMetrics().ptPerEm,Je.setAttribute("width","+"+2*_e+"pt"),Je.setAttribute("height","+"+2*_e+"pt"),Je.setAttribute("lspace",_e+"pt"),Je.setAttribute("voffset",_e+"pt"),ue.label==="\\fcolorbox"){var Lt=Math.max(Se.fontMetrics().fboxrule,Se.minRuleThickness);Je.setAttribute("style","border: "+Lt+"em solid "+String(ue.borderColor))}break;case"\\xcancel":Je.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return ue.backgroundColor&&Je.setAttribute("mathbackground",ue.backgroundColor),Je};Ot({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(ue,Se,_e){var Je=ue.parser,Lt=ue.funcName,tr=Rn(Se[0],"color-token").color,Gr=Se[1];return{type:"enclose",mode:Je.mode,label:Lt,backgroundColor:tr,body:Gr}},htmlBuilder:Uo,mathmlBuilder:wo}),Ot({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(ue,Se,_e){var Je=ue.parser,Lt=ue.funcName,tr=Rn(Se[0],"color-token").color,Gr=Rn(Se[1],"color-token").color,cn=Se[2];return{type:"enclose",mode:Je.mode,label:Lt,backgroundColor:Gr,borderColor:tr,body:cn}},htmlBuilder:Uo,mathmlBuilder:wo}),Ot({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(ue,Se){var _e=ue.parser;return{type:"enclose",mode:_e.mode,label:"\\fbox",body:Se[0]}}}),Ot({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(ue,Se,_e){var Je=ue.parser,Lt=ue.funcName,tr=Se[0];return{type:"enclose",mode:Je.mode,label:Lt,body:tr}},htmlBuilder:Uo,mathmlBuilder:wo});var ts={};function Ia(It){for(var ue=It.type,Se=It.names,_e=It.props,Je=It.handler,Lt=It.htmlBuilder,tr=It.mathmlBuilder,Gr={type:ue,numArgs:_e.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:Je},cn=0;cn<Se.length;++cn)ts[Se[cn]]=Gr;Lt&&(Bt[ue]=Lt),tr&&(jt[ue]=tr)}function Oo(It){var ue=[];It.consumeSpaces();for(var Se=It.fetch().text;Se==="\\hline"||Se==="\\hdashline";)It.consume(),ue.push(Se==="\\hdashline"),It.consumeSpaces(),Se=It.fetch().text;return ue}function Io(It,ue,Se){var _e=ue.hskipBeforeAndAfter,Je=ue.addJot,Lt=ue.cols,tr=ue.arraystretch,Gr=ue.colSeparationType;if(It.gullet.beginGroup(),It.gullet.macros.set("\\\\","\\cr"),!tr){var cn=It.gullet.expandMacroAsText("\\arraystretch");if(cn==null)tr=1;else if(tr=parseFloat(cn),!tr||tr<0)throw new u("Invalid \\arraystretch: "+cn)}It.gullet.beginGroup();var _n=[],li=[_n],wi=[],mi=[];for(mi.push(Oo(It));;){var Gi=It.parseExpression(!1,"\\cr");It.gullet.endGroup(),It.gullet.beginGroup(),Gi={type:"ordgroup",mode:It.mode,body:Gi},Se&&(Gi={type:"styling",mode:It.mode,style:Se,body:[Gi]}),_n.push(Gi);var sa=It.fetch().text;if(sa==="&")It.consume();else if(sa==="\\end"){_n.length===1&&Gi.type==="styling"&&Gi.body[0].body.length===0&&li.pop(),mi.length<li.length+1&&mi.push([]);break}else if(sa==="\\cr"){var Ua=Rn(It.parseFunction(),"cr");wi.push(Ua.size),mi.push(Oo(It)),_n=[],li.push(_n)}else throw new u("Expected & or \\\\ or \\cr or \\end",It.nextToken)}return It.gullet.endGroup(),It.gullet.endGroup(),{type:"array",mode:It.mode,addJot:Je,arraystretch:tr,body:li,cols:Lt,rowGaps:wi,hskipBeforeAndAfter:_e,hLinesBeforeRow:mi,colSeparationType:Gr}}function os(It){return It.substr(0,1)==="d"?"display":"text"}var xo=function(ue,Se){var _e,Je,Lt=ue.body.length,tr=ue.hLinesBeforeRow,Gr=0,cn=new Array(Lt),_n=[],li=Math.max(Se.fontMetrics().arrayRuleWidth,Se.minRuleThickness),wi=1/Se.fontMetrics().ptPerEm,mi=5*wi;if(ue.colSeparationType&&ue.colSeparationType==="small"){var Gi=Se.havingStyle(z.SCRIPT).sizeMultiplier;mi=.2778*(Gi/Se.sizeMultiplier)}var sa=12*wi,Ua=3*wi,no=ue.arraystretch*sa,Wo=.7*no,Zo=.3*no,Bo=0;function Es(Is){for(var Ps=0;Ps<Is.length;++Ps)Ps>0&&(Bo+=.25),_n.push({pos:Bo,isDashed:Is[Ps]})}for(Es(tr[0]),_e=0;_e<ue.body.length;++_e){var As=ue.body[_e],$o=Wo,Do=Zo;Gr<As.length&&(Gr=As.length);var vo=new Array(As.length);for(Je=0;Je<As.length;++Je){var Ms=xi(As[Je],Se);Do<Ms.depth&&(Do=Ms.depth),$o<Ms.height&&($o=Ms.height),vo[Je]=Ms}var rl=ue.rowGaps[_e],gs=0;rl&&(gs=Mr(rl,Se),gs>0&&(gs+=Zo,Do<gs&&(Do=gs),gs=0)),ue.addJot&&(Do+=Ua),vo.height=$o,vo.depth=Do,Bo+=$o,vo.pos=Bo,Bo+=Do+gs,cn[_e]=vo,Es(tr[_e+1])}var Ra=Bo/2+Se.fontMetrics().axisHeight,dl=ue.cols||[],fl=[],js,_s;for(Je=0,_s=0;Je<Gr||_s<dl.length;++Je,++_s){for(var Xs=dl[_s]||{},Ql=!0;Xs.type==="separator";){if(Ql||(js=Rr.makeSpan(["arraycolsep"],[]),js.style.width=Se.fontMetrics().doubleRuleSep+"em",fl.push(js)),Xs.separator==="|"||Xs.separator===":"){var Ul=Xs.separator==="|"?"solid":"dashed",wl=Rr.makeSpan(["vertical-separator"],[],Se);wl.style.height=Bo+"em",wl.style.borderRightWidth=li+"em",wl.style.borderRightStyle=Ul,wl.style.margin="0 -"+li/2+"em",wl.style.verticalAlign=-(Bo-Ra)+"em",fl.push(wl)}else throw new u("Invalid separator type: "+Xs.separator);_s++,Xs=dl[_s]||{},Ql=!1}if(Je>=Gr)continue;var Ts=void 0;(Je>0||ue.hskipBeforeAndAfter)&&(Ts=v.deflt(Xs.pregap,mi),Ts!==0&&(js=Rr.makeSpan(["arraycolsep"],[]),js.style.width=Ts+"em",fl.push(js)));var Ks=[];for(_e=0;_e<Lt;++_e){var Tl=cn[_e],pl=Tl[Je];if(!pl)continue;var jo=Tl.pos-Ra;pl.depth=Tl.depth,pl.height=Tl.height,Ks.push({type:"elem",elem:pl,shift:jo})}Ks=Rr.makeVList({positionType:"individualShift",children:Ks},Se),Ks=Rr.makeSpan(["col-align-"+(Xs.align||"c")],[Ks]),fl.push(Ks),(Je<Gr-1||ue.hskipBeforeAndAfter)&&(Ts=v.deflt(Xs.postgap,mi),Ts!==0&&(js=Rr.makeSpan(["arraycolsep"],[]),js.style.width=Ts+"em",fl.push(js)))}if(cn=Rr.makeSpan(["mtable"],fl),_n.length>0){for(var yo=Rr.makeLineSpan("hline",Se,li),qo=Rr.makeLineSpan("hdashline",Se,li),ps=[{type:"elem",elem:cn,shift:0}];_n.length>0;){var Os=_n.pop(),es=Os.pos-Ra;Os.isDashed?ps.push({type:"elem",elem:qo,shift:es}):ps.push({type:"elem",elem:yo,shift:es})}cn=Rr.makeVList({positionType:"individualShift",children:ps},Se)}return Rr.makeSpan(["mord"],[cn],Se)},rs={c:"center ",l:"left ",r:"right "},Ho=function(ue,Se){var _e=new vi.MathNode("mtable",ue.body.map(function(Bo){return new vi.MathNode("mtr",Bo.map(function(Es){return new vi.MathNode("mtd",[Or(Es,Se)])}))})),Je=ue.arraystretch===.5?.1:.16+ue.arraystretch-1+(ue.addJot?.09:0);_e.setAttribute("rowspacing",Je+"em");var Lt="",tr="";if(ue.cols){var Gr=ue.cols,cn="",_n=!1,li=0,wi=Gr.length;Gr[0].type==="separator"&&(Lt+="top ",li=1),Gr[Gr.length-1].type==="separator"&&(Lt+="bottom ",wi-=1);for(var mi=li;mi<wi;mi++)Gr[mi].type==="align"?(tr+=rs[Gr[mi].align],_n&&(cn+="none "),_n=!0):Gr[mi].type==="separator"&&(_n&&(cn+=Gr[mi].separator==="|"?"solid ":"dashed ",_n=!1));_e.setAttribute("columnalign",tr.trim()),/[sd]/.test(cn)&&_e.setAttribute("columnlines",cn.trim())}if(ue.colSeparationType==="align"){for(var Gi=ue.cols||[],sa="",Ua=1;Ua<Gi.length;Ua++)sa+=Ua%2?"0em ":"1em ";_e.setAttribute("columnspacing",sa.trim())}else ue.colSeparationType==="alignat"?_e.setAttribute("columnspacing","0em"):ue.colSeparationType==="small"?_e.setAttribute("columnspacing","0.2778em"):_e.setAttribute("columnspacing","1em");var no="",Wo=ue.hLinesBeforeRow;Lt+=Wo[0].length>0?"left ":"",Lt+=Wo[Wo.length-1].length>0?"right ":"";for(var Zo=1;Zo<Wo.length-1;Zo++)no+=Wo[Zo].length===0?"none ":Wo[Zo][0]?"dashed ":"solid ";return/[sd]/.test(no)&&_e.setAttribute("rowlines",no.trim()),Lt!==""&&(_e=new vi.MathNode("menclose",[_e]),_e.setAttribute("notation",Lt.trim())),ue.arraystretch&&ue.arraystretch<1&&(_e=new vi.MathNode("mstyle",[_e]),_e.setAttribute("scriptlevel","1")),_e},_o=function(ue,Se){var _e=[],Je=Io(ue.parser,{cols:_e,addJot:!0},"display"),Lt,tr=0,Gr={type:"ordgroup",mode:ue.mode,body:[]},cn=An(Se[0],"ordgroup");if(cn){for(var _n="",li=0;li<cn.body.length;li++){var wi=Rn(cn.body[li],"textord");_n+=wi.text}Lt=Number(_n),tr=Lt*2}var mi=!tr;Je.body.forEach(function(no){for(var Wo=1;Wo<no.length;Wo+=2){var Zo=Rn(no[Wo],"styling"),Bo=Rn(Zo.body[0],"ordgroup");Bo.body.unshift(Gr)}if(mi)tr<no.length&&(tr=no.length);else{var Es=no.length/2;if(Lt<Es)throw new u("Too many math in a row: "+("expected "+Lt+", but got "+Es),no[0])}});for(var Gi=0;Gi<tr;++Gi){var sa="r",Ua=0;Gi%2===1?sa="l":Gi>0&&mi&&(Ua=1),_e[Gi]={type:"align",align:sa,pregap:Ua,postgap:0}}return Je.colSeparationType=mi?"align":"alignat",Je};Ia({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(ue,Se){var _e=Zi(Se[0]),Je=_e?[Se[0]]:Rn(Se[0],"ordgroup").body,Lt=Je.map(function(Gr){var cn=Mi(Gr),_n=cn.text;if("lcr".indexOf(_n)!==-1)return{type:"align",align:_n};if(_n==="|")return{type:"separator",separator:"|"};if(_n===":")return{type:"separator",separator:":"};throw new u("Unknown column alignment: "+_n,Gr)}),tr={cols:Lt,hskipBeforeAndAfter:!0};return Io(ue.parser,tr,os(ue.envName))},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(ue){var Se={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[ue.envName],_e={hskipBeforeAndAfter:!1},Je=Io(ue.parser,_e,os(ue.envName));return Se?{type:"leftright",mode:ue.mode,body:[Je],left:Se[0],right:Se[1],rightColor:void 0}:Je},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(ue){var Se={arraystretch:.5},_e=Io(ue.parser,Se,"script");return _e.colSeparationType="small",_e},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["subarray"],props:{numArgs:1},handler:function(ue,Se){var _e=Zi(Se[0]),Je=_e?[Se[0]]:Rn(Se[0],"ordgroup").body,Lt=Je.map(function(Gr){var cn=Mi(Gr),_n=cn.text;if("lc".indexOf(_n)!==-1)return{type:"align",align:_n};throw new u("Unknown column alignment: "+_n,Gr)});if(Lt.length>1)throw new u("{subarray} can contain only one column");var tr={cols:Lt,hskipBeforeAndAfter:!1,arraystretch:.5};if(tr=Io(ue.parser,tr,"script"),tr.body[0].length>1)throw new u("{subarray} can contain only one column");return tr},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(ue){var Se={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},_e=Io(ue.parser,Se,os(ue.envName));return{type:"leftright",mode:ue.mode,body:[_e],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["aligned"],props:{numArgs:0},handler:_o,htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["gathered"],props:{numArgs:0},handler:function(ue){var Se={cols:[{type:"align",align:"c"}],addJot:!0};return Io(ue.parser,Se,"display")},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["alignedat"],props:{numArgs:1},handler:_o,htmlBuilder:xo,mathmlBuilder:Ho}),Ot({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(ue,Se){throw new u(ue.funcName+" valid only within array environment")}});var uo=ts,Ha=uo;Ot({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(ue,Se){var _e=ue.parser,Je=ue.funcName,Lt=Se[0];if(Lt.type!=="ordgroup")throw new u("Invalid environment name",Lt);for(var tr="",Gr=0;Gr<Lt.body.length;++Gr)tr+=Rn(Lt.body[Gr],"textord").text;if(Je==="\\begin"){if(!Ha.hasOwnProperty(tr))throw new u("No such environment: "+tr,Lt);var cn=Ha[tr],_n=_e.parseArguments("\\begin{"+tr+"}",cn),li=_n.args,wi=_n.optArgs,mi={mode:_e.mode,envName:tr,parser:_e},Gi=cn.handler(mi,li,wi);_e.expect("\\end",!1);var sa=_e.nextToken,Ua=Rn(_e.parseFunction(),"environment");if(Ua.name!==tr)throw new u("Mismatch: \\begin{"+tr+"} matched by \\end{"+Ua.name+"}",sa);return Gi}return{type:"environment",mode:_e.mode,name:tr,nameGroup:Lt}}});var pt=Rr.makeSpan;function xr(It,ue){var Se=hn(It.body,ue,!0);return pt([It.mclass],Se,ue)}function Jr(It,ue){var Se,_e=ea(It.body,ue);return It.mclass==="minner"?vi.newDocumentFragment(_e):(It.mclass==="mord"?It.isCharacterBox?(Se=_e[0],Se.type="mi"):Se=new vi.MathNode("mi",_e):(It.isCharacterBox?(Se=_e[0],Se.type="mo"):Se=new vi.MathNode("mo",_e),It.mclass==="mbin"?(Se.attributes.lspace="0.22em",Se.attributes.rspace="0.22em"):It.mclass==="mpunct"?(Se.attributes.lspace="0em",Se.attributes.rspace="0.17em"):(It.mclass==="mopen"||It.mclass==="mclose")&&(Se.attributes.lspace="0em",Se.attributes.rspace="0em")),Se)}Ot({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(ue,Se){var _e=ue.parser,Je=ue.funcName,Lt=Se[0];return{type:"mclass",mode:_e.mode,mclass:"m"+Je.substr(5),body:pr(Lt),isCharacterBox:v.isCharacterBox(Lt)}},htmlBuilder:xr,mathmlBuilder:Jr});var Vr=function(ue){var Se=ue.type==="ordgroup"&&ue.body.length?ue.body[0]:ue;return Se.type==="atom"&&(Se.family==="bin"||Se.family==="rel")?"m"+Se.family:"mord"};Ot({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(ue,Se){var _e=ue.parser;return{type:"mclass",mode:_e.mode,mclass:Vr(Se[0]),body:[Se[1]],isCharacterBox:v.isCharacterBox(Se[1])}}}),Ot({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(ue,Se){var _e=ue.parser,Je=ue.funcName,Lt=Se[1],tr=Se[0],Gr;Je!=="\\stackrel"?Gr=Vr(Lt):Gr="mrel";var cn={type:"op",mode:Lt.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:Je!=="\\stackrel",body:pr(Lt)},_n={type:"supsub",mode:tr.mode,base:cn,sup:Je==="\\underset"?null:tr,sub:Je==="\\underset"?tr:null};return{type:"mclass",mode:_e.mode,mclass:Gr,body:[_n],isCharacterBox:v.isCharacterBox(_n)}},htmlBuilder:xr,mathmlBuilder:Jr});var Vn=function(ue,Se){var _e=ue.font,Je=Se.withFont(_e);return xi(ue.body,Je)},sn=function(ue,Se){var _e=ue.font,Je=Se.withFont(_e);return Or(ue.body,Je)},zr={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Ot({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(ue,Se){var _e=ue.parser,Je=ue.funcName,Lt=Se[0],tr=Je;return tr in zr&&(tr=zr[tr]),{type:"font",mode:_e.mode,font:tr.slice(1),body:Lt}},htmlBuilder:Vn,mathmlBuilder:sn}),Ot({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(ue,Se){var _e=ue.parser,Je=Se[0],Lt=v.isCharacterBox(Je);return{type:"mclass",mode:_e.mode,mclass:Vr(Je),body:[{type:"font",mode:_e.mode,font:"boldsymbol",body:Je}],isCharacterBox:Lt}}}),Ot({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(ue,Se){var _e=ue.parser,Je=ue.funcName,Lt=ue.breakOnTokenText,tr=_e.mode,Gr=_e.parseExpression(!0,Lt),cn="math"+Je.slice(1);return{type:"font",mode:tr,font:cn,body:{type:"ordgroup",mode:_e.mode,body:Gr}}},htmlBuilder:Vn,mathmlBuilder:sn});var qn=function(ue,Se){var _e=Se;return ue==="display"?_e=_e.id>=z.SCRIPT.id?_e.text():z.DISPLAY:ue==="text"&&_e.size===z.DISPLAY.size?_e=z.TEXT:ue==="script"?_e=z.SCRIPT:ue==="scriptscript"&&(_e=z.SCRIPTSCRIPT),_e},en=function(ue,Se){var _e=qn(ue.size,Se.style),Je=_e.fracNum(),Lt=_e.fracDen(),tr;tr=Se.havingStyle(Je);var Gr=xi(ue.numer,tr,Se);if(ue.continued){var cn=8.5/Se.fontMetrics().ptPerEm,_n=3.5/Se.fontMetrics().ptPerEm;Gr.height=Gr.height<cn?cn:Gr.height,Gr.depth=Gr.depth<_n?_n:Gr.depth}tr=Se.havingStyle(Lt);var li=xi(ue.denom,tr,Se),wi,mi,Gi;ue.hasBarLine?(ue.barSize?(mi=Mr(ue.barSize,Se),wi=Rr.makeLineSpan("frac-line",Se,mi)):wi=Rr.makeLineSpan("frac-line",Se),mi=wi.height,Gi=wi.height):(wi=null,mi=0,Gi=Se.fontMetrics().defaultRuleThickness);var sa,Ua,no;_e.size===z.DISPLAY.size||ue.size==="display"?(sa=Se.fontMetrics().num1,mi>0?Ua=3*Gi:Ua=7*Gi,no=Se.fontMetrics().denom1):(mi>0?(sa=Se.fontMetrics().num2,Ua=Gi):(sa=Se.fontMetrics().num3,Ua=3*Gi),no=Se.fontMetrics().denom2);var Wo;if(wi){var Bo=Se.fontMetrics().axisHeight;sa-Gr.depth-(Bo+.5*mi)<Ua&&(sa+=Ua-(sa-Gr.depth-(Bo+.5*mi))),Bo-.5*mi-(li.height-no)<Ua&&(no+=Ua-(Bo-.5*mi-(li.height-no)));var Es=-(Bo-.5*mi);Wo=Rr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:li,shift:no},{type:"elem",elem:wi,shift:Es},{type:"elem",elem:Gr,shift:-sa}]},Se)}else{var Zo=sa-Gr.depth-(li.height-no);Zo<Ua&&(sa+=.5*(Ua-Zo),no+=.5*(Ua-Zo)),Wo=Rr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:li,shift:no},{type:"elem",elem:Gr,shift:-sa}]},Se)}tr=Se.havingStyle(_e),Wo.height*=tr.sizeMultiplier/Se.sizeMultiplier,Wo.depth*=tr.sizeMultiplier/Se.sizeMultiplier;var As;_e.size===z.DISPLAY.size?As=Se.fontMetrics().delim1:As=Se.fontMetrics().delim2;var $o,Do;return ue.leftDelim==null?$o=ii(Se,["mopen"]):$o=ao.customSizedDelim(ue.leftDelim,As,!0,Se.havingStyle(_e),ue.mode,["mopen"]),ue.continued?Do=Rr.makeSpan([]):ue.rightDelim==null?Do=ii(Se,["mclose"]):Do=ao.customSizedDelim(ue.rightDelim,As,!0,Se.havingStyle(_e),ue.mode,["mclose"]),Rr.makeSpan(["mord"].concat(tr.sizingClasses(Se)),[$o,Rr.makeSpan(["mfrac"],[Wo]),Do],Se)},Un=function(ue,Se){var _e=new vi.MathNode("mfrac",[Or(ue.numer,Se),Or(ue.denom,Se)]);if(!ue.hasBarLine)_e.setAttribute("linethickness","0px");else if(ue.barSize){var Je=Mr(ue.barSize,Se);_e.setAttribute("linethickness",Je+"em")}var Lt=qn(ue.size,Se.style);if(Lt.size!==Se.style.size){_e=new vi.MathNode("mstyle",[_e]);var tr=Lt.size===z.DISPLAY.size?"true":"false";_e.setAttribute("displaystyle",tr),_e.setAttribute("scriptlevel","0")}if(ue.leftDelim!=null||ue.rightDelim!=null){var Gr=[];if(ue.leftDelim!=null){var cn=new vi.MathNode("mo",[new vi.TextNode(ue.leftDelim.replace("\\",""))]);cn.setAttribute("fence","true"),Gr.push(cn)}if(Gr.push(_e),ue.rightDelim!=null){var _n=new vi.MathNode("mo",[new vi.TextNode(ue.rightDelim.replace("\\",""))]);_n.setAttribute("fence","true"),Gr.push(_n)}return Fi(Gr)}return _e};Ot({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(ue,Se){var _e=ue.parser,Je=ue.funcName,Lt=Se[0],tr=Se[1],Gr,cn=null,_n=null,li="auto";switch(Je){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":Gr=!0;break;case"\\\\atopfrac":Gr=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Gr=!1,cn="(",_n=")";break;case"\\\\bracefrac":Gr=!1,cn="\\{",_n="\\}";break;case"\\\\brackfrac":Gr=!1,cn="[",_n="]";break;default:throw new Error("Unrecognized genfrac command")}switch(Je){case"\\cfrac":case"\\dfrac":case"\\dbinom":li="display";break;case"\\tfrac":case"\\tbinom":li="text";break}return{type:"genfrac",mode:_e.mode,continued:Je==="\\cfrac",numer:Lt,denom:tr,hasBarLine:Gr,leftDelim:cn,rightDelim:_n,size:li,barSize:null}},htmlBuilder:en,mathmlBuilder:Un}),Ot({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(ue){var Se=ue.parser,_e=ue.funcName,Je=ue.token,Lt;switch(_e){case"\\over":Lt="\\frac";break;case"\\choose":Lt="\\binom";break;case"\\atop":Lt="\\\\atopfrac";break;case"\\brace":Lt="\\\\bracefrac";break;case"\\brack":Lt="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:Se.mode,replaceWith:Lt,token:Je}}});var si=["display","text","script","scriptscript"],ui=function(ue){var Se=null;return ue.length>0&&(Se=ue,Se=Se==="."?null:Se),Se};Ot({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(ue,Se){var _e=ue.parser,Je=Se[4],Lt=Se[5],tr=An(Se[0],"atom");tr&&(tr=Zr(Se[0],"open"));var Gr=tr?ui(tr.text):null,cn=An(Se[1],"atom");cn&&(cn=Zr(Se[1],"close"));var _n=cn?ui(cn.text):null,li=Rn(Se[2],"size"),wi,mi=null;li.isBlank?wi=!0:(mi=li.value,wi=mi.number>0);var Gi="auto",sa=An(Se[3],"ordgroup");if(sa){if(sa.body.length>0){var Ua=Rn(sa.body[0],"textord");Gi=si[Number(Ua.text)]}}else sa=Rn(Se[3],"textord"),Gi=si[Number(sa.text)];return{type:"genfrac",mode:_e.mode,numer:Je,denom:Lt,continued:!1,hasBarLine:wi,barSize:mi,leftDelim:Gr,rightDelim:_n,size:Gi}},htmlBuilder:en,mathmlBuilder:Un}),Ot({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(ue,Se){var _e=ue.parser,Je=ue.funcName,Lt=ue.token;return{type:"infix",mode:_e.mode,replaceWith:"\\\\abovefrac",size:Rn(Se[0],"size").value,token:Lt}}}),Ot({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(ue,Se){var _e=ue.parser,Je=ue.funcName,Lt=Se[0],tr=d(Rn(Se[1],"infix").size),Gr=Se[2],cn=tr.number>0;return{type:"genfrac",mode:_e.mode,numer:Lt,denom:Gr,continued:!1,hasBarLine:cn,barSize:tr,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:en,mathmlBuilder:Un});var oi=function(ue,Se){var _e=Se.style,Je,Lt,tr=An(ue,"supsub");tr?(Je=tr.sup?xi(tr.sup,Se.havingStyle(_e.sup()),Se):xi(tr.sub,Se.havingStyle(_e.sub()),Se),Lt=Rn(tr.base,"horizBrace")):Lt=Rn(ue,"horizBrace");var Gr=xi(Lt.base,Se.havingBaseStyle(z.DISPLAY)),cn=Tn.svgSpan(Lt,Se),_n;if(Lt.isOver?(_n=Rr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Gr},{type:"kern",size:.1},{type:"elem",elem:cn}]},Se),_n.children[0].children[0].children[1].classes.push("svg-align")):(_n=Rr.makeVList({positionType:"bottom",positionData:Gr.depth+.1+cn.height,children:[{type:"elem",elem:cn},{type:"kern",size:.1},{type:"elem",elem:Gr}]},Se),_n.children[0].children[0].children[0].classes.push("svg-align")),Je){var li=Rr.makeSpan(["mord",Lt.isOver?"mover":"munder"],[_n],Se);Lt.isOver?_n=Rr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:li},{type:"kern",size:.2},{type:"elem",elem:Je}]},Se):_n=Rr.makeVList({positionType:"bottom",positionData:li.depth+.2+Je.height+Je.depth,children:[{type:"elem",elem:Je},{type:"kern",size:.2},{type:"elem",elem:li}]},Se)}return Rr.makeSpan(["mord",Lt.isOver?"mover":"munder"],[_n],Se)},Ei=function(ue,Se){var _e=Tn.mathMLnode(ue.label);return new vi.MathNode(ue.isOver?"mover":"munder",[Or(ue.base,Se),_e])};Ot({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(ue,Se){var _e=ue.parser,Je=ue.funcName;return{type:"horizBrace",mode:_e.mode,label:Je,isOver:/^\\over/.test(Je),base:Se[0]}},htmlBuilder:oi,mathmlBuilder:Ei}),Ot({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(ue,Se){var _e=ue.parser,Je=Se[1],Lt=Rn(Se[0],"url").url;return _e.settings.isTrusted({command:"\\href",url:Lt})?{type:"href",mode:_e.mode,href:Lt,body:pr(Je)}:_e.formatUnsupportedCmd("\\href")},htmlBuilder:function(ue,Se){var _e=hn(ue.body,Se,!1);return Rr.makeAnchor(ue.href,[],_e,Se)},mathmlBuilder:function(ue,Se){var _e=aa(ue.body,Se);return _e instanceof ma||(_e=new ma("mrow",[_e])),_e.setAttribute("href",ue.href),_e}}),Ot({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(ue,Se){var _e=ue.parser,Je=Rn(Se[0],"url").url;if(!_e.settings.isTrusted({command:"\\url",url:Je}))return _e.formatUnsupportedCmd("\\url");for(var Lt=[],tr=0;tr<Je.length;tr++){var Gr=Je[tr];Gr==="~"&&(Gr="\\textasciitilde"),Lt.push({type:"textord",mode:"text",text:Gr})}var cn={type:"text",mode:_e.mode,font:"\\texttt",body:Lt};return{type:"href",mode:_e.mode,href:Je,body:pr(cn)}}}),Ot({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(ue,Se){var _e=ue.parser;return{type:"htmlmathml",mode:_e.mode,html:pr(Se[0]),mathml:pr(Se[1])}},htmlBuilder:function(ue,Se){var _e=hn(ue.html,Se,!1);return Rr.makeFragment(_e)},mathmlBuilder:function(ue,Se){return aa(ue.mathml,Se)}});var pi=function(ue){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(ue))return{number:+ue,unit:"bp"};var Se=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(ue);if(!Se)throw new u("Invalid size: '"+ue+"' in \\includegraphics");var _e={number:+(Se[1]+Se[2]),unit:Se[3]};if(!Yr(_e))throw new u("Invalid unit: '"+_e.unit+"' in \\includegraphics.");return _e};Ot({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(ue,Se,_e){var Je=ue.parser,Lt={number:0,unit:"em"},tr={number:.9,unit:"em"},Gr={number:0,unit:"em"},cn="";if(_e[0])for(var _n=Rn(_e[0],"raw").string,li=_n.split(","),wi=0;wi<li.length;wi++){var mi=li[wi].split("=");if(mi.length===2){var Gi=mi[1].trim();switch(mi[0].trim()){case"alt":cn=Gi;break;case"width":Lt=pi(Gi);break;case"height":tr=pi(Gi);break;case"totalheight":Gr=pi(Gi);break;default:throw new u("Invalid key: '"+mi[0]+"' in \\includegraphics.")}}}var sa=Rn(Se[0],"url").url;return cn===""&&(cn=sa,cn=cn.replace(/^.*[\\/]/,""),cn=cn.substring(0,cn.lastIndexOf("."))),Je.settings.isTrusted({command:"\\includegraphics",url:sa})?{type:"includegraphics",mode:Je.mode,alt:cn,width:Lt,height:tr,totalheight:Gr,src:sa}:Je.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(ue,Se){var _e=Mr(ue.height,Se),Je=0;ue.totalheight.number>0&&(Je=Mr(ue.totalheight,Se)-_e,Je=Number(Je.toFixed(2)));var Lt=0;ue.width.number>0&&(Lt=Mr(ue.width,Se));var tr={height:_e+Je+"em"};Lt>0&&(tr.width=Lt+"em"),Je>0&&(tr.verticalAlign=-Je+"em");var Gr=new fe(ue.src,ue.alt,tr);return Gr.height=_e,Gr.depth=Je,Gr},mathmlBuilder:function(ue,Se){var _e=new vi.MathNode("mglyph",[]);_e.setAttribute("alt",ue.alt);var Je=Mr(ue.height,Se),Lt=0;if(ue.totalheight.number>0&&(Lt=Mr(ue.totalheight,Se)-Je,Lt=Lt.toFixed(2),_e.setAttribute("valign","-"+Lt+"em")),_e.setAttribute("height",Je+Lt+"em"),ue.width.number>0){var tr=Mr(ue.width,Se);_e.setAttribute("width",tr+"em")}return _e.setAttribute("src",ue.src),_e}}),Ot({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ue,Se){var _e=ue.parser,Je=ue.funcName,Lt=Rn(Se[0],"size");if(_e.settings.strict){var tr=Je[1]==="m",Gr=Lt.value.unit==="mu";tr?(Gr||_e.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Je+" supports only mu units, "+("not "+Lt.value.unit+" units")),_e.mode!=="math"&&_e.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Je+" works only in math mode")):Gr&&_e.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Je+" doesn't support mu units")}return{type:"kern",mode:_e.mode,dimension:Lt.value}},htmlBuilder:function(ue,Se){return Rr.makeGlue(ue.dimension,Se)},mathmlBuilder:function(ue,Se){var _e=Mr(ue.dimension,Se);return new vi.SpaceNode(_e)}}),Ot({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(ue,Se){var _e=ue.parser,Je=ue.funcName,Lt=Se[0];return{type:"lap",mode:_e.mode,alignment:Je.slice(5),body:Lt}},htmlBuilder:function(ue,Se){var _e;ue.alignment==="clap"?(_e=Rr.makeSpan([],[xi(ue.body,Se)]),_e=Rr.makeSpan(["inner"],[_e],Se)):_e=Rr.makeSpan(["inner"],[xi(ue.body,Se)]);var Je=Rr.makeSpan(["fix"],[]),Lt=Rr.makeSpan([ue.alignment],[_e,Je],Se),tr=Rr.makeSpan(["strut"]);return tr.style.height=Lt.height+Lt.depth+"em",tr.style.verticalAlign=-Lt.depth+"em",Lt.children.unshift(tr),Lt=Rr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Lt}]},Se),Rr.makeSpan(["mord"],[Lt],Se)},mathmlBuilder:function(ue,Se){var _e=new vi.MathNode("mpadded",[Or(ue.body,Se)]);if(ue.alignment!=="rlap"){var Je=ue.alignment==="llap"?"-1":"-0.5";_e.setAttribute("lspace",Je+"width")}return _e.setAttribute("width","0px"),_e}}),Ot({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ue,Se){var _e=ue.funcName,Je=ue.parser,Lt=Je.mode;Je.switchMode("math");var tr=_e==="\\("?"\\)":"$",Gr=Je.parseExpression(!1,tr);return Je.expect(tr),Je.switchMode(Lt),{type:"styling",mode:Je.mode,style:"text",body:Gr}}}),Ot({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ue,Se){throw new u("Mismatched "+ue.funcName)}});var Ai=function(ue,Se){switch(Se.style.size){case z.DISPLAY.size:return ue.display;case z.TEXT.size:return ue.text;case z.SCRIPT.size:return ue.script;case z.SCRIPTSCRIPT.size:return ue.scriptscript;default:return ue.text}};Ot({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(ue,Se){var _e=ue.parser;return{type:"mathchoice",mode:_e.mode,display:pr(Se[0]),text:pr(Se[1]),script:pr(Se[2]),scriptscript:pr(Se[3])}},htmlBuilder:function(ue,Se){var _e=Ai(ue,Se),Je=hn(_e,Se,!1);return Rr.makeFragment(Je)},mathmlBuilder:function(ue,Se){var _e=Ai(ue,Se);return aa(_e,Se)}});var Oi=function(ue,Se,_e,Je,Lt,tr,Gr){ue=Rr.makeSpan([],[ue]);var cn,_n;if(Se){var li=xi(Se,Je.havingStyle(Lt.sup()),Je);_n={elem:li,kern:Math.max(Je.fontMetrics().bigOpSpacing1,Je.fontMetrics().bigOpSpacing3-li.depth)}}if(_e){var wi=xi(_e,Je.havingStyle(Lt.sub()),Je);cn={elem:wi,kern:Math.max(Je.fontMetrics().bigOpSpacing2,Je.fontMetrics().bigOpSpacing4-wi.height)}}var mi;if(_n&&cn){var Gi=Je.fontMetrics().bigOpSpacing5+cn.elem.height+cn.elem.depth+cn.kern+ue.depth+Gr;mi=Rr.makeVList({positionType:"bottom",positionData:Gi,children:[{type:"kern",size:Je.fontMetrics().bigOpSpacing5},{type:"elem",elem:cn.elem,marginLeft:-tr+"em"},{type:"kern",size:cn.kern},{type:"elem",elem:ue},{type:"kern",size:_n.kern},{type:"elem",elem:_n.elem,marginLeft:tr+"em"},{type:"kern",size:Je.fontMetrics().bigOpSpacing5}]},Je)}else if(cn){var sa=ue.height-Gr;mi=Rr.makeVList({positionType:"top",positionData:sa,children:[{type:"kern",size:Je.fontMetrics().bigOpSpacing5},{type:"elem",elem:cn.elem,marginLeft:-tr+"em"},{type:"kern",size:cn.kern},{type:"elem",elem:ue}]},Je)}else if(_n){var Ua=ue.depth+Gr;mi=Rr.makeVList({positionType:"bottom",positionData:Ua,children:[{type:"elem",elem:ue},{type:"kern",size:_n.kern},{type:"elem",elem:_n.elem,marginLeft:tr+"em"},{type:"kern",size:Je.fontMetrics().bigOpSpacing5}]},Je)}else return ue;return Rr.makeSpan(["mop","op-limits"],[mi],Je)},na=["\\smallint"],Hi=function(ue,Se){var _e,Je,Lt=!1,tr,Gr=An(ue,"supsub");Gr?(_e=Gr.sup,Je=Gr.sub,tr=Rn(Gr.base,"op"),Lt=!0):tr=Rn(ue,"op");var cn=Se.style,_n=!1;cn.size===z.DISPLAY.size&&tr.symbol&&!v.contains(na,tr.name)&&(_n=!0);var li;if(tr.symbol){var wi=_n?"Size2-Regular":"Size1-Regular",mi="";if((tr.name==="\\oiint"||tr.name==="\\oiiint")&&(mi=tr.name.substr(1),tr.name=mi==="oiint"?"\\iint":"\\iiint"),li=Rr.makeSymbol(tr.name,wi,"math",Se,["mop","op-symbol",_n?"large-op":"small-op"]),mi.length>0){var Gi=li.italic,sa=Rr.staticSvg(mi+"Size"+(_n?"2":"1"),Se);li=Rr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:li,shift:0},{type:"elem",elem:sa,shift:_n?.08:0}]},Se),tr.name="\\"+mi,li.classes.unshift("mop"),li.italic=Gi}}else if(tr.body){var Ua=hn(tr.body,Se,!0);Ua.length===1&&Ua[0]instanceof Ne?(li=Ua[0],li.classes[0]="mop"):li=Rr.makeSpan(["mop"],Rr.tryCombineChars(Ua),Se)}else{for(var no=[],Wo=1;Wo<tr.name.length;Wo++)no.push(Rr.mathsym(tr.name[Wo],tr.mode,Se));li=Rr.makeSpan(["mop"],no,Se)}var Zo=0,Bo=0;return(li instanceof Ne||tr.name==="\\oiint"||tr.name==="\\oiiint")&&!tr.suppressBaseShift&&(Zo=(li.height-li.depth)/2-Se.fontMetrics().axisHeight,Bo=li.italic),Lt?Oi(li,_e,Je,Se,cn,Bo,Zo):(Zo&&(li.style.position="relative",li.style.top=Zo+"em"),li)},fa=function(ue,Se){var _e;if(ue.symbol)_e=new ma("mo",[On(ue.name,ue.mode)]),v.contains(na,ue.name)&&_e.setAttribute("largeop","false");else if(ue.body)_e=new ma("mo",ea(ue.body,Se));else{_e=new ma("mi",[new ia(ue.name.slice(1))]);var Je=new ma("mo",[On("\u2061","text")]);ue.parentIsSupSub?_e=new ma("mo",[_e,Je]):_e=oa([_e,Je])}return _e},Xa={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};Ot({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:function(ue,Se){var _e=ue.parser,Je=ue.funcName,Lt=Je;return Lt.length===1&&(Lt=Xa[Lt]),{type:"op",mode:_e.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:Lt}},htmlBuilder:Hi,mathmlBuilder:fa}),Ot({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(ue,Se){var _e=ue.parser,Je=Se[0];return{type:"op",mode:_e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:pr(Je)}},htmlBuilder:Hi,mathmlBuilder:fa});var xa={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};Ot({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(ue){var Se=ue.parser,_e=ue.funcName;return{type:"op",mode:Se.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:_e}},htmlBuilder:Hi,mathmlBuilder:fa}),Ot({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(ue){var Se=ue.parser,_e=ue.funcName;return{type:"op",mode:Se.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:_e}},htmlBuilder:Hi,mathmlBuilder:fa}),Ot({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(ue){var Se=ue.parser,_e=ue.funcName,Je=_e;return Je.length===1&&(Je=xa[Je]),{type:"op",mode:Se.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:Je}},htmlBuilder:Hi,mathmlBuilder:fa});var wa=function(ue,Se){var _e,Je,Lt=!1,tr,Gr=An(ue,"supsub");Gr?(_e=Gr.sup,Je=Gr.sub,tr=Rn(Gr.base,"operatorname"),Lt=!0):tr=Rn(ue,"operatorname");var cn;if(tr.body.length>0){for(var _n=tr.body.map(function(Gi){var sa=Gi.text;return typeof sa=="string"?{type:"textord",mode:Gi.mode,text:sa}:Gi}),li=hn(_n,Se.withFont("mathrm"),!0),wi=0;wi<li.length;wi++){var mi=li[wi];mi instanceof Ne&&(mi.text=mi.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}cn=Rr.makeSpan(["mop"],li,Se)}else cn=Rr.makeSpan(["mop"],[],Se);return Lt?Oi(cn,_e,Je,Se,Se.style,0,0):cn},Da=function(ue,Se){for(var _e=ea(ue.body,Se.withFont("mathrm")),Je=!0,Lt=0;Lt<_e.length;Lt++){var tr=_e[Lt];if(!(tr instanceof vi.SpaceNode))if(tr instanceof vi.MathNode)switch(tr.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Gr=tr.children[0];tr.children.length===1&&Gr instanceof vi.TextNode?Gr.text=Gr.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):Je=!1;break}default:Je=!1}else Je=!1}if(Je){var cn=_e.map(function(wi){return wi.toText()}).join("");_e=[new vi.TextNode(cn)]}var _n=new vi.MathNode("mi",_e);_n.setAttribute("mathvariant","normal");var li=new vi.MathNode("mo",[On("\u2061","text")]);return ue.parentIsSupSub?new vi.MathNode("mo",[_n,li]):vi.newDocumentFragment([_n,li])};Ot({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(ue,Se){var _e=ue.parser,Je=ue.funcName,Lt=Se[0];return{type:"operatorname",mode:_e.mode,body:pr(Lt),alwaysHandleSupSub:Je==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:wa,mathmlBuilder:Da}),nr({type:"ordgroup",htmlBuilder:function(ue,Se){return ue.semisimple?Rr.makeFragment(hn(ue.body,Se,!1)):Rr.makeSpan(["mord"],hn(ue.body,Se,!0),Se)},mathmlBuilder:function(ue,Se){return aa(ue.body,Se,!0)}}),Ot({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(ue,Se){var _e=ue.parser,Je=Se[0];return{type:"overline",mode:_e.mode,body:Je}},htmlBuilder:function(ue,Se){var _e=xi(ue.body,Se.havingCrampedStyle()),Je=Rr.makeLineSpan("overline-line",Se),Lt=Se.fontMetrics().defaultRuleThickness,tr=Rr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:_e},{type:"kern",size:3*Lt},{type:"elem",elem:Je},{type:"kern",size:Lt}]},Se);return Rr.makeSpan(["mord","overline"],[tr],Se)},mathmlBuilder:function(ue,Se){var _e=new vi.MathNode("mo",[new vi.TextNode("\u203E")]);_e.setAttribute("stretchy","true");var Je=new vi.MathNode("mover",[Or(ue.body,Se),_e]);return Je.setAttribute("accent","true"),Je}}),Ot({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(ue,Se){var _e=ue.parser,Je=Se[0];return{type:"phantom",mode:_e.mode,body:pr(Je)}},htmlBuilder:function(ue,Se){var _e=hn(ue.body,Se.withPhantom(),!1);return Rr.makeFragment(_e)},mathmlBuilder:function(ue,Se){var _e=ea(ue.body,Se);return new vi.MathNode("mphantom",_e)}}),Ot({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ue,Se){var _e=ue.parser,Je=Se[0];return{type:"hphantom",mode:_e.mode,body:Je}},htmlBuilder:function(ue,Se){var _e=Rr.makeSpan([],[xi(ue.body,Se.withPhantom())]);if(_e.height=0,_e.depth=0,_e.children)for(var Je=0;Je<_e.children.length;Je++)_e.children[Je].height=0,_e.children[Je].depth=0;return _e=Rr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:_e}]},Se),Rr.makeSpan(["mord"],[_e],Se)},mathmlBuilder:function(ue,Se){var _e=ea(pr(ue.body),Se),Je=new vi.MathNode("mphantom",_e),Lt=new vi.MathNode("mpadded",[Je]);return Lt.setAttribute("height","0px"),Lt.setAttribute("depth","0px"),Lt}}),Ot({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ue,Se){var _e=ue.parser,Je=Se[0];return{type:"vphantom",mode:_e.mode,body:Je}},htmlBuilder:function(ue,Se){var _e=Rr.makeSpan(["inner"],[xi(ue.body,Se.withPhantom())]),Je=Rr.makeSpan(["fix"],[]);return Rr.makeSpan(["mord","rlap"],[_e,Je],Se)},mathmlBuilder:function(ue,Se){var _e=ea(pr(ue.body),Se),Je=new vi.MathNode("mphantom",_e),Lt=new vi.MathNode("mpadded",[Je]);return Lt.setAttribute("width","0px"),Lt}}),Ot({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(ue,Se){var _e=ue.parser,Je=Rn(Se[0],"size").value,Lt=Se[1];return{type:"raisebox",mode:_e.mode,dy:Je,body:Lt}},htmlBuilder:function(ue,Se){var _e=xi(ue.body,Se),Je=Mr(ue.dy,Se);return Rr.makeVList({positionType:"shift",positionData:-Je,children:[{type:"elem",elem:_e}]},Se)},mathmlBuilder:function(ue,Se){var _e=new vi.MathNode("mpadded",[Or(ue.body,Se)]),Je=ue.dy.number+ue.dy.unit;return _e.setAttribute("voffset",Je),_e}}),Ot({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(ue,Se,_e){var Je=ue.parser,Lt=_e[0],tr=Rn(Se[0],"size"),Gr=Rn(Se[1],"size");return{type:"rule",mode:Je.mode,shift:Lt&&Rn(Lt,"size").value,width:tr.value,height:Gr.value}},htmlBuilder:function(ue,Se){var _e=Rr.makeSpan(["mord","rule"],[],Se),Je=Mr(ue.width,Se),Lt=Mr(ue.height,Se),tr=ue.shift?Mr(ue.shift,Se):0;return _e.style.borderRightWidth=Je+"em",_e.style.borderTopWidth=Lt+"em",_e.style.bottom=tr+"em",_e.width=Je,_e.height=Lt+tr,_e.depth=-tr,_e.maxFontSize=Lt*1.125*Se.sizeMultiplier,_e},mathmlBuilder:function(ue,Se){var _e=Mr(ue.width,Se),Je=Mr(ue.height,Se),Lt=ue.shift?Mr(ue.shift,Se):0,tr=Se.color&&Se.getColor()||"black",Gr=new vi.MathNode("mspace");Gr.setAttribute("mathbackground",tr),Gr.setAttribute("width",_e+"em"),Gr.setAttribute("height",Je+"em");var cn=new vi.MathNode("mpadded",[Gr]);return Lt>=0?cn.setAttribute("height","+"+Lt+"em"):(cn.setAttribute("height",Lt+"em"),cn.setAttribute("depth","+"+-Lt+"em")),cn.setAttribute("voffset",Lt+"em"),cn}});function ja(It,ue,Se){for(var _e=hn(It,ue,!1),Je=ue.sizeMultiplier/Se.sizeMultiplier,Lt=0;Lt<_e.length;Lt++){var tr=_e[Lt].classes.indexOf("sizing");tr<0?Array.prototype.push.apply(_e[Lt].classes,ue.sizingClasses(Se)):_e[Lt].classes[tr+1]==="reset-size"+ue.size&&(_e[Lt].classes[tr+1]="reset-size"+Se.size),_e[Lt].height*=Je,_e[Lt].depth*=Je}return Rr.makeFragment(_e)}var ko=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],ro=function(ue,Se){var _e=Se.havingSize(ue.size);return ja(ue.body,_e,Se)};Ot({type:"sizing",names:ko,props:{numArgs:0,allowedInText:!0},handler:function(ue,Se){var _e=ue.breakOnTokenText,Je=ue.funcName,Lt=ue.parser,tr=Lt.parseExpression(!1,_e);return{type:"sizing",mode:Lt.mode,size:ko.indexOf(Je)+1,body:tr}},htmlBuilder:ro,mathmlBuilder:function(ue,Se){var _e=Se.havingSize(ue.size),Je=ea(ue.body,_e),Lt=new vi.MathNode("mstyle",Je);return Lt.setAttribute("mathsize",_e.sizeMultiplier+"em"),Lt}}),Ot({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(ue,Se,_e){var Je=ue.parser,Lt=!1,tr=!1,Gr=_e[0]&&Rn(_e[0],"ordgroup");if(Gr)for(var cn="",_n=0;_n<Gr.body.length;++_n){var li=Gr.body[_n];if(cn=li.text,cn==="t")Lt=!0;else if(cn==="b")tr=!0;else{Lt=!1,tr=!1;break}}else Lt=!0,tr=!0;var wi=Se[0];return{type:"smash",mode:Je.mode,body:wi,smashHeight:Lt,smashDepth:tr}},htmlBuilder:function(ue,Se){var _e=Rr.makeSpan([],[xi(ue.body,Se)]);if(!ue.smashHeight&&!ue.smashDepth)return _e;if(ue.smashHeight&&(_e.height=0,_e.children))for(var Je=0;Je<_e.children.length;Je++)_e.children[Je].height=0;if(ue.smashDepth&&(_e.depth=0,_e.children))for(var Lt=0;Lt<_e.children.length;Lt++)_e.children[Lt].depth=0;var tr=Rr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:_e}]},Se);return Rr.makeSpan(["mord"],[tr],Se)},mathmlBuilder:function(ue,Se){var _e=new vi.MathNode("mpadded",[Or(ue.body,Se)]);return ue.smashHeight&&_e.setAttribute("height","0px"),ue.smashDepth&&_e.setAttribute("depth","0px"),_e}}),Ot({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(ue,Se,_e){var Je=ue.parser,Lt=_e[0],tr=Se[0];return{type:"sqrt",mode:Je.mode,body:tr,index:Lt}},htmlBuilder:function(ue,Se){var _e=xi(ue.body,Se.havingCrampedStyle());_e.height===0&&(_e.height=Se.fontMetrics().xHeight),_e=Rr.wrapFragment(_e,Se);var Je=Se.fontMetrics(),Lt=Je.defaultRuleThickness,tr=Lt;Se.style.id<z.TEXT.id&&(tr=Se.fontMetrics().xHeight);var Gr=Lt+tr/4,cn=_e.height+_e.depth+Gr+Lt,_n=ao.sqrtImage(cn,Se),li=_n.span,wi=_n.ruleWidth,mi=_n.advanceWidth,Gi=li.height-wi;Gi>_e.height+_e.depth+Gr&&(Gr=(Gr+Gi-_e.height-_e.depth)/2);var sa=li.height-_e.height-Gr-wi;_e.style.paddingLeft=mi+"em";var Ua=Rr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:_e,wrapperClasses:["svg-align"]},{type:"kern",size:-(_e.height+sa)},{type:"elem",elem:li},{type:"kern",size:wi}]},Se);if(ue.index){var no=Se.havingStyle(z.SCRIPTSCRIPT),Wo=xi(ue.index,no,Se),Zo=.6*(Ua.height-Ua.depth),Bo=Rr.makeVList({positionType:"shift",positionData:-Zo,children:[{type:"elem",elem:Wo}]},Se),Es=Rr.makeSpan(["root"],[Bo]);return Rr.makeSpan(["mord","sqrt"],[Es,Ua],Se)}else return Rr.makeSpan(["mord","sqrt"],[Ua],Se)},mathmlBuilder:function(ue,Se){var _e=ue.body,Je=ue.index;return Je?new vi.MathNode("mroot",[Or(_e,Se),Or(Je,Se)]):new vi.MathNode("msqrt",[Or(_e,Se)])}});var pa={display:z.DISPLAY,text:z.TEXT,script:z.SCRIPT,scriptscript:z.SCRIPTSCRIPT};Ot({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(ue,Se){var _e=ue.breakOnTokenText,Je=ue.funcName,Lt=ue.parser,tr=Lt.parseExpression(!0,_e),Gr=Je.slice(1,Je.length-5);return{type:"styling",mode:Lt.mode,style:Gr,body:tr}},htmlBuilder:function(ue,Se){var _e=pa[ue.style],Je=Se.havingStyle(_e).withFont("");return ja(ue.body,Je,Se)},mathmlBuilder:function(ue,Se){var _e=pa[ue.style],Je=Se.havingStyle(_e),Lt=ea(ue.body,Je),tr=new vi.MathNode("mstyle",Lt),Gr={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},cn=Gr[ue.style];return tr.setAttribute("scriptlevel",cn[0]),tr.setAttribute("displaystyle",cn[1]),tr}});var Ea=function(ue,Se){var _e=ue.base;if(_e)if(_e.type==="op"){var Je=_e.limits&&(Se.style.size===z.DISPLAY.size||_e.alwaysHandleSupSub);return Je?Hi:null}else if(_e.type==="operatorname"){var Lt=_e.alwaysHandleSupSub&&(Se.style.size===z.DISPLAY.size||_e.limits);return Lt?wa:null}else{if(_e.type==="accent")return v.isCharacterBox(_e.base)?vn:null;if(_e.type==="horizBrace"){var tr=!ue.sub;return tr===_e.isOver?oi:null}else return null}else return null};nr({type:"supsub",htmlBuilder:function(ue,Se){var _e=Ea(ue,Se);if(_e)return _e(ue,Se);var Je=ue.base,Lt=ue.sup,tr=ue.sub,Gr=xi(Je,Se),cn,_n,li=Se.fontMetrics(),wi=0,mi=0,Gi=Je&&v.isCharacterBox(Je);if(Lt){var sa=Se.havingStyle(Se.style.sup());cn=xi(Lt,sa,Se),Gi||(wi=Gr.height-sa.fontMetrics().supDrop*sa.sizeMultiplier/Se.sizeMultiplier)}if(tr){var Ua=Se.havingStyle(Se.style.sub());_n=xi(tr,Ua,Se),Gi||(mi=Gr.depth+Ua.fontMetrics().subDrop*Ua.sizeMultiplier/Se.sizeMultiplier)}var no;Se.style===z.DISPLAY?no=li.sup1:Se.style.cramped?no=li.sup3:no=li.sup2;var Wo=Se.sizeMultiplier,Zo=.5/li.ptPerEm/Wo+"em",Bo=null;if(_n){var Es=ue.base&&ue.base.type==="op"&&ue.base.name&&(ue.base.name==="\\oiint"||ue.base.name==="\\oiiint");(Gr instanceof Ne||Es)&&(Bo=-Gr.italic+"em")}var As;if(cn&&_n){wi=Math.max(wi,no,cn.depth+.25*li.xHeight),mi=Math.max(mi,li.sub2);var $o=li.defaultRuleThickness,Do=4*$o;if(wi-cn.depth-(_n.height-mi)<Do){mi=Do-(wi-cn.depth)+_n.height;var vo=.8*li.xHeight-(wi-cn.depth);vo>0&&(wi+=vo,mi-=vo)}var Ms=[{type:"elem",elem:_n,shift:mi,marginRight:Zo,marginLeft:Bo},{type:"elem",elem:cn,shift:-wi,marginRight:Zo}];As=Rr.makeVList({positionType:"individualShift",children:Ms},Se)}else if(_n){mi=Math.max(mi,li.sub1,_n.height-.8*li.xHeight);var rl=[{type:"elem",elem:_n,marginLeft:Bo,marginRight:Zo}];As=Rr.makeVList({positionType:"shift",positionData:mi,children:rl},Se)}else if(cn)wi=Math.max(wi,no,cn.depth+.25*li.xHeight),As=Rr.makeVList({positionType:"shift",positionData:-wi,children:[{type:"elem",elem:cn,marginRight:Zo}]},Se);else throw new Error("supsub must have either sup or sub.");var gs=Yn(Gr,"right")||"mord";return Rr.makeSpan([gs],[Gr,Rr.makeSpan(["msupsub"],[As])],Se)},mathmlBuilder:function(ue,Se){var _e=!1,Je,Lt,tr=An(ue.base,"horizBrace");tr&&(Lt=!!ue.sup,Lt===tr.isOver&&(_e=!0,Je=tr.isOver)),ue.base&&(ue.base.type==="op"||ue.base.type==="operatorname")&&(ue.base.parentIsSupSub=!0);var Gr=[Or(ue.base,Se)];ue.sub&&Gr.push(Or(ue.sub,Se)),ue.sup&&Gr.push(Or(ue.sup,Se));var cn;if(_e)cn=Je?"mover":"munder";else if(ue.sub)if(ue.sup){var wi=ue.base;wi&&wi.type==="op"&&wi.limits&&Se.style===z.DISPLAY||wi&&wi.type==="operatorname"&&wi.alwaysHandleSupSub&&(Se.style===z.DISPLAY||wi.limits)?cn="munderover":cn="msubsup"}else{var li=ue.base;li&&li.type==="op"&&li.limits&&(Se.style===z.DISPLAY||li.alwaysHandleSupSub)||li&&li.type==="operatorname"&&li.alwaysHandleSupSub&&(li.limits||Se.style===z.DISPLAY)?cn="munder":cn="msub"}else{var _n=ue.base;_n&&_n.type==="op"&&_n.limits&&(Se.style===z.DISPLAY||_n.alwaysHandleSupSub)||_n&&_n.type==="operatorname"&&_n.alwaysHandleSupSub&&(_n.limits||Se.style===z.DISPLAY)?cn="mover":cn="msup"}var mi=new vi.MathNode(cn,Gr);return mi}}),nr({type:"atom",htmlBuilder:function(ue,Se){return Rr.mathsym(ue.text,ue.mode,Se,["m"+ue.family])},mathmlBuilder:function(ue,Se){var _e=new vi.MathNode("mo",[On(ue.text,ue.mode)]);if(ue.family==="bin"){var Je=ha(ue,Se);Je==="bold-italic"&&_e.setAttribute("mathvariant",Je)}else ue.family==="punct"?_e.setAttribute("separator","true"):(ue.family==="open"||ue.family==="close")&&_e.setAttribute("stretchy","false");return _e}});var Fa={mi:"italic",mn:"normal",mtext:"normal"};nr({type:"mathord",htmlBuilder:function(ue,Se){return Rr.makeOrd(ue,Se,"mathord")},mathmlBuilder:function(ue,Se){var _e=new vi.MathNode("mi",[On(ue.text,ue.mode,Se)]),Je=ha(ue,Se)||"italic";return Je!==Fa[_e.type]&&_e.setAttribute("mathvariant",Je),_e}}),nr({type:"textord",htmlBuilder:function(ue,Se){return Rr.makeOrd(ue,Se,"textord")},mathmlBuilder:function(ue,Se){var _e=On(ue.text,ue.mode,Se),Je=ha(ue,Se)||"normal",Lt;return ue.mode==="text"?Lt=new vi.MathNode("mtext",[_e]):/[0-9]/.test(ue.text)?Lt=new vi.MathNode("mn",[_e]):ue.text==="\\prime"?Lt=new vi.MathNode("mo",[_e]):Lt=new vi.MathNode("mi",[_e]),Je!==Fa[Lt.type]&&Lt.setAttribute("mathvariant",Je),Lt}});var Ka={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},lo={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};nr({type:"spacing",htmlBuilder:function(ue,Se){if(lo.hasOwnProperty(ue.text)){var _e=lo[ue.text].className||"";if(ue.mode==="text"){var Je=Rr.makeOrd(ue,Se,"textord");return Je.classes.push(_e),Je}else return Rr.makeSpan(["mspace",_e],[Rr.mathsym(ue.text,ue.mode,Se)],Se)}else{if(Ka.hasOwnProperty(ue.text))return Rr.makeSpan(["mspace",Ka[ue.text]],[],Se);throw new u('Unknown type of space "'+ue.text+'"')}},mathmlBuilder:function(ue,Se){var _e;if(lo.hasOwnProperty(ue.text))_e=new vi.MathNode("mtext",[new vi.TextNode("\xA0")]);else{if(Ka.hasOwnProperty(ue.text))return new vi.MathNode("mspace");throw new u('Unknown type of space "'+ue.text+'"')}return _e}});var so=function(){var ue=new vi.MathNode("mtd",[]);return ue.setAttribute("width","50%"),ue};nr({type:"tag",mathmlBuilder:function(ue,Se){var _e=new vi.MathNode("mtable",[new vi.MathNode("mtr",[so(),new vi.MathNode("mtd",[aa(ue.body,Se)]),so(),new vi.MathNode("mtd",[aa(ue.tag,Se)])])]);return _e.setAttribute("width","100%"),_e}});var Co={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Lo={"\\textbf":"textbf","\\textmd":"textmd"},is={"\\textit":"textit","\\textup":"textup"},cs=function(ue,Se){var _e=ue.font;return _e?Co[_e]?Se.withTextFontFamily(Co[_e]):Lo[_e]?Se.withTextFontWeight(Lo[_e]):Se.withTextFontShape(is[_e]):Se};Ot({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(ue,Se){var _e=ue.parser,Je=ue.funcName,Lt=Se[0];return{type:"text",mode:_e.mode,body:pr(Lt),font:Je}},htmlBuilder:function(ue,Se){var _e=cs(ue,Se),Je=hn(ue.body,_e,!0);return Rr.makeSpan(["mord","text"],Rr.tryCombineChars(Je),_e)},mathmlBuilder:function(ue,Se){var _e=cs(ue,Se);return aa(ue.body,_e)}}),Ot({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(ue,Se){var _e=ue.parser;return{type:"underline",mode:_e.mode,body:Se[0]}},htmlBuilder:function(ue,Se){var _e=xi(ue.body,Se),Je=Rr.makeLineSpan("underline-line",Se),Lt=Se.fontMetrics().defaultRuleThickness,tr=Rr.makeVList({positionType:"top",positionData:_e.height,children:[{type:"kern",size:Lt},{type:"elem",elem:Je},{type:"kern",size:3*Lt},{type:"elem",elem:_e}]},Se);return Rr.makeSpan(["mord","underline"],[tr],Se)},mathmlBuilder:function(ue,Se){var _e=new vi.MathNode("mo",[new vi.TextNode("\u203E")]);_e.setAttribute("stretchy","true");var Je=new vi.MathNode("munder",[Or(ue.body,Se),_e]);return Je.setAttribute("accentunder","true"),Je}}),Ot({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(ue,Se,_e){throw new u("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(ue,Se){for(var _e=Rs(ue),Je=[],Lt=Se.havingStyle(Se.style.text()),tr=0;tr<_e.length;tr++){var Gr=_e[tr];Gr==="~"&&(Gr="\\textasciitilde"),Je.push(Rr.makeSymbol(Gr,"Typewriter-Regular",ue.mode,Lt,["mord","texttt"]))}return Rr.makeSpan(["mord","text"].concat(Lt.sizingClasses(Se)),Rr.tryCombineChars(Je),Lt)},mathmlBuilder:function(ue,Se){var _e=new vi.TextNode(Rs(ue)),Je=new vi.MathNode("mtext",[_e]);return Je.setAttribute("mathvariant","monospace"),Je}});var Rs=function(ue){return ue.body.replace(/ /g,ue.star?"\u2423":"\xA0")},Ko=Dt,as=Ko,co=`[ \r
|
|
|
]`,Ao="\\\\[a-zA-Z@]+",$a="\\\\[^\uD800-\uDFFF]",ss=""+Ao+co+"*",Cs=new RegExp("^("+Ao+")"+co+"*$"),Fo="[\u0300-\u036F]",il=new RegExp(Fo+"+$"),Eo="("+co+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(Fo+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Fo+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+ss)+("|"+$a+")"),zo=function(){function It(Se,_e){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=Se,this.settings=_e,this.tokenRegex=new RegExp(Eo,"g"),this.catcodes={"%":14}}var ue=It.prototype;return ue.setCatcode=function(_e,Je){this.catcodes[_e]=Je},ue.lex=function(){var _e=this.input,Je=this.tokenRegex.lastIndex;if(Je===_e.length)return new f("EOF",new m(this,Je,Je));var Lt=this.tokenRegex.exec(_e);if(Lt===null||Lt.index!==Je)throw new u("Unexpected character: '"+_e[Je]+"'",new f(_e[Je],new m(this,Je,Je+1)));var tr=Lt[2]||" ";if(this.catcodes[tr]===14){var Gr=_e.indexOf(`
|
|
|
`,this.tokenRegex.lastIndex);return Gr===-1?(this.tokenRegex.lastIndex=_e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=Gr+1,this.lex()}var cn=tr.match(Cs);return cn&&(tr=cn[1]),new f(tr,new m(this,Je,this.tokenRegex.lastIndex))},It}(),Bs=function(){function It(Se,_e){Se===void 0&&(Se={}),_e===void 0&&(_e={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=_e,this.builtins=Se,this.undefStack=[]}var ue=It.prototype;return ue.beginGroup=function(){this.undefStack.push({})},ue.endGroup=function(){if(this.undefStack.length===0)throw new u("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var _e=this.undefStack.pop();for(var Je in _e)_e.hasOwnProperty(Je)&&(_e[Je]===void 0?delete this.current[Je]:this.current[Je]=_e[Je])},ue.has=function(_e){return this.current.hasOwnProperty(_e)||this.builtins.hasOwnProperty(_e)},ue.get=function(_e){return this.current.hasOwnProperty(_e)?this.current[_e]:this.builtins[_e]},ue.set=function(_e,Je,Lt){if(Lt===void 0&&(Lt=!1),Lt){for(var tr=0;tr<this.undefStack.length;tr++)delete this.undefStack[tr][_e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][_e]=Je)}else{var Gr=this.undefStack[this.undefStack.length-1];Gr&&!Gr.hasOwnProperty(_e)&&(Gr[_e]=this.current[_e])}this.current[_e]=Je},It}(),ms={},hs=ms;function gn(It,ue){ms[It]=ue}gn("\\@firstoftwo",function(It){var ue=It.consumeArgs(2);return{tokens:ue[0],numArgs:0}}),gn("\\@secondoftwo",function(It){var ue=It.consumeArgs(2);return{tokens:ue[1],numArgs:0}}),gn("\\@ifnextchar",function(It){var ue=It.consumeArgs(3),Se=It.future();return ue[0].length===1&&ue[0][0].text===Se.text?{tokens:ue[1],numArgs:0}:{tokens:ue[2],numArgs:0}}),gn("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),gn("\\TextOrMath",function(It){var ue=It.consumeArgs(2);return It.mode==="text"?{tokens:ue[0],numArgs:0}:{tokens:ue[1],numArgs:0}});var Ns={"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};gn("\\char",function(It){var ue=It.popToken(),Se,_e="";if(ue.text==="'")Se=8,ue=It.popToken();else if(ue.text==='"')Se=16,ue=It.popToken();else if(ue.text==="`")if(ue=It.popToken(),ue.text[0]==="\\")_e=ue.text.charCodeAt(1);else{if(ue.text==="EOF")throw new u("\\char` missing argument");_e=ue.text.charCodeAt(0)}else Se=10;if(Se){if(_e=Ns[ue.text],_e==null||_e>=Se)throw new u("Invalid base-"+Se+" digit "+ue.text);for(var Je;(Je=Ns[It.future().text])!=null&&Je<Se;)_e*=Se,_e+=Je,It.popToken()}return"\\@char{"+_e+"}"});var Ll=function(ue,Se){var _e=ue.consumeArgs(1)[0];if(_e.length!==1)throw new u("\\gdef's first argument must be a macro name");var Je=_e[0].text,Lt=0;for(_e=ue.consumeArgs(1)[0];_e.length===1&&_e[0].text==="#";){if(_e=ue.consumeArgs(1)[0],_e.length!==1)throw new u('Invalid argument number length "'+_e.length+'"');if(!/^[1-9]$/.test(_e[0].text))throw new u('Invalid argument number "'+_e[0].text+'"');if(Lt++,parseInt(_e[0].text)!==Lt)throw new u('Argument number "'+_e[0].text+'" out of order');_e=ue.consumeArgs(1)[0]}return ue.macros.set(Je,{tokens:_e,numArgs:Lt},Se),""};gn("\\gdef",function(It){return Ll(It,!0)}),gn("\\def",function(It){return Ll(It,!1)}),gn("\\global",function(It){var ue=It.consumeArgs(1)[0];if(ue.length!==1)throw new u("Invalid command after \\global");var Se=ue[0].text;if(Se==="\\def")return Ll(It,!0);throw new u("Invalid command '"+Se+"' after \\global")});var el=function(ue,Se,_e){var Je=ue.consumeArgs(1)[0];if(Je.length!==1)throw new u("\\newcommand's first argument must be a macro name");var Lt=Je[0].text,tr=ue.isDefined(Lt);if(tr&&!Se)throw new u("\\newcommand{"+Lt+"} attempting to redefine "+(Lt+"; use \\renewcommand"));if(!tr&&!_e)throw new u("\\renewcommand{"+Lt+"} when command "+Lt+" does not yet exist; use \\newcommand");var Gr=0;if(Je=ue.consumeArgs(1)[0],Je.length===1&&Je[0].text==="["){for(var cn="",_n=ue.expandNextToken();_n.text!=="]"&&_n.text!=="EOF";)cn+=_n.text,_n=ue.expandNextToken();if(!cn.match(/^\s*[0-9]+\s*$/))throw new u("Invalid number of arguments: "+cn);Gr=parseInt(cn),Je=ue.consumeArgs(1)[0]}return ue.macros.set(Lt,{tokens:Je,numArgs:Gr}),""};gn("\\newcommand",function(It){return el(It,!1,!0)}),gn("\\renewcommand",function(It){return el(It,!0,!1)}),gn("\\providecommand",function(It){return el(It,!0,!0)}),gn("\\bgroup","{"),gn("\\egroup","}"),gn("\\lq","`"),gn("\\rq","'"),gn("\\aa","\\r a"),gn("\\AA","\\r A"),gn("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),gn("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),gn("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),gn("\u212C","\\mathscr{B}"),gn("\u2130","\\mathscr{E}"),gn("\u2131","\\mathscr{F}"),gn("\u210B","\\mathscr{H}"),gn("\u2110","\\mathscr{I}"),gn("\u2112","\\mathscr{L}"),gn("\u2133","\\mathscr{M}"),gn("\u211B","\\mathscr{R}"),gn("\u212D","\\mathfrak{C}"),gn("\u210C","\\mathfrak{H}"),gn("\u2128","\\mathfrak{Z}"),gn("\\Bbbk","\\Bbb{k}"),gn("\xB7","\\cdotp"),gn("\\llap","\\mathllap{\\textrm{#1}}"),gn("\\rlap","\\mathrlap{\\textrm{#1}}"),gn("\\clap","\\mathclap{\\textrm{#1}}"),gn("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),gn("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),gn("\\ne","\\neq"),gn("\u2260","\\neq"),gn("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),gn("\u2209","\\notin"),gn("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),gn("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),gn("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),gn("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),gn("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),gn("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),gn("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),gn("\u27C2","\\perp"),gn("\u203C","\\mathclose{!\\mkern-0.8mu!}"),gn("\u220C","\\notni"),gn("\u231C","\\ulcorner"),gn("\u231D","\\urcorner"),gn("\u231E","\\llcorner"),gn("\u231F","\\lrcorner"),gn("\xA9","\\copyright"),gn("\xAE","\\textregistered"),gn("\uFE0F","\\textregistered"),gn("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),gn("\u22EE","\\vdots"),gn("\\varGamma","\\mathit{\\Gamma}"),gn("\\varDelta","\\mathit{\\Delta}"),gn("\\varTheta","\\mathit{\\Theta}"),gn("\\varLambda","\\mathit{\\Lambda}"),gn("\\varXi","\\mathit{\\Xi}"),gn("\\varPi","\\mathit{\\Pi}"),gn("\\varSigma","\\mathit{\\Sigma}"),gn("\\varUpsilon","\\mathit{\\Upsilon}"),gn("\\varPhi","\\mathit{\\Phi}"),gn("\\varPsi","\\mathit{\\Psi}"),gn("\\varOmega","\\mathit{\\Omega}"),gn("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),gn("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),gn("\\boxed","\\fbox{$\\displaystyle{#1}$}"),gn("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),gn("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),gn("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Gs={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};gn("\\dots",function(It){var ue="\\dotso",Se=It.expandAfterFuture().text;return Se in Gs?ue=Gs[Se]:Se.substr(0,4)==="\\not"?ue="\\dotsb":Se in Xe.math&&(v.contains(["bin","rel"],Xe.math[Se].group)&&(ue="\\dotsb")),ue});var ds={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};gn("\\dotso",function(It){var ue=It.future().text;return ue in ds?"\\ldots\\,":"\\ldots"}),gn("\\dotsc",function(It){var ue=It.future().text;return ue in ds&&ue!==","?"\\ldots\\,":"\\ldots"}),gn("\\cdots",function(It){var ue=It.future().text;return ue in ds?"\\@cdots\\,":"\\@cdots"}),gn("\\dotsb","\\cdots"),gn("\\dotsm","\\cdots"),gn("\\dotsi","\\!\\cdots"),gn("\\dotsx","\\ldots\\,"),gn("\\DOTSI","\\relax"),gn("\\DOTSB","\\relax"),gn("\\DOTSX","\\relax"),gn("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),gn("\\,","\\tmspace+{3mu}{.1667em}"),gn("\\thinspace","\\,"),gn("\\>","\\mskip{4mu}"),gn("\\:","\\tmspace+{4mu}{.2222em}"),gn("\\medspace","\\:"),gn("\\;","\\tmspace+{5mu}{.2777em}"),gn("\\thickspace","\\;"),gn("\\!","\\tmspace-{3mu}{.1667em}"),gn("\\negthinspace","\\!"),gn("\\negmedspace","\\tmspace-{4mu}{.2222em}"),gn("\\negthickspace","\\tmspace-{5mu}{.277em}"),gn("\\enspace","\\kern.5em "),gn("\\enskip","\\hskip.5em\\relax"),gn("\\quad","\\hskip1em\\relax"),gn("\\qquad","\\hskip2em\\relax"),gn("\\tag","\\@ifstar\\tag@literal\\tag@paren"),gn("\\tag@paren","\\tag@literal{({#1})}"),gn("\\tag@literal",function(It){if(It.macros.get("\\df@tag"))throw new u("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),gn("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),gn("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),gn("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),gn("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),gn("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),gn("\\\\","\\newline"),gn("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var ks=At["Main-Regular"]["T".charCodeAt(0)][1]-.7*At["Main-Regular"]["A".charCodeAt(0)][1]+"em";gn("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+ks+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),gn("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+ks+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),gn("\\hspace","\\@ifstar\\@hspacer\\@hspace"),gn("\\@hspace","\\hskip #1\\relax"),gn("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),gn("\\ordinarycolon",":"),gn("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),gn("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),gn("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),gn("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),gn("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),gn("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),gn("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),gn("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),gn("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),gn("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),gn("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),gn("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),gn("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),gn("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),gn("\u2237","\\dblcolon"),gn("\u2239","\\eqcolon"),gn("\u2254","\\coloneqq"),gn("\u2255","\\eqqcolon"),gn("\u2A74","\\Coloneqq"),gn("\\ratio","\\vcentcolon"),gn("\\coloncolon","\\dblcolon"),gn("\\colonequals","\\coloneqq"),gn("\\coloncolonequals","\\Coloneqq"),gn("\\equalscolon","\\eqqcolon"),gn("\\equalscoloncolon","\\Eqqcolon"),gn("\\colonminus","\\coloneq"),gn("\\coloncolonminus","\\Coloneq"),gn("\\minuscolon","\\eqcolon"),gn("\\minuscoloncolon","\\Eqcolon"),gn("\\coloncolonapprox","\\Colonapprox"),gn("\\coloncolonsim","\\Colonsim"),gn("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),gn("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),gn("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),gn("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),gn("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),gn("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),gn("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),gn("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),gn("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),gn("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),gn("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),gn("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),gn("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),gn("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),gn("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),gn("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),gn("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),gn("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),gn("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),gn("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),gn("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),gn("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),gn("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),gn("\u27E6","\\llbracket"),gn("\u27E7","\\rrbracket"),gn("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),gn("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),gn("\u2983","\\lBrace"),gn("\u2984","\\rBrace"),gn("\\darr","\\downarrow"),gn("\\dArr","\\Downarrow"),gn("\\Darr","\\Downarrow"),gn("\\lang","\\langle"),gn("\\rang","\\rangle"),gn("\\uarr","\\uparrow"),gn("\\uArr","\\Uparrow"),gn("\\Uarr","\\Uparrow"),gn("\\N","\\mathbb{N}"),gn("\\R","\\mathbb{R}"),gn("\\Z","\\mathbb{Z}"),gn("\\alef","\\aleph"),gn("\\alefsym","\\aleph"),gn("\\Alpha","\\mathrm{A}"),gn("\\Beta","\\mathrm{B}"),gn("\\bull","\\bullet"),gn("\\Chi","\\mathrm{X}"),gn("\\clubs","\\clubsuit"),gn("\\cnums","\\mathbb{C}"),gn("\\Complex","\\mathbb{C}"),gn("\\Dagger","\\ddagger"),gn("\\diamonds","\\diamondsuit"),gn("\\empty","\\emptyset"),gn("\\Epsilon","\\mathrm{E}"),gn("\\Eta","\\mathrm{H}"),gn("\\exist","\\exists"),gn("\\harr","\\leftrightarrow"),gn("\\hArr","\\Leftrightarrow"),gn("\\Harr","\\Leftrightarrow"),gn("\\hearts","\\heartsuit"),gn("\\image","\\Im"),gn("\\infin","\\infty"),gn("\\Iota","\\mathrm{I}"),gn("\\isin","\\in"),gn("\\Kappa","\\mathrm{K}"),gn("\\larr","\\leftarrow"),gn("\\lArr","\\Leftarrow"),gn("\\Larr","\\Leftarrow"),gn("\\lrarr","\\leftrightarrow"),gn("\\lrArr","\\Leftrightarrow"),gn("\\Lrarr","\\Leftrightarrow"),gn("\\Mu","\\mathrm{M}"),gn("\\natnums","\\mathbb{N}"),gn("\\Nu","\\mathrm{N}"),gn("\\Omicron","\\mathrm{O}"),gn("\\plusmn","\\pm"),gn("\\rarr","\\rightarrow"),gn("\\rArr","\\Rightarrow"),gn("\\Rarr","\\Rightarrow"),gn("\\real","\\Re"),gn("\\reals","\\mathbb{R}"),gn("\\Reals","\\mathbb{R}"),gn("\\Rho","\\mathrm{P}"),gn("\\sdot","\\cdot"),gn("\\sect","\\S"),gn("\\spades","\\spadesuit"),gn("\\sub","\\subset"),gn("\\sube","\\subseteq"),gn("\\supe","\\supseteq"),gn("\\Tau","\\mathrm{T}"),gn("\\thetasym","\\vartheta"),gn("\\weierp","\\wp"),gn("\\Zeta","\\mathrm{Z}"),gn("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),gn("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),gn("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),gn("\\blue","\\textcolor{##6495ed}{#1}"),gn("\\orange","\\textcolor{##ffa500}{#1}"),gn("\\pink","\\textcolor{##ff00af}{#1}"),gn("\\red","\\textcolor{##df0030}{#1}"),gn("\\green","\\textcolor{##28ae7b}{#1}"),gn("\\gray","\\textcolor{gray}{#1}"),gn("\\purple","\\textcolor{##9d38bd}{#1}"),gn("\\blueA","\\textcolor{##ccfaff}{#1}"),gn("\\blueB","\\textcolor{##80f6ff}{#1}"),gn("\\blueC","\\textcolor{##63d9ea}{#1}"),gn("\\blueD","\\textcolor{##11accd}{#1}"),gn("\\blueE","\\textcolor{##0c7f99}{#1}"),gn("\\tealA","\\textcolor{##94fff5}{#1}"),gn("\\tealB","\\textcolor{##26edd5}{#1}"),gn("\\tealC","\\textcolor{##01d1c1}{#1}"),gn("\\tealD","\\textcolor{##01a995}{#1}"),gn("\\tealE","\\textcolor{##208170}{#1}"),gn("\\greenA","\\textcolor{##b6ffb0}{#1}"),gn("\\greenB","\\textcolor{##8af281}{#1}"),gn("\\greenC","\\textcolor{##74cf70}{#1}"),gn("\\greenD","\\textcolor{##1fab54}{#1}"),gn("\\greenE","\\textcolor{##0d923f}{#1}"),gn("\\goldA","\\textcolor{##ffd0a9}{#1}"),gn("\\goldB","\\textcolor{##ffbb71}{#1}"),gn("\\goldC","\\textcolor{##ff9c39}{#1}"),gn("\\goldD","\\textcolor{##e07d10}{#1}"),gn("\\goldE","\\textcolor{##a75a05}{#1}"),gn("\\redA","\\textcolor{##fca9a9}{#1}"),gn("\\redB","\\textcolor{##ff8482}{#1}"),gn("\\redC","\\textcolor{##f9685d}{#1}"),gn("\\redD","\\textcolor{##e84d39}{#1}"),gn("\\redE","\\textcolor{##bc2612}{#1}"),gn("\\maroonA","\\textcolor{##ffbde0}{#1}"),gn("\\maroonB","\\textcolor{##ff92c6}{#1}"),gn("\\maroonC","\\textcolor{##ed5fa6}{#1}"),gn("\\maroonD","\\textcolor{##ca337c}{#1}"),gn("\\maroonE","\\textcolor{##9e034e}{#1}"),gn("\\purpleA","\\textcolor{##ddd7ff}{#1}"),gn("\\purpleB","\\textcolor{##c6b9fc}{#1}"),gn("\\purpleC","\\textcolor{##aa87ff}{#1}"),gn("\\purpleD","\\textcolor{##7854ab}{#1}"),gn("\\purpleE","\\textcolor{##543b78}{#1}"),gn("\\mintA","\\textcolor{##f5f9e8}{#1}"),gn("\\mintB","\\textcolor{##edf2df}{#1}"),gn("\\mintC","\\textcolor{##e0e5cc}{#1}"),gn("\\grayA","\\textcolor{##f6f7f7}{#1}"),gn("\\grayB","\\textcolor{##f0f1f2}{#1}"),gn("\\grayC","\\textcolor{##e3e5e6}{#1}"),gn("\\grayD","\\textcolor{##d6d8da}{#1}"),gn("\\grayE","\\textcolor{##babec2}{#1}"),gn("\\grayF","\\textcolor{##888d93}{#1}"),gn("\\grayG","\\textcolor{##626569}{#1}"),gn("\\grayH","\\textcolor{##3b3e40}{#1}"),gn("\\grayI","\\textcolor{##21242c}{#1}"),gn("\\kaBlue","\\textcolor{##314453}{#1}"),gn("\\kaGreen","\\textcolor{##71B307}{#1}");var Qs={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},tl=function(){function It(Se,_e,Je){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=_e,this.expansionCount=0,this.feed(Se),this.macros=new Bs(hs,_e.macros),this.mode=Je,this.stack=[]}var ue=It.prototype;return ue.feed=function(_e){this.lexer=new zo(_e,this.settings)},ue.switchMode=function(_e){this.mode=_e},ue.beginGroup=function(){this.macros.beginGroup()},ue.endGroup=function(){this.macros.endGroup()},ue.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},ue.popToken=function(){return this.future(),this.stack.pop()},ue.pushToken=function(_e){this.stack.push(_e)},ue.pushTokens=function(_e){var Je;(Je=this.stack).push.apply(Je,_e)},ue.consumeSpaces=function(){for(;;){var _e=this.future();if(_e.text===" ")this.stack.pop();else break}},ue.consumeArgs=function(_e){for(var Je=[],Lt=0;Lt<_e;++Lt){this.consumeSpaces();var tr=this.popToken();if(tr.text==="{"){for(var Gr=[],cn=1;cn!==0;){var _n=this.popToken();if(Gr.push(_n),_n.text==="{")++cn;else if(_n.text==="}")--cn;else if(_n.text==="EOF")throw new u("End of input in macro argument",tr)}Gr.pop(),Gr.reverse(),Je[Lt]=Gr}else{if(tr.text==="EOF")throw new u("End of input expecting macro argument");Je[Lt]=[tr]}}return Je},ue.expandOnce=function(){var _e=this.popToken(),Je=_e.text,Lt=this._getExpansion(Je);if(Lt==null)return this.pushToken(_e),_e;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new u("Too many expansions: infinite loop or need to increase maxExpand setting");var tr=Lt.tokens;if(Lt.numArgs){var Gr=this.consumeArgs(Lt.numArgs);tr=tr.slice();for(var cn=tr.length-1;cn>=0;--cn){var _n=tr[cn];if(_n.text==="#"){if(cn===0)throw new u("Incomplete placeholder at end of macro body",_n);if(_n=tr[--cn],_n.text==="#")tr.splice(cn+1,1);else if(/^[1-9]$/.test(_n.text)){var li;(li=tr).splice.apply(li,[cn,2].concat(Gr[+_n.text-1]))}else throw new u("Not a valid argument number",_n)}}}return this.pushTokens(tr),tr},ue.expandAfterFuture=function(){return this.expandOnce(),this.future()},ue.expandNextToken=function(){for(;;){var _e=this.expandOnce();if(_e instanceof f)if(_e.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},ue.expandMacro=function(_e){if(!this.macros.get(_e))return;var Je=[],Lt=this.stack.length;for(this.pushToken(new f(_e));this.stack.length>Lt;){var tr=this.expandOnce();tr instanceof f&&Je.push(this.stack.pop())}return Je},ue.expandMacroAsText=function(_e){var Je=this.expandMacro(_e);return Je&&Je.map(function(Lt){return Lt.text}).join("")},ue._getExpansion=function(_e){var Je=this.macros.get(_e);if(Je==null)return Je;var Lt=typeof Je=="function"?Je(this):Je;if(typeof Lt=="string"){var tr=0;if(Lt.indexOf("#")!==-1)for(var Gr=Lt.replace(/##/g,"");Gr.indexOf("#"+(tr+1))!==-1;)++tr;for(var cn=new zo(Lt,this.settings),_n=[],li=cn.lex();li.text!=="EOF";)_n.push(li),li=cn.lex();_n.reverse();var wi={tokens:_n,numArgs:tr};return wi}return Lt},ue.isDefined=function(_e){return this.macros.has(_e)||as.hasOwnProperty(_e)||Xe.math.hasOwnProperty(_e)||Xe.text.hasOwnProperty(_e)||Qs.hasOwnProperty(_e)},It}(),xs={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"}},Us={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u010F:"d\u030C",\u1E0B:"d\u0307",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u013A:"l\u0301",\u013E:"l\u030C",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u010E:"D\u030C",\u1E0A:"D\u0307",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0139:"L\u0301",\u013D:"L\u030C",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u0164:"T\u030C",\u1E6A:"T\u0307",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},al=function(){function It(Se,_e){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new tl(Se,_e,this.mode),this.settings=_e,this.leftrightDepth=0}var ue=It.prototype;return ue.expect=function(_e,Je){if(Je===void 0&&(Je=!0),this.fetch().text!==_e)throw new u("Expected '"+_e+"', got '"+this.fetch().text+"'",this.fetch());Je&&this.consume()},ue.consume=function(){this.nextToken=null},ue.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},ue.switchMode=function(_e){this.mode=_e,this.gullet.switchMode(_e)},ue.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var _e=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),_e},ue.parseExpression=function(_e,Je){for(var Lt=[];;){this.mode==="math"&&this.consumeSpaces();var tr=this.fetch();if(It.endOfExpression.indexOf(tr.text)!==-1)break;if(Je&&tr.text===Je)break;if(_e&&as[tr.text]&&as[tr.text].infix)break;var Gr=this.parseAtom(Je);if(!Gr)break;Lt.push(Gr)}return this.mode==="text"&&this.formLigatures(Lt),this.handleInfixNodes(Lt)},ue.handleInfixNodes=function(_e){for(var Je=-1,Lt,tr=0;tr<_e.length;tr++){var Gr=An(_e[tr],"infix");if(Gr){if(Je!==-1)throw new u("only one infix operator per group",Gr.token);Je=tr,Lt=Gr.replaceWith}}if(Je!==-1&&Lt){var cn,_n,li=_e.slice(0,Je),wi=_e.slice(Je+1);li.length===1&&li[0].type==="ordgroup"?cn=li[0]:cn={type:"ordgroup",mode:this.mode,body:li},wi.length===1&&wi[0].type==="ordgroup"?_n=wi[0]:_n={type:"ordgroup",mode:this.mode,body:wi};var mi;return Lt==="\\\\abovefrac"?mi=this.callFunction(Lt,[cn,_e[Je],_n],[]):mi=this.callFunction(Lt,[cn,_n],[]),[mi]}else return _e},ue.handleSupSubscript=function(_e){var Je=this.fetch(),Lt=Je.text;this.consume();var tr=this.parseGroup(_e,!1,It.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!tr)throw new u("Expected group after '"+Lt+"'",Je);return tr},ue.formatUnsupportedCmd=function(_e){for(var Je=[],Lt=0;Lt<_e.length;Lt++)Je.push({type:"textord",mode:"text",text:_e[Lt]});var tr={type:"text",mode:this.mode,body:Je},Gr={type:"color",mode:this.mode,color:this.settings.errorColor,body:[tr]};return Gr},ue.parseAtom=function(_e){var Je=this.parseGroup("atom",!1,null,_e);if(this.mode==="text")return Je;for(var Lt,tr;;){this.consumeSpaces();var Gr=this.fetch();if(Gr.text==="\\limits"||Gr.text==="\\nolimits"){var cn=An(Je,"op");if(cn){var _n=Gr.text==="\\limits";cn.limits=_n,cn.alwaysHandleSupSub=!0}else if(cn=An(Je,"operatorname"),cn&&cn.alwaysHandleSupSub){var li=Gr.text==="\\limits";cn.limits=li}else throw new u("Limit controls must follow a math operator",Gr);this.consume()}else if(Gr.text==="^"){if(Lt)throw new u("Double superscript",Gr);Lt=this.handleSupSubscript("superscript")}else if(Gr.text==="_"){if(tr)throw new u("Double subscript",Gr);tr=this.handleSupSubscript("subscript")}else if(Gr.text==="'"){if(Lt)throw new u("Double superscript",Gr);var wi={type:"textord",mode:this.mode,text:"\\prime"},mi=[wi];for(this.consume();this.fetch().text==="'";)mi.push(wi),this.consume();this.fetch().text==="^"&&mi.push(this.handleSupSubscript("superscript")),Lt={type:"ordgroup",mode:this.mode,body:mi}}else break}return Lt||tr?{type:"supsub",mode:this.mode,base:Je,sup:Lt,sub:tr}:Je},ue.parseFunction=function(_e,Je,Lt){var tr=this.fetch(),Gr=tr.text,cn=as[Gr];if(!cn)return null;if(this.consume(),Lt!=null&&cn.greediness<=Lt)throw new u("Got function '"+Gr+"' with no arguments"+(Je?" as "+Je:""),tr);if(this.mode==="text"&&!cn.allowedInText)throw new u("Can't use function '"+Gr+"' in text mode",tr);if(this.mode==="math"&&cn.allowedInMath===!1)throw new u("Can't use function '"+Gr+"' in math mode",tr);var _n=this.parseArguments(Gr,cn),li=_n.args,wi=_n.optArgs;return this.callFunction(Gr,li,wi,tr,_e)},ue.callFunction=function(_e,Je,Lt,tr,Gr){var cn={funcName:_e,parser:this,token:tr,breakOnTokenText:Gr},_n=as[_e];if(_n&&_n.handler)return _n.handler(cn,Je,Lt);throw new u("No function handler for "+_e)},ue.parseArguments=function(_e,Je){var Lt=Je.numArgs+Je.numOptionalArgs;if(Lt===0)return{args:[],optArgs:[]};for(var tr=Je.greediness,Gr=[],cn=[],_n=0;_n<Lt;_n++){var li=Je.argTypes&&Je.argTypes[_n],wi=_n<Je.numOptionalArgs,mi=_n>0&&!wi||_n===0&&!wi&&this.mode==="math",Gi=this.parseGroupOfType("argument to '"+_e+"'",li,wi,tr,mi);if(!Gi){if(wi){cn.push(null);continue}throw new u("Expected group after '"+_e+"'",this.fetch())}(wi?cn:Gr).push(Gi)}return{args:Gr,optArgs:cn}},ue.parseGroupOfType=function(_e,Je,Lt,tr,Gr){switch(Je){case"color":return Gr&&this.consumeSpaces(),this.parseColorGroup(Lt);case"size":return Gr&&this.consumeSpaces(),this.parseSizeGroup(Lt);case"url":return this.parseUrlGroup(Lt,Gr);case"math":case"text":return this.parseGroup(_e,Lt,tr,void 0,Je,Gr);case"hbox":{var cn=this.parseGroup(_e,Lt,tr,void 0,"text",Gr);if(!cn)return cn;var _n={type:"styling",mode:cn.mode,body:[cn],style:"text"};return _n}case"raw":{if(Gr&&this.consumeSpaces(),Lt&&this.fetch().text==="{")return null;var li=this.parseStringGroup("raw",Lt,!0);if(li)return{type:"raw",mode:"text",string:li.text};throw new u("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(_e,Lt,tr,void 0,void 0,Gr);default:throw new u("Unknown group type as "+_e,this.fetch())}},ue.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},ue.parseStringGroup=function(_e,Je,Lt){var tr=Je?"[":"{",Gr=Je?"]":"}",cn=this.fetch();if(cn.text!==tr){if(Je)return null;if(Lt&&cn.text!=="EOF"&&/[^{}[\]]/.test(cn.text))return this.consume(),cn}var _n=this.mode;this.mode="text",this.expect(tr);for(var li="",wi=this.fetch(),mi=0,Gi=wi,sa;(sa=this.fetch()).text!==Gr||Lt&&mi>0;){switch(sa.text){case"EOF":throw new u("Unexpected end of input in "+_e,wi.range(Gi,li));case tr:mi++;break;case Gr:mi--;break}Gi=sa,li+=Gi.text,this.consume()}return this.expect(Gr),this.mode=_n,wi.range(Gi,li)},ue.parseRegexGroup=function(_e,Je){var Lt=this.mode;this.mode="text";for(var tr=this.fetch(),Gr=tr,cn="",_n;(_n=this.fetch()).text!=="EOF"&&_e.test(cn+_n.text);)Gr=_n,cn+=Gr.text,this.consume();if(cn==="")throw new u("Invalid "+Je+": '"+tr.text+"'",tr);return this.mode=Lt,tr.range(Gr,cn)},ue.parseColorGroup=function(_e){var Je=this.parseStringGroup("color",_e);if(!Je)return null;var Lt=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(Je.text);if(!Lt)throw new u("Invalid color: '"+Je.text+"'",Je);var tr=Lt[0];return/^[0-9a-f]{6}$/i.test(tr)&&(tr="#"+tr),{type:"color-token",mode:this.mode,color:tr}},ue.parseSizeGroup=function(_e){var Je,Lt=!1;if(!_e&&this.fetch().text!=="{"?Je=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):Je=this.parseStringGroup("size",_e),!Je)return null;!_e&&Je.text.length===0&&(Je.text="0pt",Lt=!0);var tr=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(Je.text);if(!tr)throw new u("Invalid size: '"+Je.text+"'",Je);var Gr={number:+(tr[1]+tr[2]),unit:tr[3]};if(!Yr(Gr))throw new u("Invalid unit: '"+Gr.unit+"'",Je);return{type:"size",mode:this.mode,value:Gr,isBlank:Lt}},ue.parseUrlGroup=function(_e,Je){this.gullet.lexer.setCatcode("%",13);var Lt=this.parseStringGroup("url",_e,!0);if(this.gullet.lexer.setCatcode("%",14),!Lt)return null;var tr=Lt.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:tr}},ue.parseGroup=function(_e,Je,Lt,tr,Gr,cn){var _n=this.mode;Gr&&this.switchMode(Gr),cn&&this.consumeSpaces();var li=this.fetch(),wi=li.text,mi;if(Je?wi==="[":wi==="{"||wi==="\\begingroup"){this.consume();var Gi=It.endOfGroup[wi];this.gullet.beginGroup();var sa=this.parseExpression(!1,Gi),Ua=this.fetch();this.expect(Gi),this.gullet.endGroup(),mi={type:"ordgroup",mode:this.mode,loc:m.range(li,Ua),body:sa,semisimple:wi==="\\begingroup"||void 0}}else if(Je)mi=null;else if(mi=this.parseFunction(tr,_e,Lt)||this.parseSymbol(),mi==null&&wi[0]==="\\"&&!Qs.hasOwnProperty(wi)){if(this.settings.throwOnError)throw new u("Undefined control sequence: "+wi,li);mi=this.formatUnsupportedCmd(wi),this.consume()}return Gr&&this.switchMode(_n),mi},ue.formLigatures=function(_e){for(var Je=_e.length-1,Lt=0;Lt<Je;++Lt){var tr=_e[Lt],Gr=tr.text;Gr==="-"&&_e[Lt+1].text==="-"&&(Lt+1<Je&&_e[Lt+2].text==="-"?(_e.splice(Lt,3,{type:"textord",mode:"text",loc:m.range(tr,_e[Lt+2]),text:"---"}),Je-=2):(_e.splice(Lt,2,{type:"textord",mode:"text",loc:m.range(tr,_e[Lt+1]),text:"--"}),Je-=1)),(Gr==="'"||Gr==="`")&&_e[Lt+1].text===Gr&&(_e.splice(Lt,2,{type:"textord",mode:"text",loc:m.range(tr,_e[Lt+1]),text:Gr+Gr}),Je-=1)}},ue.parseSymbol=function(){var _e=this.fetch(),Je=_e.text;if(/^\\verb[^a-zA-Z]/.test(Je)){this.consume();var Lt=Je.slice(5),tr=Lt.charAt(0)==="*";if(tr&&(Lt=Lt.slice(1)),Lt.length<2||Lt.charAt(0)!==Lt.slice(-1))throw new u(`\\verb assertion failed --
|
|
|
please report what input caused this bug`);return Lt=Lt.slice(1,-1),{type:"verb",mode:"text",body:Lt,star:tr}}Us.hasOwnProperty(Je[0])&&!Xe[this.mode][Je[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+Je[0]+'" used in math mode',_e),Je=Us[Je[0]]+Je.substr(1));var Gr=il.exec(Je);Gr&&(Je=Je.substring(0,Gr.index),Je==="i"?Je="\u0131":Je==="j"&&(Je="\u0237"));var cn;if(Xe[this.mode][Je]){this.settings.strict&&this.mode==="math"&&kr.indexOf(Je)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+Je[0]+'" used in math mode',_e);var _n=Xe[this.mode][Je].group,li=m.range(_e),wi;if(zt.hasOwnProperty(_n)){var mi=_n;wi={type:"atom",mode:this.mode,family:mi,loc:li,text:Je}}else wi={type:_n,mode:this.mode,loc:li,text:Je};cn=wi}else if(Je.charCodeAt(0)>=128)this.settings.strict&&(ee(Je.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+Je[0]+'" used in math mode',_e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+Je[0]+'"'+(" ("+Je.charCodeAt(0)+")"),_e)),cn={type:"textord",mode:"text",loc:m.range(_e),text:Je};else return null;if(this.consume(),Gr)for(var Gi=0;Gi<Gr[0].length;Gi++){var sa=Gr[0][Gi];if(!xs[sa])throw new u("Unknown accent ' "+sa+"'",_e);var Ua=xs[sa][this.mode];if(!Ua)throw new u("Accent "+sa+" unsupported in "+this.mode+" mode",_e);cn={type:"accent",mode:this.mode,loc:m.range(_e),label:Ua,isStretchy:!1,isShifty:!0,base:cn}}return cn},It}();al.endOfExpression=["}","\\endgroup","\\end","\\right","&"],al.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},al.SUPSUB_GREEDINESS=1;var Js=function(ue,Se){if(!(typeof ue=="string"||ue instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var _e=new al(ue,Se);delete _e.gullet.macros.current["\\df@tag"];var Je=_e.parse();if(_e.gullet.macros.get("\\df@tag")){if(!Se.displayMode)throw new u("\\tag works only in display equations");_e.gullet.feed("\\df@tag"),Je=[{type:"tag",mode:"text",body:Je,tag:_e.parse()}]}return Je},Vo=Js,No=function(ue,Se,_e){Se.textContent="";var Je=Ft(ue,_e).toNode();Se.appendChild(Je)};typeof document!="undefined"&&(document.compatMode!=="CSS1Compat"&&(typeof console!="undefined"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),No=function(){throw new u("KaTeX doesn't work in quirks mode.")}));var fs=function(ue,Se){var _e=Ft(ue,Se).toMarkup();return _e},Ds=function(ue,Se){var _e=new b(Se);return Vo(ue,_e)},go=function(ue,Se,_e){if(_e.throwOnError||!(ue instanceof u))throw ue;var Je=Rr.makeSpan(["katex-error"],[new Ne(Se)]);return Je.setAttribute("title",ue.toString()),Je.setAttribute("style","color:"+_e.errorColor),Je},Ft=function(ue,Se){var _e=new b(Se);try{var Je=Vo(ue,_e);return Lr(Je,ue,_e)}catch(Lt){return go(Lt,ue,_e)}},er=function(ue,Se){var _e=new b(Se);try{var Je=Vo(ue,_e);return Wr(Je,ue,_e)}catch(Lt){return go(Lt,ue,_e)}},Cn={version:"0.11.1",render:No,renderToString:fs,ParseError:u,__parse:Ds,__renderToDomTree:Ft,__renderToHTMLTree:er,__setFontMetrics:Jt,__defineSymbol:pe,__defineMacro:gn,__domTree:{Span:Y,Anchor:$,SymbolNode:Ne,SvgNode:Ee,PathNode:de,LineNode:me}},di=p.default=Cn}]).default})},P2fV:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("Q9mQ"),A=n("+L6B"),m=n("sE09"),f=n.n(m)},P2ho:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={Again:57349,AltLeft:56,AltRight:57400,ArrowDown:57424,ArrowLeft:57419,ArrowRight:57421,ArrowUp:57416,AudioVolumeDown:57390,AudioVolumeMute:57376,AudioVolumeUp:57392,Backquote:41,Backslash:43,Backspace:14,BracketLeft:26,BracketRight:27,BrowserBack:57450,BrowserFavorites:57446,BrowserForward:57449,BrowserHome:57394,BrowserRefresh:57447,BrowserSearch:57445,BrowserStop:57448,CapsLock:58,Comma:51,ContextMenu:57437,ControlLeft:29,ControlRight:57373,Convert:121,Copy:57464,Cut:57404,Delete:57427,Digit0:11,Digit1:2,Digit2:3,Digit3:4,Digit4:5,Digit5:6,Digit6:7,Digit7:8,Digit8:9,Digit9:10,Eject:57469,End:57423,Enter:28,Equal:13,Escape:1,F1:59,F10:68,F11:87,F12:88,F13:93,F14:94,F15:95,F16:85,F17:57347,F18:57463,F19:57348,F2:60,F20:90,F21:116,F22:57465,F23:109,F24:111,F3:61,F4:62,F5:63,F6:64,F7:65,F8:66,F9:67,Find:57409,Help:57461,Hiragana:119,Home:57415,Insert:57426,IntlBackslash:86,IntlRo:115,IntlYen:125,KanaMode:112,Katakana:120,KeyA:30,KeyB:48,KeyC:46,KeyD:32,KeyE:18,KeyF:33,KeyG:34,KeyH:35,KeyI:23,KeyJ:36,KeyK:37,KeyL:38,KeyM:50,KeyN:49,KeyO:24,KeyP:25,KeyQ:16,KeyR:19,KeyS:31,KeyT:20,KeyU:22,KeyV:47,KeyW:17,KeyX:45,KeyY:21,KeyZ:44,Lang3:120,Lang4:119,Lang5:118,LaunchApp1:57451,LaunchApp2:57377,LaunchMail:57452,MediaPlayPause:57378,MediaSelect:57453,MediaStop:57380,MediaTrackNext:57369,MediaTrackPrevious:57360,MetaLeft:57435,MetaRight:57436,Minus:12,NonConvert:123,NumLock:69,Numpad0:82,Numpad1:79,Numpad2:80,Numpad3:81,Numpad4:75,Numpad5:76,Numpad6:77,Numpad7:71,Numpad8:72,Numpad9:73,NumpadAdd:78,NumpadComma:126,NumpadDecimal:83,NumpadDivide:57397,NumpadEnter:57372,NumpadEqual:89,NumpadMultiply:55,NumpadParenLeft:57462,NumpadParenRight:57467,NumpadSubtract:74,Open:100,PageDown:57425,PageUp:57417,Paste:101,Pause:57414,Period:52,Power:57438,PrintScreen:84,Props:57350,Quote:40,ScrollLock:70,Semicolon:39,ShiftLeft:42,ShiftRight:54,Slash:53,Sleep:57439,Space:57,Suspend:57381,Tab:15,Undo:57351,WakeUp:57443};D.default=y},P47w:function(k,D,n){var y=n("hydK"),p=y.createElement,x=n("IMiH"),A=n("mFDi"),m=n("Fofx"),f=n("6GrX"),h=n("pzxd"),u=n("dqUG"),a=x.CMD,i=Array.prototype.join,t="none",o=Math.round,e=Math.sin,l=Math.cos,r=Math.PI,s=Math.PI*2,c=180/r,d=1e-4;function g(Q){return o(Q*1e4)/1e4}function v(Q){return Q<d&&Q>-d}function b(Q,G){var ee=G?Q.textFill:Q.fill;return ee!=null&&ee!==t}function S(Q,G){var ee=G?Q.textStroke:Q.stroke;return ee!=null&&ee!==t}function E(Q,G){G&&C(Q,"transform","matrix("+i.call(G,",")+")")}function C(Q,G,ee){(!ee||ee.type!=="linear"&&ee.type!=="radial")&&Q.setAttribute(G,ee)}function _(Q,G,ee){Q.setAttributeNS("http://www.w3.org/1999/xlink",G,ee)}function T(Q,G,ee,ce){if(b(G,ee)){var be=ee?G.textFill:G.fill;be=be==="transparent"?t:be,C(Q,"fill",be),C(Q,"fill-opacity",G.fillOpacity!=null?G.fillOpacity*G.opacity:G.opacity)}else C(Q,"fill",t);if(S(G,ee)){var le=ee?G.textStroke:G.stroke;le=le==="transparent"?t:le,C(Q,"stroke",le);var Ie=ee?G.textStrokeWidth:G.lineWidth,ke=!ee&&G.strokeNoScale?ce.getLineScale():1;C(Q,"stroke-width",Ie/ke),C(Q,"paint-order",ee?"stroke":"fill"),C(Q,"stroke-opacity",G.strokeOpacity!=null?G.strokeOpacity:G.opacity);var Re=G.lineDash;Re?(C(Q,"stroke-dasharray",G.lineDash.join(",")),C(Q,"stroke-dashoffset",o(G.lineDashOffset||0))):C(Q,"stroke-dasharray",""),G.lineCap&&C(Q,"stroke-linecap",G.lineCap),G.lineJoin&&C(Q,"stroke-linejoin",G.lineJoin),G.miterLimit&&C(Q,"stroke-miterlimit",G.miterLimit)}else C(Q,"stroke",t)}function w(Q){for(var G=[],ee=Q.data,ce=Q.len(),be=0;be<ce;){var le=ee[be++],Ie="",ke=0;switch(le){case a.M:Ie="M",ke=2;break;case a.L:Ie="L",ke=2;break;case a.Q:Ie="Q",ke=4;break;case a.C:Ie="C",ke=6;break;case a.A:var Re=ee[be++],Qe=ee[be++],We=ee[be++],ot=ee[be++],Oe=ee[be++],oe=ee[be++],st=ee[be++],he=ee[be++],J=Math.abs(oe),Y=v(J-s)||(he?oe>=s:-oe>=s),$=oe>0?oe%s:oe%s+s,fe=!1;Y?fe=!0:v(J)?fe=!1:fe=$>=r===!!he;var we=g(Re+We*l(Oe)),Ne=g(Qe+ot*e(Oe));Y&&(he?oe=s-1e-4:oe=-s+1e-4,fe=!0,be===9&&G.push("M",we,Ne));var Ee=g(Re+We*l(Oe+oe)),de=g(Qe+ot*e(Oe+oe));G.push("A",g(We),g(ot),o(st*c),+fe,+he,Ee,de);break;case a.Z:Ie="Z";break;case a.R:var Ee=g(ee[be++]),de=g(ee[be++]),me=g(ee[be++]),Le=g(ee[be++]);G.push("M",Ee,de,"L",Ee+me,de,"L",Ee+me,de+Le,"L",Ee,de+Le,"L",Ee,de);break}Ie&&G.push(Ie);for(var tt=0;tt<ke;tt++)G.push(g(ee[be++]))}return G.join(" ")}var O={};O.brush=function(Q){var G=Q.style,ee=Q.__svgEl;ee||(ee=p("path"),Q.__svgEl=ee),Q.path||Q.createPathProxy();var ce=Q.path;if(Q.__dirtyPath){ce.beginPath(),ce.subPixelOptimize=!1,Q.buildPath(ce,Q.shape),Q.__dirtyPath=!1;var be=w(ce);be.indexOf("NaN")<0&&C(ee,"d",be)}T(ee,G,!1,Q),E(ee,Q.transform),G.text!=null?B(Q,Q.getBoundingRect()):V(Q)};var I={};I.brush=function(Q){var G=Q.style,ee=G.image;if(ee instanceof HTMLImageElement){var ce=ee.src;ee=ce}if(!ee)return;var be=G.x||0,le=G.y||0,Ie=G.width,ke=G.height,Re=Q.__svgEl;Re||(Re=p("image"),Q.__svgEl=Re),ee!==Q.__imageSrc&&(_(Re,"href",ee),Q.__imageSrc=ee),C(Re,"width",Ie),C(Re,"height",ke),C(Re,"x",be),C(Re,"y",le),E(Re,Q.transform),G.text!=null?B(Q,Q.getBoundingRect()):V(Q)};var R={},M=new A,F={},P=[],X={left:"start",right:"end",center:"middle",middle:"middle"},B=function(G,ee){var ce=G.style,be=G.transform,le=G instanceof u||ce.transformText;G.__dirty&&h.normalizeTextStyle(ce,!0);var Ie=ce.text;if(Ie!=null&&(Ie+=""),!h.needDrawText(Ie,ce))return;Ie==null&&(Ie=""),!le&&be&&(M.copy(ee),M.applyTransform(be),ee=M);var ke=G.__textSvgEl;ke||(ke=p("text"),G.__textSvgEl=ke);var Re=ke.style,Qe=ce.font||f.DEFAULT_FONT,We=ke.__computedFont;Qe!==ke.__styleFont&&(Re.font=ke.__styleFont=Qe,We=ke.__computedFont=Re.font);var ot=ce.textPadding,Oe=ce.textLineHeight,oe=G.__textCotentBlock;(!oe||G.__dirtyText)&&(oe=G.__textCotentBlock=f.parsePlainText(Ie,We,ot,Oe,ce.truncate));var st=oe.outerHeight,he=oe.lineHeight;h.getBoxPosition(F,G,ce,ee);var J=F.baseX,Y=F.baseY,$=F.textAlign||"left",fe=F.textVerticalAlign;j(ke,le,be,ce,ee,J,Y);var we=f.adjustTextY(Y,st,fe),Ne=J,Ee=we;ot&&(Ne=W(J,$,ot),Ee+=ot[0]),Ee+=he/2,T(ke,ce,!0,G);var de=oe.canCacheByTextString,me=G.__tspanList||(G.__tspanList=[]),Le=me.length;if(de&&G.__canCacheByTextString&&G.__text===Ie){if(G.__dirtyText&&Le)for(var tt=0;tt<Le;++tt)z(me[tt],$,Ne,Ee+tt*he)}else{G.__text=Ie,G.__canCacheByTextString=de;for(var At=oe.lines,ht=At.length,tt=0;tt<ht;tt++){var Ke=me[tt],Jt=At[tt];Ke?Ke.__zrText!==Jt&&(Ke.innerHTML="",Ke.appendChild(document.createTextNode(Jt))):(Ke=me[tt]=p("tspan"),ke.appendChild(Ke),Ke.appendChild(document.createTextNode(Jt))),z(Ke,$,Ne,Ee+tt*he)}if(Le>ht){for(;tt<Le;tt++)ke.removeChild(me[tt]);me.length=ht}}};function j(Q,G,ee,ce,be,le,Ie){m.identity(P),G&&ee&&m.copy(P,ee);var ke=ce.textRotation;if(be&&ke){var Re=ce.textOrigin;Re==="center"?(le=be.width/2+be.x,Ie=be.height/2+be.y):Re&&(le=Re[0]+be.x,Ie=Re[1]+be.y),P[4]-=le,P[5]-=Ie,m.rotate(P,P,ke),P[4]+=le,P[5]+=Ie}E(Q,P)}function W(Q,G,ee){return G==="right"?Q-ee[1]:G==="center"?Q+ee[3]/2-ee[1]/2:Q+ee[3]}function z(Q,G,ee,ce){C(Q,"dominant-baseline","middle"),C(Q,"text-anchor",X[G]),C(Q,"x",ee),C(Q,"y",ce)}function V(Q){Q&&Q.__textSvgEl&&(Q.__textSvgEl.parentNode&&Q.__textSvgEl.parentNode.removeChild(Q.__textSvgEl),Q.__textSvgEl=null,Q.__tspanList=[],Q.__text=null)}R.drawRectText=B,R.brush=function(Q){var G=Q.style;G.text!=null?B(Q,!1):V(Q)},D.path=O,D.image=I,D.text=R},P4Qj:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.removeSensor=D.getSensor=void 0;var y=A(n("chpo")),p=n("FxDU"),x=n("24YM");function A(u){return u&&u.__esModule?u:{default:u}}var m={},f=function(a){var i=a.getAttribute(x.SizeSensorId);if(i&&m[i])return m[i];var t=(0,y.default)();a.setAttribute(x.SizeSensorId,t);var o=(0,p.createSensor)(a);return m[t]=o,o};D.getSensor=f;var h=function(a){var i=a.element.getAttribute(x.SizeSensorId);a.element.removeAttribute(x.SizeSensorId),a.destroy(),i&&m[i]&&delete m[i]};D.removeSensor=h},P5Jw:function(k,D,n){"use strict";var y=n("rHrb"),p=y.CopyToClipboard;p.CopyToClipboard=p,k.exports=p},PArb:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("q1tI"),f=n.n(m),h=n("TSYQ"),u=n.n(h),a=n("H84U"),i=function(o,e){var l={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(l[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(l[r[s]]=o[r[s]]);return l},t=function(e){return m.createElement(a.a,null,function(l){var r,s=l.getPrefixCls,c=l.direction,d=e.prefixCls,g=e.type,v=g===void 0?"horizontal":g,b=e.orientation,S=b===void 0?"center":b,E=e.className,C=e.children,_=e.dashed,T=e.plain,w=i(e,["prefixCls","type","orientation","className","children","dashed","plain"]),O=s("divider",d),I=S.length>0?"-".concat(S):S,R=!!C,M=u()(E,O,"".concat(O,"-").concat(v),(r={},A()(r,"".concat(O,"-with-text"),R),A()(r,"".concat(O,"-with-text").concat(I),R),A()(r,"".concat(O,"-dashed"),!!_),A()(r,"".concat(O,"-plain"),!!T),A()(r,"".concat(O,"-rtl"),c==="rtl"),r));return m.createElement("div",p()({className:M},w,{role:"separator"}),C&&m.createElement("span",{className:"".concat(O,"-inner-text")},C))})};D.a=t},PD8m:function(k,D){k.exports={name:"memoryStorage",read:y,write:p,each:x,remove:A,clearAll:m};var n={};function y(f){return n[f]}function p(f,h){n[f]=h}function x(f){for(var h in n)n.hasOwnProperty(h)&&f(n[h],h)}function A(f){delete n[f]}function m(f){n={}}},PKem:function(k,D,n){"use strict";n.d(D,"a",function(){return b});var y=n("RIqP"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("pVnL"),f=n.n(m),h=n("lwsE"),u=n.n(h),a=n("W8MJ"),i=n.n(a),t=n("7W2i"),o=n.n(t),e=n("LQ03"),l=n.n(e),r=n("q1tI"),s=n.n(r),c=n("TSYQ"),d=n.n(c),g=n("H84U"),v=function(I,R){var M={};for(var F in I)Object.prototype.hasOwnProperty.call(I,F)&&R.indexOf(F)<0&&(M[F]=I[F]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,F=Object.getOwnPropertySymbols(I);P<F.length;P++)R.indexOf(F[P])<0&&Object.prototype.propertyIsEnumerable.call(I,F[P])&&(M[F[P]]=I[F[P]]);return M},b=r.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function S(I){var R=I.suffixCls,M=I.tagName,F=I.displayName;return function(P){var X;return X=function(B){o()(W,B);var j=l()(W);function W(){var z;return u()(this,W),z=j.apply(this,arguments),z.renderComponent=function(V){var Q=V.getPrefixCls,G=z.props.prefixCls,ee=Q(R,G);return r.createElement(P,f()({prefixCls:ee,tagName:M},z.props))},z}return i()(W,[{key:"render",value:function(){return r.createElement(g.a,null,this.renderComponent)}}]),W}(r.Component),X.displayName=F,X}}var E=function(R){var M=R.prefixCls,F=R.className,P=R.children,X=R.tagName,B=v(R,["prefixCls","className","children","tagName"]),j=d()(M,F);return r.createElement(X,f()({className:j},B),P)},C=function(I){o()(M,I);var R=l()(M);function M(){var F;return u()(this,M),F=R.apply(this,arguments),F.state={siders:[]},F.renderComponent=function(P){var X,B=P.direction,j=F.props,W=j.prefixCls,z=j.className,V=j.children,Q=j.hasSider,G=j.tagName,ee=v(j,["prefixCls","className","children","hasSider","tagName"]),ce=d()(W,(X={},A()(X,"".concat(W,"-has-sider"),typeof Q=="boolean"?Q:F.state.siders.length>0),A()(X,"".concat(W,"-rtl"),B==="rtl"),X),z);return r.createElement(b.Provider,{value:{siderHook:F.getSiderHook()}},r.createElement(G,f()({className:ce},ee),V))},F}return i()(M,[{key:"getSiderHook",value:function(){var P=this;return{addSider:function(B){P.setState(function(j){return{siders:[].concat(p()(j.siders),[B])}})},removeSider:function(B){P.setState(function(j){return{siders:j.siders.filter(function(W){return W!==B})}})}}}},{key:"render",value:function(){return r.createElement(g.a,null,this.renderComponent)}}]),M}(r.Component),_=S({suffixCls:"layout",tagName:"section",displayName:"Layout"})(C),T=S({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(E),w=S({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(E),O=S({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(E);_.Header=T,_.Footer=w,_.Content=O,D.b=_},PLTn:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("0dAU"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},PNag:function(k,D,n){var y=n("bYtY"),p=n("SKnc"),x=n("YH21"),A=n("crZl"),m=n("IwbS"),f=n("OELB"),h=n("72pK"),u=n("y7Aq"),a=n("4NO4"),i=f.linearMap,t=y.each,o=Math.min,e=Math.max,l=12,r=6,s=A.extend({type:"visualMap.continuous",init:function(){s.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(C,_,T,w){(!w||w.type!=="selectDataRange"||w.from!==this.uid)&&this._buildView()},_buildView:function(){this.group.removeAll();var C=this.visualMapModel,_=this.group;this._orient=C.get("orient"),this._useHandle=C.get("calculable"),this._resetInterval(),this._renderBar(_);var T=C.get("text");this._renderEndsText(_,T,0),this._renderEndsText(_,T,1),this._updateView(!0),this.renderBackground(_),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(_)},_renderEndsText:function(C,_,T){if(!_)return;var w=_[1-T];w=w!=null?w+"":"";var O=this.visualMapModel,I=O.get("textGap"),R=O.itemSize,M=this._shapes.barGroup,F=this._applyTransform([R[0]/2,T===0?-I:R[1]+I],M),P=this._applyTransform(T===0?"bottom":"top",M),X=this._orient,B=this.visualMapModel.textStyleModel;this.group.add(new m.Text({style:{x:F[0],y:F[1],textVerticalAlign:X==="horizontal"?"middle":P,textAlign:X==="horizontal"?P:"center",text:w,textFont:B.getFont(),textFill:B.getTextColor()}}))},_renderBar:function(C){var _=this.visualMapModel,T=this._shapes,w=_.itemSize,O=this._orient,I=this._useHandle,R=u.getItemAlign(_,this.api,w),M=T.barGroup=this._createBarGroup(R);M.add(T.outOfRange=c()),M.add(T.inRange=c(null,I?S(this._orient):null,y.bind(this._dragHandle,this,"all",!1),y.bind(this._dragHandle,this,"all",!0)));var F=_.textStyleModel.getTextRect("\u56FD"),P=e(F.width,F.height);I&&(T.handleThumbs=[],T.handleLabels=[],T.handleLabelPoints=[],this._createHandle(M,0,w,P,O,R),this._createHandle(M,1,w,P,O,R)),this._createIndicator(M,w,P,O),C.add(M)},_createHandle:function(C,_,T,w,O){var I=y.bind(this._dragHandle,this,_,!1),R=y.bind(this._dragHandle,this,_,!0),M=c(d(_,w),S(this._orient),I,R);M.position[0]=T[0],C.add(M);var F=this.visualMapModel.textStyleModel,P=new m.Text({draggable:!0,drift:I,onmousemove:function(j){x.stop(j.event)},ondragend:R,style:{x:0,y:0,text:"",textFont:F.getFont(),textFill:F.getTextColor()}});this.group.add(P);var X=[O==="horizontal"?w/2:w*1.5,O==="horizontal"?_===0?-(w*1.5):w*1.5:_===0?-w/2:w/2],B=this._shapes;B.handleThumbs[_]=M,B.handleLabelPoints[_]=X,B.handleLabels[_]=P},_createIndicator:function(C,_,T,w){var O=c([[0,0]],"move");O.position[0]=_[0],O.attr({invisible:!0,silent:!0}),C.add(O);var I=this.visualMapModel.textStyleModel,R=new m.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:I.getFont(),textFill:I.getTextColor()}});this.group.add(R);var M=[w==="horizontal"?T/2:r+3,0],F=this._shapes;F.indicator=O,F.indicatorLabel=R,F.indicatorLabelPoint=M},_dragHandle:function(C,_,T,w){if(!this._useHandle)return;if(this._dragging=!_,!_){var O=this._applyTransform([T,w],this._shapes.barGroup,!0);this._updateInterval(C,O[1]),this._updateView()}_===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),_?!this._hovering&&this._clearHoverLinkToSeries():b(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[C],!1)},_resetInterval:function(){var C=this.visualMapModel,_=this._dataInterval=C.getSelected(),T=C.getExtent(),w=[0,C.itemSize[1]];this._handleEnds=[i(_[0],T,w,!0),i(_[1],T,w,!0)]},_updateInterval:function(C,_){_=_||0;var T=this.visualMapModel,w=this._handleEnds,O=[0,T.itemSize[1]];h(_,w,O,C,0);var I=T.getExtent();this._dataInterval=[i(w[0],O,I,!0),i(w[1],O,I,!0)]},_updateView:function(C){var _=this.visualMapModel,T=_.getExtent(),w=this._shapes,O=[0,_.itemSize[1]],I=C?O:this._handleEnds,R=this._createBarVisual(this._dataInterval,T,I,"inRange"),M=this._createBarVisual(T,T,O,"outOfRange");w.inRange.setStyle({fill:R.barColor,opacity:R.opacity}).setShape("points",R.barPoints),w.outOfRange.setStyle({fill:M.barColor,opacity:M.opacity}).setShape("points",M.barPoints),this._updateHandle(I,R)},_createBarVisual:function(C,_,T,w){var O={forceState:w,convertOpacityToAlpha:!0},I=this._makeColorGradient(C,O),R=[this.getControllerVisual(C[0],"symbolSize",O),this.getControllerVisual(C[1],"symbolSize",O)],M=this._createBarPoints(T,R);return{barColor:new p(0,0,0,1,I),barPoints:M,handlesColor:[I[0].color,I[I.length-1].color]}},_makeColorGradient:function(C,_){var T=100,w=[],O=(C[1]-C[0])/T;w.push({color:this.getControllerVisual(C[0],"color",_),offset:0});for(var I=1;I<T;I++){var R=C[0]+O*I;if(R>C[1])break;w.push({color:this.getControllerVisual(R,"color",_),offset:I/T})}return w.push({color:this.getControllerVisual(C[1],"color",_),offset:1}),w},_createBarPoints:function(C,_){var T=this.visualMapModel.itemSize;return[[T[0]-_[0],C[0]],[T[0],C[0]],[T[0],C[1]],[T[0]-_[1],C[1]]]},_createBarGroup:function(C){var _=this._orient,T=this.visualMapModel.get("inverse");return new m.Group(_==="horizontal"&&!T?{scale:C==="bottom"?[1,1]:[-1,1],rotation:Math.PI/2}:_==="horizontal"&&T?{scale:C==="bottom"?[-1,1]:[1,1],rotation:-Math.PI/2}:_==="vertical"&&!T?{scale:C==="left"?[1,-1]:[-1,-1]}:{scale:C==="left"?[1,1]:[-1,1]})},_updateHandle:function(C,_){if(!this._useHandle)return;var T=this._shapes,w=this.visualMapModel,O=T.handleThumbs,I=T.handleLabels;t([0,1],function(R){var M=O[R];M.setStyle("fill",_.handlesColor[R]),M.position[1]=C[R];var F=m.applyTransform(T.handleLabelPoints[R],m.getTransform(M,this.group));I[R].setStyle({x:F[0],y:F[1],text:w.formatValueText(this._dataInterval[R]),textVerticalAlign:"middle",textAlign:this._applyTransform(this._orient==="horizontal"?R===0?"bottom":"top":"left",T.barGroup)})},this)},_showIndicator:function(C,_,T,w){var O=this.visualMapModel,I=O.getExtent(),R=O.itemSize,M=[0,R[1]],F=i(C,I,M,!0),P=this._shapes,X=P.indicator;if(!X)return;X.position[1]=F,X.attr("invisible",!1),X.setShape("points",g(!!T,w,F,R[1]));var B={convertOpacityToAlpha:!0},j=this.getControllerVisual(C,"color",B);X.setStyle("fill",j);var W=m.applyTransform(P.indicatorLabelPoint,m.getTransform(X,this.group)),z=P.indicatorLabel;z.attr("invisible",!1);var V=this._applyTransform("left",P.barGroup),Q=this._orient;z.setStyle({text:(T||"")+O.formatValueText(_),textVerticalAlign:Q==="horizontal"?V:"middle",textAlign:Q==="horizontal"?"center":V,x:W[0],y:W[1]})},_enableHoverLinkToSeries:function(){var C=this;this._shapes.barGroup.on("mousemove",function(_){if(C._hovering=!0,!C._dragging){var T=C.visualMapModel.itemSize,w=C._applyTransform([_.offsetX,_.offsetY],C._shapes.barGroup,!0,!0);w[1]=o(e(0,w[1]),T[1]),C._doHoverLinkToSeries(w[1],0<=w[0]&&w[0]<=T[0])}}).on("mouseout",function(){C._hovering=!1,!C._dragging&&C._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var C=this.api.getZr();this.visualMapModel.option.hoverLink?(C.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),C.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(C,_){var T=this.visualMapModel,w=T.itemSize;if(!T.option.hoverLink)return;var O=[0,w[1]],I=T.getExtent();C=o(e(O[0],C),O[1]);var R=v(T,I,O),M=[C-R,C+R],F=i(C,O,I,!0),P=[i(M[0],O,I,!0),i(M[1],O,I,!0)];M[0]<O[0]&&(P[0]=-Infinity),M[1]>O[1]&&(P[1]=Infinity),_&&(P[0]===-Infinity?this._showIndicator(F,P[1],"< ",R):P[1]===Infinity?this._showIndicator(F,P[0],"> ",R):this._showIndicator(F,F,"\u2248 ",R));var X=this._hoverLinkDataIndices,B=[];(_||b(T))&&(B=this._hoverLinkDataIndices=T.findTargetDataIndices(P));var j=a.compressBatches(X,B);this._dispatchHighDown("downplay",u.makeHighDownBatch(j[0],T)),this._dispatchHighDown("highlight",u.makeHighDownBatch(j[1],T))},_hoverLinkFromSeriesMouseOver:function(C){var _=C.target,T=this.visualMapModel;if(!_||_.dataIndex==null)return;var w=this.ecModel.getSeriesByIndex(_.seriesIndex);if(!T.isTargetSeries(w))return;var O=w.getData(_.dataType),I=O.get(T.getDataDimension(O),_.dataIndex,!0);isNaN(I)||this._showIndicator(I,I)},_hideIndicator:function(){var C=this._shapes;C.indicator&&C.indicator.attr("invisible",!0),C.indicatorLabel&&C.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var C=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",u.makeHighDownBatch(C,this.visualMapModel)),C.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var C=this.api.getZr();C.off("mouseover",this._hoverLinkFromSeriesMouseOver),C.off("mouseout",this._hideIndicator)},_applyTransform:function(C,_,T,w){var O=m.getTransform(_,w?null:this.group);return m[y.isArray(C)?"applyTransform":"transformDirection"](C,O,T)},_dispatchHighDown:function(C,_){_&&_.length&&this.api.dispatchAction({type:C,batch:_})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function c(C,_,T,w){return new m.Polygon({shape:{points:C},draggable:!!T,cursor:_,drift:T,onmousemove:function(O){x.stop(O.event)},ondragend:w})}function d(C,_){return C===0?[[0,0],[_,0],[_,-_]]:[[0,0],[_,0],[_,_]]}function g(C,_,T,w){return C?[[0,-o(_,e(T,0))],[r,0],[0,o(_,e(w-T,0))]]:[[0,0],[5,-5],[5,5]]}function v(C,_,T){var w=l/2,O=C.get("hoverLinkDataSize");return O&&(w=i(O,_,T,!0)/2),w}function b(C){var _=C.get("hoverLinkOnHandle");return!!(_==null?C.get("realtime"):_)}function S(C){return C==="vertical"?"ns-resize":"ew-resize"}var E=s;k.exports=E},PQMj:function(k,D,n){},PSzr:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};D.default=y},PVpz:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"))})(this,function(y){return function(){var p=y,x=p.lib,A=x.StreamCipher,m=p.algo,f=[],h=[],u=[],a=m.RabbitLegacy=A.extend({_doReset:function(){var o=this._key.words,e=this.cfg.iv,l=this._X=[o[0],o[3]<<16|o[2]>>>16,o[1],o[0]<<16|o[3]>>>16,o[2],o[1]<<16|o[0]>>>16,o[3],o[2]<<16|o[1]>>>16],r=this._C=[o[2]<<16|o[2]>>>16,o[0]&4294901760|o[1]&65535,o[3]<<16|o[3]>>>16,o[1]&4294901760|o[2]&65535,o[0]<<16|o[0]>>>16,o[2]&4294901760|o[3]&65535,o[1]<<16|o[1]>>>16,o[3]&4294901760|o[0]&65535];this._b=0;for(var s=0;s<4;s++)i.call(this);for(var s=0;s<8;s++)r[s]^=l[s+4&7];if(e){var c=e.words,d=c[0],g=c[1],v=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,b=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,S=v>>>16|b&4294901760,E=b<<16|v&65535;r[0]^=v,r[1]^=S,r[2]^=b,r[3]^=E,r[4]^=v,r[5]^=S,r[6]^=b,r[7]^=E;for(var s=0;s<4;s++)i.call(this)}},_doProcessBlock:function(o,e){var l=this._X;i.call(this),f[0]=l[0]^l[5]>>>16^l[3]<<16,f[1]=l[2]^l[7]>>>16^l[5]<<16,f[2]=l[4]^l[1]>>>16^l[7]<<16,f[3]=l[6]^l[3]>>>16^l[1]<<16;for(var r=0;r<4;r++)f[r]=(f[r]<<8|f[r]>>>24)&16711935|(f[r]<<24|f[r]>>>8)&4278255360,o[e+r]^=f[r]},blockSize:128/32,ivSize:64/32});function i(){for(var t=this._X,o=this._C,e=0;e<8;e++)h[e]=o[e];o[0]=o[0]+1295307597+this._b|0,o[1]=o[1]+3545052371+(o[0]>>>0<h[0]>>>0?1:0)|0,o[2]=o[2]+886263092+(o[1]>>>0<h[1]>>>0?1:0)|0,o[3]=o[3]+1295307597+(o[2]>>>0<h[2]>>>0?1:0)|0,o[4]=o[4]+3545052371+(o[3]>>>0<h[3]>>>0?1:0)|0,o[5]=o[5]+886263092+(o[4]>>>0<h[4]>>>0?1:0)|0,o[6]=o[6]+1295307597+(o[5]>>>0<h[5]>>>0?1:0)|0,o[7]=o[7]+3545052371+(o[6]>>>0<h[6]>>>0?1:0)|0,this._b=o[7]>>>0<h[7]>>>0?1:0;for(var e=0;e<8;e++){var l=t[e]+o[e],r=l&65535,s=l>>>16,c=((r*r>>>17)+r*s>>>15)+s*s,d=((l&4294901760)*l|0)+((l&65535)*l|0);u[e]=c^d}t[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,t[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,t[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,t[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,t[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,t[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,t[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,t[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}p.RabbitLegacy=A._createHelper(a)}(),y.RabbitLegacy})},ProS:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("aX58"),A=n("bYtY"),m=n("Qe9p"),f=n("ItGF"),h=n("BPZU"),u=n("H6uX"),a=n("fmMI"),i=n("hD7B"),t=n("IDmD"),o=n("ypgQ"),e=n("+wW9"),l=n("0V0F"),r=n("bLfw"),s=n("T4UG"),c=n("sS/r"),d=n("6Ic6"),g=n("IwbS"),v=n("4NO4"),b=n("iLNv"),S=b.throttle,E=n("/WM3"),C=n("uAnK"),_=n("mYwL"),T=n("af/B"),w=n("xTNl"),O=n("8hn6");n("A1Ka");var I=n("7DRL"),R=A.assert,M=A.each,F=A.isFunction,P=A.isObject,X=r.parseClassType,B="4.8.0",j={zrender:"4.3.1"},W=1,z=1e3,V=800,Q=900,G=5e3,ee=1e3,ce=1100,be=2e3,le=3e3,Ie=3500,ke=4e3,Re=5e3,Qe={PROCESSOR:{FILTER:z,SERIES_FILTER:V,STATISTIC:G},VISUAL:{LAYOUT:ee,PROGRESSIVE_LAYOUT:ce,GLOBAL:be,CHART:le,POST_CHART_LAYOUT:Ie,COMPONENT:ke,BRUSH:Re}},We="__flagInMainProcess",ot="__optionUpdated",Oe=/^[a-zA-Z0-9_]+$/;function oe(Rt,qt){return function(Yr,Mr,Dr){if(!qt&&this._disposed){dr(this.id);return}Yr=Yr&&Yr.toLowerCase(),u.prototype[Rt].call(this,Yr,Mr,Dr)}}function st(){u.call(this)}st.prototype.on=oe("on",!0),st.prototype.off=oe("off",!0),st.prototype.one=oe("one",!0),A.mixin(st,u);function he(Rt,qt,Yr){Yr=Yr||{},typeof qt=="string"&&(qt=mt[qt]),this.id,this.group,this._dom=Rt;var Mr="canvas",Dr=this._zr=x.init(Rt,{renderer:Yr.renderer||Mr,devicePixelRatio:Yr.devicePixelRatio,width:Yr.width,height:Yr.height});this._throttledZrFlush=S(A.bind(Dr.flush,Dr),17);var qt=A.clone(qt);qt&&e(qt,!0),this._theme=qt,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new t;var un=this._api=Xe(this);function wn(ai,ei){return ai.__prio-ei.__prio}h(Mt,wn),h(He,wn),this._scheduler=new T(this,un,He,Mt),u.call(this,this._ecEventProcessor=new pe),this._messageCenter=new st,this._initEvents(),this.resize=A.bind(this.resize,this),this._pendingActions=[],Dr.animation.on("frame",this._onframe,this),Le(Dr,this),A.setAsPrimitive(this)}var J=he.prototype;J._onframe=function(){if(this._disposed)return;var Rt=this._scheduler;if(this[ot]){var qt=this[ot].silent;this[We]=!0,fe(this),$.update.call(this),this[We]=!1,this[ot]=!1,de.call(this,qt),me.call(this,qt)}else if(Rt.unfinished){var Yr=W,Mr=this._model,Dr=this._api;Rt.unfinished=!1;do{var un=+new Date;Rt.performSeriesTasks(Mr),Rt.performDataProcessorTasks(Mr),Ne(this,Mr),Rt.performVisualTasks(Mr),Jt(this,this._model,Dr,"remain"),Yr-=+new Date-un}while(Yr>0&&Rt.unfinished);Rt.unfinished||this._zr.flush()}},J.getDom=function(){return this._dom},J.getZr=function(){return this._zr},J.setOption=function(Rt,qt,Yr){if(this._disposed){dr(this.id);return}var Mr;if(P(qt)&&(Yr=qt.lazyUpdate,Mr=qt.silent,qt=qt.notMerge),this[We]=!0,!this._model||qt){var Dr=new o(this._api),un=this._theme,wn=this._model=new a;wn.scheduler=this._scheduler,wn.init(null,null,un,Dr)}this._model.setOption(Rt,ae),Yr?(this[ot]={silent:Mr},this[We]=!1):(fe(this),$.update.call(this),this._zr.flush(),this[ot]=!1,this[We]=!1,de.call(this,Mr),me.call(this,Mr))},J.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},J.getModel=function(){return this._model},J.getOption=function(){return this._model&&this._model.getOption()},J.getWidth=function(){return this._zr.getWidth()},J.getHeight=function(){return this._zr.getHeight()},J.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},J.getRenderedCanvas=function(Rt){if(!f.canvasSupported)return;Rt=Rt||{},Rt.pixelRatio=Rt.pixelRatio||1,Rt.backgroundColor=Rt.backgroundColor||this._model.get("backgroundColor");var qt=this._zr;return qt.painter.getRenderedCanvas(Rt)},J.getSvgDataURL=function(){if(!f.svgSupported)return;var Rt=this._zr,qt=Rt.storage.getDisplayList();return A.each(qt,function(Yr){Yr.stopAnimation(!0)}),Rt.painter.toDataURL()},J.getDataURL=function(Rt){if(this._disposed){dr(this.id);return}Rt=Rt||{};var qt=Rt.excludeComponents,Yr=this._model,Mr=[],Dr=this;M(qt,function(wn){Yr.eachComponent({mainType:wn},function(ai){var ei=Dr._componentsMap[ai.__viewId];ei.group.ignore||(Mr.push(ei),ei.group.ignore=!0)})});var un=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.getRenderedCanvas(Rt).toDataURL("image/"+(Rt&&Rt.type||"png"));return M(Mr,function(wn){wn.group.ignore=!1}),un},J.getConnectedDataURL=function(Rt){if(this._disposed){dr(this.id);return}if(!f.canvasSupported)return;var qt=Rt.type==="svg",Yr=this.group,Mr=Math.min,Dr=Math.max,un=Infinity;if(fn[Yr]){var wn=un,ai=un,ei=-un,gi=-un,Ii=[],ki=Rt&&Rt.pixelRatio||1;A.each(vr,function(rt,qe){if(rt.group===Yr){var at=qt?rt.getZr().painter.getSvgDom().innerHTML:rt.getRenderedCanvas(A.clone(Rt)),St=rt.getDom().getBoundingClientRect();wn=Mr(St.left,wn),ai=Mr(St.top,ai),ei=Dr(St.right,ei),gi=Dr(St.bottom,gi),Ii.push({dom:at,left:St.left,top:St.top})}}),wn*=ki,ai*=ki,ei*=ki,gi*=ki;var Qi=ei-wn,it=gi-ai,Me=A.createCanvas(),je=x.init(Me,{renderer:qt?"svg":"canvas"});if(je.resize({width:Qi,height:it}),qt){var Ye="";return M(Ii,function(rt){var qe=rt.left-wn,at=rt.top-ai;Ye+='<g transform="translate('+qe+","+at+')">'+rt.dom+"</g>"}),je.painter.getSvgRoot().innerHTML=Ye,Rt.connectedBackgroundColor&&je.painter.setBackgroundColor(Rt.connectedBackgroundColor),je.refreshImmediately(),je.painter.toDataURL()}else return Rt.connectedBackgroundColor&&je.add(new g.Rect({shape:{x:0,y:0,width:Qi,height:it},style:{fill:Rt.connectedBackgroundColor}})),M(Ii,function(rt){var qe=new g.Image({style:{x:rt.left*ki-wn,y:rt.top*ki-ai,image:rt.dom}});je.add(qe)}),je.refreshImmediately(),Me.toDataURL("image/"+(Rt&&Rt.type||"png"))}else return this.getDataURL(Rt)},J.convertToPixel=A.curry(Y,"convertToPixel"),J.convertFromPixel=A.curry(Y,"convertFromPixel");function Y(Rt,qt,Yr){if(this._disposed){dr(this.id);return}var Mr=this._model,Dr=this._coordSysMgr.getCoordinateSystems(),un;qt=v.parseFinder(Mr,qt);for(var wn=0;wn<Dr.length;wn++){var ai=Dr[wn];if(ai[Rt]&&(un=ai[Rt](Mr,qt,Yr))!=null)return un}}J.containPixel=function(Rt,qt){if(this._disposed){dr(this.id);return}var Yr=this._model,Mr;return Rt=v.parseFinder(Yr,Rt),A.each(Rt,function(Dr,un){un.indexOf("Models")>=0&&A.each(Dr,function(wn){var ai=wn.coordinateSystem;if(ai&&ai.containPoint)Mr|=!!ai.containPoint(qt);else if(un==="seriesModels"){var ei=this._chartsMap[wn.__viewId];ei&&ei.containPoint&&(Mr|=ei.containPoint(qt,wn))}},this)},this),!!Mr},J.getVisual=function(Rt,qt){var Yr=this._model;Rt=v.parseFinder(Yr,Rt,{defaultMainType:"series"});var Mr=Rt.seriesModel,Dr=Mr.getData(),un=Rt.hasOwnProperty("dataIndexInside")?Rt.dataIndexInside:Rt.hasOwnProperty("dataIndex")?Dr.indexOfRawIndex(Rt.dataIndex):null;return un!=null?Dr.getItemVisual(un,qt):Dr.getVisual(qt)},J.getViewOfComponentModel=function(Rt){return this._componentsMap[Rt.__viewId]},J.getViewOfSeriesModel=function(Rt){return this._chartsMap[Rt.__viewId]};var $={prepareAndUpdate:function(Rt){fe(this),$.update.call(this,Rt)},update:function(Rt){var qt=this._model,Yr=this._api,Mr=this._zr,Dr=this._coordSysMgr,un=this._scheduler;if(!qt)return;un.restoreData(qt,Rt),un.performSeriesTasks(qt),Dr.create(qt,Yr),un.performDataProcessorTasks(qt,Rt),Ne(this,qt),Dr.update(qt,Yr),At(qt),un.performVisualTasks(qt,Rt),ht(this,qt,Yr,Rt);var wn=qt.get("backgroundColor")||"transparent";if(f.canvasSupported)Mr.setBackgroundColor(wn);else{var ai=m.parse(wn);wn=m.stringify(ai,"rgb"),ai[3]===0&&(wn="transparent")}ct(qt,Yr)},updateTransform:function(Rt){var qt=this._model,Yr=this,Mr=this._api;if(!qt)return;var Dr=[];qt.eachComponent(function(wn,ai){var ei=Yr.getViewOfComponentModel(ai);if(ei&&ei.__alive)if(ei.updateTransform){var gi=ei.updateTransform(ai,qt,Mr,Rt);gi&&gi.update&&Dr.push(ei)}else Dr.push(ei)});var un=A.createHashMap();qt.eachSeries(function(wn){var ai=Yr._chartsMap[wn.__viewId];if(ai.updateTransform){var ei=ai.updateTransform(wn,qt,Mr,Rt);ei&&ei.update&&un.set(wn.uid,1)}else un.set(wn.uid,1)}),At(qt),this._scheduler.performVisualTasks(qt,Rt,{setDirty:!0,dirtyMap:un}),Jt(Yr,qt,Mr,Rt,un),ct(qt,this._api)},updateView:function(Rt){var qt=this._model;if(!qt)return;d.markUpdateMethod(Rt,"updateView"),At(qt),this._scheduler.performVisualTasks(qt,Rt,{setDirty:!0}),ht(this,this._model,this._api,Rt),ct(qt,this._api)},updateVisual:function(Rt){$.update.call(this,Rt)},updateLayout:function(Rt){$.update.call(this,Rt)}};function fe(Rt){var qt=Rt._model,Yr=Rt._scheduler;Yr.restorePipelines(qt),Yr.prepareStageTasks(),tt(Rt,"component",qt,Yr),tt(Rt,"chart",qt,Yr),Yr.plan()}function we(Rt,qt,Yr,Mr,Dr){var un=Rt._model;if(!Mr){M(Rt._componentsViews.concat(Rt._chartsViews),gi);return}var wn={};wn[Mr+"Id"]=Yr[Mr+"Id"],wn[Mr+"Index"]=Yr[Mr+"Index"],wn[Mr+"Name"]=Yr[Mr+"Name"];var ai={mainType:Mr,query:wn};Dr&&(ai.subType=Dr);var ei=Yr.excludeSeriesId;ei!=null&&(ei=A.createHashMap(v.normalizeToArray(ei))),un&&un.eachComponent(ai,function(Ii){(!ei||ei.get(Ii.id)==null)&&gi(Rt[Mr==="series"?"_chartsMap":"_componentsMap"][Ii.__viewId])},Rt);function gi(Ii){Ii&&Ii.__alive&&Ii[qt]&&Ii[qt](Ii.__model,un,Rt._api,Yr)}}J.resize=function(Rt){if(this._disposed){dr(this.id);return}this._zr.resize(Rt);var qt=this._model;if(this._loadingFX&&this._loadingFX.resize(),!qt)return;var Yr=qt.resetOption("media"),Mr=Rt&&Rt.silent;this[We]=!0,Yr&&fe(this),$.update.call(this),this[We]=!1,de.call(this,Mr),me.call(this,Mr)};function Ne(Rt,qt){var Yr=Rt._chartsMap,Mr=Rt._scheduler;qt.eachSeries(function(Dr){Mr.updateStreamModes(Dr,Yr[Dr.__viewId])})}J.showLoading=function(Rt,qt){if(this._disposed){dr(this.id);return}if(P(Rt)&&(qt=Rt,Rt=""),Rt=Rt||"default",this.hideLoading(),!or[Rt])return;var Yr=or[Rt](this._api,qt),Mr=this._zr;this._loadingFX=Yr,Mr.add(Yr)},J.hideLoading=function(){if(this._disposed){dr(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},J.makeActionFromEvent=function(Rt){var qt=A.extend({},Rt);return qt.type=$e[Rt.type],qt},J.dispatchAction=function(Rt,qt){if(this._disposed){dr(this.id);return}if(P(qt)||(qt={silent:!!qt}),!te[Rt.type])return;if(!this._model)return;if(this[We]){this._pendingActions.push(Rt);return}Ee.call(this,Rt,qt.silent),qt.flush?this._zr.flush(!0):qt.flush!==!1&&f.browser.weChat&&this._throttledZrFlush(),de.call(this,qt.silent),me.call(this,qt.silent)};function Ee(Rt,qt){var Yr=Rt.type,Mr=Rt.escapeConnect,Dr=te[Yr],un=Dr.actionInfo,wn=(un.update||"update").split(":"),ai=wn.pop();wn=wn[0]!=null&&X(wn[0]),this[We]=!0;var ei=[Rt],gi=!1;Rt.batch&&(gi=!0,ei=A.map(Rt.batch,function(it){return it=A.defaults(A.extend({},it),Rt),it.batch=null,it}));var Ii=[],ki,Qi=Yr==="highlight"||Yr==="downplay";M(ei,function(it){ki=Dr.action(it,this._model,this._api),ki=ki||A.extend({},it),ki.type=un.event||ki.type,Ii.push(ki),Qi?we(this,ai,it,"series"):wn&&we(this,ai,it,wn.main,wn.sub)},this),ai!=="none"&&!Qi&&!wn&&(this[ot]?(fe(this),$.update.call(this,Rt),this[ot]=!1):$[ai].call(this,Rt)),gi?ki={type:un.event||Yr,escapeConnect:Mr,batch:Ii}:ki=Ii[0],this[We]=!1,!qt&&this._messageCenter.trigger(ki.type,ki)}function de(Rt){for(var qt=this._pendingActions;qt.length;){var Yr=qt.shift();Ee.call(this,Yr,Rt)}}function me(Rt){!Rt&&this.trigger("updated")}function Le(Rt,qt){Rt.on("rendered",function(){qt.trigger("rendered"),Rt.animation.isFinished()&&!qt[ot]&&!qt._scheduler.unfinished&&!qt._pendingActions.length&&qt.trigger("finished")})}J.appendData=function(Rt){if(this._disposed){dr(this.id);return}var qt=Rt.seriesIndex,Yr=this.getModel(),Mr=Yr.getSeriesByIndex(qt);Mr.appendData(Rt),this._scheduler.unfinished=!0},J.on=oe("on",!1),J.off=oe("off",!1),J.one=oe("one",!1);function tt(Rt,qt,Yr,Mr){for(var Dr=qt==="component",un=Dr?Rt._componentsViews:Rt._chartsViews,wn=Dr?Rt._componentsMap:Rt._chartsMap,ai=Rt._zr,ei=Rt._api,gi=0;gi<un.length;gi++)un[gi].__alive=!1;Dr?Yr.eachComponent(function(Qi,it){Qi!=="series"&&Ii(it)}):Yr.eachSeries(Ii);function Ii(Qi){var it="_ec_"+Qi.id+"_"+Qi.type,Me=wn[it];if(!Me){var je=X(Qi.type),Ye=Dr?c.getClass(je.main,je.sub):d.getClass(je.sub);Me=new Ye,Me.init(Yr,ei),wn[it]=Me,un.push(Me),ai.add(Me.group)}Qi.__viewId=Me.__id=it,Me.__alive=!0,Me.__model=Qi,Me.group.__ecComponentInfo={mainType:Qi.mainType,index:Qi.componentIndex},!Dr&&Mr.prepareView(Me,Qi,Yr,ei)}for(var gi=0;gi<un.length;){var ki=un[gi];ki.__alive?gi++:(!Dr&&ki.renderTask.dispose(),ai.remove(ki.group),ki.dispose(Yr,ei),un.splice(gi,1),delete wn[ki.__id],ki.__id=ki.group.__ecComponentInfo=null)}}function At(Rt){Rt.clearColorPalette(),Rt.eachSeries(function(qt){qt.clearColorPalette()})}function ht(Rt,qt,Yr,Mr){Ke(Rt,qt,Yr,Mr),M(Rt._chartsViews,function(Dr){Dr.__alive=!1}),Jt(Rt,qt,Yr,Mr),M(Rt._chartsViews,function(Dr){Dr.__alive||Dr.remove(qt,Yr)})}function Ke(Rt,qt,Yr,Mr,Dr){M(Dr||Rt._componentsViews,function(un){var wn=un.__model;un.render(wn,qt,Yr,Mr),Vt(wn,un)})}function Jt(Rt,qt,Yr,Mr,Dr){var un=Rt._scheduler,wn;qt.eachSeries(function(ai){var ei=Rt._chartsMap[ai.__viewId];ei.__alive=!0;var gi=ei.renderTask;un.updatePayload(gi,Mr),Dr&&Dr.get(ai.uid)&&gi.dirty(),wn|=gi.perform(un.getPerformArgs(gi)),ei.group.silent=!!ai.get("silent"),Vt(ai,ei),kt(ai,ei)}),un.unfinished|=wn,zt(Rt,qt),C(Rt._zr.dom,qt)}function ct(Rt,qt){M(ft,function(Yr){Yr(Rt,qt)})}var Gt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];J._initEvents=function(){M(Gt,function(Rt){var qt=function(Yr){var Mr=this.getModel(),Dr=Yr.target,un,wn=Rt==="globalout";if(wn)un={};else if(Dr&&Dr.dataIndex!=null){var ai=Dr.dataModel||Mr.getSeriesByIndex(Dr.seriesIndex);un=ai&&ai.getDataParams(Dr.dataIndex,Dr.dataType,Dr)||{}}else Dr&&Dr.eventData&&(un=A.extend({},Dr.eventData));if(un){var ei=un.componentType,gi=un.componentIndex;(ei==="markLine"||ei==="markPoint"||ei==="markArea")&&(ei="series",gi=un.seriesIndex);var Ii=ei&&gi!=null&&Mr.getComponent(ei,gi),ki=Ii&&this[Ii.mainType==="series"?"_chartsMap":"_componentsMap"][Ii.__viewId];un.event=Yr,un.type=Rt,this._ecEventProcessor.eventInfo={targetEl:Dr,packedEvent:un,model:Ii,view:ki},this.trigger(Rt,un)}};qt.zrEventfulCallAtLast=!0,this._zr.on(Rt,qt,this)},this),M($e,function(Rt,qt){this._messageCenter.on(qt,function(Yr){this.trigger(qt,Yr)},this)},this)},J.isDisposed=function(){return this._disposed},J.clear=function(){if(this._disposed){dr(this.id);return}this.setOption({series:[]},!0)},J.dispose=function(){if(this._disposed){dr(this.id);return}this._disposed=!0,v.setAttribute(this.getDom(),lr,"");var Rt=this._api,qt=this._model;M(this._componentsViews,function(Yr){Yr.dispose(qt,Rt)}),M(this._chartsViews,function(Yr){Yr.dispose(qt,Rt)}),this._zr.dispose(),delete vr[this.id]},A.mixin(he,u);function dr(Rt){}function zt(Rt,qt){var Yr=Rt._zr,Mr=Yr.storage,Dr=0;Mr.traverse(function(un){Dr++}),Dr>qt.get("hoverLayerThreshold")&&!f.node&&qt.eachSeries(function(un){if(un.preventUsingHoverLayer)return;var wn=Rt._chartsMap[un.__viewId];wn.__alive&&wn.group.traverse(function(ai){ai.useHoverLayer=!0})})}function kt(Rt,qt){var Yr=Rt.get("blendMode")||null;qt.group.traverse(function(Mr){Mr.isGroup||Mr.style.blend!==Yr&&Mr.setStyle("blend",Yr),Mr.eachPendingDisplayable&&Mr.eachPendingDisplayable(function(Dr){Dr.setStyle("blend",Yr)})})}function Vt(Rt,qt){var Yr=Rt.get("z"),Mr=Rt.get("zlevel");qt.group.traverse(function(Dr){Dr.type!=="group"&&(Yr!=null&&(Dr.z=Yr),Mr!=null&&(Dr.zlevel=Mr))})}function Xe(Rt){var qt=Rt._coordSysMgr;return A.extend(new i(Rt),{getCoordinateSystems:A.bind(qt.getCoordinateSystems,qt),getComponentByElement:function(Yr){for(;Yr;){var Mr=Yr.__ecComponentInfo;if(Mr!=null)return Rt._model.getComponent(Mr.mainType,Mr.index);Yr=Yr.parent}}})}function pe(){this.eventInfo}pe.prototype={constructor:pe,normalizeQuery:function(Rt){var qt={},Yr={},Mr={};if(A.isString(Rt)){var Dr=X(Rt);qt.mainType=Dr.main||null,qt.subType=Dr.sub||null}else{var un=["Index","Name","Id"],wn={name:1,dataIndex:1,dataType:1};A.each(Rt,function(ai,ei){for(var gi=!1,Ii=0;Ii<un.length;Ii++){var ki=un[Ii],Qi=ei.lastIndexOf(ki);if(Qi>0&&Qi===ei.length-ki.length){var it=ei.slice(0,Qi);it!=="data"&&(qt.mainType=it,qt[ki.toLowerCase()]=ai,gi=!0)}}wn.hasOwnProperty(ei)&&(Yr[ei]=ai,gi=!0),gi||(Mr[ei]=ai)})}return{cptQuery:qt,dataQuery:Yr,otherQuery:Mr}},filter:function(Rt,qt,Yr){var Mr=this.eventInfo;if(!Mr)return!0;var Dr=Mr.targetEl,un=Mr.packedEvent,wn=Mr.model,ai=Mr.view;if(!wn||!ai)return!0;var ei=qt.cptQuery,gi=qt.dataQuery;return Ii(ei,wn,"mainType")&&Ii(ei,wn,"subType")&&Ii(ei,wn,"index","componentIndex")&&Ii(ei,wn,"name")&&Ii(ei,wn,"id")&&Ii(gi,un,"name")&&Ii(gi,un,"dataIndex")&&Ii(gi,un,"dataType")&&(!ai.filterForExposedEvent||ai.filterForExposedEvent(Rt,qt.otherQuery,Dr,un));function Ii(ki,Qi,it,Me){return ki[it]==null||Qi[Me||it]===ki[it]}},afterTrigger:function(){this.eventInfo=null}};var te={},$e={},He=[],ae=[],ft=[],Mt=[],mt={},or={},vr={},fn={},sr=new Date-0,Ir=new Date-0,lr="_echarts_instance_";function Wt(Rt){var qt=0,Yr=1,Mr=2,Dr="__connectUpdateStatus";function un(wn,ai){for(var ei=0;ei<wn.length;ei++){var gi=wn[ei];gi[Dr]=ai}}M($e,function(wn,ai){Rt._messageCenter.on(ai,function(ei){if(fn[Rt.group]&&Rt[Dr]!==qt){if(ei&&ei.escapeConnect)return;var gi=Rt.makeActionFromEvent(ei),Ii=[];M(vr,function(ki){ki!==Rt&&ki.group===Rt.group&&Ii.push(ki)}),un(Ii,qt),M(Ii,function(ki){ki[Dr]!==Yr&&ki.dispatchAction(gi)}),un(Ii,Mr)}})})}function xt(Rt,qt,Yr){var Mr=Ui(Rt);if(Mr)return Mr;var Dr=new he(Rt,qt,Yr);return Dr.id="ec_"+sr++,vr[Dr.id]=Dr,v.setAttribute(Rt,lr,Dr.id),Wt(Dr),Dr}function rn(Rt){if(A.isArray(Rt)){var qt=Rt;Rt=null,M(qt,function(Yr){Yr.group!=null&&(Rt=Yr.group)}),Rt=Rt||"g_"+Ir++,M(qt,function(Yr){Yr.group=Rt})}return fn[Rt]=!0,Rt}function Dn(Rt){fn[Rt]=!1}var Xn=Dn;function ri(Rt){typeof Rt=="string"?Rt=vr[Rt]:Rt instanceof he||(Rt=Ui(Rt)),Rt instanceof he&&!Rt.isDisposed()&&Rt.dispose()}function Ui(Rt){return vr[v.getAttribute(Rt,lr)]}function Bn(Rt){return vr[Rt]}function Jn(Rt,qt){mt[Rt]=qt}function Xt(Rt){ae.push(Rt)}function _t(Rt,qt){kr(He,Rt,qt,z)}function Fe(Rt){ft.push(Rt)}function Pe(Rt,qt,Yr){typeof qt=="function"&&(Yr=qt,qt="");var Mr=P(Rt)?Rt.type:[Rt,Rt={event:qt}][0];Rt.event=(Rt.event||Mr).toLowerCase(),qt=Rt.event,R(Oe.test(Mr)&&Oe.test(qt)),te[Mr]||(te[Mr]={action:Yr,actionInfo:Rt}),$e[qt]=Mr}function Be(Rt,qt){t.register(Rt,qt)}function nt(Rt){var qt=t.get(Rt);if(qt)return qt.getDimensionsInfo?qt.getDimensionsInfo():qt.dimensions.slice()}function vt(Rt,qt){kr(Mt,Rt,qt,ee,"layout")}function ar(Rt,qt){kr(Mt,Rt,qt,le,"visual")}function kr(Rt,qt,Yr,Mr,Dr){(F(qt)||P(qt))&&(Yr=qt,qt=Mr);var un=T.wrapStageHandler(Yr,Dr);return un.__prio=qt,un.__raw=Yr,Rt.push(un),un}function mn(Rt,qt){or[Rt]=qt}function Zn(Rt){return r.extend(Rt)}function ni(Rt){return c.extend(Rt)}function ur(Rt){return s.extend(Rt)}function Nt(Rt){return d.extend(Rt)}function bt(Rt){A.$override("createCanvas",Rt)}function gr(Rt,qt,Yr){I.registerMap(Rt,qt,Yr)}function Yt(Rt){var qt=I.retrieveMap(Rt);return qt&&qt[0]&&{geoJson:qt[0].geoJSON,specialAreas:qt[0].specialAreas}}ar(be,E),Xt(e),_t(Q,l),mn("default",_),Pe({type:"highlight",event:"highlight",update:"highlight"},A.noop),Pe({type:"downplay",event:"downplay",update:"downplay"},A.noop),Jn("light",w),Jn("dark",O);var Pt={};D.version=B,D.dependencies=j,D.PRIORITY=Qe,D.init=xt,D.connect=rn,D.disConnect=Dn,D.disconnect=Xn,D.dispose=ri,D.getInstanceByDom=Ui,D.getInstanceById=Bn,D.registerTheme=Jn,D.registerPreprocessor=Xt,D.registerProcessor=_t,D.registerPostUpdate=Fe,D.registerAction=Pe,D.registerCoordinateSystem=Be,D.getCoordinateSystemDimensions=nt,D.registerLayout=vt,D.registerVisual=ar,D.registerLoading=mn,D.extendComponentModel=Zn,D.extendComponentView=ni,D.extendSeriesModel=ur,D.extendChartView=Nt,D.setCanvasCreator=bt,D.registerMap=gr,D.getMap=Yt,D.dataTool=Pt;var rr=n("txkQ");(function(){for(var Rt in rr)rr.hasOwnProperty(Rt)&&(D[Rt]=rr[Rt])})()},Pw59:function(k,D,n){"use strict";var y=n("q1tI"),p=n.n(y),x=Object(y.createContext)({});D.a=x},Q7if:function(k,D,n){var y=n("JEkh"),p=y.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});k.exports=p},Q9mQ:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("UADf"),A=n.n(x)},QBsz:function(k,D){var n=typeof Float32Array=="undefined"?Array:Float32Array;function y(T,w){var O=new n(2);return T==null&&(T=0),w==null&&(w=0),O[0]=T,O[1]=w,O}function p(T,w){return T[0]=w[0],T[1]=w[1],T}function x(T){var w=new n(2);return w[0]=T[0],w[1]=T[1],w}function A(T,w,O){return T[0]=w,T[1]=O,T}function m(T,w,O){return T[0]=w[0]+O[0],T[1]=w[1]+O[1],T}function f(T,w,O,I){return T[0]=w[0]+O[0]*I,T[1]=w[1]+O[1]*I,T}function h(T,w,O){return T[0]=w[0]-O[0],T[1]=w[1]-O[1],T}function u(T){return Math.sqrt(i(T))}var a=u;function i(T){return T[0]*T[0]+T[1]*T[1]}var t=i;function o(T,w,O){return T[0]=w[0]*O[0],T[1]=w[1]*O[1],T}function e(T,w,O){return T[0]=w[0]/O[0],T[1]=w[1]/O[1],T}function l(T,w){return T[0]*w[0]+T[1]*w[1]}function r(T,w,O){return T[0]=w[0]*O,T[1]=w[1]*O,T}function s(T,w){var O=u(w);return O===0?(T[0]=0,T[1]=0):(T[0]=w[0]/O,T[1]=w[1]/O),T}function c(T,w){return Math.sqrt((T[0]-w[0])*(T[0]-w[0])+(T[1]-w[1])*(T[1]-w[1]))}var d=c;function g(T,w){return(T[0]-w[0])*(T[0]-w[0])+(T[1]-w[1])*(T[1]-w[1])}var v=g;function b(T,w){return T[0]=-w[0],T[1]=-w[1],T}function S(T,w,O,I){return T[0]=w[0]+I*(O[0]-w[0]),T[1]=w[1]+I*(O[1]-w[1]),T}function E(T,w,O){var I=w[0],R=w[1];return T[0]=O[0]*I+O[2]*R+O[4],T[1]=O[1]*I+O[3]*R+O[5],T}function C(T,w,O){return T[0]=Math.min(w[0],O[0]),T[1]=Math.min(w[1],O[1]),T}function _(T,w,O){return T[0]=Math.max(w[0],O[0]),T[1]=Math.max(w[1],O[1]),T}D.create=y,D.copy=p,D.clone=x,D.set=A,D.add=m,D.scaleAndAdd=f,D.sub=h,D.len=u,D.length=a,D.lenSquare=i,D.lengthSquare=t,D.mul=o,D.div=e,D.dot=l,D.scale=r,D.normalize=s,D.distance=c,D.dist=d,D.distanceSquare=g,D.distSquare=v,D.negate=b,D.lerp=S,D.applyTransform=E,D.min=C,D.max=_},QDgn:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("r9UT"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},"QO+J":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.createSensor=void 0;var y=x(n("NohK")),p=n("24YM");function x(m){return m&&m.__esModule?m:{default:m}}var A=function(f){var h=void 0,u=[],a=function(){getComputedStyle(f).position==="static"&&(f.style.position="relative");var r=document.createElement("object");return r.onload=function(){r.contentDocument.defaultView.addEventListener("resize",i),i()},r.style.display="block",r.style.position="absolute",r.style.top="0",r.style.left="0",r.style.height="100%",r.style.width="100%",r.style.overflow="hidden",r.style.pointerEvents="none",r.style.zIndex="-1",r.style.opacity="0",r.setAttribute("class",p.SensorClassName),r.setAttribute("tabindex",p.SensorTabIndex),r.type="text/html",f.appendChild(r),r.data="about:blank",r},i=(0,y.default)(function(){u.forEach(function(l){l(f)})}),t=function(r){h||(h=a()),u.indexOf(r)===-1&&u.push(r)},o=function(){h&&h.parentNode&&(h.contentDocument&&h.contentDocument.defaultView.removeEventListener("resize",i),h.parentNode.removeChild(h),h=void 0,u=[])},e=function(r){var s=u.indexOf(r);s!==-1&&u.splice(s,1),u.length===0&&h&&o()};return{element:f,bind:t,destroy:o,unbind:e}};D.createSensor=A},"QQZ/":function(k,D,n){var y=n("Sq3C"),p=n("Z1HP"),x=n("Sxd8"),A=n("dt0z");function m(f,h,u){f=A(f),h=x(h);var a=h?p(f):0;return h&&a<h?y(h-a,u)+f:f}k.exports=m},QUw5:function(k,D,n){var y=n("OlYY"),p=y.extend({type:"dataZoom.select"});k.exports=p},QV2g:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=y;function y(){for(var A,m=[],f=0;f<256;f++){A=f;for(var h=0;h<8;h++)A=A&1?3988292384^A>>>1:A>>>1;m[f]=A}return m}var p=y();function x(A,m,f,h){var u=p,a=h+f;A^=-1;for(var i=h;i<a;i++)A=A>>>8^u[(A^m[i])&255];return A^-1}},QbM5:function(k,D,n){},Qe9p:function(k,D,n){var y=n("1RvN"),p={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function x(w){return w=Math.round(w),w<0?0:w>255?255:w}function A(w){return w=Math.round(w),w<0?0:w>360?360:w}function m(w){return w<0?0:w>1?1:w}function f(w){return w.length&&w.charAt(w.length-1)==="%"?x(parseFloat(w)/100*255):x(parseInt(w,10))}function h(w){return w.length&&w.charAt(w.length-1)==="%"?m(parseFloat(w)/100):m(parseFloat(w))}function u(w,O,I){return I<0?I+=1:I>1&&(I-=1),I*6<1?w+(O-w)*I*6:I*2<1?O:I*3<2?w+(O-w)*(2/3-I)*6:w}function a(w,O,I){return w+(O-w)*I}function i(w,O,I,R,M){return w[0]=O,w[1]=I,w[2]=R,w[3]=M,w}function t(w,O){return w[0]=O[0],w[1]=O[1],w[2]=O[2],w[3]=O[3],w}var o=new y(20),e=null;function l(w,O){e&&t(e,O),e=o.put(w,e||O.slice())}function r(w,O){if(!w)return;O=O||[];var I=o.get(w);if(I)return t(O,I);w=w+"";var R=w.replace(/ /g,"").toLowerCase();if(R in p)return t(O,p[R]),l(w,O),O;if(R.charAt(0)==="#"){if(R.length===4){var M=parseInt(R.substr(1),16);if(!(M>=0&&M<=4095)){i(O,0,0,0,1);return}return i(O,(M&3840)>>4|(M&3840)>>8,M&240|(M&240)>>4,M&15|(M&15)<<4,1),l(w,O),O}else if(R.length===7){var M=parseInt(R.substr(1),16);if(!(M>=0&&M<=16777215)){i(O,0,0,0,1);return}return i(O,(M&16711680)>>16,(M&65280)>>8,M&255,1),l(w,O),O}return}var F=R.indexOf("("),P=R.indexOf(")");if(F!==-1&&P+1===R.length){var X=R.substr(0,F),B=R.substr(F+1,P-(F+1)).split(","),j=1;switch(X){case"rgba":if(B.length!==4){i(O,0,0,0,1);return}j=h(B.pop());case"rgb":if(B.length!==3){i(O,0,0,0,1);return}return i(O,f(B[0]),f(B[1]),f(B[2]),j),l(w,O),O;case"hsla":if(B.length!==4){i(O,0,0,0,1);return}return B[3]=h(B[3]),s(B,O),l(w,O),O;case"hsl":if(B.length!==3){i(O,0,0,0,1);return}return s(B,O),l(w,O),O;default:return}}i(O,0,0,0,1);return}function s(w,O){var I=(parseFloat(w[0])%360+360)%360/360,R=h(w[1]),M=h(w[2]),F=M<=.5?M*(R+1):M+R-M*R,P=M*2-F;return O=O||[],i(O,x(u(P,F,I+1/3)*255),x(u(P,F,I)*255),x(u(P,F,I-1/3)*255),1),w.length===4&&(O[3]=w[3]),O}function c(w){if(!w)return;var O=w[0]/255,I=w[1]/255,R=w[2]/255,M=Math.min(O,I,R),F=Math.max(O,I,R),P=F-M,X=(F+M)/2,B,j;if(P===0)B=0,j=0;else{X<.5?j=P/(F+M):j=P/(2-F-M);var W=((F-O)/6+P/2)/P,z=((F-I)/6+P/2)/P,V=((F-R)/6+P/2)/P;O===F?B=V-z:I===F?B=1/3+W-V:R===F&&(B=2/3+z-W),B<0&&(B+=1),B>1&&(B-=1)}var Q=[B*360,j,X];return w[3]!=null&&Q.push(w[3]),Q}function d(w,O){var I=r(w);if(I){for(var R=0;R<3;R++)O<0?I[R]=I[R]*(1-O)|0:I[R]=(255-I[R])*O+I[R]|0,I[R]>255?I[R]=255:w[R]<0&&(I[R]=0);return T(I,I.length===4?"rgba":"rgb")}}function g(w){var O=r(w);if(O)return((1<<24)+(O[0]<<16)+(O[1]<<8)+ +O[2]).toString(16).slice(1)}function v(w,O,I){if(!(O&&O.length)||!(w>=0&&w<=1))return;I=I||[];var R=w*(O.length-1),M=Math.floor(R),F=Math.ceil(R),P=O[M],X=O[F],B=R-M;return I[0]=x(a(P[0],X[0],B)),I[1]=x(a(P[1],X[1],B)),I[2]=x(a(P[2],X[2],B)),I[3]=m(a(P[3],X[3],B)),I}var b=v;function S(w,O,I){if(!(O&&O.length)||!(w>=0&&w<=1))return;var R=w*(O.length-1),M=Math.floor(R),F=Math.ceil(R),P=r(O[M]),X=r(O[F]),B=R-M,j=T([x(a(P[0],X[0],B)),x(a(P[1],X[1],B)),x(a(P[2],X[2],B)),m(a(P[3],X[3],B))],"rgba");return I?{color:j,leftIndex:M,rightIndex:F,value:R}:j}var E=S;function C(w,O,I,R){if(w=r(w),w)return w=c(w),O!=null&&(w[0]=A(O)),I!=null&&(w[1]=h(I)),R!=null&&(w[2]=h(R)),T(s(w),"rgba")}function _(w,O){if(w=r(w),w&&O!=null)return w[3]=m(O),T(w,"rgba")}function T(w,O){if(!w||!w.length)return;var I=w[0]+","+w[1]+","+w[2];return(O==="rgba"||O==="hsva"||O==="hsla")&&(I+=","+w[3]),O+"("+I+")"}D.parse=r,D.lift=d,D.toHex=g,D.fastLerp=v,D.fastMapToColor=b,D.lerp=S,D.mapToColor=E,D.modifyHSL=C,D.modifyAlpha=_,D.stringify=T},Qi1f:function(k,D,n){"use strict";n.d(D,"g",function(){return E}),n.d(D,"c",function(){return C}),n.d(D,"a",function(){return T}),n.d(D,"b",function(){return w}),n.d(D,"d",function(){return O}),n.d(D,"e",function(){return I}),n.d(D,"f",function(){return M});var y=n("VTBJ"),p=n("U8pU"),x=n("AJpP"),A=n("q1tI"),m=n.n(A),f=n("Kwbf"),h=n("MNnm"),u=n("l4aY"),a="data-rc-order",i="rc-util-key",t=new Map;function o(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=F.mark;return P?P.startsWith("data-")?P:"data-".concat(P):i}function e(F){if(F.attachTo)return F.attachTo;var P=document.querySelector("head");return P||document.body}function l(F){return F==="queue"?"prependQueue":F?"prepend":"append"}function r(F){return Array.from((t.get(F)||F).children).filter(function(P){return P.tagName==="STYLE"})}function s(F){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(h.a)())return null;var X=P.csp,B=P.prepend,j=document.createElement("style");j.setAttribute(a,l(B)),X!=null&&X.nonce&&(j.nonce=X==null?void 0:X.nonce),j.innerHTML=F;var W=e(P),z=W.firstChild;if(B){if(B==="queue"){var V=r(W).filter(function(Q){return["prepend","prependQueue"].includes(Q.getAttribute(a))});if(V.length)return W.insertBefore(j,V[V.length-1].nextSibling),j}W.insertBefore(j,z)}else W.appendChild(j);return j}function c(F){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=e(P);return r(X).find(function(B){return B.getAttribute(o(P))===F})}function d(F){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=c(F,P);if(X){var B=e(P);B.removeChild(X)}}function g(F,P){var X=t.get(F);if(!X||!Object(u.a)(document,X)){var B=s("",P),j=B.parentNode;t.set(F,j),F.removeChild(B)}}function v(){t.clear()}function b(F,P){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},B=e(X);g(B,X);var j=c(P,X);if(j){var W,z;if((W=X.csp)!==null&&W!==void 0&&W.nonce&&j.nonce!==((z=X.csp)===null||z===void 0?void 0:z.nonce)){var V;j.nonce=(V=X.csp)===null||V===void 0?void 0:V.nonce}return j.innerHTML!==F&&(j.innerHTML=F),j}var Q=s(F,X);return Q.setAttribute(o(X),P),Q}var S=n("Pw59");function E(F,P){Object(f.a)(F,"[@ant-design/icons] ".concat(P))}function C(F){return Object(p.a)(F)==="object"&&typeof F.name=="string"&&typeof F.theme=="string"&&(Object(p.a)(F.icon)==="object"||typeof F.icon=="function")}function _(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(F).reduce(function(P,X){var B=F[X];switch(X){case"class":P.className=B,delete P.class;break;default:P[X]=B}return P},{})}function T(F,P,X){return X?m.a.createElement(F.tag,Object(y.a)(Object(y.a)({key:P},_(F.attrs)),X),(F.children||[]).map(function(B,j){return T(B,"".concat(P,"-").concat(F.tag,"-").concat(j))})):m.a.createElement(F.tag,Object(y.a)({key:P},_(F.attrs)),(F.children||[]).map(function(B,j){return T(B,"".concat(P,"-").concat(F.tag,"-").concat(j))}))}function w(F){return Object(x.generate)(F)[0]}function O(F){return F?Array.isArray(F)?F:[F]:[]}var I={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},R=`
|
|
|
.anticon {
|
|
|
display: inline-block;
|
|
|
color: inherit;
|
|
|
font-style: normal;
|
|
|
line-height: 0;
|
|
|
text-align: center;
|
|
|
text-transform: none;
|
|
|
vertical-align: -0.125em;
|
|
|
text-rendering: optimizeLegibility;
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
}
|
|
|
|
|
|
.anticon > * {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.anticon svg {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
.anticon::before {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
.anticon .anticon-icon {
|
|
|
display: block;
|
|
|
}
|
|
|
|
|
|
.anticon[tabindex] {
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
|
|
|
.anticon-spin::before,
|
|
|
.anticon-spin {
|
|
|
display: inline-block;
|
|
|
-webkit-animation: loadingCircle 1s infinite linear;
|
|
|
animation: loadingCircle 1s infinite linear;
|
|
|
}
|
|
|
|
|
|
@-webkit-keyframes loadingCircle {
|
|
|
100% {
|
|
|
-webkit-transform: rotate(360deg);
|
|
|
transform: rotate(360deg);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@keyframes loadingCircle {
|
|
|
100% {
|
|
|
-webkit-transform: rotate(360deg);
|
|
|
transform: rotate(360deg);
|
|
|
}
|
|
|
}
|
|
|
`,M=function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:R,X=Object(A.useContext)(S.a),B=X.csp;Object(A.useEffect)(function(){b(P,"@ant-design-icons",{prepend:!0,csp:B})},[])}},QkVE:function(k,D,n){var y=n("EpBk");function p(x,A){var m=x.__data__;return y(A)?m[typeof A=="string"?"string":"hash"]:m.map}k.exports=p},QoRX:function(k,D){function n(y,p){for(var x=-1,A=y==null?0:y.length;++x<A;)if(p(y[x],x,y))return!0;return!1}k.exports=n},QqLw:function(k,D,n){var y=n("tadb"),p=n("ebwN"),x=n("HOxn"),A=n("yGk4"),m=n("Of+w"),f=n("NykK"),h=n("3Fdi"),u="[object Map]",a="[object Object]",i="[object Promise]",t="[object Set]",o="[object WeakMap]",e="[object DataView]",l=h(y),r=h(p),s=h(x),c=h(A),d=h(m),g=f;(y&&g(new y(new ArrayBuffer(1)))!=e||p&&g(new p)!=u||x&&g(x.resolve())!=i||A&&g(new A)!=t||m&&g(new m)!=o)&&(g=function(v){var b=f(v),S=b==a?v.constructor:void 0,E=S?h(S):"";if(E)switch(E){case l:return e;case r:return u;case s:return i;case c:return t;case d:return o}return b}),k.exports=g},Qs9O:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};D.default=y},QuXc:function(k,D){var n=function(x){this.colorStops=x||[]};n.prototype={constructor:n,addColorStop:function(x,A){this.colorStops.push({offset:x,color:A})}};var y=n;k.exports=y},Qvb6:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("ItGF"),A=n("B9fm"),m=n("gvm7"),f=n("7aKB"),h=n("OELB"),u=n("IwbS"),a=n("Ez2D"),i=n("+TT/"),t=n("Qxkt"),o=n("F9bG"),e=n("aX7z"),l=n("/y7N"),r=n("4NO4"),s=r.getTooltipRenderMode,c=p.bind,d=p.each,g=h.parsePercent,v=new u.Rect({shape:{x:-1,y:-1,width:2,height:2}}),b=y.extendComponentView({type:"tooltip",init:function(O,I){if(x.node)return;var R=O.getComponent("tooltip"),M=R.get("renderMode");this._renderMode=s(M);var F;this._renderMode==="html"?(F=new A(I.getDom(),I,{appendToBody:R.get("appendToBody",!0)}),this._newLine="<br/>"):(F=new m(I),this._newLine=`
|
|
|
`),this._tooltipContent=F},render:function(O,I,R){if(x.node)return;this.group.removeAll(),this._tooltipModel=O,this._ecModel=I,this._api=R,this._lastDataByCoordSys=null,this._alwaysShowContent=O.get("alwaysShowContent");var M=this._tooltipContent;M.update(),M.setEnterable(O.get("enterable")),this._initGlobalListener(),this._keepShow()},_initGlobalListener:function(){var O=this._tooltipModel,I=O.get("triggerOn");o.register("itemTooltip",this._api,c(function(R,M,F){I!=="none"&&(I.indexOf(R)>=0?this._tryShow(M,F):R==="leave"&&this._hide(F))},this))},_keepShow:function(){var O=this._tooltipModel,I=this._ecModel,R=this._api;if(this._lastX!=null&&this._lastY!=null&&O.get("triggerOn")!=="none"){var M=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!R.isDisposed()&&M.manuallyShowTip(O,I,R,{x:M._lastX,y:M._lastY})})}},manuallyShowTip:function(O,I,R,M){if(M.from===this.uid||x.node)return;var F=E(M,R);this._ticket="";var P=M.dataByCoordSys;if(M.tooltip&&M.x!=null&&M.y!=null){var X=v;X.position=[M.x,M.y],X.update(),X.tooltip=M.tooltip,this._tryShow({offsetX:M.x,offsetY:M.y,target:X},F)}else if(P)this._tryShow({offsetX:M.x,offsetY:M.y,position:M.position,dataByCoordSys:M.dataByCoordSys,tooltipOption:M.tooltipOption},F);else if(M.seriesIndex!=null){if(this._manuallyAxisShowTip(O,I,R,M))return;var B=a(M,I),j=B.point[0],W=B.point[1];j!=null&&W!=null&&this._tryShow({offsetX:j,offsetY:W,position:M.position,target:B.el},F)}else M.x!=null&&M.y!=null&&(R.dispatchAction({type:"updateAxisPointer",x:M.x,y:M.y}),this._tryShow({offsetX:M.x,offsetY:M.y,position:M.position,target:R.getZr().findHover(M.x,M.y).target},F))},manuallyHideTip:function(O,I,R,M){var F=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&F.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,M.from!==this.uid&&this._hide(E(M,R))},_manuallyAxisShowTip:function(O,I,R,M){var F=M.seriesIndex,P=M.dataIndex,X=I.getComponent("axisPointer").coordSysAxesInfo;if(F==null||P==null||X==null)return;var B=I.getSeriesByIndex(F);if(!B)return;var j=B.getData(),O=S([j.getItemModel(P),B,(B.coordinateSystem||{}).model,O]);return O.get("trigger")!=="axis"?void 0:(R.dispatchAction({type:"updateAxisPointer",seriesIndex:F,dataIndex:P,position:M.position}),!0)},_tryShow:function(O,I){var R=O.target,M=this._tooltipModel;if(!M)return;this._lastX=O.offsetX,this._lastY=O.offsetY;var F=O.dataByCoordSys;F&&F.length?this._showAxisTooltip(F,O):R&&R.dataIndex!=null?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(O,R,I)):R&&R.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(O,R,I)):(this._lastDataByCoordSys=null,this._hide(I))},_showOrMove:function(O,I){var R=O.get("showDelay");I=p.bind(I,this),clearTimeout(this._showTimout),R>0?this._showTimout=setTimeout(I,R):I()},_showAxisTooltip:function(O,I){var R=this._ecModel,M=this._tooltipModel,F=[I.offsetX,I.offsetY],P=[],X=[],B=S([I.tooltipOption,M]),j=this._renderMode,W=this._newLine,z={};d(O,function(Q){d(Q.dataByAxis,function(G){var ee=R.getComponent(G.axisDim+"Axis",G.axisIndex),ce=G.value,be=[];if(!ee||ce==null)return;var le=l.getValueLabel(ce,ee.axis,R,G.seriesDataIndices,G.valueLabelOpt);p.each(G.seriesDataIndices,function(ke){var Re=R.getSeriesByIndex(ke.seriesIndex),Qe=ke.dataIndexInside,We=Re&&Re.getDataParams(Qe);if(We.axisDim=G.axisDim,We.axisIndex=G.axisIndex,We.axisType=G.axisType,We.axisId=G.axisId,We.axisValue=e.getAxisRawValue(ee.axis,ce),We.axisValueLabel=le,We){X.push(We);var ot=Re.formatTooltip(Qe,!0,null,j),Oe;if(p.isObject(ot)){Oe=ot.html;var oe=ot.markers;p.merge(z,oe)}else Oe=ot;be.push(Oe)}});var Ie=le;j!=="html"?P.push(be.join(W)):P.push((Ie?f.encodeHTML(Ie)+W:"")+be.join(W))})},this),P.reverse(),P=P.join(this._newLine+this._newLine);var V=I.position;this._showOrMove(B,function(){this._updateContentNotChangedOnAxis(O)?this._updatePosition(B,V,F[0],F[1],this._tooltipContent,X):this._showTooltipContent(B,P,X,Math.random(),F[0],F[1],V,void 0,z)})},_showSeriesItemTooltip:function(O,I,R){var M=this._ecModel,F=I.seriesIndex,P=M.getSeriesByIndex(F),X=I.dataModel||P,B=I.dataIndex,j=I.dataType,W=X.getData(j),z=S([W.getItemModel(B),X,P&&(P.coordinateSystem||{}).model,this._tooltipModel]),V=z.get("trigger");if(V!=null&&V!=="item")return;var Q=X.getDataParams(B,j),G=X.formatTooltip(B,!1,j,this._renderMode),ee,ce;p.isObject(G)?(ee=G.html,ce=G.markers):(ee=G,ce=null);var be="item_"+X.name+"_"+B;this._showOrMove(z,function(){this._showTooltipContent(z,ee,Q,be,O.offsetX,O.offsetY,O.position,O.target,ce)}),R({type:"showTip",dataIndexInside:B,dataIndex:W.getRawIndex(B),seriesIndex:F,from:this.uid})},_showComponentItemTooltip:function(O,I,R){var M=I.tooltip;if(typeof M=="string"){var F=M;M={content:F,formatter:F}}var P=new t(M,this._tooltipModel,this._ecModel),X=P.get("content"),B=Math.random();this._showOrMove(P,function(){this._showTooltipContent(P,X,P.get("formatterParams")||{},B,O.offsetX,O.offsetY,O.position,I)}),R({type:"showTip",from:this.uid})},_showTooltipContent:function(O,I,R,M,F,P,X,B,j){if(this._ticket="",!O.get("showContent")||!O.get("show"))return;var W=this._tooltipContent,z=O.get("formatter");X=X||O.get("position");var V=I;if(z&&typeof z=="string")V=f.formatTpl(z,R,!0);else if(typeof z=="function"){var Q=c(function(G,ee){G===this._ticket&&(W.setContent(ee,j,O),this._updatePosition(O,X,F,P,W,R,B))},this);this._ticket=M,V=z(R,M,Q)}W.setContent(V,j,O),W.show(O),this._updatePosition(O,X,F,P,W,R,B)},_updatePosition:function(O,I,R,M,F,P,X){var B=this._api.getWidth(),j=this._api.getHeight();I=I||O.get("position");var W=F.getSize(),z=O.get("align"),V=O.get("verticalAlign"),Q=X&&X.getBoundingRect().clone();if(X&&Q.applyTransform(X.transform),typeof I=="function"&&(I=I([R,M],P,F.el,Q,{viewSize:[B,j],contentSize:W.slice()})),p.isArray(I))R=g(I[0],B),M=g(I[1],j);else if(p.isObject(I)){I.width=W[0],I.height=W[1];var G=i.getLayoutRect(I,{width:B,height:j});R=G.x,M=G.y,z=null,V=null}else if(typeof I=="string"&&X){var ee=T(I,Q,W);R=ee[0],M=ee[1]}else{var ee=C(R,M,F,B,j,z?null:20,V?null:20);R=ee[0],M=ee[1]}if(z&&(R-=w(z)?W[0]/2:z==="right"?W[0]:0),V&&(M-=w(V)?W[1]/2:V==="bottom"?W[1]:0),O.get("confine")){var ee=_(R,M,F,B,j);R=ee[0],M=ee[1]}F.moveTo(R,M)},_updateContentNotChangedOnAxis:function(O){var I=this._lastDataByCoordSys,R=!!I&&I.length===O.length;return R&&d(I,function(M,F){var P=M.dataByAxis||{},X=O[F]||{},B=X.dataByAxis||[];R&=P.length===B.length,R&&d(P,function(j,W){var z=B[W]||{},V=j.seriesDataIndices||[],Q=z.seriesDataIndices||[];R&=j.value===z.value&&j.axisType===z.axisType&&j.axisId===z.axisId&&V.length===Q.length,R&&d(V,function(G,ee){var ce=Q[ee];R&=G.seriesIndex===ce.seriesIndex&&G.dataIndex===ce.dataIndex})})}),this._lastDataByCoordSys=O,!!R},_hide:function(O){this._lastDataByCoordSys=null,O({type:"hideTip",from:this.uid})},dispose:function(O,I){if(x.node)return;this._tooltipContent.dispose(),o.unregister("itemTooltip",I)}});function S(O){for(var I=O.pop();O.length;){var R=O.pop();R&&(t.isInstance(R)&&(R=R.get("tooltip",!0)),typeof R=="string"&&(R={formatter:R}),I=new t(R,I,I.ecModel))}return I}function E(O,I){return O.dispatchAction||p.bind(I.dispatchAction,I)}function C(O,I,R,M,F,P,X){var B=R.getOuterSize(),j=B.width,W=B.height;return P!=null&&(O+j+P>M?O-=j+P:O+=P),X!=null&&(I+W+X>F?I-=W+X:I+=X),[O,I]}function _(O,I,R,M,F){var P=R.getOuterSize(),X=P.width,B=P.height;return O=Math.min(O+X,M)-X,I=Math.min(I+B,F)-B,O=Math.max(O,0),I=Math.max(I,0),[O,I]}function T(O,I,R){var M=R[0],F=R[1],P=5,X=0,B=0,j=I.width,W=I.height;switch(O){case"inside":X=I.x+j/2-M/2,B=I.y+W/2-F/2;break;case"top":X=I.x+j/2-M/2,B=I.y-F-P;break;case"bottom":X=I.x+j/2-M/2,B=I.y+W+P;break;case"left":X=I.x-M-P,B=I.y+W/2-F/2;break;case"right":X=I.x+j+P,B=I.y+W/2-F/2}return[X,B]}function w(O){return O==="center"||O==="middle"}k.exports=b},Qxkt:function(k,D,n){var y=n("bYtY"),p=n("ItGF"),x=n("4NO4"),A=x.makeInner,m=n("Yl7c"),f=m.enableClassExtend,h=m.enableClassCheck,u=n("OQFs"),a=n("m9t5"),i=n("/iHx"),t=n("VR9l"),o=y.mixin,e=A();function l(d,g,v){this.parentModel=g,this.ecModel=v,this.option=d}l.prototype={constructor:l,init:null,mergeOption:function(d){y.merge(this.option,d,!0)},get:function(d,g){return d==null?this.option:r(this.option,this.parsePath(d),!g&&s(this,d))},getShallow:function(d,g){var v=this.option,b=v==null?v:v[d],S=!g&&s(this,d);return b==null&&S&&(b=S.getShallow(d)),b},getModel:function(d,g){var v=d==null?this.option:r(this.option,d=this.parsePath(d)),b;return g=g||(b=s(this,d))&&b.getModel(d),new l(v,g,this.ecModel)},isEmpty:function(){return this.option==null},restoreData:function(){},clone:function(){var d=this.constructor;return new d(y.clone(this.option))},setReadOnly:function(d){},parsePath:function(d){return typeof d=="string"&&(d=d.split(".")),d},customizeGetParent:function(d){e(this).getParent=d},isAnimationEnabled:function(){if(!p.node){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}};function r(d,g,v){for(var b=0;b<g.length;b++){if(!g[b])continue;if(d=d&&typeof d=="object"?d[g[b]]:null,d==null)break}return d==null&&v&&(d=v.get(g)),d}function s(d,g){var v=e(d).getParent;return v?v.call(d,g):d.parentModel}f(l),h(l),o(l,u),o(l,a),o(l,i),o(l,t);var c=l;k.exports=c},QyFq:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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:"filled"};D.default=y},QzjZ:function(k,D,n){var y=n("S/Yl"),p=n("IDmD");function x(A,m){var f=[];return A.eachComponent("singleAxis",function(h,u){var a=new y(h,A,m);a.name="single_"+u,a.resize(h,m),h.coordinateSystem=a,f.push(a)}),A.eachSeries(function(h){if(h.get("coordinateSystem")==="singleAxis"){var u=A.queryComponents({mainType:"singleAxis",index:h.get("singleAxisIndex"),id:h.get("singleAxisId")})[0];h.coordinateSystem=u&&u.coordinateSystem}}),f}p.register("single",{create:x,dimensions:y.prototype.dimensions})},R4DB:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("QyFq")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="CaretDownFilled";var i=A.forwardRef(a);D.default=i},R4Th:function(k,D,n){var y=n("ProS"),p=n("9wZj"),x=n("yO87"),A=n("Fofx"),m=n("h8O9"),f=y.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new p(x)},render:function(h,u,a){var i=h.getData(),t=this._symbolDraw;t.updateData(i),this.group.add(t.group)},updateTransform:function(h,u,a){var i=h.getData();this.group.dirty();var t=m().reset(h);t.progress&&t.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_updateGroupTransform:function(h){var u=h.coordinateSystem;u&&u.getRoamTransform&&(this.group.transform=A.clone(u.getRoamTransform()),this.group.decomposeTransform())},remove:function(h,u){this._symbolDraw&&this._symbolDraw.remove(u)},dispose:function(){}});k.exports=f},R9oj:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("pwpV"),A=n.n(x)},RBEP:function(k,D,n){for(var y=n("ProS"),p=n("VaxA"),x=function(){},A=["treemapZoomToNode","treemapRender","treemapMove"],m=0;m<A.length;m++)y.registerAction({type:A[m],update:"updateView"},x);y.registerAction({type:"treemapRootToNode",update:"updateView"},function(f,h){h.eachComponent({mainType:"series",subType:"treemap",query:f},u);function u(a,i){var t=["treemapZoomToNode","treemapRootToNode"],o=p.retrieveTargetInfo(f,t,a);if(o){var e=a.getViewRoot();e&&(f.direction=p.aboveViewRoot(e,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}})},RCxd:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="ExclamationCircleOutlined";var h=D.a=p.forwardRef(f)},RDYZ:function(k,D,n){var y=n("dMvE");function p(A){this._target=A.target,this._life=A.life||1e3,this._delay=A.delay||0,this._initialized=!1,this.loop=A.loop==null?!1:A.loop,this.gap=A.gap||0,this.easing=A.easing||"Linear",this.onframe=A.onframe,this.ondestroy=A.ondestroy,this.onrestart=A.onrestart,this._pausedTime=0,this._paused=!1}p.prototype={constructor:p,step:function(m,f){if(this._initialized||(this._startTime=m+this._delay,this._initialized=!0),this._paused){this._pausedTime+=f;return}var h=(m-this._startTime-this._pausedTime)/this._life;if(h<0)return;h=Math.min(h,1);var u=this.easing,a=typeof u=="string"?y[u]:u,i=typeof a=="function"?a(h):h;return this.fire("frame",i),h===1?this.loop?(this.restart(m),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(m){var f=(m-this._startTime-this._pausedTime)%this._life;this._startTime=m-f+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(m,f){m="on"+m,this[m]&&this[m](this._target,f)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var x=p;k.exports=x},RELg:function(k,D,n){var y=n("MFOe"),p=y.Global;k.exports={name:"oldIE-userDataStorage",write:h,read:u,each:a,remove:i,clearAll:t};var x="storejs",A=p.document,m=l(),f=(p.navigator?p.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function h(r,s){if(f)return;var c=e(r);m(function(d){d.setAttribute(c,s),d.save(x)})}function u(r){if(f)return;var s=e(r),c=null;return m(function(d){c=d.getAttribute(s)}),c}function a(r){m(function(s){for(var c=s.XMLDocument.documentElement.attributes,d=c.length-1;d>=0;d--){var g=c[d];r(s.getAttribute(g.name),g.name)}})}function i(r){var s=e(r);m(function(c){c.removeAttribute(s),c.save(x)})}function t(){m(function(r){var s=r.XMLDocument.documentElement.attributes;r.load(x);for(var c=s.length-1;c>=0;c--)r.removeAttribute(s[c].name);r.save(x)})}var o=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function e(r){return r.replace(/^\d/,"___$&").replace(o,"___")}function l(){if(!A||!A.documentElement||!A.documentElement.addBehavior)return null;var r="script",s,c,d;try{c=new ActiveXObject("htmlfile"),c.open(),c.write("<"+r+">document.w=window</"+r+'><iframe src="/favicon.ico"></iframe>'),c.close(),s=c.w.frames[0].document,d=s.createElement("div")}catch(g){d=A.createElement("div"),s=A.body}return function(g){var v=[].slice.call(arguments,0);v.unshift(d),s.appendChild(d),d.addBehavior("#default#userData"),d.load(x),g.apply(this,v),s.removeChild(d);return}}},RPvy:function(k,D,n){var y=n("ProS"),p=n("VaxA"),x="sunburstRootToNode";y.registerAction({type:x,update:"updateView"},function(f,h){h.eachComponent({mainType:"series",subType:"sunburst",query:f},u);function u(a,i){var t=p.retrieveTargetInfo(f,[x],a);if(t){var o=a.getViewRoot();o&&(f.direction=p.aboveViewRoot(o,t.node)?"rollUp":"drillDown"),a.resetViewRoot(t.node)}}});var A="sunburstHighlight";y.registerAction({type:A,update:"updateView"},function(f,h){h.eachComponent({mainType:"series",subType:"sunburst",query:f},u);function u(a,i){var t=p.retrieveTargetInfo(f,[A],a);t&&(f.highlight=t.node)}});var m="sunburstUnhighlight";y.registerAction({type:m,update:"updateView"},function(f,h){h.eachComponent({mainType:"series",subType:"sunburst",query:f},u);function u(a,i){f.unhighlight=!0}})},RSch:function(k,D,n){var y=n("IwbS"),p=n("bYtY");function x(f,h,u){y.Group.call(this),this._createPolyline(f,h,u)}var A=x.prototype;A._createPolyline=function(f,h,u){var a=f.getItemLayout(h),i=new y.Polyline({shape:{points:a}});this.add(i),this._updateCommonStl(f,h,u)},A.updateData=function(f,h,u){var a=f.hostModel,i=this.childAt(0),t={shape:{points:f.getItemLayout(h)}};y.updateProps(i,t,a,h),this._updateCommonStl(f,h,u)},A._updateCommonStl=function(f,h,u){var a=this.childAt(0),i=f.getItemModel(h),t=f.getItemVisual(h,"color"),o=u&&u.lineStyle,e=u&&u.hoverLineStyle;(!u||f.hasItemOption)&&(o=i.getModel("lineStyle").getLineStyle(),e=i.getModel("emphasis.lineStyle").getLineStyle()),a.useStyle(p.defaults({strokeNoScale:!0,fill:"none",stroke:t},o)),a.hoverStyle=e,y.setHoverStyle(this)},A.updateLayout=function(f,h){var u=this.childAt(0);u.setShape("points",f.getItemLayout(h))},p.inherits(x,y.Group);var m=x;k.exports=m},RXMa:function(k,D,n){var y=n("y+Vt"),p=y.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(A,m){var f=m.cx,h=m.cy,u=Math.PI*2;A.moveTo(f+m.r,h),A.arc(f,h,m.r,0,u,!1),A.moveTo(f+m.r0,h),A.arc(f,h,m.r0,0,u,!0)}});k.exports=p},RlCK:function(k,D,n){var y=n("ProS"),p=n("bYtY");function x(A,m,f){var h={},u=A==="toggleSelected",a;return f.eachComponent("legend",function(i){u&&a!=null?i[a?"select":"unSelect"](m.name):A==="allSelect"||A==="inverseSelect"?i[A]():(i[A](m.name),a=i.isSelected(m.name));var t=i.getData();p.each(t,function(o){var e=o.get("name");if(e===`
|
|
|
`||e==="")return;var l=i.isSelected(e);h.hasOwnProperty(e)?h[e]=h[e]&&l:h[e]=l})}),A==="allSelect"||A==="inverseSelect"?{selected:h}:{name:m.name,selected:h}}y.registerAction("legendToggleSelect","legendselectchanged",p.curry(x,"toggleSelected")),y.registerAction("legendAllSelect","legendselectall",p.curry(x,"allSelect")),y.registerAction("legendInverseSelect","legendinverseselect",p.curry(x,"inverseSelect")),y.registerAction("legendSelect","legendselected",p.curry(x,"select")),y.registerAction("legendUnSelect","legendunselected",p.curry(x,"unSelect"))},RotF:function(k,D,n){k.exports=n("LSTS")},Rx6q:function(k,D){function n(y){var p=y.getRect(),x=y.getRangeInfo();return{coordSys:{type:"calendar",x:p.x,y:p.y,width:p.width,height:p.height,cellWidth:y.getCellWidth(),cellHeight:y.getCellHeight(),rangeInfo:{start:x.start,end:x.end,weeks:x.weeks,dayCount:x.allDay}},api:{coord:function(A,m){return y.dataToPoint(A,m)}}}}k.exports=n},"S/Yl":function(k,D,n){var y=n("Zvw2"),p=n("aX7z"),x=n("+TT/"),A=x.getLayoutRect,m=n("bYtY"),f=m.each;function h(a,i,t){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(a,i,t),this.model=a}h.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:h,_init:function(a,i,t){var o=this.dimension,e=new y(o,p.createScaleByModel(a),[0,0],a.get("type"),a.get("position")),l=e.type==="category";e.onBand=l&&a.get("boundaryGap"),e.inverse=a.get("inverse"),e.orient=a.get("orient"),a.axis=e,e.model=a,e.coordinateSystem=this,this._axis=e},update:function(a,i){a.eachSeries(function(t){if(t.coordinateSystem===this){var o=t.getData();f(o.mapDimension(this.dimension,!0),function(e){this._axis.scale.unionExtentFromData(o,e)},this),p.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(a,i){this._rect=A({left:a.get("left"),top:a.get("top"),right:a.get("right"),bottom:a.get("bottom"),width:a.get("width"),height:a.get("height")},{width:i.getWidth(),height:i.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var a=this._rect,i=this._axis,t=i.isHorizontal(),o=t?[0,a.width]:[0,a.height],e=i.reverse?1:0;i.setExtent(o[e],o[1-e]),this._updateAxisTransform(i,t?a.x:a.y)},_updateAxisTransform:function(a,i){var t=a.getExtent(),o=t[0]+t[1],e=a.isHorizontal();a.toGlobalCoord=e?function(l){return l+i}:function(l){return o-l+i},a.toLocalCoord=e?function(l){return l-i}:function(l){return o-l+i}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(a){var i=this.getRect(),t=this.getAxis(),o=t.orient;return o==="horizontal"?t.contain(t.toLocalCoord(a[0]))&&a[1]>=i.y&&a[1]<=i.y+i.height:t.contain(t.toLocalCoord(a[1]))&&a[0]>=i.y&&a[0]<=i.y+i.height},pointToData:function(a){var i=this.getAxis();return[i.coordToData(i.toLocalCoord(a[i.orient==="horizontal"?0:1]))]},dataToPoint:function(a){var i=this.getAxis(),t=this.getRect(),o=[],e=i.orient==="horizontal"?0:1;return a instanceof Array&&(a=a[0]),o[e]=i.toGlobalCoord(i.dataToCoord(+a)),o[1-e]=e===0?t.y+t.height/2:t.x+t.width/2,o}};var u=h;k.exports=u},"S3Q+":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("blIg"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},S6kV:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("OLod"))})(this,function(y){return y.mode.OFB=function(){var p=y.lib.BlockCipherMode.extend(),x=p.Encryptor=p.extend({processBlock:function(m,f){var h=this._cipher,u=h.blockSize,a=this._iv,i=this._keystream;a&&(i=this._keystream=a.slice(0),this._iv=void 0),h.encryptBlock(i,0);for(var t=0;t<u;t++)m[f+t]^=i[t]}});return p.Decryptor=x,p}(),y.mode.OFB})},"SA+Z":function(k,D,n){var y=n("wTVA"),p=n("EbDI"),x=n("ZhPi"),A=n("wkBT");function m(f){return y(f)||p(f)||x(f)||A()}k.exports=m,k.exports.__esModule=!0,k.exports.default=k.exports},"SA4+":function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),A=n("IwbS"),m=n("zYTA"),f=n("bYtY");function h(t,o,e){var l=t[1]-t[0];o=f.map(o,function(c){return{interval:[(c.interval[0]-t[0])/l,(c.interval[1]-t[0])/l]}});var r=o.length,s=0;return function(c){for(var d=s;d<r;d++){var g=o[d].interval;if(g[0]<=c&&c<=g[1]){s=d;break}}if(d===r)for(var d=s-1;d>=0;d--){var g=o[d].interval;if(g[0]<=c&&c<=g[1]){s=d;break}}return d>=0&&d<r&&e[d]}}function u(t,o){var e=t[1]-t[0];return o=[(o[0]-t[0])/e,(o[1]-t[0])/e],function(l){return l>=o[0]&&l<=o[1]}}function a(t){var o=t.dimensions;return o[0]==="lng"&&o[1]==="lat"}var i=x.extendChartView({type:"heatmap",render:function(t,o,e){var l;o.eachComponent("visualMap",function(s){s.eachTargetSeries(function(c){c===t&&(l=s)})}),this.group.removeAll(),this._incrementalDisplayable=null;var r=t.coordinateSystem;r.type==="cartesian2d"||r.type==="calendar"?this._renderOnCartesianAndCalendar(t,e,0,t.getData().count()):a(r)&&this._renderOnGeo(r,t,l,e)},incrementalPrepareRender:function(t,o,e){this.group.removeAll()},incrementalRender:function(t,o,e,l){var r=o.coordinateSystem;r&&this._renderOnCartesianAndCalendar(o,l,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,o,e,l,r){var s=t.coordinateSystem,c,d;if(s.type==="cartesian2d"){var g=s.getAxis("x"),v=s.getAxis("y");c=g.getBandWidth(),d=v.getBandWidth()}for(var b=this.group,S=t.getData(),E="itemStyle",C="emphasis.itemStyle",_="label",T="emphasis.label",w=t.getModel(E).getItemStyle(["color"]),O=t.getModel(C).getItemStyle(),I=t.getModel(_),R=t.getModel(T),M=s.type,F=M==="cartesian2d"?[S.mapDimension("x"),S.mapDimension("y"),S.mapDimension("value")]:[S.mapDimension("time"),S.mapDimension("value")],P=e;P<l;P++){var X;if(M==="cartesian2d"){if(isNaN(S.get(F[2],P)))continue;var B=s.dataToPoint([S.get(F[0],P),S.get(F[1],P)]);X=new A.Rect({shape:{x:Math.floor(Math.round(B[0])-c/2),y:Math.floor(Math.round(B[1])-d/2),width:Math.ceil(c),height:Math.ceil(d)},style:{fill:S.getItemVisual(P,"color"),opacity:S.getItemVisual(P,"opacity")}})}else{if(isNaN(S.get(F[1],P)))continue;X=new A.Rect({z2:1,shape:s.dataToRect([S.get(F[0],P)]).contentShape,style:{fill:S.getItemVisual(P,"color"),opacity:S.getItemVisual(P,"opacity")}})}var j=S.getItemModel(P);S.hasItemOption&&(w=j.getModel(E).getItemStyle(["color"]),O=j.getModel(C).getItemStyle(),I=j.getModel(_),R=j.getModel(T));var W=t.getRawValue(P),z="-";W&&W[2]!=null&&(z=W[2]),A.setLabelStyle(w,O,I,R,{labelFetcher:t,labelDataIndex:P,defaultText:z,isRectText:!0}),X.setStyle(w),A.setHoverStyle(X,S.hasItemOption?O:f.extend({},O)),X.incremental=r,r&&(X.useHoverLayer=!0),b.add(X),S.setItemGraphicEl(P,X)}},_renderOnGeo:function(t,o,e,l){var r=e.targetVisuals.inRange,s=e.targetVisuals.outOfRange,c=o.getData(),d=this._hmLayer||this._hmLayer||new m;d.blurSize=o.get("blurSize"),d.pointSize=o.get("pointSize"),d.minOpacity=o.get("minOpacity"),d.maxOpacity=o.get("maxOpacity");var g=t.getViewRect().clone(),v=t.getRoamTransform();g.applyTransform(v);var b=Math.max(g.x,0),S=Math.max(g.y,0),E=Math.min(g.width+g.x,l.getWidth()),C=Math.min(g.height+g.y,l.getHeight()),_=E-b,T=C-S,w=[c.mapDimension("lng"),c.mapDimension("lat"),c.mapDimension("value")],O=c.mapArray(w,function(F,P,X){var B=t.dataToPoint([F,P]);return B[0]-=b,B[1]-=S,B.push(X),B}),I=e.getExtent(),R=e.type==="visualMap.continuous"?u(I,e.option.range):h(I,e.getPieceList(),e.option.selected);d.update(O,_,T,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:s.color.getColorMapper()},R);var M=new A.Image({style:{width:_,height:T,x:b,y:S,image:d.canvas},silent:!0});this.group.add(M)},dispose:function(){}});k.exports=i},SA8n:function(k,D,n){var y=n("Sj9i"),p=n("QBsz"),x=n("U/Mo"),A=x.getSymbolSize,m=[],f=[],h=[],u=y.quadraticAt,a=p.distSquare,i=Math.abs;function t(e,l,r){for(var s=e[0],c=e[1],d=e[2],g=Infinity,v,b=r*r,S=.1,E=.1;E<=.9;E+=.1){m[0]=u(s[0],c[0],d[0],E),m[1]=u(s[1],c[1],d[1],E);var C=i(a(m,l)-b);C<g&&(g=C,v=E)}for(var _=0;_<32;_++){var T=v+S;f[0]=u(s[0],c[0],d[0],v),f[1]=u(s[1],c[1],d[1],v),h[0]=u(s[0],c[0],d[0],T),h[1]=u(s[1],c[1],d[1],T);var C=a(f,l)-b;if(i(C)<.01)break;var w=a(h,l)-b;S/=2,C<0?w>=0?v=v+S:v=v-S:w>=0?v=v-S:v=v+S}return v}function o(e,l){var r=[],s=y.quadraticSubdivide,c=[[],[],[]],d=[[],[]],g=[];l/=2,e.eachEdge(function(v,b){var S=v.getLayout(),E=v.getVisual("fromSymbol"),C=v.getVisual("toSymbol");S.__original||(S.__original=[p.clone(S[0]),p.clone(S[1])],S[2]&&S.__original.push(p.clone(S[2])));var _=S.__original;if(S[2]!=null){if(p.copy(c[0],_[0]),p.copy(c[1],_[2]),p.copy(c[2],_[1]),E&&E!=="none"){var T=A(v.node1),w=t(c,_[0],T*l);s(c[0][0],c[1][0],c[2][0],w,r),c[0][0]=r[3],c[1][0]=r[4],s(c[0][1],c[1][1],c[2][1],w,r),c[0][1]=r[3],c[1][1]=r[4]}if(C&&C!=="none"){var T=A(v.node2),w=t(c,_[1],T*l);s(c[0][0],c[1][0],c[2][0],w,r),c[1][0]=r[1],c[2][0]=r[2],s(c[0][1],c[1][1],c[2][1],w,r),c[1][1]=r[1],c[2][1]=r[2]}p.copy(S[0],c[0]),p.copy(S[1],c[2]),p.copy(S[2],c[1])}else{if(p.copy(d[0],_[0]),p.copy(d[1],_[1]),p.sub(g,d[1],d[0]),p.normalize(g,g),E&&E!=="none"){var T=A(v.node1);p.scaleAndAdd(d[0],d[0],g,T*l)}if(C&&C!=="none"){var T=A(v.node2);p.scaleAndAdd(d[1],d[1],g,-T*l)}p.copy(S[0],d[0]),p.copy(S[1],d[1])}})}k.exports=o},SJMd:function(k,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 n,y,p,x=!1,A,m;window.PR_SHOULD_USE_CONTINUATION=!0;var f,h;(function(){var u=window,a=["break,continue,do,else,for,if,return,while"],i=[a,"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"],t=[i,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],o=[t,"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"],e=[t,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],l=[t,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],r="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",s=[t,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],c="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",d=[a,"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"],g=[a,"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"],v=[a,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],b=[o,l,e,s,c,d,g,v],S=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,E="str",C="kwd",_="com",T="typ",w="lit",O="pun",I="pln",R="tag",M="dec",F="src",P="atn",X="atv",B="nocode",j="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function W(he){for(var J=0,Y=!1,$=!1,fe=0,we=he.length;fe<we;++fe){var Ne=he[fe];if(Ne.ignoreCase)$=!0;else if(/[a-z]/i.test(Ne.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){Y=!0,$=!1;break}}var Ee={b:8,t:9,n:10,v:11,f:12,r:13};function de(ht){var Ke=ht.charCodeAt(0);if(Ke!==92)return Ke;var Jt=ht.charAt(1);return Ke=Ee[Jt],Ke||("0"<=Jt&&Jt<="7"?parseInt(ht.substring(1),8):Jt==="u"||Jt==="x"?parseInt(ht.substring(2),16):ht.charCodeAt(1))}function me(ht){if(ht<32)return(ht<16?"\\x0":"\\x")+ht.toString(16);var Ke=String.fromCharCode(ht);return Ke==="\\"||Ke==="-"||Ke==="]"||Ke==="^"?"\\"+Ke:Ke}function Le(ht){var Ke=ht.substring(1,ht.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),Jt=[],ct=Ke[0]==="^",Gt=["["];ct&&Gt.push("^");for(var dr=ct?1:0,zt=Ke.length;dr<zt;++dr){var kt=Ke[dr];if(/\\[bdsw]/i.test(kt))Gt.push(kt);else{var Vt=de(kt),Xe;dr+2<zt&&Ke[dr+1]==="-"?(Xe=de(Ke[dr+2]),dr+=2):Xe=Vt,Jt.push([Vt,Xe]),Xe<65||Vt>122||(Xe<65||Vt>90||Jt.push([Math.max(65,Vt)|32,Math.min(Xe,90)|32]),Xe<97||Vt>122||Jt.push([Math.max(97,Vt)&~32,Math.min(Xe,122)&~32]))}}Jt.sort(function(He,ae){return He[0]-ae[0]||ae[1]-He[1]});for(var pe=[],te=[],dr=0;dr<Jt.length;++dr){var $e=Jt[dr];$e[0]<=te[1]+1?te[1]=Math.max(te[1],$e[1]):pe.push(te=$e)}for(var dr=0;dr<pe.length;++dr){var $e=pe[dr];Gt.push(me($e[0])),$e[1]>$e[0]&&($e[1]+1>$e[0]&&Gt.push("-"),Gt.push(me($e[1])))}return Gt.push("]"),Gt.join("")}function tt(ht){for(var Ke=ht.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),Jt=Ke.length,ct=[],Gt=0,dr=0;Gt<Jt;++Gt){var zt=Ke[Gt];if(zt==="(")++dr;else if(zt.charAt(0)==="\\"){var kt=+zt.substring(1);kt&&(kt<=dr?ct[kt]=-1:Ke[Gt]=me(kt))}}for(var Gt=1;Gt<ct.length;++Gt)ct[Gt]===-1&&(ct[Gt]=++J);for(var Gt=0,dr=0;Gt<Jt;++Gt){var zt=Ke[Gt];if(zt==="(")++dr,ct[dr]||(Ke[Gt]="(?:");else if(zt.charAt(0)==="\\"){var kt=+zt.substring(1);kt&&kt<=dr&&(Ke[Gt]="\\"+ct[kt])}}for(var Gt=0;Gt<Jt;++Gt)Ke[Gt]==="^"&&Ke[Gt+1]!=="^"&&(Ke[Gt]="");if(ht.ignoreCase&&Y)for(var Gt=0;Gt<Jt;++Gt){var zt=Ke[Gt],Vt=zt.charAt(0);zt.length>=2&&Vt==="["?Ke[Gt]=Le(zt):Vt!=="\\"&&(Ke[Gt]=zt.replace(/[a-zA-Z]/g,function(te){var $e=te.charCodeAt(0);return"["+String.fromCharCode($e&~32,$e|32)+"]"}))}return Ke.join("")}for(var At=[],fe=0,we=he.length;fe<we;++fe){var Ne=he[fe];if(Ne.global||Ne.multiline)throw new Error(""+Ne);At.push("(?:"+tt(Ne)+")")}return new RegExp(At.join("|"),$?"gi":"g")}function z(he,J){var Y=/(?:^|\s)nocode(?:\s|$)/,$=[],fe=0,we=[],Ne=0;function Ee(de){var me=de.nodeType;if(me==1){if(Y.test(de.className))return;for(var Le=de.firstChild;Le;Le=Le.nextSibling)Ee(Le);var tt=de.nodeName.toLowerCase();(tt==="br"||tt==="li")&&($[Ne]=`
|
|
|
`,we[Ne<<1]=fe++,we[Ne++<<1|1]=de)}else if(me==3||me==4){var At=de.nodeValue;At.length&&(J?At=At.replace(/\r\n?/g,`
|
|
|
`):At=At.replace(/[ \t\r\n]+/g," "),$[Ne]=At,we[Ne<<1]=fe,fe+=At.length,we[Ne++<<1|1]=de)}}return Ee(he),{sourceCode:$.join("").replace(/\n$/,""),spans:we}}function V(he,J,Y,$,fe){if(!Y)return;var we={sourceNode:he,pre:1,langExtension:null,numberLines:null,sourceCode:Y,spans:null,basePos:J,decorations:null};$(we),fe.push.apply(fe,we.decorations)}var Q=/\S/;function G(he){for(var J=void 0,Y=he.firstChild;Y;Y=Y.nextSibling){var $=Y.nodeType;J=$===1?J?he:Y:$===3&&Q.test(Y.nodeValue)?he:J}return J===he?void 0:J}function ee(he,J){var Y={},$;(function(){for(var Ne=he.concat(J),Ee=[],de={},me=0,Le=Ne.length;me<Le;++me){var tt=Ne[me],At=tt[3];if(At)for(var ht=At.length;--ht>=0;)Y[At.charAt(ht)]=tt;var Ke=tt[1],Jt=""+Ke;de.hasOwnProperty(Jt)||(Ee.push(Ke),de[Jt]=null)}Ee.push(/[\0-\uffff]/),$=W(Ee)})();var fe=J.length,we=function Ne(Ee){for(var de=Ee.sourceCode,me=Ee.basePos,Le=Ee.sourceNode,tt=[me,I],At=0,ht=de.match($)||[],Ke={},Jt=0,ct=ht.length;Jt<ct;++Jt){var Gt=ht[Jt],dr=Ke[Gt],zt=void 0,kt;if(typeof dr=="string")kt=!1;else{var Vt=Y[Gt.charAt(0)];if(Vt)zt=Gt.match(Vt[1]),dr=Vt[0];else{for(var Xe=0;Xe<fe;++Xe)if(Vt=J[Xe],zt=Gt.match(Vt[1]),zt){dr=Vt[0];break}zt||(dr=I)}kt=dr.length>=5&&dr.substring(0,5)==="lang-",kt&&!(zt&&typeof zt[1]=="string")&&(kt=!1,dr=F),kt||(Ke[Gt]=dr)}var pe=At;if(At+=Gt.length,!kt)tt.push(me+pe,dr);else{var te=zt[1],$e=Gt.indexOf(te),He=$e+te.length;zt[2]&&(He=Gt.length-zt[2].length,$e=He-te.length);var ae=dr.substring(5);V(Le,me+pe,Gt.substring(0,$e),Ne,tt),V(Le,me+pe+$e,te,Qe(ae,te),tt),V(Le,me+pe+He,Gt.substring(He),Ne,tt)}}Ee.decorations=tt};return we}function ce(he){var J=[],Y=[];he.tripleQuotedStrings?J.push([E,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):he.multiLineStrings?J.push([E,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):J.push([E,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),he.verbatimStrings&&Y.push([E,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var $=he.hashComments;$&&(he.cStyleComments?($>1?J.push([_,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):J.push([_,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Y.push([E,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):J.push([_,/^#[^\r\n]*/,null,"#"])),he.cStyleComments&&(Y.push([_,/^\/\/[^\r\n]*/,null]),Y.push([_,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var fe=he.regexLiterals;if(fe){var we=fe>1?"":`
|
|
|
\r`,Ne=we?".":"[\\S\\s]",Ee="/(?=[^/*"+we+"])(?:[^/\\x5B\\x5C"+we+"]|\\x5C"+Ne+"|\\x5B(?:[^\\x5C\\x5D"+we+"]|\\x5C"+Ne+")*(?:\\x5D|$))+/";Y.push(["lang-regex",RegExp("^"+j+"("+Ee+")")])}var de=he.types;de&&Y.push([T,de]);var me=(""+he.keywords).replace(/^ | $/g,"");me.length&&Y.push([C,new RegExp("^(?:"+me.replace(/[\s,]+/g,"|")+")\\b"),null]),J.push([I,/^\s+/,null,` \r
|
|
|
\xA0`]);var Le="^.[^\\s\\w.$@'\"`/\\\\]*";return he.regexLiterals&&(Le+="(?!s*/)"),Y.push([w,/^@[a-z_$][a-z_$@0-9]*/i,null],[T,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[I,/^[a-z_$][a-z_$@0-9]*/i,null],[w,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[I,/^\\[\s\S]?/,null],[O,new RegExp(Le),null]),ee(J,Y)}var be=ce({keywords:b,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function le(he,J,Y){for(var $=/(?:^|\s)nocode(?:\s|$)/,fe=/\r\n?|\n/,we=he.ownerDocument,Ne=we.createElement("li");he.firstChild;)Ne.appendChild(he.firstChild);var Ee=[Ne];function de(Ke){var Jt=Ke.nodeType;if(Jt==1&&!$.test(Ke.className))if(Ke.nodeName==="br")me(Ke),Ke.parentNode&&Ke.parentNode.removeChild(Ke);else for(var ct=Ke.firstChild;ct;ct=ct.nextSibling)de(ct);else if((Jt==3||Jt==4)&&Y){var Gt=Ke.nodeValue,dr=Gt.match(fe);if(dr){var zt=Gt.substring(0,dr.index);Ke.nodeValue=zt;var kt=Gt.substring(dr.index+dr[0].length);if(kt){var Vt=Ke.parentNode;Vt.insertBefore(we.createTextNode(kt),Ke.nextSibling)}me(Ke),zt||Ke.parentNode.removeChild(Ke)}}}function me(Ke){for(;!Ke.nextSibling;)if(Ke=Ke.parentNode,!Ke)return;function Jt(dr,zt){var kt=zt?dr.cloneNode(!1):dr,Vt=dr.parentNode;if(Vt){var Xe=Jt(Vt,1),pe=dr.nextSibling;Xe.appendChild(kt);for(var te=pe;te;te=pe)pe=te.nextSibling,Xe.appendChild(te)}return kt}for(var ct=Jt(Ke.nextSibling,0),Gt;(Gt=ct.parentNode)&&Gt.nodeType===1;)ct=Gt;Ee.push(ct)}for(var Le=0;Le<Ee.length;++Le)de(Ee[Le]);J===(J|0)&&Ee[0].setAttribute("value",J);var tt=we.createElement("ol");tt.className="linenums";for(var At=Math.max(0,J-1|0)||0,Le=0,ht=Ee.length;Le<ht;++Le)Ne=Ee[Le],Ne.className="L"+(Le+At)%10,Ne.firstChild||Ne.appendChild(we.createTextNode("\xA0")),tt.appendChild(Ne);he.appendChild(tt)}function Ie(he){var J=/\bMSIE\s(\d+)/.exec(navigator.userAgent);J=J&&+J[1]<=8;var Y=/\n/g,$=he.sourceCode,fe=$.length,we=0,Ne=he.spans,Ee=Ne.length,de=0,me=he.decorations,Le=me.length,tt=0;me[Le]=fe;var At,ht;for(ht=At=0;ht<Le;)me[ht]!==me[ht+2]?(me[At++]=me[ht++],me[At++]=me[ht++]):ht+=2;for(Le=At,ht=At=0;ht<Le;){for(var Ke=me[ht],Jt=me[ht+1],ct=ht+2;ct+2<=Le&&me[ct+1]===Jt;)ct+=2;me[At++]=Ke,me[At++]=Jt,ht=ct}Le=me.length=At;var Gt=he.sourceNode,dr="";Gt&&(dr=Gt.style.display,Gt.style.display="none");try{for(var zt=null;de<Ee;){var kt=Ne[de],Vt=Ne[de+2]||fe,Xe=me[tt+2]||fe,ct=Math.min(Vt,Xe),pe=Ne[de+1],te;if(pe.nodeType!==1&&(te=$.substring(we,ct))){J&&(te=te.replace(Y,"\r")),pe.nodeValue=te;var $e=pe.ownerDocument,He=$e.createElement("span");He.className=me[tt+1];var ae=pe.parentNode;ae.replaceChild(He,pe),He.appendChild(pe),we<Vt&&(Ne[de+1]=pe=$e.createTextNode($.substring(ct,Vt)),ae.insertBefore(pe,He.nextSibling))}we=ct,we>=Vt&&(de+=2),we>=Xe&&(tt+=2)}}finally{Gt&&(Gt.style.display=dr)}}var ke={};function Re(he,J){for(var Y=J.length;--Y>=0;){var $=J[Y];ke.hasOwnProperty($)?u.console&&console.warn("cannot override language handler %s",$):ke[$]=he}}function Qe(he,J){return he&&ke.hasOwnProperty(he)||(he=/^\s*</.test(J)?"default-markup":"default-code"),ke[he]}Re(be,["default-code"]),Re(ee([],[[I,/^[^<?]+/],[M,/^<!\w[^>]*(?:>|$)/],[_,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[O,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),Re(ee([[I,/^[\s]+/,null,` \r
|
|
|
`],[X,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[R,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[P,/^(?!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"]),Re(ee([],[[X,/^[\s\S]+/]]),["uq.val"]),Re(ce({keywords:o,hashComments:!0,cStyleComments:!0,types:S}),["c","cc","cpp","cxx","cyc","m"]),Re(ce({keywords:"null,true,false"}),["json"]),Re(ce({keywords:l,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:S}),["cs"]),Re(ce({keywords:e,cStyleComments:!0}),["java"]),Re(ce({keywords:v,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Re(ce({keywords:d,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Re(ce({keywords:c,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Re(ce({keywords:g,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Re(ce({keywords:s,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Re(ce({keywords:r,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Re(ee([],[[E,/^[\s\S]+/]]),["regex"]);function We(he){var J=he.langExtension;try{var Y=z(he.sourceNode,he.pre),$=Y.sourceCode;he.sourceCode=$,he.spans=Y.spans,he.basePos=0,Qe(J,$)(he),Ie(he)}catch(fe){u.console&&console.log(fe&&fe.stack||fe)}}function ot(he,J,Y){var $=Y||!1,fe=J||null,we=document.createElement("div");we.innerHTML="<pre>"+he+"</pre>",we=we.firstChild,$&&le(we,$,!0);var Ne={langExtension:fe,numberLines:$,sourceNode:we,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return We(Ne),we.innerHTML}function Oe(he,J){var Y=J||document.body,$=Y.ownerDocument||document;function fe(kt){return Y.getElementsByTagName(kt)}for(var we=[fe("pre"),fe("code"),fe("xmp")],Ne=[],Ee=0;Ee<we.length;++Ee)for(var de=0,me=we[Ee].length;de<me;++de)Ne.push(we[Ee][de]);we=null;var Le=Date;Le.now||(Le={now:function(){return+new Date}});var tt=0,At=/\blang(?:uage)?-([\w.]+)(?!\S)/,ht=/\bprettyprint\b/,Ke=/\bprettyprinted\b/,Jt=/pre|xmp/i,ct=/^code$/i,Gt=/^(?:pre|code|xmp)$/i,dr={};function zt(){for(var kt=u.PR_SHOULD_USE_CONTINUATION?Le.now()+250:Infinity;tt<Ne.length&&Le.now()<kt;tt++){for(var Vt=Ne[tt],Xe=dr,pe=Vt;pe=pe.previousSibling;){var te=pe.nodeType,$e=(te===7||te===8)&&pe.nodeValue;if($e?!/^\??prettify\b/.test($e):te!==3||/\S/.test(pe.nodeValue))break;if($e){Xe={},$e.replace(/\b(\w+)=([\w:.%+-]+)/g,function(xt,rn,Dn){Xe[rn]=Dn});break}}var He=Vt.className;if((Xe!==dr||ht.test(He))&&!Ke.test(He)){for(var ae=!1,ft=Vt.parentNode;ft;ft=ft.parentNode){var Mt=ft.tagName;if(Gt.test(Mt)&&ft.className&&ht.test(ft.className)){ae=!0;break}}if(!ae){Vt.className+=" prettyprinted";var mt=Xe.lang;if(!mt){mt=He.match(At);var or;!mt&&(or=G(Vt))&&ct.test(or.tagName)&&(mt=or.className.match(At)),mt&&(mt=mt[1])}var vr;if(Jt.test(Vt.tagName))vr=1;else{var fn=Vt.currentStyle,sr=$.defaultView,Ir=fn?fn.whiteSpace:sr&&sr.getComputedStyle?sr.getComputedStyle(Vt,null).getPropertyValue("white-space"):0;vr=Ir&&Ir.substring(0,3)==="pre"}var lr=Xe.linenums;(lr=lr==="true"||+lr)||(lr=He.match(/\blinenums\b(?::(\d+))?/),lr=lr?lr[1]&&lr[1].length?+lr[1]:!0:!1),lr&&le(Vt,lr,vr);var Wt={langExtension:mt,sourceNode:Vt,numberLines:lr,pre:vr,sourceCode:null,basePos:null,spans:null,decorations:null};We(Wt)}}}tt<Ne.length?u.setTimeout(zt,250):typeof he=="function"&&he()}zt()}var oe=u.PR={createSimpleLexer:ee,registerLangHandler:Re,sourceDecorator:ce,PR_ATTRIB_NAME:P,PR_ATTRIB_VALUE:X,PR_COMMENT:_,PR_DECLARATION:M,PR_KEYWORD:C,PR_LITERAL:w,PR_NOCODE:B,PR_PLAIN:I,PR_PUNCTUATION:O,PR_SOURCE:F,PR_STRING:E,PR_TAG:R,PR_TYPE:T,prettyPrintOne:x?u.prettyPrintOne=ot:f=ot,prettyPrint:h=x?u.prettyPrint=Oe:h=Oe},st=u.define;typeof st=="function"&&st.amd&&st("google-code-prettify",[],function(){return oe})})()},SKnc:function(k,D,n){var y=n("bYtY"),p=n("QuXc"),x=function(f,h,u,a,i,t){this.x=f==null?0:f,this.y=h==null?0:h,this.x2=u==null?1:u,this.y2=a==null?0:a,this.type="linear",this.global=t||!1,p.call(this,i)};x.prototype={constructor:x},y.inherits(x,p);var A=x;k.exports=A},"SKx+":function(k,D,n){var y=n("ProS"),p=y.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}}),x=p;k.exports=x},SMc4:function(k,D,n){var y=n("bYtY"),p=n("bLfw"),x=n("nkfE"),A=n("ICMv"),m=p.extend({type:"cartesian2dAxis",axis:null,init:function(){m.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){m.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){m.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function f(a,i){return i.type||(i.data?"category":"value")}y.merge(m.prototype,A);var h={offset:0};x("x",m,f,h),x("y",m,f,h);var u=m;k.exports=u},SRve:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};D.default=y},SUKs:function(k,D,n){var y=n("LPTA"),p=y.debugMode,x=function(){};p===1&&(x=console.error);var A=x;k.exports=A},SZEN:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.clientToElement=y;function y(p,x,A){var m=A.getBoundingClientRect(),f={x:0,y:0};return p<m.left?f.x=0:p>=m.right?f.x=m.width-1:f.x=p-m.left,x<m.top?f.y=0:x>=m.bottom?f.y=m.height-1:f.y=x-m.top,f}},Sdc0:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("q1tI"),f=n("rePB"),h=n("ODXe"),u=n("Ff2n"),a=n("TSYQ"),i=n.n(a),t=n("6cGi"),o=n("4IlW"),e=m.forwardRef(function(C,_){var T,w=C.prefixCls,O=w===void 0?"rc-switch":w,I=C.className,R=C.checked,M=C.defaultChecked,F=C.disabled,P=C.loadingIcon,X=C.checkedChildren,B=C.unCheckedChildren,j=C.onClick,W=C.onChange,z=C.onKeyDown,V=Object(u.a)(C,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),Q=Object(t.a)(!1,{value:R,defaultValue:M}),G=Object(h.a)(Q,2),ee=G[0],ce=G[1];function be(Re,Qe){var We=ee;return F||(We=Re,ce(We),W==null||W(We,Qe)),We}function le(Re){Re.which===o.a.LEFT?be(!1,Re):Re.which===o.a.RIGHT&&be(!0,Re),z==null||z(Re)}function Ie(Re){var Qe=be(!ee,Re);j==null||j(Qe,Re)}var ke=i()(O,I,(T={},Object(f.a)(T,"".concat(O,"-checked"),ee),Object(f.a)(T,"".concat(O,"-disabled"),F),T));return m.createElement("button",Object.assign({},V,{type:"button",role:"switch","aria-checked":ee,disabled:F,className:ke,ref:_,onKeyDown:le,onClick:Ie}),P,m.createElement("span",{className:"".concat(O,"-inner")},ee?X:B))});e.displayName="Switch";var l=e,r=n("zU+y"),s=n.n(r),c=n("g0mS"),d=n("H84U"),g=n("3Nzz"),v=n("uaoM"),b=function(C,_){var T={};for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&_.indexOf(w)<0&&(T[w]=C[w]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,w=Object.getOwnPropertySymbols(C);O<w.length;O++)_.indexOf(w[O])<0&&Object.prototype.propertyIsEnumerable.call(C,w[O])&&(T[w[O]]=C[w[O]]);return T},S=m.forwardRef(function(C,_){var T,w=C.prefixCls,O=C.size,I=C.loading,R=C.className,M=R===void 0?"":R,F=C.disabled,P=b(C,["prefixCls","size","loading","className","disabled"]);Object(v.a)("checked"in P||!("value"in P),"Switch","`value` is not a valid prop, do you mean `checked`?");var X=m.useContext(d.b),B=X.getPrefixCls,j=X.direction,W=m.useContext(g.b),z=B("switch",w),V=m.createElement("div",{className:"".concat(z,"-handle")},I&&m.createElement(s.a,{className:"".concat(z,"-loading-icon")})),Q=i()(M,(T={},A()(T,"".concat(z,"-small"),(O||W)==="small"),A()(T,"".concat(z,"-loading"),I),A()(T,"".concat(z,"-rtl"),j==="rtl"),T));return m.createElement(c.a,{insertExtraNode:!0},m.createElement(l,p()({},P,{prefixCls:z,className:Q,disabled:F||I,ref:_,loadingIcon:V})))});S.__ANT_SWITCH=!0,S.displayName="Switch";var E=D.a=S},SehX:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("2B6p"),A=x.updateCenterAndZoom;y.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(m,f){var h=m.componentType||"series";f.eachComponent({mainType:h,query:m},function(u){var a=u.coordinateSystem;if(a.type!=="geo")return;var i=A(a,m,u.get("scaleLimit"));u.setCenter&&u.setCenter(i.center),u.setZoom&&u.setZoom(i.zoom),h==="series"&&p.each(u.seriesGroup,function(t){t.setCenter(i.center),t.setZoom(i.zoom)})})})},SfRM:function(k,D,n){var y=n("YESw");function p(){this.__data__=y?y(null):{},this.size=0}k.exports=p},SgGq:function(k,D,n){var y=n("bYtY"),p=n("H6uX"),x=n("YH21"),A=n("pP6R");function m(r){this.pointerChecker,this._zr=r,this._opt={};var s=y.bind,c=s(f,this),d=s(h,this),g=s(u,this),v=s(a,this),b=s(i,this);p.call(this),this.setPointerChecker=function(S){this.pointerChecker=S},this.enable=function(S,E){this.disable(),this._opt=y.defaults(y.clone(E)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),S==null&&(S=!0),(S===!0||S==="move"||S==="pan")&&(r.on("mousedown",c),r.on("mousemove",d),r.on("mouseup",g)),(S===!0||S==="scale"||S==="zoom")&&(r.on("mousewheel",v),r.on("pinch",b))},this.disable=function(){r.off("mousedown",c),r.off("mousemove",d),r.off("mouseup",g),r.off("mousewheel",v),r.off("pinch",b)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}y.mixin(m,p);function f(r){if(x.isMiddleOrRightButtonOnMouseUpDown(r)||r.target&&r.target.draggable)return;var s=r.offsetX,c=r.offsetY;this.pointerChecker&&this.pointerChecker(r,s,c)&&(this._x=s,this._y=c,this._dragging=!0)}function h(r){if(!this._dragging||!e("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||A.isTaken(this._zr,"globalPan"))return;var s=r.offsetX,c=r.offsetY,d=this._x,g=this._y,v=s-d,b=c-g;this._x=s,this._y=c,this._opt.preventDefaultMouseMove&&x.stop(r.event),o(this,"pan","moveOnMouseMove",r,{dx:v,dy:b,oldX:d,oldY:g,newX:s,newY:c})}function u(r){x.isMiddleOrRightButtonOnMouseUpDown(r)||(this._dragging=!1)}function a(r){var s=e("zoomOnMouseWheel",r,this._opt),c=e("moveOnMouseWheel",r,this._opt),d=r.wheelDelta,g=Math.abs(d),v=r.offsetX,b=r.offsetY;if(d===0||!s&&!c)return;if(s){var S=g>3?1.4:g>1?1.2:1.1,E=d>0?S:1/S;t(this,"zoom","zoomOnMouseWheel",r,{scale:E,originX:v,originY:b})}if(c){var C=Math.abs(d),_=(d>0?1:-1)*(C>3?.4:C>1?.15:.05);t(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:_,originX:v,originY:b})}}function i(r){if(A.isTaken(this._zr,"globalPan"))return;var s=r.pinchScale>1?1.1:1/1.1;t(this,"zoom",null,r,{scale:s,originX:r.pinchX,originY:r.pinchY})}function t(r,s,c,d,g){r.pointerChecker&&r.pointerChecker(d,g.originX,g.originY)&&(x.stop(d.event),o(r,s,c,d,g))}function o(r,s,c,d,g){g.isAvailableBehavior=y.bind(e,null,c,d),r.trigger(s,g)}function e(r,s,c){var d=c[r];return!r||d&&(!y.isString(d)||s.event[d+"Key"])}var l=m;k.exports=l},SgaC:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(m,f){if(!(m instanceof f))throw new TypeError("Cannot call a class as a function")}function p(m,f){for(var h=0;h<f.length;h++){var u=f[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}function x(m,f,h){return f&&p(m.prototype,f),h&&p(m,h),m}var A=function(){function m(){y(this,m),this._subrects=0}return x(m,[{key:"decodeRect",value:function(h,u,a,i,t,o,e){if(this._subrects===0){if(t.rQwait("RRE",4+4))return!1;this._subrects=t.rQshift32();var l=t.rQshiftBytes(4);o.fillRect(h,u,a,i,l)}for(;this._subrects>0;){if(t.rQwait("RRE",4+8))return!1;var r=t.rQshiftBytes(4),s=t.rQshift16(),c=t.rQshift16(),d=t.rQshift16(),g=t.rQshift16();o.fillRect(h+s,u+c,d,g,r),this._subrects--}return!0}}]),m}();D.default=A},Sj9i:function(k,D,n){var y=n("QBsz"),p=y.create,x=y.distSquare,A=Math.pow,m=Math.sqrt,f=1e-8,h=1e-4,u=m(3),a=1/3,i=p(),t=p(),o=p();function e(w){return w>-f&&w<f}function l(w){return w>f||w<-f}function r(w,O,I,R,M){var F=1-M;return F*F*(F*w+3*M*O)+M*M*(M*R+3*F*I)}function s(w,O,I,R,M){var F=1-M;return 3*(((O-w)*F+2*(I-O)*M)*F+(R-I)*M*M)}function c(w,O,I,R,M,F){var P=R+3*(O-I)-w,X=3*(I-O*2+w),B=3*(O-w),j=w-M,W=X*X-3*P*B,z=X*B-9*P*j,V=B*B-3*X*j,Q=0;if(e(W)&&e(z))if(e(X))F[0]=0;else{var G=-B/X;G>=0&&G<=1&&(F[Q++]=G)}else{var ee=z*z-4*W*V;if(e(ee)){var ce=z/W,G=-X/P+ce,be=-ce/2;G>=0&&G<=1&&(F[Q++]=G),be>=0&&be<=1&&(F[Q++]=be)}else if(ee>0){var le=m(ee),Ie=W*X+1.5*P*(-z+le),ke=W*X+1.5*P*(-z-le);Ie<0?Ie=-A(-Ie,a):Ie=A(Ie,a),ke<0?ke=-A(-ke,a):ke=A(ke,a);var G=(-X-(Ie+ke))/(3*P);G>=0&&G<=1&&(F[Q++]=G)}else{var Re=(2*W*X-3*P*z)/(2*m(W*W*W)),Qe=Math.acos(Re)/3,We=m(W),ot=Math.cos(Qe),G=(-X-2*We*ot)/(3*P),be=(-X+We*(ot+u*Math.sin(Qe)))/(3*P),Oe=(-X+We*(ot-u*Math.sin(Qe)))/(3*P);G>=0&&G<=1&&(F[Q++]=G),be>=0&&be<=1&&(F[Q++]=be),Oe>=0&&Oe<=1&&(F[Q++]=Oe)}}return Q}function d(w,O,I,R,M){var F=6*I-12*O+6*w,P=9*O+3*R-3*w-9*I,X=3*O-3*w,B=0;if(e(P)){if(l(F)){var j=-X/F;j>=0&&j<=1&&(M[B++]=j)}}else{var W=F*F-4*P*X;if(e(W))M[0]=-F/(2*P);else if(W>0){var z=m(W),j=(-F+z)/(2*P),V=(-F-z)/(2*P);j>=0&&j<=1&&(M[B++]=j),V>=0&&V<=1&&(M[B++]=V)}}return B}function g(w,O,I,R,M,F){var P=(O-w)*M+w,X=(I-O)*M+O,B=(R-I)*M+I,j=(X-P)*M+P,W=(B-X)*M+X,z=(W-j)*M+j;F[0]=w,F[1]=P,F[2]=j,F[3]=z,F[4]=z,F[5]=W,F[6]=B,F[7]=R}function v(w,O,I,R,M,F,P,X,B,j,W){var z,V=.005,Q=Infinity,G,ee,ce,be;i[0]=B,i[1]=j;for(var le=0;le<1;le+=.05)t[0]=r(w,I,M,P,le),t[1]=r(O,R,F,X,le),ce=x(i,t),ce<Q&&(z=le,Q=ce);Q=Infinity;for(var Ie=0;Ie<32&&!(V<h);Ie++)G=z-V,ee=z+V,t[0]=r(w,I,M,P,G),t[1]=r(O,R,F,X,G),ce=x(t,i),G>=0&&ce<Q?(z=G,Q=ce):(o[0]=r(w,I,M,P,ee),o[1]=r(O,R,F,X,ee),be=x(o,i),ee<=1&&be<Q?(z=ee,Q=be):V*=.5);return W&&(W[0]=r(w,I,M,P,z),W[1]=r(O,R,F,X,z)),m(Q)}function b(w,O,I,R){var M=1-R;return M*(M*w+2*R*O)+R*R*I}function S(w,O,I,R){return 2*((1-R)*(O-w)+R*(I-O))}function E(w,O,I,R,M){var F=w-2*O+I,P=2*(O-w),X=w-R,B=0;if(e(F)){if(l(P)){var j=-X/P;j>=0&&j<=1&&(M[B++]=j)}}else{var W=P*P-4*F*X;if(e(W)){var j=-P/(2*F);j>=0&&j<=1&&(M[B++]=j)}else if(W>0){var z=m(W),j=(-P+z)/(2*F),V=(-P-z)/(2*F);j>=0&&j<=1&&(M[B++]=j),V>=0&&V<=1&&(M[B++]=V)}}return B}function C(w,O,I){var R=w+I-2*O;return R===0?.5:(w-O)/R}function _(w,O,I,R,M){var F=(O-w)*R+w,P=(I-O)*R+O,X=(P-F)*R+F;M[0]=w,M[1]=F,M[2]=X,M[3]=X,M[4]=P,M[5]=I}function T(w,O,I,R,M,F,P,X,B){var j,W=.005,z=Infinity;i[0]=P,i[1]=X;for(var V=0;V<1;V+=.05){t[0]=b(w,I,M,V),t[1]=b(O,R,F,V);var Q=x(i,t);Q<z&&(j=V,z=Q)}z=Infinity;for(var G=0;G<32&&!(W<h);G++){var ee=j-W,ce=j+W;t[0]=b(w,I,M,ee),t[1]=b(O,R,F,ee);var Q=x(t,i);if(ee>=0&&Q<z)j=ee,z=Q;else{o[0]=b(w,I,M,ce),o[1]=b(O,R,F,ce);var be=x(o,i);ce<=1&&be<z?(j=ce,z=be):W*=.5}}return B&&(B[0]=b(w,I,M,j),B[1]=b(O,R,F,j)),m(z)}D.cubicAt=r,D.cubicDerivativeAt=s,D.cubicRootAt=c,D.cubicExtrema=d,D.cubicSubdivide=g,D.cubicProjectPoint=v,D.quadraticAt=b,D.quadraticDerivativeAt=S,D.quadraticRootAt=E,D.quadraticExtremum=C,D.quadraticSubdivide=_,D.quadraticProjectPoint=T},Sp2Z:function(k,D,n){var y=n("3LNs"),p=n("/y7N"),x=n("AVZG"),A=n("Znkb"),m=y.extend({makeElOption:function(i,t,o,e,l){var r=o.axis,s=r.grid,c=e.get("type"),d=f(s,r).getOtherAxis(r).getGlobalExtent(),g=r.toGlobalCoord(r.dataToCoord(t,!0));if(c&&c!=="none"){var v=p.buildElStyle(e),b=h[c](r,g,d);b.style=v,i.graphicKey=b.type,i.pointer=b}var S=x.layout(s.model,o);p.buildCartesianSingleLabelElOption(t,i,S,o,e,l)},getHandleTransform:function(i,t,o){var e=x.layout(t.axis.grid.model,t,{labelInside:!1});return e.labelMargin=o.get("handle.margin"),{position:p.getTransformedPosition(t.axis,i,e),rotation:e.rotation+(e.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(i,t,o,e){var l=o.axis,r=l.grid,s=l.getGlobalExtent(!0),c=f(r,l).getOtherAxis(l).getGlobalExtent(),d=l.dim==="x"?0:1,g=i.position;g[d]+=t[d],g[d]=Math.min(s[1],g[d]),g[d]=Math.max(s[0],g[d]);var v=(c[1]+c[0])/2,b=[v,v];b[d]=g[d];var S=[{verticalAlign:"middle"},{align:"center"}];return{position:g,rotation:i.rotation,cursorPoint:b,tooltipOption:S[d]}}});function f(i,t){var o={};return o[t.dim+"AxisIndex"]=t.index,i.getCartesian(o)}var h={line:function(i,t,o){var e=p.makeLineShape([t,o[0]],[t,o[1]],u(i));return{type:"Line",subPixelOptimize:!0,shape:e}},shadow:function(i,t,o){var e=Math.max(1,i.getBandWidth()),l=o[1]-o[0];return{type:"Rect",shape:p.makeRectShape([t-e/2,o[0]],[e,l],u(i))}}};function u(i){return i.dim==="x"?0:1}A.registerAxisPointerClass("CartesianAxisPointer",m);var a=m;k.exports=a},Sq3C:function(k,D,n){var y=n("sKgW"),p=n("zoYe"),x=n("wy8a"),A=n("quyA"),m=n("Z1HP"),f=n("Em2t"),h=Math.ceil;function u(a,i){i=i===void 0?" ":p(i);var t=i.length;if(t<2)return t?y(i,a):i;var o=y(i,h(a/m(i)));return A(i)?x(f(o),0,a).join(""):o.slice(0,a)}k.exports=u},SqI9:function(k,D,n){var y=n("y+Vt"),p=n("iXp4"),x=y.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},brush:p(y.prototype.brush),buildPath:function(m,f){var h=f.cx,u=f.cy,a=Math.max(f.r0||0,0),i=Math.max(f.r,0),t=f.startAngle,o=f.endAngle,e=f.clockwise,l=Math.cos(t),r=Math.sin(t);m.moveTo(l*a+h,r*a+u),m.lineTo(l*i+h,r*i+u),m.arc(h,u,i,t,o,!e),m.lineTo(Math.cos(o)*a+h,Math.sin(o)*a+u),a!==0&&m.arc(h,u,a,o,t,e),m.closePath()}});k.exports=x},SrGk:function(k,D,n){var y=n("hydK"),p=y.createElement,x=n("bYtY"),A=n("y+Vt"),m=n("Dagg"),f=n("dqUG"),h=n("P47w"),u=h.path,a=h.image,i=h.text,t="0",o="1";function e(r,s,c,d,g){this._zrId=r,this._svgRoot=s,this._tagNames=typeof c=="string"?[c]:c,this._markLabel=d,this._domName=g||"_dom",this.nextId=0}e.prototype.createElement=p,e.prototype.getDefs=function(r){var s=this._svgRoot,c=this._svgRoot.getElementsByTagName("defs");return c.length===0?r?(c=s.insertBefore(this.createElement("defs"),s.firstChild),c.contains||(c.contains=function(d){var g=c.children;if(!g)return!1;for(var v=g.length-1;v>=0;--v)if(g[v]===d)return!0;return!1}),c):null:c[0]},e.prototype.update=function(r,s){if(!r)return;var c=this.getDefs(!1);if(r[this._domName]&&c.contains(r[this._domName]))typeof s=="function"&&s(r);else{var d=this.add(r);d&&(r[this._domName]=d)}},e.prototype.addDom=function(r){var s=this.getDefs(!0);s.appendChild(r)},e.prototype.removeDom=function(r){var s=this.getDefs(!1);s&&r[this._domName]&&(s.removeChild(r[this._domName]),r[this._domName]=null)},e.prototype.getDoms=function(){var r=this.getDefs(!1);if(!r)return[];var s=[];return x.each(this._tagNames,function(c){var d=r.getElementsByTagName(c);s=s.concat([].slice.call(d))}),s},e.prototype.markAllUnused=function(){var r=this.getDoms(),s=this;x.each(r,function(c){c[s._markLabel]=t})},e.prototype.markUsed=function(r){r&&(r[this._markLabel]=o)},e.prototype.removeUnused=function(){var r=this.getDefs(!1);if(!r)return;var s=this.getDoms(),c=this;x.each(s,function(d){d[c._markLabel]!==o&&r.removeChild(d)})},e.prototype.getSvgProxy=function(r){return r instanceof A?u:r instanceof m?a:r instanceof f?i:u},e.prototype.getTextSvgElement=function(r){return r.__textSvgEl},e.prototype.getSvgElement=function(r){return r.__svgEl};var l=e;k.exports=l},Swgg:function(k,D,n){var y=n("fc+c"),p=y.extend({type:"dataZoom.select"});k.exports=p},Sxd8:function(k,D,n){var y=n("ZCgT");function p(x){var A=y(x),m=A%1;return A===A?m?A-m:A:0}k.exports=p},SymL:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("yFXq"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},T4UG:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=n("ItGF"),m=n("7aKB"),f=m.formatTime,h=m.encodeHTML,u=m.addCommas,a=m.getTooltipMarker,i=n("4NO4"),t=n("bLfw"),o=n("5Hur"),e=n("OKJ2"),l=n("+TT/"),r=l.getLayoutParams,s=l.mergeLayoutParam,c=n("9H2F"),d=c.createTask,g=n("D5nY"),v=g.prepareSource,b=g.getSource,S=n("KxfA"),E=S.retrieveRawValue,C=i.makeInner(),_=t.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(B,j,W,z){this.seriesIndex=this.componentIndex,this.dataTask=d({count:O,reset:I}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(B,W),v(this);var V=this.getInitialData(B,W);M(V,this),this.dataTask.context.data=V,C(this).dataBeforeProcessed=V,T(this)},mergeDefaultAndTheme:function(B,j){var W=this.layoutMode,z=W?r(B):{},V=this.subType;t.hasClass(V)&&(V+="Series"),x.merge(B,j.getTheme().get(this.subType)),x.merge(B,this.getDefaultOption()),i.defaultEmphasis(B,"label",["show"]),this.fillDataTextStyle(B.data),W&&s(B,z,W)},mergeOption:function(B,j){B=x.merge(this.option,B,!0),this.fillDataTextStyle(B.data);var W=this.layoutMode;W&&s(this.option,B,W),v(this);var z=this.getInitialData(B,j);M(z,this),this.dataTask.dirty(),this.dataTask.context.data=z,C(this).dataBeforeProcessed=z,T(this)},fillDataTextStyle:function(B){if(B&&!x.isTypedArray(B))for(var j=["show"],W=0;W<B.length;W++)B[W]&&B[W].label&&i.defaultEmphasis(B[W],"label",j)},getInitialData:function(){},appendData:function(B){var j=this.getRawData();j.appendData(B.data)},getData:function(B){var j=P(this);if(j){var W=j.context.data;return B==null?W:W.getLinkedData(B)}else return C(this).data},setData:function(B){var j=P(this);if(j){var W=j.context;W.data!==B&&j.modifyOutputEnd&&j.setOutputEnd(B.count()),W.outputData=B,j!==this.dataTask&&(W.data=B)}C(this).data=B},getSource:function(){return b(this)},getRawData:function(){return C(this).dataBeforeProcessed},getBaseAxis:function(){var B=this.coordinateSystem;return B&&B.getBaseAxis&&B.getBaseAxis()},formatTooltip:function(B,j,W,z){var V=this;z=z||"html";var Q=z==="html"?"<br/>":`
|
|
|
`,G=z==="richText",ee={},ce=0;function be(we){var Ne=x.reduce(we,function(tt,At,ht){var Ke=Ie.getDimensionInfo(ht);return tt|=Ke&&Ke.tooltip!==!1&&Ke.displayName!=null},0),Ee=[];ke.length?x.each(ke,function(tt){de(E(Ie,B,tt),tt)}):x.each(we,de);function de(tt,At){var ht=Ie.getDimensionInfo(At);if(!ht||ht.otherDims.tooltip===!1)return;var Ke=ht.type,Jt="sub"+V.seriesIndex+"at"+ce,ct=a({color:ot,type:"subItem",renderMode:z,markerId:Jt}),Gt=typeof ct=="string"?ct:ct.content,dr=(Ne?Gt+h(ht.displayName||"-")+": ":"")+h(Ke==="ordinal"?tt+"":Ke==="time"?j?"":f("yyyy/MM/dd hh:mm:ss",tt):u(tt));dr&&Ee.push(dr),G&&(ee[Jt]=ot,++ce)}var me=Ne?G?`
|
|
|
`:"<br/>":"",Le=me+Ee.join(me||", ");return{renderMode:z,content:Le,style:ee}}function le(we){return{renderMode:z,content:h(u(we)),style:ee}}var Ie=this.getData(),ke=Ie.mapDimension("defaultedTooltip",!0),Re=ke.length,Qe=this.getRawValue(B),We=x.isArray(Qe),ot=Ie.getItemVisual(B,"color");x.isObject(ot)&&ot.colorStops&&(ot=(ot.colorStops[0]||{}).color),ot=ot||"transparent";var Oe=Re>1||We&&!Re?be(Qe):le(Re?E(Ie,B,ke[0]):We?Qe[0]:Qe),oe=Oe.content,st=V.seriesIndex+"at"+ce,he=a({color:ot,type:"item",renderMode:z,markerId:st});ee[st]=ot,++ce;var J=Ie.getName(B),Y=this.name;i.isNameSpecified(this)||(Y=""),Y=Y?h(Y)+(j?": ":Q):"";var $=typeof he=="string"?he:he.content,fe=j?$+Y+oe:Y+$+(J?h(J)+": "+oe:oe);return{html:fe,markers:ee}},isAnimationEnabled:function(){if(A.node)return!1;var B=this.getShallow("animation");return B&&(this.getData().count()>this.getShallow("animationThreshold")&&(B=!1)),B},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(B,j,W){var z=this.ecModel,V=o.getColorFromPalette.call(this,B,j,W);return V||(V=z.getColorFromPalette(B,j,W)),V},coordDimToDataDim:function(B){return this.getRawData().mapDimension(B,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});x.mixin(_,e),x.mixin(_,o);function T(B){var j=B.name;i.isNameSpecified(B)||(B.name=w(B)||j)}function w(B){var j=B.getRawData(),W=j.mapDimension("seriesName",!0),z=[];return x.each(W,function(V){var Q=j.getDimensionInfo(V);Q.displayName&&z.push(Q.displayName)}),z.join(" ")}function O(B){return B.model.getRawData().count()}function I(B){var j=B.model;return j.setData(j.getRawData().cloneShallow()),R}function R(B,j){j.outputData&&B.end>j.outputData.count()&&j.model.getRawData().cloneShallow(j.outputData)}function M(B,j){x.each(B.CHANGABLE_METHODS,function(W){B.wrapMethod(W,x.curry(F,j))})}function F(B){var j=P(B);j&&j.setOutputEnd(this.count())}function P(B){var j=(B.ecModel||{}).scheduler,W=j&&j.getPipeline(B.uid);if(W){var z=W.currentTask;if(z){var V=z.agentStubMap;V&&(z=V.get(B.uid))}return z}}var X=_;k.exports=X},T6xi:function(k,D,n){var y=n("YgsL"),p=n("nCxF");function x(A,m,f){var h=m.points,u=m.smooth;if(h&&h.length>=2){if(u&&u!=="spline"){var a=p(h,u,f,m.smoothConstraint);A.moveTo(h[0][0],h[0][1]);for(var i=h.length,t=0;t<(f?i:i-1);t++){var o=a[t*2],e=a[t*2+1],l=h[(t+1)%i];A.bezierCurveTo(o[0],o[1],e[0],e[1],l[0],l[1])}}else{u==="spline"&&(h=y(h,f)),A.moveTo(h[0][0],h[0][1]);for(var t=1,r=h.length;t<r;t++)A.lineTo(h[t][0],h[t][1])}f&&A.closePath()}}D.buildPath=x},TIY9:function(k,D,n){var y=n("bYtY"),p=y.each,x=n("vafp"),A=n("4NO4"),m=A.makeInner,f=n("Mgri"),h=n("F5Ls"),u=n("a9QJ"),a=n("p/La"),i=m(),t={load:function(e,l,r){var s=i(l).parsed;if(s)return s;var c=l.specialAreas||{},d=l.geoJSON,g;try{g=d?x(d,r):[]}catch(v){throw new Error(`Invalid geoJson format
|
|
|
`+v.message)}return f(e,g),p(g,function(v){var b=v.name;h(e,v),u(e,v),a(e,v);var S=c[b];S&&v.transformTo(S.left,S.top,S.width,S.height)}),i(l).parsed={regions:g,boundingRect:o(g)}}};function o(e){for(var l,r=0;r<e.length;r++){var s=e[r].getBoundingRect();l=l||s.clone(),l.union(s)}return l}k.exports=t},TJmX:function(k,D,n){var y=n("zM3Q"),p=["itemStyle","borderColor"],x=["itemStyle","borderColor0"],A=["itemStyle","color"],m=["itemStyle","color0"],f={seriesType:"candlestick",plan:y(),performRawSeries:!0,reset:function(h,u){var a=h.getData();if(a.setVisual({legendSymbol:"roundRect",colorP:o(1,h),colorN:o(-1,h),borderColorP:e(1,h),borderColorN:e(-1,h)}),u.isSeriesFiltered(h))return;var i=h.pipelineContext.large;return!i&&{progress:t};function t(l,r){for(var s;(s=l.next())!=null;){var c=r.getItemModel(s),d=r.getItemLayout(s).sign;r.setItemVisual(s,{color:o(d,c),borderColor:e(d,c)})}}function o(l,r){return r.get(l>0?A:m)}function e(l,r){return r.get(l>0?p:x)}}};k.exports=f},TWL2:function(k,D,n){var y=n("IwbS"),p=n("bYtY"),x=n("6Ic6");function A(a,i){y.Group.call(this);var t=new y.Polygon,o=new y.Polyline,e=new y.Text;this.add(t),this.add(o),this.add(e),this.highDownOnUpdate=function(l,r){r==="emphasis"?(o.ignore=o.hoverIgnore,e.ignore=e.hoverIgnore):(o.ignore=o.normalIgnore,e.ignore=e.normalIgnore)},this.updateData(a,i,!0)}var m=A.prototype,f=["itemStyle","opacity"];m.updateData=function(a,i,t){var o=this.childAt(0),e=a.hostModel,l=a.getItemModel(i),r=a.getItemLayout(i),s=a.getItemModel(i).get(f);s=s==null?1:s,o.useStyle({}),t?(o.setShape({points:r.points}),o.setStyle({opacity:0}),y.initProps(o,{style:{opacity:s}},e,i)):y.updateProps(o,{style:{opacity:s},shape:{points:r.points}},e,i);var c=l.getModel("itemStyle"),d=a.getItemVisual(i,"color");o.setStyle(p.defaults({lineJoin:"round",fill:d},c.getItemStyle(["opacity"]))),o.hoverStyle=c.getModel("emphasis").getItemStyle(),this._updateLabel(a,i),y.setHoverStyle(this)},m._updateLabel=function(a,i){var t=this.childAt(1),o=this.childAt(2),e=a.hostModel,l=a.getItemModel(i),r=a.getItemLayout(i),s=r.label,c=a.getItemVisual(i,"color");y.updateProps(t,{shape:{points:s.linePoints||s.linePoints}},e,i),y.updateProps(o,{style:{x:s.x,y:s.y}},e,i),o.attr({rotation:s.rotation,origin:[s.x,s.y],z2:10});var d=l.getModel("label"),g=l.getModel("emphasis.label"),v=l.getModel("labelLine"),b=l.getModel("emphasis.labelLine"),c=a.getItemVisual(i,"color");y.setLabelStyle(o.style,o.hoverStyle={},d,g,{labelFetcher:a.hostModel,labelDataIndex:i,defaultText:a.getName(i),autoColor:c,useInsideStyle:!!s.inside},{textAlign:s.textAlign,textVerticalAlign:s.verticalAlign}),o.ignore=o.normalIgnore=!d.get("show"),o.hoverIgnore=!g.get("show"),t.ignore=t.normalIgnore=!v.get("show"),t.hoverIgnore=!b.get("show"),t.setStyle({stroke:c}),t.setStyle(v.getModel("lineStyle").getLineStyle()),t.hoverStyle=b.getModel("lineStyle").getLineStyle()},p.inherits(A,y.Group);var h=x.extend({type:"funnel",render:function(a,i,t){var o=a.getData(),e=this._data,l=this.group;o.diff(e).add(function(r){var s=new A(o,r);o.setItemGraphicEl(r,s),l.add(s)}).update(function(r,s){var c=e.getItemGraphicEl(s);c.updateData(o,r),l.add(c),o.setItemGraphicEl(r,c)}).remove(function(r){var s=e.getItemGraphicEl(r);l.remove(s)}).execute(),this._data=o},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),u=h;k.exports=u},TYVI:function(k,D,n){var y=n("5GtS"),p=n("T4UG"),x=p.extend({type:"series.gauge",getInitialData:function(m,f){return y(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}}}),A=x;k.exports=A},Tghj:function(k,D,n){(function(y){var p;typeof window!="undefined"?p=window.__DEV__:typeof y!="undefined"&&(p=y.__DEV__),typeof p=="undefined"&&(p=!0);var x=p;D.__DEV__=x}).call(this,n("yLpj"))},ThAp:function(k,D,n){var y=n("bYtY"),p=n("5GtS"),x=n("T4UG"),A=n("7aKB"),m=A.encodeHTML,f=A.addCommas,h=n("cCMj"),u=n("KxfA"),a=u.retrieveRawAttr,i=n("W4dC"),t=n("D5nY"),o=t.makeSeriesEncodeForNameBased,e=x.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(r){for(var s=p(this,{coordDimensions:["value"],encodeDefaulter:y.curry(o,this)}),c=s.mapDimension("value"),d=y.createHashMap(),g=[],v=[],b=0,S=s.count();b<S;b++){var E=s.getName(b);d.set(E,!0),g.push({name:E,value:s.get(c,b),selected:a(s,b,"selected")})}var C=i.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return y.each(C.regions,function(_){var T=_.name;d.get(T)||(g.push({name:T}),v.push(T))}),this.updateSelectedMap(g),s.appendValues([],v),s},getHostGeoModel:function(){var r=this.option.geoIndex;return r!=null?this.dependentModels.geo[r]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(r){var s=this.getData();return s.get(s.mapDimension("value"),r)},getRegionModel:function(r){var s=this.getData();return s.getItemModel(s.indexOfName(r))},formatTooltip:function(r){for(var s=this.getData(),c=f(this.getRawValue(r)),d=s.getName(r),g=this.seriesGroup,v=[],b=0;b<g.length;b++){var S=g[b].originalData.indexOfName(d),E=s.mapDimension("value");isNaN(g[b].originalData.get(E,S))||v.push(m(g[b].name))}return v.join(", ")+"<br />"+m(d+" : "+c)},getTooltipPosition:function(r){if(r!=null){var s=this.getData().getName(r),c=this.coordinateSystem,d=c.getRegion(s);return d&&c.dataToPoint(d.center)}},setZoom:function(r){this.option.zoom=r},setCenter:function(r){this.option.center=r},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"}});y.mixin(e,h);var l=e;k.exports=l},TkdX:function(k,D,n){var y=n("bYtY"),p=n("IwbS"),x={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},A=2,m=4;function f(e,l,r){p.Group.call(this);var s=new p.Sector({z2:A});s.seriesIndex=l.seriesIndex;var c=new p.Text({z2:m,silent:e.getModel("label").get("silent")});this.add(s),this.add(c),this.updateData(!0,e,"normal",l,r);function d(){c.ignore=c.hoverIgnore}function g(){c.ignore=c.normalIgnore}this.on("emphasis",d).on("normal",g).on("mouseover",d).on("mouseout",g)}var h=f.prototype;h.updateData=function(e,l,r,s,c){this.node=l,l.piece=this,s=s||this._seriesModel,c=c||this._ecModel;var d=this.childAt(0);d.dataIndex=l.dataIndex;var g=l.getModel(),v=l.getLayout(),b=y.extend({},v);b.label=null;var S=a(l,s,c);o(l,s,S);var E=g.getModel("itemStyle").getItemStyle(),C;if(r==="normal")C=E;else{var _=g.getModel(r+".itemStyle").getItemStyle();C=y.merge(_,E)}C=y.defaults({lineJoin:"bevel",fill:C.fill||S},C),e?(d.setShape(b),d.shape.r=v.r0,p.updateProps(d,{shape:{r:v.r}},s,l.dataIndex),d.useStyle(C)):typeof C.fill=="object"&&C.fill.type||typeof d.style.fill=="object"&&d.style.fill.type?(p.updateProps(d,{shape:b},s),d.useStyle(C)):p.updateProps(d,{shape:b,style:C},s),this._updateLabel(s,S,r);var T=g.getShallow("cursor");if(T&&d.attr("cursor",T),e){var w=s.getShallow("highlightPolicy");this._initEvents(d,l,s,w)}this._seriesModel=s||this._seriesModel,this._ecModel=c||this._ecModel,p.setHoverStyle(this)},h.onEmphasis=function(e){var l=this;this.node.hostTree.root.eachNode(function(r){r.piece&&(l.node===r?r.piece.updateData(!1,r,"emphasis"):t(r,l.node,e)?r.piece.childAt(0).trigger("highlight"):e!==x.NONE&&r.piece.childAt(0).trigger("downplay"))})},h.onNormal=function(){this.node.hostTree.root.eachNode(function(e){e.piece&&e.piece.updateData(!1,e,"normal")})},h.onHighlight=function(){this.updateData(!1,this.node,"highlight")},h.onDownplay=function(){this.updateData(!1,this.node,"downplay")},h._updateLabel=function(e,l,r){var s=this.node.getModel(),c=s.getModel("label"),d=r==="normal"||r==="emphasis"?c:s.getModel(r+".label"),g=s.getModel("emphasis.label"),v=y.retrieve(e.getFormattedLabel(this.node.dataIndex,r,null,null,"label"),this.node.name);j("show")===!1&&(v="");var b=this.node.getLayout(),S=d.get("minAngle");S==null&&(S=c.get("minAngle")),S=S/180*Math.PI;var E=b.endAngle-b.startAngle;S!=null&&Math.abs(E)<S&&(v="");var C=this.childAt(1);p.setLabelStyle(C.style,C.hoverStyle||{},c,g,{defaultText:d.getShallow("show")?v:null,autoColor:l,useInsideStyle:!0});var _=(b.startAngle+b.endAngle)/2,T=Math.cos(_),w=Math.sin(_),O,I=j("position"),R=j("distance")||0,M=j("align");I==="outside"?(O=b.r+R,M=_>Math.PI/2?"right":"left"):!M||M==="center"?(O=(b.r+b.r0)/2,M="center"):M==="left"?(O=b.r0+R,_>Math.PI/2&&(M="right")):M==="right"&&(O=b.r-R,_>Math.PI/2&&(M="left")),C.attr("style",{text:v,textAlign:M,textVerticalAlign:j("verticalAlign")||"middle",opacity:j("opacity")});var F=O*T+b.cx,P=O*w+b.cy;C.attr("position",[F,P]);var X=j("rotate"),B=0;X==="radial"?(B=-_,B<-Math.PI/2&&(B+=Math.PI)):X==="tangential"?(B=Math.PI/2-_,B>Math.PI/2?B-=Math.PI:B<-Math.PI/2&&(B+=Math.PI)):typeof X=="number"&&(B=X*Math.PI/180),C.attr("rotation",B);function j(W){var z=d.get(W);return z==null?c.get(W):z}},h._initEvents=function(e,l,r,s){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var c=this,d=function(){c.onEmphasis(s)},g=function(){c.onNormal()},v=function(){c.onDownplay()},b=function(){c.onHighlight()};r.isAnimationEnabled()&&e.on("mouseover",d).on("mouseout",g).on("emphasis",d).on("normal",g).on("downplay",v).on("highlight",b)},y.inherits(f,p.Group);var u=f;function a(e,l,r){var s=e.getVisual("color"),c=e.getVisual("visualMeta");(!c||c.length===0)&&(s=null);var d=e.getModel("itemStyle").get("color");if(d)return d;if(s)return s;if(e.depth===0)return r.option.color[0];var g=r.option.color.length;return d=r.option.color[i(e)%g],d}function i(e){for(var l=e;l.depth>1;)l=l.parentNode;var r=e.getAncestors()[0];return y.indexOf(r.children,l)}function t(e,l,r){return r===x.NONE?!1:r===x.SELF?e===l:r===x.ANCESTOR?e===l||e.isAncestorOf(l):e===l||e.isDescendantOf(l)}function o(e,l,r){var s=l.getData();s.setItemVisual(e.dataIndex,"color",r)}k.exports=u},Tp9H:function(k,D,n){var y=n("ItGF"),p=n("Kagy"),x=n("IUWy"),A=p.toolbox.saveAsImage;function m(u){this.model=u}m.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:A.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:A.lang.slice()},m.prototype.unusable=!y.canvasSupported;var f=m.prototype;f.onclick=function(u,a){var i=this.model,t=i.get("name")||u.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",e=o?"svg":i.get("type",!0)||"png",l=a.getConnectedDataURL({type:e,backgroundColor:i.get("backgroundColor",!0)||u.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if(typeof MouseEvent=="function"&&!y.browser.ie&&!y.browser.edge){var r=document.createElement("a");r.download=t+"."+e,r.target="_blank",r.href=l;var s=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});r.dispatchEvent(s)}else if(window.navigator.msSaveOrOpenBlob){for(var c=atob(l.split(",")[1]),d=c.length,g=new Uint8Array(d);d--;)g[d]=c.charCodeAt(d);var v=new Blob([g]);window.navigator.msSaveOrOpenBlob(v,t+"."+e)}else{var b=i.get("lang"),S='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',E=window.open();E.document.write(S)}},x.register("saveAsImage",m);var h=m;k.exports=h},"U/Mo":function(k,D){function n(p){var x=p.coordinateSystem;if(x.type!=="view")return 1;var A=p.option.nodeScaleRatio,m=x.scale,f=m&&m[0]||1,h=x.getZoom(),u=(h-1)*A+1;return u/f}function y(p){var x=p.getVisual("symbolSize");return x instanceof Array&&(x=(x[0]+x[1])/2),+x}D.getNodeGlobalScale=n,D.getSymbolSize=y},UADf:function(k,D,n){},UESt:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={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=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="RightOutlined";var h=D.a=p.forwardRef(f)},"UNi/":function(k,D){function n(y,p){for(var x=-1,A=Array(y);++x<y;)A[x]=p(x);return A}k.exports=n},UOVi:function(k,D,n){var y=n("bYtY"),p=n("7aKB"),x=["x","y","z","radius","angle","single"],A=["cartesian2d","polar","singleAxis"];function m(a){return y.indexOf(A,a)>=0}function f(a,i){a=a.slice();var t=y.map(a,p.capitalFirst);i=(i||[]).slice();var o=y.map(i,p.capitalFirst);return function(e,l){y.each(a,function(r,s){for(var c={name:r,capital:t[s]},d=0;d<i.length;d++)c[i[d]]=r+o[d];e.call(l,c)})}}var h=f(x,["axisIndex","axis","index","id"]);function u(a,i,t){return function(r){var s={nodes:[],records:{}};if(i(function(g){s.records[g.name]={}}),!r)return s;l(r,s);var c;do c=!1,a(d);while(c);function d(g){!o(g,s)&&e(g,s)&&(l(g,s),c=!0)}return s};function o(r,s){return y.indexOf(s.nodes,r)>=0}function e(r,s){var c=!1;return i(function(d){y.each(t(r,d)||[],function(g){s.records[d.name][g]&&(c=!0)})}),c}function l(r,s){s.nodes.push(r),i(function(c){y.each(t(r,c)||[],function(d){s.records[c.name][d]=!0})})}}D.isCoordSupported=m,D.createNameEach=f,D.eachAxisDim=h,D.createLinkedNodesFinder=u},Uc92:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},UnoB:function(k,D,n){var y=n("bYtY"),p=n("OELB");function x(f,h){f.eachSeriesByType("themeRiver",function(u){var a=u.getData(),i=u.coordinateSystem,t={},o=i.getRect();t.rect=o;var e=u.get("boundaryGap"),l=i.getAxis();if(t.boundaryGap=e,l.orient==="horizontal"){e[0]=p.parsePercent(e[0],o.height),e[1]=p.parsePercent(e[1],o.height);var r=o.height-e[0]-e[1];A(a,u,r)}else{e[0]=p.parsePercent(e[0],o.width),e[1]=p.parsePercent(e[1],o.width);var s=o.width-e[0]-e[1];A(a,u,s)}a.setLayout("layoutInfo",t)})}function A(f,h,u){if(!f.count())return;for(var a=h.coordinateSystem,i=h.getLayerSeries(),t=f.mapDimension("single"),o=f.mapDimension("value"),e=y.map(i,function(S){return y.map(S.indices,function(E){var C=a.dataToPoint(f.get(t,E));return C[1]=f.get(o,E),C})}),l=m(e),r=l.y0,s=u/l.max,c=i.length,d=i[0].indices.length,g,v=0;v<d;++v){g=r[v]*s,f.setItemLayout(i[0].indices[v],{layerIndex:0,x:e[0][v][0],y0:g,y:e[0][v][1]*s});for(var b=1;b<c;++b)g+=e[b-1][v][1]*s,f.setItemLayout(i[b].indices[v],{layerIndex:b,x:e[b][v][0],y0:g,y:e[b][v][1]*s})}}function m(f){for(var h=f.length,u=f[0].length,a=[],i=[],t=0,o,e={},l=0;l<u;++l){for(var r=0,o=0;r<h;++r)o+=f[r][l][1];o>t&&(t=o),a.push(o)}for(var s=0;s<u;++s)i[s]=(t-a[s])/2;t=0;for(var c=0;c<u;++c){var d=a[c]+i[c];d>t&&(t=d)}return e.y0=i,e.max=t,e}k.exports=x},Urep:function(k,D,n){},V6Ve:function(k,D,n){var y=n("kekF"),p=y(Object.keys,Object);k.exports=p},VFCP:function(k,D,n){n("dBmv"),n("KamJ")},VPsl:function(k,D){function n(y){y.eachSeriesByType("map",function(p){var x=p.get("color"),A=p.getModel("itemStyle"),m=A.get("areaColor"),f=A.get("color")||x[p.seriesIndex%x.length];p.getData().setVisual({areaColor:m,color:f})})}k.exports=n},VR9l:function(k,D,n){var y=n("KCsZ"),p=y([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),x={getItemStyle:function(A,m){var f=p(this,A,m),h=this.getBorderLineDash();return h&&(f.lineDash=h),f},getBorderLineDash:function(){var A=this.get("borderType");return A==="solid"||A==null?null:A==="dashed"?[5,5]:[1,1]}};k.exports=x},VSLf:function(k,D,n){n("I+Bx"),n("F0hE"),n("bBKM")},VSMT:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.decodeUTF8=y,D.encodeUTF8=p;function y(x){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;try{return decodeURIComponent(escape(x))}catch(m){if(m instanceof URIError&&A)return x;throw m}}function p(x){return unescape(encodeURIComponent(x))}},VXYp:function(k,D,n){var y=n("bYtY"),p=n("SgGq"),x=n("iLNv"),A="\0_ec_dataZoom_roams";function m(e,l){var r=u(e),s=l.dataZoomId,c=l.coordId;y.each(r,function(v,b){var S=v.dataZoomInfos;S[s]&&y.indexOf(l.allCoordIds,c)<0&&(delete S[s],v.count--)}),i(r);var d=r[c];d||(d=r[c]={coordId:c,dataZoomInfos:{},count:0},d.controller=a(e,d),d.dispatchAction=y.curry(t,e)),!d.dataZoomInfos[s]&&d.count++,d.dataZoomInfos[s]=l;var g=o(d.dataZoomInfos);d.controller.enable(g.controlType,g.opt),d.controller.setPointerChecker(l.containsPoint),x.createOrUpdate(d,"dispatchAction",l.dataZoomModel.get("throttle",!0),"fixRate")}function f(e,l){var r=u(e);y.each(r,function(s){s.controller.dispose();var c=s.dataZoomInfos;c[l]&&(delete c[l],s.count--)}),i(r)}function h(e){return e.type+"\0_"+e.id}function u(e){var l=e.getZr();return l[A]||(l[A]={})}function a(e,l){var r=new p(e.getZr());return y.each(["pan","zoom","scrollMove"],function(s){r.on(s,function(c){var d=[];y.each(l.dataZoomInfos,function(g){if(!c.isAvailableBehavior(g.dataZoomModel.option))return;var v=(g.getRange||{})[s],b=v&&v(l.controller,c);!g.dataZoomModel.get("disabled",!0)&&b&&d.push({dataZoomId:g.dataZoomId,start:b[0],end:b[1]})}),d.length&&l.dispatchAction(d)})}),r}function i(e){y.each(e,function(l,r){l.count||(l.controller.dispose(),delete e[r])})}function t(e,l){e.dispatchAction({type:"dataZoom",batch:l})}function o(e){var l,r="type_",s={type_true:2,type_move:1,type_false:0,type_undefined:-1},c=!0;return y.each(e,function(d){var g=d.dataZoomModel,v=g.get("disabled",!0)?!1:g.get("zoomLock",!0)?"move":!0;s[r+v]>s[r+l]&&(l=v),c&=g.get("preventDefaultMouseMove",!0)}),{controlType:l,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!c}}}D.register=m,D.unregister=f,D.generateCoordId=h},VaNO:function(k,D){function n(y){return this.__data__.has(y)}k.exports=n},VaxA:function(k,D,n){var y=n("bYtY");function p(f,h,u){if(f&&y.indexOf(h,f.type)>=0){var a=u.getData().tree.root,i=f.targetNode;if(typeof i=="string"&&(i=a.getNodeById(i)),i&&a.contains(i))return{node:i};var t=f.targetNodeId;if(t!=null&&(i=a.getNodeById(t)))return{node:i}}}function x(f){for(var h=[];f;)f=f.parentNode,f&&h.push(f);return h.reverse()}function A(f,h){var u=x(f);return y.indexOf(u,h)>=0}function m(f,h){for(var u=[];f;){var a=f.dataIndex;u.push({name:f.name,dataIndex:a,value:h.getRawValue(a)}),f=f.parentNode}return u.reverse(),u}D.retrieveTargetInfo=p,D.getPathToRoot=x,D.aboveViewRoot=A,D.wrapTreePathInfo=m},Ved0:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("1PJx"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},Vi4m:function(k,D,n){var y=n("bYtY");function p(A){A!=null&&y.extend(this,A),this.otherDims={}}var x=p;k.exports=x},Vl3Y:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("J4zp"),A=n.n(x),m=n("lSNA"),f=n.n(m),h=n("q1tI"),u=n("TSYQ"),a=n.n(u),i=n("85Yc"),t=n("H84U"),o=n("BGR+"),e=h.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),l=h.createContext({updateItemErrors:function(){}}),r=function(ft){var Mt=Object(o.default)(ft,["prefixCls"]);return h.createElement(i.FormProvider,Mt)};function s(ae){return typeof ae=="object"&&ae!=null&&ae.nodeType===1}function c(ae,ft){return(!ft||ae!=="hidden")&&ae!=="visible"&&ae!=="clip"}function d(ae,ft){if(ae.clientHeight<ae.scrollHeight||ae.clientWidth<ae.scrollWidth){var Mt=getComputedStyle(ae,null);return c(Mt.overflowY,ft)||c(Mt.overflowX,ft)||function(mt){var or=function(vr){if(!vr.ownerDocument||!vr.ownerDocument.defaultView)return null;try{return vr.ownerDocument.defaultView.frameElement}catch(fn){return null}}(mt);return!!or&&(or.clientHeight<mt.scrollHeight||or.clientWidth<mt.scrollWidth)}(ae)}return!1}function g(ae,ft,Mt,mt,or,vr,fn,sr){return vr<ae&&fn>ft||vr>ae&&fn<ft?0:vr<=ae&&sr<=Mt||fn>=ft&&sr>=Mt?vr-ae-mt:fn>ft&&sr<Mt||vr<ae&&sr>Mt?fn-ft+or:0}var v=function(ft,Mt){var mt=window,or=Mt.scrollMode,vr=Mt.block,fn=Mt.inline,sr=Mt.boundary,Ir=Mt.skipOverflowHiddenElements,lr=typeof sr=="function"?sr:function(it){return it!==sr};if(!s(ft))throw new TypeError("Invalid target");for(var Wt,xt,rn=document.scrollingElement||document.documentElement,Dn=[],Xn=ft;s(Xn)&&lr(Xn);){if((Xn=(xt=(Wt=Xn).parentElement)==null?Wt.getRootNode().host||null:xt)===rn){Dn.push(Xn);break}Xn!=null&&Xn===document.body&&d(Xn)&&!d(document.documentElement)||Xn!=null&&d(Xn,Ir)&&Dn.push(Xn)}for(var ri=mt.visualViewport?mt.visualViewport.width:innerWidth,Ui=mt.visualViewport?mt.visualViewport.height:innerHeight,Bn=window.scrollX||pageXOffset,Jn=window.scrollY||pageYOffset,Xt=ft.getBoundingClientRect(),_t=Xt.height,Fe=Xt.width,Pe=Xt.top,Be=Xt.right,nt=Xt.bottom,vt=Xt.left,ar=vr==="start"||vr==="nearest"?Pe:vr==="end"?nt:Pe+_t/2,kr=fn==="center"?vt+Fe/2:fn==="end"?Be:vt,mn=[],Zn=0;Zn<Dn.length;Zn++){var ni=Dn[Zn],ur=ni.getBoundingClientRect(),Nt=ur.height,bt=ur.width,gr=ur.top,Yt=ur.right,Pt=ur.bottom,rr=ur.left;if(or==="if-needed"&&Pe>=0&&vt>=0&&nt<=Ui&&Be<=ri&&Pe>=gr&&nt<=Pt&&vt>=rr&&Be<=Yt)return mn;var Rt=getComputedStyle(ni),qt=parseInt(Rt.borderLeftWidth,10),Yr=parseInt(Rt.borderTopWidth,10),Mr=parseInt(Rt.borderRightWidth,10),Dr=parseInt(Rt.borderBottomWidth,10),un=0,wn=0,ai="offsetWidth"in ni?ni.offsetWidth-ni.clientWidth-qt-Mr:0,ei="offsetHeight"in ni?ni.offsetHeight-ni.clientHeight-Yr-Dr:0,gi="offsetWidth"in ni?ni.offsetWidth===0?0:bt/ni.offsetWidth:0,Ii="offsetHeight"in ni?ni.offsetHeight===0?0:Nt/ni.offsetHeight:0;if(rn===ni)un=vr==="start"?ar:vr==="end"?ar-Ui:vr==="nearest"?g(Jn,Jn+Ui,Ui,Yr,Dr,Jn+ar,Jn+ar+_t,_t):ar-Ui/2,wn=fn==="start"?kr:fn==="center"?kr-ri/2:fn==="end"?kr-ri:g(Bn,Bn+ri,ri,qt,Mr,Bn+kr,Bn+kr+Fe,Fe),un=Math.max(0,un+Jn),wn=Math.max(0,wn+Bn);else{un=vr==="start"?ar-gr-Yr:vr==="end"?ar-Pt+Dr+ei:vr==="nearest"?g(gr,Pt,Nt,Yr,Dr+ei,ar,ar+_t,_t):ar-(gr+Nt/2)+ei/2,wn=fn==="start"?kr-rr-qt:fn==="center"?kr-(rr+bt/2)+ai/2:fn==="end"?kr-Yt+Mr+ai:g(rr,Yt,bt,qt,Mr+ai,kr,kr+Fe,Fe);var ki=ni.scrollLeft,Qi=ni.scrollTop;ar+=Qi-(un=Math.max(0,Math.min(Qi+un/Ii,ni.scrollHeight-Nt/Ii+ei))),kr+=ki-(wn=Math.max(0,Math.min(ki+wn/gi,ni.scrollWidth-bt/gi+ai)))}mn.push({el:ni,top:un,left:wn})}return mn};function b(ae){return ae===Object(ae)&&Object.keys(ae).length!==0}function S(ae,ft){ft===void 0&&(ft="auto");var Mt="scrollBehavior"in document.body.style;ae.forEach(function(mt){var or=mt.el,vr=mt.top,fn=mt.left;or.scroll&&Mt?or.scroll({top:vr,left:fn,behavior:ft}):(or.scrollTop=vr,or.scrollLeft=fn)})}function E(ae){return ae===!1?{block:"end",inline:"nearest"}:b(ae)?ae:{block:"start",inline:"nearest"}}function C(ae,ft){var Mt=ae.isConnected||ae.ownerDocument.documentElement.contains(ae);if(b(ft)&&typeof ft.behavior=="function")return ft.behavior(Mt?v(ae,ft):[]);if(!Mt)return;var mt=E(ft);return S(v(ae,mt),mt.behavior)}var _=C;function T(ae){return ae===void 0||ae===!1?[]:Array.isArray(ae)?ae:[ae]}function w(ae,ft){if(!ae.length)return;var Mt=ae.join("_");return ft?"".concat(ft,"_").concat(Mt):Mt}function O(ae){var ft=T(ae);return ft.join("_")}function I(ae){var ft=Object(i.useForm)(),Mt=A()(ft,1),mt=Mt[0],or=Object(h.useRef)({}),vr=Object(h.useMemo)(function(){return ae||p()(p()({},mt),{__INTERNAL__:{itemRef:function(sr){return function(Ir){var lr=O(sr);Ir?or.current[lr]=Ir:delete or.current[lr]}}},scrollToField:function(sr){var Ir=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},lr=T(sr),Wt=w(lr,vr.__INTERNAL__.name),xt=Wt?document.getElementById(Wt):null;xt&&_(xt,p()({scrollMode:"if-needed",block:"nearest"},Ir))},getFieldInstance:function(sr){var Ir=O(sr);return or.current[Ir]}})},[ae,mt]);return[vr]}var R=n("3Nzz"),M=function(ae,ft){var Mt={};for(var mt in ae)Object.prototype.hasOwnProperty.call(ae,mt)&&ft.indexOf(mt)<0&&(Mt[mt]=ae[mt]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var or=0,mt=Object.getOwnPropertySymbols(ae);or<mt.length;or++)ft.indexOf(mt[or])<0&&Object.prototype.propertyIsEnumerable.call(ae,mt[or])&&(Mt[mt[or]]=ae[mt[or]]);return Mt},F=function(ft,Mt){var mt,or=h.useContext(R.b),vr=h.useContext(t.b),fn=vr.getPrefixCls,sr=vr.direction,Ir=ft.name,lr=ft.prefixCls,Wt=ft.className,xt=Wt===void 0?"":Wt,rn=ft.size,Dn=rn===void 0?or:rn,Xn=ft.form,ri=ft.colon,Ui=ft.labelAlign,Bn=ft.labelCol,Jn=ft.wrapperCol,Xt=ft.hideRequiredMark,_t=ft.layout,Fe=_t===void 0?"horizontal":_t,Pe=ft.scrollToFirstError,Be=ft.requiredMark,nt=ft.onFinishFailed,vt=M(ft,["prefixCls","className","size","form","colon","labelAlign","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed"]),ar=Object(h.useMemo)(function(){return Be!==void 0?Be:!Xt},[Xt,Be]),kr=fn("form",lr),mn=a()(kr,(mt={},f()(mt,"".concat(kr,"-").concat(Fe),!0),f()(mt,"".concat(kr,"-hide-required-mark"),ar===!1),f()(mt,"".concat(kr,"-rtl"),sr==="rtl"),f()(mt,"".concat(kr,"-").concat(Dn),Dn),mt),xt),Zn=I(Xn),ni=A()(Zn,1),ur=ni[0],Nt=ur.__INTERNAL__;Nt.name=Ir;var bt=Object(h.useMemo)(function(){return{name:Ir,labelAlign:Ui,labelCol:Bn,wrapperCol:Jn,vertical:Fe==="vertical",colon:ri,requiredMark:ar,itemRef:Nt.itemRef}},[Ir,Ui,Bn,Jn,Fe,ri,ar]);h.useImperativeHandle(Mt,function(){return ur});var gr=function(Pt){nt&&nt(Pt),Pe&&Pt.errorFields.length&&ur.scrollToField(Pt.errorFields[0].name)};return h.createElement(R.a,{size:Dn},h.createElement(e.Provider,{value:bt},h.createElement(i.default,p()({id:Ir},vt,{onFinishFailed:gr,form:ur,className:mn}))))},P=h.forwardRef(F),X=P,B=n("cDf5"),j=n.n(B),W=n("RIqP"),z=n.n(W),V=n("Y+p1"),Q=n.n(V),G=n("KW7l"),ee=n("c+Xe"),ce=n("qrJ5"),be=n("CWQg"),le=n("uaoM"),Ie=n("/kpp"),ke=n("YMnH"),Re=n("ZvpZ"),Qe=function(ft){var Mt=ft.prefixCls,mt=ft.label,or=ft.htmlFor,vr=ft.labelCol,fn=ft.labelAlign,sr=ft.colon,Ir=ft.required,lr=ft.requiredMark,Wt=Object(ke.b)("Form"),xt=A()(Wt,1),rn=xt[0];return mt?h.createElement(e.Consumer,{key:"label"},function(Dn){var Xn,ri=Dn.vertical,Ui=Dn.labelAlign,Bn=Dn.labelCol,Jn=Dn.colon,Xt,_t=vr||Bn||{},Fe=fn||Ui,Pe="".concat(Mt,"-item-label"),Be=a()(Pe,Fe==="left"&&"".concat(Pe,"-left"),_t.className),nt=mt,vt=sr===!0||Jn!==!1&&sr!==!1,ar=vt&&!ri;ar&&typeof mt=="string"&&mt.trim()!==""&&(nt=mt.replace(/[:|:]\s*$/,"")),lr==="optional"&&!Ir&&(nt=h.createElement(h.Fragment,null,nt,h.createElement("span",{className:"".concat(Mt,"-item-optional")},(rn==null?void 0:rn.optional)||((Xt=Re.a.Form)===null||Xt===void 0?void 0:Xt.optional))));var kr=a()((Xn={},f()(Xn,"".concat(Mt,"-item-required"),Ir),f()(Xn,"".concat(Mt,"-item-required-mark-optional"),lr==="optional"),f()(Xn,"".concat(Mt,"-item-no-colon"),!vt),Xn));return h.createElement(Ie.a,p()({},_t,{className:Be}),h.createElement("label",{htmlFor:or,className:kr,title:typeof mt=="string"?mt:""},nt))}):null},We=Qe,ot=n("zU+y"),Oe=n.n(ot),oe=n("f0uV"),st=n.n(oe),he=n("hfce"),J=n.n(he),Y=n("/TCm"),$=n.n(Y),fe=n("YrtM"),we=n("HTfv"),Ne=n("hkKa");function Ee(ae,ft,Mt){var mt=h.useRef({errors:ae,visible:!!ae.length}),or=Object(Ne.a)(),vr=function(){var sr=mt.current.visible,Ir=!!ae.length,lr=mt.current.errors;mt.current.errors=ae,mt.current.visible=Ir,sr!==Ir?ft(Ir):(lr.length!==ae.length||lr.some(function(Wt,xt){return Wt!==ae[xt]}))&&or()};return h.useEffect(function(){if(!Mt){var fn=setTimeout(vr,10);return function(){return clearTimeout(fn)}}},[ae]),Mt&&vr(),[mt.current.visible,mt.current.errors]}var de={success:J.a,warning:$.a,error:st.a,validating:Oe.a},me=function(ft){var Mt=ft.prefixCls,mt=ft.wrapperCol,or=ft.children,vr=ft.help,fn=ft.errors,sr=ft.onDomErrorVisibleChange,Ir=ft.hasFeedback,lr=ft.validateStatus,Wt=ft.extra,xt=Object(Ne.a)(),rn="".concat(Mt,"-item"),Dn=h.useContext(e),Xn=mt||Dn.wrapperCol||{},ri=a()("".concat(rn,"-control"),Xn.className),Ui=Ee(fn,function(nt){nt&&Promise.resolve().then(function(){sr(!0)}),xt()},!!vr),Bn=A()(Ui,2),Jn=Bn[0],Xt=Bn[1];h.useEffect(function(){return function(){sr(!1)}},[]);var _t=Object(fe.a)(function(){return Xt},Jn,function(nt,vt){return vt}),Fe=lr&&de[lr],Pe=Ir&&Fe?h.createElement("span",{className:"".concat(rn,"-children-icon")},h.createElement(Fe,null)):null,Be=p()({},Dn);return delete Be.labelCol,delete Be.wrapperCol,h.createElement(e.Provider,{value:Be},h.createElement(Ie.a,p()({},Xn,{className:ri}),h.createElement("div",{className:"".concat(rn,"-control-input")},h.createElement("div",{className:"".concat(rn,"-control-input-content")},or),Pe),h.createElement(we.default,{motionDeadline:500,visible:Jn,motionName:"show-help",onLeaveEnd:function(){sr(!1)},motionAppear:!0,removeOnLeave:!0},function(nt){var vt=nt.className;return h.createElement("div",{className:a()("".concat(rn,"-explain"),vt),key:"help"},_t.map(function(ar,kr){return h.createElement("div",{key:kr,role:"alert"},ar)}))}),Wt&&h.createElement("div",{className:"".concat(rn,"-extra")},Wt)))},Le=me,tt=n("0n0R"),At=n("xEkU"),ht=n.n(At);function Ke(ae){var ft=h.useState(ae),Mt=A()(ft,2),mt=Mt[0],or=Mt[1],vr=Object(h.useRef)(null),fn=Object(h.useRef)([]),sr=Object(h.useRef)(!1);h.useEffect(function(){return function(){sr.current=!0,ht.a.cancel(vr.current)}},[]);function Ir(lr){if(sr.current)return;vr.current===null&&(fn.current=[],vr.current=ht()(function(){vr.current=null,or(function(Wt){var xt=Wt;return fn.current.forEach(function(rn){xt=rn(xt)}),xt})})),fn.current.push(lr)}return[mt,Ir]}function Jt(){var ae=h.useContext(e),ft=ae.itemRef,Mt=h.useRef({});function mt(or,vr){var fn=vr&&j()(vr)==="object"&&vr.ref,sr=or.join("_");return(Mt.current.name!==sr||Mt.current.originRef!==fn)&&(Mt.current.name=sr,Mt.current.originRef=fn,Mt.current.ref=Object(ee.a)(ft(or),fn)),Mt.current.ref}return mt}var ct=function(ae,ft){var Mt={};for(var mt in ae)Object.prototype.hasOwnProperty.call(ae,mt)&&ft.indexOf(mt)<0&&(Mt[mt]=ae[mt]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var or=0,mt=Object.getOwnPropertySymbols(ae);or<mt.length;or++)ft.indexOf(mt[or])<0&&Object.prototype.propertyIsEnumerable.call(ae,mt[or])&&(Mt[mt[or]]=ae[mt[or]]);return Mt},Gt=Object(be.a)("success","warning","error","validating",""),dr=h.memo(function(ae){var ft=ae.children;return ft},function(ae,ft){return ae.value===ft.value&&ae.update===ft.update});function zt(ae){return ae===null&&Object(le.a)(!1,"Form.Item","`null` is passed as `name` property"),!(ae==null)}function kt(ae){var ft=ae.name,Mt=ae.fieldKey,mt=ae.noStyle,or=ae.dependencies,vr=ae.prefixCls,fn=ae.style,sr=ae.className,Ir=ae.shouldUpdate,lr=ae.hasFeedback,Wt=ae.help,xt=ae.rules,rn=ae.validateStatus,Dn=ae.children,Xn=ae.required,ri=ae.label,Ui=ae.trigger,Bn=Ui===void 0?"onChange":Ui,Jn=ae.validateTrigger,Xt=ae.hidden,_t=ct(ae,["name","fieldKey","noStyle","dependencies","prefixCls","style","className","shouldUpdate","hasFeedback","help","rules","validateStatus","children","required","label","trigger","validateTrigger","hidden"]),Fe=h.useRef(!1),Pe=h.useContext(t.b),Be=Pe.getPrefixCls,nt=h.useContext(e),vt=nt.name,ar=nt.requiredMark,kr=h.useContext(l),mn=kr.updateItemErrors,Zn=h.useState(!!Wt),ni=A()(Zn,2),ur=ni[0],Nt=ni[1],bt=h.useRef(rn),gr=Ke({}),Yt=A()(gr,2),Pt=Yt[0],rr=Yt[1],Rt=h.useContext(G.b),qt=Rt.validateTrigger,Yr=Jn!==void 0?Jn:qt;function Mr(it){Fe.current||Nt(it)}var Dr=zt(ft),un=h.useRef([]);h.useEffect(function(){return function(){Fe.current=!0,mn(un.current.join("__SPLIT__"),[])}},[]);var wn=Be("form",vr),ai=mt?mn:function(it,Me){rr(function(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Q()(je[it],Me)?je:p()(p()({},je),f()({},it,Me))})},ei=Jt();function gi(it,Me,je,Ye){var rt,qe;if(mt&&!Xt)return it;var at=[];Object.keys(Pt).forEach(function(Qr){at=[].concat(z()(at),z()(Pt[Qr]||[]))});var St;Wt!=null?St=T(Wt):(St=je?je.errors:[],St=[].concat(z()(St),z()(at)));var gt="";rn!==void 0?gt=rn:(je==null?void 0:je.validating)?gt="validating":((qe=je==null?void 0:je.errors)===null||qe===void 0?void 0:qe.length)||at.length?gt="error":(je==null?void 0:je.touched)&&(gt="success"),ur&&Wt&&(bt.current=gt);var hr=(rt={},f()(rt,"".concat(wn,"-item"),!0),f()(rt,"".concat(wn,"-item-with-help"),ur||Wt),f()(rt,"".concat(sr),!!sr),f()(rt,"".concat(wn,"-item-has-feedback"),gt&&lr),f()(rt,"".concat(wn,"-item-has-success"),gt==="success"),f()(rt,"".concat(wn,"-item-has-warning"),gt==="warning"),f()(rt,"".concat(wn,"-item-has-error"),gt==="error"),f()(rt,"".concat(wn,"-item-has-error-leave"),!Wt&&ur&&bt.current==="error"),f()(rt,"".concat(wn,"-item-is-validating"),gt==="validating"),f()(rt,"".concat(wn,"-item-hidden"),Xt),rt);return h.createElement(ce.a,p()({className:a()(hr),style:fn,key:"row"},Object(o.default)(_t,["colon","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","normalize","preserve","required","validateFirst","validateStatus","valuePropName","wrapperCol"])),h.createElement(We,p()({htmlFor:Me,required:Ye,requiredMark:ar},ae,{prefixCls:wn})),h.createElement(Le,p()({},ae,je,{errors:St,prefixCls:wn,onDomErrorVisibleChange:Mr,validateStatus:gt}),h.createElement(l.Provider,{value:{updateItemErrors:ai}},it)))}var Ii=typeof Dn=="function",ki=h.useRef(0);if(ki.current+=1,!Dr&&!Ii&&!or)return gi(Dn);var Qi={};return typeof ri=="string"&&(Qi.label=ri),h.createElement(i.Field,p()({},ae,{messageVariables:Qi,trigger:Bn,validateTrigger:Yr,onReset:function(){Mr(!1)}}),function(it,Me,je){var Ye=Me.errors,rt=T(ft).length&&Me?Me.name:[],qe=w(rt,vt);if(mt){if(un.current=z()(rt),Mt){var at=Array.isArray(Mt)?Mt:[Mt];un.current=[].concat(z()(rt.slice(0,-1)),z()(at))}mn(un.current.join("__SPLIT__"),Ye)}var St=Xn!==void 0?Xn:!!(xt&&xt.some(function(dn){if(dn&&j()(dn)==="object"&&dn.required)return!0;if(typeof dn=="function"){var mr=dn(je);return mr&&mr.required}return!1})),gt=p()({},it),hr=null;if(Object(le.a)(!(Ir&&or),"Form.Item","`shouldUpdate` and `dependencies` shouldn't be used together. See https://ant.design/components/form/#dependencies."),Array.isArray(Dn)&&Dr)Object(le.a)(!1,"Form.Item","`children` is array of render props cannot have `name`."),hr=Dn;else if(Ii&&(!(Ir||or)||Dr))Object(le.a)(!!(Ir||or),"Form.Item","`children` of render props only work with `shouldUpdate` or `dependencies`."),Object(le.a)(!Dr,"Form.Item","Do not use `name` with `children` of render props since it's not a field.");else if(or&&!Ii&&!Dr)Object(le.a)(!1,"Form.Item","Must set `name` or use render props when `dependencies` is set.");else if(Object(tt.b)(Dn)){Object(le.a)(Dn.props.defaultValue===void 0,"Form.Item","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");var Qr=p()(p()({},Dn.props),gt);Qr.id||(Qr.id=qe),Object(ee.c)(Dn)&&(Qr.ref=ei(rt,Dn));var Xr=new Set([].concat(z()(T(Bn)),z()(T(Yr))));Xr.forEach(function(dn){Qr[dn]=function(){for(var mr,Kn,Rr,Rn,An,Zr=arguments.length,hi=new Array(Zr),Mi=0;Mi<Zr;Mi++)hi[Mi]=arguments[Mi];(Rr=gt[dn])===null||Rr===void 0||(mr=Rr).call.apply(mr,[gt].concat(hi)),(An=(Rn=Dn.props)[dn])===null||An===void 0||(Kn=An).call.apply(Kn,[Rn].concat(hi))}}),hr=h.createElement(dr,{value:gt[ae.valuePropName||"value"],update:ki.current},Object(tt.a)(Dn,Qr))}else Ii&&(Ir||or)&&!Dr?hr=Dn(je):(Object(le.a)(!rt.length,"Form.Item","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),hr=Dn);return gi(hr,qe,Me,St)})}var Vt=kt,Xe=function(ae,ft){var Mt={};for(var mt in ae)Object.prototype.hasOwnProperty.call(ae,mt)&&ft.indexOf(mt)<0&&(Mt[mt]=ae[mt]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var or=0,mt=Object.getOwnPropertySymbols(ae);or<mt.length;or++)ft.indexOf(mt[or])<0&&Object.prototype.propertyIsEnumerable.call(ae,mt[or])&&(Mt[mt[or]]=ae[mt[or]]);return Mt},pe=function(ft){var Mt=ft.children,mt=Xe(ft,["children"]);return Object(le.a)(!!mt.name,"Form.List","Miss `name` prop."),h.createElement(i.List,mt,function(or,vr){return Mt(or.map(function(fn){return p()(p()({},fn),{fieldKey:fn.key})}),vr)})},te=pe,$e=X;$e.Item=Vt,$e.List=te,$e.useForm=I,$e.Provider=r,$e.create=function(){Object(le.a)(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};var He=D.a=$e},VpOo:function(k,D){function n(y,p){var x=p.x,A=p.y,m=p.width,f=p.height,h=p.r,u,a,i,t;m<0&&(x=x+m,m=-m),f<0&&(A=A+f,f=-f),typeof h=="number"?u=a=i=t=h:h instanceof Array?h.length===1?u=a=i=t=h[0]:h.length===2?(u=i=h[0],a=t=h[1]):h.length===3?(u=h[0],a=t=h[1],i=h[2]):(u=h[0],a=h[1],i=h[2],t=h[3]):u=a=i=t=0;var o;u+a>m&&(o=u+a,u*=m/o,a*=m/o),i+t>m&&(o=i+t,i*=m/o,t*=m/o),a+i>f&&(o=a+i,a*=f/o,i*=f/o),u+t>f&&(o=u+t,u*=f/o,t*=f/o),y.moveTo(x+u,A),y.lineTo(x+m-a,A),a!==0&&y.arc(x+m-a,A+a,a,-Math.PI/2,0),y.lineTo(x+m,A+f-i),i!==0&&y.arc(x+m-i,A+f-i,i,0,Math.PI/2),y.lineTo(x+t,A+f),t!==0&&y.arc(x+t,A+f-t,t,Math.PI/2,Math.PI),y.lineTo(x,A+u),u!==0&&y.arc(x+u,A+u,u,Math.PI,Math.PI*1.5)}D.buildPath=n},"VrN/":function(k,D,n){(function(y,p){k.exports=p()})(this,function(){"use strict";var y=navigator.userAgent,p=navigator.platform,x=/gecko\/\d/i.test(y),A=/MSIE \d/.test(y),m=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(y),f=/Edge\/(\d+)/.exec(y),h=A||m||f,u=h&&(A?document.documentMode||6:+(f||m)[1]),a=!f&&/WebKit\//.test(y),i=a&&/Qt\/\d+\.\d+/.test(y),t=!f&&/Chrome\//.test(y),o=/Opera\//.test(y),e=/Apple Computer/.test(navigator.vendor),l=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(y),r=/PhantomJS/.test(y),s=!f&&/AppleWebKit/.test(y)&&/Mobile\/\w+/.test(y),c=/Android/.test(y),d=s||c||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(y),g=s||/Mac/.test(p),v=/\bCrOS\b/.test(y),b=/win/i.test(p),S=o&&y.match(/Version\/(\d*\.\d*)/);S&&(S=Number(S[1])),S&&S>=15&&(o=!1,a=!0);var E=g&&(i||o&&(S==null||S<12.11)),C=x||h&&u>=9;function _(N){return new RegExp("(^|\\s)"+N+"(?:$|\\s)\\s*")}var T=function(U,ne){var se=U.className,ge=_(ne).exec(se);if(ge){var ze=se.slice(ge.index+ge[0].length);U.className=se.slice(0,ge.index)+(ze?ge[1]+ze:"")}};function w(N){for(var U=N.childNodes.length;U>0;--U)N.removeChild(N.firstChild);return N}function O(N,U){return w(N).appendChild(U)}function I(N,U,ne,se){var ge=document.createElement(N);if(ne&&(ge.className=ne),se&&(ge.style.cssText=se),typeof U=="string")ge.appendChild(document.createTextNode(U));else if(U)for(var ze=0;ze<U.length;++ze)ge.appendChild(U[ze]);return ge}function R(N,U,ne,se){var ge=I(N,U,ne,se);return ge.setAttribute("role","presentation"),ge}var M;document.createRange?M=function(U,ne,se,ge){var ze=document.createRange();return ze.setEnd(ge||U,se),ze.setStart(U,ne),ze}:M=function(U,ne,se){var ge=document.body.createTextRange();try{ge.moveToElementText(U.parentNode)}catch(ze){return ge}return ge.collapse(!0),ge.moveEnd("character",se),ge.moveStart("character",ne),ge};function F(N,U){if(U.nodeType==3&&(U=U.parentNode),N.contains)return N.contains(U);do if(U.nodeType==11&&(U=U.host),U==N)return!0;while(U=U.parentNode)}function P(){var N;try{N=document.activeElement}catch(U){N=document.body||null}for(;N&&N.shadowRoot&&N.shadowRoot.activeElement;)N=N.shadowRoot.activeElement;return N}function X(N,U){var ne=N.className;_(U).test(ne)||(N.className+=(ne?" ":"")+U)}function B(N,U){for(var ne=N.split(" "),se=0;se<ne.length;se++)ne[se]&&!_(ne[se]).test(U)&&(U+=" "+ne[se]);return U}var j=function(U){U.select()};s?j=function(U){U.selectionStart=0,U.selectionEnd=U.value.length}:h&&(j=function(U){try{U.select()}catch(ne){}});function W(N){var U=Array.prototype.slice.call(arguments,1);return function(){return N.apply(null,U)}}function z(N,U,ne){U||(U={});for(var se in N)N.hasOwnProperty(se)&&(ne!==!1||!U.hasOwnProperty(se))&&(U[se]=N[se]);return U}function V(N,U,ne,se,ge){U==null&&(U=N.search(/[^\s\u00a0]/),U==-1&&(U=N.length));for(var ze=se||0,Ct=ge||0;;){var Zt=N.indexOf(" ",ze);if(Zt<0||Zt>=U)return Ct+(U-ze);Ct+=Zt-ze,Ct+=ne-Ct%ne,ze=Zt+1}}var Q=function(){this.id=null,this.f=null,this.time=0,this.handler=W(this.onTimeout,this)};Q.prototype.onTimeout=function(N){N.id=0,N.time<=+new Date?N.f():setTimeout(N.handler,N.time-+new Date)},Q.prototype.set=function(N,U){this.f=U;var ne=+new Date+N;(!this.id||ne<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,N),this.time=ne)};function G(N,U){for(var ne=0;ne<N.length;++ne)if(N[ne]==U)return ne;return-1}var ee=50,ce={toString:function(){return"CodeMirror.Pass"}},be={scroll:!1},le={origin:"*mouse"},Ie={origin:"+move"};function ke(N,U,ne){for(var se=0,ge=0;;){var ze=N.indexOf(" ",se);ze==-1&&(ze=N.length);var Ct=ze-se;if(ze==N.length||ge+Ct>=U)return se+Math.min(Ct,U-ge);if(ge+=ze-se,ge+=ne-ge%ne,se=ze+1,ge>=U)return se}}var Re=[""];function Qe(N){for(;Re.length<=N;)Re.push(We(Re)+" ");return Re[N]}function We(N){return N[N.length-1]}function ot(N,U){for(var ne=[],se=0;se<N.length;se++)ne[se]=U(N[se],se);return ne}function Oe(N,U,ne){for(var se=0,ge=ne(U);se<N.length&&ne(N[se])<=ge;)se++;N.splice(se,0,U)}function oe(){}function st(N,U){var ne;return Object.create?ne=Object.create(N):(oe.prototype=N,ne=new oe),U&&z(U,ne),ne}var he=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function J(N){return/\w/.test(N)||N>"\x80"&&(N.toUpperCase()!=N.toLowerCase()||he.test(N))}function Y(N,U){return U?U.source.indexOf("\\w")>-1&&J(N)?!0:U.test(N):J(N)}function $(N){for(var U in N)if(N.hasOwnProperty(U)&&N[U])return!1;return!0}var fe=/[\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 we(N){return N.charCodeAt(0)>=768&&fe.test(N)}function Ne(N,U,ne){for(;(ne<0?U>0:U<N.length)&&we(N.charAt(U));)U+=ne;return U}function Ee(N,U,ne){for(var se=U>ne?-1:1;;){if(U==ne)return U;var ge=(U+ne)/2,ze=se<0?Math.ceil(ge):Math.floor(ge);if(ze==U)return N(ze)?U:ne;N(ze)?ne=ze:U=ze+se}}function de(N,U,ne,se){if(!N)return se(U,ne,"ltr",0);for(var ge=!1,ze=0;ze<N.length;++ze){var Ct=N[ze];(Ct.from<ne&&Ct.to>U||U==ne&&Ct.to==U)&&(se(Math.max(Ct.from,U),Math.min(Ct.to,ne),Ct.level==1?"rtl":"ltr",ze),ge=!0)}ge||se(U,ne,"ltr")}var me=null;function Le(N,U,ne){var se;me=null;for(var ge=0;ge<N.length;++ge){var ze=N[ge];if(ze.from<U&&ze.to>U)return ge;ze.to==U&&(ze.from!=ze.to&&ne=="before"?se=ge:me=ge),ze.from==U&&(ze.from!=ze.to&&ne!="before"?se=ge:me=ge)}return se!=null?se:me}var tt=function(){var N="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",U="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ne(Tr){return Tr<=247?N.charAt(Tr):1424<=Tr&&Tr<=1524?"R":1536<=Tr&&Tr<=1785?U.charAt(Tr-1536):1774<=Tr&&Tr<=2220?"r":8192<=Tr&&Tr<=8203?"w":Tr==8204?"b":"L"}var se=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ge=/[stwN]/,ze=/[LRr]/,Ct=/[Lb1n]/,Zt=/[1n]/;function yr(Tr,Pn,$n){this.level=Tr,this.from=Pn,this.to=$n}return function(Tr,Pn){var $n=Pn=="ltr"?"L":"R";if(Tr.length==0||Pn=="ltr"&&!se.test(Tr))return!1;for(var Si=Tr.length,Ti=[],la=0;la<Si;++la)Ti.push(ne(Tr.charCodeAt(la)));for(var Ta=0,Wa=$n;Ta<Si;++Ta){var ka=Ti[Ta];ka=="m"?Ti[Ta]=Wa:Wa=ka}for(var Na=0,qa=$n;Na<Si;++Na){var ho=Ti[Na];ho=="1"&&qa=="r"?Ti[Na]="n":ze.test(ho)&&(qa=ho,ho=="r"&&(Ti[Na]="R"))}for(var ns=1,Mo=Ti[0];ns<Si-1;++ns){var Ss=Ti[ns];Ss=="+"&&Mo=="1"&&Ti[ns+1]=="1"?Ti[ns]="1":Ss==","&&Mo==Ti[ns+1]&&(Mo=="1"||Mo=="n")&&(Ti[ns]=Mo),Mo=Ss}for(var Zs=0;Zs<Si;++Zs){var yl=Ti[Zs];if(yl==",")Ti[Zs]="N";else if(yl=="%"){var ul=void 0;for(ul=Zs+1;ul<Si&&Ti[ul]=="%";++ul);for(var Pl=Zs&&Ti[Zs-1]=="!"||ul<Si&&Ti[ul]=="1"?"1":"N",Vl=Zs;Vl<ul;++Vl)Ti[Vl]=Pl;Zs=ul-1}}for(var Il=0,Gl=$n;Il<Si;++Il){var Fl=Ti[Il];Gl=="L"&&Fl=="1"?Ti[Il]="L":ze.test(Fl)&&(Gl=Fl)}for(var Ja=0;Ja<Si;++Ja)if(ge.test(Ti[Ja])){var vl=void 0;for(vl=Ja+1;vl<Si&&ge.test(Ti[vl]);++vl);for(var gl=(Ja?Ti[Ja-1]:$n)=="L",El=(vl<Si?Ti[vl]:$n)=="L",Bu=gl==El?gl?"L":"R":$n,Hs=Ja;Hs<vl;++Hs)Ti[Hs]=Bu;Ja=vl-1}for(var vs=[],lu,Kl=0;Kl<Si;)if(Ct.test(Ti[Kl])){var Uu=Kl;for(++Kl;Kl<Si&&Ct.test(Ti[Kl]);++Kl);vs.push(new yr(0,Uu,Kl))}else{var Eu=Kl,uu=vs.length,ku=Pn=="rtl"?1:0;for(++Kl;Kl<Si&&Ti[Kl]!="L";++Kl);for(var Yl=Eu;Yl<Kl;)if(Zt.test(Ti[Yl])){Eu<Yl&&(vs.splice(uu,0,new yr(1,Eu,Yl)),uu+=ku);var Tu=Yl;for(++Yl;Yl<Kl&&Zt.test(Ti[Yl]);++Yl);vs.splice(uu,0,new yr(2,Tu,Yl)),uu+=ku,Eu=Yl}else++Yl;Eu<Kl&&vs.splice(uu,0,new yr(1,Eu,Kl))}return Pn=="ltr"&&(vs[0].level==1&&(lu=Tr.match(/^\s+/))&&(vs[0].from=lu[0].length,vs.unshift(new yr(0,0,lu[0].length))),We(vs).level==1&&(lu=Tr.match(/\s+$/))&&(We(vs).to-=lu[0].length,vs.push(new yr(0,Si-lu[0].length,Si)))),Pn=="rtl"?vs.reverse():vs}}();function At(N,U){var ne=N.order;return ne==null&&(ne=N.order=tt(N.text,U)),ne}var ht=[],Ke=function(U,ne,se){if(U.addEventListener)U.addEventListener(ne,se,!1);else if(U.attachEvent)U.attachEvent("on"+ne,se);else{var ge=U._handlers||(U._handlers={});ge[ne]=(ge[ne]||ht).concat(se)}};function Jt(N,U){return N._handlers&&N._handlers[U]||ht}function ct(N,U,ne){if(N.removeEventListener)N.removeEventListener(U,ne,!1);else if(N.detachEvent)N.detachEvent("on"+U,ne);else{var se=N._handlers,ge=se&&se[U];if(ge){var ze=G(ge,ne);ze>-1&&(se[U]=ge.slice(0,ze).concat(ge.slice(ze+1)))}}}function Gt(N,U){var ne=Jt(N,U);if(!ne.length)return;for(var se=Array.prototype.slice.call(arguments,2),ge=0;ge<ne.length;++ge)ne[ge].apply(null,se)}function dr(N,U,ne){return typeof U=="string"&&(U={type:U,preventDefault:function(){this.defaultPrevented=!0}}),Gt(N,ne||U.type,N,U),te(U)||U.codemirrorIgnore}function zt(N){var U=N._handlers&&N._handlers.cursorActivity;if(!U)return;for(var ne=N.curOp.cursorActivityHandlers||(N.curOp.cursorActivityHandlers=[]),se=0;se<U.length;++se)G(ne,U[se])==-1&&ne.push(U[se])}function kt(N,U){return Jt(N,U).length>0}function Vt(N){N.prototype.on=function(U,ne){Ke(this,U,ne)},N.prototype.off=function(U,ne){ct(this,U,ne)}}function Xe(N){N.preventDefault?N.preventDefault():N.returnValue=!1}function pe(N){N.stopPropagation?N.stopPropagation():N.cancelBubble=!0}function te(N){return N.defaultPrevented!=null?N.defaultPrevented:N.returnValue==!1}function $e(N){Xe(N),pe(N)}function He(N){return N.target||N.srcElement}function ae(N){var U=N.which;return U==null&&(N.button&1?U=1:N.button&2?U=3:N.button&4&&(U=2)),g&&N.ctrlKey&&U==1&&(U=3),U}var ft=function(){if(h&&u<9)return!1;var N=I("div");return"draggable"in N||"dragDrop"in N}(),Mt;function mt(N){if(Mt==null){var U=I("span","\u200B");O(N,I("span",[U,document.createTextNode("x")])),N.firstChild.offsetHeight!=0&&(Mt=U.offsetWidth<=1&&U.offsetHeight>2&&!(h&&u<8))}var ne=Mt?I("span","\u200B"):I("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ne.setAttribute("cm-text",""),ne}var or;function vr(N){if(or!=null)return or;var U=O(N,document.createTextNode("A\u062EA")),ne=M(U,0,1).getBoundingClientRect(),se=M(U,1,2).getBoundingClientRect();return w(N),!ne||ne.left==ne.right?!1:or=se.right-ne.right<3}var fn=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(N){for(var U=0,ne=[],se=N.length;U<=se;){var ge=N.indexOf(`
|
|
|
`,U);ge==-1&&(ge=N.length);var ze=N.slice(U,N.charAt(ge-1)=="\r"?ge-1:ge),Ct=ze.indexOf("\r");Ct!=-1?(ne.push(ze.slice(0,Ct)),U+=Ct+1):(ne.push(ze),U=ge+1)}return ne}:function(N){return N.split(/\r\n?|\n/)},sr=window.getSelection?function(N){try{return N.selectionStart!=N.selectionEnd}catch(U){return!1}}:function(N){var U;try{U=N.ownerDocument.selection.createRange()}catch(ne){}return!U||U.parentElement()!=N?!1:U.compareEndPoints("StartToEnd",U)!=0},Ir=function(){var N=I("div");return"oncopy"in N?!0:(N.setAttribute("oncopy","return;"),typeof N.oncopy=="function")}(),lr=null;function Wt(N){if(lr!=null)return lr;var U=O(N,I("span","x")),ne=U.getBoundingClientRect(),se=M(U,0,1).getBoundingClientRect();return lr=Math.abs(ne.left-se.left)>1}var xt={},rn={};function Dn(N,U){arguments.length>2&&(U.dependencies=Array.prototype.slice.call(arguments,2)),xt[N]=U}function Xn(N,U){rn[N]=U}function ri(N){if(typeof N=="string"&&rn.hasOwnProperty(N))N=rn[N];else if(N&&typeof N.name=="string"&&rn.hasOwnProperty(N.name)){var U=rn[N.name];typeof U=="string"&&(U={name:U}),N=st(U,N),N.name=U.name}else{if(typeof N=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(N))return ri("application/xml");if(typeof N=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(N))return ri("application/json")}return typeof N=="string"?{name:N}:N||{name:"null"}}function Ui(N,U){U=ri(U);var ne=xt[U.name];if(!ne)return Ui(N,"text/plain");var se=ne(N,U);if(Bn.hasOwnProperty(U.name)){var ge=Bn[U.name];for(var ze in ge){if(!ge.hasOwnProperty(ze))continue;se.hasOwnProperty(ze)&&(se["_"+ze]=se[ze]),se[ze]=ge[ze]}}if(se.name=U.name,U.helperType&&(se.helperType=U.helperType),U.modeProps)for(var Ct in U.modeProps)se[Ct]=U.modeProps[Ct];return se}var Bn={};function Jn(N,U){var ne=Bn.hasOwnProperty(N)?Bn[N]:Bn[N]={};z(U,ne)}function Xt(N,U){if(U===!0)return U;if(N.copyState)return N.copyState(U);var ne={};for(var se in U){var ge=U[se];ge instanceof Array&&(ge=ge.concat([])),ne[se]=ge}return ne}function _t(N,U){for(var ne;N.innerMode&&!(ne=N.innerMode(U),!ne||ne.mode==N);)U=ne.state,N=ne.mode;return ne||{mode:N,state:U}}function Fe(N,U,ne){return N.startState?N.startState(U,ne):!0}var Pe=function(U,ne,se){this.pos=this.start=0,this.string=U,this.tabSize=ne||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=se};Pe.prototype.eol=function(){return this.pos>=this.string.length},Pe.prototype.sol=function(){return this.pos==this.lineStart},Pe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Pe.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Pe.prototype.eat=function(N){var U=this.string.charAt(this.pos),ne;if(typeof N=="string"?ne=U==N:ne=U&&(N.test?N.test(U):N(U)),ne)return++this.pos,U},Pe.prototype.eatWhile=function(N){for(var U=this.pos;this.eat(N););return this.pos>U},Pe.prototype.eatSpace=function(){for(var N=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>N},Pe.prototype.skipToEnd=function(){this.pos=this.string.length},Pe.prototype.skipTo=function(N){var U=this.string.indexOf(N,this.pos);if(U>-1)return this.pos=U,!0},Pe.prototype.backUp=function(N){this.pos-=N},Pe.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=V(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},Pe.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},Pe.prototype.match=function(N,U,ne){if(typeof N=="string"){var se=function(Zt){return ne?Zt.toLowerCase():Zt},ge=this.string.substr(this.pos,N.length);if(se(ge)==se(N))return U!==!1&&(this.pos+=N.length),!0}else{var ze=this.string.slice(this.pos).match(N);return ze&&ze.index>0?null:(ze&&U!==!1&&(this.pos+=ze[0].length),ze)}},Pe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Pe.prototype.hideFirstChars=function(N,U){this.lineStart+=N;try{return U()}finally{this.lineStart-=N}},Pe.prototype.lookAhead=function(N){var U=this.lineOracle;return U&&U.lookAhead(N)},Pe.prototype.baseToken=function(){var N=this.lineOracle;return N&&N.baseToken(this.pos)};function Be(N,U){if(U-=N.first,U<0||U>=N.size)throw new Error("There is no line "+(U+N.first)+" in the document.");for(var ne=N;!ne.lines;)for(var se=0;;++se){var ge=ne.children[se],ze=ge.chunkSize();if(U<ze){ne=ge;break}U-=ze}return ne.lines[U]}function nt(N,U,ne){var se=[],ge=U.line;return N.iter(U.line,ne.line+1,function(ze){var Ct=ze.text;ge==ne.line&&(Ct=Ct.slice(0,ne.ch)),ge==U.line&&(Ct=Ct.slice(U.ch)),se.push(Ct),++ge}),se}function vt(N,U,ne){var se=[];return N.iter(U,ne,function(ge){se.push(ge.text)}),se}function ar(N,U){var ne=U-N.height;if(ne)for(var se=N;se;se=se.parent)se.height+=ne}function kr(N){if(N.parent==null)return null;for(var U=N.parent,ne=G(U.lines,N),se=U.parent;se;U=se,se=se.parent)for(var ge=0;!(se.children[ge]==U);++ge)ne+=se.children[ge].chunkSize();return ne+U.first}function mn(N,U){var ne=N.first;e:do{for(var se=0;se<N.children.length;++se){var ge=N.children[se],ze=ge.height;if(U<ze){N=ge;continue e}U-=ze,ne+=ge.chunkSize()}return ne}while(!N.lines);for(var Ct=0;Ct<N.lines.length;++Ct){var Zt=N.lines[Ct],yr=Zt.height;if(U<yr)break;U-=yr}return ne+Ct}function Zn(N,U){return U>=N.first&&U<N.first+N.size}function ni(N,U){return String(N.lineNumberFormatter(U+N.firstLineNumber))}function ur(N,U,ne){if(ne===void 0&&(ne=null),!(this instanceof ur))return new ur(N,U,ne);this.line=N,this.ch=U,this.sticky=ne}function Nt(N,U){return N.line-U.line||N.ch-U.ch}function bt(N,U){return N.sticky==U.sticky&&Nt(N,U)==0}function gr(N){return ur(N.line,N.ch)}function Yt(N,U){return Nt(N,U)<0?U:N}function Pt(N,U){return Nt(N,U)<0?N:U}function rr(N,U){return Math.max(N.first,Math.min(U,N.first+N.size-1))}function Rt(N,U){if(U.line<N.first)return ur(N.first,0);var ne=N.first+N.size-1;return U.line>ne?ur(ne,Be(N,ne).text.length):qt(U,Be(N,U.line).text.length)}function qt(N,U){var ne=N.ch;return ne==null||ne>U?ur(N.line,U):ne<0?ur(N.line,0):N}function Yr(N,U){for(var ne=[],se=0;se<U.length;se++)ne[se]=Rt(N,U[se]);return ne}var Mr=function(U,ne){this.state=U,this.lookAhead=ne},Dr=function(U,ne,se,ge){this.state=ne,this.doc=U,this.line=se,this.maxLookAhead=ge||0,this.baseTokens=null,this.baseTokenPos=1};Dr.prototype.lookAhead=function(N){var U=this.doc.getLine(this.line+N);return U!=null&&N>this.maxLookAhead&&(this.maxLookAhead=N),U},Dr.prototype.baseToken=function(N){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=N;)this.baseTokenPos+=2;var U=this.baseTokens[this.baseTokenPos+1];return{type:U&&U.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-N}},Dr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Dr.fromSaved=function(N,U,ne){return U instanceof Mr?new Dr(N,Xt(N.mode,U.state),ne,U.lookAhead):new Dr(N,Xt(N.mode,U),ne)},Dr.prototype.save=function(N){var U=N!==!1?Xt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Mr(U,this.maxLookAhead):U};function un(N,U,ne,se){var ge=[N.state.modeGen],ze={};Me(N,U.text,N.doc.mode,ne,function(Tr,Pn){return ge.push(Tr,Pn)},ze,se);for(var Ct=ne.state,Zt=function(Pn){ne.baseTokens=ge;var $n=N.state.overlays[Pn],Si=1,Ti=0;ne.state=!0,Me(N,U.text,$n.mode,ne,function(la,Ta){for(var Wa=Si;Ti<la;){var ka=ge[Si];ka>la&&ge.splice(Si,1,la,ge[Si+1],ka),Si+=2,Ti=Math.min(la,ka)}if(!Ta)return;if($n.opaque)ge.splice(Wa,Si-Wa,la,"overlay "+Ta),Si=Wa+2;else for(;Wa<Si;Wa+=2){var Na=ge[Wa+1];ge[Wa+1]=(Na?Na+" ":"")+"overlay "+Ta}},ze),ne.state=Ct,ne.baseTokens=null,ne.baseTokenPos=1},yr=0;yr<N.state.overlays.length;++yr)Zt(yr);return{styles:ge,classes:ze.bgClass||ze.textClass?ze:null}}function wn(N,U,ne){if(!U.styles||U.styles[0]!=N.state.modeGen){var se=ai(N,kr(U)),ge=U.text.length>N.options.maxHighlightLength&&Xt(N.doc.mode,se.state),ze=un(N,U,se);ge&&(se.state=ge),U.stateAfter=se.save(!ge),U.styles=ze.styles,ze.classes?U.styleClasses=ze.classes:U.styleClasses&&(U.styleClasses=null),ne===N.doc.highlightFrontier&&(N.doc.modeFrontier=Math.max(N.doc.modeFrontier,++N.doc.highlightFrontier))}return U.styles}function ai(N,U,ne){var se=N.doc,ge=N.display;if(!se.mode.startState)return new Dr(se,!0,U);var ze=je(N,U,ne),Ct=ze>se.first&&Be(se,ze-1).stateAfter,Zt=Ct?Dr.fromSaved(se,Ct,ze):new Dr(se,Fe(se.mode),ze);return se.iter(ze,U,function(yr){ei(N,yr.text,Zt);var Tr=Zt.line;yr.stateAfter=Tr==U-1||Tr%5==0||Tr>=ge.viewFrom&&Tr<ge.viewTo?Zt.save():null,Zt.nextLine()}),ne&&(se.modeFrontier=Zt.line),Zt}function ei(N,U,ne,se){var ge=N.doc.mode,ze=new Pe(U,N.options.tabSize,ne);for(ze.start=ze.pos=se||0,U==""&&gi(ge,ne.state);!ze.eol();)Ii(ge,ze,ne.state),ze.start=ze.pos}function gi(N,U){if(N.blankLine)return N.blankLine(U);if(!N.innerMode)return;var ne=_t(N,U);if(ne.mode.blankLine)return ne.mode.blankLine(ne.state)}function Ii(N,U,ne,se){for(var ge=0;ge<10;ge++){se&&(se[0]=_t(N,ne).mode);var ze=N.token(U,ne);if(U.pos>U.start)return ze}throw new Error("Mode "+N.name+" failed to advance stream.")}var ki=function(U,ne,se){this.start=U.start,this.end=U.pos,this.string=U.current(),this.type=ne||null,this.state=se};function Qi(N,U,ne,se){var ge=N.doc,ze=ge.mode,Ct;U=Rt(ge,U);var Zt=Be(ge,U.line),yr=ai(N,U.line,ne),Tr=new Pe(Zt.text,N.options.tabSize,yr),Pn;for(se&&(Pn=[]);(se||Tr.pos<U.ch)&&!Tr.eol();)Tr.start=Tr.pos,Ct=Ii(ze,Tr,yr.state),se&&Pn.push(new ki(Tr,Ct,Xt(ge.mode,yr.state)));return se?Pn:new ki(Tr,Ct,yr.state)}function it(N,U){if(N)for(;;){var ne=N.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ne)break;N=N.slice(0,ne.index)+N.slice(ne.index+ne[0].length);var se=ne[1]?"bgClass":"textClass";U[se]==null?U[se]=ne[2]:new RegExp("(?:^|\\s)"+ne[2]+"(?:$|\\s)").test(U[se])||(U[se]+=" "+ne[2])}return N}function Me(N,U,ne,se,ge,ze,Ct){var Zt=ne.flattenSpans;Zt==null&&(Zt=N.options.flattenSpans);var yr=0,Tr=null,Pn=new Pe(U,N.options.tabSize,se),$n,Si=N.options.addModeClass&&[null];for(U==""&&it(gi(ne,se.state),ze);!Pn.eol();){if(Pn.pos>N.options.maxHighlightLength?(Zt=!1,Ct&&ei(N,U,se,Pn.pos),Pn.pos=U.length,$n=null):$n=it(Ii(ne,Pn,se.state,Si),ze),Si){var Ti=Si[0].name;Ti&&($n="m-"+($n?Ti+" "+$n:Ti))}if(!Zt||Tr!=$n){for(;yr<Pn.start;)yr=Math.min(Pn.start,yr+5e3),ge(yr,Tr);Tr=$n}Pn.start=Pn.pos}for(;yr<Pn.pos;){var la=Math.min(Pn.pos,yr+5e3);ge(la,Tr),yr=la}}function je(N,U,ne){for(var se,ge,ze=N.doc,Ct=ne?-1:U-(N.doc.mode.innerMode?1e3:100),Zt=U;Zt>Ct;--Zt){if(Zt<=ze.first)return ze.first;var yr=Be(ze,Zt-1),Tr=yr.stateAfter;if(Tr&&(!ne||Zt+(Tr instanceof Mr?Tr.lookAhead:0)<=ze.modeFrontier))return Zt;var Pn=V(yr.text,null,N.options.tabSize);(ge==null||se>Pn)&&(ge=Zt-1,se=Pn)}return ge}function Ye(N,U){if(N.modeFrontier=Math.min(N.modeFrontier,U),N.highlightFrontier<U-10)return;for(var ne=N.first,se=U-1;se>ne;se--){var ge=Be(N,se).stateAfter;if(ge&&(!(ge instanceof Mr)||se+ge.lookAhead<U)){ne=se+1;break}}N.highlightFrontier=Math.min(N.highlightFrontier,ne)}var rt=!1,qe=!1;function at(){rt=!0}function St(){qe=!0}function gt(N,U,ne){this.marker=N,this.from=U,this.to=ne}function hr(N,U){if(N)for(var ne=0;ne<N.length;++ne){var se=N[ne];if(se.marker==U)return se}}function Qr(N,U){for(var ne,se=0;se<N.length;++se)N[se]!=U&&(ne||(ne=[])).push(N[se]);return ne}function Xr(N,U){N.markedSpans=N.markedSpans?N.markedSpans.concat([U]):[U],U.marker.attachLine(N)}function dn(N,U,ne){var se;if(N)for(var ge=0;ge<N.length;++ge){var ze=N[ge],Ct=ze.marker,Zt=ze.from==null||(Ct.inclusiveLeft?ze.from<=U:ze.from<U);if(Zt||ze.from==U&&Ct.type=="bookmark"&&(!ne||!ze.marker.insertLeft)){var yr=ze.to==null||(Ct.inclusiveRight?ze.to>=U:ze.to>U);(se||(se=[])).push(new gt(Ct,ze.from,yr?null:ze.to))}}return se}function mr(N,U,ne){var se;if(N)for(var ge=0;ge<N.length;++ge){var ze=N[ge],Ct=ze.marker,Zt=ze.to==null||(Ct.inclusiveRight?ze.to>=U:ze.to>U);if(Zt||ze.from==U&&Ct.type=="bookmark"&&(!ne||ze.marker.insertLeft)){var yr=ze.from==null||(Ct.inclusiveLeft?ze.from<=U:ze.from<U);(se||(se=[])).push(new gt(Ct,yr?null:ze.from-U,ze.to==null?null:ze.to-U))}}return se}function Kn(N,U){if(U.full)return null;var ne=Zn(N,U.from.line)&&Be(N,U.from.line).markedSpans,se=Zn(N,U.to.line)&&Be(N,U.to.line).markedSpans;if(!ne&&!se)return null;var ge=U.from.ch,ze=U.to.ch,Ct=Nt(U.from,U.to)==0,Zt=dn(ne,ge,Ct),yr=mr(se,ze,Ct),Tr=U.text.length==1,Pn=We(U.text).length+(Tr?ge:0);if(Zt)for(var $n=0;$n<Zt.length;++$n){var Si=Zt[$n];if(Si.to==null){var Ti=hr(yr,Si.marker);Ti?Tr&&(Si.to=Ti.to==null?null:Ti.to+Pn):Si.to=ge}}if(yr)for(var la=0;la<yr.length;++la){var Ta=yr[la];if(Ta.to!=null&&(Ta.to+=Pn),Ta.from==null){var Wa=hr(Zt,Ta.marker);Wa||(Ta.from=Pn,Tr&&(Zt||(Zt=[])).push(Ta))}else Ta.from+=Pn,Tr&&(Zt||(Zt=[])).push(Ta)}Zt&&(Zt=Rr(Zt)),yr&&yr!=Zt&&(yr=Rr(yr));var ka=[Zt];if(!Tr){var Na=U.text.length-2,qa;if(Na>0&&Zt)for(var ho=0;ho<Zt.length;++ho)Zt[ho].to==null&&(qa||(qa=[])).push(new gt(Zt[ho].marker,null,null));for(var ns=0;ns<Na;++ns)ka.push(qa);ka.push(yr)}return ka}function Rr(N){for(var U=0;U<N.length;++U){var ne=N[U];ne.from!=null&&ne.from==ne.to&&ne.marker.clearWhenEmpty!==!1&&N.splice(U--,1)}return N.length?N:null}function Rn(N,U,ne){var se=null;if(N.iter(U.line,ne.line+1,function(Ti){if(Ti.markedSpans)for(var la=0;la<Ti.markedSpans.length;++la){var Ta=Ti.markedSpans[la].marker;Ta.readOnly&&(!se||G(se,Ta)==-1)&&(se||(se=[])).push(Ta)}}),!se)return null;for(var ge=[{from:U,to:ne}],ze=0;ze<se.length;++ze)for(var Ct=se[ze],Zt=Ct.find(0),yr=0;yr<ge.length;++yr){var Tr=ge[yr];if(Nt(Tr.to,Zt.from)<0||Nt(Tr.from,Zt.to)>0)continue;var Pn=[yr,1],$n=Nt(Tr.from,Zt.from),Si=Nt(Tr.to,Zt.to);($n<0||!Ct.inclusiveLeft&&!$n)&&Pn.push({from:Tr.from,to:Zt.from}),(Si>0||!Ct.inclusiveRight&&!Si)&&Pn.push({from:Zt.to,to:Tr.to}),ge.splice.apply(ge,Pn),yr+=Pn.length-3}return ge}function An(N){var U=N.markedSpans;if(!U)return;for(var ne=0;ne<U.length;++ne)U[ne].marker.detachLine(N);N.markedSpans=null}function Zr(N,U){if(!U)return;for(var ne=0;ne<U.length;++ne)U[ne].marker.attachLine(N);N.markedSpans=U}function hi(N){return N.inclusiveLeft?-1:0}function Mi(N){return N.inclusiveRight?1:0}function Zi(N,U){var ne=N.lines.length-U.lines.length;if(ne!=0)return ne;var se=N.find(),ge=U.find(),ze=Nt(se.from,ge.from)||hi(N)-hi(U);if(ze)return-ze;var Ct=Nt(se.to,ge.to)||Mi(N)-Mi(U);return Ct||U.id-N.id}function qr(N,U){var ne=qe&&N.markedSpans,se;if(ne)for(var ge=void 0,ze=0;ze<ne.length;++ze)ge=ne[ze],ge.marker.collapsed&&(U?ge.from:ge.to)==null&&(!se||Zi(se,ge.marker)<0)&&(se=ge.marker);return se}function xn(N){return qr(N,!0)}function zn(N){return qr(N,!1)}function Ht(N,U){var ne=qe&&N.markedSpans,se;if(ne)for(var ge=0;ge<ne.length;++ge){var ze=ne[ge];ze.marker.collapsed&&(ze.from==null||ze.from<U)&&(ze.to==null||ze.to>U)&&(!se||Zi(se,ze.marker)<0)&&(se=ze.marker)}return se}function Tt(N,U,ne,se,ge){var ze=Be(N,U),Ct=qe&&ze.markedSpans;if(Ct)for(var Zt=0;Zt<Ct.length;++Zt){var yr=Ct[Zt];if(!yr.marker.collapsed)continue;var Tr=yr.marker.find(0),Pn=Nt(Tr.from,ne)||hi(yr.marker)-hi(ge),$n=Nt(Tr.to,se)||Mi(yr.marker)-Mi(ge);if(Pn>=0&&$n<=0||Pn<=0&&$n>=0)continue;if(Pn<=0&&(yr.marker.inclusiveRight&&ge.inclusiveLeft?Nt(Tr.to,ne)>=0:Nt(Tr.to,ne)>0)||Pn>=0&&(yr.marker.inclusiveRight&&ge.inclusiveLeft?Nt(Tr.from,se)<=0:Nt(Tr.from,se)<0))return!0}}function Dt(N){for(var U;U=xn(N);)N=U.find(-1,!0).line;return N}function Bt(N){for(var U;U=zn(N);)N=U.find(1,!0).line;return N}function jt(N){for(var U,ne;U=zn(N);)N=U.find(1,!0).line,(ne||(ne=[])).push(N);return ne}function Ot(N,U){var ne=Be(N,U),se=Dt(ne);return ne==se?U:kr(se)}function nr(N,U){if(U>N.lastLine())return U;var ne=Be(N,U),se;if(!pr(N,ne))return U;for(;se=zn(ne);)ne=se.find(1,!0).line;return kr(ne)+1}function pr(N,U){var ne=qe&&U.markedSpans;if(ne)for(var se=void 0,ge=0;ge<ne.length;++ge){if(se=ne[ge],!se.marker.collapsed)continue;if(se.from==null)return!0;if(se.marker.widgetNode)continue;if(se.from==0&&se.marker.inclusiveLeft&&Ar(N,U,se))return!0}}function Ar(N,U,ne){if(ne.to==null){var se=ne.marker.find(1,!0);return Ar(N,se.line,hr(se.line.markedSpans,ne.marker))}if(ne.marker.inclusiveRight&&ne.to==U.text.length)return!0;for(var ge=void 0,ze=0;ze<U.markedSpans.length;++ze)if(ge=U.markedSpans[ze],ge.marker.collapsed&&!ge.marker.widgetNode&&ge.from==ne.to&&(ge.to==null||ge.to!=ne.from)&&(ge.marker.inclusiveLeft||ne.marker.inclusiveRight)&&Ar(N,U,ge))return!0}function Nr(N){N=Dt(N);for(var U=0,ne=N.parent,se=0;se<ne.lines.length;++se){var ge=ne.lines[se];if(ge==N)break;U+=ge.height}for(var ze=ne.parent;ze;ne=ze,ze=ne.parent)for(var Ct=0;Ct<ze.children.length;++Ct){var Zt=ze.children[Ct];if(Zt==ne)break;U+=Zt.height}return U}function Hn(N){if(N.height==0)return 0;for(var U=N.text.length,ne,se=N;ne=xn(se);){var ge=ne.find(0,!0);se=ge.from.line,U+=ge.from.ch-ge.to.ch}for(se=N;ne=zn(se);){var ze=ne.find(0,!0);U-=se.text.length-ze.from.ch,se=ze.to.line,U+=se.text.length-ze.to.ch}return U}function Ln(N){var U=N.display,ne=N.doc;U.maxLine=Be(ne,ne.first),U.maxLineLength=Hn(U.maxLine),U.maxLineChanged=!0,ne.iter(function(se){var ge=Hn(se);ge>U.maxLineLength&&(U.maxLineLength=ge,U.maxLine=se)})}var ci=function(U,ne,se){this.text=U,Zr(this,ne),this.height=se?se(this):1};ci.prototype.lineNo=function(){return kr(this)},Vt(ci);function hn(N,U,ne,se){N.text=U,N.stateAfter&&(N.stateAfter=null),N.styles&&(N.styles=null),N.order!=null&&(N.order=null),An(N),Zr(N,ne);var ge=se?se(N):1;ge!=N.height&&ar(N,ge)}function Fr(N){N.parent=null,An(N)}var En={},Wn={};function Yn(N,U){if(!N||/^\s*$/.test(N))return null;var ne=U.addModeClass?Wn:En;return ne[N]||(ne[N]=N.replace(/\S+/g,"cm-$&"))}function ii(N,U){var ne=R("span",null,null,a?"padding-right: .1px":null),se={pre:R("pre",[ne],"CodeMirror-line"),content:ne,col:0,pos:0,cm:N,trailingSpace:!1,splitSpaces:N.getOption("lineWrapping")};U.measure={};for(var ge=0;ge<=(U.rest?U.rest.length:0);ge++){var ze=ge?U.rest[ge-1]:U.line,Ct=void 0;se.pos=0,se.addToken=Ni,vr(N.display.measure)&&(Ct=At(ze,N.doc.direction))&&(se.addToken=oa(se.addToken,Ct)),se.map=[];var Zt=U!=N.display.externalMeasured&&kr(ze);ia(ze,se,wn(N,ze,Zt)),ze.styleClasses&&(ze.styleClasses.bgClass&&(se.bgClass=B(ze.styleClasses.bgClass,se.bgClass||"")),ze.styleClasses.textClass&&(se.textClass=B(ze.styleClasses.textClass,se.textClass||""))),se.map.length==0&&se.map.push(0,0,se.content.appendChild(mt(N.display.measure))),ge==0?(U.measure.map=se.map,U.measure.cache={}):((U.measure.maps||(U.measure.maps=[])).push(se.map),(U.measure.caches||(U.measure.caches=[])).push({}))}if(a){var yr=se.content.lastChild;(/\bcm-tab\b/.test(yr.className)||yr.querySelector&&yr.querySelector(".cm-tab"))&&(se.content.className="cm-tab-wrap-hack")}return Gt(N,"renderLine",N,U.line,se.pre),se.pre.className&&(se.textClass=B(se.pre.className,se.textClass||"")),se}function xi(N){var U=I("span","\u2022","cm-invalidchar");return U.title="\\u"+N.charCodeAt(0).toString(16),U.setAttribute("aria-label",U.title),U}function Ni(N,U,ne,se,ge,ze,Ct){if(!U)return;var Zt=N.splitSpaces?Li(U,N.trailingSpace):U,yr=N.cm.state.specialChars,Tr=!1,Pn;if(!yr.test(U))N.col+=U.length,Pn=document.createTextNode(Zt),N.map.push(N.pos,N.pos+U.length,Pn),h&&u<9&&(Tr=!0),N.pos+=U.length;else{Pn=document.createDocumentFragment();for(var $n=0;;){yr.lastIndex=$n;var Si=yr.exec(U),Ti=Si?Si.index-$n:U.length-$n;if(Ti){var la=document.createTextNode(Zt.slice($n,$n+Ti));h&&u<9?Pn.appendChild(I("span",[la])):Pn.appendChild(la),N.map.push(N.pos,N.pos+Ti,la),N.col+=Ti,N.pos+=Ti}if(!Si)break;$n+=Ti+1;var Ta=void 0;if(Si[0]==" "){var Wa=N.cm.options.tabSize,ka=Wa-N.col%Wa;Ta=Pn.appendChild(I("span",Qe(ka),"cm-tab")),Ta.setAttribute("role","presentation"),Ta.setAttribute("cm-text"," "),N.col+=ka}else Si[0]=="\r"||Si[0]==`
|
|
|
`?(Ta=Pn.appendChild(I("span",Si[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ta.setAttribute("cm-text",Si[0]),N.col+=1):(Ta=N.cm.options.specialCharPlaceholder(Si[0]),Ta.setAttribute("cm-text",Si[0]),h&&u<9?Pn.appendChild(I("span",[Ta])):Pn.appendChild(Ta),N.col+=1);N.map.push(N.pos,N.pos+1,Ta),N.pos++}}if(N.trailingSpace=Zt.charCodeAt(U.length-1)==32,ne||se||ge||Tr||ze||Ct){var Na=ne||"";se&&(Na+=se),ge&&(Na+=ge);var qa=I("span",[Pn],Na,ze);if(Ct)for(var ho in Ct)Ct.hasOwnProperty(ho)&&ho!="style"&&ho!="class"&&qa.setAttribute(ho,Ct[ho]);return N.content.appendChild(qa)}N.content.appendChild(Pn)}function Li(N,U){if(N.length>1&&!/ /.test(N))return N;for(var ne=U,se="",ge=0;ge<N.length;ge++){var ze=N.charAt(ge);ze==" "&&ne&&(ge==N.length-1||N.charCodeAt(ge+1)==32)&&(ze="\xA0"),se+=ze,ne=ze==" "}return se}function oa(N,U){return function(ne,se,ge,ze,Ct,Zt,yr){ge=ge?ge+" cm-force-border":"cm-force-border";for(var Tr=ne.pos,Pn=Tr+se.length;;){for(var $n=void 0,Si=0;Si<U.length&&!($n=U[Si],$n.to>Tr&&$n.from<=Tr);Si++);if($n.to>=Pn)return N(ne,se,ge,ze,Ct,Zt,yr);N(ne,se.slice(0,$n.to-Tr),ge,ze,null,Zt,yr),ze=null,se=se.slice($n.to-Tr),Tr=$n.to}}}function ma(N,U,ne,se){var ge=!se&&ne.widgetNode;ge&&N.map.push(N.pos,N.pos+U,ge),!se&&N.cm.display.input.needsContentAttribute&&(ge||(ge=N.content.appendChild(document.createElement("span"))),ge.setAttribute("cm-marker",ne.id)),ge&&(N.cm.display.input.setUneditable(ge),N.content.appendChild(ge)),N.pos+=U,N.trailingSpace=!1}function ia(N,U,ne){var se=N.markedSpans,ge=N.text,ze=0;if(!se){for(var Ct=1;Ct<ne.length;Ct+=2)U.addToken(U,ge.slice(ze,ze=ne[Ct]),Yn(ne[Ct+1],U.cm.options));return}for(var Zt=ge.length,yr=0,Tr=1,Pn="",$n,Si,Ti=0,la,Ta,Wa,ka,Na;;){if(Ti==yr){la=Ta=Wa=Si="",Na=null,ka=null,Ti=Infinity;for(var qa=[],ho=void 0,ns=0;ns<se.length;++ns){var Mo=se[ns],Ss=Mo.marker;if(Ss.type=="bookmark"&&Mo.from==yr&&Ss.widgetNode)qa.push(Ss);else if(Mo.from<=yr&&(Mo.to==null||Mo.to>yr||Ss.collapsed&&Mo.to==yr&&Mo.from==yr)){if(Mo.to!=null&&Mo.to!=yr&&Ti>Mo.to&&(Ti=Mo.to,Ta=""),Ss.className&&(la+=" "+Ss.className),Ss.css&&(Si=(Si?Si+";":"")+Ss.css),Ss.startStyle&&Mo.from==yr&&(Wa+=" "+Ss.startStyle),Ss.endStyle&&Mo.to==Ti&&(ho||(ho=[])).push(Ss.endStyle,Mo.to),Ss.title&&((Na||(Na={})).title=Ss.title),Ss.attributes)for(var Zs in Ss.attributes)(Na||(Na={}))[Zs]=Ss.attributes[Zs];Ss.collapsed&&(!ka||Zi(ka.marker,Ss)<0)&&(ka=Mo)}else Mo.from>yr&&Ti>Mo.from&&(Ti=Mo.from)}if(ho)for(var yl=0;yl<ho.length;yl+=2)ho[yl+1]==Ti&&(Ta+=" "+ho[yl]);if(!ka||ka.from==yr)for(var ul=0;ul<qa.length;++ul)ma(U,0,qa[ul]);if(ka&&(ka.from||0)==yr){if(ma(U,(ka.to==null?Zt+1:ka.to)-yr,ka.marker,ka.from==null),ka.to==null)return;ka.to==yr&&(ka=!1)}}if(yr>=Zt)break;for(var Pl=Math.min(Zt,Ti);;){if(Pn){var Vl=yr+Pn.length;if(!ka){var Il=Vl>Pl?Pn.slice(0,Pl-yr):Pn;U.addToken(U,Il,$n?$n+la:la,Wa,yr+Il.length==Ti?Ta:"",Si,Na)}if(Vl>=Pl){Pn=Pn.slice(Pl-yr),yr=Pl;break}yr=Vl,Wa=""}Pn=ge.slice(ze,ze=ne[Tr++]),$n=Yn(ne[Tr++],U.cm.options)}}}function ba(N,U,ne){this.line=U,this.rest=jt(U),this.size=this.rest?kr(We(this.rest))-ne+1:1,this.node=this.text=null,this.hidden=pr(N,U)}function vi(N,U,ne){for(var se=[],ge,ze=U;ze<ne;ze=ge){var Ct=new ba(N.doc,Be(N.doc,ze),ze);ge=ze+Ct.size,se.push(Ct)}return se}var On=null;function Fi(N){On?On.ops.push(N):N.ownsGroup=On={ops:[N],delayedCallbacks:[]}}function ha(N){var U=N.delayedCallbacks,ne=0;do{for(;ne<U.length;ne++)U[ne].call(null);for(var se=0;se<N.ops.length;se++){var ge=N.ops[se];if(ge.cursorActivityHandlers)for(;ge.cursorActivityCalled<ge.cursorActivityHandlers.length;)ge.cursorActivityHandlers[ge.cursorActivityCalled++].call(null,ge.cm)}}while(ne<U.length)}function ea(N,U){var ne=N.ownsGroup;if(!ne)return;try{ha(ne)}finally{On=null,U(ne)}}var aa=null;function Or(N,U){var ne=Jt(N,U);if(!ne.length)return;var se=Array.prototype.slice.call(arguments,2),ge;On?ge=On.delayedCallbacks:aa?ge=aa:(ge=aa=[],setTimeout(wr,0));for(var ze=function(yr){ge.push(function(){return ne[yr].apply(null,se)})},Ct=0;Ct<ne.length;++Ct)ze(Ct)}function wr(){var N=aa;aa=null;for(var U=0;U<N.length;++U)N[U]()}function Sn(N,U,ne,se){for(var ge=0;ge<U.changes.length;ge++){var ze=U.changes[ge];ze=="text"?on(N,U):ze=="gutter"?Et(N,U,ne,se):ze=="class"?Nn(N,U):ze=="widget"&&Cr(N,U,se)}U.changes=null}function cr(N){return N.node==N.text&&(N.node=I("div",null,null,"position: relative"),N.text.parentNode&&N.text.parentNode.replaceChild(N.node,N.text),N.node.appendChild(N.text),h&&u<8&&(N.node.style.zIndex=2)),N.node}function Lr(N,U){var ne=U.bgClass?U.bgClass+" "+(U.line.bgClass||""):U.line.bgClass;if(ne&&(ne+=" CodeMirror-linebackground"),U.background)ne?U.background.className=ne:(U.background.parentNode.removeChild(U.background),U.background=null);else if(ne){var se=cr(U);U.background=se.insertBefore(I("div",null,ne),se.firstChild),N.display.input.setUneditable(U.background)}}function Wr(N,U){var ne=N.display.externalMeasured;return ne&&ne.line==U.line?(N.display.externalMeasured=null,U.measure=ne.measure,ne.built):ii(N,U)}function on(N,U){var ne=U.text.className,se=Wr(N,U);U.text==U.node&&(U.node=se.pre),U.text.parentNode.replaceChild(se.pre,U.text),U.text=se.pre,se.bgClass!=U.bgClass||se.textClass!=U.textClass?(U.bgClass=se.bgClass,U.textClass=se.textClass,Nn(N,U)):ne&&(U.text.className=ne)}function Nn(N,U){Lr(N,U),U.line.wrapClass?cr(U).className=U.line.wrapClass:U.node!=U.text&&(U.node.className="");var ne=U.textClass?U.textClass+" "+(U.line.textClass||""):U.line.textClass;U.text.className=ne||""}function Et(N,U,ne,se){if(U.gutter&&(U.node.removeChild(U.gutter),U.gutter=null),U.gutterBackground&&(U.node.removeChild(U.gutterBackground),U.gutterBackground=null),U.line.gutterClass){var ge=cr(U);U.gutterBackground=I("div",null,"CodeMirror-gutter-background "+U.line.gutterClass,"left: "+(N.options.fixedGutter?se.fixedPos:-se.gutterTotalWidth)+"px; width: "+se.gutterTotalWidth+"px"),N.display.input.setUneditable(U.gutterBackground),ge.insertBefore(U.gutterBackground,U.text)}var ze=U.line.gutterMarkers;if(N.options.lineNumbers||ze){var Ct=cr(U),Zt=U.gutter=I("div",null,"CodeMirror-gutter-wrapper","left: "+(N.options.fixedGutter?se.fixedPos:-se.gutterTotalWidth)+"px");if(N.display.input.setUneditable(Zt),Ct.insertBefore(Zt,U.text),U.line.gutterClass&&(Zt.className+=" "+U.line.gutterClass),N.options.lineNumbers&&(!ze||!ze["CodeMirror-linenumbers"])&&(U.lineNumber=Zt.appendChild(I("div",ni(N.options,ne),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+se.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+N.display.lineNumInnerWidth+"px"))),ze)for(var yr=0;yr<N.display.gutterSpecs.length;++yr){var Tr=N.display.gutterSpecs[yr].className,Pn=ze.hasOwnProperty(Tr)&&ze[Tr];Pn&&Zt.appendChild(I("div",[Pn],"CodeMirror-gutter-elt","left: "+se.gutterLeft[Tr]+"px; width: "+se.gutterWidth[Tr]+"px"))}}}function Cr(N,U,ne){U.alignable&&(U.alignable=null);for(var se=_("CodeMirror-linewidget"),ge=U.node.firstChild,ze=void 0;ge;ge=ze)ze=ge.nextSibling,se.test(ge.className)&&U.node.removeChild(ge);$r(N,U,ne)}function _r(N,U,ne,se){var ge=Wr(N,U);return U.text=U.node=ge.pre,ge.bgClass&&(U.bgClass=ge.bgClass),ge.textClass&&(U.textClass=ge.textClass),Nn(N,U),Et(N,U,ne,se),$r(N,U,se),U.node}function $r(N,U,ne){if(yn(N,U.line,U,ne,!0),U.rest)for(var se=0;se<U.rest.length;se++)yn(N,U.rest[se],U,ne,!1)}function yn(N,U,ne,se,ge){if(!U.widgets)return;for(var ze=cr(ne),Ct=0,Zt=U.widgets;Ct<Zt.length;++Ct){var yr=Zt[Ct],Tr=I("div",[yr.node],"CodeMirror-linewidget"+(yr.className?" "+yr.className:""));yr.handleMouseEvents||Tr.setAttribute("cm-ignore-events","true"),Tn(yr,Tr,ne,se),N.display.input.setUneditable(Tr),ge&&yr.above?ze.insertBefore(Tr,ne.gutter||ne.text):ze.appendChild(Tr),Or(yr,"redraw")}}function Tn(N,U,ne,se){if(N.noHScroll){(ne.alignable||(ne.alignable=[])).push(U);var ge=se.wrapperWidth;U.style.left=se.fixedPos+"px",N.coverGutter||(ge-=se.gutterTotalWidth,U.style.paddingLeft=se.gutterTotalWidth+"px"),U.style.width=ge+"px"}N.coverGutter&&(U.style.zIndex=5,U.style.position="relative",N.noHScroll||(U.style.marginLeft=-se.gutterTotalWidth+"px"))}function vn(N){if(N.height!=null)return N.height;var U=N.doc.cm;if(!U)return 0;if(!F(document.body,N.node)){var ne="position: relative;";N.coverGutter&&(ne+="margin-left: -"+U.display.gutters.offsetWidth+"px;"),N.noHScroll&&(ne+="width: "+U.display.wrapper.clientWidth+"px;"),O(U.display.measure,I("div",[N.node],null,ne))}return N.height=N.node.parentNode.offsetHeight}function Qn(N,U){for(var ne=He(U);ne!=N.wrapper;ne=ne.parentNode)if(!ne||ne.nodeType==1&&ne.getAttribute("cm-ignore-events")=="true"||ne.parentNode==N.sizer&&ne!=N.mover)return!0}function Fn(N){return N.lineSpace.offsetTop}function fi(N){return N.mover.offsetHeight-N.lineSpace.offsetHeight}function Ri(N){if(N.cachedPaddingH)return N.cachedPaddingH;var U=O(N.measure,I("pre","x","CodeMirror-line-like")),ne=window.getComputedStyle?window.getComputedStyle(U):U.currentStyle,se={left:parseInt(ne.paddingLeft),right:parseInt(ne.paddingRight)};return!isNaN(se.left)&&!isNaN(se.right)&&(N.cachedPaddingH=se),se}function yi(N){return ee-N.display.nativeBarWidth}function Ci(N){return N.display.scroller.clientWidth-yi(N)-N.display.barWidth}function Wi(N){return N.display.scroller.clientHeight-yi(N)-N.display.barHeight}function qi(N,U,ne){var se=N.options.lineWrapping,ge=se&&Ci(N);if(!U.measure.heights||se&&U.measure.width!=ge){var ze=U.measure.heights=[];if(se){U.measure.width=ge;for(var Ct=U.text.firstChild.getClientRects(),Zt=0;Zt<Ct.length-1;Zt++){var yr=Ct[Zt],Tr=Ct[Zt+1];Math.abs(yr.bottom-Tr.bottom)>2&&ze.push((yr.bottom+Tr.top)/2-ne.top)}}ze.push(ne.bottom-ne.top)}}function zi(N,U,ne){if(N.line==U)return{map:N.measure.map,cache:N.measure.cache};for(var se=0;se<N.rest.length;se++)if(N.rest[se]==U)return{map:N.measure.maps[se],cache:N.measure.caches[se]};for(var ge=0;ge<N.rest.length;ge++)if(kr(N.rest[ge])>ne)return{map:N.measure.maps[ge],cache:N.measure.caches[ge],before:!0}}function Ki(N,U){U=Dt(U);var ne=kr(U),se=N.display.externalMeasured=new ba(N.doc,U,ne);se.lineN=ne;var ge=se.built=ii(N,se);return se.text=ge.pre,O(N.display.lineMeasure,ge.pre),se}function ji(N,U,ne,se){return Ca(N,ca(N,U),ne,se)}function Yi(N,U){if(U>=N.display.viewFrom&&U<N.display.viewTo)return N.display.view[uo(N,U)];var ne=N.display.externalMeasured;if(ne&&U>=ne.lineN&&U<ne.lineN+ne.size)return ne}function ca(N,U){var ne=kr(U),se=Yi(N,ne);se&&!se.text?se=null:se&&se.changes&&(Sn(N,se,ne,os(N)),N.curOp.forceUpdate=!0),se||(se=Ki(N,U));var ge=zi(se,U,ne);return{line:U,view:se,rect:null,map:ge.map,cache:ge.cache,before:ge.before,hasHeights:!1}}function Ca(N,U,ne,se,ge){U.before&&(ne=-1);var ze=ne+(se||""),Ct;return U.cache.hasOwnProperty(ze)?Ct=U.cache[ze]:(U.rect||(U.rect=U.view.text.getBoundingClientRect()),U.hasHeights||(qi(N,U.view,U.rect),U.hasHeights=!0),Ct=va(N,U,ne,se),Ct.bogus||(U.cache[ze]=Ct)),{left:Ct.left,right:Ct.right,top:ge?Ct.rtop:Ct.top,bottom:ge?Ct.rbottom:Ct.bottom}}var ra={left:0,right:0,top:0,bottom:0};function Ma(N,U,ne){for(var se,ge,ze,Ct,Zt,yr,Tr=0;Tr<N.length;Tr+=3)if(Zt=N[Tr],yr=N[Tr+1],U<Zt?(ge=0,ze=1,Ct="left"):U<yr?(ge=U-Zt,ze=ge+1):(Tr==N.length-3||U==yr&&N[Tr+3]>U)&&(ze=yr-Zt,ge=ze-1,U>=yr&&(Ct="right")),ge!=null){if(se=N[Tr+2],Zt==yr&&ne==(se.insertLeft?"left":"right")&&(Ct=ne),ne=="left"&&ge==0)for(;Tr&&N[Tr-2]==N[Tr-3]&&N[Tr-1].insertLeft;)se=N[(Tr-=3)+2],Ct="left";if(ne=="right"&&ge==yr-Zt)for(;Tr<N.length-3&&N[Tr+3]==N[Tr+4]&&!N[Tr+5].insertLeft;)se=N[(Tr+=3)+2],Ct="right";break}return{node:se,start:ge,end:ze,collapse:Ct,coverStart:Zt,coverEnd:yr}}function La(N,U){var ne=ra;if(U=="left")for(var se=0;se<N.length&&!((ne=N[se]).left!=ne.right);se++);else for(var ge=N.length-1;ge>=0&&!((ne=N[ge]).left!=ne.right);ge--);return ne}function va(N,U,ne,se){var ge=Ma(U.map,ne,se),ze=ge.node,Ct=ge.start,Zt=ge.end,yr=ge.collapse,Tr;if(ze.nodeType==3){for(var Pn=0;Pn<4;Pn++){for(;Ct&&we(U.line.text.charAt(ge.coverStart+Ct));)--Ct;for(;ge.coverStart+Zt<ge.coverEnd&&we(U.line.text.charAt(ge.coverStart+Zt));)++Zt;if(h&&u<9&&Ct==0&&Zt==ge.coverEnd-ge.coverStart?Tr=ze.parentNode.getBoundingClientRect():Tr=La(M(ze,Ct,Zt).getClientRects(),se),Tr.left||Tr.right||Ct==0)break;Zt=Ct,Ct=Ct-1,yr="right"}h&&u<11&&(Tr=ga(N.display.measure,Tr))}else{Ct>0&&(yr=se="right");var $n;N.options.lineWrapping&&($n=ze.getClientRects()).length>1?Tr=$n[se=="right"?$n.length-1:0]:Tr=ze.getBoundingClientRect()}if(h&&u<9&&!Ct&&(!Tr||!Tr.left&&!Tr.right)){var Si=ze.parentNode.getClientRects()[0];Si?Tr={left:Si.left,right:Si.left+Io(N.display),top:Si.top,bottom:Si.bottom}:Tr=ra}for(var Ti=Tr.top-U.rect.top,la=Tr.bottom-U.rect.top,Ta=(Ti+la)/2,Wa=U.view.measure.heights,ka=0;ka<Wa.length-1&&!(Ta<Wa[ka]);ka++);var Na=ka?Wa[ka-1]:0,qa=Wa[ka],ho={left:(yr=="right"?Tr.right:Tr.left)-U.rect.left,right:(yr=="left"?Tr.left:Tr.right)-U.rect.left,top:Na,bottom:qa};return!Tr.left&&!Tr.right&&(ho.bogus=!0),N.options.singleCursorHeightPerLine||(ho.rtop=Ti,ho.rbottom=la),ho}function ga(N,U){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Wt(N))return U;var ne=screen.logicalXDPI/screen.deviceXDPI,se=screen.logicalYDPI/screen.deviceYDPI;return{left:U.left*ne,right:U.right*ne,top:U.top*se,bottom:U.bottom*se}}function Oa(N){if(N.measure&&(N.measure.cache={},N.measure.heights=null,N.rest))for(var U=0;U<N.rest.length;U++)N.measure.caches[U]={}}function Aa(N){N.display.externalMeasure=null,w(N.display.lineMeasure);for(var U=0;U<N.display.view.length;U++)Oa(N.display.view[U])}function Ga(N){Aa(N),N.display.cachedCharWidth=N.display.cachedTextHeight=N.display.cachedPaddingH=null,N.options.lineWrapping||(N.display.maxLineChanged=!0),N.display.lineNumChars=null}function _a(){return t&&c?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Va(){return t&&c?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Bi(N){var U=0;if(N.widgets)for(var ne=0;ne<N.widgets.length;++ne)N.widgets[ne].above&&(U+=vn(N.widgets[ne]));return U}function io(N,U,ne,se,ge){if(!ge){var ze=Bi(U);ne.top+=ze,ne.bottom+=ze}if(se=="line")return ne;se||(se="local");var Ct=Nr(U);if(se=="local"?Ct+=Fn(N.display):Ct-=N.display.viewOffset,se=="page"||se=="window"){var Zt=N.display.lineSpace.getBoundingClientRect();Ct+=Zt.top+(se=="window"?0:Va());var yr=Zt.left+(se=="window"?0:_a());ne.left+=yr,ne.right+=yr}return ne.top+=Ct,ne.bottom+=Ct,ne}function oo(N,U,ne){if(ne=="div")return U;var se=U.left,ge=U.top;if(ne=="page")se-=_a(),ge-=Va();else if(ne=="local"||!ne){var ze=N.display.sizer.getBoundingClientRect();se+=ze.left,ge+=ze.top}var Ct=N.display.lineSpace.getBoundingClientRect();return{left:se-Ct.left,top:ge-Ct.top}}function Qo(N,U,ne,se,ge){return se||(se=Be(N.doc,U.line)),io(N,se,ji(N,se,U.ch,ge),ne)}function mo(N,U,ne,se,ge,ze){se=se||Be(N.doc,U.line),ge||(ge=ca(N,se));function Ct(la,Ta){var Wa=Ca(N,ge,la,Ta?"right":"left",ze);return Ta?Wa.left=Wa.right:Wa.right=Wa.left,io(N,se,Wa,ne)}var Zt=At(se,N.doc.direction),yr=U.ch,Tr=U.sticky;if(yr>=se.text.length?(yr=se.text.length,Tr="before"):yr<=0&&(yr=0,Tr="after"),!Zt)return Ct(Tr=="before"?yr-1:yr,Tr=="before");function Pn(la,Ta,Wa){var ka=Zt[Ta],Na=ka.level==1;return Ct(Wa?la-1:la,Na!=Wa)}var $n=Le(Zt,yr,Tr),Si=me,Ti=Pn(yr,$n,Tr=="before");return Si!=null&&(Ti.other=Pn(yr,Si,Tr!="before")),Ti}function To(N,U){var ne=0;U=Rt(N.doc,U),N.options.lineWrapping||(ne=Io(N.display)*U.ch);var se=Be(N.doc,U.line),ge=Nr(se)+Fn(N.display);return{left:ne,right:ne,top:ge,bottom:ge+se.height}}function ao(N,U,ne,se,ge){var ze=ur(N,U,ne);return ze.xRel=ge,se&&(ze.outside=se),ze}function So(N,U,ne){var se=N.doc;if(ne+=N.display.viewOffset,ne<0)return ao(se.first,0,null,-1,-1);var ge=mn(se,ne),ze=se.first+se.size-1;if(ge>ze)return ao(se.first+se.size-1,Be(se,ze).text.length,null,1,1);U<0&&(U=0);for(var Ct=Be(se,ge);;){var Zt=Uo(N,Ct,ge,U,ne),yr=Ht(Ct,Zt.ch+(Zt.xRel>0||Zt.outside>0?1:0));if(!yr)return Zt;var Tr=yr.find(1);if(Tr.line==ge)return Tr;Ct=Be(se,ge=Tr.line)}}function bo(N,U,ne,se){se-=Bi(U);var ge=U.text.length,ze=Ee(function(Ct){return Ca(N,ne,Ct-1).bottom<=se},ge,0);return ge=Ee(function(Ct){return Ca(N,ne,Ct).top>se},ze,ge),{begin:ze,end:ge}}function to(N,U,ne,se){ne||(ne=ca(N,U));var ge=io(N,U,Ca(N,ne,se),"line").top;return bo(N,U,ne,ge)}function Jo(N,U,ne,se){return N.bottom<=ne?!1:N.top>ne?!0:(se?N.left:N.right)>U}function Uo(N,U,ne,se,ge){ge-=Nr(U);var ze=ca(N,U),Ct=Bi(U),Zt=0,yr=U.text.length,Tr=!0,Pn=At(U,N.doc.direction);if(Pn){var $n=(N.options.lineWrapping?ts:wo)(N,U,ne,ze,Pn,se,ge);Tr=$n.level!=1,Zt=Tr?$n.from:$n.to-1,yr=Tr?$n.to:$n.from-1}var Si=null,Ti=null,la=Ee(function(ns){var Mo=Ca(N,ze,ns);return Mo.top+=Ct,Mo.bottom+=Ct,Jo(Mo,se,ge,!1)?(Mo.top<=ge&&Mo.left<=se&&(Si=ns,Ti=Mo),!0):!1},Zt,yr),Ta,Wa,ka=!1;if(Ti){var Na=se-Ti.left<Ti.right-se,qa=Na==Tr;la=Si+(qa?0:1),Wa=qa?"after":"before",Ta=Na?Ti.left:Ti.right}else{!Tr&&(la==yr||la==Zt)&&la++,Wa=la==0?"after":la==U.text.length?"before":Ca(N,ze,la-(Tr?1:0)).bottom+Ct<=ge==Tr?"after":"before";var ho=mo(N,ur(ne,la,Wa),"line",U,ze);Ta=ho.left,ka=ge<ho.top?-1:ge>=ho.bottom?1:0}return la=Ne(U.text,la,1),ao(ne,la,Wa,ka,se-Ta)}function wo(N,U,ne,se,ge,ze,Ct){var Zt=Ee(function($n){var Si=ge[$n],Ti=Si.level!=1;return Jo(mo(N,ur(ne,Ti?Si.to:Si.from,Ti?"before":"after"),"line",U,se),ze,Ct,!0)},0,ge.length-1),yr=ge[Zt];if(Zt>0){var Tr=yr.level!=1,Pn=mo(N,ur(ne,Tr?yr.from:yr.to,Tr?"after":"before"),"line",U,se);Jo(Pn,ze,Ct,!0)&&Pn.top>Ct&&(yr=ge[Zt-1])}return yr}function ts(N,U,ne,se,ge,ze,Ct){var Zt=bo(N,U,se,Ct),yr=Zt.begin,Tr=Zt.end;/\s/.test(U.text.charAt(Tr-1))&&Tr--;for(var Pn=null,$n=null,Si=0;Si<ge.length;Si++){var Ti=ge[Si];if(Ti.from>=Tr||Ti.to<=yr)continue;var la=Ti.level!=1,Ta=Ca(N,se,la?Math.min(Tr,Ti.to)-1:Math.max(yr,Ti.from)).right,Wa=Ta<ze?ze-Ta+1e9:Ta-ze;(!Pn||$n>Wa)&&(Pn=Ti,$n=Wa)}return Pn||(Pn=ge[ge.length-1]),Pn.from<yr&&(Pn={from:yr,to:Pn.to,level:Pn.level}),Pn.to>Tr&&(Pn={from:Pn.from,to:Tr,level:Pn.level}),Pn}var Ia;function Oo(N){if(N.cachedTextHeight!=null)return N.cachedTextHeight;if(Ia==null){Ia=I("pre",null,"CodeMirror-line-like");for(var U=0;U<49;++U)Ia.appendChild(document.createTextNode("x")),Ia.appendChild(I("br"));Ia.appendChild(document.createTextNode("x"))}O(N.measure,Ia);var ne=Ia.offsetHeight/50;return ne>3&&(N.cachedTextHeight=ne),w(N.measure),ne||1}function Io(N){if(N.cachedCharWidth!=null)return N.cachedCharWidth;var U=I("span","xxxxxxxxxx"),ne=I("pre",[U],"CodeMirror-line-like");O(N.measure,ne);var se=U.getBoundingClientRect(),ge=(se.right-se.left)/10;return ge>2&&(N.cachedCharWidth=ge),ge||10}function os(N){for(var U=N.display,ne={},se={},ge=U.gutters.clientLeft,ze=U.gutters.firstChild,Ct=0;ze;ze=ze.nextSibling,++Ct){var Zt=N.display.gutterSpecs[Ct].className;ne[Zt]=ze.offsetLeft+ze.clientLeft+ge,se[Zt]=ze.clientWidth}return{fixedPos:xo(U),gutterTotalWidth:U.gutters.offsetWidth,gutterLeft:ne,gutterWidth:se,wrapperWidth:U.wrapper.clientWidth}}function xo(N){return N.scroller.getBoundingClientRect().left-N.sizer.getBoundingClientRect().left}function rs(N){var U=Oo(N.display),ne=N.options.lineWrapping,se=ne&&Math.max(5,N.display.scroller.clientWidth/Io(N.display)-3);return function(ge){if(pr(N.doc,ge))return 0;var ze=0;if(ge.widgets)for(var Ct=0;Ct<ge.widgets.length;Ct++)ge.widgets[Ct].height&&(ze+=ge.widgets[Ct].height);return ne?ze+(Math.ceil(ge.text.length/se)||1)*U:ze+U}}function Ho(N){var U=N.doc,ne=rs(N);U.iter(function(se){var ge=ne(se);ge!=se.height&&ar(se,ge)})}function _o(N,U,ne,se){var ge=N.display;if(!ne&&He(U).getAttribute("cm-not-content")=="true")return null;var ze,Ct,Zt=ge.lineSpace.getBoundingClientRect();try{ze=U.clientX-Zt.left,Ct=U.clientY-Zt.top}catch($n){return null}var yr=So(N,ze,Ct),Tr;if(se&&yr.xRel>0&&(Tr=Be(N.doc,yr.line).text).length==yr.ch){var Pn=V(Tr,Tr.length,N.options.tabSize)-Tr.length;yr=ur(yr.line,Math.max(0,Math.round((ze-Ri(N.display).left)/Io(N.display))-Pn))}return yr}function uo(N,U){if(U>=N.display.viewTo)return null;if(U-=N.display.viewFrom,U<0)return null;for(var ne=N.display.view,se=0;se<ne.length;se++)if(U-=ne[se].size,U<0)return se}function Ha(N,U,ne,se){U==null&&(U=N.doc.first),ne==null&&(ne=N.doc.first+N.doc.size),se||(se=0);var ge=N.display;if(se&&ne<ge.viewTo&&(ge.updateLineNumbers==null||ge.updateLineNumbers>U)&&(ge.updateLineNumbers=U),N.curOp.viewChanged=!0,U>=ge.viewTo)qe&&Ot(N.doc,U)<ge.viewTo&&xr(N);else if(ne<=ge.viewFrom)qe&&nr(N.doc,ne+se)>ge.viewFrom?xr(N):(ge.viewFrom+=se,ge.viewTo+=se);else if(U<=ge.viewFrom&&ne>=ge.viewTo)xr(N);else if(U<=ge.viewFrom){var ze=Jr(N,ne,ne+se,1);ze?(ge.view=ge.view.slice(ze.index),ge.viewFrom=ze.lineN,ge.viewTo+=se):xr(N)}else if(ne>=ge.viewTo){var Ct=Jr(N,U,U,-1);Ct?(ge.view=ge.view.slice(0,Ct.index),ge.viewTo=Ct.lineN):xr(N)}else{var Zt=Jr(N,U,U,-1),yr=Jr(N,ne,ne+se,1);Zt&&yr?(ge.view=ge.view.slice(0,Zt.index).concat(vi(N,Zt.lineN,yr.lineN)).concat(ge.view.slice(yr.index)),ge.viewTo+=se):xr(N)}var Tr=ge.externalMeasured;Tr&&(ne<Tr.lineN?Tr.lineN+=se:U<Tr.lineN+Tr.size&&(ge.externalMeasured=null))}function pt(N,U,ne){N.curOp.viewChanged=!0;var se=N.display,ge=N.display.externalMeasured;if(ge&&U>=ge.lineN&&U<ge.lineN+ge.size&&(se.externalMeasured=null),U<se.viewFrom||U>=se.viewTo)return;var ze=se.view[uo(N,U)];if(ze.node==null)return;var Ct=ze.changes||(ze.changes=[]);G(Ct,ne)==-1&&Ct.push(ne)}function xr(N){N.display.viewFrom=N.display.viewTo=N.doc.first,N.display.view=[],N.display.viewOffset=0}function Jr(N,U,ne,se){var ge=uo(N,U),ze,Ct=N.display.view;if(!qe||ne==N.doc.first+N.doc.size)return{index:ge,lineN:ne};for(var Zt=N.display.viewFrom,yr=0;yr<ge;yr++)Zt+=Ct[yr].size;if(Zt!=U){if(se>0){if(ge==Ct.length-1)return null;ze=Zt+Ct[ge].size-U,ge++}else ze=Zt-U;U+=ze,ne+=ze}for(;Ot(N.doc,ne)!=ne;){if(ge==(se<0?0:Ct.length-1))return null;ne+=se*Ct[ge-(se<0?1:0)].size,ge+=se}return{index:ge,lineN:ne}}function Vr(N,U,ne){var se=N.display,ge=se.view;ge.length==0||U>=se.viewTo||ne<=se.viewFrom?(se.view=vi(N,U,ne),se.viewFrom=U):(se.viewFrom>U?se.view=vi(N,U,se.viewFrom).concat(se.view):se.viewFrom<U&&(se.view=se.view.slice(uo(N,U))),se.viewFrom=U,se.viewTo<ne?se.view=se.view.concat(vi(N,se.viewTo,ne)):se.viewTo>ne&&(se.view=se.view.slice(0,uo(N,ne)))),se.viewTo=ne}function Vn(N){for(var U=N.display.view,ne=0,se=0;se<U.length;se++){var ge=U[se];!ge.hidden&&(!ge.node||ge.changes)&&++ne}return ne}function sn(N){N.display.input.showSelection(N.display.input.prepareSelection())}function zr(N,U){U===void 0&&(U=!0);for(var ne=N.doc,se={},ge=se.cursors=document.createDocumentFragment(),ze=se.selection=document.createDocumentFragment(),Ct=0;Ct<ne.sel.ranges.length;Ct++){if(!U&&Ct==ne.sel.primIndex)continue;var Zt=ne.sel.ranges[Ct];if(Zt.from().line>=N.display.viewTo||Zt.to().line<N.display.viewFrom)continue;var yr=Zt.empty();(yr||N.options.showCursorWhenSelecting)&&qn(N,Zt.head,ge),yr||Un(N,Zt,ze)}return se}function qn(N,U,ne){var se=mo(N,U,"div",null,null,!N.options.singleCursorHeightPerLine),ge=ne.appendChild(I("div","\xA0","CodeMirror-cursor"));if(ge.style.left=se.left+"px",ge.style.top=se.top+"px",ge.style.height=Math.max(0,se.bottom-se.top)*N.options.cursorHeight+"px",se.other){var ze=ne.appendChild(I("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ze.style.display="",ze.style.left=se.other.left+"px",ze.style.top=se.other.top+"px",ze.style.height=(se.other.bottom-se.other.top)*.85+"px"}}function en(N,U){return N.top-U.top||N.left-U.left}function Un(N,U,ne){var se=N.display,ge=N.doc,ze=document.createDocumentFragment(),Ct=Ri(N.display),Zt=Ct.left,yr=Math.max(se.sizerWidth,Ci(N)-se.sizer.offsetLeft)-Ct.right,Tr=ge.direction=="ltr";function Pn(qa,ho,ns,Mo){ho<0&&(ho=0),ho=Math.round(ho),Mo=Math.round(Mo),ze.appendChild(I("div",null,"CodeMirror-selected","position: absolute; left: "+qa+`px;
|
|
|
top: `+ho+"px; width: "+(ns==null?yr-qa:ns)+`px;
|
|
|
height: `+(Mo-ho)+"px"))}function $n(qa,ho,ns){var Mo=Be(ge,qa),Ss=Mo.text.length,Zs,yl;function ul(Il,Gl){return Qo(N,ur(qa,Il),"div",Mo,Gl)}function Pl(Il,Gl,Fl){var Ja=to(N,Mo,null,Il),vl=Gl=="ltr"==(Fl=="after")?"left":"right",gl=Fl=="after"?Ja.begin:Ja.end-(/\s/.test(Mo.text.charAt(Ja.end-1))?2:1);return ul(gl,vl)[vl]}var Vl=At(Mo,ge.direction);return de(Vl,ho||0,ns==null?Ss:ns,function(Il,Gl,Fl,Ja){var vl=Fl=="ltr",gl=ul(Il,vl?"left":"right"),El=ul(Gl-1,vl?"right":"left"),Bu=ho==null&&Il==0,Hs=ns==null&&Gl==Ss,vs=Ja==0,lu=!Vl||Ja==Vl.length-1;if(El.top-gl.top<=3){var Kl=(Tr?Bu:Hs)&&vs,Uu=(Tr?Hs:Bu)&&lu,Eu=Kl?Zt:(vl?gl:El).left,uu=Uu?yr:(vl?El:gl).right;Pn(Eu,gl.top,uu-Eu,gl.bottom)}else{var ku,Yl,Tu,Vu;vl?(ku=Tr&&Bu&&vs?Zt:gl.left,Yl=Tr?yr:Pl(Il,Fl,"before"),Tu=Tr?Zt:Pl(Gl,Fl,"after"),Vu=Tr&&Hs&&lu?yr:El.right):(ku=Tr?Pl(Il,Fl,"before"):Zt,Yl=!Tr&&Bu&&vs?yr:gl.right,Tu=!Tr&&Hs&&lu?Zt:El.left,Vu=Tr?Pl(Gl,Fl,"after"):yr),Pn(ku,gl.top,Yl-ku,gl.bottom),gl.bottom<El.top&&Pn(Zt,gl.bottom,null,El.top),Pn(Tu,El.top,Vu-Tu,El.bottom)}(!Zs||en(gl,Zs)<0)&&(Zs=gl),en(El,Zs)<0&&(Zs=El),(!yl||en(gl,yl)<0)&&(yl=gl),en(El,yl)<0&&(yl=El)}),{start:Zs,end:yl}}var Si=U.from(),Ti=U.to();if(Si.line==Ti.line)$n(Si.line,Si.ch,Ti.ch);else{var la=Be(ge,Si.line),Ta=Be(ge,Ti.line),Wa=Dt(la)==Dt(Ta),ka=$n(Si.line,Si.ch,Wa?la.text.length+1:null).end,Na=$n(Ti.line,Wa?0:null,Ti.ch).start;Wa&&(ka.top<Na.top-2?(Pn(ka.right,ka.top,null,ka.bottom),Pn(Zt,Na.top,Na.left,Na.bottom)):Pn(ka.right,ka.top,Na.left-ka.right,ka.bottom)),ka.bottom<Na.top&&Pn(Zt,ka.bottom,null,Na.top)}ne.appendChild(ze)}function si(N){if(!N.state.focused)return;var U=N.display;clearInterval(U.blinker);var ne=!0;U.cursorDiv.style.visibility="",N.options.cursorBlinkRate>0?U.blinker=setInterval(function(){N.hasFocus()||pi(N),U.cursorDiv.style.visibility=(ne=!ne)?"":"hidden"},N.options.cursorBlinkRate):N.options.cursorBlinkRate<0&&(U.cursorDiv.style.visibility="hidden")}function ui(N){N.state.focused||(N.display.input.focus(),Ei(N))}function oi(N){N.state.delayingBlurEvent=!0,setTimeout(function(){N.state.delayingBlurEvent&&(N.state.delayingBlurEvent=!1,pi(N))},100)}function Ei(N,U){if(N.state.delayingBlurEvent&&(N.state.delayingBlurEvent=!1),N.options.readOnly=="nocursor")return;N.state.focused||(Gt(N,"focus",N,U),N.state.focused=!0,X(N.display.wrapper,"CodeMirror-focused"),!N.curOp&&N.display.selForContextMenu!=N.doc.sel&&(N.display.input.reset(),a&&setTimeout(function(){return N.display.input.reset(!0)},20)),N.display.input.receivedFocus()),si(N)}function pi(N,U){if(N.state.delayingBlurEvent)return;N.state.focused&&(Gt(N,"blur",N,U),N.state.focused=!1,T(N.display.wrapper,"CodeMirror-focused")),clearInterval(N.display.blinker),setTimeout(function(){N.state.focused||(N.display.shift=!1)},150)}function Ai(N){for(var U=N.display,ne=U.lineDiv.offsetTop,se=0;se<U.view.length;se++){var ge=U.view[se],ze=N.options.lineWrapping,Ct=void 0,Zt=0;if(ge.hidden)continue;if(h&&u<8){var yr=ge.node.offsetTop+ge.node.offsetHeight;Ct=yr-ne,ne=yr}else{var Tr=ge.node.getBoundingClientRect();Ct=Tr.bottom-Tr.top,!ze&&ge.text.firstChild&&(Zt=ge.text.firstChild.getBoundingClientRect().right-Tr.left-1)}var Pn=ge.line.height-Ct;if((Pn>.005||Pn<-.005)&&(ar(ge.line,Ct),Oi(ge.line),ge.rest))for(var $n=0;$n<ge.rest.length;$n++)Oi(ge.rest[$n]);if(Zt>N.display.sizerWidth){var Si=Math.ceil(Zt/Io(N.display));Si>N.display.maxLineLength&&(N.display.maxLineLength=Si,N.display.maxLine=ge.line,N.display.maxLineChanged=!0)}}}function Oi(N){if(N.widgets)for(var U=0;U<N.widgets.length;++U){var ne=N.widgets[U],se=ne.node.parentNode;se&&(ne.height=se.offsetHeight)}}function na(N,U,ne){var se=ne&&ne.top!=null?Math.max(0,ne.top):N.scroller.scrollTop;se=Math.floor(se-Fn(N));var ge=ne&&ne.bottom!=null?ne.bottom:se+N.wrapper.clientHeight,ze=mn(U,se),Ct=mn(U,ge);if(ne&&ne.ensure){var Zt=ne.ensure.from.line,yr=ne.ensure.to.line;Zt<ze?(ze=Zt,Ct=mn(U,Nr(Be(U,Zt))+N.wrapper.clientHeight)):Math.min(yr,U.lastLine())>=Ct&&(ze=mn(U,Nr(Be(U,yr))-N.wrapper.clientHeight),Ct=yr)}return{from:ze,to:Math.max(Ct,ze+1)}}function Hi(N,U){if(dr(N,"scrollCursorIntoView"))return;var ne=N.display,se=ne.sizer.getBoundingClientRect(),ge=null;if(U.top+se.top<0?ge=!0:U.bottom+se.top>(window.innerHeight||document.documentElement.clientHeight)&&(ge=!1),ge!=null&&!r){var ze=I("div","\u200B",null,`position: absolute;
|
|
|
top: `+(U.top-ne.viewOffset-Fn(N.display))+`px;
|
|
|
height: `+(U.bottom-U.top+yi(N)+ne.barHeight)+`px;
|
|
|
left: `+U.left+"px; width: "+Math.max(2,U.right-U.left)+"px;");N.display.lineSpace.appendChild(ze),ze.scrollIntoView(ge),N.display.lineSpace.removeChild(ze)}}function fa(N,U,ne,se){se==null&&(se=0);var ge;!N.options.lineWrapping&&U==ne&&(U=U.ch?ur(U.line,U.sticky=="before"?U.ch-1:U.ch,"after"):U,ne=U.sticky=="before"?ur(U.line,U.ch+1,"before"):U);for(var ze=0;ze<5;ze++){var Ct=!1,Zt=mo(N,U),yr=!ne||ne==U?Zt:mo(N,ne);ge={left:Math.min(Zt.left,yr.left),top:Math.min(Zt.top,yr.top)-se,right:Math.max(Zt.left,yr.left),bottom:Math.max(Zt.bottom,yr.bottom)+se};var Tr=xa(N,ge),Pn=N.doc.scrollTop,$n=N.doc.scrollLeft;if(Tr.scrollTop!=null&&(Ea(N,Tr.scrollTop),Math.abs(N.doc.scrollTop-Pn)>1&&(Ct=!0)),Tr.scrollLeft!=null&&(Ka(N,Tr.scrollLeft),Math.abs(N.doc.scrollLeft-$n)>1&&(Ct=!0)),!Ct)break}return ge}function Xa(N,U){var ne=xa(N,U);ne.scrollTop!=null&&Ea(N,ne.scrollTop),ne.scrollLeft!=null&&Ka(N,ne.scrollLeft)}function xa(N,U){var ne=N.display,se=Oo(N.display);U.top<0&&(U.top=0);var ge=N.curOp&&N.curOp.scrollTop!=null?N.curOp.scrollTop:ne.scroller.scrollTop,ze=Wi(N),Ct={};U.bottom-U.top>ze&&(U.bottom=U.top+ze);var Zt=N.doc.height+fi(ne),yr=U.top<se,Tr=U.bottom>Zt-se;if(U.top<ge)Ct.scrollTop=yr?0:U.top;else if(U.bottom>ge+ze){var Pn=Math.min(U.top,(Tr?Zt:U.bottom)-ze);Pn!=ge&&(Ct.scrollTop=Pn)}var $n=N.options.fixedGutter?0:ne.gutters.offsetWidth,Si=N.curOp&&N.curOp.scrollLeft!=null?N.curOp.scrollLeft:ne.scroller.scrollLeft-$n,Ti=Ci(N)-ne.gutters.offsetWidth,la=U.right-U.left>Ti;return la&&(U.right=U.left+Ti),U.left<10?Ct.scrollLeft=0:U.left<Si?Ct.scrollLeft=Math.max(0,U.left+$n-(la?0:10)):U.right>Ti+Si-3&&(Ct.scrollLeft=U.right+(la?0:10)-Ti),Ct}function wa(N,U){if(U==null)return;ro(N),N.curOp.scrollTop=(N.curOp.scrollTop==null?N.doc.scrollTop:N.curOp.scrollTop)+U}function Da(N){ro(N);var U=N.getCursor();N.curOp.scrollToPos={from:U,to:U,margin:N.options.cursorScrollMargin}}function ja(N,U,ne){(U!=null||ne!=null)&&ro(N),U!=null&&(N.curOp.scrollLeft=U),ne!=null&&(N.curOp.scrollTop=ne)}function ko(N,U){ro(N),N.curOp.scrollToPos=U}function ro(N){var U=N.curOp.scrollToPos;if(U){N.curOp.scrollToPos=null;var ne=To(N,U.from),se=To(N,U.to);pa(N,ne,se,U.margin)}}function pa(N,U,ne,se){var ge=xa(N,{left:Math.min(U.left,ne.left),top:Math.min(U.top,ne.top)-se,right:Math.max(U.right,ne.right),bottom:Math.max(U.bottom,ne.bottom)+se});ja(N,ge.scrollLeft,ge.scrollTop)}function Ea(N,U){if(Math.abs(N.doc.scrollTop-U)<2)return;x||Qs(N,{top:U}),Fa(N,U,!0),x&&Qs(N),hs(N,100)}function Fa(N,U,ne){if(U=Math.max(0,Math.min(N.display.scroller.scrollHeight-N.display.scroller.clientHeight,U)),N.display.scroller.scrollTop==U&&!ne)return;N.doc.scrollTop=U,N.display.scrollbars.setScrollTop(U),N.display.scroller.scrollTop!=U&&(N.display.scroller.scrollTop=U)}function Ka(N,U,ne,se){if(U=Math.max(0,Math.min(U,N.display.scroller.scrollWidth-N.display.scroller.clientWidth)),(ne?U==N.doc.scrollLeft:Math.abs(N.doc.scrollLeft-U)<2)&&!se)return;N.doc.scrollLeft=U,al(N),N.display.scroller.scrollLeft!=U&&(N.display.scroller.scrollLeft=U),N.display.scrollbars.setScrollLeft(U)}function lo(N){var U=N.display,ne=U.gutters.offsetWidth,se=Math.round(N.doc.height+fi(N.display));return{clientHeight:U.scroller.clientHeight,viewHeight:U.wrapper.clientHeight,scrollWidth:U.scroller.scrollWidth,clientWidth:U.scroller.clientWidth,viewWidth:U.wrapper.clientWidth,barLeft:N.options.fixedGutter?ne:0,docHeight:se,scrollHeight:se+yi(N)+U.barHeight,nativeBarWidth:U.nativeBarWidth,gutterWidth:ne}}var so=function(U,ne,se){this.cm=se;var ge=this.vert=I("div",[I("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ze=this.horiz=I("div",[I("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ge.tabIndex=ze.tabIndex=-1,U(ge),U(ze),Ke(ge,"scroll",function(){ge.clientHeight&&ne(ge.scrollTop,"vertical")}),Ke(ze,"scroll",function(){ze.clientWidth&&ne(ze.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&u<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};so.prototype.update=function(N){var U=N.scrollWidth>N.clientWidth+1,ne=N.scrollHeight>N.clientHeight+1,se=N.nativeBarWidth;if(ne){this.vert.style.display="block",this.vert.style.bottom=U?se+"px":"0";var ge=N.viewHeight-(U?se:0);this.vert.firstChild.style.height=Math.max(0,N.scrollHeight-N.clientHeight+ge)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(U){this.horiz.style.display="block",this.horiz.style.right=ne?se+"px":"0",this.horiz.style.left=N.barLeft+"px";var ze=N.viewWidth-N.barLeft-(ne?se:0);this.horiz.firstChild.style.width=Math.max(0,N.scrollWidth-N.clientWidth+ze)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&N.clientHeight>0&&(se==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ne?se:0,bottom:U?se:0}},so.prototype.setScrollLeft=function(N){this.horiz.scrollLeft!=N&&(this.horiz.scrollLeft=N),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},so.prototype.setScrollTop=function(N){this.vert.scrollTop!=N&&(this.vert.scrollTop=N),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},so.prototype.zeroWidthHack=function(){var N=g&&!l?"12px":"18px";this.horiz.style.height=this.vert.style.width=N,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Q,this.disableVert=new Q},so.prototype.enableZeroWidthBar=function(N,U,ne){N.style.pointerEvents="auto";function se(){var ge=N.getBoundingClientRect(),ze=ne=="vert"?document.elementFromPoint(ge.right-1,(ge.top+ge.bottom)/2):document.elementFromPoint((ge.right+ge.left)/2,ge.bottom-1);ze!=N?N.style.pointerEvents="none":U.set(1e3,se)}U.set(1e3,se)},so.prototype.clear=function(){var N=this.horiz.parentNode;N.removeChild(this.horiz),N.removeChild(this.vert)};var Co=function(){};Co.prototype.update=function(){return{bottom:0,right:0}},Co.prototype.setScrollLeft=function(){},Co.prototype.setScrollTop=function(){},Co.prototype.clear=function(){};function Lo(N,U){U||(U=lo(N));var ne=N.display.barWidth,se=N.display.barHeight;is(N,U);for(var ge=0;ge<4&&ne!=N.display.barWidth||se!=N.display.barHeight;ge++)ne!=N.display.barWidth&&N.options.lineWrapping&&Ai(N),is(N,lo(N)),ne=N.display.barWidth,se=N.display.barHeight}function is(N,U){var ne=N.display,se=ne.scrollbars.update(U);ne.sizer.style.paddingRight=(ne.barWidth=se.right)+"px",ne.sizer.style.paddingBottom=(ne.barHeight=se.bottom)+"px",ne.heightForcer.style.borderBottom=se.bottom+"px solid transparent",se.right&&se.bottom?(ne.scrollbarFiller.style.display="block",ne.scrollbarFiller.style.height=se.bottom+"px",ne.scrollbarFiller.style.width=se.right+"px"):ne.scrollbarFiller.style.display="",se.bottom&&N.options.coverGutterNextToScrollbar&&N.options.fixedGutter?(ne.gutterFiller.style.display="block",ne.gutterFiller.style.height=se.bottom+"px",ne.gutterFiller.style.width=U.gutterWidth+"px"):ne.gutterFiller.style.display=""}var cs={native:so,null:Co};function Rs(N){N.display.scrollbars&&(N.display.scrollbars.clear(),N.display.scrollbars.addClass&&T(N.display.wrapper,N.display.scrollbars.addClass)),N.display.scrollbars=new cs[N.options.scrollbarStyle](function(U){N.display.wrapper.insertBefore(U,N.display.scrollbarFiller),Ke(U,"mousedown",function(){N.state.focused&&setTimeout(function(){return N.display.input.focus()},0)}),U.setAttribute("cm-not-content","true")},function(U,ne){ne=="horizontal"?Ka(N,U):Ea(N,U)},N),N.display.scrollbars.addClass&&X(N.display.wrapper,N.display.scrollbars.addClass)}var Ko=0;function as(N){N.curOp={cm:N,viewChanged:!1,startHeight:N.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:++Ko},Fi(N.curOp)}function co(N){var U=N.curOp;U&&ea(U,function(ne){for(var se=0;se<ne.ops.length;se++)ne.ops[se].cm.curOp=null;Ao(ne)})}function Ao(N){for(var U=N.ops,ne=0;ne<U.length;ne++)$a(U[ne]);for(var se=0;se<U.length;se++)ss(U[se]);for(var ge=0;ge<U.length;ge++)Cs(U[ge]);for(var ze=0;ze<U.length;ze++)Fo(U[ze]);for(var Ct=0;Ct<U.length;Ct++)il(U[Ct])}function $a(N){var U=N.cm,ne=U.display;Ll(U),N.updateMaxLine&&Ln(U),N.mustUpdate=N.viewChanged||N.forceUpdate||N.scrollTop!=null||N.scrollToPos&&(N.scrollToPos.from.line<ne.viewFrom||N.scrollToPos.to.line>=ne.viewTo)||ne.maxLineChanged&&U.options.lineWrapping,N.update=N.mustUpdate&&new Ns(U,N.mustUpdate&&{top:N.scrollTop,ensure:N.scrollToPos},N.forceUpdate)}function ss(N){N.updatedDisplay=N.mustUpdate&&ds(N.cm,N.update)}function Cs(N){var U=N.cm,ne=U.display;N.updatedDisplay&&Ai(U),N.barMeasure=lo(U),ne.maxLineChanged&&!U.options.lineWrapping&&(N.adjustWidthTo=ji(U,ne.maxLine,ne.maxLine.text.length).left+3,U.display.sizerWidth=N.adjustWidthTo,N.barMeasure.scrollWidth=Math.max(ne.scroller.clientWidth,ne.sizer.offsetLeft+N.adjustWidthTo+yi(U)+U.display.barWidth),N.maxScrollLeft=Math.max(0,ne.sizer.offsetLeft+N.adjustWidthTo-Ci(U))),(N.updatedDisplay||N.selectionChanged)&&(N.preparedSelection=ne.input.prepareSelection())}function Fo(N){var U=N.cm;N.adjustWidthTo!=null&&(U.display.sizer.style.minWidth=N.adjustWidthTo+"px",N.maxScrollLeft<U.doc.scrollLeft&&Ka(U,Math.min(U.display.scroller.scrollLeft,N.maxScrollLeft),!0),U.display.maxLineChanged=!1);var ne=N.focus&&N.focus==P();N.preparedSelection&&U.display.input.showSelection(N.preparedSelection,ne),(N.updatedDisplay||N.startHeight!=U.doc.height)&&Lo(U,N.barMeasure),N.updatedDisplay&&Us(U,N.barMeasure),N.selectionChanged&&si(U),U.state.focused&&N.updateInput&&U.display.input.reset(N.typing),ne&&ui(N.cm)}function il(N){var U=N.cm,ne=U.display,se=U.doc;if(N.updatedDisplay&&ks(U,N.update),ne.wheelStartX!=null&&(N.scrollTop!=null||N.scrollLeft!=null||N.scrollToPos)&&(ne.wheelStartX=ne.wheelStartY=null),N.scrollTop!=null&&Fa(U,N.scrollTop,N.forceScroll),N.scrollLeft!=null&&Ka(U,N.scrollLeft,!0,!0),N.scrollToPos){var ge=fa(U,Rt(se,N.scrollToPos.from),Rt(se,N.scrollToPos.to),N.scrollToPos.margin);Hi(U,ge)}var ze=N.maybeHiddenMarkers,Ct=N.maybeUnhiddenMarkers;if(ze)for(var Zt=0;Zt<ze.length;++Zt)ze[Zt].lines.length||Gt(ze[Zt],"hide");if(Ct)for(var yr=0;yr<Ct.length;++yr)Ct[yr].lines.length&&Gt(Ct[yr],"unhide");ne.wrapper.offsetHeight&&(se.scrollTop=U.display.scroller.scrollTop),N.changeObjs&&Gt(U,"changes",U,N.changeObjs),N.update&&N.update.finish()}function Eo(N,U){if(N.curOp)return U();as(N);try{return U()}finally{co(N)}}function zo(N,U){return function(){if(N.curOp)return U.apply(N,arguments);as(N);try{return U.apply(N,arguments)}finally{co(N)}}}function Bs(N){return function(){if(this.curOp)return N.apply(this,arguments);as(this);try{return N.apply(this,arguments)}finally{co(this)}}}function ms(N){return function(){var U=this.cm;if(!U||U.curOp)return N.apply(this,arguments);as(U);try{return N.apply(this,arguments)}finally{co(U)}}}function hs(N,U){N.doc.highlightFrontier<N.display.viewTo&&N.state.highlight.set(U,W(gn,N))}function gn(N){var U=N.doc;if(U.highlightFrontier>=N.display.viewTo)return;var ne=+new Date+N.options.workTime,se=ai(N,U.highlightFrontier),ge=[];U.iter(se.line,Math.min(U.first+U.size,N.display.viewTo+500),function(ze){if(se.line>=N.display.viewFrom){var Ct=ze.styles,Zt=ze.text.length>N.options.maxHighlightLength?Xt(U.mode,se.state):null,yr=un(N,ze,se,!0);Zt&&(se.state=Zt),ze.styles=yr.styles;var Tr=ze.styleClasses,Pn=yr.classes;Pn?ze.styleClasses=Pn:Tr&&(ze.styleClasses=null);for(var $n=!Ct||Ct.length!=ze.styles.length||Tr!=Pn&&(!Tr||!Pn||Tr.bgClass!=Pn.bgClass||Tr.textClass!=Pn.textClass),Si=0;!$n&&Si<Ct.length;++Si)$n=Ct[Si]!=ze.styles[Si];$n&&ge.push(se.line),ze.stateAfter=se.save(),se.nextLine()}else ze.text.length<=N.options.maxHighlightLength&&ei(N,ze.text,se),ze.stateAfter=se.line%5==0?se.save():null,se.nextLine();if(+new Date>ne)return hs(N,N.options.workDelay),!0}),U.highlightFrontier=se.line,U.modeFrontier=Math.max(U.modeFrontier,se.line),ge.length&&Eo(N,function(){for(var ze=0;ze<ge.length;ze++)pt(N,ge[ze],"text")})}var Ns=function(U,ne,se){var ge=U.display;this.viewport=ne,this.visible=na(ge,U.doc,ne),this.editorIsHidden=!ge.wrapper.offsetWidth,this.wrapperHeight=ge.wrapper.clientHeight,this.wrapperWidth=ge.wrapper.clientWidth,this.oldDisplayWidth=Ci(U),this.force=se,this.dims=os(U),this.events=[]};Ns.prototype.signal=function(N,U){kt(N,U)&&this.events.push(arguments)},Ns.prototype.finish=function(){for(var N=0;N<this.events.length;N++)Gt.apply(null,this.events[N])};function Ll(N){var U=N.display;!U.scrollbarsClipped&&U.scroller.offsetWidth&&(U.nativeBarWidth=U.scroller.offsetWidth-U.scroller.clientWidth,U.heightForcer.style.height=yi(N)+"px",U.sizer.style.marginBottom=-U.nativeBarWidth+"px",U.sizer.style.borderRightWidth=yi(N)+"px",U.scrollbarsClipped=!0)}function el(N){if(N.hasFocus())return null;var U=P();if(!U||!F(N.display.lineDiv,U))return null;var ne={activeElt:U};if(window.getSelection){var se=window.getSelection();se.anchorNode&&se.extend&&F(N.display.lineDiv,se.anchorNode)&&(ne.anchorNode=se.anchorNode,ne.anchorOffset=se.anchorOffset,ne.focusNode=se.focusNode,ne.focusOffset=se.focusOffset)}return ne}function Gs(N){if(!N||!N.activeElt||N.activeElt==P())return;if(N.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(N.activeElt.nodeName)&&N.anchorNode&&F(document.body,N.anchorNode)&&F(document.body,N.focusNode)){var U=window.getSelection(),ne=document.createRange();ne.setEnd(N.anchorNode,N.anchorOffset),ne.collapse(!1),U.removeAllRanges(),U.addRange(ne),U.extend(N.focusNode,N.focusOffset)}}function ds(N,U){var ne=N.display,se=N.doc;if(U.editorIsHidden)return xr(N),!1;if(!U.force&&U.visible.from>=ne.viewFrom&&U.visible.to<=ne.viewTo&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo)&&ne.renderedView==ne.view&&Vn(N)==0)return!1;Js(N)&&(xr(N),U.dims=os(N));var ge=se.first+se.size,ze=Math.max(U.visible.from-N.options.viewportMargin,se.first),Ct=Math.min(ge,U.visible.to+N.options.viewportMargin);ne.viewFrom<ze&&ze-ne.viewFrom<20&&(ze=Math.max(se.first,ne.viewFrom)),ne.viewTo>Ct&&ne.viewTo-Ct<20&&(Ct=Math.min(ge,ne.viewTo)),qe&&(ze=Ot(N.doc,ze),Ct=nr(N.doc,Ct));var Zt=ze!=ne.viewFrom||Ct!=ne.viewTo||ne.lastWrapHeight!=U.wrapperHeight||ne.lastWrapWidth!=U.wrapperWidth;Vr(N,ze,Ct),ne.viewOffset=Nr(Be(N.doc,ne.viewFrom)),N.display.mover.style.top=ne.viewOffset+"px";var yr=Vn(N);if(!Zt&&yr==0&&!U.force&&ne.renderedView==ne.view&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo))return!1;var Tr=el(N);return yr>4&&(ne.lineDiv.style.display="none"),tl(N,ne.updateLineNumbers,U.dims),yr>4&&(ne.lineDiv.style.display=""),ne.renderedView=ne.view,Gs(Tr),w(ne.cursorDiv),w(ne.selectionDiv),ne.gutters.style.height=ne.sizer.style.minHeight=0,Zt&&(ne.lastWrapHeight=U.wrapperHeight,ne.lastWrapWidth=U.wrapperWidth,hs(N,400)),ne.updateLineNumbers=null,!0}function ks(N,U){for(var ne=U.viewport,se=!0;;se=!1){if(!se||!N.options.lineWrapping||U.oldDisplayWidth==Ci(N)){if(ne&&ne.top!=null&&(ne={top:Math.min(N.doc.height+fi(N.display)-Wi(N),ne.top)}),U.visible=na(N.display,N.doc,ne),U.visible.from>=N.display.viewFrom&&U.visible.to<=N.display.viewTo)break}else se&&(U.visible=na(N.display,N.doc,ne));if(!ds(N,U))break;Ai(N);var ge=lo(N);sn(N),Lo(N,ge),Us(N,ge),U.force=!1}U.signal(N,"update",N),(N.display.viewFrom!=N.display.reportedViewFrom||N.display.viewTo!=N.display.reportedViewTo)&&(U.signal(N,"viewportChange",N,N.display.viewFrom,N.display.viewTo),N.display.reportedViewFrom=N.display.viewFrom,N.display.reportedViewTo=N.display.viewTo)}function Qs(N,U){var ne=new Ns(N,U);if(ds(N,ne)){Ai(N),ks(N,ne);var se=lo(N);sn(N),Lo(N,se),Us(N,se),ne.finish()}}function tl(N,U,ne){var se=N.display,ge=N.options.lineNumbers,ze=se.lineDiv,Ct=ze.firstChild;function Zt(la){var Ta=la.nextSibling;return a&&g&&N.display.currentWheelTarget==la?la.style.display="none":la.parentNode.removeChild(la),Ta}for(var yr=se.view,Tr=se.viewFrom,Pn=0;Pn<yr.length;Pn++){var $n=yr[Pn];if(!$n.hidden)if(!$n.node||$n.node.parentNode!=ze){var Si=_r(N,$n,Tr,ne);ze.insertBefore(Si,Ct)}else{for(;Ct!=$n.node;)Ct=Zt(Ct);var Ti=ge&&U!=null&&U<=Tr&&$n.lineNumber;$n.changes&&(G($n.changes,"gutter")>-1&&(Ti=!1),Sn(N,$n,Tr,ne)),Ti&&(w($n.lineNumber),$n.lineNumber.appendChild(document.createTextNode(ni(N.options,Tr)))),Ct=$n.node.nextSibling}Tr+=$n.size}for(;Ct;)Ct=Zt(Ct)}function xs(N){var U=N.gutters.offsetWidth;N.sizer.style.marginLeft=U+"px"}function Us(N,U){N.display.sizer.style.minHeight=U.docHeight+"px",N.display.heightForcer.style.top=U.docHeight+"px",N.display.gutters.style.height=U.docHeight+N.display.barHeight+yi(N)+"px"}function al(N){var U=N.display,ne=U.view;if(!U.alignWidgets&&(!U.gutters.firstChild||!N.options.fixedGutter))return;for(var se=xo(U)-U.scroller.scrollLeft+N.doc.scrollLeft,ge=U.gutters.offsetWidth,ze=se+"px",Ct=0;Ct<ne.length;Ct++)if(!ne[Ct].hidden){N.options.fixedGutter&&(ne[Ct].gutter&&(ne[Ct].gutter.style.left=ze),ne[Ct].gutterBackground&&(ne[Ct].gutterBackground.style.left=ze));var Zt=ne[Ct].alignable;if(Zt)for(var yr=0;yr<Zt.length;yr++)Zt[yr].style.left=ze}N.options.fixedGutter&&(U.gutters.style.left=se+ge+"px")}function Js(N){if(!N.options.lineNumbers)return!1;var U=N.doc,ne=ni(N.options,U.first+U.size-1),se=N.display;if(ne.length!=se.lineNumChars){var ge=se.measure.appendChild(I("div",[I("div",ne)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ze=ge.firstChild.offsetWidth,Ct=ge.offsetWidth-ze;return se.lineGutter.style.width="",se.lineNumInnerWidth=Math.max(ze,se.lineGutter.offsetWidth-Ct)+1,se.lineNumWidth=se.lineNumInnerWidth+Ct,se.lineNumChars=se.lineNumInnerWidth?ne.length:-1,se.lineGutter.style.width=se.lineNumWidth+"px",xs(N.display),!0}return!1}function Vo(N,U){for(var ne=[],se=!1,ge=0;ge<N.length;ge++){var ze=N[ge],Ct=null;if(typeof ze!="string"&&(Ct=ze.style,ze=ze.className),ze=="CodeMirror-linenumbers")if(U)se=!0;else continue;ne.push({className:ze,style:Ct})}return U&&!se&&ne.push({className:"CodeMirror-linenumbers",style:null}),ne}function No(N){var U=N.gutters,ne=N.gutterSpecs;w(U),N.lineGutter=null;for(var se=0;se<ne.length;++se){var ge=ne[se],ze=ge.className,Ct=ge.style,Zt=U.appendChild(I("div",null,"CodeMirror-gutter "+ze));Ct&&(Zt.style.cssText=Ct),ze=="CodeMirror-linenumbers"&&(N.lineGutter=Zt,Zt.style.width=(N.lineNumWidth||1)+"px")}U.style.display=ne.length?"":"none",xs(N)}function fs(N){No(N.display),Ha(N),al(N)}function Ds(N,U,ne,se){var ge=this;this.input=ne,ge.scrollbarFiller=I("div",null,"CodeMirror-scrollbar-filler"),ge.scrollbarFiller.setAttribute("cm-not-content","true"),ge.gutterFiller=I("div",null,"CodeMirror-gutter-filler"),ge.gutterFiller.setAttribute("cm-not-content","true"),ge.lineDiv=R("div",null,"CodeMirror-code"),ge.selectionDiv=I("div",null,null,"position: relative; z-index: 1"),ge.cursorDiv=I("div",null,"CodeMirror-cursors"),ge.measure=I("div",null,"CodeMirror-measure"),ge.lineMeasure=I("div",null,"CodeMirror-measure"),ge.lineSpace=R("div",[ge.measure,ge.lineMeasure,ge.selectionDiv,ge.cursorDiv,ge.lineDiv],null,"position: relative; outline: none");var ze=R("div",[ge.lineSpace],"CodeMirror-lines");ge.mover=I("div",[ze],null,"position: relative"),ge.sizer=I("div",[ge.mover],"CodeMirror-sizer"),ge.sizerWidth=null,ge.heightForcer=I("div",null,null,"position: absolute; height: "+ee+"px; width: 1px;"),ge.gutters=I("div",null,"CodeMirror-gutters"),ge.lineGutter=null,ge.scroller=I("div",[ge.sizer,ge.heightForcer,ge.gutters],"CodeMirror-scroll"),ge.scroller.setAttribute("tabIndex","-1"),ge.wrapper=I("div",[ge.scrollbarFiller,ge.gutterFiller,ge.scroller],"CodeMirror"),h&&u<8&&(ge.gutters.style.zIndex=-1,ge.scroller.style.paddingRight=0),!a&&!(x&&d)&&(ge.scroller.draggable=!0),N&&(N.appendChild?N.appendChild(ge.wrapper):N(ge.wrapper)),ge.viewFrom=ge.viewTo=U.first,ge.reportedViewFrom=ge.reportedViewTo=U.first,ge.view=[],ge.renderedView=null,ge.externalMeasured=null,ge.viewOffset=0,ge.lastWrapHeight=ge.lastWrapWidth=0,ge.updateLineNumbers=null,ge.nativeBarWidth=ge.barHeight=ge.barWidth=0,ge.scrollbarsClipped=!1,ge.lineNumWidth=ge.lineNumInnerWidth=ge.lineNumChars=null,ge.alignWidgets=!1,ge.cachedCharWidth=ge.cachedTextHeight=ge.cachedPaddingH=null,ge.maxLine=null,ge.maxLineLength=0,ge.maxLineChanged=!1,ge.wheelDX=ge.wheelDY=ge.wheelStartX=ge.wheelStartY=null,ge.shift=!1,ge.selForContextMenu=null,ge.activeTouch=null,ge.gutterSpecs=Vo(se.gutters,se.lineNumbers),No(ge),ne.init(ge)}var go=0,Ft=null;h?Ft=-.53:x?Ft=15:t?Ft=-.7:e&&(Ft=-1/3);function er(N){var U=N.wheelDeltaX,ne=N.wheelDeltaY;return U==null&&N.detail&&N.axis==N.HORIZONTAL_AXIS&&(U=N.detail),ne==null&&N.detail&&N.axis==N.VERTICAL_AXIS?ne=N.detail:ne==null&&(ne=N.wheelDelta),{x:U,y:ne}}function Cn(N){var U=er(N);return U.x*=Ft,U.y*=Ft,U}function di(N,U){var ne=er(U),se=ne.x,ge=ne.y,ze=N.display,Ct=ze.scroller,Zt=Ct.scrollWidth>Ct.clientWidth,yr=Ct.scrollHeight>Ct.clientHeight;if(!(se&&Zt||ge&&yr))return;if(ge&&g&&a){e:for(var Tr=U.target,Pn=ze.view;Tr!=Ct;Tr=Tr.parentNode)for(var $n=0;$n<Pn.length;$n++)if(Pn[$n].node==Tr){N.display.currentWheelTarget=Tr;break e}}if(se&&!x&&!o&&Ft!=null){ge&&yr&&Ea(N,Math.max(0,Ct.scrollTop+ge*Ft)),Ka(N,Math.max(0,Ct.scrollLeft+se*Ft)),(!ge||ge&&yr)&&Xe(U),ze.wheelStartX=null;return}if(ge&&Ft!=null){var Si=ge*Ft,Ti=N.doc.scrollTop,la=Ti+ze.wrapper.clientHeight;Si<0?Ti=Math.max(0,Ti+Si-50):la=Math.min(N.doc.height,la+Si+50),Qs(N,{top:Ti,bottom:la})}go<20&&(ze.wheelStartX==null?(ze.wheelStartX=Ct.scrollLeft,ze.wheelStartY=Ct.scrollTop,ze.wheelDX=se,ze.wheelDY=ge,setTimeout(function(){if(ze.wheelStartX==null)return;var Ta=Ct.scrollLeft-ze.wheelStartX,Wa=Ct.scrollTop-ze.wheelStartY,ka=Wa&&ze.wheelDY&&Wa/ze.wheelDY||Ta&&ze.wheelDX&&Ta/ze.wheelDX;if(ze.wheelStartX=ze.wheelStartY=null,!ka)return;Ft=(Ft*go+ka)/(go+1),++go},200)):(ze.wheelDX+=se,ze.wheelDY+=ge))}var It=function(U,ne){this.ranges=U,this.primIndex=ne};It.prototype.primary=function(){return this.ranges[this.primIndex]},It.prototype.equals=function(N){if(N==this)return!0;if(N.primIndex!=this.primIndex||N.ranges.length!=this.ranges.length)return!1;for(var U=0;U<this.ranges.length;U++){var ne=this.ranges[U],se=N.ranges[U];if(!bt(ne.anchor,se.anchor)||!bt(ne.head,se.head))return!1}return!0},It.prototype.deepCopy=function(){for(var N=[],U=0;U<this.ranges.length;U++)N[U]=new ue(gr(this.ranges[U].anchor),gr(this.ranges[U].head));return new It(N,this.primIndex)},It.prototype.somethingSelected=function(){for(var N=0;N<this.ranges.length;N++)if(!this.ranges[N].empty())return!0;return!1},It.prototype.contains=function(N,U){U||(U=N);for(var ne=0;ne<this.ranges.length;ne++){var se=this.ranges[ne];if(Nt(U,se.from())>=0&&Nt(N,se.to())<=0)return ne}return-1};var ue=function(U,ne){this.anchor=U,this.head=ne};ue.prototype.from=function(){return Pt(this.anchor,this.head)},ue.prototype.to=function(){return Yt(this.anchor,this.head)},ue.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Se(N,U,ne){var se=N&&N.options.selectionsMayTouch,ge=U[ne];U.sort(function(Si,Ti){return Nt(Si.from(),Ti.from())}),ne=G(U,ge);for(var ze=1;ze<U.length;ze++){var Ct=U[ze],Zt=U[ze-1],yr=Nt(Zt.to(),Ct.from());if(se&&!Ct.empty()?yr>0:yr>=0){var Tr=Pt(Zt.from(),Ct.from()),Pn=Yt(Zt.to(),Ct.to()),$n=Zt.empty()?Ct.from()==Ct.head:Zt.from()==Zt.head;ze<=ne&&--ne,U.splice(--ze,2,new ue($n?Pn:Tr,$n?Tr:Pn))}}return new It(U,ne)}function _e(N,U){return new It([new ue(N,U||N)],0)}function Je(N){return N.text?ur(N.from.line+N.text.length-1,We(N.text).length+(N.text.length==1?N.from.ch:0)):N.to}function Lt(N,U){if(Nt(N,U.from)<0)return N;if(Nt(N,U.to)<=0)return Je(U);var ne=N.line+U.text.length-(U.to.line-U.from.line)-1,se=N.ch;return N.line==U.to.line&&(se+=Je(U).ch-U.to.ch),ur(ne,se)}function tr(N,U){for(var ne=[],se=0;se<N.sel.ranges.length;se++){var ge=N.sel.ranges[se];ne.push(new ue(Lt(ge.anchor,U),Lt(ge.head,U)))}return Se(N.cm,ne,N.sel.primIndex)}function Gr(N,U,ne){return N.line==U.line?ur(ne.line,N.ch-U.ch+ne.ch):ur(ne.line+(N.line-U.line),N.ch)}function cn(N,U,ne){for(var se=[],ge=ur(N.first,0),ze=ge,Ct=0;Ct<U.length;Ct++){var Zt=U[Ct],yr=Gr(Zt.from,ge,ze),Tr=Gr(Je(Zt),ge,ze);if(ge=Zt.to,ze=Tr,ne=="around"){var Pn=N.sel.ranges[Ct],$n=Nt(Pn.head,Pn.anchor)<0;se[Ct]=new ue($n?Tr:yr,$n?yr:Tr)}else se[Ct]=new ue(yr,yr)}return new It(se,N.sel.primIndex)}function _n(N){N.doc.mode=Ui(N.options,N.doc.modeOption),li(N)}function li(N){N.doc.iter(function(U){U.stateAfter&&(U.stateAfter=null),U.styles&&(U.styles=null)}),N.doc.modeFrontier=N.doc.highlightFrontier=N.doc.first,hs(N,100),N.state.modeGen++,N.curOp&&Ha(N)}function wi(N,U){return U.from.ch==0&&U.to.ch==0&&We(U.text)==""&&(!N.cm||N.cm.options.wholeLineUpdateBefore)}function mi(N,U,ne,se){function ge(Na){return ne?ne[Na]:null}function ze(Na,qa,ho){hn(Na,qa,ho,se),Or(Na,"change",Na,U)}function Ct(Na,qa){for(var ho=[],ns=Na;ns<qa;++ns)ho.push(new ci(Tr[ns],ge(ns),se));return ho}var Zt=U.from,yr=U.to,Tr=U.text,Pn=Be(N,Zt.line),$n=Be(N,yr.line),Si=We(Tr),Ti=ge(Tr.length-1),la=yr.line-Zt.line;if(U.full)N.insert(0,Ct(0,Tr.length)),N.remove(Tr.length,N.size-Tr.length);else if(wi(N,U)){var Ta=Ct(0,Tr.length-1);ze($n,$n.text,Ti),la&&N.remove(Zt.line,la),Ta.length&&N.insert(Zt.line,Ta)}else if(Pn==$n)if(Tr.length==1)ze(Pn,Pn.text.slice(0,Zt.ch)+Si+Pn.text.slice(yr.ch),Ti);else{var Wa=Ct(1,Tr.length-1);Wa.push(new ci(Si+Pn.text.slice(yr.ch),Ti,se)),ze(Pn,Pn.text.slice(0,Zt.ch)+Tr[0],ge(0)),N.insert(Zt.line+1,Wa)}else if(Tr.length==1)ze(Pn,Pn.text.slice(0,Zt.ch)+Tr[0]+$n.text.slice(yr.ch),ge(0)),N.remove(Zt.line+1,la);else{ze(Pn,Pn.text.slice(0,Zt.ch)+Tr[0],ge(0)),ze($n,Si+$n.text.slice(yr.ch),Ti);var ka=Ct(1,Tr.length-1);la>1&&N.remove(Zt.line+1,la-1),N.insert(Zt.line+1,ka)}Or(N,"change",N,U)}function Gi(N,U,ne){function se(ge,ze,Ct){if(ge.linked)for(var Zt=0;Zt<ge.linked.length;++Zt){var yr=ge.linked[Zt];if(yr.doc==ze)continue;var Tr=Ct&&yr.sharedHist;if(ne&&!Tr)continue;U(yr.doc,Tr),se(yr.doc,ge,Tr)}}se(N,null,!0)}function sa(N,U){if(U.cm)throw new Error("This document is already in use.");N.doc=U,U.cm=N,Ho(N),_n(N),Ua(N),N.options.lineWrapping||Ln(N),N.options.mode=U.modeOption,Ha(N)}function Ua(N){(N.doc.direction=="rtl"?X:T)(N.display.lineDiv,"CodeMirror-rtl")}function no(N){Eo(N,function(){Ua(N),Ha(N)})}function Wo(N){this.done=[],this.undone=[],this.undoDepth=Infinity,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=N||1}function Zo(N,U){var ne={from:gr(U.from),to:Je(U),text:nt(N,U.from,U.to)};return Ms(N,ne,U.from.line,U.to.line+1),Gi(N,function(se){return Ms(se,ne,U.from.line,U.to.line+1)},!0),ne}function Bo(N){for(;N.length;){var U=We(N);if(U.ranges)N.pop();else break}}function Es(N,U){if(U)return Bo(N.done),We(N.done);if(N.done.length&&!We(N.done).ranges)return We(N.done);if(N.done.length>1&&!N.done[N.done.length-2].ranges)return N.done.pop(),We(N.done)}function As(N,U,ne,se){var ge=N.history;ge.undone.length=0;var ze=+new Date,Ct,Zt;if((ge.lastOp==se||ge.lastOrigin==U.origin&&U.origin&&(U.origin.charAt(0)=="+"&&ge.lastModTime>ze-(N.cm?N.cm.options.historyEventDelay:500)||U.origin.charAt(0)=="*"))&&(Ct=Es(ge,ge.lastOp==se)))Zt=We(Ct.changes),Nt(U.from,U.to)==0&&Nt(U.from,Zt.to)==0?Zt.to=Je(U):Ct.changes.push(Zo(N,U));else{var yr=We(ge.done);for((!yr||!yr.ranges)&&vo(N.sel,ge.done),Ct={changes:[Zo(N,U)],generation:ge.generation},ge.done.push(Ct);ge.done.length>ge.undoDepth;)ge.done.shift(),ge.done[0].ranges||ge.done.shift()}ge.done.push(ne),ge.generation=++ge.maxGeneration,ge.lastModTime=ge.lastSelTime=ze,ge.lastOp=ge.lastSelOp=se,ge.lastOrigin=ge.lastSelOrigin=U.origin,Zt||Gt(N,"historyAdded")}function $o(N,U,ne,se){var ge=U.charAt(0);return ge=="*"||ge=="+"&&ne.ranges.length==se.ranges.length&&ne.somethingSelected()==se.somethingSelected()&&new Date-N.history.lastSelTime<=(N.cm?N.cm.options.historyEventDelay:500)}function Do(N,U,ne,se){var ge=N.history,ze=se&&se.origin;ne==ge.lastSelOp||ze&&ge.lastSelOrigin==ze&&(ge.lastModTime==ge.lastSelTime&&ge.lastOrigin==ze||$o(N,ze,We(ge.done),U))?ge.done[ge.done.length-1]=U:vo(U,ge.done),ge.lastSelTime=+new Date,ge.lastSelOrigin=ze,ge.lastSelOp=ne,se&&se.clearRedo!==!1&&Bo(ge.undone)}function vo(N,U){var ne=We(U);ne&&ne.ranges&&ne.equals(N)||U.push(N)}function Ms(N,U,ne,se){var ge=U["spans_"+N.id],ze=0;N.iter(Math.max(N.first,ne),Math.min(N.first+N.size,se),function(Ct){Ct.markedSpans&&((ge||(ge=U["spans_"+N.id]={}))[ze]=Ct.markedSpans),++ze})}function rl(N){if(!N)return null;for(var U,ne=0;ne<N.length;++ne)N[ne].marker.explicitlyCleared?U||(U=N.slice(0,ne)):U&&U.push(N[ne]);return U?U.length?U:null:N}function gs(N,U){var ne=U["spans_"+N.id];if(!ne)return null;for(var se=[],ge=0;ge<U.text.length;++ge)se.push(rl(ne[ge]));return se}function Ra(N,U){var ne=gs(N,U),se=Kn(N,U);if(!ne)return se;if(!se)return ne;for(var ge=0;ge<ne.length;++ge){var ze=ne[ge],Ct=se[ge];if(ze&&Ct){e:for(var Zt=0;Zt<Ct.length;++Zt){for(var yr=Ct[Zt],Tr=0;Tr<ze.length;++Tr)if(ze[Tr].marker==yr.marker)continue e;ze.push(yr)}}else Ct&&(ne[ge]=Ct)}return ne}function dl(N,U,ne){for(var se=[],ge=0;ge<N.length;++ge){var ze=N[ge];if(ze.ranges){se.push(ne?It.prototype.deepCopy.call(ze):ze);continue}var Ct=ze.changes,Zt=[];se.push({changes:Zt});for(var yr=0;yr<Ct.length;++yr){var Tr=Ct[yr],Pn=void 0;if(Zt.push({from:Tr.from,to:Tr.to,text:Tr.text}),U)for(var $n in Tr)(Pn=$n.match(/^spans_(\d+)$/))&&(G(U,Number(Pn[1]))>-1&&(We(Zt)[$n]=Tr[$n],delete Tr[$n]))}}return se}function fl(N,U,ne,se){if(se){var ge=N.anchor;if(ne){var ze=Nt(U,ge)<0;ze!=Nt(ne,ge)<0?(ge=U,U=ne):ze!=Nt(U,ne)<0&&(U=ne)}return new ue(ge,U)}else return new ue(ne||U,U)}function js(N,U,ne,se,ge){ge==null&&(ge=N.cm&&(N.cm.display.shift||N.extend)),Ts(N,new It([fl(N.sel.primary(),U,ne,ge)],0),se)}function _s(N,U,ne){for(var se=[],ge=N.cm&&(N.cm.display.shift||N.extend),ze=0;ze<N.sel.ranges.length;ze++)se[ze]=fl(N.sel.ranges[ze],U[ze],null,ge);var Ct=Se(N.cm,se,N.sel.primIndex);Ts(N,Ct,ne)}function Xs(N,U,ne,se){var ge=N.sel.ranges.slice(0);ge[U]=ne,Ts(N,Se(N.cm,ge,N.sel.primIndex),se)}function Ql(N,U,ne,se){Ts(N,_e(U,ne),se)}function Ul(N,U,ne){var se={ranges:U.ranges,update:function(ze){this.ranges=[];for(var Ct=0;Ct<ze.length;Ct++)this.ranges[Ct]=new ue(Rt(N,ze[Ct].anchor),Rt(N,ze[Ct].head))},origin:ne&&ne.origin};return Gt(N,"beforeSelectionChange",N,se),N.cm&&Gt(N.cm,"beforeSelectionChange",N.cm,se),se.ranges!=U.ranges?Se(N.cm,se.ranges,se.ranges.length-1):U}function wl(N,U,ne){var se=N.history.done,ge=We(se);ge&&ge.ranges?(se[se.length-1]=U,Ks(N,U,ne)):Ts(N,U,ne)}function Ts(N,U,ne){Ks(N,U,ne),Do(N,N.sel,N.cm?N.cm.curOp.id:NaN,ne)}function Ks(N,U,ne){(kt(N,"beforeSelectionChange")||N.cm&&kt(N.cm,"beforeSelectionChange"))&&(U=Ul(N,U,ne));var se=ne&&ne.bias||(Nt(U.primary().head,N.sel.primary().head)<0?-1:1);Tl(N,jo(N,U,se,!0)),!(ne&&ne.scroll===!1)&&N.cm&&Da(N.cm)}function Tl(N,U){if(U.equals(N.sel))return;N.sel=U,N.cm&&(N.cm.curOp.updateInput=1,N.cm.curOp.selectionChanged=!0,zt(N.cm)),Or(N,"cursorActivity",N)}function pl(N){Tl(N,jo(N,N.sel,null,!1))}function jo(N,U,ne,se){for(var ge,ze=0;ze<U.ranges.length;ze++){var Ct=U.ranges[ze],Zt=U.ranges.length==N.sel.ranges.length&&N.sel.ranges[ze],yr=qo(N,Ct.anchor,Zt&&Zt.anchor,ne,se),Tr=qo(N,Ct.head,Zt&&Zt.head,ne,se);(ge||yr!=Ct.anchor||Tr!=Ct.head)&&(ge||(ge=U.ranges.slice(0,ze)),ge[ze]=new ue(yr,Tr))}return ge?Se(N.cm,ge,U.primIndex):U}function yo(N,U,ne,se,ge){var ze=Be(N,U.line);if(ze.markedSpans)for(var Ct=0;Ct<ze.markedSpans.length;++Ct){var Zt=ze.markedSpans[Ct],yr=Zt.marker,Tr="selectLeft"in yr?!yr.selectLeft:yr.inclusiveLeft,Pn="selectRight"in yr?!yr.selectRight:yr.inclusiveRight;if((Zt.from==null||(Tr?Zt.from<=U.ch:Zt.from<U.ch))&&(Zt.to==null||(Pn?Zt.to>=U.ch:Zt.to>U.ch))){if(ge&&(Gt(yr,"beforeCursorEnter"),yr.explicitlyCleared))if(ze.markedSpans){--Ct;continue}else break;if(!yr.atomic)continue;if(ne){var $n=yr.find(se<0?1:-1),Si=void 0;if((se<0?Pn:Tr)&&($n=ps(N,$n,-se,$n&&$n.line==U.line?ze:null)),$n&&$n.line==U.line&&(Si=Nt($n,ne))&&(se<0?Si<0:Si>0))return yo(N,$n,U,se,ge)}var Ti=yr.find(se<0?-1:1);return(se<0?Tr:Pn)&&(Ti=ps(N,Ti,se,Ti.line==U.line?ze:null)),Ti?yo(N,Ti,U,se,ge):null}}return U}function qo(N,U,ne,se,ge){var ze=se||1,Ct=yo(N,U,ne,ze,ge)||!ge&&yo(N,U,ne,ze,!0)||yo(N,U,ne,-ze,ge)||!ge&&yo(N,U,ne,-ze,!0);return Ct||(N.cantEdit=!0,ur(N.first,0))}function ps(N,U,ne,se){return ne<0&&U.ch==0?U.line>N.first?Rt(N,ur(U.line-1)):null:ne>0&&U.ch==(se||Be(N,U.line)).text.length?U.line<N.first+N.size-1?ur(U.line+1,0):null:new ur(U.line,U.ch+ne)}function Os(N){N.setSelection(ur(N.firstLine(),0),ur(N.lastLine()),be)}function es(N,U,ne){var se={canceled:!1,from:U.from,to:U.to,text:U.text,origin:U.origin,cancel:function(){return se.canceled=!0}};return ne&&(se.update=function(ge,ze,Ct,Zt){ge&&(se.from=Rt(N,ge)),ze&&(se.to=Rt(N,ze)),Ct&&(se.text=Ct),Zt!==void 0&&(se.origin=Zt)}),Gt(N,"beforeChange",N,se),N.cm&&Gt(N.cm,"beforeChange",N.cm,se),se.canceled?(N.cm&&(N.cm.curOp.updateInput=2),null):{from:se.from,to:se.to,text:se.text,origin:se.origin}}function Is(N,U,ne){if(N.cm){if(!N.cm.curOp)return zo(N.cm,Is)(N,U,ne);if(N.cm.state.suppressEdits)return}if((kt(N,"beforeChange")||N.cm&&kt(N.cm,"beforeChange"))&&(U=es(N,U,!0),!U))return;var se=rt&&!ne&&Rn(N,U.from,U.to);if(se)for(var ge=se.length-1;ge>=0;--ge)Ps(N,{from:se[ge].from,to:se[ge].to,text:ge?[""]:U.text,origin:U.origin});else Ps(N,U)}function Ps(N,U){if(U.text.length==1&&U.text[0]==""&&Nt(U.from,U.to)==0)return;var ne=tr(N,U);As(N,U,ne,N.cm?N.cm.curOp.id:NaN),_l(N,U,ne,Kn(N,U));var se=[];Gi(N,function(ge,ze){!ze&&G(se,ge.history)==-1&&(ol(ge.history,U),se.push(ge.history)),_l(ge,U,null,Kn(ge,U))})}function ml(N,U,ne){var se=N.cm&&N.cm.state.suppressEdits;if(se&&!ne)return;for(var ge=N.history,ze,Ct=N.sel,Zt=U=="undo"?ge.done:ge.undone,yr=U=="undo"?ge.undone:ge.done,Tr=0;Tr<Zt.length&&!(ze=Zt[Tr],ne?ze.ranges&&!ze.equals(N.sel):!ze.ranges);Tr++);if(Tr==Zt.length)return;for(ge.lastOrigin=ge.lastSelOrigin=null;;)if(ze=Zt.pop(),ze.ranges){if(vo(ze,yr),ne&&!ze.equals(N.sel)){Ts(N,ze,{clearRedo:!1});return}Ct=ze}else if(se){Zt.push(ze);return}else break;var Pn=[];vo(Ct,yr),yr.push({changes:Pn,generation:ge.generation}),ge.generation=ze.generation||++ge.maxGeneration;for(var $n=kt(N,"beforeChange")||N.cm&&kt(N.cm,"beforeChange"),Si=function(Wa){var ka=ze.changes[Wa];if(ka.origin=U,$n&&!es(N,ka,!1))return Zt.length=0,{};Pn.push(Zo(N,ka));var Na=Wa?tr(N,ka):We(Zt);_l(N,ka,Na,Ra(N,ka)),!Wa&&N.cm&&N.cm.scrollIntoView({from:ka.from,to:Je(ka)});var qa=[];Gi(N,function(ho,ns){!ns&&G(qa,ho.history)==-1&&(ol(ho.history,ka),qa.push(ho.history)),_l(ho,ka,null,Ra(ho,ka))})},Ti=ze.changes.length-1;Ti>=0;--Ti){var la=Si(Ti);if(la)return la.v}}function Rl(N,U){if(U==0)return;if(N.first+=U,N.sel=new It(ot(N.sel.ranges,function(ge){return new ue(ur(ge.anchor.line+U,ge.anchor.ch),ur(ge.head.line+U,ge.head.ch))}),N.sel.primIndex),N.cm){Ha(N.cm,N.first,N.first-U,U);for(var ne=N.cm.display,se=ne.viewFrom;se<ne.viewTo;se++)pt(N.cm,se,"gutter")}}function _l(N,U,ne,se){if(N.cm&&!N.cm.curOp)return zo(N.cm,_l)(N,U,ne,se);if(U.to.line<N.first){Rl(N,U.text.length-1-(U.to.line-U.from.line));return}if(U.from.line>N.lastLine())return;if(U.from.line<N.first){var ge=U.text.length-1-(N.first-U.from.line);Rl(N,ge),U={from:ur(N.first,0),to:ur(U.to.line+ge,U.to.ch),text:[We(U.text)],origin:U.origin}}var ze=N.lastLine();U.to.line>ze&&(U={from:U.from,to:ur(ze,Be(N,ze).text.length),text:[U.text[0]],origin:U.origin}),U.removed=nt(N,U.from,U.to),ne||(ne=tr(N,U)),N.cm?Bl(N.cm,U,se):mi(N,U,se),Ks(N,ne,be),N.cantEdit&&qo(N,ur(N.firstLine(),0))&&(N.cantEdit=!1)}function Bl(N,U,ne){var se=N.doc,ge=N.display,ze=U.from,Ct=U.to,Zt=!1,yr=ze.line;N.options.lineWrapping||(yr=kr(Dt(Be(se,ze.line))),se.iter(yr,Ct.line+1,function(Ti){if(Ti==ge.maxLine)return Zt=!0,!0})),se.sel.contains(U.from,U.to)>-1&&zt(N),mi(se,U,ne,rs(N)),N.options.lineWrapping||(se.iter(yr,ze.line+U.text.length,function(Ti){var la=Hn(Ti);la>ge.maxLineLength&&(ge.maxLine=Ti,ge.maxLineLength=la,ge.maxLineChanged=!0,Zt=!1)}),Zt&&(N.curOp.updateMaxLine=!0)),Ye(se,ze.line),hs(N,400);var Tr=U.text.length-(Ct.line-ze.line)-1;U.full?Ha(N):ze.line==Ct.line&&U.text.length==1&&!wi(N.doc,U)?pt(N,ze.line,"text"):Ha(N,ze.line,Ct.line+1,Tr);var Pn=kt(N,"changes"),$n=kt(N,"change");if($n||Pn){var Si={from:ze,to:Ct,text:U.text,removed:U.removed,origin:U.origin};$n&&Or(N,"change",N,Si),Pn&&(N.curOp.changeObjs||(N.curOp.changeObjs=[])).push(Si)}N.display.selForContextMenu=null}function jl(N,U,ne,se,ge){var ze;se||(se=ne),Nt(se,ne)<0&&(ze=[se,ne],ne=ze[0],se=ze[1]),typeof U=="string"&&(U=N.splitLines(U)),Is(N,{from:ne,to:se,text:U,origin:ge})}function kl(N,U,ne,se){ne<N.line?N.line+=se:U<N.line&&(N.line=U,N.ch=0)}function Xl(N,U,ne,se){for(var ge=0;ge<N.length;++ge){var ze=N[ge],Ct=!0;if(ze.ranges){ze.copied||(ze=N[ge]=ze.deepCopy(),ze.copied=!0);for(var Zt=0;Zt<ze.ranges.length;Zt++)kl(ze.ranges[Zt].anchor,U,ne,se),kl(ze.ranges[Zt].head,U,ne,se);continue}for(var yr=0;yr<ze.changes.length;++yr){var Tr=ze.changes[yr];if(ne<Tr.from.line)Tr.from=ur(Tr.from.line+se,Tr.from.ch),Tr.to=ur(Tr.to.line+se,Tr.to.ch);else if(U<=Tr.to.line){Ct=!1;break}}Ct||(N.splice(0,ge+1),ge=0)}}function ol(N,U){var ne=U.from.line,se=U.to.line,ge=U.text.length-(se-ne)-1;Xl(N.done,ne,se,ge),Xl(N.undone,ne,se,ge)}function Ys(N,U,ne,se){var ge=U,ze=U;return typeof U=="number"?ze=Be(N,rr(N,U)):ge=kr(U),ge==null?null:(se(ze,ge)&&N.cm&&pt(N.cm,ge,ne),ze)}function sl(N){this.lines=N,this.parent=null;for(var U=0,ne=0;ne<N.length;++ne)N[ne].parent=this,U+=N[ne].height;this.height=U}sl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(U,ne){for(var se=U,ge=U+ne;se<ge;++se){var ze=this.lines[se];this.height-=ze.height,Fr(ze),Or(ze,"delete")}this.lines.splice(U,ne)},collapse:function(U){U.push.apply(U,this.lines)},insertInner:function(U,ne,se){this.height+=se,this.lines=this.lines.slice(0,U).concat(ne).concat(this.lines.slice(U));for(var ge=0;ge<ne.length;++ge)ne[ge].parent=this},iterN:function(U,ne,se){for(var ge=U+ne;U<ge;++U)if(se(this.lines[U]))return!0}};function nl(N){this.children=N;for(var U=0,ne=0,se=0;se<N.length;++se){var ge=N[se];U+=ge.chunkSize(),ne+=ge.height,ge.parent=this}this.size=U,this.height=ne,this.parent=null}nl.prototype={chunkSize:function(){return this.size},removeInner:function(U,ne){this.size-=ne;for(var se=0;se<this.children.length;++se){var ge=this.children[se],ze=ge.chunkSize();if(U<ze){var Ct=Math.min(ne,ze-U),Zt=ge.height;if(ge.removeInner(U,Ct),this.height-=Zt-ge.height,ze==Ct&&(this.children.splice(se--,1),ge.parent=null),(ne-=Ct)==0)break;U=0}else U-=ze}if(this.size-ne<25&&(this.children.length>1||!(this.children[0]instanceof sl))){var yr=[];this.collapse(yr),this.children=[new sl(yr)],this.children[0].parent=this}},collapse:function(U){for(var ne=0;ne<this.children.length;++ne)this.children[ne].collapse(U)},insertInner:function(U,ne,se){this.size+=ne.length,this.height+=se;for(var ge=0;ge<this.children.length;++ge){var ze=this.children[ge],Ct=ze.chunkSize();if(U<=Ct){if(ze.insertInner(U,ne,se),ze.lines&&ze.lines.length>50){for(var Zt=ze.lines.length%25+25,yr=Zt;yr<ze.lines.length;){var Tr=new sl(ze.lines.slice(yr,yr+=25));ze.height-=Tr.height,this.children.splice(++ge,0,Tr),Tr.parent=this}ze.lines=ze.lines.slice(0,Zt),this.maybeSpill()}break}U-=Ct}},maybeSpill:function(){if(this.children.length<=10)return;var U=this;do{var ne=U.children.splice(U.children.length-5,5),se=new nl(ne);if(U.parent){U.size-=se.size,U.height-=se.height;var ze=G(U.parent.children,U);U.parent.children.splice(ze+1,0,se)}else{var ge=new nl(U.children);ge.parent=U,U.children=[ge,se],U=ge}se.parent=U.parent}while(U.children.length>10);U.parent.maybeSpill()},iterN:function(U,ne,se){for(var ge=0;ge<this.children.length;++ge){var ze=this.children[ge],Ct=ze.chunkSize();if(U<Ct){var Zt=Math.min(ne,Ct-U);if(ze.iterN(U,Zt,se))return!0;if((ne-=Zt)==0)break;U=0}else U-=Ct}}};var xl=function(U,ne,se){if(se)for(var ge in se)se.hasOwnProperty(ge)&&(this[ge]=se[ge]);this.doc=U,this.node=ne};xl.prototype.clear=function(){var N=this.doc.cm,U=this.line.widgets,ne=this.line,se=kr(ne);if(se==null||!U)return;for(var ge=0;ge<U.length;++ge)U[ge]==this&&U.splice(ge--,1);U.length||(ne.widgets=null);var ze=vn(this);ar(ne,Math.max(0,ne.height-ze)),N&&(Eo(N,function(){Ml(N,ne,-ze),pt(N,se,"widget")}),Or(N,"lineWidgetCleared",N,this,se))},xl.prototype.changed=function(){var N=this,U=this.height,ne=this.doc.cm,se=this.line;this.height=null;var ge=vn(this)-U;if(!ge)return;pr(this.doc,se)||ar(se,se.height+ge),ne&&Eo(ne,function(){ne.curOp.forceUpdate=!0,Ml(ne,se,ge),Or(ne,"lineWidgetChanged",ne,N,kr(se))})},Vt(xl);function Ml(N,U,ne){Nr(U)<(N.curOp&&N.curOp.scrollTop||N.doc.scrollTop)&&wa(N,ne)}function Wl(N,U,ne,se){var ge=new xl(N,ne,se),ze=N.cm;return ze&&ge.noHScroll&&(ze.display.alignWidgets=!0),Ys(N,U,"widget",function(Ct){var Zt=Ct.widgets||(Ct.widgets=[]);if(ge.insertAt==null?Zt.push(ge):Zt.splice(Math.min(Zt.length-1,Math.max(0,ge.insertAt)),0,ge),ge.line=Ct,ze&&!pr(N,Ct)){var yr=Nr(Ct)<N.scrollTop;ar(Ct,Ct.height+vn(ge)),yr&&wa(ze,ge.height),ze.curOp.forceUpdate=!0}return!0}),ze&&Or(ze,"lineWidgetAdded",ze,ge,typeof U=="number"?U:kr(U)),ge}var au=0,Nl=function(U,ne){this.lines=[],this.type=ne,this.doc=U,this.id=++au};Nl.prototype.clear=function(){if(this.explicitlyCleared)return;var N=this.doc.cm,U=N&&!N.curOp;if(U&&as(N),kt(this,"clear")){var ne=this.find();ne&&Or(this,"clear",ne.from,ne.to)}for(var se=null,ge=null,ze=0;ze<this.lines.length;++ze){var Ct=this.lines[ze],Zt=hr(Ct.markedSpans,this);N&&!this.collapsed?pt(N,kr(Ct),"text"):N&&(Zt.to!=null&&(ge=kr(Ct)),Zt.from!=null&&(se=kr(Ct))),Ct.markedSpans=Qr(Ct.markedSpans,Zt),Zt.from==null&&this.collapsed&&!pr(this.doc,Ct)&&N&&ar(Ct,Oo(N.display))}if(N&&this.collapsed&&!N.options.lineWrapping)for(var yr=0;yr<this.lines.length;++yr){var Tr=Dt(this.lines[yr]),Pn=Hn(Tr);Pn>N.display.maxLineLength&&(N.display.maxLine=Tr,N.display.maxLineLength=Pn,N.display.maxLineChanged=!0)}se!=null&&N&&this.collapsed&&Ha(N,se,ge+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,N&&pl(N.doc)),N&&Or(N,"markerCleared",N,this,se,ge),U&&co(N),this.parent&&this.parent.clear()},Nl.prototype.find=function(N,U){N==null&&this.type=="bookmark"&&(N=1);for(var ne,se,ge=0;ge<this.lines.length;++ge){var ze=this.lines[ge],Ct=hr(ze.markedSpans,this);if(Ct.from!=null&&(ne=ur(U?ze:kr(ze),Ct.from),N==-1))return ne;if(Ct.to!=null&&(se=ur(U?ze:kr(ze),Ct.to),N==1))return se}return ne&&{from:ne,to:se}},Nl.prototype.changed=function(){var N=this,U=this.find(-1,!0),ne=this,se=this.doc.cm;if(!U||!se)return;Eo(se,function(){var ge=U.line,ze=kr(U.line),Ct=Yi(se,ze);if(Ct&&(Oa(Ct),se.curOp.selectionChanged=se.curOp.forceUpdate=!0),se.curOp.updateMaxLine=!0,!pr(ne.doc,ge)&&ne.height!=null){var Zt=ne.height;ne.height=null;var yr=vn(ne)-Zt;yr&&ar(ge,ge.height+yr)}Or(se,"markerChanged",se,N)})},Nl.prototype.attachLine=function(N){if(!this.lines.length&&this.doc.cm){var U=this.doc.cm.curOp;(!U.maybeHiddenMarkers||G(U.maybeHiddenMarkers,this)==-1)&&(U.maybeUnhiddenMarkers||(U.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(N)},Nl.prototype.detachLine=function(N){if(this.lines.splice(G(this.lines,N),1),!this.lines.length&&this.doc.cm){var U=this.doc.cm.curOp;(U.maybeHiddenMarkers||(U.maybeHiddenMarkers=[])).push(this)}},Vt(Nl);function $l(N,U,ne,se,ge){if(se&&se.shared)return Iu(N,U,ne,se,ge);if(N.cm&&!N.cm.curOp)return zo(N.cm,$l)(N,U,ne,se,ge);var ze=new Nl(N,ge),Ct=Nt(U,ne);if(se&&z(se,ze,!1),Ct>0||Ct==0&&ze.clearWhenEmpty!==!1)return ze;if(ze.replacedWith&&(ze.collapsed=!0,ze.widgetNode=R("span",[ze.replacedWith],"CodeMirror-widget"),se.handleMouseEvents||ze.widgetNode.setAttribute("cm-ignore-events","true"),se.insertLeft&&(ze.widgetNode.insertLeft=!0)),ze.collapsed){if(Tt(N,U.line,U,ne,ze)||U.line!=ne.line&&Tt(N,ne.line,U,ne,ze))throw new Error("Inserting collapsed marker partially overlapping an existing one");St()}ze.addToHistory&&As(N,{from:U,to:ne,origin:"markText"},N.sel,NaN);var Zt=U.line,yr=N.cm,Tr;if(N.iter(Zt,ne.line+1,function($n){yr&&ze.collapsed&&!yr.options.lineWrapping&&Dt($n)==yr.display.maxLine&&(Tr=!0),ze.collapsed&&Zt!=U.line&&ar($n,0),Xr($n,new gt(ze,Zt==U.line?U.ch:null,Zt==ne.line?ne.ch:null)),++Zt}),ze.collapsed&&N.iter(U.line,ne.line+1,function($n){pr(N,$n)&&ar($n,0)}),ze.clearOnEnter&&Ke(ze,"beforeCursorEnter",function(){return ze.clear()}),ze.readOnly&&(at(),(N.history.done.length||N.history.undone.length)&&N.clearHistory()),ze.collapsed&&(ze.id=++au,ze.atomic=!0),yr){if(Tr&&(yr.curOp.updateMaxLine=!0),ze.collapsed)Ha(yr,U.line,ne.line+1);else if(ze.className||ze.startStyle||ze.endStyle||ze.css||ze.attributes||ze.title)for(var Pn=U.line;Pn<=ne.line;Pn++)pt(yr,Pn,"text");ze.atomic&&pl(yr.doc),Or(yr,"markerAdded",yr,ze)}return ze}var tu=function(U,ne){this.markers=U,this.primary=ne;for(var se=0;se<U.length;++se)U[se].parent=this};tu.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var N=0;N<this.markers.length;++N)this.markers[N].clear();Or(this,"clear")},tu.prototype.find=function(N,U){return this.primary.find(N,U)},Vt(tu);function Iu(N,U,ne,se,ge){se=z(se),se.shared=!1;var ze=[$l(N,U,ne,se,ge)],Ct=ze[0],Zt=se.widgetNode;return Gi(N,function(yr){Zt&&(se.widgetNode=Zt.cloneNode(!0)),ze.push($l(yr,Rt(yr,U),Rt(yr,ne),se,ge));for(var Tr=0;Tr<yr.linked.length;++Tr)if(yr.linked[Tr].isParent)return;Ct=We(ze)}),new tu(ze,Ct)}function pu(N){return N.findMarks(ur(N.first,0),N.clipPos(ur(N.lastLine())),function(U){return U.parent})}function mu(N,U){for(var ne=0;ne<U.length;ne++){var se=U[ne],ge=se.find(),ze=N.clipPos(ge.from),Ct=N.clipPos(ge.to);if(Nt(ze,Ct)){var Zt=$l(N,ze,Ct,se.primary,se.primary.type);se.markers.push(Zt),Zt.parent=se}}}function gu(N){for(var U=function(ge){var ze=N[ge],Ct=[ze.primary.doc];Gi(ze.primary.doc,function(Tr){return Ct.push(Tr)});for(var Zt=0;Zt<ze.markers.length;Zt++){var yr=ze.markers[Zt];G(Ct,yr.doc)==-1&&(yr.parent=null,ze.markers.splice(Zt--,1))}},ne=0;ne<N.length;ne++)U(ne)}var ql=0,Cl=function N(U,ne,se,ge,ze){if(!(this instanceof N))return new N(U,ne,se,ge,ze);se==null&&(se=0),nl.call(this,[new sl([new ci("",null)])]),this.first=se,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=se;var Ct=ur(se,0);this.sel=_e(Ct),this.history=new Wo(null),this.id=++ql,this.modeOption=ne,this.lineSep=ge,this.direction=ze=="rtl"?"rtl":"ltr",this.extend=!1,typeof U=="string"&&(U=this.splitLines(U)),mi(this,{from:Ct,to:Ct,text:U}),Ts(this,_e(Ct),be)};Cl.prototype=st(nl.prototype,{constructor:Cl,iter:function(U,ne,se){se?this.iterN(U-this.first,ne-U,se):this.iterN(this.first,this.first+this.size,U)},insert:function(U,ne){for(var se=0,ge=0;ge<ne.length;++ge)se+=ne[ge].height;this.insertInner(U-this.first,ne,se)},remove:function(U,ne){this.removeInner(U-this.first,ne)},getValue:function(U){var ne=vt(this,this.first,this.first+this.size);return U===!1?ne:ne.join(U||this.lineSeparator())},setValue:ms(function(N){var U=ur(this.first,0),ne=this.first+this.size-1;Is(this,{from:U,to:ur(ne,Be(this,ne).text.length),text:this.splitLines(N),origin:"setValue",full:!0},!0),this.cm&&ja(this.cm,0,0),Ts(this,_e(U),be)}),replaceRange:function(U,ne,se,ge){ne=Rt(this,ne),se=se?Rt(this,se):ne,jl(this,U,ne,se,ge)},getRange:function(U,ne,se){var ge=nt(this,Rt(this,U),Rt(this,ne));return se===!1?ge:ge.join(se||this.lineSeparator())},getLine:function(U){var ne=this.getLineHandle(U);return ne&&ne.text},getLineHandle:function(U){if(Zn(this,U))return Be(this,U)},getLineNumber:function(U){return kr(U)},getLineHandleVisualStart:function(U){return typeof U=="number"&&(U=Be(this,U)),Dt(U)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(U){return Rt(this,U)},getCursor:function(U){var ne=this.sel.primary(),se;return U==null||U=="head"?se=ne.head:U=="anchor"?se=ne.anchor:U=="end"||U=="to"||U===!1?se=ne.to():se=ne.from(),se},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ms(function(N,U,ne){Ql(this,Rt(this,typeof N=="number"?ur(N,U||0):N),null,ne)}),setSelection:ms(function(N,U,ne){Ql(this,Rt(this,N),Rt(this,U||N),ne)}),extendSelection:ms(function(N,U,ne){js(this,Rt(this,N),U&&Rt(this,U),ne)}),extendSelections:ms(function(N,U){_s(this,Yr(this,N),U)}),extendSelectionsBy:ms(function(N,U){var ne=ot(this.sel.ranges,N);_s(this,Yr(this,ne),U)}),setSelections:ms(function(N,U,ne){if(!N.length)return;for(var se=[],ge=0;ge<N.length;ge++)se[ge]=new ue(Rt(this,N[ge].anchor),Rt(this,N[ge].head));U==null&&(U=Math.min(N.length-1,this.sel.primIndex)),Ts(this,Se(this.cm,se,U),ne)}),addSelection:ms(function(N,U,ne){var se=this.sel.ranges.slice(0);se.push(new ue(Rt(this,N),Rt(this,U||N))),Ts(this,Se(this.cm,se,se.length-1),ne)}),getSelection:function(U){for(var ne=this.sel.ranges,se,ge=0;ge<ne.length;ge++){var ze=nt(this,ne[ge].from(),ne[ge].to());se=se?se.concat(ze):ze}return U===!1?se:se.join(U||this.lineSeparator())},getSelections:function(U){for(var ne=[],se=this.sel.ranges,ge=0;ge<se.length;ge++){var ze=nt(this,se[ge].from(),se[ge].to());U!==!1&&(ze=ze.join(U||this.lineSeparator())),ne[ge]=ze}return ne},replaceSelection:function(U,ne,se){for(var ge=[],ze=0;ze<this.sel.ranges.length;ze++)ge[ze]=U;this.replaceSelections(ge,ne,se||"+input")},replaceSelections:ms(function(N,U,ne){for(var se=[],ge=this.sel,ze=0;ze<ge.ranges.length;ze++){var Ct=ge.ranges[ze];se[ze]={from:Ct.from(),to:Ct.to(),text:this.splitLines(N[ze]),origin:ne}}for(var Zt=U&&U!="end"&&cn(this,se,U),yr=se.length-1;yr>=0;yr--)Is(this,se[yr]);Zt?wl(this,Zt):this.cm&&Da(this.cm)}),undo:ms(function(){ml(this,"undo")}),redo:ms(function(){ml(this,"redo")}),undoSelection:ms(function(){ml(this,"undo",!0)}),redoSelection:ms(function(){ml(this,"redo",!0)}),setExtending:function(U){this.extend=U},getExtending:function(){return this.extend},historySize:function(){for(var U=this.history,ne=0,se=0,ge=0;ge<U.done.length;ge++)U.done[ge].ranges||++ne;for(var ze=0;ze<U.undone.length;ze++)U.undone[ze].ranges||++se;return{undo:ne,redo:se}},clearHistory:function(){var U=this;this.history=new Wo(this.history.maxGeneration),Gi(this,function(ne){return ne.history=U.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(U){return U&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(U){return this.history.generation==(U||this.cleanGeneration)},getHistory:function(){return{done:dl(this.history.done),undone:dl(this.history.undone)}},setHistory:function(U){var ne=this.history=new Wo(this.history.maxGeneration);ne.done=dl(U.done.slice(0),null,!0),ne.undone=dl(U.undone.slice(0),null,!0)},setGutterMarker:ms(function(N,U,ne){return Ys(this,N,"gutter",function(se){var ge=se.gutterMarkers||(se.gutterMarkers={});return ge[U]=ne,!ne&&$(ge)&&(se.gutterMarkers=null),!0})}),clearGutter:ms(function(N){var U=this;this.iter(function(ne){ne.gutterMarkers&&ne.gutterMarkers[N]&&Ys(U,ne,"gutter",function(){return ne.gutterMarkers[N]=null,$(ne.gutterMarkers)&&(ne.gutterMarkers=null),!0})})}),lineInfo:function(U){var ne;if(typeof U=="number"){if(!Zn(this,U))return null;if(ne=U,U=Be(this,U),!U)return null}else if(ne=kr(U),ne==null)return null;return{line:ne,handle:U,text:U.text,gutterMarkers:U.gutterMarkers,textClass:U.textClass,bgClass:U.bgClass,wrapClass:U.wrapClass,widgets:U.widgets}},addLineClass:ms(function(N,U,ne){return Ys(this,N,U=="gutter"?"gutter":"class",function(se){var ge=U=="text"?"textClass":U=="background"?"bgClass":U=="gutter"?"gutterClass":"wrapClass";if(!se[ge])se[ge]=ne;else{if(_(ne).test(se[ge]))return!1;se[ge]+=" "+ne}return!0})}),removeLineClass:ms(function(N,U,ne){return Ys(this,N,U=="gutter"?"gutter":"class",function(se){var ge=U=="text"?"textClass":U=="background"?"bgClass":U=="gutter"?"gutterClass":"wrapClass",ze=se[ge];if(ze)if(ne==null)se[ge]=null;else{var Ct=ze.match(_(ne));if(!Ct)return!1;var Zt=Ct.index+Ct[0].length;se[ge]=ze.slice(0,Ct.index)+(!Ct.index||Zt==ze.length?"":" ")+ze.slice(Zt)||null}else return!1;return!0})}),addLineWidget:ms(function(N,U,ne){return Wl(this,N,U,ne)}),removeLineWidget:function(U){U.clear()},markText:function(U,ne,se){return $l(this,Rt(this,U),Rt(this,ne),se,se&&se.type||"range")},setBookmark:function(U,ne){var se={replacedWith:ne&&(ne.nodeType==null?ne.widget:ne),insertLeft:ne&&ne.insertLeft,clearWhenEmpty:!1,shared:ne&&ne.shared,handleMouseEvents:ne&&ne.handleMouseEvents};return U=Rt(this,U),$l(this,U,U,se,"bookmark")},findMarksAt:function(U){U=Rt(this,U);var ne=[],se=Be(this,U.line).markedSpans;if(se)for(var ge=0;ge<se.length;++ge){var ze=se[ge];(ze.from==null||ze.from<=U.ch)&&(ze.to==null||ze.to>=U.ch)&&ne.push(ze.marker.parent||ze.marker)}return ne},findMarks:function(U,ne,se){U=Rt(this,U),ne=Rt(this,ne);var ge=[],ze=U.line;return this.iter(U.line,ne.line+1,function(Ct){var Zt=Ct.markedSpans;if(Zt)for(var yr=0;yr<Zt.length;yr++){var Tr=Zt[yr];!(Tr.to!=null&&ze==U.line&&U.ch>=Tr.to||Tr.from==null&&ze!=U.line||Tr.from!=null&&ze==ne.line&&Tr.from>=ne.ch)&&(!se||se(Tr.marker))&&ge.push(Tr.marker.parent||Tr.marker)}++ze}),ge},getAllMarks:function(){var U=[];return this.iter(function(ne){var se=ne.markedSpans;if(se)for(var ge=0;ge<se.length;++ge)se[ge].from!=null&&U.push(se[ge].marker)}),U},posFromIndex:function(U){var ne,se=this.first,ge=this.lineSeparator().length;return this.iter(function(ze){var Ct=ze.text.length+ge;if(Ct>U)return ne=U,!0;U-=Ct,++se}),Rt(this,ur(se,ne))},indexFromPos:function(U){U=Rt(this,U);var ne=U.ch;if(U.line<this.first||U.ch<0)return 0;var se=this.lineSeparator().length;return this.iter(this.first,U.line,function(ge){ne+=ge.text.length+se}),ne},copy:function(U){var ne=new Cl(vt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return ne.scrollTop=this.scrollTop,ne.scrollLeft=this.scrollLeft,ne.sel=this.sel,ne.extend=!1,U&&(ne.history.undoDepth=this.history.undoDepth,ne.setHistory(this.getHistory())),ne},linkedDoc:function(U){U||(U={});var ne=this.first,se=this.first+this.size;U.from!=null&&U.from>ne&&(ne=U.from),U.to!=null&&U.to<se&&(se=U.to);var ge=new Cl(vt(this,ne,se),U.mode||this.modeOption,ne,this.lineSep,this.direction);return U.sharedHist&&(ge.history=this.history),(this.linked||(this.linked=[])).push({doc:ge,sharedHist:U.sharedHist}),ge.linked=[{doc:this,isParent:!0,sharedHist:U.sharedHist}],mu(ge,pu(this)),ge},unlinkDoc:function(U){if(U instanceof Pr&&(U=U.doc),this.linked)for(var ne=0;ne<this.linked.length;++ne){var se=this.linked[ne];if(se.doc!=U)continue;this.linked.splice(ne,1),U.unlinkDoc(this),gu(pu(this));break}if(U.history==this.history){var ge=[U.id];Gi(U,function(ze){return ge.push(ze.id)},!0),U.history=new Wo(null),U.history.done=dl(this.history.done,ge),U.history.undone=dl(this.history.undone,ge)}},iterLinkedDocs:function(U){Gi(this,U)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(U){return this.lineSep?U.split(this.lineSep):fn(U)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:ms(function(N){if(N!="rtl"&&(N="ltr"),N==this.direction)return;this.direction=N,this.iter(function(U){return U.order=null}),this.cm&&no(this.cm)})}),Cl.prototype.eachLine=Cl.prototype.iter;var ll=0;function Hl(N){var U=this;if(vu(U),dr(U,N)||Qn(U.display,N))return;Xe(N),h&&(ll=+new Date);var ne=_o(U,N,!0),se=N.dataTransfer.files;if(!ne||U.isReadOnly())return;if(se&&se.length&&window.FileReader&&window.File)for(var ge=se.length,ze=Array(ge),Ct=0,Zt=function(){++Ct==ge&&zo(U,function(){ne=Rt(U.doc,ne);var la={from:ne,to:ne,text:U.doc.splitLines(ze.filter(function(Ta){return Ta!=null}).join(U.doc.lineSeparator())),origin:"paste"};Is(U.doc,la),wl(U.doc,_e(Rt(U.doc,ne),Rt(U.doc,Je(la))))})()},yr=function(la,Ta){if(U.options.allowDropFileTypes&&G(U.options.allowDropFileTypes,la.type)==-1){Zt();return}var Wa=new FileReader;Wa.onerror=function(){return Zt()},Wa.onload=function(){var ka=Wa.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ka)){Zt();return}ze[Ta]=ka,Zt()},Wa.readAsText(la)},Tr=0;Tr<se.length;Tr++)yr(se[Tr],Tr);else{if(U.state.draggingText&&U.doc.sel.contains(ne)>-1){U.state.draggingText(N),setTimeout(function(){return U.display.input.focus()},20);return}try{var Pn=N.dataTransfer.getData("Text");if(Pn){var $n;if(U.state.draggingText&&!U.state.draggingText.copy&&($n=U.listSelections()),Ks(U.doc,_e(ne,ne)),$n)for(var Si=0;Si<$n.length;++Si)jl(U.doc,"",$n[Si].anchor,$n[Si].head,"drag");U.replaceSelection(Pn,"around","paste"),U.display.input.focus()}}catch(Ti){}}}function Sl(N,U){if(h&&(!N.state.draggingText||+new Date-ll<100)){$e(U);return}if(dr(N,U)||Qn(N.display,U))return;if(U.dataTransfer.setData("Text",N.getSelection()),U.dataTransfer.effectAllowed="copyMove",U.dataTransfer.setDragImage&&!e){var ne=I("img",null,null,"position: fixed; left: 0; top: 0;");ne.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",o&&(ne.width=ne.height=1,N.display.wrapper.appendChild(ne),ne._top=ne.offsetTop),U.dataTransfer.setDragImage(ne,0,0),o&&ne.parentNode.removeChild(ne)}}function Su(N,U){var ne=_o(N,U);if(!ne)return;var se=document.createDocumentFragment();qn(N,ne,se),N.display.dragCursor||(N.display.dragCursor=I("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),N.display.lineSpace.insertBefore(N.display.dragCursor,N.display.cursorDiv)),O(N.display.dragCursor,se)}function vu(N){N.display.dragCursor&&(N.display.lineSpace.removeChild(N.display.dragCursor),N.display.dragCursor=null)}function Au(N){if(!document.getElementsByClassName)return;for(var U=document.getElementsByClassName("CodeMirror"),ne=[],se=0;se<U.length;se++){var ge=U[se].CodeMirror;ge&&ne.push(ge)}ne.length&&ne[0].operation(function(){for(var ze=0;ze<ne.length;ze++)N(ne[ze])})}var Ol=!1;function cu(){if(Ol)return;du(),Ol=!0}function du(){var N;Ke(window,"resize",function(){N==null&&(N=setTimeout(function(){N=null,Au(Lu)},100))}),Ke(window,"blur",function(){return Au(pi)})}function Lu(N){var U=N.display;U.cachedCharWidth=U.cachedTextHeight=U.cachedPaddingH=null,U.scrollbarsClipped=!1,N.setSize()}for(var zl={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ru=0;ru<10;ru++)zl[ru+48]=zl[ru+96]=String(ru);for(var ou=65;ou<=90;ou++)zl[ou]=String.fromCharCode(ou);for(var su=1;su<=12;su++)zl[su+111]=zl[su+63235]="F"+su;var Jl={};Jl.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Jl.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Jl.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Jl.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Jl.default=g?Jl.macDefault:Jl.pcDefault;function Du(N){var U=N.split(/-(?!$)/);N=U[U.length-1];for(var ne,se,ge,ze,Ct=0;Ct<U.length-1;Ct++){var Zt=U[Ct];if(/^(cmd|meta|m)$/i.test(Zt))ze=!0;else if(/^a(lt)?$/i.test(Zt))ne=!0;else if(/^(c|ctrl|control)$/i.test(Zt))se=!0;else if(/^s(hift)?$/i.test(Zt))ge=!0;else throw new Error("Unrecognized modifier name: "+Zt)}return ne&&(N="Alt-"+N),se&&(N="Ctrl-"+N),ze&&(N="Cmd-"+N),ge&&(N="Shift-"+N),N}function Ru(N){var U={};for(var ne in N)if(N.hasOwnProperty(ne)){var se=N[ne];if(/^(name|fallthrough|(de|at)tach)$/.test(ne))continue;if(se=="..."){delete N[ne];continue}for(var ge=ot(ne.split(" "),Du),ze=0;ze<ge.length;ze++){var Ct=void 0,Zt=void 0;ze==ge.length-1?(Zt=ge.join(" "),Ct=se):(Zt=ge.slice(0,ze+1).join(" "),Ct="...");var yr=U[Zt];if(!yr)U[Zt]=Ct;else if(yr!=Ct)throw new Error("Inconsistent bindings for "+Zt)}delete N[ne]}for(var Tr in U)N[Tr]=U[Tr];return N}function Zl(N,U,ne,se){U=hl(U);var ge=U.call?U.call(N,se):U[N];if(ge===!1)return"nothing";if(ge==="...")return"multi";if(ge!=null&&ne(ge))return"handled";if(U.fallthrough){if(Object.prototype.toString.call(U.fallthrough)!="[object Array]")return Zl(N,U.fallthrough,ne,se);for(var ze=0;ze<U.fallthrough.length;ze++){var Ct=Zl(N,U.fallthrough[ze],ne,se);if(Ct)return Ct}}}function yu(N){var U=typeof N=="string"?N:zl[N.keyCode];return U=="Ctrl"||U=="Alt"||U=="Shift"||U=="Mod"}function xu(N,U,ne){var se=N;return U.altKey&&se!="Alt"&&(N="Alt-"+N),(E?U.metaKey:U.ctrlKey)&&se!="Ctrl"&&(N="Ctrl-"+N),(E?U.ctrlKey:U.metaKey)&&se!="Mod"&&(N="Cmd-"+N),!ne&&U.shiftKey&&se!="Shift"&&(N="Shift-"+N),N}function bu(N,U){if(o&&N.keyCode==34&&N.char)return!1;var ne=zl[N.keyCode];return ne==null||N.altGraphKey?!1:(N.keyCode==3&&N.code&&(ne=N.code),xu(ne,N,U))}function hl(N){return typeof N=="string"?Jl[N]:N}function Dl(N,U){for(var ne=N.doc.sel.ranges,se=[],ge=0;ge<ne.length;ge++){for(var ze=U(ne[ge]);se.length&&Nt(ze.from,We(se).to)<=0;){var Ct=se.pop();if(Nt(Ct.from,ze.from)<0){ze.from=Ct.from;break}}se.push(ze)}Eo(N,function(){for(var Zt=se.length-1;Zt>=0;Zt--)jl(N.doc,"",se[Zt].from,se[Zt].to,"+delete");Da(N)})}function nu(N,U,ne){var se=Ne(N.text,U+ne,ne);return se<0||se>N.text.length?null:se}function Nu(N,U,ne){var se=nu(N,U.ch,ne);return se==null?null:new ur(U.line,se,ne<0?"after":"before")}function hu(N,U,ne,se,ge){if(N){U.doc.direction=="rtl"&&(ge=-ge);var ze=At(ne,U.doc.direction);if(ze){var Ct=ge<0?We(ze):ze[0],Zt=ge<0==(Ct.level==1),yr=Zt?"after":"before",Tr;if(Ct.level>0||U.doc.direction=="rtl"){var Pn=ca(U,ne);Tr=ge<0?ne.text.length-1:0;var $n=Ca(U,Pn,Tr).top;Tr=Ee(function(Si){return Ca(U,Pn,Si).top==$n},ge<0==(Ct.level==1)?Ct.from:Ct.to-1,Tr),yr=="before"&&(Tr=nu(ne,Tr,1))}else Tr=ge<0?Ct.to:Ct.from;return new ur(se,Tr,yr)}}return new ur(se,ge<0?ne.text.length:0,ge<0?"before":"after")}function fu(N,U,ne,se){var ge=At(U,N.doc.direction);if(!ge)return Nu(U,ne,se);ne.ch>=U.text.length?(ne.ch=U.text.length,ne.sticky="before"):ne.ch<=0&&(ne.ch=0,ne.sticky="after");var ze=Le(ge,ne.ch,ne.sticky),Ct=ge[ze];if(N.doc.direction=="ltr"&&Ct.level%2==0&&(se>0?Ct.to>ne.ch:Ct.from<ne.ch))return Nu(U,ne,se);var Zt=function(Na,qa){return nu(U,Na instanceof ur?Na.ch:Na,qa)},yr,Tr=function(Na){return N.options.lineWrapping?(yr=yr||ca(N,U),to(N,U,yr,Na)):{begin:0,end:U.text.length}},Pn=Tr(ne.sticky=="before"?Zt(ne,-1):ne.ch);if(N.doc.direction=="rtl"||Ct.level==1){var $n=Ct.level==1==se<0,Si=Zt(ne,$n?1:-1);if(Si!=null&&($n?Si<=Ct.to&&Si<=Pn.end:Si>=Ct.from&&Si>=Pn.begin)){var Ti=$n?"before":"after";return new ur(ne.line,Si,Ti)}}var la=function(Na,qa,ho){for(var ns=function(ul,Pl){return Pl?new ur(ne.line,Zt(ul,1),"before"):new ur(ne.line,ul,"after")};Na>=0&&Na<ge.length;Na+=qa){var Mo=ge[Na],Ss=qa>0==(Mo.level!=1),Zs=Ss?ho.begin:Zt(ho.end,-1);if(Mo.from<=Zs&&Zs<Mo.to)return ns(Zs,Ss);if(Zs=Ss?Mo.from:Zt(Mo.to,-1),ho.begin<=Zs&&Zs<ho.end)return ns(Zs,Ss)}},Ta=la(ze+se,se,Pn);if(Ta)return Ta;var Wa=se>0?Pn.end:Zt(Pn.begin,-1);return Wa!=null&&!(se>0&&Wa==U.text.length)&&(Ta=la(se>0?0:ge.length-1,se,Tr(Wa)),Ta)?Ta:null}var iu={selectAll:Os,singleSelection:function(U){return U.setSelection(U.getCursor("anchor"),U.getCursor("head"),be)},killLine:function(U){return Dl(U,function(ne){if(ne.empty()){var se=Be(U.doc,ne.head.line).text.length;return ne.head.ch==se&&ne.head.line<U.lastLine()?{from:ne.head,to:ur(ne.head.line+1,0)}:{from:ne.head,to:ur(ne.head.line,se)}}else return{from:ne.from(),to:ne.to()}})},deleteLine:function(U){return Dl(U,function(ne){return{from:ur(ne.from().line,0),to:Rt(U.doc,ur(ne.to().line+1,0))}})},delLineLeft:function(U){return Dl(U,function(ne){return{from:ur(ne.from().line,0),to:ne.from()}})},delWrappedLineLeft:function(U){return Dl(U,function(ne){var se=U.charCoords(ne.head,"div").top+5,ge=U.coordsChar({left:0,top:se},"div");return{from:ge,to:ne.from()}})},delWrappedLineRight:function(U){return Dl(U,function(ne){var se=U.charCoords(ne.head,"div").top+5,ge=U.coordsChar({left:U.display.lineDiv.offsetWidth+100,top:se},"div");return{from:ne.from(),to:ge}})},undo:function(U){return U.undo()},redo:function(U){return U.redo()},undoSelection:function(U){return U.undoSelection()},redoSelection:function(U){return U.redoSelection()},goDocStart:function(U){return U.extendSelection(ur(U.firstLine(),0))},goDocEnd:function(U){return U.extendSelection(ur(U.lastLine()))},goLineStart:function(U){return U.extendSelectionsBy(function(ne){return ve(U,ne.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(U){return U.extendSelectionsBy(function(ne){return L(U,ne.head)},{origin:"+move",bias:1})},goLineEnd:function(U){return U.extendSelectionsBy(function(ne){return q(U,ne.head.line)},{origin:"+move",bias:-1})},goLineRight:function(U){return U.extendSelectionsBy(function(ne){var se=U.cursorCoords(ne.head,"div").top+5;return U.coordsChar({left:U.display.lineDiv.offsetWidth+100,top:se},"div")},Ie)},goLineLeft:function(U){return U.extendSelectionsBy(function(ne){var se=U.cursorCoords(ne.head,"div").top+5;return U.coordsChar({left:0,top:se},"div")},Ie)},goLineLeftSmart:function(U){return U.extendSelectionsBy(function(ne){var se=U.cursorCoords(ne.head,"div").top+5,ge=U.coordsChar({left:0,top:se},"div");return ge.ch<U.getLine(ge.line).search(/\S/)?L(U,ne.head):ge},Ie)},goLineUp:function(U){return U.moveV(-1,"line")},goLineDown:function(U){return U.moveV(1,"line")},goPageUp:function(U){return U.moveV(-1,"page")},goPageDown:function(U){return U.moveV(1,"page")},goCharLeft:function(U){return U.moveH(-1,"char")},goCharRight:function(U){return U.moveH(1,"char")},goColumnLeft:function(U){return U.moveH(-1,"column")},goColumnRight:function(U){return U.moveH(1,"column")},goWordLeft:function(U){return U.moveH(-1,"word")},goGroupRight:function(U){return U.moveH(1,"group")},goGroupLeft:function(U){return U.moveH(-1,"group")},goWordRight:function(U){return U.moveH(1,"word")},delCharBefore:function(U){return U.deleteH(-1,"codepoint")},delCharAfter:function(U){return U.deleteH(1,"char")},delWordBefore:function(U){return U.deleteH(-1,"word")},delWordAfter:function(U){return U.deleteH(1,"word")},delGroupBefore:function(U){return U.deleteH(-1,"group")},delGroupAfter:function(U){return U.deleteH(1,"group")},indentAuto:function(U){return U.indentSelection("smart")},indentMore:function(U){return U.indentSelection("add")},indentLess:function(U){return U.indentSelection("subtract")},insertTab:function(U){return U.replaceSelection(" ")},insertSoftTab:function(U){for(var ne=[],se=U.listSelections(),ge=U.options.tabSize,ze=0;ze<se.length;ze++){var Ct=se[ze].from(),Zt=V(U.getLine(Ct.line),Ct.ch,ge);ne.push(Qe(ge-Zt%ge))}U.replaceSelections(ne)},defaultTab:function(U){U.somethingSelected()?U.indentSelection("add"):U.execCommand("insertTab")},transposeChars:function(U){return Eo(U,function(){for(var ne=U.listSelections(),se=[],ge=0;ge<ne.length;ge++){if(!ne[ge].empty())continue;var ze=ne[ge].head,Ct=Be(U.doc,ze.line).text;if(Ct){if(ze.ch==Ct.length&&(ze=new ur(ze.line,ze.ch-1)),ze.ch>0)ze=new ur(ze.line,ze.ch+1),U.replaceRange(Ct.charAt(ze.ch-1)+Ct.charAt(ze.ch-2),ur(ze.line,ze.ch-2),ze,"+transpose");else if(ze.line>U.doc.first){var Zt=Be(U.doc,ze.line-1).text;Zt&&(ze=new ur(ze.line,1),U.replaceRange(Ct.charAt(0)+U.doc.lineSeparator()+Zt.charAt(Zt.length-1),ur(ze.line-1,Zt.length-1),ze,"+transpose"))}}se.push(new ue(ze,ze))}U.setSelections(se)})},newlineAndIndent:function(U){return Eo(U,function(){for(var ne=U.listSelections(),se=ne.length-1;se>=0;se--)U.replaceRange(U.doc.lineSeparator(),ne[se].anchor,ne[se].head,"+input");ne=U.listSelections();for(var ge=0;ge<ne.length;ge++)U.indentLine(ne[ge].from().line,null,!0);Da(U)})},openLine:function(U){return U.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(U){return U.toggleOverwrite()}};function ve(N,U){var ne=Be(N.doc,U),se=Dt(ne);return se!=ne&&(U=kr(se)),hu(!0,N,se,U,1)}function q(N,U){var ne=Be(N.doc,U),se=Bt(ne);return se!=ne&&(U=kr(se)),hu(!0,N,ne,U,-1)}function L(N,U){var ne=ve(N,U.line),se=Be(N.doc,ne.line),ge=At(se,N.doc.direction);if(!ge||ge[0].level==0){var ze=Math.max(ne.ch,se.text.search(/\S/)),Ct=U.line==ne.line&&U.ch<=ze&&U.ch;return ur(ne.line,Ct?0:ze,ne.sticky)}return ne}function K(N,U,ne){if(typeof U=="string"&&(U=iu[U],!U))return!1;N.display.input.ensurePolled();var se=N.display.shift,ge=!1;try{N.isReadOnly()&&(N.state.suppressEdits=!0),ne&&(N.display.shift=!1),ge=U(N)!=ce}finally{N.display.shift=se,N.state.suppressEdits=!1}return ge}function H(N,U,ne){for(var se=0;se<N.state.keyMaps.length;se++){var ge=Zl(U,N.state.keyMaps[se],ne,N);if(ge)return ge}return N.options.extraKeys&&Zl(U,N.options.extraKeys,ne,N)||Zl(U,N.options.keyMap,ne,N)}var Z=new Q;function re(N,U,ne,se){var ge=N.state.keySeq;if(ge){if(yu(U))return"handled";if(/\'$/.test(U)?N.state.keySeq=null:Z.set(50,function(){N.state.keySeq==ge&&(N.state.keySeq=null,N.display.input.reset())}),Ae(N,ge+" "+U,ne,se))return!0}return Ae(N,U,ne,se)}function Ae(N,U,ne,se){var ge=H(N,U,se);return ge=="multi"&&(N.state.keySeq=U),ge=="handled"&&Or(N,"keyHandled",N,U,ne),(ge=="handled"||ge=="multi")&&(Xe(ne),si(N)),!!ge}function Te(N,U){var ne=bu(U,!0);return ne?U.shiftKey&&!N.state.keySeq?re(N,"Shift-"+ne,U,function(se){return K(N,se,!0)})||re(N,ne,U,function(se){if(typeof se=="string"?/^go[A-Z]/.test(se):se.motion)return K(N,se)}):re(N,ne,U,function(se){return K(N,se)}):!1}function Ge(N,U,ne){return re(N,"'"+ne+"'",U,function(se){return K(N,se,!0)})}var lt=null;function dt(N){var U=this;if(N.target&&N.target!=U.display.input.getField())return;if(U.curOp.focus=P(),dr(U,N))return;h&&u<11&&N.keyCode==27&&(N.returnValue=!1);var ne=N.keyCode;U.display.shift=ne==16||N.shiftKey;var se=Te(U,N);o&&(lt=se?ne:null,!se&&ne==88&&!Ir&&(g?N.metaKey:N.ctrlKey)&&U.replaceSelection("",null,"cut")),x&&!g&&!se&&ne==46&&N.shiftKey&&!N.ctrlKey&&document.execCommand&&document.execCommand("cut"),ne==18&&!/\bCodeMirror-crosshair\b/.test(U.display.lineDiv.className)&&Kt(U)}function Kt(N){var U=N.display.lineDiv;X(U,"CodeMirror-crosshair");function ne(se){(se.keyCode==18||!se.altKey)&&(T(U,"CodeMirror-crosshair"),ct(document,"keyup",ne),ct(document,"mouseover",ne))}Ke(document,"keyup",ne),Ke(document,"mouseover",ne)}function Er(N){N.keyCode==16&&(this.doc.sel.shift=!1),dr(this,N)}function br(N){var U=this;if(N.target&&N.target!=U.display.input.getField())return;if(Qn(U.display,N)||dr(U,N)||N.ctrlKey&&!N.altKey||g&&N.metaKey)return;var ne=N.keyCode,se=N.charCode;if(o&&ne==lt){lt=null,Xe(N);return}if(o&&(!N.which||N.which<10)&&Te(U,N))return;var ge=String.fromCharCode(se==null?ne:se);if(ge=="\b")return;if(Ge(U,N,ge))return;U.display.input.onKeyPress(N)}var jr=400,Kr=function(U,ne,se){this.time=U,this.pos=ne,this.button=se};Kr.prototype.compare=function(N,U,ne){return this.time+jr>N&&Nt(U,this.pos)==0&&ne==this.button};var In,kn;function Gn(N,U){var ne=+new Date;return kn&&kn.compare(ne,N,U)?(In=kn=null,"triple"):In&&In.compare(ne,N,U)?(kn=new Kr(ne,N,U),In=null,"double"):(In=new Kr(ne,N,U),kn=null,"single")}function bi(N){var U=this,ne=U.display;if(dr(U,N)||ne.activeTouch&&ne.input.supportsTouch())return;if(ne.input.ensurePolled(),ne.shift=N.shiftKey,Qn(ne,N)){a||(ne.scroller.draggable=!1,setTimeout(function(){return ne.scroller.draggable=!0},100));return}if(Ls(U,N))return;var se=_o(U,N),ge=ae(N),ze=se?Gn(se,ge):"single";if(window.focus(),ge==1&&U.state.selectingText&&U.state.selectingText(N),se&&ua(U,ge,se,ze,N))return;ge==1?se?ta(U,se,ze,N):He(N)==ne.scroller&&Xe(N):ge==2?(se&&js(U.doc,se),setTimeout(function(){return ne.input.focus()},20)):ge==3&&(C?U.display.input.onContextMenu(N):oi(U))}function ua(N,U,ne,se,ge){var ze="Click";return se=="double"?ze="Double"+ze:se=="triple"&&(ze="Triple"+ze),ze=(U==1?"Left":U==2?"Middle":"Right")+ze,re(N,xu(ze,ge),ge,function(Ct){if(typeof Ct=="string"&&(Ct=iu[Ct]),!Ct)return!1;var Zt=!1;try{N.isReadOnly()&&(N.state.suppressEdits=!0),Zt=Ct(N,ne)!=ce}finally{N.state.suppressEdits=!1}return Zt})}function Xi(N,U,ne){var se=N.getOption("configureMouse"),ge=se?se(N,U,ne):{};if(ge.unit==null){var ze=v?ne.shiftKey&&ne.metaKey:ne.altKey;ge.unit=ze?"rectangle":U=="single"?"char":U=="double"?"word":"line"}return(ge.extend==null||N.doc.extend)&&(ge.extend=N.doc.extend||ne.shiftKey),ge.addNew==null&&(ge.addNew=g?ne.metaKey:ne.ctrlKey),ge.moveOnDrag==null&&(ge.moveOnDrag=!(g?ne.altKey:ne.ctrlKey)),ge}function ta(N,U,ne,se){h?setTimeout(W(ui,N),0):N.curOp.focus=P();var ge=Xi(N,ne,se),ze=N.doc.sel,Ct;N.options.dragDrop&&ft&&!N.isReadOnly()&&ne=="single"&&(Ct=ze.contains(U))>-1&&(Nt((Ct=ze.ranges[Ct]).from(),U)<0||U.xRel>0)&&(Nt(Ct.to(),U)>0||U.xRel<0)?Pa(N,se,U,ge):Ba(N,se,U,ge)}function Pa(N,U,ne,se){var ge=N.display,ze=!1,Ct=zo(N,function(Tr){a&&(ge.scroller.draggable=!1),N.state.draggingText=!1,ct(ge.wrapper.ownerDocument,"mouseup",Ct),ct(ge.wrapper.ownerDocument,"mousemove",Zt),ct(ge.scroller,"dragstart",yr),ct(ge.scroller,"drop",Ct),ze||(Xe(Tr),se.addNew||js(N.doc,ne,null,null,se.extend),a&&!e||h&&u==9?setTimeout(function(){ge.wrapper.ownerDocument.body.focus({preventScroll:!0}),ge.input.focus()},20):ge.input.focus())}),Zt=function(Pn){ze=ze||Math.abs(U.clientX-Pn.clientX)+Math.abs(U.clientY-Pn.clientY)>=10},yr=function(){return ze=!0};a&&(ge.scroller.draggable=!0),N.state.draggingText=Ct,Ct.copy=!se.moveOnDrag,ge.scroller.dragDrop&&ge.scroller.dragDrop(),Ke(ge.wrapper.ownerDocument,"mouseup",Ct),Ke(ge.wrapper.ownerDocument,"mousemove",Zt),Ke(ge.scroller,"dragstart",yr),Ke(ge.scroller,"drop",Ct),oi(N),setTimeout(function(){return ge.input.focus()},20)}function Ya(N,U,ne){if(ne=="char")return new ue(U,U);if(ne=="word")return N.findWordAt(U);if(ne=="line")return new ue(ur(U.line,0),Rt(N.doc,ur(U.line+1,0)));var se=ne(N,U);return new ue(se.from,se.to)}function Ba(N,U,ne,se){var ge=N.display,ze=N.doc;Xe(U);var Ct,Zt,yr=ze.sel,Tr=yr.ranges;if(se.addNew&&!se.extend?(Zt=ze.sel.contains(ne),Zt>-1?Ct=Tr[Zt]:Ct=new ue(ne,ne)):(Ct=ze.sel.primary(),Zt=ze.sel.primIndex),se.unit=="rectangle")se.addNew||(Ct=new ue(ne,ne)),ne=_o(N,U,!0,!0),Zt=-1;else{var Pn=Ya(N,ne,se.unit);se.extend?Ct=fl(Ct,Pn.anchor,Pn.head,se.extend):Ct=Pn}se.addNew?Zt==-1?(Zt=Tr.length,Ts(ze,Se(N,Tr.concat([Ct]),Zt),{scroll:!1,origin:"*mouse"})):Tr.length>1&&Tr[Zt].empty()&&se.unit=="char"&&!se.extend?(Ts(ze,Se(N,Tr.slice(0,Zt).concat(Tr.slice(Zt+1)),0),{scroll:!1,origin:"*mouse"}),yr=ze.sel):Xs(ze,Zt,Ct,le):(Zt=0,Ts(ze,new It([Ct],0),le),yr=ze.sel);var $n=ne;function Si(qa){if(Nt($n,qa)==0)return;if($n=qa,se.unit=="rectangle"){for(var ho=[],ns=N.options.tabSize,Mo=V(Be(ze,ne.line).text,ne.ch,ns),Ss=V(Be(ze,qa.line).text,qa.ch,ns),Zs=Math.min(Mo,Ss),yl=Math.max(Mo,Ss),ul=Math.min(ne.line,qa.line),Pl=Math.min(N.lastLine(),Math.max(ne.line,qa.line));ul<=Pl;ul++){var Vl=Be(ze,ul).text,Il=ke(Vl,Zs,ns);Zs==yl?ho.push(new ue(ur(ul,Il),ur(ul,Il))):Vl.length>Il&&ho.push(new ue(ur(ul,Il),ur(ul,ke(Vl,yl,ns))))}ho.length||ho.push(new ue(ne,ne)),Ts(ze,Se(N,yr.ranges.slice(0,Zt).concat(ho),Zt),{origin:"*mouse",scroll:!1}),N.scrollIntoView(qa)}else{var Gl=Ct,Fl=Ya(N,qa,se.unit),Ja=Gl.anchor,vl;Nt(Fl.anchor,Ja)>0?(vl=Fl.head,Ja=Pt(Gl.from(),Fl.anchor)):(vl=Fl.anchor,Ja=Yt(Gl.to(),Fl.head));var gl=yr.ranges.slice(0);gl[Zt]=Sa(N,new ue(Rt(ze,Ja),vl)),Ts(ze,Se(N,gl,Zt),le)}}var Ti=ge.wrapper.getBoundingClientRect(),la=0;function Ta(qa){var ho=++la,ns=_o(N,qa,!0,se.unit=="rectangle");if(!ns)return;if(Nt(ns,$n)!=0){N.curOp.focus=P(),Si(ns);var Mo=na(ge,ze);(ns.line>=Mo.to||ns.line<Mo.from)&&setTimeout(zo(N,function(){la==ho&&Ta(qa)}),150)}else{var Ss=qa.clientY<Ti.top?-20:qa.clientY>Ti.bottom?20:0;Ss&&setTimeout(zo(N,function(){if(la!=ho)return;ge.scroller.scrollTop+=Ss,Ta(qa)}),50)}}function Wa(qa){N.state.selectingText=!1,la=Infinity,qa&&(Xe(qa),ge.input.focus()),ct(ge.wrapper.ownerDocument,"mousemove",ka),ct(ge.wrapper.ownerDocument,"mouseup",Na),ze.history.lastSelOrigin=null}var ka=zo(N,function(qa){qa.buttons===0||!ae(qa)?Wa(qa):Ta(qa)}),Na=zo(N,Wa);N.state.selectingText=Na,Ke(ge.wrapper.ownerDocument,"mousemove",ka),Ke(ge.wrapper.ownerDocument,"mouseup",Na)}function Sa(N,U){var ne=U.anchor,se=U.head,ge=Be(N.doc,ne.line);if(Nt(ne,se)==0&&ne.sticky==se.sticky)return U;var ze=At(ge);if(!ze)return U;var Ct=Le(ze,ne.ch,ne.sticky),Zt=ze[Ct];if(Zt.from!=ne.ch&&Zt.to!=ne.ch)return U;var yr=Ct+(Zt.from==ne.ch==(Zt.level!=1)?0:1);if(yr==0||yr==ze.length)return U;var Tr;if(se.line!=ne.line)Tr=(se.line-ne.line)*(N.doc.direction=="ltr"?1:-1)>0;else{var Pn=Le(ze,se.ch,se.sticky),$n=Pn-Ct||(se.ch-ne.ch)*(Zt.level==1?-1:1);Pn==yr-1||Pn==yr?Tr=$n<0:Tr=$n>0}var Si=ze[yr+(Tr?-1:0)],Ti=Tr==(Si.level==1),la=Ti?Si.from:Si.to,Ta=Ti?"after":"before";return ne.ch==la&&ne.sticky==Ta?U:new ue(new ur(ne.line,la,Ta),se)}function Go(N,U,ne,se){var ge,ze;if(U.touches)ge=U.touches[0].clientX,ze=U.touches[0].clientY;else try{ge=U.clientX,ze=U.clientY}catch(Si){return!1}if(ge>=Math.floor(N.display.gutters.getBoundingClientRect().right))return!1;se&&Xe(U);var Ct=N.display,Zt=Ct.lineDiv.getBoundingClientRect();if(ze>Zt.bottom||!kt(N,ne))return te(U);ze-=Zt.top-Ct.viewOffset;for(var yr=0;yr<N.display.gutterSpecs.length;++yr){var Tr=Ct.gutters.childNodes[yr];if(Tr&&Tr.getBoundingClientRect().right>=ge){var Pn=mn(N.doc,ze),$n=N.display.gutterSpecs[yr];return Gt(N,ne,N,Pn,$n.className,U),te(U)}}}function Ls(N,U){return Go(N,U,"gutterClick",!0)}function ys(N,U){if(Qn(N.display,U)||bs(N,U))return;if(dr(N,U,"contextmenu"))return;C||N.display.input.onContextMenu(U)}function bs(N,U){return kt(N,"gutterContextMenu")?Go(N,U,"gutterContextMenu",!1):!1}function Fs(N){N.display.wrapper.className=N.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+N.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ga(N)}var ws={toString:function(){return"CodeMirror.Init"}},Ws={},xe={};function Ze(N){var U=N.optionHandlers;function ne(se,ge,ze,Ct){N.defaults[se]=ge,ze&&(U[se]=Ct?function(Zt,yr,Tr){Tr!=ws&&ze(Zt,yr,Tr)}:ze)}N.defineOption=ne,N.Init=ws,ne("value","",function(se,ge){return se.setValue(ge)},!0),ne("mode",null,function(se,ge){se.doc.modeOption=ge,_n(se)},!0),ne("indentUnit",2,_n,!0),ne("indentWithTabs",!1),ne("smartIndent",!0),ne("tabSize",4,function(se){li(se),Ga(se),Ha(se)},!0),ne("lineSeparator",null,function(se,ge){if(se.doc.lineSep=ge,!ge)return;var ze=[],Ct=se.doc.first;se.doc.iter(function(yr){for(var Tr=0;;){var Pn=yr.text.indexOf(ge,Tr);if(Pn==-1)break;Tr=Pn+ge.length,ze.push(ur(Ct,Pn))}Ct++});for(var Zt=ze.length-1;Zt>=0;Zt--)jl(se.doc,ge,ze[Zt],ur(ze[Zt].line,ze[Zt].ch+ge.length))}),ne("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(se,ge,ze){se.state.specialChars=new RegExp(ge.source+(ge.test(" ")?"":"| "),"g"),ze!=ws&&se.refresh()}),ne("specialCharPlaceholder",xi,function(se){return se.refresh()},!0),ne("electricChars",!0),ne("inputStyle",d?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ne("spellcheck",!1,function(se,ge){return se.getInputField().spellcheck=ge},!0),ne("autocorrect",!1,function(se,ge){return se.getInputField().autocorrect=ge},!0),ne("autocapitalize",!1,function(se,ge){return se.getInputField().autocapitalize=ge},!0),ne("rtlMoveVisually",!b),ne("wholeLineUpdateBefore",!0),ne("theme","default",function(se){Fs(se),fs(se)},!0),ne("keyMap","default",function(se,ge,ze){var Ct=hl(ge),Zt=ze!=ws&&hl(ze);Zt&&Zt.detach&&Zt.detach(se,Ct),Ct.attach&&Ct.attach(se,Zt||null)}),ne("extraKeys",null),ne("configureMouse",null),ne("lineWrapping",!1,ir,!0),ne("gutters",[],function(se,ge){se.display.gutterSpecs=Vo(ge,se.options.lineNumbers),fs(se)},!0),ne("fixedGutter",!0,function(se,ge){se.display.gutters.style.left=ge?xo(se.display)+"px":"0",se.refresh()},!0),ne("coverGutterNextToScrollbar",!1,function(se){return Lo(se)},!0),ne("scrollbarStyle","native",function(se){Rs(se),Lo(se),se.display.scrollbars.setScrollTop(se.doc.scrollTop),se.display.scrollbars.setScrollLeft(se.doc.scrollLeft)},!0),ne("lineNumbers",!1,function(se,ge){se.display.gutterSpecs=Vo(se.options.gutters,ge),fs(se)},!0),ne("firstLineNumber",1,fs,!0),ne("lineNumberFormatter",function(se){return se},fs,!0),ne("showCursorWhenSelecting",!1,sn,!0),ne("resetSelectionOnContextMenu",!0),ne("lineWiseCopyCut",!0),ne("pasteLinesPerSelection",!0),ne("selectionsMayTouch",!1),ne("readOnly",!1,function(se,ge){ge=="nocursor"&&(pi(se),se.display.input.blur()),se.display.input.readOnlyChanged(ge)}),ne("screenReaderLabel",null,function(se,ge){ge=ge===""?null:ge,se.display.input.screenReaderLabelChanged(ge)}),ne("disableInput",!1,function(se,ge){ge||se.display.input.reset()},!0),ne("dragDrop",!0,wt),ne("allowDropFileTypes",null),ne("cursorBlinkRate",530),ne("cursorScrollMargin",0),ne("cursorHeight",1,sn,!0),ne("singleCursorHeightPerLine",!0,sn,!0),ne("workTime",100),ne("workDelay",100),ne("flattenSpans",!0,li,!0),ne("addModeClass",!1,li,!0),ne("pollInterval",100),ne("undoDepth",200,function(se,ge){return se.doc.history.undoDepth=ge}),ne("historyEventDelay",1250),ne("viewportMargin",10,function(se){return se.refresh()},!0),ne("maxHighlightLength",1e4,li,!0),ne("moveInputWithCursor",!0,function(se,ge){ge||se.display.input.resetPosition()}),ne("tabindex",null,function(se,ge){return se.display.input.getField().tabIndex=ge||""}),ne("autofocus",null),ne("direction","ltr",function(se,ge){return se.doc.setDirection(ge)},!0),ne("phrases",null)}function wt(N,U,ne){var se=ne&&ne!=ws;if(!U!=!se){var ge=N.display.dragFunctions,ze=U?Ke:ct;ze(N.display.scroller,"dragstart",ge.start),ze(N.display.scroller,"dragenter",ge.enter),ze(N.display.scroller,"dragover",ge.over),ze(N.display.scroller,"dragleave",ge.leave),ze(N.display.scroller,"drop",ge.drop)}}function ir(N){N.options.lineWrapping?(X(N.display.wrapper,"CodeMirror-wrap"),N.display.sizer.style.minWidth="",N.display.sizerWidth=null):(T(N.display.wrapper,"CodeMirror-wrap"),Ln(N)),Ho(N),Ha(N),Ga(N),setTimeout(function(){return Lo(N)},100)}function Pr(N,U){var ne=this;if(!(this instanceof Pr))return new Pr(N,U);this.options=U=U?z(U):{},z(Ws,U,!1);var se=U.value;typeof se=="string"?se=new Cl(se,U.mode,null,U.lineSeparator,U.direction):U.mode&&(se.modeOption=U.mode),this.doc=se;var ge=new Pr.inputStyles[U.inputStyle](this),ze=this.display=new Ds(N,se,ge,U);ze.wrapper.CodeMirror=this,Fs(this),U.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Rs(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 Q,keySeq:null,specialChars:null},U.autofocus&&!d&&ze.input.focus(),h&&u<11&&setTimeout(function(){return ne.display.input.reset(!0)},20),nn(this),cu(),as(this),this.curOp.forceUpdate=!0,sa(this,se),U.autofocus&&!d||this.hasFocus()?setTimeout(function(){ne.hasFocus()&&!ne.state.focused&&Ei(ne)},20):pi(this);for(var Ct in xe)xe.hasOwnProperty(Ct)&&xe[Ct](this,U[Ct],ws);Js(this),U.finishInit&&U.finishInit(this);for(var Zt=0;Zt<Ue.length;++Zt)Ue[Zt](this);co(this),a&&U.lineWrapping&&getComputedStyle(ze.lineDiv).textRendering=="optimizelegibility"&&(ze.lineDiv.style.textRendering="auto")}Pr.defaults=Ws,Pr.optionHandlers=xe;function nn(N){var U=N.display;Ke(U.scroller,"mousedown",zo(N,bi)),h&&u<11?Ke(U.scroller,"dblclick",zo(N,function(yr){if(dr(N,yr))return;var Tr=_o(N,yr);if(!Tr||Ls(N,yr)||Qn(N.display,yr))return;Xe(yr);var Pn=N.findWordAt(Tr);js(N.doc,Pn.anchor,Pn.head)})):Ke(U.scroller,"dblclick",function(yr){return dr(N,yr)||Xe(yr)}),Ke(U.scroller,"contextmenu",function(yr){return ys(N,yr)}),Ke(U.input.getField(),"contextmenu",function(yr){U.scroller.contains(yr.target)||ys(N,yr)});var ne,se={end:0};function ge(){U.activeTouch&&(ne=setTimeout(function(){return U.activeTouch=null},1e3),se=U.activeTouch,se.end=+new Date)}function ze(yr){if(yr.touches.length!=1)return!1;var Tr=yr.touches[0];return Tr.radiusX<=1&&Tr.radiusY<=1}function Ct(yr,Tr){if(Tr.left==null)return!0;var Pn=Tr.left-yr.left,$n=Tr.top-yr.top;return Pn*Pn+$n*$n>20*20}Ke(U.scroller,"touchstart",function(yr){if(!dr(N,yr)&&!ze(yr)&&!Ls(N,yr)){U.input.ensurePolled(),clearTimeout(ne);var Tr=+new Date;U.activeTouch={start:Tr,moved:!1,prev:Tr-se.end<=300?se:null},yr.touches.length==1&&(U.activeTouch.left=yr.touches[0].pageX,U.activeTouch.top=yr.touches[0].pageY)}}),Ke(U.scroller,"touchmove",function(){U.activeTouch&&(U.activeTouch.moved=!0)}),Ke(U.scroller,"touchend",function(yr){var Tr=U.activeTouch;if(Tr&&!Qn(U,yr)&&Tr.left!=null&&!Tr.moved&&new Date-Tr.start<300){var Pn=N.coordsChar(U.activeTouch,"page"),$n;!Tr.prev||Ct(Tr,Tr.prev)?$n=new ue(Pn,Pn):!Tr.prev.prev||Ct(Tr,Tr.prev.prev)?$n=N.findWordAt(Pn):$n=new ue(ur(Pn.line,0),Rt(N.doc,ur(Pn.line+1,0))),N.setSelection($n.anchor,$n.head),N.focus(),Xe(yr)}ge()}),Ke(U.scroller,"touchcancel",ge),Ke(U.scroller,"scroll",function(){U.scroller.clientHeight&&(Ea(N,U.scroller.scrollTop),Ka(N,U.scroller.scrollLeft,!0),Gt(N,"scroll",N))}),Ke(U.scroller,"mousewheel",function(yr){return di(N,yr)}),Ke(U.scroller,"DOMMouseScroll",function(yr){return di(N,yr)}),Ke(U.wrapper,"scroll",function(){return U.wrapper.scrollTop=U.wrapper.scrollLeft=0}),U.dragFunctions={enter:function(Tr){dr(N,Tr)||$e(Tr)},over:function(Tr){dr(N,Tr)||(Su(N,Tr),$e(Tr))},start:function(Tr){return Sl(N,Tr)},drop:zo(N,Hl),leave:function(Tr){dr(N,Tr)||vu(N)}};var Zt=U.input.getField();Ke(Zt,"keyup",function(yr){return Er.call(N,yr)}),Ke(Zt,"keydown",zo(N,dt)),Ke(Zt,"keypress",zo(N,br)),Ke(Zt,"focus",function(yr){return Ei(N,yr)}),Ke(Zt,"blur",function(yr){return pi(N,yr)})}var Ue=[];Pr.defineInitHook=function(N){return Ue.push(N)};function ie(N,U,ne,se){var ge=N.doc,ze;ne==null&&(ne="add"),ne=="smart"&&(ge.mode.indent?ze=ai(N,U).state:ne="prev");var Ct=N.options.tabSize,Zt=Be(ge,U),yr=V(Zt.text,null,Ct);Zt.stateAfter&&(Zt.stateAfter=null);var Tr=Zt.text.match(/^\s*/)[0],Pn;if(!se&&!/\S/.test(Zt.text))Pn=0,ne="not";else if(ne=="smart"&&(Pn=ge.mode.indent(ze,Zt.text.slice(Tr.length),Zt.text),Pn==ce||Pn>150)){if(!se)return;ne="prev"}ne=="prev"?U>ge.first?Pn=V(Be(ge,U-1).text,null,Ct):Pn=0:ne=="add"?Pn=yr+N.options.indentUnit:ne=="subtract"?Pn=yr-N.options.indentUnit:typeof ne=="number"&&(Pn=yr+ne),Pn=Math.max(0,Pn);var $n="",Si=0;if(N.options.indentWithTabs)for(var Ti=Math.floor(Pn/Ct);Ti;--Ti)Si+=Ct,$n+=" ";if(Si<Pn&&($n+=Qe(Pn-Si)),$n!=Tr)return jl(ge,$n,ur(U,0),ur(U,Tr.length),"+input"),Zt.stateAfter=null,!0;for(var la=0;la<ge.sel.ranges.length;la++){var Ta=ge.sel.ranges[la];if(Ta.head.line==U&&Ta.head.ch<Tr.length){var Wa=ur(U,Tr.length);Xs(ge,la,new ue(Wa,Wa));break}}}var Ce=null;function et(N){Ce=N}function yt(N,U,ne,se,ge){var ze=N.doc;N.display.shift=!1,se||(se=ze.sel);var Ct=+new Date-200,Zt=ge=="paste"||N.state.pasteIncoming>Ct,yr=fn(U),Tr=null;if(Zt&&se.ranges.length>1)if(Ce&&Ce.text.join(`
|
|
|
`)==U){if(se.ranges.length%Ce.text.length==0){Tr=[];for(var Pn=0;Pn<Ce.text.length;Pn++)Tr.push(ze.splitLines(Ce.text[Pn]))}}else yr.length==se.ranges.length&&N.options.pasteLinesPerSelection&&(Tr=ot(yr,function(ka){return[ka]}));for(var $n=N.curOp.updateInput,Si=se.ranges.length-1;Si>=0;Si--){var Ti=se.ranges[Si],la=Ti.from(),Ta=Ti.to();Ti.empty()&&(ne&&ne>0?la=ur(la.line,la.ch-ne):N.state.overwrite&&!Zt?Ta=ur(Ta.line,Math.min(Be(ze,Ta.line).text.length,Ta.ch+We(yr).length)):Zt&&Ce&&Ce.lineWise&&Ce.text.join(`
|
|
|
`)==yr.join(`
|
|
|
`)&&(la=Ta=ur(la.line,0)));var Wa={from:la,to:Ta,text:Tr?Tr[Si%Tr.length]:yr,origin:ge||(Zt?"paste":N.state.cutIncoming>Ct?"cut":"+input")};Is(N.doc,Wa),Or(N,"inputRead",N,Wa)}U&&!Zt&&Qt(N,U),Da(N),N.curOp.updateInput<2&&(N.curOp.updateInput=$n),N.curOp.typing=!0,N.state.pasteIncoming=N.state.cutIncoming=-1}function Ut(N,U){var ne=N.clipboardData&&N.clipboardData.getData("Text");if(ne)return N.preventDefault(),!U.isReadOnly()&&!U.options.disableInput&&Eo(U,function(){return yt(U,ne,0,null,"paste")}),!0}function Qt(N,U){if(!N.options.electricChars||!N.options.smartIndent)return;for(var ne=N.doc.sel,se=ne.ranges.length-1;se>=0;se--){var ge=ne.ranges[se];if(ge.head.ch>100||se&&ne.ranges[se-1].head.line==ge.head.line)continue;var ze=N.getModeAt(ge.head),Ct=!1;if(ze.electricChars){for(var Zt=0;Zt<ze.electricChars.length;Zt++)if(U.indexOf(ze.electricChars.charAt(Zt))>-1){Ct=ie(N,ge.head.line,"smart");break}}else ze.electricInput&&(ze.electricInput.test(Be(N.doc,ge.head.line).text.slice(0,ge.head.ch))&&(Ct=ie(N,ge.head.line,"smart")));Ct&&Or(N,"electricInput",N,ge.head.line)}}function $t(N){for(var U=[],ne=[],se=0;se<N.doc.sel.ranges.length;se++){var ge=N.doc.sel.ranges[se].head.line,ze={anchor:ur(ge,0),head:ur(ge+1,0)};ne.push(ze),U.push(N.getRange(ze.anchor,ze.head))}return{text:U,ranges:ne}}function Hr(N,U,ne,se){N.setAttribute("autocorrect",ne?"":"off"),N.setAttribute("autocapitalize",se?"":"off"),N.setAttribute("spellcheck",!!U)}function ln(){var N=I("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),U=I("div",[N],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return a?N.style.width="1000px":N.setAttribute("wrap","off"),s&&(N.style.border="1px solid black"),Hr(N),U}function Ur(N){var U=N.optionHandlers,ne=N.helpers={};N.prototype={constructor:N,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ge,ze){var Ct=this.options,Zt=Ct[ge];if(Ct[ge]==ze&&ge!="mode")return;Ct[ge]=ze,U.hasOwnProperty(ge)&&zo(this,U[ge])(this,ze,Zt),Gt(this,"optionChange",this,ge)},getOption:function(ge){return this.options[ge]},getDoc:function(){return this.doc},addKeyMap:function(ge,ze){this.state.keyMaps[ze?"push":"unshift"](hl(ge))},removeKeyMap:function(ge){for(var ze=this.state.keyMaps,Ct=0;Ct<ze.length;++Ct)if(ze[Ct]==ge||ze[Ct].name==ge)return ze.splice(Ct,1),!0},addOverlay:Bs(function(se,ge){var ze=se.token?se:N.getMode(this.options,se);if(ze.startState)throw new Error("Overlays may not be stateful.");Oe(this.state.overlays,{mode:ze,modeSpec:se,opaque:ge&&ge.opaque,priority:ge&&ge.priority||0},function(Ct){return Ct.priority}),this.state.modeGen++,Ha(this)}),removeOverlay:Bs(function(se){for(var ge=this.state.overlays,ze=0;ze<ge.length;++ze){var Ct=ge[ze].modeSpec;if(Ct==se||typeof se=="string"&&Ct.name==se){ge.splice(ze,1),this.state.modeGen++,Ha(this);return}}}),indentLine:Bs(function(se,ge,ze){typeof ge!="string"&&typeof ge!="number"&&(ge==null?ge=this.options.smartIndent?"smart":"prev":ge=ge?"add":"subtract"),Zn(this.doc,se)&&ie(this,se,ge,ze)}),indentSelection:Bs(function(se){for(var ge=this.doc.sel.ranges,ze=-1,Ct=0;Ct<ge.length;Ct++){var Zt=ge[Ct];if(Zt.empty())Zt.head.line>ze&&(ie(this,Zt.head.line,se,!0),ze=Zt.head.line,Ct==this.doc.sel.primIndex&&Da(this));else{var yr=Zt.from(),Tr=Zt.to(),Pn=Math.max(ze,yr.line);ze=Math.min(this.lastLine(),Tr.line-(Tr.ch?0:1))+1;for(var $n=Pn;$n<ze;++$n)ie(this,$n,se);var Si=this.doc.sel.ranges;yr.ch==0&&ge.length==Si.length&&Si[Ct].from().ch>0&&Xs(this.doc,Ct,new ue(yr,Si[Ct].to()),be)}}}),getTokenAt:function(ge,ze){return Qi(this,ge,ze)},getLineTokens:function(ge,ze){return Qi(this,ur(ge),ze,!0)},getTokenTypeAt:function(ge){ge=Rt(this.doc,ge);var ze=wn(this,Be(this.doc,ge.line)),Ct=0,Zt=(ze.length-1)/2,yr=ge.ch,Tr;if(yr==0)Tr=ze[2];else for(;;){var Pn=Ct+Zt>>1;if((Pn?ze[Pn*2-1]:0)>=yr)Zt=Pn;else if(ze[Pn*2+1]<yr)Ct=Pn+1;else{Tr=ze[Pn*2+2];break}}var $n=Tr?Tr.indexOf("overlay "):-1;return $n<0?Tr:$n==0?null:Tr.slice(0,$n-1)},getModeAt:function(ge){var ze=this.doc.mode;return ze.innerMode?N.innerMode(ze,this.getTokenAt(ge).state).mode:ze},getHelper:function(ge,ze){return this.getHelpers(ge,ze)[0]},getHelpers:function(ge,ze){var Ct=[];if(!ne.hasOwnProperty(ze))return Ct;var Zt=ne[ze],yr=this.getModeAt(ge);if(typeof yr[ze]=="string")Zt[yr[ze]]&&Ct.push(Zt[yr[ze]]);else if(yr[ze])for(var Tr=0;Tr<yr[ze].length;Tr++){var Pn=Zt[yr[ze][Tr]];Pn&&Ct.push(Pn)}else yr.helperType&&Zt[yr.helperType]?Ct.push(Zt[yr.helperType]):Zt[yr.name]&&Ct.push(Zt[yr.name]);for(var $n=0;$n<Zt._global.length;$n++){var Si=Zt._global[$n];Si.pred(yr,this)&&G(Ct,Si.val)==-1&&Ct.push(Si.val)}return Ct},getStateAfter:function(ge,ze){var Ct=this.doc;return ge=rr(Ct,ge==null?Ct.first+Ct.size-1:ge),ai(this,ge+1,ze).state},cursorCoords:function(ge,ze){var Ct,Zt=this.doc.sel.primary();return ge==null?Ct=Zt.head:typeof ge=="object"?Ct=Rt(this.doc,ge):Ct=ge?Zt.from():Zt.to(),mo(this,Ct,ze||"page")},charCoords:function(ge,ze){return Qo(this,Rt(this.doc,ge),ze||"page")},coordsChar:function(ge,ze){return ge=oo(this,ge,ze||"page"),So(this,ge.left,ge.top)},lineAtHeight:function(ge,ze){return ge=oo(this,{top:ge,left:0},ze||"page").top,mn(this.doc,ge+this.display.viewOffset)},heightAtLine:function(ge,ze,Ct){var Zt=!1,yr;if(typeof ge=="number"){var Tr=this.doc.first+this.doc.size-1;ge<this.doc.first?ge=this.doc.first:ge>Tr&&(ge=Tr,Zt=!0),yr=Be(this.doc,ge)}else yr=ge;return io(this,yr,{top:0,left:0},ze||"page",Ct||Zt).top+(Zt?this.doc.height-Nr(yr):0)},defaultTextHeight:function(){return Oo(this.display)},defaultCharWidth:function(){return Io(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ge,ze,Ct,Zt,yr){var Tr=this.display;ge=mo(this,Rt(this.doc,ge));var Pn=ge.bottom,$n=ge.left;if(ze.style.position="absolute",ze.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ze),Tr.sizer.appendChild(ze),Zt=="over")Pn=ge.top;else if(Zt=="above"||Zt=="near"){var Si=Math.max(Tr.wrapper.clientHeight,this.doc.height),Ti=Math.max(Tr.sizer.clientWidth,Tr.lineSpace.clientWidth);(Zt=="above"||ge.bottom+ze.offsetHeight>Si)&&ge.top>ze.offsetHeight?Pn=ge.top-ze.offsetHeight:ge.bottom+ze.offsetHeight<=Si&&(Pn=ge.bottom),$n+ze.offsetWidth>Ti&&($n=Ti-ze.offsetWidth)}ze.style.top=Pn+"px",ze.style.left=ze.style.right="",yr=="right"?($n=Tr.sizer.clientWidth-ze.offsetWidth,ze.style.right="0px"):(yr=="left"?$n=0:yr=="middle"&&($n=(Tr.sizer.clientWidth-ze.offsetWidth)/2),ze.style.left=$n+"px"),Ct&&Xa(this,{left:$n,top:Pn,right:$n+ze.offsetWidth,bottom:Pn+ze.offsetHeight})},triggerOnKeyDown:Bs(dt),triggerOnKeyPress:Bs(br),triggerOnKeyUp:Er,triggerOnMouseDown:Bs(bi),execCommand:function(ge){if(iu.hasOwnProperty(ge))return iu[ge].call(null,this)},triggerElectric:Bs(function(se){Qt(this,se)}),findPosH:function(ge,ze,Ct,Zt){var yr=1;ze<0&&(yr=-1,ze=-ze);for(var Tr=Rt(this.doc,ge),Pn=0;Pn<ze&&!(Tr=Br(this.doc,Tr,yr,Ct,Zt),Tr.hitSide);++Pn);return Tr},moveH:Bs(function(se,ge){var ze=this;this.extendSelectionsBy(function(Ct){return ze.display.shift||ze.doc.extend||Ct.empty()?Br(ze.doc,Ct.head,se,ge,ze.options.rtlMoveVisually):se<0?Ct.from():Ct.to()},Ie)}),deleteH:Bs(function(se,ge){var ze=this.doc.sel,Ct=this.doc;ze.somethingSelected()?Ct.replaceSelection("",null,"+delete"):Dl(this,function(Zt){var yr=Br(Ct,Zt.head,se,ge,!1);return se<0?{from:yr,to:Zt.head}:{from:Zt.head,to:yr}})}),findPosV:function(ge,ze,Ct,Zt){var yr=1,Tr=Zt;ze<0&&(yr=-1,ze=-ze);for(var Pn=Rt(this.doc,ge),$n=0;$n<ze;++$n){var Si=mo(this,Pn,"div");if(Tr==null?Tr=Si.left:Si.left=Tr,Pn=an(this,Si,yr,Ct),Pn.hitSide)break}return Pn},moveV:Bs(function(se,ge){var ze=this,Ct=this.doc,Zt=[],yr=!this.display.shift&&!Ct.extend&&Ct.sel.somethingSelected();if(Ct.extendSelectionsBy(function(Pn){if(yr)return se<0?Pn.from():Pn.to();var $n=mo(ze,Pn.head,"div");Pn.goalColumn!=null&&($n.left=Pn.goalColumn),Zt.push($n.left);var Si=an(ze,$n,se,ge);return ge=="page"&&Pn==Ct.sel.primary()&&wa(ze,Qo(ze,Si,"div").top-$n.top),Si},Ie),Zt.length)for(var Tr=0;Tr<Ct.sel.ranges.length;Tr++)Ct.sel.ranges[Tr].goalColumn=Zt[Tr]}),findWordAt:function(ge){var ze=this.doc,Ct=Be(ze,ge.line).text,Zt=ge.ch,yr=ge.ch;if(Ct){var Tr=this.getHelper(ge,"wordChars");(ge.sticky=="before"||yr==Ct.length)&&Zt?--Zt:++yr;for(var Pn=Ct.charAt(Zt),$n=Y(Pn,Tr)?function(Si){return Y(Si,Tr)}:/\s/.test(Pn)?function(Si){return/\s/.test(Si)}:function(Si){return!/\s/.test(Si)&&!Y(Si)};Zt>0&&$n(Ct.charAt(Zt-1));)--Zt;for(;yr<Ct.length&&$n(Ct.charAt(yr));)++yr}return new ue(ur(ge.line,Zt),ur(ge.line,yr))},toggleOverwrite:function(ge){if(ge!=null&&ge==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?X(this.display.cursorDiv,"CodeMirror-overwrite"):T(this.display.cursorDiv,"CodeMirror-overwrite"),Gt(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==P()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Bs(function(se,ge){ja(this,se,ge)}),getScrollInfo:function(){var ge=this.display.scroller;return{left:ge.scrollLeft,top:ge.scrollTop,height:ge.scrollHeight-yi(this)-this.display.barHeight,width:ge.scrollWidth-yi(this)-this.display.barWidth,clientHeight:Wi(this),clientWidth:Ci(this)}},scrollIntoView:Bs(function(se,ge){se==null?(se={from:this.doc.sel.primary().head,to:null},ge==null&&(ge=this.options.cursorScrollMargin)):typeof se=="number"?se={from:ur(se,0),to:null}:se.from==null&&(se={from:se,to:null}),se.to||(se.to=se.from),se.margin=ge||0,se.from.line!=null?ko(this,se):pa(this,se.from,se.to,se.margin)}),setSize:Bs(function(se,ge){var ze=this,Ct=function(Tr){return typeof Tr=="number"||/^\d+$/.test(String(Tr))?Tr+"px":Tr};se!=null&&(this.display.wrapper.style.width=Ct(se)),ge!=null&&(this.display.wrapper.style.height=Ct(ge)),this.options.lineWrapping&&Aa(this);var Zt=this.display.viewFrom;this.doc.iter(Zt,this.display.viewTo,function(yr){if(yr.widgets){for(var Tr=0;Tr<yr.widgets.length;Tr++)if(yr.widgets[Tr].noHScroll){pt(ze,Zt,"widget");break}}++Zt}),this.curOp.forceUpdate=!0,Gt(this,"refresh",this)}),operation:function(ge){return Eo(this,ge)},startOperation:function(){return as(this)},endOperation:function(){return co(this)},refresh:Bs(function(){var se=this.display.cachedTextHeight;Ha(this),this.curOp.forceUpdate=!0,Ga(this),ja(this,this.doc.scrollLeft,this.doc.scrollTop),xs(this.display),(se==null||Math.abs(se-Oo(this.display))>.5||this.options.lineWrapping)&&Ho(this),Gt(this,"refresh",this)}),swapDoc:Bs(function(se){var ge=this.doc;return ge.cm=null,this.state.selectingText&&this.state.selectingText(),sa(this,se),Ga(this),this.display.input.reset(),ja(this,se.scrollLeft,se.scrollTop),this.curOp.forceScroll=!0,Or(this,"swapDoc",this,ge),ge}),phrase:function(ge){var ze=this.options.phrases;return ze&&Object.prototype.hasOwnProperty.call(ze,ge)?ze[ge]:ge},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}},Vt(N),N.registerHelper=function(se,ge,ze){ne.hasOwnProperty(se)||(ne[se]=N[se]={_global:[]}),ne[se][ge]=ze},N.registerGlobalHelper=function(se,ge,ze,Ct){N.registerHelper(se,ge,Ct),ne[se]._global.push({pred:ze,val:Ct})}}function Br(N,U,ne,se,ge){var ze=U,Ct=ne,Zt=Be(N,U.line),yr=ge&&N.direction=="rtl"?-ne:ne;function Tr(){var Na=U.line+yr;return Na<N.first||Na>=N.first+N.size?!1:(U=new ur(Na,U.ch,U.sticky),Zt=Be(N,Na))}function Pn(Na){var qa;if(se=="codepoint"){var ho=Zt.text.charCodeAt(U.ch+(se>0?0:-1));isNaN(ho)?qa=null:qa=new ur(U.line,Math.max(0,Math.min(Zt.text.length,U.ch+ne*(ho>=55296&&ho<56320?2:1))),-ne)}else ge?qa=fu(N.cm,Zt,U,ne):qa=Nu(Zt,U,ne);if(qa==null)if(!Na&&Tr())U=hu(ge,N.cm,Zt,U.line,yr);else return!1;else U=qa;return!0}if(se=="char"||se=="codepoint")Pn();else if(se=="column")Pn(!0);else if(se=="word"||se=="group")for(var $n=null,Si=se=="group",Ti=N.cm&&N.cm.getHelper(U,"wordChars"),la=!0;!(ne<0&&!Pn(!la));la=!1){var Ta=Zt.text.charAt(U.ch)||`
|
|
|
`,Wa=Y(Ta,Ti)?"w":Si&&Ta==`
|
|
|
`?"n":!Si||/\s/.test(Ta)?null:"p";if(Si&&!la&&!Wa&&(Wa="s"),$n&&$n!=Wa){ne<0&&(ne=1,Pn(),U.sticky="after");break}if(Wa&&($n=Wa),ne>0&&!Pn(!la))break}var ka=qo(N,U,ze,Ct,!0);return bt(ze,ka)&&(ka.hitSide=!0),ka}function an(N,U,ne,se){var ge=N.doc,ze=U.left,Ct;if(se=="page"){var Zt=Math.min(N.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),yr=Math.max(Zt-.5*Oo(N.display),3);Ct=(ne>0?U.bottom:U.top)+ne*yr}else se=="line"&&(Ct=ne>0?U.bottom+3:U.top-3);for(var Tr;!(Tr=So(N,ze,Ct),!Tr.outside);){if(ne<0?Ct<=0:Ct>=ge.height){Tr.hitSide=!0;break}Ct+=ne*5}return Tr}var pn=function(U){this.cm=U,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Q,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};pn.prototype.init=function(N){var U=this,ne=this,se=ne.cm,ge=ne.div=N.lineDiv;Hr(ge,se.options.spellcheck,se.options.autocorrect,se.options.autocapitalize);function ze(Zt){for(var yr=Zt.target;yr;yr=yr.parentNode){if(yr==ge)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(yr.className))break}return!1}Ke(ge,"paste",function(Zt){if(!ze(Zt)||dr(se,Zt)||Ut(Zt,se))return;u<=11&&setTimeout(zo(se,function(){return U.updateFromDOM()}),20)}),Ke(ge,"compositionstart",function(Zt){U.composing={data:Zt.data,done:!1}}),Ke(ge,"compositionupdate",function(Zt){U.composing||(U.composing={data:Zt.data,done:!1})}),Ke(ge,"compositionend",function(Zt){U.composing&&(Zt.data!=U.composing.data&&U.readFromDOMSoon(),U.composing.done=!0)}),Ke(ge,"touchstart",function(){return ne.forceCompositionEnd()}),Ke(ge,"input",function(){U.composing||U.readFromDOMSoon()});function Ct(Zt){if(!ze(Zt)||dr(se,Zt))return;if(se.somethingSelected())et({lineWise:!1,text:se.getSelections()}),Zt.type=="cut"&&se.replaceSelection("",null,"cut");else if(se.options.lineWiseCopyCut){var yr=$t(se);et({lineWise:!0,text:yr.text}),Zt.type=="cut"&&se.operation(function(){se.setSelections(yr.ranges,0,be),se.replaceSelection("",null,"cut")})}else return;if(Zt.clipboardData){Zt.clipboardData.clearData();var Tr=Ce.text.join(`
|
|
|
`);if(Zt.clipboardData.setData("Text",Tr),Zt.clipboardData.getData("Text")==Tr){Zt.preventDefault();return}}var Pn=ln(),$n=Pn.firstChild;se.display.lineSpace.insertBefore(Pn,se.display.lineSpace.firstChild),$n.value=Ce.text.join(`
|
|
|
`);var Si=document.activeElement;j($n),setTimeout(function(){se.display.lineSpace.removeChild(Pn),Si.focus(),Si==ge&&ne.showPrimarySelection()},50)}Ke(ge,"copy",Ct),Ke(ge,"cut",Ct)},pn.prototype.screenReaderLabelChanged=function(N){N?this.div.setAttribute("aria-label",N):this.div.removeAttribute("aria-label")},pn.prototype.prepareSelection=function(){var N=zr(this.cm,!1);return N.focus=document.activeElement==this.div,N},pn.prototype.showSelection=function(N,U){if(!N||!this.cm.display.view.length)return;(N.focus||U)&&this.showPrimarySelection(),this.showMultipleSelections(N)},pn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},pn.prototype.showPrimarySelection=function(){var N=this.getSelection(),U=this.cm,ne=U.doc.sel.primary(),se=ne.from(),ge=ne.to();if(U.display.viewTo==U.display.viewFrom||se.line>=U.display.viewTo||ge.line<U.display.viewFrom){N.removeAllRanges();return}var ze=Ji(U,N.anchorNode,N.anchorOffset),Ct=Ji(U,N.focusNode,N.focusOffset);if(ze&&!ze.bad&&Ct&&!Ct.bad&&Nt(Pt(ze,Ct),se)==0&&Nt(Yt(ze,Ct),ge)==0)return;var Zt=U.display.view,yr=se.line>=U.display.viewFrom&&jn(U,se)||{node:Zt[0].measure.map[2],offset:0},Tr=ge.line<U.display.viewTo&&jn(U,ge);if(!Tr){var Pn=Zt[Zt.length-1].measure,$n=Pn.maps?Pn.maps[Pn.maps.length-1]:Pn.map;Tr={node:$n[$n.length-1],offset:$n[$n.length-2]-$n[$n.length-3]}}if(!yr||!Tr){N.removeAllRanges();return}var Si=N.rangeCount&&N.getRangeAt(0),Ti;try{Ti=M(yr.node,yr.offset,Tr.offset,Tr.node)}catch(la){}Ti&&(!x&&U.state.focused?(N.collapse(yr.node,yr.offset),Ti.collapsed||(N.removeAllRanges(),N.addRange(Ti))):(N.removeAllRanges(),N.addRange(Ti)),Si&&N.anchorNode==null?N.addRange(Si):x&&this.startGracePeriod()),this.rememberSelection()},pn.prototype.startGracePeriod=function(){var N=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){N.gracePeriod=!1,N.selectionChanged()&&N.cm.operation(function(){return N.cm.curOp.selectionChanged=!0})},20)},pn.prototype.showMultipleSelections=function(N){O(this.cm.display.cursorDiv,N.cursors),O(this.cm.display.selectionDiv,N.selection)},pn.prototype.rememberSelection=function(){var N=this.getSelection();this.lastAnchorNode=N.anchorNode,this.lastAnchorOffset=N.anchorOffset,this.lastFocusNode=N.focusNode,this.lastFocusOffset=N.focusOffset},pn.prototype.selectionInEditor=function(){var N=this.getSelection();if(!N.rangeCount)return!1;var U=N.getRangeAt(0).commonAncestorContainer;return F(this.div,U)},pn.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},pn.prototype.blur=function(){this.div.blur()},pn.prototype.getField=function(){return this.div},pn.prototype.supportsTouch=function(){return!0},pn.prototype.receivedFocus=function(){var N=this;this.selectionInEditor()?this.pollSelection():Eo(this.cm,function(){return N.cm.curOp.selectionChanged=!0});function U(){N.cm.state.focused&&(N.pollSelection(),N.polling.set(N.cm.options.pollInterval,U))}this.polling.set(this.cm.options.pollInterval,U)},pn.prototype.selectionChanged=function(){var N=this.getSelection();return N.anchorNode!=this.lastAnchorNode||N.anchorOffset!=this.lastAnchorOffset||N.focusNode!=this.lastFocusNode||N.focusOffset!=this.lastFocusOffset},pn.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var N=this.getSelection(),U=this.cm;if(c&&t&&this.cm.display.gutterSpecs.length&&_i(N.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var ne=Ji(U,N.anchorNode,N.anchorOffset),se=Ji(U,N.focusNode,N.focusOffset);ne&&se&&Eo(U,function(){Ts(U.doc,_e(ne,se),be),(ne.bad||se.bad)&&(U.curOp.selectionChanged=!0)})},pn.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var N=this.cm,U=N.display,ne=N.doc.sel.primary(),se=ne.from(),ge=ne.to();if(se.ch==0&&se.line>N.firstLine()&&(se=ur(se.line-1,Be(N.doc,se.line-1).length)),ge.ch==Be(N.doc,ge.line).text.length&&ge.line<N.lastLine()&&(ge=ur(ge.line+1,0)),se.line<U.viewFrom||ge.line>U.viewTo-1)return!1;var ze,Ct,Zt;se.line==U.viewFrom||(ze=uo(N,se.line))==0?(Ct=kr(U.view[0].line),Zt=U.view[0].node):(Ct=kr(U.view[ze].line),Zt=U.view[ze-1].node.nextSibling);var yr=uo(N,ge.line),Tr,Pn;if(yr==U.view.length-1?(Tr=U.viewTo-1,Pn=U.lineDiv.lastChild):(Tr=kr(U.view[yr+1].line)-1,Pn=U.view[yr+1].node.previousSibling),!Zt)return!1;for(var $n=N.doc.splitLines(da(N,Zt,Pn,Ct,Tr)),Si=nt(N.doc,ur(Ct,0),ur(Tr,Be(N.doc,Tr).text.length));$n.length>1&&Si.length>1;)if(We($n)==We(Si))$n.pop(),Si.pop(),Tr--;else if($n[0]==Si[0])$n.shift(),Si.shift(),Ct++;else break;for(var Ti=0,la=0,Ta=$n[0],Wa=Si[0],ka=Math.min(Ta.length,Wa.length);Ti<ka&&Ta.charCodeAt(Ti)==Wa.charCodeAt(Ti);)++Ti;for(var Na=We($n),qa=We(Si),ho=Math.min(Na.length-($n.length==1?Ti:0),qa.length-(Si.length==1?Ti:0));la<ho&&Na.charCodeAt(Na.length-la-1)==qa.charCodeAt(qa.length-la-1);)++la;if($n.length==1&&Si.length==1&&Ct==se.line)for(;Ti&&Ti>se.ch&&Na.charCodeAt(Na.length-la-1)==qa.charCodeAt(qa.length-la-1);)Ti--,la++;$n[$n.length-1]=Na.slice(0,Na.length-la).replace(/^\u200b+/,""),$n[0]=$n[0].slice(Ti).replace(/\u200b+$/,"");var ns=ur(Ct,Ti),Mo=ur(Tr,Si.length?We(Si).length-la:0);if($n.length>1||$n[0]||Nt(ns,Mo))return jl(N.doc,$n,ns,Mo,"+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 N=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(N.readDOMTimeout=null,N.composing)if(N.composing.done)N.composing=null;else return;N.updateFromDOM()},80)},pn.prototype.updateFromDOM=function(){var N=this;(this.cm.isReadOnly()||!this.pollContent())&&Eo(this.cm,function(){return Ha(N.cm)})},pn.prototype.setUneditable=function(N){N.contentEditable="false"},pn.prototype.onKeyPress=function(N){if(N.charCode==0||this.composing)return;N.preventDefault(),this.cm.isReadOnly()||zo(this.cm,yt)(this.cm,String.fromCharCode(N.charCode==null?N.keyCode:N.charCode),0)},pn.prototype.readOnlyChanged=function(N){this.div.contentEditable=String(N!="nocursor")},pn.prototype.onContextMenu=function(){},pn.prototype.resetPosition=function(){},pn.prototype.needsContentAttribute=!0;function jn(N,U){var ne=Yi(N,U.line);if(!ne||ne.hidden)return null;var se=Be(N.doc,U.line),ge=zi(ne,se,U.line),ze=At(se,N.doc.direction),Ct="left";if(ze){var Zt=Le(ze,U.ch);Ct=Zt%2?"right":"left"}var yr=Ma(ge.map,U.ch,Ct);return yr.offset=yr.collapse=="right"?yr.end:yr.start,yr}function _i(N){for(var U=N;U;U=U.parentNode)if(/CodeMirror-gutter-wrapper/.test(U.className))return!0;return!1}function Di(N,U){return U&&(N.bad=!0),N}function da(N,U,ne,se,ge){var ze="",Ct=!1,Zt=N.doc.lineSeparator(),yr=!1;function Tr(Ti){return function(la){return la.id==Ti}}function Pn(){Ct&&(ze+=Zt,yr&&(ze+=Zt),Ct=yr=!1)}function $n(Ti){Ti&&(Pn(),ze+=Ti)}function Si(Ti){if(Ti.nodeType==1){var la=Ti.getAttribute("cm-text");if(la){$n(la);return}var Ta=Ti.getAttribute("cm-marker"),Wa;if(Ta){var ka=N.findMarks(ur(se,0),ur(ge+1,0),Tr(+Ta));ka.length&&(Wa=ka[0].find(0))&&$n(nt(N.doc,Wa.from,Wa.to).join(Zt));return}if(Ti.getAttribute("contenteditable")=="false")return;var Na=/^(pre|div|p|li|table|br)$/i.test(Ti.nodeName);if(!/^br$/i.test(Ti.nodeName)&&Ti.textContent.length==0)return;Na&&Pn();for(var qa=0;qa<Ti.childNodes.length;qa++)Si(Ti.childNodes[qa]);/^(pre|p)$/i.test(Ti.nodeName)&&(yr=!0),Na&&(Ct=!0)}else Ti.nodeType==3&&$n(Ti.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(Si(U),U==ne);)U=U.nextSibling,yr=!1;return ze}function Ji(N,U,ne){var se;if(U==N.display.lineDiv){if(se=N.display.lineDiv.childNodes[ne],!se)return Di(N.clipPos(ur(N.display.viewTo-1)),!0);U=null,ne=0}else for(se=U;;se=se.parentNode){if(!se||se==N.display.lineDiv)return null;if(se.parentNode&&se.parentNode==N.display.lineDiv)break}for(var ge=0;ge<N.display.view.length;ge++){var ze=N.display.view[ge];if(ze.node==se)return Qa(ze,U,ne)}}function Qa(N,U,ne){var se=N.text.firstChild,ge=!1;if(!U||!F(se,U))return Di(ur(kr(N.line),0),!0);if(U==se&&(ge=!0,U=se.childNodes[ne],ne=0,!U)){var ze=N.rest?We(N.rest):N.line;return Di(ur(kr(ze),ze.text.length),ge)}var Ct=U.nodeType==3?U:null,Zt=U;for(!Ct&&U.childNodes.length==1&&U.firstChild.nodeType==3&&(Ct=U.firstChild,ne&&(ne=Ct.nodeValue.length));Zt.parentNode!=se;)Zt=Zt.parentNode;var yr=N.measure,Tr=yr.maps;function Pn(Wa,ka,Na){for(var qa=-1;qa<(Tr?Tr.length:0);qa++)for(var ho=qa<0?yr.map:Tr[qa],ns=0;ns<ho.length;ns+=3){var Mo=ho[ns+2];if(Mo==Wa||Mo==ka){var Ss=kr(qa<0?N.line:N.rest[qa]),Zs=ho[ns]+Na;return(Na<0||Mo!=Wa)&&(Zs=ho[ns+(Na?1:0)]),ur(Ss,Zs)}}}var $n=Pn(Ct,Zt,ne);if($n)return Di($n,ge);for(var Si=Zt.nextSibling,Ti=Ct?Ct.nodeValue.length-ne:0;Si;Si=Si.nextSibling){if($n=Pn(Si,Si.firstChild,0),$n)return Di(ur($n.line,$n.ch-Ti),ge);Ti+=Si.textContent.length}for(var la=Zt.previousSibling,Ta=ne;la;la=la.previousSibling){if($n=Pn(la,la.firstChild,-1),$n)return Di(ur($n.line,$n.ch+Ta),ge);Ta+=la.textContent.length}}var ya=function(U){this.cm=U,this.prevInput="",this.pollingFast=!1,this.polling=new Q,this.hasSelection=!1,this.composing=null};ya.prototype.init=function(N){var U=this,ne=this,se=this.cm;this.createField(N);var ge=this.textarea;N.wrapper.insertBefore(this.wrapper,N.wrapper.firstChild),s&&(ge.style.width="0px"),Ke(ge,"input",function(){h&&u>=9&&U.hasSelection&&(U.hasSelection=null),ne.poll()}),Ke(ge,"paste",function(Ct){if(dr(se,Ct)||Ut(Ct,se))return;se.state.pasteIncoming=+new Date,ne.fastPoll()});function ze(Ct){if(dr(se,Ct))return;if(se.somethingSelected())et({lineWise:!1,text:se.getSelections()});else if(se.options.lineWiseCopyCut){var Zt=$t(se);et({lineWise:!0,text:Zt.text}),Ct.type=="cut"?se.setSelections(Zt.ranges,null,be):(ne.prevInput="",ge.value=Zt.text.join(`
|
|
|
`),j(ge))}else return;Ct.type=="cut"&&(se.state.cutIncoming=+new Date)}Ke(ge,"cut",ze),Ke(ge,"copy",ze),Ke(N.scroller,"paste",function(Ct){if(Qn(N,Ct)||dr(se,Ct))return;if(!ge.dispatchEvent){se.state.pasteIncoming=+new Date,ne.focus();return}var Zt=new Event("paste");Zt.clipboardData=Ct.clipboardData,ge.dispatchEvent(Zt)}),Ke(N.lineSpace,"selectstart",function(Ct){Qn(N,Ct)||Xe(Ct)}),Ke(ge,"compositionstart",function(){var Ct=se.getCursor("from");ne.composing&&ne.composing.range.clear(),ne.composing={start:Ct,range:se.markText(Ct,se.getCursor("to"),{className:"CodeMirror-composing"})}}),Ke(ge,"compositionend",function(){ne.composing&&(ne.poll(),ne.composing.range.clear(),ne.composing=null)})},ya.prototype.createField=function(N){this.wrapper=ln(),this.textarea=this.wrapper.firstChild},ya.prototype.screenReaderLabelChanged=function(N){N?this.textarea.setAttribute("aria-label",N):this.textarea.removeAttribute("aria-label")},ya.prototype.prepareSelection=function(){var N=this.cm,U=N.display,ne=N.doc,se=zr(N);if(N.options.moveInputWithCursor){var ge=mo(N,ne.sel.primary().head,"div"),ze=U.wrapper.getBoundingClientRect(),Ct=U.lineDiv.getBoundingClientRect();se.teTop=Math.max(0,Math.min(U.wrapper.clientHeight-10,ge.top+Ct.top-ze.top)),se.teLeft=Math.max(0,Math.min(U.wrapper.clientWidth-10,ge.left+Ct.left-ze.left))}return se},ya.prototype.showSelection=function(N){var U=this.cm,ne=U.display;O(ne.cursorDiv,N.cursors),O(ne.selectionDiv,N.selection),N.teTop!=null&&(this.wrapper.style.top=N.teTop+"px",this.wrapper.style.left=N.teLeft+"px")},ya.prototype.reset=function(N){if(this.contextMenuPending||this.composing)return;var U=this.cm;if(U.somethingSelected()){this.prevInput="";var ne=U.getSelection();this.textarea.value=ne,U.state.focused&&j(this.textarea),h&&u>=9&&(this.hasSelection=ne)}else N||(this.prevInput=this.textarea.value="",h&&u>=9&&(this.hasSelection=null))},ya.prototype.getField=function(){return this.textarea},ya.prototype.supportsTouch=function(){return!1},ya.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!d||P()!=this.textarea))try{this.textarea.focus()}catch(N){}},ya.prototype.blur=function(){this.textarea.blur()},ya.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ya.prototype.receivedFocus=function(){this.slowPoll()},ya.prototype.slowPoll=function(){var N=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){N.poll(),N.cm.state.focused&&N.slowPoll()})},ya.prototype.fastPoll=function(){var N=!1,U=this;U.pollingFast=!0;function ne(){var se=U.poll();!se&&!N?(N=!0,U.polling.set(60,ne)):(U.pollingFast=!1,U.slowPoll())}U.polling.set(20,ne)},ya.prototype.poll=function(){var N=this,U=this.cm,ne=this.textarea,se=this.prevInput;if(this.contextMenuPending||!U.state.focused||sr(ne)&&!se&&!this.composing||U.isReadOnly()||U.options.disableInput||U.state.keySeq)return!1;var ge=ne.value;if(ge==se&&!U.somethingSelected())return!1;if(h&&u>=9&&this.hasSelection===ge||g&&/[\uf700-\uf7ff]/.test(ge))return U.display.input.reset(),!1;if(U.doc.sel==U.display.selForContextMenu){var ze=ge.charCodeAt(0);if(ze==8203&&!se&&(se="\u200B"),ze==8666)return this.reset(),this.cm.execCommand("undo")}for(var Ct=0,Zt=Math.min(se.length,ge.length);Ct<Zt&&se.charCodeAt(Ct)==ge.charCodeAt(Ct);)++Ct;return Eo(U,function(){yt(U,ge.slice(Ct),se.length-Ct,null,N.composing?"*compose":null),ge.length>1e3||ge.indexOf(`
|
|
|
`)>-1?ne.value=N.prevInput="":N.prevInput=ge,N.composing&&(N.composing.range.clear(),N.composing.range=U.markText(N.composing.start,U.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ya.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ya.prototype.onKeyPress=function(){h&&u>=9&&(this.hasSelection=null),this.fastPoll()},ya.prototype.onContextMenu=function(N){var U=this,ne=U.cm,se=ne.display,ge=U.textarea;U.contextMenuPending&&U.contextMenuPending();var ze=_o(ne,N),Ct=se.scroller.scrollTop;if(!ze||o)return;var Zt=ne.options.resetSelectionOnContextMenu;Zt&&ne.doc.sel.contains(ze)==-1&&zo(ne,Ts)(ne.doc,_e(ze),be);var yr=ge.style.cssText,Tr=U.wrapper.style.cssText,Pn=U.wrapper.offsetParent.getBoundingClientRect();U.wrapper.style.cssText="position: static",ge.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(N.clientY-Pn.top-5)+"px; left: "+(N.clientX-Pn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var $n;a&&($n=window.scrollY),se.input.focus(),a&&window.scrollTo(null,$n),se.input.reset(),ne.somethingSelected()||(ge.value=U.prevInput=" "),U.contextMenuPending=Ti,se.selForContextMenu=ne.doc.sel,clearTimeout(se.detectingSelectAll);function Si(){if(ge.selectionStart!=null){var Ta=ne.somethingSelected(),Wa="\u200B"+(Ta?ge.value:"");ge.value="\u21DA",ge.value=Wa,U.prevInput=Ta?"":"\u200B",ge.selectionStart=1,ge.selectionEnd=Wa.length,se.selForContextMenu=ne.doc.sel}}function Ti(){if(U.contextMenuPending!=Ti)return;if(U.contextMenuPending=!1,U.wrapper.style.cssText=Tr,ge.style.cssText=yr,h&&u<9&&se.scrollbars.setScrollTop(se.scroller.scrollTop=Ct),ge.selectionStart!=null){(!h||h&&u<9)&&Si();var Ta=0,Wa=function ka(){se.selForContextMenu==ne.doc.sel&&ge.selectionStart==0&&ge.selectionEnd>0&&U.prevInput=="\u200B"?zo(ne,Os)(ne):Ta++<10?se.detectingSelectAll=setTimeout(ka,500):(se.selForContextMenu=null,se.input.reset())};se.detectingSelectAll=setTimeout(Wa,200)}}if(h&&u>=9&&Si(),C){$e(N);var la=function Ta(){ct(window,"mouseup",Ta),setTimeout(Ti,20)};Ke(window,"mouseup",la)}else setTimeout(Ti,50)},ya.prototype.readOnlyChanged=function(N){N||this.reset(),this.textarea.disabled=N=="nocursor",this.textarea.readOnly=!!N},ya.prototype.setUneditable=function(){},ya.prototype.needsContentAttribute=!1;function fo(N,U){if(U=U?z(U):{},U.value=N.value,!U.tabindex&&N.tabIndex&&(U.tabindex=N.tabIndex),!U.placeholder&&N.placeholder&&(U.placeholder=N.placeholder),U.autofocus==null){var ne=P();U.autofocus=ne==N||N.getAttribute("autofocus")!=null&&ne==document.body}function se(){N.value=Zt.getValue()}var ge;if(N.form&&(Ke(N.form,"submit",se),!U.leaveSubmitMethodAlone)){var ze=N.form;ge=ze.submit;try{var Ct=ze.submit=function(){se(),ze.submit=ge,ze.submit(),ze.submit=Ct}}catch(yr){}}U.finishInit=function(yr){yr.save=se,yr.getTextArea=function(){return N},yr.toTextArea=function(){yr.toTextArea=isNaN,se(),N.parentNode.removeChild(yr.getWrapperElement()),N.style.display="",N.form&&(ct(N.form,"submit",se),!U.leaveSubmitMethodAlone&&typeof N.form.submit=="function"&&(N.form.submit=ge))}},N.style.display="none";var Zt=Pr(function(yr){return N.parentNode.insertBefore(yr,N.nextSibling)},U);return Zt}function za(N){N.off=ct,N.on=Ke,N.wheelEventPixels=Cn,N.Doc=Cl,N.splitLines=fn,N.countColumn=V,N.findColumn=ke,N.isWordChar=J,N.Pass=ce,N.signal=Gt,N.Line=ci,N.changeEnd=Je,N.scrollbarModel=cs,N.Pos=ur,N.cmpPos=Nt,N.modes=xt,N.mimeModes=rn,N.resolveMode=ri,N.getMode=Ui,N.modeExtensions=Bn,N.extendMode=Jn,N.copyState=Xt,N.startState=Fe,N.innerMode=_t,N.commands=iu,N.keyMap=Jl,N.keyName=bu,N.isModifierKey=yu,N.lookupKey=Zl,N.normalizeKeyMap=Ru,N.StringStream=Pe,N.SharedTextMarker=tu,N.TextMarker=Nl,N.LineWidget=xl,N.e_preventDefault=Xe,N.e_stopPropagation=pe,N.e_stop=$e,N.addClass=X,N.contains=F,N.rmClass=T,N.keyNames=zl}Ze(Pr),Ur(Pr);var Xo="iter insert remove copy getEditor constructor".split(" ");for(var ls in Cl.prototype)Cl.prototype.hasOwnProperty(ls)&&G(Xo,ls)<0&&(Pr.prototype[ls]=function(N){return function(){return N.apply(this.doc,arguments)}}(Cl.prototype[ls]));return Vt(Cl),Pr.inputStyles={textarea:ya,contenteditable:pn},Pr.defineMode=function(N){!Pr.defaults.mode&&N!="null"&&(Pr.defaults.mode=N),Dn.apply(this,arguments)},Pr.defineMIME=Xn,Pr.defineMode("null",function(){return{token:function(U){return U.skipToEnd()}}}),Pr.defineMIME("text/plain","null"),Pr.defineExtension=function(N,U){Pr.prototype[N]=U},Pr.defineDocExtension=function(N,U){Cl.prototype[N]=U},Pr.fromTextArea=fo,za(Pr),Pr.version="5.58.2",Pr})},W1kz:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("Mt2t"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},W2nI:function(k,D,n){var y=n("IwbS"),p=n("ProS"),x=n("bYtY"),A=["itemStyle","opacity"],m=["emphasis","itemStyle","opacity"],f=["lineStyle","opacity"],h=["emphasis","lineStyle","opacity"];function u(l,r){return l.getVisual("opacity")||l.getModel().get(r)}function a(l,r,s){var c=l.getGraphicEl(),d=u(l,r);s!=null&&(d==null&&(d=1),d*=s),c.downplay&&c.downplay(),c.traverse(function(g){g.type!=="group"&&g.setStyle("opacity",d)})}function i(l,r){var s=u(l,r),c=l.getGraphicEl();c.traverse(function(d){d.type!=="group"&&d.setStyle("opacity",s)}),c.highlight&&c.highlight()}var t=y.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(l,r){var s=r.extent;l.moveTo(r.x1,r.y1),l.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(l.lineTo(r.x2+s,r.y2),l.bezierCurveTo(r.cpx2+s,r.cpy2,r.cpx1+s,r.cpy1,r.x1+s,r.y1)):(l.lineTo(r.x2,r.y2+s),l.bezierCurveTo(r.cpx2,r.cpy2+s,r.cpx1,r.cpy1+s,r.x1,r.y1+s)),l.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),o=p.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(l,r,s){var c=this,d=l.getGraph(),g=this.group,v=l.layoutInfo,b=v.width,S=v.height,E=l.getData(),C=l.getData("edge"),_=l.get("orient");this._model=l,g.removeAll(),g.attr("position",[v.x,v.y]),d.eachEdge(function(T){var w=new t;w.dataIndex=T.dataIndex,w.seriesIndex=l.seriesIndex,w.dataType="edge";var O=T.getModel("lineStyle"),I=O.get("curveness"),R=T.node1.getLayout(),M=T.node1.getModel(),F=M.get("localX"),P=M.get("localY"),X=T.node2.getLayout(),B=T.node2.getModel(),j=B.get("localX"),W=B.get("localY"),z=T.getLayout(),V,Q,G,ee,ce,be,le,Ie;w.shape.extent=Math.max(1,z.dy),w.shape.orient=_,_==="vertical"?(V=(F!=null?F*b:R.x)+z.sy,Q=(P!=null?P*S:R.y)+R.dy,G=(j!=null?j*b:X.x)+z.ty,ee=W!=null?W*S:X.y,ce=V,be=Q*(1-I)+ee*I,le=G,Ie=Q*I+ee*(1-I)):(V=(F!=null?F*b:R.x)+R.dx,Q=(P!=null?P*S:R.y)+z.sy,G=j!=null?j*b:X.x,ee=(W!=null?W*S:X.y)+z.ty,ce=V*(1-I)+G*I,be=Q,le=V*I+G*(1-I),Ie=ee),w.setShape({x1:V,y1:Q,x2:G,y2:ee,cpx1:ce,cpy1:be,cpx2:le,cpy2:Ie}),w.setStyle(O.getItemStyle());switch(w.style.fill){case"source":w.style.fill=T.node1.getVisual("color");break;case"target":w.style.fill=T.node2.getVisual("color");break}y.setHoverStyle(w,T.getModel("emphasis.lineStyle").getItemStyle()),g.add(w),C.setItemGraphicEl(T.dataIndex,w)}),d.eachNode(function(T){var w=T.getLayout(),O=T.getModel(),I=O.get("localX"),R=O.get("localY"),M=O.getModel("label"),F=O.getModel("emphasis.label"),P=new y.Rect({shape:{x:I!=null?I*b:w.x,y:R!=null?R*S:w.y,width:w.dx,height:w.dy},style:O.getModel("itemStyle").getItemStyle()}),X=T.getModel("emphasis.itemStyle").getItemStyle();y.setLabelStyle(P.style,X,M,F,{labelFetcher:l,labelDataIndex:T.dataIndex,defaultText:T.id,isRectText:!0}),P.setStyle("fill",T.getVisual("color")),y.setHoverStyle(P,X),g.add(P),E.setItemGraphicEl(T.dataIndex,P),P.dataType="node"}),E.eachItemGraphicEl(function(T,w){var O=E.getItemModel(w);O.get("draggable")&&(T.drift=function(I,R){c._focusAdjacencyDisabled=!0,this.shape.x+=I,this.shape.y+=R,this.dirty(),s.dispatchAction({type:"dragNode",seriesId:l.id,dataIndex:E.getRawIndex(w),localX:this.shape.x/b,localY:this.shape.y/S})},T.ondragend=function(){c._focusAdjacencyDisabled=!1},T.draggable=!0,T.cursor="move"),T.highlight=function(){this.trigger("emphasis")},T.downplay=function(){this.trigger("normal")},T.focusNodeAdjHandler&&T.off("mouseover",T.focusNodeAdjHandler),T.unfocusNodeAdjHandler&&T.off("mouseout",T.unfocusNodeAdjHandler),O.get("focusNodeAdjacency")&&(T.on("mouseover",T.focusNodeAdjHandler=function(){c._focusAdjacencyDisabled||(c._clearTimer(),s.dispatchAction({type:"focusNodeAdjacency",seriesId:l.id,dataIndex:T.dataIndex}))}),T.on("mouseout",T.unfocusNodeAdjHandler=function(){c._focusAdjacencyDisabled||c._dispatchUnfocus(s)}))}),C.eachItemGraphicEl(function(T,w){var O=C.getItemModel(w);T.focusNodeAdjHandler&&T.off("mouseover",T.focusNodeAdjHandler),T.unfocusNodeAdjHandler&&T.off("mouseout",T.unfocusNodeAdjHandler),O.get("focusNodeAdjacency")&&(T.on("mouseover",T.focusNodeAdjHandler=function(){c._focusAdjacencyDisabled||(c._clearTimer(),s.dispatchAction({type:"focusNodeAdjacency",seriesId:l.id,edgeDataIndex:T.dataIndex}))}),T.on("mouseout",T.unfocusNodeAdjHandler=function(){c._focusAdjacencyDisabled||c._dispatchUnfocus(s)}))}),!this._data&&l.get("animation")&&g.setClipPath(e(g.getBoundingRect(),l,function(){g.removeClipPath()})),this._data=l.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(l){var r=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){r._unfocusDelayTimer=null,l.dispatchAction({type:"unfocusNodeAdjacency",seriesId:r._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(l,r,s,c){var d=l.getData(),g=d.graph,v=c.dataIndex,b=d.getItemModel(v),S=c.edgeDataIndex;if(v==null&&S==null)return;var E=g.getNodeByIndex(v),C=g.getEdgeByIndex(S);if(g.eachNode(function(T){a(T,A,.1)}),g.eachEdge(function(T){a(T,f,.1)}),E){i(E,m);var _=b.get("focusNodeAdjacency");_==="outEdges"?x.each(E.outEdges,function(T){if(T.dataIndex<0)return;i(T,h),i(T.node2,m)}):_==="inEdges"?x.each(E.inEdges,function(T){if(T.dataIndex<0)return;i(T,h),i(T.node1,m)}):_==="allEdges"&&x.each(E.edges,function(T){if(T.dataIndex<0)return;i(T,h),T.node1!==E&&i(T.node1,m),T.node2!==E&&i(T.node2,m)})}C&&(i(C,h),i(C.node1,m),i(C.node2,m))},unfocusNodeAdjacency:function(l,r,s,c){var d=l.getGraph();d.eachNode(function(g){a(g,A)}),d.eachEdge(function(g){a(g,f)})}});function e(l,r,s){var c=new y.Rect({shape:{x:l.x-10,y:l.y-10,width:0,height:l.height+20}});return y.initProps(c,{shape:{width:l.width+20}},r,s),c}k.exports=o},W4dC:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=x.each,m=x.createHashMap,f=n("7DRL"),h=n("TIY9"),u=n("yS9w"),a=n("mFDi"),i={geoJSON:h,svg:u},t={load:function(r,s,c){var d=[],g=m(),v=m(),b,S=l(r);return A(S,function(E){var C=i[E.type].load(r,E,c);A(C.regions,function(T){var w=T.name;s&&s.hasOwnProperty(w)&&(T=T.cloneShallow(w=s[w])),d.push(T),g.set(w,T),v.set(w,T.center)});var _=C.boundingRect;_&&(b?b.union(_):b=_.clone())}),{regions:d,regionsMap:g,nameCoordMap:v,boundingRect:b||new a(0,0,0,0)}},makeGraphic:o("makeGraphic"),removeGraphic:o("removeGraphic")};function o(r){return function(s,c){var d=l(s),g=[];return A(d,function(v){var b=i[v.type][r];b&&g.push(b(s,v,c))}),g}}function e(r){}function l(r){var s=f.retrieveMap(r)||[];return s}k.exports=t},WGYa:function(k,D,n){var y=n("7yuC"),p=y.forceLayout,x=n("HF/U"),A=x.simpleLayout,m=n("lOQZ"),f=m.circularLayout,h=n("OELB"),u=h.linearMap,a=n("QBsz"),i=n("bYtY");function t(o){o.eachSeriesByType("graph",function(e){var l=e.coordinateSystem;if(l&&l.type!=="view")return;if(e.get("layout")==="force"){var r=e.preservedPoints||{},s=e.getGraph(),c=s.data,d=s.edgeData,g=e.getModel("force"),v=g.get("initLayout");e.preservedPoints?c.each(function(M){var F=c.getId(M);c.setItemLayout(M,r[F]||[NaN,NaN])}):!v||v==="none"?A(e):v==="circular"&&f(e,"value");var b=c.getDataExtent("value"),S=d.getDataExtent("value"),E=g.get("repulsion"),C=g.get("edgeLength");i.isArray(E)||(E=[E,E]),i.isArray(C)||(C=[C,C]),C=[C[1],C[0]];var _=c.mapArray("value",function(M,F){var P=c.getItemLayout(F),X=u(M,b,E);return isNaN(X)&&(X=(E[0]+E[1])/2),{w:X,rep:X,fixed:c.getItemModel(F).get("fixed"),p:!P||isNaN(P[0])||isNaN(P[1])?null:P}}),T=d.mapArray("value",function(M,F){var P=s.getEdgeByIndex(F),X=u(M,S,C);isNaN(X)&&(X=(C[0]+C[1])/2);var B=P.getModel();return{n1:_[P.node1.dataIndex],n2:_[P.node2.dataIndex],d:X,curveness:B.get("lineStyle.curveness")||0,ignoreForceLayout:B.get("ignoreForceLayout")}}),l=e.coordinateSystem,w=l.getBoundingRect(),O=p(_,T,{rect:w,gravity:g.get("gravity"),friction:g.get("friction")}),I=O.step;O.step=function(M){for(var F=0,P=_.length;F<P;F++)_[F].fixed&&a.copy(_[F].p,s.getNodeByIndex(F).getLayout());I(function(X,B,j){for(var W=0,z=X.length;W<z;W++)X[W].fixed||s.getNodeByIndex(W).setLayout(X[W].p),r[c.getId(W)]=X[W].p;for(var W=0,z=B.length;W<z;W++){var V=B[W],Q=s.getEdgeByIndex(W),G=V.n1.p,ee=V.n2.p,ce=Q.getLayout();ce=ce?ce.slice():[],ce[0]=ce[0]||[],ce[1]=ce[1]||[],a.copy(ce[0],G),a.copy(ce[1],ee),+V.curveness&&(ce[2]=[(G[0]+ee[0])/2-(G[1]-ee[1])*V.curveness,(G[1]+ee[1])/2-(ee[0]-G[0])*V.curveness]),Q.setLayout(ce)}M&&M(j)})},e.forceLayout=O,e.preservedPoints=r,O.step()}else e.forceLayout=null})}k.exports=t},"WN+l":function(k,D,n){var y=n("bYtY"),p=n("IwbS");function x(m,f,h,u){var a=h.axis;if(a.scale.isBlank())return;var i=h.getModel("splitArea"),t=i.getModel("areaStyle"),o=t.get("color"),e=u.coordinateSystem.getRect(),l=a.getTicksCoords({tickModel:i,clamp:!0});if(!l.length)return;var r=o.length,s=m.__splitAreaColors,c=y.createHashMap(),d=0;if(s)for(var g=0;g<l.length;g++){var v=s.get(l[g].tickValue);if(v!=null){d=(v+(r-1)*g)%r;break}}var b=a.toGlobalCoord(l[0].coord),S=t.getAreaStyle();o=y.isArray(o)?o:[o];for(var g=1;g<l.length;g++){var E=a.toGlobalCoord(l[g].coord),C,_,T,w;a.isHorizontal()?(C=b,_=e.y,T=E-C,w=e.height,b=C+T):(C=e.x,_=b,T=e.width,w=E-_,b=_+w);var O=l[g-1].tickValue;O!=null&&c.set(O,d),f.add(new p.Rect({anid:O!=null?"area_"+O:null,shape:{x:C,y:_,width:T,height:w},style:y.defaults({fill:o[d]},S),silent:!0})),d=(d+1)%r}m.__splitAreaColors=c}function A(m){m.__splitAreaColors=null}D.rectCoordAxisBuildSplitArea=x,D.rectCoordAxisHandleRemove=A},WYAk:function(k,D,n){(function(y,p){k.exports=D=p(n("Ib8C"))})(this,function(y){(function(){var p=y,x=p.lib,A=x.Base,m=p.enc,f=m.Utf8,h=p.algo,u=h.HMAC=A.extend({init:function(i,t){i=this._hasher=new i.init,typeof t=="string"&&(t=f.parse(t));var o=i.blockSize,e=o*4;t.sigBytes>e&&(t=i.finalize(t)),t.clamp();for(var l=this._oKey=t.clone(),r=this._iKey=t.clone(),s=l.words,c=r.words,d=0;d<o;d++)s[d]^=1549556828,c[d]^=909522486;l.sigBytes=r.sigBytes=e,this.reset()},reset:function(){var i=this._hasher;i.reset(),i.update(this._iKey)},update:function(i){return this._hasher.update(i),this},finalize:function(i){var t=this._hasher,o=t.finalize(i);t.reset();var e=t.finalize(this._oKey.clone().concat(o));return e}})})()})},Wqna:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=x.isObject,m=x.each,f=x.map,h=x.indexOf,u=x.retrieve,a=n("+TT/"),i=a.getLayoutRect,t=n("aX7z"),o=t.createScaleByModel,e=t.ifAxisCrossZero,l=t.niceScaleExtent,r=t.estimateLabelUnionRect,s=n("y+lR"),c=n("7AJT"),d=n("IDmD"),g=n("7hqr"),v=g.getStackedDimension;n("jtI2");function b(M,F,P){return M.getCoordSysModel()===F}function S(M,F,P){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(M,F,P),this.model=M}var E=S.prototype;E.type="grid",E.axisPointerEnabled=!0,E.getRect=function(){return this._rect},E.update=function(M,F){var P=this._axesMap;this._updateScale(M,this.model),m(P.x,function(B){l(B.scale,B.model)}),m(P.y,function(B){l(B.scale,B.model)});var X={};m(P.x,function(B){C(P,"y",B,X)}),m(P.y,function(B){C(P,"x",B,X)}),this.resize(this.model,F)};function C(M,F,P,X){P.getAxesOnZeroOf=function(){return j?[j]:[]};var B=M[F],j,W=P.model,z=W.get("axisLine.onZero"),V=W.get("axisLine.onZeroAxisIndex");if(!z)return;if(V!=null)_(B[V])&&(j=B[V]);else for(var Q in B)if(B.hasOwnProperty(Q)&&_(B[Q])&&!X[G(B[Q])]){j=B[Q];break}j&&(X[G(j)]=!0);function G(ee){return ee.dim+"_"+ee.index}}function _(M){return M&&M.type!=="category"&&M.type!=="time"&&e(M)}E.resize=function(M,F,P){var X=i(M.getBoxLayoutParams(),{width:F.getWidth(),height:F.getHeight()});this._rect=X;var B=this._axesList;j(),!P&&M.get("containLabel")&&(m(B,function(W){if(!W.model.get("axisLabel.inside")){var z=r(W);if(z){var V=W.isHorizontal()?"height":"width",Q=W.model.get("axisLabel.margin");X[V]-=z[V]+Q,W.position==="top"?X.y+=z.height+Q:W.position==="left"&&(X.x+=z.width+Q)}}}),j());function j(){m(B,function(W){var z=W.isHorizontal(),V=z?[0,X.width]:[0,X.height],Q=W.inverse?1:0;W.setExtent(V[Q],V[1-Q]),T(W,z?X.x:X.y)})}},E.getAxis=function(M,F){var P=this._axesMap[M];if(P!=null){if(F==null){for(var X in P)if(P.hasOwnProperty(X))return P[X]}return P[F]}},E.getAxes=function(){return this._axesList.slice()},E.getCartesian=function(M,F){if(M!=null&&F!=null){var P="x"+M+"y"+F;return this._coordsMap[P]}A(M)&&(F=M.yAxisIndex,M=M.xAxisIndex);for(var X=0,B=this._coordsList;X<B.length;X++)if(B[X].getAxis("x").index===M||B[X].getAxis("y").index===F)return B[X]},E.getCartesians=function(){return this._coordsList.slice()},E.convertToPixel=function(M,F,P){var X=this._findConvertTarget(M,F);return X.cartesian?X.cartesian.dataToPoint(P):X.axis?X.axis.toGlobalCoord(X.axis.dataToCoord(P)):null},E.convertFromPixel=function(M,F,P){var X=this._findConvertTarget(M,F);return X.cartesian?X.cartesian.pointToData(P):X.axis?X.axis.coordToData(X.axis.toLocalCoord(P)):null},E._findConvertTarget=function(M,F){var P=F.seriesModel,X=F.xAxisModel||P&&P.getReferringComponents("xAxis")[0],B=F.yAxisModel||P&&P.getReferringComponents("yAxis")[0],j=F.gridModel,W=this._coordsList,z,V;if(P)z=P.coordinateSystem,h(W,z)<0&&(z=null);else if(X&&B)z=this.getCartesian(X.componentIndex,B.componentIndex);else if(X)V=this.getAxis("x",X.componentIndex);else if(B)V=this.getAxis("y",B.componentIndex);else if(j){var Q=j.coordinateSystem;Q===this&&(z=this._coordsList[0])}return{cartesian:z,axis:V}},E.containPoint=function(M){var F=this._coordsList[0];if(F)return F.containPoint(M)},E._initCartesian=function(M,F,P){var X={left:!1,right:!1,top:!1,bottom:!1},B={x:{},y:{}},j={x:0,y:0};if(F.eachComponent("xAxis",W("x"),this),F.eachComponent("yAxis",W("y"),this),!j.x||!j.y){this._axesMap={},this._axesList=[];return}this._axesMap=B,m(B.x,function(z,V){m(B.y,function(Q,G){var ee="x"+V+"y"+G,ce=new s(ee);ce.grid=this,ce.model=M,this._coordsMap[ee]=ce,this._coordsList.push(ce),ce.addAxis(z),ce.addAxis(Q)},this)},this);function W(z){return function(V,Q){if(!b(V,M,F))return;var G=V.get("position");z==="x"?G!=="top"&&G!=="bottom"&&(G=X.bottom?"top":"bottom"):G!=="left"&&G!=="right"&&(G=X.left?"right":"left"),X[G]=!0;var ee=new c(z,o(V),[0,0],V.get("type"),G),ce=ee.type==="category";ee.onBand=ce&&V.get("boundaryGap"),ee.inverse=V.get("inverse"),V.axis=ee,ee.model=V,ee.grid=this,ee.index=Q,this._axesList.push(ee),B[z][Q]=ee,j[z]++}}},E._updateScale=function(M,F){m(this._axesList,function(X){X.scale.setExtent(Infinity,-Infinity)}),M.eachSeries(function(X){if(I(X)){var B=O(X,M),j=B[0],W=B[1];if(!b(j,F,M)||!b(W,F,M))return;var z=this.getCartesian(j.componentIndex,W.componentIndex),V=X.getData(),Q=z.getAxis("x"),G=z.getAxis("y");V.type==="list"&&(P(V,Q,X),P(V,G,X))}},this);function P(X,B,j){m(X.mapDimension(B.dim,!0),function(W){B.scale.unionExtentFromData(X,v(X,W))})}},E.getTooltipAxes=function(M){var F=[],P=[];return m(this.getCartesians(),function(X){var B=M!=null&&M!=="auto"?X.getAxis(M):X.getBaseAxis(),j=X.getOtherAxis(B);h(F,B)<0&&F.push(B),h(P,j)<0&&P.push(j)}),{baseAxes:F,otherAxes:P}};function T(M,F){var P=M.getExtent(),X=P[0]+P[1];M.toGlobalCoord=M.dim==="x"?function(B){return B+F}:function(B){return X-B+F},M.toLocalCoord=M.dim==="x"?function(B){return B-F}:function(B){return X-B+F}}var w=["xAxis","yAxis"];function O(M,F){return f(w,function(P){var X=M.getReferringComponents(P)[0];return X})}function I(M){return M.get("coordinateSystem")==="cartesian2d"}S.create=function(M,F){var P=[];return M.eachComponent("grid",function(X,B){var j=new S(X,M,F);j.name="grid_"+B,j.resize(X,F,!0),X.coordinateSystem=j,P.push(j)}),M.eachSeries(function(X){if(!I(X))return;var B=O(X,M),j=B[0],W=B[1],z=j.getCoordSysModel(),V=z.coordinateSystem;X.coordinateSystem=V.getCartesian(j.componentIndex,W.componentIndex)}),P},S.dimensions=S.prototype.dimensions=s.prototype.dimensions,d.register("cartesian2d",S);var R=S;k.exports=R},"WtK/":function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("PSzr")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="BarsOutlined";var i=A.forwardRef(a);D.default=i},"X2/X":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{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:"plus-square",theme:"outlined"};D.default=y},XOKv:function(k,D,n){n("OXB0"),n("SA4+")},XYMm:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("HBhm")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="PaperClipOutlined";var i=A.forwardRef(a);D.default=i},Xi7e:function(k,D,n){var y=n("KMkd"),p=n("adU4"),x=n("tMB7"),A=n("+6XX"),m=n("Z8oC");function f(h){var u=-1,a=h==null?0:h.length;for(this.clear();++u<a;){var i=h[u];this.set(i[0],i[1])}}f.prototype.clear=y,f.prototype.delete=p,f.prototype.get=x,f.prototype.has=A,f.prototype.set=m,k.exports=f},Xmg4:function(k,D,n){var y=n("bYtY"),p=n("LPTA"),x=p.devicePixelRatio,A=n("K2GJ"),m=n("3C/r");function f(){return!1}function h(i,t,o){var e=y.createCanvas(),l=t.getWidth(),r=t.getHeight(),s=e.style;return s&&(s.position="absolute",s.left=0,s.top=0,s.width=l+"px",s.height=r+"px",e.setAttribute("data-zr-dom-id",i)),e.width=l*o,e.height=r*o,e}var u=function(t,o,e){var l;e=e||x,typeof t=="string"?l=h(t,o,e):y.isObject(t)&&(l=t,t=l.id),this.id=t,this.dom=l;var r=l.style;r&&(l.onselectstart=f,r["-webkit-user-select"]="none",r["user-select"]="none",r["-webkit-touch-callout"]="none",r["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",r.padding=0,r.margin=0,r["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=o,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=e};u.prototype={constructor:u,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=h("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},resize:function(t,o){var e=this.dpr,l=this.dom,r=l.style,s=this.domBack;r&&(r.width=t+"px",r.height=o+"px"),l.width=t*e,l.height=o*e,s&&(s.width=t*e,s.height=o*e,e!==1&&this.ctxBack.scale(e,e))},clear:function(t,o){var e=this.dom,l=this.ctx,r=e.width,s=e.height,o=o||this.clearColor,c=this.motionBlur&&!t,d=this.lastFrameAlpha,g=this.dpr;if(c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,r/g,s/g)),l.clearRect(0,0,r,s),o&&o!=="transparent"){var v;o.colorStops?(v=o.__canvasGradient||A.getGradient(l,o,{x:0,y:0,width:r,height:s}),o.__canvasGradient=v):o.image&&(v=m.prototype.getCanvasPattern.call(o,l)),l.save(),l.fillStyle=v||o,l.fillRect(0,0,r,s),l.restore()}if(c){var b=this.domBack;l.save(),l.globalAlpha=d,l.drawImage(b,0,0,r,s),l.restore()}}};var a=u;k.exports=a},Xnb7:function(k,D,n){var y=n("1RvN"),p=new y(50);function x(h){if(typeof h=="string"){var u=p.get(h);return u&&u.image}else return h}function A(h,u,a,i,t){if(h)if(typeof h=="string"){if(u&&u.__zrImageSrc===h||!a)return u;var o=p.get(h),e={hostEl:a,cb:i,cbPayload:t};return o?(u=o.image,!f(u)&&o.pending.push(e)):(u=new Image,u.onload=u.onerror=m,p.put(h,u.__cachedImgObj={image:u,pending:[e]}),u.src=u.__zrImageSrc=h),u}else return h;else return u}function m(){var h=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var u=0;u<h.pending.length;u++){var a=h.pending[u],i=a.cb;i&&i(this,a.cbPayload),a.hostEl.dirty()}h.pending.length=0}function f(h){return h&&h.width&&h.height}D.findExistImage=x,D.createOrUpdateImage=A,D.isImageReady=f},XpcN:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),A=n("bYtY"),m=n("oVpE"),f=m.createSymbol,h=n("IwbS"),u=n("eRkO"),a=u.makeBackground,i=n("+TT/"),t=A.curry,o=A.each,e=h.Group,l=x.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new e),this._backgroundEl,this.group.add(this._selectorGroup=new e),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(g,v,b){var S=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!g.get("show",!0))return;var E=g.get("align"),C=g.get("orient");(!E||E==="auto")&&(E=g.get("left")==="right"&&C==="vertical"?"right":"left");var _=g.get("selector",!0),T=g.get("selectorPosition",!0);_&&(!T||T==="auto")&&(T=C==="horizontal"?"end":"start"),this.renderInner(E,g,v,b,_,C,T);var w=g.getBoxLayoutParams(),O={width:b.getWidth(),height:b.getHeight()},I=g.get("padding"),R=i.getLayoutRect(w,O,I),M=this.layoutInner(g,E,R,S,_,T),F=i.getLayoutRect(A.defaults({width:M.width,height:M.height},w),O,I);this.group.attr("position",[F.x-M.x,F.y-M.y]),this.group.add(this._backgroundEl=a(M,g))},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(g,v,b,S,E,C,_){var T=this.getContentGroup(),w=A.createHashMap(),O=v.get("selectedMode"),I=[];b.eachRawSeries(function(R){!R.get("legendHoverLink")&&I.push(R.id)}),o(v.getData(),function(R,M){var F=R.get("name");if(!this.newlineDisabled&&(F===""||F===`
|
|
|
`)){T.add(new e({newline:!0}));return}var P=b.getSeriesByName(F)[0];if(w.get(F))return;if(P){var X=P.getData(),B=X.getVisual("color"),j=X.getVisual("borderColor");typeof B=="function"&&(B=B(P.getDataParams(0))),typeof j=="function"&&(j=j(P.getDataParams(0)));var W=X.getVisual("legendSymbol")||"roundRect",z=X.getVisual("symbol"),V=this._createItem(F,M,R,v,W,z,g,B,j,O);V.on("click",t(s,F,null,S,I)).on("mouseover",t(c,P.name,null,S,I)).on("mouseout",t(d,P.name,null,S,I)),w.set(F,!0)}else b.eachRawSeries(function(Q){if(w.get(F))return;if(Q.legendVisualProvider){var G=Q.legendVisualProvider;if(!G.containName(F))return;var ee=G.indexOfName(F),ce=G.getItemVisual(ee,"color"),be=G.getItemVisual(ee,"borderColor"),le="roundRect",Ie=this._createItem(F,M,R,v,le,null,g,ce,be,O);Ie.on("click",t(s,null,F,S,I)).on("mouseover",t(c,null,F,S,I)).on("mouseout",t(d,null,F,S,I)),w.set(F,!0)}},this)},this),E&&this._createSelector(E,v,S,C,_)},_createSelector:function(g,v,b,S,E){var C=this.getSelectorGroup();o(g,function(T){_(T)});function _(T){var w=T.type,O=new h.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){b.dispatchAction({type:w==="all"?"legendAllSelect":"legendInverseSelect"})}});C.add(O);var I=v.getModel("selectorLabel"),R=v.getModel("emphasis.selectorLabel");h.setLabelStyle(O.style,O.hoverStyle={},I,R,{defaultText:T.title,isRectText:!1}),h.setHoverStyle(O)}},_createItem:function(g,v,b,S,E,C,_,T,w,O){var I=S.get("itemWidth"),R=S.get("itemHeight"),M=S.get("inactiveColor"),F=S.get("inactiveBorderColor"),P=S.get("symbolKeepAspect"),X=S.getModel("itemStyle"),B=S.isSelected(g),j=new e,W=b.getModel("textStyle"),z=b.get("icon"),V=b.getModel("tooltip"),Q=V.parentModel;E=z||E;var G=f(E,0,0,I,R,B?T:M,P==null?!0:P);if(j.add(r(G,E,X,w,F,B)),!z&&C&&(C!==E||C==="none")){var ee=R*.8;C==="none"&&(C="circle");var ce=f(C,(I-ee)/2,(R-ee)/2,ee,ee,B?T:M,P==null?!0:P);j.add(r(ce,C,X,w,F,B))}var be=_==="left"?I+5:-5,le=_,Ie=S.get("formatter"),ke=g;typeof Ie=="string"&&Ie?ke=Ie.replace("{name}",g!=null?g:""):typeof Ie=="function"&&(ke=Ie(g)),j.add(new h.Text({style:h.setTextStyle({},W,{text:ke,x:be,y:R/2,textFill:B?W.getTextColor():M,textAlign:le,textVerticalAlign:"middle"})}));var Re=new h.Rect({shape:j.getBoundingRect(),invisible:!0,tooltip:V.get("show")?A.extend({content:g,formatter:Q.get("formatter",!0)||function(){return g},formatterParams:{componentType:"legend",legendIndex:S.componentIndex,name:g,$vars:["name"]}},V.option):null});return j.add(Re),j.eachChild(function(Qe){Qe.silent=!0}),Re.silent=!O,this.getContentGroup().add(j),h.setHoverStyle(j),j.__legendDataIndex=v,j},layoutInner:function(g,v,b,S,E,C){var _=this.getContentGroup(),T=this.getSelectorGroup();i.box(g.get("orient"),_,g.get("itemGap"),b.width,b.height);var w=_.getBoundingRect(),O=[-w.x,-w.y];if(E){i.box("horizontal",T,g.get("selectorItemGap",!0));var I=T.getBoundingRect(),R=[-I.x,-I.y],M=g.get("selectorButtonGap",!0),F=g.getOrient().index,P=F===0?"width":"height",X=F===0?"height":"width",B=F===0?"y":"x";C==="end"?R[F]+=w[P]+M:O[F]+=I[P]+M,R[1-F]+=w[X]/2-I[X]/2,T.attr("position",R),_.attr("position",O);var j={x:0,y:0};return j[P]=w[P]+M+I[P],j[X]=Math.max(w[X],I[X]),j[B]=Math.min(0,I[B]+R[1-F]),j}else return _.attr("position",O),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function r(g,v,b,S,E,C){var _;return v!=="line"&&v.indexOf("empty")<0?(_=b.getItemStyle(),g.style.stroke=S,C||(_.stroke=E)):_=b.getItemStyle(["borderWidth","borderColor"]),g.setStyle(_)}function s(g,v,b,S){d(g,v,b,S),b.dispatchAction({type:"legendToggleSelect",name:g!=null?g:v}),c(g,v,b,S)}function c(g,v,b,S){var E=b.getZr().storage.getDisplayList()[0];E&&E.useHoverLayer||b.dispatchAction({type:"highlight",seriesName:g,name:v,excludeSeriesId:S})}function d(g,v,b,S){var E=b.getZr().storage.getDisplayList()[0];E&&E.useHoverLayer||b.dispatchAction({type:"downplay",seriesName:g,name:v,excludeSeriesId:S})}k.exports=l},XuBP:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};D.default=y},XxSj:function(k,D,n){var y=n("bYtY"),p=n("Qe9p"),x=n("OELB"),A=x.linearMap,m=y.each,f=y.isObject,h=-1,u=function(C){var _=C.mappingMethod,T=C.type,w=this.option=y.clone(C);this.type=T,this.mappingMethod=_,this._normalizeData=b[_];var O=a[T];this.applyVisual=O.applyVisual,this.getColorMapper=O.getColorMapper,this._doMap=O._doMap[_],_==="piecewise"?(o(w),i(w)):_==="category"?w.categories?t(w):o(w,!0):(y.assert(_!=="linear"||w.dataExtent),o(w))};u.prototype={constructor:u,mapValueToVisual:function(C){var _=this._normalizeData(C);return this._doMap(_,C)},getNormalizer:function(){return y.bind(this._normalizeData,this)}};var a=u.visualHandlers={color:{applyVisual:r("color"),getColorMapper:function(){var C=this.option;return y.bind(C.mappingMethod==="category"?function(_,T){return!T&&(_=this._normalizeData(_)),s.call(this,_)}:function(_,T,w){var O=!!w;return!T&&(_=this._normalizeData(_)),w=p.fastLerp(_,C.parsedVisual,w),O?w:p.stringify(w,"rgba")},this)},_doMap:{linear:function(C){return p.stringify(p.fastLerp(C,this.option.parsedVisual),"rgba")},category:s,piecewise:function(C,_){var T=g.call(this,_);return T==null&&(T=p.stringify(p.fastLerp(C,this.option.parsedVisual),"rgba")),T},fixed:c}},colorHue:e(function(C,_){return p.modifyHSL(C,_)}),colorSaturation:e(function(C,_){return p.modifyHSL(C,null,_)}),colorLightness:e(function(C,_){return p.modifyHSL(C,null,null,_)}),colorAlpha:e(function(C,_){return p.modifyAlpha(C,_)}),opacity:{applyVisual:r("opacity"),_doMap:d([0,1])},liftZ:{applyVisual:r("liftZ"),_doMap:{linear:c,category:c,piecewise:c,fixed:c}},symbol:{applyVisual:function(C,_,T){var w=this.mapValueToVisual(C);if(y.isString(w))T("symbol",w);else if(f(w))for(var O in w)w.hasOwnProperty(O)&&T(O,w[O])},_doMap:{linear:l,category:s,piecewise:function(C,_){var T=g.call(this,_);return T==null&&(T=l.call(this,C)),T},fixed:c}},symbolSize:{applyVisual:r("symbolSize"),_doMap:d([0,1])}};function i(C){var _=C.pieceList;C.hasSpecialVisual=!1,y.each(_,function(T,w){T.originIndex=w,T.visual!=null&&(C.hasSpecialVisual=!0)})}function t(C){var _=C.categories,T=C.visual,w=C.categoryMap={};if(m(_,function(R,M){w[R]=M}),!y.isArray(T)){var O=[];y.isObject(T)?m(T,function(R,M){var F=w[M];O[F!=null?F:h]=R}):O[h]=T,T=v(C,O)}for(var I=_.length-1;I>=0;I--)T[I]==null&&(delete w[_[I]],_.pop())}function o(C,_){var T=C.visual,w=[];y.isObject(T)?m(T,function(I){w.push(I)}):T!=null&&w.push(T);var O={color:1,symbol:1};!_&&w.length===1&&!O.hasOwnProperty(C.type)&&(w[1]=w[0]),v(C,w)}function e(C){return{applyVisual:function(_,T,w){_=this.mapValueToVisual(_),w("color",C(T("color"),_))},_doMap:d([0,1])}}function l(C){var _=this.option.visual;return _[Math.round(A(C,[0,1],[0,_.length-1],!0))]||{}}function r(C){return function(_,T,w){w(C,this.mapValueToVisual(_))}}function s(C){var _=this.option.visual;return _[this.option.loop&&C!==h?C%_.length:C]}function c(){return this.option.visual[0]}function d(C){return{linear:function(_){return A(_,C,this.option.visual,!0)},category:s,piecewise:function(_,T){var w=g.call(this,T);return w==null&&(w=A(_,C,this.option.visual,!0)),w},fixed:c}}function g(C){var _=this.option,T=_.pieceList;if(_.hasSpecialVisual){var w=u.findPieceIndex(C,T),O=T[w];if(O&&O.visual)return O.visual[this.type]}}function v(C,_){return C.visual=_,C.type==="color"&&(C.parsedVisual=y.map(_,function(T){return p.parse(T)})),_}var b={linear:function(C){return A(C,this.option.dataExtent,[0,1],!0)},piecewise:function(C){var _=this.option.pieceList,T=u.findPieceIndex(C,_,!0);if(T!=null)return A(T,[0,_.length-1],[0,1],!0)},category:function(C){var _=this.option.categories?this.option.categoryMap[C]:C;return _==null?h:_},fixed:y.noop};u.listVisualTypes=function(){var C=[];return y.each(a,function(_,T){C.push(T)}),C},u.addVisualHandler=function(C,_){a[C]=_},u.isValidType=function(C){return a.hasOwnProperty(C)},u.eachVisual=function(C,_,T){y.isObject(C)?y.each(C,_,T):_.call(T,C)},u.mapVisual=function(C,_,T){var w,O=y.isArray(C)?[]:y.isObject(C)?{}:(w=!0,null);return u.eachVisual(C,function(I,R){var M=_.call(T,I,R);w?O=M:O[R]=M}),O},u.retrieveVisuals=function(C){var _={},T;return C&&m(a,function(w,O){C.hasOwnProperty(O)&&(_[O]=C[O],T=!0)}),T?_:null},u.prepareVisualTypes=function(C){if(f(C)){var _=[];m(C,function(T,w){_.push(w)}),C=_}else if(y.isArray(C))C=C.slice();else return[];return C.sort(function(T,w){return w==="color"&&T!=="color"&&T.indexOf("color")===0?1:-1}),C},u.dependsOn=function(C,_){return _==="color"?!!(C&&C.indexOf(_)===0):C===_},u.findPieceIndex=function(C,_,T){for(var w,O=Infinity,I=0,R=_.length;I<R;I++){var M=_[I].value;if(M!=null){if(M===C||typeof M=="string"&&M===C+"")return I;T&&B(M,I)}}for(var I=0,R=_.length;I<R;I++){var F=_[I],P=F.interval,X=F.close;if(P){if(P[0]===-Infinity){if(S(X[1],C,P[1]))return I}else if(P[1]===Infinity){if(S(X[0],P[0],C))return I}else if(S(X[0],P[0],C)&&S(X[1],C,P[1]))return I;T&&B(P[0],I),T&&B(P[1],I)}}if(T)return C===Infinity?_.length-1:C===-Infinity?0:w;function B(j,W){var z=Math.abs(j-C);z<O&&(O=z,w=W)}};function S(C,_,T){return C?_<=T:_<T}var E=u;k.exports=E},"Y+p1":function(k,D,n){var y=n("wF/u");function p(x,A){return y(x,A)}k.exports=p},Y1PL:function(k,D,n){"use strict";n.r(D),n.d(D,"ResizableTextArea",function(){return E});var y=n("wx14"),p=n("1OyB"),x=n("vuIU"),A=n("Ji7U"),m=n("LK+K"),f=n("q1tI"),h=n("VTBJ"),u=n("rePB"),a=n("t23M"),i=n("bT9E"),t=n("TSYQ"),o=n.n(t),e=`
|
|
|
min-height:0 !important;
|
|
|
max-height:none !important;
|
|
|
height:0 !important;
|
|
|
visibility:hidden !important;
|
|
|
overflow:hidden !important;
|
|
|
position:absolute !important;
|
|
|
z-index:-1000 !important;
|
|
|
top:0 !important;
|
|
|
right:0 !important
|
|
|
`,l=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],r={},s;function c(T){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=T.getAttribute("id")||T.getAttribute("data-reactid")||T.getAttribute("name");if(w&&r[O])return r[O];var I=window.getComputedStyle(T),R=I.getPropertyValue("box-sizing")||I.getPropertyValue("-moz-box-sizing")||I.getPropertyValue("-webkit-box-sizing"),M=parseFloat(I.getPropertyValue("padding-bottom"))+parseFloat(I.getPropertyValue("padding-top")),F=parseFloat(I.getPropertyValue("border-bottom-width"))+parseFloat(I.getPropertyValue("border-top-width")),P=l.map(function(B){return"".concat(B,":").concat(I.getPropertyValue(B))}).join(";"),X={sizingStyle:P,paddingSize:M,borderSize:F,boxSizing:R};return w&&O&&(r[O]=X),X}function d(T){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;s||(s=document.createElement("textarea"),s.setAttribute("tab-index","-1"),s.setAttribute("aria-hidden","true"),document.body.appendChild(s)),T.getAttribute("wrap")?s.setAttribute("wrap",T.getAttribute("wrap")):s.removeAttribute("wrap");var R=c(T,w),M=R.paddingSize,F=R.borderSize,P=R.boxSizing,X=R.sizingStyle;s.setAttribute("style","".concat(X,";").concat(e)),s.value=T.value||T.placeholder||"";var B=Number.MIN_SAFE_INTEGER,j=Number.MAX_SAFE_INTEGER,W=s.scrollHeight,z;if(P==="border-box"?W+=F:P==="content-box"&&(W-=M),O!==null||I!==null){s.value=" ";var V=s.scrollHeight-M;O!==null&&(B=V*O,P==="border-box"&&(B=B+M+F),W=Math.max(B,W)),I!==null&&(j=V*I,P==="border-box"&&(j=j+M+F),z=W>j?"":"hidden",W=Math.min(j,W))}return{height:W,minHeight:B,maxHeight:j,overflowY:z,resize:"none"}}var g=n("Gytx"),v=n.n(g),b;(function(T){T[T.NONE=0]="NONE",T[T.RESIZING=1]="RESIZING",T[T.RESIZED=2]="RESIZED"})(b||(b={}));var S=function(T){Object(A.a)(O,T);var w=Object(m.a)(O);function O(I){var R;return Object(p.a)(this,O),R=w.call(this,I),R.nextFrameActionId=void 0,R.resizeFrameId=void 0,R.textArea=void 0,R.saveTextArea=function(M){R.textArea=M},R.handleResize=function(M){var F=R.state.resizeStatus,P=R.props,X=P.autoSize,B=P.onResize;if(F!==b.NONE)return;typeof B=="function"&&B(M),X&&R.resizeOnNextFrame()},R.resizeOnNextFrame=function(){cancelAnimationFrame(R.nextFrameActionId),R.nextFrameActionId=requestAnimationFrame(R.resizeTextarea)},R.resizeTextarea=function(){var M=R.props.autoSize;if(!M||!R.textArea)return;var F=M.minRows,P=M.maxRows,X=d(R.textArea,!1,F,P);R.setState({textareaStyles:X,resizeStatus:b.RESIZING},function(){cancelAnimationFrame(R.resizeFrameId),R.resizeFrameId=requestAnimationFrame(function(){R.setState({resizeStatus:b.RESIZED},function(){R.resizeFrameId=requestAnimationFrame(function(){R.setState({resizeStatus:b.NONE}),R.fixFirefoxAutoScroll()})})})})},R.renderTextArea=function(){var M=R.props,F=M.prefixCls,P=F===void 0?"rc-textarea":F,X=M.autoSize,B=M.onResize,j=M.className,W=M.disabled,z=R.state,V=z.textareaStyles,Q=z.resizeStatus,G=Object(i.a)(R.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),ee=o()(P,j,Object(u.a)({},"".concat(P,"-disabled"),W));"value"in G&&(G.value=G.value||"");var ce=Object(h.a)(Object(h.a)(Object(h.a)({},R.props.style),V),Q===b.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return f.createElement(a.a,{onResize:R.handleResize,disabled:!(X||B)},f.createElement("textarea",Object(y.a)({},G,{className:ee,style:ce,ref:R.saveTextArea})))},R.state={textareaStyles:{},resizeStatus:b.NONE},R}return Object(x.a)(O,[{key:"componentDidUpdate",value:function(R){(R.value!==this.props.value||!v()(R.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var R=this.textArea.selectionStart,M=this.textArea.selectionEnd;this.textArea.setSelectionRange(R,M)}}catch(F){}}},{key:"render",value:function(){return this.renderTextArea()}}]),O}(f.Component),E=S,C=function(T){Object(A.a)(O,T);var w=Object(m.a)(O);function O(I){var R;Object(p.a)(this,O),R=w.call(this,I),R.resizableTextArea=void 0,R.focus=function(){R.resizableTextArea.textArea.focus()},R.saveTextArea=function(F){R.resizableTextArea=F},R.handleChange=function(F){var P=R.props.onChange;R.setValue(F.target.value,function(){R.resizableTextArea.resizeTextarea()}),P&&P(F)},R.handleKeyDown=function(F){var P=R.props,X=P.onPressEnter,B=P.onKeyDown;F.keyCode===13&&X&&X(F),B&&B(F)};var M=typeof I.value=="undefined"||I.value===null?I.defaultValue:I.value;return R.state={value:M},R}return Object(x.a)(O,[{key:"setValue",value:function(R,M){"value"in this.props||this.setState({value:R},M)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return f.createElement(E,Object(y.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(R){return"value"in R?{value:R.value}:null}}]),O}(f.Component),_=D.default=C},YESw:function(k,D,n){var y=n("Cwc5"),p=y(Object,"create");k.exports=p},YH21:function(k,D,n){var y=n("H6uX");D.Dispatcher=y;var p=n("ItGF"),x=n("Ze12"),A=x.isCanvasEl,m=x.transformCoordWithViewport,f=typeof window!="undefined"&&!!window.addEventListener,h=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,u=[];function a(d,g,v,b){return v=v||{},b||!p.canvasSupported?i(d,g,v):p.browser.firefox&&g.layerX!=null&&g.layerX!==g.offsetX?(v.zrX=g.layerX,v.zrY=g.layerY):g.offsetX!=null?(v.zrX=g.offsetX,v.zrY=g.offsetY):i(d,g,v),v}function i(d,g,v){if(p.domSupported&&d.getBoundingClientRect){var b=g.clientX,S=g.clientY;if(A(d)){var E=d.getBoundingClientRect();v.zrX=b-E.left,v.zrY=S-E.top;return}else if(m(u,d,b,S)){v.zrX=u[0],v.zrY=u[1];return}}v.zrX=v.zrY=0}function t(d){return d||window.event}function o(d,g,v){if(g=t(g),g.zrX!=null)return g;var b=g.type,S=b&&b.indexOf("touch")>=0;if(!S)a(d,g,g,v),g.zrDelta=g.wheelDelta?g.wheelDelta/120:-(g.detail||0)/3;else{var E=b!=="touchend"?g.targetTouches[0]:g.changedTouches[0];E&&a(d,E,g,v)}var C=g.button;return g.which==null&&C!==void 0&&h.test(g.type)&&(g.which=C&1?1:C&2?3:C&4?2:0),g}function e(d,g,v,b){f?d.addEventListener(g,v,b):d.attachEvent("on"+g,v)}function l(d,g,v,b){f?d.removeEventListener(g,v,b):d.detachEvent("on"+g,v)}var r=f?function(d){d.preventDefault(),d.stopPropagation(),d.cancelBubble=!0}:function(d){d.returnValue=!1,d.cancelBubble=!0};function s(d){return d.which===2||d.which===3}function c(d){return d.which>1}D.clientToLocal=a,D.getNativeEvent=t,D.normalizeEvent=o,D.addEventListener=e,D.removeEventListener=l,D.stop=r,D.isMiddleOrRightButtonOnMouseUpDown=s,D.notLeftMouse=c},YJ9k:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(m,f){if(!(m instanceof f))throw new TypeError("Cannot call a class as a function")}function p(m,f){for(var h=0;h<f.length;h++){var u=f[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}function x(m,f,h){return f&&p(m.prototype,f),h&&p(m,h),m}var A=function(){function m(){y(this,m),this._listeners=new Map}return x(m,[{key:"addEventListener",value:function(h,u){this._listeners.has(h)||this._listeners.set(h,new Set),this._listeners.get(h).add(u)}},{key:"removeEventListener",value:function(h,u){this._listeners.has(h)&&this._listeners.get(h).delete(u)}},{key:"dispatchEvent",value:function(h){var u=this;return this._listeners.has(h.type)?(this._listeners.get(h.type).forEach(function(a){return a.call(u,h)}),!h.defaultPrevented):!0}}]),m}();D.default=A},YJCA:function(k,D,n){"use strict";n.d(D,"a",function(){return $}),n.d(D,"b",function(){return Ne});var y=n("wx14"),p=n("ODXe"),x=n("vpQ4"),A=n("1OyB"),m=n("vuIU"),f=n("md7G"),h=n("foSv"),u=n("Ji7U"),a=n("JX7q"),i=n("rePB"),t=n("q1tI"),o=n.n(t),e=n("17x9"),l=n.n(e),r=n("i8i4"),s=n.n(r),c=n("QLaP"),d=n.n(c),g=n("KQm4"),v=function(){function Ee(){Object(A.a)(this,Ee),Object(i.a)(this,"refs",{})}return Object(m.a)(Ee,[{key:"add",value:function(me,Le){this.refs[me]||(this.refs[me]=[]),this.refs[me].push(Le)}},{key:"remove",value:function(me,Le){var tt=this.getIndex(me,Le);tt!==-1&&this.refs[me].splice(tt,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var me=this;return this.refs[this.active.collection].find(function(Le){var tt=Le.node;return tt.sortableInfo.index==me.active.index})}},{key:"getIndex",value:function(me,Le){return this.refs[me].indexOf(Le)}},{key:"getOrderedRefs",value:function(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[me].sort(b)}}]),Ee}();function b(Ee,de){var me=Ee.node.sortableInfo.index,Le=de.node.sortableInfo.index;return me-Le}function S(Ee,de,me){return Ee=Ee.slice(),Ee.splice(me<0?Ee.length+me:me,0,Ee.splice(de,1)[0]),Ee}function E(Ee,de){return Object.keys(Ee).reduce(function(me,Le){return de.indexOf(Le)===-1&&(me[Le]=Ee[Le]),me},{})}var C={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},_=function(){if(typeof window=="undefined"||typeof document=="undefined")return"";var Ee=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],de=(Array.prototype.slice.call(Ee).join("").match(/-(moz|webkit|ms)-/)||Ee.OLink===""&&["","o"])[1];switch(de){case"ms":return"ms";default:return de&&de.length?de[0].toUpperCase()+de.substr(1):""}}();function T(Ee,de){Object.keys(de).forEach(function(me){Ee.style[me]=de[me]})}function w(Ee,de){Ee.style["".concat(_,"Transform")]=de==null?"":"translate3d(".concat(de.x,"px,").concat(de.y,"px,0)")}function O(Ee,de){Ee.style["".concat(_,"TransitionDuration")]=de==null?"":"".concat(de,"ms")}function I(Ee,de){for(;Ee;){if(de(Ee))return Ee;Ee=Ee.parentNode}return null}function R(Ee,de,me){return Math.max(Ee,Math.min(me,de))}function M(Ee){return Ee.substr(-2)==="px"?parseFloat(Ee):0}function F(Ee){var de=window.getComputedStyle(Ee);return{bottom:M(de.marginBottom),left:M(de.marginLeft),right:M(de.marginRight),top:M(de.marginTop)}}function P(Ee,de){var me=de.displayName||de.name;return me?"".concat(Ee,"(").concat(me,")"):Ee}function X(Ee,de){var me=Ee.getBoundingClientRect();return{top:me.top+de.top,left:me.left+de.left}}function B(Ee){return Ee.touches&&Ee.touches.length?{x:Ee.touches[0].pageX,y:Ee.touches[0].pageY}:Ee.changedTouches&&Ee.changedTouches.length?{x:Ee.changedTouches[0].pageX,y:Ee.changedTouches[0].pageY}:{x:Ee.pageX,y:Ee.pageY}}function j(Ee){return Ee.touches&&Ee.touches.length||Ee.changedTouches&&Ee.changedTouches.length}function W(Ee,de){var me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(!Ee)return;var Le={left:me.left+Ee.offsetLeft,top:me.top+Ee.offsetTop};return Ee.parentNode===de?Le:W(Ee.parentNode,de,Le)}function z(Ee,de,me){return Ee<me&&Ee>de?Ee-1:Ee>me&&Ee<de?Ee+1:Ee}function V(Ee){var de=Ee.lockOffset,me=Ee.width,Le=Ee.height,tt=de,At=de,ht="px";if(typeof de=="string"){var Ke=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(de);d()(Ke!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',de),tt=parseFloat(de),At=parseFloat(de),ht=Ke[1]}return d()(isFinite(tt)&&isFinite(At),"lockOffset value should be a finite. Given %s",de),ht==="%"&&(tt=tt*me/100,At=At*Le/100),{x:tt,y:At}}function Q(Ee){var de=Ee.height,me=Ee.width,Le=Ee.lockOffset,tt=Array.isArray(Le)?Le:[Le,Le];d()(tt.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",Le);var At=Object(p.a)(tt,2),ht=At[0],Ke=At[1];return[V({height:de,lockOffset:ht,width:me}),V({height:de,lockOffset:Ke,width:me})]}function G(Ee){var de=window.getComputedStyle(Ee),me=/(auto|scroll)/,Le=["overflow","overflowX","overflowY"];return Le.find(function(tt){return me.test(de[tt])})}function ee(Ee){return Ee instanceof HTMLElement?G(Ee)?Ee:ee(Ee.parentNode):null}function ce(Ee){var de=window.getComputedStyle(Ee);return de.display==="grid"?{x:M(de.gridColumnGap),y:M(de.gridRowGap)}:{x:0,y:0}}var be={TAB:9,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},le={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function Ie(Ee){var de="input, textarea, select, canvas, [contenteditable]",me=Ee.querySelectorAll(de),Le=Ee.cloneNode(!0),tt=Object(g.a)(Le.querySelectorAll(de));return tt.forEach(function(At,ht){if(At.type!=="file"&&(At.value=me[ht].value),At.type==="radio"&&At.name&&(At.name="__sortableClone__".concat(At.name)),At.tagName===le.Canvas&&me[ht].width>0&&me[ht].height>0){var Ke=At.getContext("2d");Ke.drawImage(me[ht],0,0)}}),Le}function ke(Ee){var de,me,Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return me=de=function(tt){Object(u.a)(At,tt);function At(){return Object(A.a)(this,At),Object(f.a)(this,Object(h.a)(At).apply(this,arguments))}return Object(m.a)(At,[{key:"componentDidMount",value:function(){var Ke=Object(r.findDOMNode)(this);Ke.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return d()(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 Ke=Le.withRef?"wrappedInstance":null;return Object(t.createElement)(Ee,Object(y.a)({ref:Ke},this.props))}}]),At}(t.Component),Object(i.a)(de,"displayName",P("sortableHandle",Ee)),me}function Re(Ee){return Ee.sortableHandle!=null}var Qe=function(){function Ee(de,me){Object(A.a)(this,Ee),this.container=de,this.onScrollCallback=me}return Object(m.a)(Ee,[{key:"clear",value:function(){if(this.interval==null)return;clearInterval(this.interval),this.interval=null}},{key:"update",value:function(me){var Le=this,tt=me.translate,At=me.minTranslate,ht=me.maxTranslate,Ke=me.width,Jt=me.height,ct={x:0,y:0},Gt={x:1,y:1},dr={x:10,y:10},zt=this.container,kt=zt.scrollTop,Vt=zt.scrollLeft,Xe=zt.scrollHeight,pe=zt.scrollWidth,te=zt.clientHeight,$e=zt.clientWidth,He=kt===0,ae=Xe-kt-te===0,ft=Vt===0,Mt=pe-Vt-$e===0;tt.y>=ht.y-Jt/2&&!ae?(ct.y=1,Gt.y=dr.y*Math.abs((ht.y-Jt/2-tt.y)/Jt)):tt.x>=ht.x-Ke/2&&!Mt?(ct.x=1,Gt.x=dr.x*Math.abs((ht.x-Ke/2-tt.x)/Ke)):tt.y<=At.y+Jt/2&&!He?(ct.y=-1,Gt.y=dr.y*Math.abs((tt.y-Jt/2-At.y)/Jt)):tt.x<=At.x+Ke/2&&!ft&&(ct.x=-1,Gt.x=dr.x*Math.abs((tt.x-Ke/2-At.x)/Ke)),this.interval&&(this.clear(),this.isAutoScrolling=!1),(ct.x!==0||ct.y!==0)&&(this.interval=setInterval(function(){Le.isAutoScrolling=!0;var mt={left:Gt.x*ct.x,top:Gt.y*ct.y};Le.container.scrollTop+=mt.top,Le.container.scrollLeft+=mt.left,Le.onScrollCallback(mt)},5))}}]),Ee}();function We(Ee){var de=Ee.node;return{height:de.offsetHeight,width:de.offsetWidth}}function ot(Ee){var de=[le.Input,le.Textarea,le.Select,le.Option,le.Button];return de.indexOf(Ee.target.tagName)!==-1?!0:!!I(Ee.target,function(me){return me.contentEditable==="true"})}var Oe={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},oe={lift:[be.SPACE],drop:[be.SPACE],cancel:[be.ESC],up:[be.UP,be.LEFT],down:[be.DOWN,be.RIGHT]},st={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:We,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:oe,shouldCancelStart:ot,transitionDuration:300,useWindowAsScrollContainer:!1},he=Object.keys(Oe);function J(Ee){d()(!(Ee.distance&&Ee.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 Y(Ee,de){try{var me=Ee()}catch(Le){return de(!0,Le)}return me&&me.then?me.then(de.bind(null,!1),de.bind(null,!0)):de(!1,value)}function $(Ee){var de,me,Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return me=de=function(tt){Object(u.a)(At,tt);function At(ht){var Ke;return Object(A.a)(this,At),Ke=Object(f.a)(this,Object(h.a)(At).call(this,ht)),Object(i.a)(Object(a.a)(Object(a.a)(Ke)),"state",{}),Object(i.a)(Object(a.a)(Object(a.a)(Ke)),"handleStart",function(Jt){var ct=Ke.props,Gt=ct.distance,dr=ct.shouldCancelStart;if(Jt.button===2||dr(Jt))return;Ke.touched=!0,Ke.position=B(Jt);var zt=I(Jt.target,function($e){return $e.sortableInfo!=null});if(zt&&zt.sortableInfo&&Ke.nodeIsChild(zt)&&!Ke.state.sorting){var kt=Ke.props.useDragHandle,Vt=zt.sortableInfo,Xe=Vt.index,pe=Vt.collection,te=Vt.disabled;if(te)return;if(kt&&!I(Jt.target,Re))return;Ke.manager.active={collection:pe,index:Xe},!j(Jt)&&Jt.target.tagName===le.Anchor&&Jt.preventDefault(),Gt||(Ke.props.pressDelay===0?Ke.handlePress(Jt):Ke.pressTimer=setTimeout(function(){return Ke.handlePress(Jt)},Ke.props.pressDelay))}}),Object(i.a)(Object(a.a)(Object(a.a)(Ke)),"nodeIsChild",function(Jt){return Jt.sortableInfo.manager===Ke.manager}),Object(i.a)(Object(a.a)(Object(a.a)(Ke)),"handleMove",function(Jt){var ct=Ke.props,Gt=ct.distance,dr=ct.pressThreshold;if(!Ke.state.sorting&&Ke.touched&&!Ke._awaitingUpdateBeforeSortStart){var zt=B(Jt),kt={x:Ke.position.x-zt.x,y:Ke.position.y-zt.y},Vt=Math.abs(kt.x)+Math.abs(kt.y);Ke.delta=kt,!Gt&&(!dr||Vt>=dr)?(clearTimeout(Ke.cancelTimer),Ke.cancelTimer=setTimeout(Ke.cancel,0)):Gt&&Vt>=Gt&&Ke.manager.isActive()&&Ke.handlePress(Jt)}}),Object(i.a)(Object(a.a)(Object(a.a)(Ke)),"handleEnd",function(){Ke.touched=!1,Ke.cancel()}),Object(i.a)(Object(a.a)(Object(a.a)(Ke)),"cancel",function(){var Jt=Ke.props.distance,ct=Ke.state.sorting;ct||(Jt||clearTimeout(Ke.pressTimer),Ke.manager.active=null)}),Object(i.a)(Object(a.a)(Object(a.a)(Ke)),"handlePress",function(Jt){try{var ct=Ke.manager.getActive(),Gt=function(){if(ct){var dr=function(){var vr=ae.sortableInfo.index,fn=F(ae),sr=ce(Ke.container),Ir=Ke.scrollContainer.getBoundingClientRect(),lr=Vt({index:vr,node:ae,collection:ft});if(Ke.node=ae,Ke.margin=fn,Ke.gridGap=sr,Ke.width=lr.width,Ke.height=lr.height,Ke.marginOffset={x:Ke.margin.left+Ke.margin.right+Ke.gridGap.x,y:Math.max(Ke.margin.top,Ke.margin.bottom,Ke.gridGap.y)},Ke.boundingClientRect=ae.getBoundingClientRect(),Ke.containerBoundingRect=Ir,Ke.index=vr,Ke.newIndex=vr,Ke.axis={x:kt.indexOf("x")>=0,y:kt.indexOf("y")>=0},Ke.offsetEdge=W(ae,Ke.container),Mt?Ke.initialOffset=B(Object(x.a)({},Jt,{pageX:Ke.boundingClientRect.left,pageY:Ke.boundingClientRect.top})):Ke.initialOffset=B(Jt),Ke.initialScroll={left:Ke.scrollContainer.scrollLeft,top:Ke.scrollContainer.scrollTop},Ke.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},Ke.helper=Ke.helperContainer.appendChild(Ie(ae)),T(Ke.helper,{boxSizing:"border-box",height:"".concat(Ke.height,"px"),left:"".concat(Ke.boundingClientRect.left-fn.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(Ke.boundingClientRect.top-fn.top,"px"),width:"".concat(Ke.width,"px")}),Mt&&Ke.helper.focus(),pe&&(Ke.sortableGhost=ae,T(ae,{opacity:0,visibility:"hidden"})),Ke.minTranslate={},Ke.maxTranslate={},Mt){var Wt=He?{top:0,left:0,width:Ke.contentWindow.innerWidth,height:Ke.contentWindow.innerHeight}:Ke.containerBoundingRect,xt=Wt.top,rn=Wt.left,Dn=Wt.width,Xn=Wt.height,ri=xt+Xn,Ui=rn+Dn;Ke.axis.x&&(Ke.minTranslate.x=rn-Ke.boundingClientRect.left,Ke.maxTranslate.x=Ui-(Ke.boundingClientRect.left+Ke.width)),Ke.axis.y&&(Ke.minTranslate.y=xt-Ke.boundingClientRect.top,Ke.maxTranslate.y=ri-(Ke.boundingClientRect.top+Ke.height))}else Ke.axis.x&&(Ke.minTranslate.x=(He?0:Ir.left)-Ke.boundingClientRect.left-Ke.width/2,Ke.maxTranslate.x=(He?Ke.contentWindow.innerWidth:Ir.left+Ir.width)-Ke.boundingClientRect.left-Ke.width/2),Ke.axis.y&&(Ke.minTranslate.y=(He?0:Ir.top)-Ke.boundingClientRect.top-Ke.height/2,Ke.maxTranslate.y=(He?Ke.contentWindow.innerHeight:Ir.top+Ir.height)-Ke.boundingClientRect.top-Ke.height/2);Xe&&Xe.split(" ").forEach(function(Bn){return Ke.helper.classList.add(Bn)}),Ke.listenerNode=Jt.touches?ae:Ke.contentWindow,Mt?(Ke.listenerNode.addEventListener("wheel",Ke.handleKeyEnd,!0),Ke.listenerNode.addEventListener("mousedown",Ke.handleKeyEnd,!0),Ke.listenerNode.addEventListener("keydown",Ke.handleKeyDown)):(C.move.forEach(function(Bn){return Ke.listenerNode.addEventListener(Bn,Ke.handleSortMove,!1)}),C.end.forEach(function(Bn){return Ke.listenerNode.addEventListener(Bn,Ke.handleSortEnd,!1)})),Ke.setState({sorting:!0,sortingIndex:vr}),$e&&$e({node:ae,index:vr,collection:ft,isKeySorting:Mt,nodes:Ke.manager.getOrderedRefs(),helper:Ke.helper},Jt),Mt&&Ke.keyMove(0)},zt=Ke.props,kt=zt.axis,Vt=zt.getHelperDimensions,Xe=zt.helperClass,pe=zt.hideSortableGhost,te=zt.updateBeforeSortStart,$e=zt.onSortStart,He=zt.useWindowAsScrollContainer,ae=ct.node,ft=ct.collection,Mt=Ke.manager.isKeySorting,mt=function(){if(typeof te=="function"){Ke._awaitingUpdateBeforeSortStart=!0;var or=Y(function(){var vr=ae.sortableInfo.index;return Promise.resolve(te({collection:ft,index:vr,node:ae,isKeySorting:Mt},Jt)).then(function(){})},function(vr,fn){if(Ke._awaitingUpdateBeforeSortStart=!1,vr)throw fn;return fn});if(or&&or.then)return or.then(function(){})}}();return mt&&mt.then?mt.then(dr):dr(mt)}}();return Promise.resolve(Gt&&Gt.then?Gt.then(function(){}):void 0)}catch(dr){return Promise.reject(dr)}}),Object(i.a)(Object(a.a)(Object(a.a)(Ke)),"handleSortMove",function(Jt){var ct=Ke.props.onSortMove;typeof Jt.preventDefault=="function"&&Jt.preventDefault(),Ke.updateHelperPosition(Jt),Ke.animateNodes(),Ke.autoscroll(),ct&&ct(Jt)}),Object(i.a)(Object(a.a)(Object(a.a)(Ke)),"handleSortEnd",function(Jt){var ct=Ke.props,Gt=ct.hideSortableGhost,dr=ct.onSortEnd,zt=Ke.manager,kt=zt.active.collection,Vt=zt.isKeySorting,Xe=Ke.manager.getOrderedRefs();Ke.listenerNode&&(Vt?(Ke.listenerNode.removeEventListener("wheel",Ke.handleKeyEnd,!0),Ke.listenerNode.removeEventListener("mousedown",Ke.handleKeyEnd,!0),Ke.listenerNode.removeEventListener("keydown",Ke.handleKeyDown)):(C.move.forEach(function(ae){return Ke.listenerNode.removeEventListener(ae,Ke.handleSortMove)}),C.end.forEach(function(ae){return Ke.listenerNode.removeEventListener(ae,Ke.handleSortEnd)}))),Ke.helper.parentNode.removeChild(Ke.helper),Gt&&Ke.sortableGhost&&T(Ke.sortableGhost,{opacity:"",visibility:""});for(var pe=0,te=Xe.length;pe<te;pe++){var $e=Xe[pe],He=$e.node;$e.edgeOffset=null,$e.boundingClientRect=null,w(He,null),O(He,null),$e.translate=null}Ke.autoScroller.clear(),Ke.manager.active=null,Ke.manager.isKeySorting=!1,Ke.setState({sorting:!1,sortingIndex:null}),typeof dr=="function"&&dr({collection:kt,newIndex:Ke.newIndex,oldIndex:Ke.index,isKeySorting:Vt,nodes:Xe},Jt),Ke.touched=!1}),Object(i.a)(Object(a.a)(Object(a.a)(Ke)),"autoscroll",function(){var Jt=Ke.props.disableAutoscroll,ct=Ke.manager.isKeySorting;if(Jt){Ke.autoScroller.clear();return}if(ct){var Gt=Object(x.a)({},Ke.translate),dr=0,zt=0;Ke.axis.x&&(Gt.x=Math.min(Ke.maxTranslate.x,Math.max(Ke.minTranslate.x,Ke.translate.x)),dr=Ke.translate.x-Gt.x),Ke.axis.y&&(Gt.y=Math.min(Ke.maxTranslate.y,Math.max(Ke.minTranslate.y,Ke.translate.y)),zt=Ke.translate.y-Gt.y),Ke.translate=Gt,w(Ke.helper,Ke.translate),Ke.scrollContainer.scrollLeft+=dr,Ke.scrollContainer.scrollTop+=zt;return}Ke.autoScroller.update({height:Ke.height,maxTranslate:Ke.maxTranslate,minTranslate:Ke.minTranslate,translate:Ke.translate,width:Ke.width})}),Object(i.a)(Object(a.a)(Object(a.a)(Ke)),"onAutoScroll",function(Jt){Ke.translate.x+=Jt.left,Ke.translate.y+=Jt.top,Ke.animateNodes()}),Object(i.a)(Object(a.a)(Object(a.a)(Ke)),"handleKeyDown",function(Jt){var ct=Jt.keyCode,Gt=Ke.props,dr=Gt.shouldCancelStart,zt=Gt.keyCodes,kt=zt===void 0?{}:zt,Vt=Object(x.a)({},oe,kt);if(Ke.manager.active&&!Ke.manager.isKeySorting||!Ke.manager.active&&(!Vt.lift.includes(ct)||dr(Jt)||!Ke.isValidSortingTarget(Jt)))return;Jt.stopPropagation(),Jt.preventDefault(),Vt.lift.includes(ct)&&!Ke.manager.active?Ke.keyLift(Jt):Vt.drop.includes(ct)&&Ke.manager.active?Ke.keyDrop(Jt):Vt.cancel.includes(ct)?(Ke.newIndex=Ke.manager.active.index,Ke.keyDrop(Jt)):Vt.up.includes(ct)?Ke.keyMove(-1):Vt.down.includes(ct)&&Ke.keyMove(1)}),Object(i.a)(Object(a.a)(Object(a.a)(Ke)),"keyLift",function(Jt){var ct=Jt.target,Gt=I(ct,function(Vt){return Vt.sortableInfo!=null}),dr=Gt.sortableInfo,zt=dr.index,kt=dr.collection;Ke.initialFocusedNode=ct,Ke.manager.isKeySorting=!0,Ke.manager.active={index:zt,collection:kt},Ke.handlePress(Jt)}),Object(i.a)(Object(a.a)(Object(a.a)(Ke)),"keyMove",function(Jt){var ct=Ke.manager.getOrderedRefs(),Gt=ct[ct.length-1].node.sortableInfo.index,dr=Ke.newIndex+Jt,zt=Ke.newIndex;if(dr<0||dr>Gt)return;Ke.prevIndex=zt,Ke.newIndex=dr;var kt=z(Ke.newIndex,Ke.prevIndex,Ke.index),Vt=ct.find(function(Mt){var mt=Mt.node;return mt.sortableInfo.index===kt}),Xe=Vt.node,pe=Ke.containerScrollDelta,te=Vt.boundingClientRect||X(Xe,pe),$e=Vt.translate||{x:0,y:0},He={top:te.top+$e.y-pe.top,left:te.left+$e.x-pe.left},ae=zt<dr,ft={x:ae&&Ke.axis.x?Xe.offsetWidth-Ke.width:0,y:ae&&Ke.axis.y?Xe.offsetHeight-Ke.height:0};Ke.handleSortMove({pageX:He.left+ft.x,pageY:He.top+ft.y,ignoreTransition:Jt===0})}),Object(i.a)(Object(a.a)(Object(a.a)(Ke)),"keyDrop",function(Jt){Ke.handleSortEnd(Jt),Ke.initialFocusedNode&&Ke.initialFocusedNode.focus()}),Object(i.a)(Object(a.a)(Object(a.a)(Ke)),"handleKeyEnd",function(Jt){Ke.manager.active&&Ke.keyDrop(Jt)}),Object(i.a)(Object(a.a)(Object(a.a)(Ke)),"isValidSortingTarget",function(Jt){var ct=Ke.props.useDragHandle,Gt=Jt.target,dr=I(Gt,function(zt){return zt.sortableInfo!=null});return dr&&dr.sortableInfo&&!dr.sortableInfo.disabled&&(ct?Re(Gt):Gt.sortableInfo)}),J(ht),Ke.manager=new v,Ke.events={end:Ke.handleEnd,move:Ke.handleMove,start:Ke.handleStart},Ke}return Object(m.a)(At,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var Ke=this,Jt=this.props.useWindowAsScrollContainer,ct=this.getContainer();Promise.resolve(ct).then(function(Gt){Ke.container=Gt,Ke.document=Ke.container.ownerDocument||document;var dr=Ke.props.contentWindow||Ke.document.defaultView||window;Ke.contentWindow=typeof dr=="function"?dr():dr,Ke.scrollContainer=Jt?Ke.document.scrollingElement||Ke.document.documentElement:ee(Ke.container)||Ke.container,Ke.autoScroller=new Qe(Ke.scrollContainer,Ke.onAutoScroll),Object.keys(Ke.events).forEach(function(zt){return C[zt].forEach(function(kt){return Ke.container.addEventListener(kt,Ke.events[zt],!1)})}),Ke.container.addEventListener("keydown",Ke.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var Ke=this;if(this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),!this.container)return;Object.keys(this.events).forEach(function(Jt){return C[Jt].forEach(function(ct){return Ke.container.removeEventListener(ct,Ke.events[Jt])})}),this.container.removeEventListener("keydown",this.handleKeyDown)}},{key:"updateHelperPosition",value:function(Ke){var Jt=this.props,ct=Jt.lockAxis,Gt=Jt.lockOffset,dr=Jt.lockToContainerEdges,zt=Jt.transitionDuration,kt=Jt.keyboardSortingTransitionDuration,Vt=kt===void 0?zt:kt,Xe=this.manager.isKeySorting,pe=Ke.ignoreTransition,te=B(Ke),$e={x:te.x-this.initialOffset.x,y:te.y-this.initialOffset.y};if($e.y-=window.pageYOffset-this.initialWindowScroll.top,$e.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=$e,dr){var He=Q({height:this.height,lockOffset:Gt,width:this.width}),ae=Object(p.a)(He,2),ft=ae[0],Mt=ae[1],mt={x:this.width/2-ft.x,y:this.height/2-ft.y},or={x:this.width/2-Mt.x,y:this.height/2-Mt.y};$e.x=R(this.minTranslate.x+mt.x,this.maxTranslate.x-or.x,$e.x),$e.y=R(this.minTranslate.y+mt.y,this.maxTranslate.y-or.y,$e.y)}ct==="x"?$e.y=0:ct==="y"&&($e.x=0),Xe&&Vt&&!pe&&O(this.helper,Vt),w(this.helper,$e)}},{key:"animateNodes",value:function(){var Ke=this.props,Jt=Ke.transitionDuration,ct=Ke.hideSortableGhost,Gt=Ke.onSortOver,dr=this.containerScrollDelta,zt=this.windowScrollDelta,kt=this.manager.getOrderedRefs(),Vt={left:this.offsetEdge.left+this.translate.x+dr.left,top:this.offsetEdge.top+this.translate.y+dr.top},Xe=this.manager.isKeySorting,pe=this.newIndex;this.newIndex=null;for(var te=0,$e=kt.length;te<$e;te++){var He=kt[te].node,ae=He.sortableInfo.index,ft=He.offsetWidth,Mt=He.offsetHeight,mt={height:this.height>Mt?Mt/2:this.height/2,width:this.width>ft?ft/2:this.width/2},or=Xe&&ae>this.index&&ae<=pe,vr=Xe&&ae<this.index&&ae>=pe,fn={x:0,y:0},sr=kt[te].edgeOffset;sr||(sr=W(He,this.container),kt[te].edgeOffset=sr,Xe&&(kt[te].boundingClientRect=X(He,dr)));var Ir=te<kt.length-1&&kt[te+1],lr=te>0&&kt[te-1];if(Ir&&!Ir.edgeOffset&&(Ir.edgeOffset=W(Ir.node,this.container),Xe&&(Ir.boundingClientRect=X(Ir.node,dr))),ae===this.index){ct&&(this.sortableGhost=He,T(He,{opacity:0,visibility:"hidden"}));continue}Jt&&O(He,Jt),this.axis.x?this.axis.y?vr||ae<this.index&&(Vt.left+zt.left-mt.width<=sr.left&&Vt.top+zt.top<=sr.top+mt.height||Vt.top+zt.top+mt.height<=sr.top)?(fn.x=this.width+this.marginOffset.x,sr.left+fn.x>this.containerBoundingRect.width-mt.width&&(Ir&&(fn.x=Ir.edgeOffset.left-sr.left,fn.y=Ir.edgeOffset.top-sr.top)),this.newIndex===null&&(this.newIndex=ae)):(or||ae>this.index&&(Vt.left+zt.left+mt.width>=sr.left&&Vt.top+zt.top+mt.height>=sr.top||Vt.top+zt.top+mt.height>=sr.top+Mt))&&(fn.x=-(this.width+this.marginOffset.x),sr.left+fn.x<this.containerBoundingRect.left+mt.width&&(lr&&(fn.x=lr.edgeOffset.left-sr.left,fn.y=lr.edgeOffset.top-sr.top)),this.newIndex=ae):or||ae>this.index&&Vt.left+zt.left+mt.width>=sr.left?(fn.x=-(this.width+this.marginOffset.x),this.newIndex=ae):(vr||ae<this.index&&Vt.left+zt.left<=sr.left+mt.width)&&(fn.x=this.width+this.marginOffset.x,this.newIndex==null&&(this.newIndex=ae)):this.axis.y&&(or||ae>this.index&&Vt.top+zt.top+mt.height>=sr.top?(fn.y=-(this.height+this.marginOffset.y),this.newIndex=ae):(vr||ae<this.index&&Vt.top+zt.top<=sr.top+mt.height)&&(fn.y=this.height+this.marginOffset.y,this.newIndex==null&&(this.newIndex=ae))),w(He,fn),kt[te].translate=fn}this.newIndex==null&&(this.newIndex=this.index),Xe&&(this.newIndex=pe);var Wt=Xe?this.prevIndex:pe;Gt&&this.newIndex!==Wt&&Gt({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:Wt,isKeySorting:Xe,nodes:kt,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return d()(Le.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.refs.wrappedInstance}},{key:"getContainer",value:function(){var Ke=this.props.getContainer;return typeof Ke!="function"?Object(r.findDOMNode)(this):Ke(Le.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var Ke=Le.withRef?"wrappedInstance":null;return Object(t.createElement)(Ee,Object(y.a)({ref:Ke},E(this.props,he)))}},{key:"helperContainer",get:function(){var Ke=this.props.helperContainer;return typeof Ke=="function"?Ke():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){var Ke=this.props.useWindowAsScrollContainer;return Ke?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),At}(t.Component),Object(i.a)(de,"displayName",P("sortableList",Ee)),Object(i.a)(de,"defaultProps",st),Object(i.a)(de,"propTypes",Oe),Object(i.a)(de,"childContextTypes",{manager:l.a.object.isRequired}),me}var fe={index:l.a.number.isRequired,collection:l.a.oneOfType([l.a.number,l.a.string]),disabled:l.a.bool},we=Object.keys(fe);function Ne(Ee){var de,me,Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return me=de=function(tt){Object(u.a)(At,tt);function At(){return Object(A.a)(this,At),Object(f.a)(this,Object(h.a)(At).apply(this,arguments))}return Object(m.a)(At,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(Ke){this.node&&(Ke.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),Ke.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),Ke.collection!==this.props.collection&&(this.unregister(Ke.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var Ke=this.props,Jt=Ke.collection,ct=Ke.disabled,Gt=Ke.index,dr=Object(r.findDOMNode)(this);dr.sortableInfo={collection:Jt,disabled:ct,index:Gt,manager:this.context.manager},this.node=dr,this.ref={node:dr},this.context.manager.add(Jt,this.ref)}},{key:"unregister",value:function(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.collection;this.context.manager.remove(Ke,this.ref)}},{key:"getWrappedInstance",value:function(){return d()(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 Ke=Le.withRef?"wrappedInstance":null;return Object(t.createElement)(Ee,Object(y.a)({ref:Ke},E(this.props,we)))}}]),At}(t.Component),Object(i.a)(de,"displayName",P("sortableElement",Ee)),Object(i.a)(de,"contextTypes",{manager:l.a.object.isRequired}),Object(i.a)(de,"propTypes",fe),Object(i.a)(de,"defaultProps",{collection:0}),me}},YNf1:function(k,D,n){var y=n("IwbS"),p=n("6Ic6"),x=.3,A=p.extend({type:"parallel",init:function(){this._dataGroup=new y.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(o,e,l,r){var s=this._dataGroup,c=o.getData(),d=this._data,g=o.coordinateSystem,v=g.dimensions,b=u(o);c.diff(d).add(S).update(E).remove(C).execute();function S(T){var w=h(c,s,T,v,g);a(w,c,T,b)}function E(T,w){var O=d.getItemGraphicEl(w),I=f(c,T,v,g);c.setItemGraphicEl(T,O);var R=r&&r.animation===!1?null:o;y.updateProps(O,{shape:{points:I}},R,T),a(O,c,T,b)}function C(T){var w=d.getItemGraphicEl(T);s.remove(w)}if(!this._initialized){this._initialized=!0;var _=m(g,o,function(){setTimeout(function(){s.removeClipPath()})});s.setClipPath(_)}this._data=c},incrementalPrepareRender:function(o,e,l){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(o,e,l){for(var r=e.getData(),s=e.coordinateSystem,c=s.dimensions,d=u(e),g=o.start;g<o.end;g++){var v=h(r,this._dataGroup,g,c,s);v.incremental=!0,a(v,r,g,d)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function m(o,e,l){var r=o.model,s=o.getRect(),c=new y.Rect({shape:{x:s.x,y:s.y,width:s.width,height:s.height}}),d=r.get("layout")==="horizontal"?"width":"height";return c.setShape(d,0),y.initProps(c,{shape:{width:s.width,height:s.height}},e,l),c}function f(o,e,l,r){for(var s=[],c=0;c<l.length;c++){var d=l[c],g=o.get(o.mapDimension(d),e);i(g,r.getAxis(d).type)||s.push(r.dataToPoint(g,d))}return s}function h(o,e,l,r,s){var c=f(o,l,r,s),d=new y.Polyline({shape:{points:c},silent:!0,z2:10});return e.add(d),o.setItemGraphicEl(l,d),d}function u(o){var e=o.get("smooth",!0);return e===!0&&(e=x),{lineStyle:o.getModel("lineStyle").getLineStyle(),smooth:e!=null?e:x}}function a(o,e,l,r){var s=r.lineStyle;if(e.hasItemOption){var c=e.getItemModel(l).getModel("lineStyle");s=c.getLineStyle()}o.useStyle(s);var d=o.style;d.fill=null,d.stroke=e.getItemVisual(l,"color"),d.opacity=e.getItemVisual(l,"opacity"),r.smooth&&(o.shape.smooth=r.smooth)}function i(o,e){return e==="category"?o==null:o==null||isNaN(o)}var t=A;k.exports=t},YOMW:function(k,D,n){var y=n("bYtY"),p={get:function(m,f,h){var u=y.clone((x[m]||{})[f]);return h&&y.isArray(u)?u[u.length-1]:u}},x={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},A=p;k.exports=A},YXTf:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("Qs9O")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="FolderOutlined";var i=A.forwardRef(a);D.default=i},YXkt:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=n("Qxkt"),m=n("gPAo"),f=n("7G+c"),h=n("KxfA"),u=h.defaultDimValueGetters,a=h.DefaultDataProvider,i=n("L0Ub"),t=i.summarizeDimensions,o=n("Vi4m"),e=x.isObject,l="undefined",r=-1,s="e\0\0",c={float:typeof Float64Array===l?Array:Float64Array,int:typeof Int32Array===l?Array:Int32Array,ordinal:Array,number:Array,time:Array},d=typeof Uint32Array===l?Array:Uint32Array,g=typeof Int32Array===l?Array:Int32Array,v=typeof Uint16Array===l?Array:Uint16Array;function b(G){return G._rawCount>65535?d:v}function S(G){var ee=G.constructor;return ee===Array?G.slice():new ee(G)}var E=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],C=["_extent","_approximateExtent","_rawExtent"];function _(G,ee){x.each(E.concat(ee.__wrappedMethods||[]),function(ce){ee.hasOwnProperty(ce)&&(G[ce]=ee[ce])}),G.__wrappedMethods=ee.__wrappedMethods,x.each(C,function(ce){G[ce]=x.clone(ee[ce])}),G._calculationInfo=x.extend(ee._calculationInfo)}var T=function(G,ee){G=G||["x","y"];for(var ce={},be=[],le={},Ie=0;Ie<G.length;Ie++){var ke=G[Ie];x.isString(ke)?ke=new o({name:ke}):ke instanceof o||(ke=new o(ke));var Re=ke.name;ke.type=ke.type||"float",ke.coordDim||(ke.coordDim=Re,ke.coordDimIndex=0),ke.otherDims=ke.otherDims||{},be.push(Re),ce[Re]=ke,ke.index=Ie,ke.createInvertedIndices&&(le[Re]=[])}this.dimensions=be,this._dimensionInfos=ce,this.hostModel=ee,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=t(this),this._invertedIndicesMap=le,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},w=T.prototype;w.type="list",w.hasItemOption=!0,w.getDimension=function(G){return(typeof G=="number"||!isNaN(G)&&!this._dimensionInfos.hasOwnProperty(G))&&(G=this.dimensions[G]),G},w.getDimensionInfo=function(G){return this._dimensionInfos[this.getDimension(G)]},w.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},w.mapDimension=function(G,ee){var ce=this._dimensionsSummary;if(ee==null)return ce.encodeFirstDimNotExtra[G];var be=ce.encode[G];return ee===!0?(be||[]).slice():be&&be[ee]},w.initData=function(G,ee,ce){var be=f.isInstance(G)||x.isArrayLike(G);be&&(G=new a(G,this.dimensions.length)),this._rawData=G,this._storage={},this._indices=null,this._nameList=ee||[],this._idList=[],this._nameRepeatCount={},ce||(this.hasItemOption=!1),this.defaultDimValueGetter=u[this._rawData.getSource().sourceFormat],this._dimValueGetter=ce=ce||this.defaultDimValueGetter,this._dimValueGetterArrayRows=u.arrayRows,this._rawExtent={},this._initDataFromProvider(0,G.count()),G.pure&&(this.hasItemOption=!1)},w.getProvider=function(){return this._rawData},w.appendData=function(G){var ee=this._rawData,ce=this.count();ee.appendData(G);var be=ee.count();ee.persistent||(be+=ce),this._initDataFromProvider(ce,be)},w.appendValues=function(G,ee){for(var ce=this._chunkSize,be=this._storage,le=this.dimensions,Ie=le.length,ke=this._rawExtent,Re=this.count(),Qe=Re+Math.max(G.length,ee?ee.length:0),We=this._chunkCount,ot=0;ot<Ie;ot++){var Oe=le[ot];ke[Oe]||(ke[Oe]=z()),be[Oe]||(be[Oe]=[]),O(be,this._dimensionInfos[Oe],ce,We,Qe),this._chunkCount=be[Oe].length}for(var oe=new Array(Ie),st=Re;st<Qe;st++){for(var he=st-Re,J=Math.floor(st/ce),Y=st%ce,$=0;$<Ie;$++){var Oe=le[$],fe=this._dimValueGetterArrayRows(G[he]||oe,Oe,he,$);be[Oe][J][Y]=fe;var we=ke[Oe];fe<we[0]&&(we[0]=fe),fe>we[1]&&(we[1]=fe)}ee&&(this._nameList[st]=ee[he])}this._rawCount=this._count=Qe,this._extent={},I(this)},w._initDataFromProvider=function(G,ee){if(G>=ee)return;for(var ce=this._chunkSize,be=this._rawData,le=this._storage,Ie=this.dimensions,ke=Ie.length,Re=this._dimensionInfos,Qe=this._nameList,We=this._idList,ot=this._rawExtent,Oe=this._nameRepeatCount={},oe,st=this._chunkCount,he=0;he<ke;he++){var J=Ie[he];ot[J]||(ot[J]=z());var Y=Re[J];Y.otherDims.itemName===0&&(oe=this._nameDimIdx=he),Y.otherDims.itemId===0&&(this._idDimIdx=he),le[J]||(le[J]=[]),O(le,Y,ce,st,ee),this._chunkCount=le[J].length}for(var $=new Array(ke),fe=G;fe<ee;fe++){$=be.getItem(fe,$);for(var we=Math.floor(fe/ce),Ne=fe%ce,Ee=0;Ee<ke;Ee++){var J=Ie[Ee],de=le[J][we],me=this._dimValueGetter($,J,fe,Ee);de[Ne]=me;var Le=ot[J];me<Le[0]&&(Le[0]=me),me>Le[1]&&(Le[1]=me)}if(!be.pure){var tt=Qe[fe];if($&&tt==null){if($.name!=null)Qe[fe]=tt=$.name;else if(oe!=null){var At=Ie[oe],ht=le[At][we];if(ht){tt=ht[Ne];var Ke=Re[At].ordinalMeta;Ke&&Ke.categories.length&&(tt=Ke.categories[tt])}}}var Jt=$==null?null:$.id;Jt==null&&tt!=null&&(Oe[tt]=Oe[tt]||0,Jt=tt,Oe[tt]>0&&(Jt+="__ec__"+Oe[tt]),Oe[tt]++),Jt!=null&&(We[fe]=Jt)}}!be.persistent&&be.clean&&be.clean(),this._rawCount=this._count=ee,this._extent={},I(this)};function O(G,ee,ce,be,le){var Ie=c[ee.type],ke=be-1,Re=ee.name,Qe=G[Re][ke];if(Qe&&Qe.length<ce){for(var We=new Ie(Math.min(le-ke*ce,ce)),ot=0;ot<Qe.length;ot++)We[ot]=Qe[ot];G[Re][ke]=We}for(var Oe=be*ce;Oe<le;Oe+=ce)G[Re].push(new Ie(Math.min(le-Oe,ce)))}function I(G){var ee=G._invertedIndicesMap;x.each(ee,function(ce,be){var le=G._dimensionInfos[be],Ie=le.ordinalMeta;if(Ie){ce=ee[be]=new g(Ie.categories.length);for(var ke=0;ke<ce.length;ke++)ce[ke]=r;for(var ke=0;ke<G._count;ke++)ce[G.get(be,ke)]=ke}})}function R(G,ee,ce){var be;if(ee!=null){var le=G._chunkSize,Ie=Math.floor(ce/le),ke=ce%le,Re=G.dimensions[ee],Qe=G._storage[Re][Ie];if(Qe){be=Qe[ke];var We=G._dimensionInfos[Re].ordinalMeta;We&&We.categories.length&&(be=We.categories[be])}}return be}w.count=function(){return this._count},w.getIndices=function(){var G,ee=this._indices;if(ee){var ce=ee.constructor,be=this._count;if(ce===Array){G=new ce(be);for(var le=0;le<be;le++)G[le]=ee[le]}else G=new ce(ee.buffer,0,be)}else for(var ce=b(this),G=new ce(this.count()),le=0;le<G.length;le++)G[le]=le;return G},w.get=function(G,ee){if(!(ee>=0&&ee<this._count))return NaN;var ce=this._storage;if(!ce[G])return NaN;ee=this.getRawIndex(ee);var be=Math.floor(ee/this._chunkSize),le=ee%this._chunkSize,Ie=ce[G][be],ke=Ie[le];return ke},w.getByRawIndex=function(G,ee){if(!(ee>=0&&ee<this._rawCount))return NaN;var ce=this._storage[G];if(!ce)return NaN;var be=Math.floor(ee/this._chunkSize),le=ee%this._chunkSize,Ie=ce[be];return Ie[le]},w._getFast=function(G,ee){var ce=Math.floor(ee/this._chunkSize),be=ee%this._chunkSize,le=this._storage[G][ce];return le[be]},w.getValues=function(G,ee){var ce=[];x.isArray(G)||(ee=G,G=this.dimensions);for(var be=0,le=G.length;be<le;be++)ce.push(this.get(G[be],ee));return ce},w.hasValue=function(G){for(var ee=this._dimensionsSummary.dataDimsOnCoord,ce=0,be=ee.length;ce<be;ce++)if(isNaN(this.get(ee[ce],G)))return!1;return!0},w.getDataExtent=function(G){G=this.getDimension(G);var ee=this._storage[G],ce=z();if(!ee)return ce;var be=this.count(),le=!this._indices,Ie;if(le)return this._rawExtent[G].slice();if(Ie=this._extent[G],Ie)return Ie.slice();Ie=ce;for(var ke=Ie[0],Re=Ie[1],Qe=0;Qe<be;Qe++){var We=this._getFast(G,this.getRawIndex(Qe));We<ke&&(ke=We),We>Re&&(Re=We)}return Ie=[ke,Re],this._extent[G]=Ie,Ie},w.getApproximateExtent=function(G){return G=this.getDimension(G),this._approximateExtent[G]||this.getDataExtent(G)},w.setApproximateExtent=function(G,ee){ee=this.getDimension(ee),this._approximateExtent[ee]=G.slice()},w.getCalculationInfo=function(G){return this._calculationInfo[G]},w.setCalculationInfo=function(G,ee){e(G)?x.extend(this._calculationInfo,G):this._calculationInfo[G]=ee},w.getSum=function(G){var ee=this._storage[G],ce=0;if(ee)for(var be=0,le=this.count();be<le;be++){var Ie=this.get(G,be);isNaN(Ie)||(ce+=Ie)}return ce},w.getMedian=function(G){var ee=[];this.each(G,function(le,Ie){isNaN(le)||ee.push(le)});var ce=[].concat(ee).sort(function(le,Ie){return le-Ie}),be=this.count();return be===0?0:be%2===1?ce[(be-1)/2]:(ce[be/2]+ce[be/2-1])/2},w.rawIndexOf=function(G,ee){var ce=G&&this._invertedIndicesMap[G],be=ce[ee];return be==null||isNaN(be)?r:be},w.indexOfName=function(G){for(var ee=0,ce=this.count();ee<ce;ee++)if(this.getName(ee)===G)return ee;return-1},w.indexOfRawIndex=function(G){if(G>=this._rawCount||G<0)return-1;if(!this._indices)return G;var ee=this._indices,ce=ee[G];if(ce!=null&&ce<this._count&&ce===G)return G;for(var be=0,le=this._count-1;be<=le;){var Ie=(be+le)/2|0;if(ee[Ie]<G)be=Ie+1;else if(ee[Ie]>G)le=Ie-1;else return Ie}return-1},w.indicesOfNearest=function(G,ee,ce){var be=this._storage,le=be[G],Ie=[];if(!le)return Ie;ce==null&&(ce=Infinity);for(var ke=Infinity,Re=-1,Qe=0,We=0,ot=this.count();We<ot;We++){var Oe=ee-this.get(G,We),oe=Math.abs(Oe);oe<=ce&&((oe<ke||oe===ke&&Oe>=0&&Re<0)&&(ke=oe,Re=Oe,Qe=0),Oe===Re&&(Ie[Qe++]=We))}return Ie.length=Qe,Ie},w.getRawIndex=M;function M(G){return G}function F(G){return G<this._count&&G>=0?this._indices[G]:-1}w.getRawDataItem=function(G){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(G));for(var ee=[],ce=0;ce<this.dimensions.length;ce++){var be=this.dimensions[ce];ee.push(this.get(be,G))}return ee},w.getName=function(G){var ee=this.getRawIndex(G);return this._nameList[ee]||R(this,this._nameDimIdx,ee)||""},w.getId=function(G){return P(this,this.getRawIndex(G))};function P(G,ee){var ce=G._idList[ee];return ce==null&&(ce=R(G,G._idDimIdx,ee)),ce==null&&(ce=s+ee),ce}function X(G){return x.isArray(G)||(G=[G]),G}function B(G,ee){for(var ce=0;ce<ee.length;ce++)G._dimensionInfos[ee[ce]]||console.error("Unkown dimension "+ee[ce])}w.each=function(G,ee,ce,be){"use strict";if(!this._count)return;typeof G=="function"&&(be=ce,ce=ee,ee=G,G=[]),ce=ce||be||this,G=x.map(X(G),this.getDimension,this);for(var le=G.length,Ie=0;Ie<this.count();Ie++)switch(le){case 0:ee.call(ce,Ie);break;case 1:ee.call(ce,this.get(G[0],Ie),Ie);break;case 2:ee.call(ce,this.get(G[0],Ie),this.get(G[1],Ie),Ie);break;default:for(var ke=0,Re=[];ke<le;ke++)Re[ke]=this.get(G[ke],Ie);Re[ke]=Ie,ee.apply(ce,Re)}},w.filterSelf=function(G,ee,ce,be){"use strict";if(!this._count)return;typeof G=="function"&&(be=ce,ce=ee,ee=G,G=[]),ce=ce||be||this,G=x.map(X(G),this.getDimension,this);for(var le=this.count(),Ie=b(this),ke=new Ie(le),Re=[],Qe=G.length,We=0,ot=G[0],Oe=0;Oe<le;Oe++){var oe,st=this.getRawIndex(Oe);if(Qe===0)oe=ee.call(ce,Oe);else if(Qe===1){var he=this._getFast(ot,st);oe=ee.call(ce,he,Oe)}else{for(var J=0;J<Qe;J++)Re[J]=this._getFast(ot,st);Re[J]=Oe,oe=ee.apply(ce,Re)}oe&&(ke[We++]=st)}return We<le&&(this._indices=ke),this._count=We,this._extent={},this.getRawIndex=this._indices?F:M,this},w.selectRange=function(G){"use strict";if(!this._count)return;var ee=[];for(var ce in G)G.hasOwnProperty(ce)&&ee.push(ce);var be=ee.length;if(!be)return;var le=this.count(),Ie=b(this),ke=new Ie(le),Re=0,Qe=ee[0],We=G[Qe][0],ot=G[Qe][1],Oe=!1;if(!this._indices){var oe=0;if(be===1){for(var st=this._storage[ee[0]],he=0;he<this._chunkCount;he++)for(var J=st[he],Y=Math.min(this._count-he*this._chunkSize,this._chunkSize),$=0;$<Y;$++){var fe=J[$];(fe>=We&&fe<=ot||isNaN(fe))&&(ke[Re++]=oe),oe++}Oe=!0}else if(be===2){for(var st=this._storage[Qe],we=this._storage[ee[1]],Ne=G[ee[1]][0],Ee=G[ee[1]][1],he=0;he<this._chunkCount;he++)for(var J=st[he],de=we[he],Y=Math.min(this._count-he*this._chunkSize,this._chunkSize),$=0;$<Y;$++){var fe=J[$],me=de[$];(fe>=We&&fe<=ot||isNaN(fe))&&(me>=Ne&&me<=Ee||isNaN(me))&&(ke[Re++]=oe),oe++}Oe=!0}}if(!Oe)if(be===1)for(var $=0;$<le;$++){var Le=this.getRawIndex($),fe=this._getFast(Qe,Le);(fe>=We&&fe<=ot||isNaN(fe))&&(ke[Re++]=Le)}else for(var $=0;$<le;$++){for(var tt=!0,Le=this.getRawIndex($),he=0;he<be;he++){var At=ee[he],fe=this._getFast(ce,Le);(fe<G[At][0]||fe>G[At][1])&&(tt=!1)}tt&&(ke[Re++]=this.getRawIndex($))}return Re<le&&(this._indices=ke),this._count=Re,this._extent={},this.getRawIndex=this._indices?F:M,this},w.mapArray=function(G,ee,ce,be){"use strict";typeof G=="function"&&(be=ce,ce=ee,ee=G,G=[]),ce=ce||be||this;var le=[];return this.each(G,function(){le.push(ee&&ee.apply(this,arguments))},ce),le};function j(G,ee){var ce=G.dimensions,be=new T(x.map(ce,G.getDimensionInfo,G),G.hostModel);_(be,G);for(var le=be._storage={},Ie=G._storage,ke=0;ke<ce.length;ke++){var Re=ce[ke];Ie[Re]&&(x.indexOf(ee,Re)>=0?(le[Re]=W(Ie[Re]),be._rawExtent[Re]=z(),be._extent[Re]=null):le[Re]=Ie[Re])}return be}function W(G){for(var ee=new Array(G.length),ce=0;ce<G.length;ce++)ee[ce]=S(G[ce]);return ee}function z(){return[Infinity,-Infinity]}w.map=function(G,ee,ce,be){"use strict";ce=ce||be||this,G=x.map(X(G),this.getDimension,this);var le=j(this,G);le._indices=this._indices,le.getRawIndex=le._indices?F:M;for(var Ie=le._storage,ke=[],Re=this._chunkSize,Qe=G.length,We=this.count(),ot=[],Oe=le._rawExtent,oe=0;oe<We;oe++){for(var st=0;st<Qe;st++)ot[st]=this.get(G[st],oe);ot[Qe]=oe;var he=ee&&ee.apply(ce,ot);if(he!=null){typeof he!="object"&&(ke[0]=he,he=ke);for(var J=this.getRawIndex(oe),Y=Math.floor(J/Re),$=J%Re,fe=0;fe<he.length;fe++){var we=G[fe],Ne=he[fe],Ee=Oe[we],de=Ie[we];de&&(de[Y][$]=Ne),Ne<Ee[0]&&(Ee[0]=Ne),Ne>Ee[1]&&(Ee[1]=Ne)}}}return le},w.downSample=function(G,ee,ce,be){for(var le=j(this,[G]),Ie=le._storage,ke=[],Re=Math.floor(1/ee),Qe=Ie[G],We=this.count(),ot=this._chunkSize,Oe=le._rawExtent[G],oe=new(b(this))(We),st=0,he=0;he<We;he+=Re){Re>We-he&&(Re=We-he,ke.length=Re);for(var J=0;J<Re;J++){var Y=this.getRawIndex(he+J),$=Math.floor(Y/ot),fe=Y%ot;ke[J]=Qe[$][fe]}var we=ce(ke),Ne=this.getRawIndex(Math.min(he+be(ke,we)||0,We-1)),Ee=Math.floor(Ne/ot),de=Ne%ot;Qe[Ee][de]=we,we<Oe[0]&&(Oe[0]=we),we>Oe[1]&&(Oe[1]=we),oe[st++]=Ne}return le._count=st,le._indices=oe,le.getRawIndex=F,le},w.getItemModel=function(G){var ee=this.hostModel;return new A(this.getRawDataItem(G),ee,ee&&ee.ecModel)},w.diff=function(G){var ee=this;return new m(G?G.getIndices():[],this.getIndices(),function(ce){return P(G,ce)},function(ce){return P(ee,ce)})},w.getVisual=function(G){var ee=this._visual;return ee&&ee[G]},w.setVisual=function(G,ee){if(e(G)){for(var ce in G)G.hasOwnProperty(ce)&&this.setVisual(ce,G[ce]);return}this._visual=this._visual||{},this._visual[G]=ee},w.setLayout=function(G,ee){if(e(G)){for(var ce in G)G.hasOwnProperty(ce)&&this.setLayout(ce,G[ce]);return}this._layout[G]=ee},w.getLayout=function(G){return this._layout[G]},w.getItemLayout=function(G){return this._itemLayouts[G]},w.setItemLayout=function(G,ee,ce){this._itemLayouts[G]=ce?x.extend(this._itemLayouts[G]||{},ee):ee},w.clearItemLayouts=function(){this._itemLayouts.length=0},w.getItemVisual=function(G,ee,ce){var be=this._itemVisuals[G],le=be&&be[ee];return le==null&&!ce?this.getVisual(ee):le},w.setItemVisual=function(G,ee,ce){var be=this._itemVisuals[G]||{},le=this.hasItemVisual;if(this._itemVisuals[G]=be,e(ee)){for(var Ie in ee)ee.hasOwnProperty(Ie)&&(be[Ie]=ee[Ie],le[Ie]=!0);return}be[ee]=ce,le[ee]=!0},w.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var V=function(G){G.seriesIndex=this.seriesIndex,G.dataIndex=this.dataIndex,G.dataType=this.dataType};w.setItemGraphicEl=function(G,ee){var ce=this.hostModel;ee&&(ee.dataIndex=G,ee.dataType=this.dataType,ee.seriesIndex=ce&&ce.seriesIndex,ee.type==="group"&&ee.traverse(V,ee)),this._graphicEls[G]=ee},w.getItemGraphicEl=function(G){return this._graphicEls[G]},w.eachItemGraphicEl=function(G,ee){x.each(this._graphicEls,function(ce,be){ce&&(G&&G.call(ee,ce,be))})},w.cloneShallow=function(G){if(!G){var ee=x.map(this.dimensions,this.getDimensionInfo,this);G=new T(ee,this.hostModel)}if(G._storage=this._storage,_(G,this),this._indices){var ce=this._indices.constructor;G._indices=new ce(this._indices)}else G._indices=null;return G.getRawIndex=G._indices?F:M,G},w.wrapMethod=function(G,ee){var ce=this[G];if(typeof ce!="function")return;this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(G),this[G]=function(){var be=ce.apply(this,arguments);return ee.apply(this,[be].concat(x.slice(arguments)))}},w.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],w.CHANGABLE_METHODS=["filterSelf","selectRange"];var Q=T;k.exports=Q},YgsL:function(k,D,n){var y=n("QBsz"),p=y.distance;function x(m,f,h,u,a,i,t){var o=(h-m)*.5,e=(u-f)*.5;return(2*(f-h)+o+e)*t+(-3*(f-h)-2*o-e)*i+o*a+f}function A(m,f){for(var h=m.length,u=[],a=0,i=1;i<h;i++)a+=p(m[i-1],m[i]);var t=a/2;t=t<h?h:t;for(var i=0;i<t;i++){var o=i/(t-1)*(f?h:h-1),e=Math.floor(o),l=o-e,r,s=m[e%h],c,d;f?(r=m[(e-1+h)%h],c=m[(e+1)%h],d=m[(e+2)%h]):(r=m[e===0?e:e-1],c=m[e>h-2?h-1:e+1],d=m[e>h-3?h-1:e+2]);var g=l*l,v=l*g;u.push([x(r[0],s[0],c[0],d[0],l,g,v),x(r[1],s[1],c[1],d[1],l,g,v)])}return u}k.exports=A},Yl7c:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=".",m="___EC__COMPONENT__CONTAINER___";function f(r){var s={main:"",sub:""};return r&&(r=r.split(A),s.main=r[0]||"",s.sub=r[1]||""),s}function h(r){x.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function u(r,s){r.$constructor=r,r.extend=function(c){var d=this,g=function(){c.$constructor?c.$constructor.apply(this,arguments):d.apply(this,arguments)};return x.extend(g.prototype,c),g.extend=this.extend,g.superCall=t,g.superApply=o,x.inherits(g,this),g.superClass=d,g}}var a=0;function i(r){var s=["__\0is_clz",a++,Math.random().toFixed(3)].join("_");r.prototype[s]=!0,r.isInstance=function(c){return!!(c&&c[s])}}function t(r,s){var c=x.slice(arguments,2);return this.superClass.prototype[s].apply(r,c)}function o(r,s,c){return this.superClass.prototype[s].apply(r,c)}function e(r,s){s=s||{};var c={};r.registerClass=function(v,b){if(b){if(h(b),b=f(b),!b.sub)c[b.main]=v;else if(b.sub!==m){var S=d(b);S[b.sub]=v}}return v},r.getClass=function(v,b,S){var E=c[v];if(E&&E[m]&&(E=b?E[b]:null),S&&!E)throw new Error(b?"Component "+v+"."+(b||"")+" not exists. Load it first.":v+".type should be specified.");return E},r.getClassesByMainType=function(v){v=f(v);var b=[],S=c[v.main];return S&&S[m]?x.each(S,function(E,C){C!==m&&b.push(E)}):b.push(S),b},r.hasClass=function(v){return v=f(v),!!c[v.main]},r.getAllClassMainTypes=function(){var v=[];return x.each(c,function(b,S){v.push(S)}),v},r.hasSubTypes=function(v){v=f(v);var b=c[v.main];return b&&b[m]},r.parseClassType=f;function d(v){var b=c[v.main];return(!b||!b[m])&&(b=c[v.main]={},b[m]=!0),b}if(s.registerWhenExtend){var g=r.extend;g&&(r.extend=function(v){var b=g.call(this,v);return r.registerClass(b,v.type)})}return r}function l(r,s){}D.parseClassType=f,D.enableClassExtend=u,D.enableClassCheck=i,D.enableClassManagement=e,D.setReadOnly=l},Ynxi:function(k,D,n){var y=n("bYtY"),p=n("ProS"),x=n("IwbS"),A=n("+TT/"),m=A.getLayoutRect,f=n("7aKB"),h=f.windowOpen;p.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"}}}),p.extendComponentView({type:"title",render:function(u,a,i){if(this.group.removeAll(),!u.get("show"))return;var t=this.group,o=u.getModel("textStyle"),e=u.getModel("subtextStyle"),l=u.get("textAlign"),r=y.retrieve2(u.get("textBaseline"),u.get("textVerticalAlign")),s=new x.Text({style:x.setTextStyle({},o,{text:u.get("text"),textFill:o.getTextColor()},{disableBox:!0}),z2:10}),c=s.getBoundingRect(),d=u.get("subtext"),g=new x.Text({style:x.setTextStyle({},e,{text:d,textFill:e.getTextColor(),y:c.height+u.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),v=u.get("link"),b=u.get("sublink"),S=u.get("triggerEvent",!0);s.silent=!v&&!S,g.silent=!b&&!S,v&&s.on("click",function(){h(v,"_"+u.get("target"))}),b&&g.on("click",function(){h(v,"_"+u.get("subtarget"))}),s.eventData=g.eventData=S?{componentType:"title",componentIndex:u.componentIndex}:null,t.add(s),d&&t.add(g);var E=t.getBoundingRect(),C=u.getBoxLayoutParams();C.width=E.width,C.height=E.height;var _=m(C,{width:i.getWidth(),height:i.getHeight()},u.get("padding"));l||(l=u.get("left")||u.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),r||(r=u.get("top")||u.get("bottom"),r==="center"&&(r="middle"),r==="bottom"?_.y+=_.height:r==="middle"&&(_.y+=_.height/2),r=r||"top"),t.attr("position",[_.x,_.y]);var T={textAlign:l,textVerticalAlign:r};s.setStyle(T),g.setStyle(T),E=t.getBoundingRect();var w=_.margin,O=u.getItemStyle(["color","opacity"]);O.fill=u.get("backgroundColor");var I=new x.Rect({shape:{x:E.x-w[3],y:E.y-w[0],width:E.width+w[1]+w[3],height:E.height+w[0]+w[2],r:u.get("borderRadius")},style:O,subPixelOptimize:!0,silent:!0});t.add(I)}})},Z0Lh:function(k,D,n){"use strict";var y=n("TqRt");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var p=y(n("pVnL")),x=y(n("HjOm")),A=y(n("Z6rY")),m={lang:(0,p.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"]},x.default),timePickerLocale:(0,p.default)({},A.default)};m.lang.ok="\u786E \u5B9A";var f=m;D.default=f},Z0cm:function(k,D){var n=Array.isArray;k.exports=n},Z1HP:function(k,D,n){var y=n("ycre"),p=n("quyA"),x=n("q4HE");function A(m){return p(m)?x(m):y(m)}k.exports=A},Z1r0:function(k,D){function n(y){var p=y.findComponents({mainType:"legend"});if(!p||!p.length)return;y.eachSeriesByType("graph",function(x){var A=x.getCategoriesData(),m=x.getGraph(),f=m.data,h=A.mapArray(A.getName);f.filterSelf(function(u){var a=f.getItemModel(u),i=a.getShallow("category");if(i!=null){typeof i=="number"&&(i=h[i]);for(var t=0;t<p.length;t++)if(!p[t].isSelected(i))return!1}return!0})},this)}k.exports=n},Z1wy:function(k,D,n){var y=n("ProS");n("ThAp"),n("pmaE"),n("SehX"),n("7uqq");var p=n("zuHt"),x=n("VPsl"),A=n("9u0u"),m=n("lELe"),f=n("d4KN");y.registerLayout(p),y.registerVisual(x),y.registerProcessor(y.PRIORITY.PROCESSOR.STATISTIC,A),y.registerPreprocessor(m),f("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},Z6js:function(k,D,n){var y=n("MwEJ"),p=n("T4UG"),x=p.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(A,m){return y(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});k.exports=x},Z6rY:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]},p=y;D.default=p},Z8oC:function(k,D,n){var y=n("y1pI");function p(x,A){var m=this.__data__,f=y(m,x);return f<0?(++this.size,m.push([x,A])):m[f][1]=A,this}k.exports=p},Z8zF:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),A=n("bYtY"),m=n("IwbS"),f=n("56rv"),h=f.setLabel,u=n("Qxkt"),a=n("tceW"),i=n("y+Vt"),t=n("4fz+"),o=n("iLNv"),e=o.throttle,l=n("sK/D"),r=l.createClipPath,s=n("wr5s"),c=["itemStyle","barBorderWidth"],d=[0,0];A.extend(u.prototype,a);function g(V,Q){var G=V.getArea&&V.getArea();if(V.type==="cartesian2d"){var ee=V.getBaseAxis();if(ee.type!=="category"||!ee.onBand){var ce=Q.getLayout("bandWidth");ee.isHorizontal()?(G.x-=ce,G.width+=ce*2):(G.y-=ce,G.height+=ce*2)}}return G}var v=x.extendChartView({type:"bar",render:function(V,Q,G){this._updateDrawMode(V);var ee=V.get("coordinateSystem");return(ee==="cartesian2d"||ee==="polar")&&(this._isLargeDraw?this._renderLarge(V,Q,G):this._renderNormal(V,Q,G)),this.group},incrementalPrepareRender:function(V,Q,G){this._clear(),this._updateDrawMode(V)},incrementalRender:function(V,Q,G,ee){this._incrementalRenderLarge(V,Q)},_updateDrawMode:function(V){var Q=V.pipelineContext.large;(this._isLargeDraw==null||Q^this._isLargeDraw)&&(this._isLargeDraw=Q,this._clear())},_renderNormal:function(V,Q,G){var ee=this.group,ce=V.getData(),be=this._data,le=V.coordinateSystem,Ie=le.getBaseAxis(),ke;le.type==="cartesian2d"?ke=Ie.isHorizontal():le.type==="polar"&&(ke=Ie.dim==="angle");var Re=V.isAnimationEnabled()?V:null,Qe=V.get("clip",!0),We=g(le,ce);ee.removeClipPath();var ot=V.get("roundCap",!0),Oe=V.get("showBackground",!0),oe=V.getModel("backgroundStyle"),st=oe.get("barBorderRadius")||0,he=[],J=this._backgroundEls||[];ce.diff(be).add(function(fe){var we=ce.getItemModel(fe),Ne=w[le.type](ce,fe,we);if(Oe){var Ee=w[le.type](ce,fe),de=z(le,ke,Ee);de.useStyle(oe.getBarItemStyle()),le.type==="cartesian2d"&&de.setShape("r",st),he[fe]=de}if(!ce.hasValue(fe))return;if(Qe){var me=E[le.type](We,Ne);if(me){ee.remove(Le);return}}var Le=C[le.type](fe,Ne,ke,Re,!1,ot);ce.setItemGraphicEl(fe,Le),ee.add(Le),I(Le,ce,fe,we,Ne,V,ke,le.type==="polar")}).update(function(fe,we){var Ne=ce.getItemModel(fe),Ee=w[le.type](ce,fe,Ne);if(Oe){var de=J[we];de.useStyle(oe.getBarItemStyle()),le.type==="cartesian2d"&&de.setShape("r",st),he[fe]=de;var me=w[le.type](ce,fe),Le=W(ke,me,le);m.updateProps(de,{shape:Le},Re,fe)}var tt=be.getItemGraphicEl(we);if(!ce.hasValue(fe)){ee.remove(tt);return}if(Qe){var At=E[le.type](We,Ee);if(At){ee.remove(tt);return}}tt?m.updateProps(tt,{shape:Ee},Re,fe):tt=C[le.type](fe,Ee,ke,Re,!0,ot),ce.setItemGraphicEl(fe,tt),ee.add(tt),I(tt,ce,fe,Ne,Ee,V,ke,le.type==="polar")}).remove(function(fe){var we=be.getItemGraphicEl(fe);le.type==="cartesian2d"?we&&_(fe,Re,we):we&&T(fe,Re,we)}).execute();var Y=this._backgroundGroup||(this._backgroundGroup=new t);Y.removeAll();for(var $=0;$<he.length;++$)Y.add(he[$]);ee.add(Y),this._backgroundEls=he,this._data=ce},_renderLarge:function(V,Q,G){this._clear(),F(V,this.group);var ee=V.get("clip",!0)?r(V.coordinateSystem,!1,V):null;ee?this.group.setClipPath(ee):this.group.removeClipPath()},_incrementalRenderLarge:function(V,Q){this._removeBackground(),F(Q,this.group,!0)},dispose:A.noop,remove:function(V){this._clear(V)},_clear:function(V){var Q=this.group,G=this._data;V&&V.get("animation")&&G&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],G.eachItemGraphicEl(function(ee){ee.type==="sector"?T(ee.dataIndex,V,ee):_(ee.dataIndex,V,ee)})):Q.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),b=Math.max,S=Math.min,E={cartesian2d:function(V,Q){var G=Q.width<0?-1:1,ee=Q.height<0?-1:1;G<0&&(Q.x+=Q.width,Q.width=-Q.width),ee<0&&(Q.y+=Q.height,Q.height=-Q.height);var ce=b(Q.x,V.x),be=S(Q.x+Q.width,V.x+V.width),le=b(Q.y,V.y),Ie=S(Q.y+Q.height,V.y+V.height);Q.x=ce,Q.y=le,Q.width=be-ce,Q.height=Ie-le;var ke=Q.width<0||Q.height<0;return G<0&&(Q.x+=Q.width,Q.width=-Q.width),ee<0&&(Q.y+=Q.height,Q.height=-Q.height),ke},polar:function(V){return!1}},C={cartesian2d:function(V,Q,G,ee,ce){var be=new m.Rect({shape:A.extend({},Q),z2:1});if(be.name="item",ee){var le=be.shape,Ie=G?"height":"width",ke={};le[Ie]=0,ke[Ie]=Q[Ie],m[ce?"updateProps":"initProps"](be,{shape:ke},ee,V)}return be},polar:function(V,Q,G,ee,ce,be){var le=Q.startAngle<Q.endAngle,Ie=!G&&be?s:m.Sector,ke=new Ie({shape:A.defaults({clockwise:le},Q),z2:1});if(ke.name="item",ee){var Re=ke.shape,Qe=G?"r":"endAngle",We={};Re[Qe]=G?0:Q.startAngle,We[Qe]=Q[Qe],m[ce?"updateProps":"initProps"](ke,{shape:We},ee,V)}return ke}};function _(V,Q,G){G.style.text=null,m.updateProps(G,{shape:{width:0}},Q,V,function(){G.parent&&G.parent.remove(G)})}function T(V,Q,G){G.style.text=null,m.updateProps(G,{shape:{r:G.shape.r0}},Q,V,function(){G.parent&&G.parent.remove(G)})}var w={cartesian2d:function(V,Q,G){var ee=V.getItemLayout(Q),ce=G?R(G,ee):0,be=ee.width>0?1:-1,le=ee.height>0?1:-1;return{x:ee.x+be*ce/2,y:ee.y+le*ce/2,width:ee.width-be*ce,height:ee.height-le*ce}},polar:function(V,Q,G){var ee=V.getItemLayout(Q);return{cx:ee.cx,cy:ee.cy,r0:ee.r0,r:ee.r,startAngle:ee.startAngle,endAngle:ee.endAngle}}};function O(V){return V.startAngle!=null&&V.endAngle!=null&&V.startAngle===V.endAngle}function I(V,Q,G,ee,ce,be,le,Ie){var ke=Q.getItemVisual(G,"color"),Re=Q.getItemVisual(G,"opacity"),Qe=Q.getVisual("borderColor"),We=ee.getModel("itemStyle"),ot=ee.getModel("emphasis.itemStyle").getBarItemStyle();Ie||V.setShape("r",We.get("barBorderRadius")||0),V.useStyle(A.defaults({stroke:O(ce)?"none":Qe,fill:O(ce)?"none":ke,opacity:Re},We.getBarItemStyle()));var Oe=ee.getShallow("cursor");Oe&&V.attr("cursor",Oe);var oe=le?ce.height>0?"bottom":"top":ce.width>0?"left":"right";Ie||h(V.style,ot,ee,ke,be,G,oe),O(ce)&&(ot.fill=ot.stroke="none"),m.setHoverStyle(V,ot)}function R(V,Q){var G=V.get(c)||0,ee=isNaN(Q.width)?Number.MAX_VALUE:Math.abs(Q.width),ce=isNaN(Q.height)?Number.MAX_VALUE:Math.abs(Q.height);return Math.min(G,ee,ce)}var M=i.extend({type:"largeBar",shape:{points:[]},buildPath:function(V,Q){for(var G=Q.points,ee=this.__startPoint,ce=this.__baseDimIdx,be=0;be<G.length;be+=2)ee[ce]=G[be+ce],V.moveTo(ee[0],ee[1]),V.lineTo(G[be],G[be+1])}});function F(V,Q,G){var ee=V.getData(),ce=[],be=ee.getLayout("valueAxisHorizontal")?1:0;ce[1-be]=ee.getLayout("valueAxisStart");var le=ee.getLayout("largeDataIndices"),Ie=ee.getLayout("barWidth"),ke=V.getModel("backgroundStyle"),Re=V.get("showBackground",!0);if(Re){var Qe=ee.getLayout("largeBackgroundPoints"),We=[];We[1-be]=ee.getLayout("backgroundStart");var ot=new M({shape:{points:Qe},incremental:!!G,__startPoint:We,__baseDimIdx:be,__largeDataIndices:le,__barWidth:Ie,silent:!0,z2:0});j(ot,ke,ee),Q.add(ot)}var Oe=new M({shape:{points:ee.getLayout("largePoints")},incremental:!!G,__startPoint:ce,__baseDimIdx:be,__largeDataIndices:le,__barWidth:Ie});Q.add(Oe),B(Oe,V,ee),Oe.seriesIndex=V.seriesIndex,V.get("silent")||(Oe.on("mousedown",P),Oe.on("mousemove",P))}var P=e(function(V){var Q=this,G=X(Q,V.offsetX,V.offsetY);Q.dataIndex=G>=0?G:null},30,!1);function X(V,Q,G){var ee=V.__baseDimIdx,ce=1-ee,be=V.shape.points,le=V.__largeDataIndices,Ie=Math.abs(V.__barWidth/2),ke=V.__startPoint[ce];d[0]=Q,d[1]=G;for(var Re=d[ee],Qe=d[1-ee],We=Re-Ie,ot=Re+Ie,Oe=0,oe=be.length/2;Oe<oe;Oe++){var st=Oe*2,he=be[st+ee],J=be[st+ce];if(he>=We&&he<=ot&&(ke<=J?Qe>=ke&&Qe<=J:Qe>=J&&Qe<=ke))return le[Oe]}return-1}function B(V,Q,G){var ee=G.getVisual("borderColor")||G.getVisual("color"),ce=Q.getModel("itemStyle").getItemStyle(["color","borderColor"]);V.useStyle(ce),V.style.fill=null,V.style.stroke=ee,V.style.lineWidth=G.getLayout("barWidth")}function j(V,Q,G){var ee=Q.get("borderColor")||Q.get("color"),ce=Q.getItemStyle(["color","borderColor"]);V.useStyle(ce),V.style.fill=null,V.style.stroke=ee,V.style.lineWidth=G.getLayout("barWidth")}function W(V,Q,G){var ee,ce=G.type==="polar";return ce?ee=G.getArea():ee=G.grid.getRect(),ce?{cx:ee.cx,cy:ee.cy,r0:V?ee.r0:Q.r0,r:V?ee.r:Q.r,startAngle:V?Q.startAngle:0,endAngle:V?Q.endAngle:Math.PI*2}:{x:V?Q.x:ee.x,y:V?ee.y:Q.y,width:V?Q.width:ee.width,height:V?ee.height:Q.height}}function z(V,Q,G){var ee=V.type==="polar"?m.Sector:m.Rect;return new ee({shape:W(Q,G,V),silent:!0,z2:0})}k.exports=v},ZCgT:function(k,D,n){var y=n("tLB3"),p=1/0,x=17976931348623157e292;function A(m){if(!m)return m===0?m:0;if(m=y(m),m===p||m===-p){var f=m<0?-1:1;return f*x}return m===m?m:0}k.exports=A},ZLWo:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},ZTPi:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("q1tI"),f=n("rePB"),h=n("ODXe"),u=n("Ff2n"),a=n("VTBJ"),i=n("TSYQ"),t=n.n(i),o=n("Zm9Q"),e=n("6cGi"),l=n("KQm4"),r=n("xEkU"),s=n.n(r),c=n("1OyB"),d=n("vuIU"),g=n("Ji7U"),v=n("LK+K"),b=n("m+aA"),S=n("Kwbf"),E=n("c+Xe"),C=n("bdgK"),_="rc-observer-key",T=function(qr){Object(g.a)(zn,qr);var xn=Object(v.a)(zn);function zn(){var Ht;return Object(c.a)(this,zn),Ht=xn.apply(this,arguments),Ht.resizeObserver=null,Ht.childNode=null,Ht.currentElement=null,Ht.state={width:0,height:0,offsetHeight:0,offsetWidth:0},Ht.onResize=function(Tt){var Dt=Ht.props.onResize,Bt=Tt[0].target,jt=Bt.getBoundingClientRect(),Ot=jt.width,nr=jt.height,pr=Bt.offsetWidth,Ar=Bt.offsetHeight,Nr=Math.floor(Ot),Hn=Math.floor(nr);if(Ht.state.width!==Nr||Ht.state.height!==Hn||Ht.state.offsetWidth!==pr||Ht.state.offsetHeight!==Ar){var Ln={width:Nr,height:Hn,offsetWidth:pr,offsetHeight:Ar};Ht.setState(Ln),Dt&&Promise.resolve().then(function(){Dt(Object(a.a)(Object(a.a)({},Ln),{},{offsetWidth:pr,offsetHeight:Ar}))})}},Ht.setChildNode=function(Tt){Ht.childNode=Tt},Ht}return Object(d.a)(zn,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var Tt=this.props.disabled;if(Tt){this.destroyObserver();return}var Dt=Object(b.a)(this.childNode||this),Bt=Dt!==this.currentElement;Bt&&(this.destroyObserver(),this.currentElement=Dt),!this.resizeObserver&&Dt&&(this.resizeObserver=new C.default(this.onResize),this.resizeObserver.observe(Dt))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var Tt=this.props.children,Dt=Object(o.a)(Tt);if(Dt.length>1)Object(S.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(Dt.length===0)return Object(S.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Bt=Dt[0];if(m.isValidElement(Bt)&&Object(E.c)(Bt)){var jt=Bt.ref;Dt[0]=m.cloneElement(Bt,{ref:Object(E.a)(jt,this.setChildNode)})}return Dt.length===1?Dt[0]:Dt.map(function(Ot,nr){return!m.isValidElement(Ot)||"key"in Ot&&Ot.key!==null?Ot:m.cloneElement(Ot,{key:"".concat(_,"-").concat(nr)})})}}]),zn}(m.Component);T.displayName="ResizeObserver";var w=T;function O(qr){var xn=Object(m.useRef)(),zn=Object(m.useRef)(!1);function Ht(){for(var Tt=arguments.length,Dt=new Array(Tt),Bt=0;Bt<Tt;Bt++)Dt[Bt]=arguments[Bt];zn.current||(s.a.cancel(xn.current),xn.current=s()(function(){qr.apply(void 0,Dt)}))}return Object(m.useEffect)(function(){return function(){zn.current=!0,s.a.cancel(xn.current)}},[]),Ht}function I(qr){var xn=Object(m.useRef)([]),zn=Object(m.useState)({}),Ht=Object(h.a)(zn,2),Tt=Ht[1],Dt=Object(m.useRef)(typeof qr=="function"?qr():qr),Bt=O(function(){var Ot=Dt.current;xn.current.forEach(function(nr){Ot=nr(Ot)}),xn.current=[],Dt.current=Ot,Tt({})});function jt(Ot){xn.current.push(Ot),Bt()}return[Dt.current,jt]}var R=n("4IlW");function M(qr,xn){var zn,Ht=qr.prefixCls,Tt=qr.id,Dt=qr.active,Bt=qr.rtl,jt=qr.tab,Ot=jt.key,nr=jt.tab,pr=jt.disabled,Ar=jt.closeIcon,Nr=qr.tabBarGutter,Hn=qr.tabPosition,Ln=qr.closable,ci=qr.renderWrapper,hn=qr.removeAriaLabel,Fr=qr.editable,En=qr.onClick,Wn=qr.onRemove,Yn=qr.onFocus,ii="".concat(Ht,"-tab");m.useEffect(function(){return Wn},[]);var xi={};Hn==="top"||Hn==="bottom"?xi[Bt?"marginLeft":"marginRight"]=Nr:xi.marginBottom=Nr;var Ni=Fr&&Ln!==!1&&!pr;function Li(ia){if(pr)return;En(ia)}function oa(ia){ia.preventDefault(),ia.stopPropagation(),Fr.onEdit("remove",{key:Ot,event:ia})}var ma=m.createElement("div",{key:Ot,ref:xn,className:t()(ii,(zn={},Object(f.a)(zn,"".concat(ii,"-with-remove"),Ni),Object(f.a)(zn,"".concat(ii,"-active"),Dt),Object(f.a)(zn,"".concat(ii,"-disabled"),pr),zn)),style:xi,onClick:Li},m.createElement("div",{role:"tab","aria-selected":Dt,id:Tt&&"".concat(Tt,"-tab-").concat(Ot),className:"".concat(ii,"-btn"),"aria-controls":Tt&&"".concat(Tt,"-panel-").concat(Ot),"aria-disabled":pr,tabIndex:pr?null:0,onClick:function(ba){ba.stopPropagation(),Li(ba)},onKeyDown:function(ba){[R.a.SPACE,R.a.ENTER].includes(ba.which)&&(ba.preventDefault(),Li(ba))},onFocus:Yn},nr),Ni&&m.createElement("button",{type:"button","aria-label":hn||"remove",tabIndex:0,className:"".concat(ii,"-remove"),onClick:function(ba){ba.stopPropagation(),oa(ba)}},Ar||Fr.removeIcon||"\xD7"));return ci&&(ma=ci(ma)),ma}var F=m.forwardRef(M),P={width:0,height:0,left:0,top:0};function X(qr,xn,zn){return Object(m.useMemo)(function(){for(var Ht,Tt=new Map,Dt=xn.get((Ht=qr[0])===null||Ht===void 0?void 0:Ht.key)||P,Bt=Dt.left+Dt.width,jt=0;jt<qr.length;jt+=1){var Ot=qr[jt].key,nr=xn.get(Ot);if(!nr){var pr;nr=xn.get((pr=qr[jt-1])===null||pr===void 0?void 0:pr.key)||P}var Ar=Tt.get(Ot)||Object(a.a)({},nr);Ar.right=Bt-Ar.left-Ar.width,Tt.set(Ot,Ar)}return Tt},[qr.map(function(Ht){return Ht.key}).join("_"),xn,zn])}var B={width:0,height:0,left:0,top:0,right:0};function j(qr,xn,zn,Ht,Tt){var Dt=Tt.tabs,Bt=Tt.tabPosition,jt=Tt.rtl,Ot,nr,pr;["top","bottom"].includes(Bt)?(Ot="width",nr=jt?"right":"left",pr=Math.abs(xn.left)):(Ot="height",nr="top",pr=-xn.top);var Ar=xn[Ot],Nr=zn[Ot],Hn=Ht[Ot],Ln=Ar;return Nr+Hn>Ar&&(Ln=Ar-Hn),Object(m.useMemo)(function(){if(!Dt.length)return[0,0];for(var ci=Dt.length,hn=ci,Fr=0;Fr<ci;Fr+=1){var En=qr.get(Dt[Fr].key)||B;if(En[nr]+En[Ot]>pr+Ln){hn=Fr-1;break}}for(var Wn=0,Yn=ci-1;Yn>=0;Yn-=1){var ii=qr.get(Dt[Yn].key)||B;if(ii[nr]<pr){Wn=Yn+1;break}}return[Wn,hn]},[qr,pr,Ln,Bt,Dt.map(function(ci){return ci.key}).join("_"),jt])}var W=n("wx14"),z=n("JX7q"),V=n("I8Z2"),Q=n("bT9E"),G=n("2GS6"),ee=n("Gytx"),ce=n.n(ee),be=n("U8pU"),le=/iPhone/i,Ie=/iPod/i,ke=/iPad/i,Re=/\bAndroid(?:.+)Mobile\b/i,Qe=/Android/i,We=/\bAndroid(?:.+)SD4930UR\b/i,ot=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,Oe=/Windows Phone/i,oe=/\bWindows(?:.+)ARM\b/i,st=/BlackBerry/i,he=/BB10/i,J=/Opera Mini/i,Y=/\b(CriOS|Chrome)(?:.+)Mobile/i,$=/Mobile(?:.+)Firefox\b/i;function fe(qr,xn){return qr.test(xn)}function we(qr){var xn=qr||(typeof navigator!="undefined"?navigator.userAgent:""),zn=(xn||"").split("[FBAN");if(typeof zn[1]!="undefined"){var Ht=zn,Tt=Object(h.a)(Ht,1);xn=Tt[0]}if(zn=xn.split("Twitter"),typeof zn[1]!="undefined"){var Dt=zn,Bt=Object(h.a)(Dt,1);xn=Bt[0]}var jt={apple:{phone:fe(le,xn)&&!fe(Oe,xn),ipod:fe(Ie,xn),tablet:!fe(le,xn)&&fe(ke,xn)&&!fe(Oe,xn),device:(fe(le,xn)||fe(Ie,xn)||fe(ke,xn))&&!fe(Oe,xn)},amazon:{phone:fe(We,xn),tablet:!fe(We,xn)&&fe(ot,xn),device:fe(We,xn)||fe(ot,xn)},android:{phone:!fe(Oe,xn)&&fe(We,xn)||!fe(Oe,xn)&&fe(Re,xn),tablet:!fe(Oe,xn)&&!fe(We,xn)&&!fe(Re,xn)&&(fe(ot,xn)||fe(Qe,xn)),device:!fe(Oe,xn)&&(fe(We,xn)||fe(ot,xn)||fe(Re,xn)||fe(Qe,xn))||fe(/\bokhttp\b/i,xn)},windows:{phone:fe(Oe,xn),tablet:fe(oe,xn),device:fe(Oe,xn)||fe(oe,xn)},other:{blackberry:fe(st,xn),blackberry10:fe(he,xn),opera:fe(J,xn),firefox:fe($,xn),chrome:fe(Y,xn),device:fe(st,xn)||fe(he,xn)||fe(J,xn)||fe($,xn)||fe(Y,xn)},any:null,phone:null,tablet:null};return jt.any=jt.apple.device||jt.android.device||jt.windows.device||jt.other.device,jt.phone=jt.apple.phone||jt.android.phone||jt.windows.phone,jt.tablet=jt.apple.tablet||jt.android.tablet||jt.windows.tablet,jt}var Ne=Object(a.a)(Object(a.a)({},we()),{},{isMobile:we}),Ee=Ne;function de(){}function me(qr,xn,zn){var Ht=xn||"";return qr.key||"".concat(Ht,"item_").concat(zn)}function Le(qr){return"".concat(qr,"-menu-")}function tt(qr,xn){var zn=-1;m.Children.forEach(qr,function(Ht){zn+=1,Ht&&Ht.type&&Ht.type.isMenuItemGroup?m.Children.forEach(Ht.props.children,function(Tt){zn+=1,xn(Tt,zn)}):xn(Ht,zn)})}function At(qr,xn,zn){if(!qr||zn.find)return;m.Children.forEach(qr,function(Ht){if(Ht){var Tt=Ht.type;if(!Tt||!(Tt.isSubMenu||Tt.isMenuItem||Tt.isMenuItemGroup))return;xn.indexOf(Ht.key)!==-1?zn.find=!0:Ht.props.children&&At(Ht.props.children,xn,zn)}})}var ht=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],Ke=function(xn){var zn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ht=xn&&typeof xn.getBoundingClientRect=="function"&&xn.getBoundingClientRect().width;if(Ht){if(zn){var Tt=getComputedStyle(xn),Dt=Tt.marginLeft,Bt=Tt.marginRight;Ht+=+Dt.replace("px","")+ +Bt.replace("px","")}Ht=+Ht.toFixed(6)}return Ht||0},Jt=function(xn,zn,Ht){xn&&Object(be.a)(xn.style)==="object"&&(xn.style[zn]=Ht)},ct=function(){return Ee.any},Gt=n("i8i4"),dr=n("uciX"),zt=n("wgJM"),kt=n("8XRh"),Vt={adjustX:1,adjustY:1},Xe={topLeft:{points:["bl","tl"],overflow:Vt,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Vt,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Vt,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Vt,offset:[4,0]}},pe={topLeft:{points:["bl","tl"],overflow:Vt,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Vt,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Vt,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Vt,offset:[4,0]}},te=Xe,$e=0,He={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ae=function(xn,zn,Ht){var Tt=Le(zn),Dt=xn.getState();xn.setState({defaultActiveFirst:Object(a.a)(Object(a.a)({},Dt.defaultActiveFirst),{},Object(f.a)({},Tt,Ht))})},ft=function(qr){Object(g.a)(zn,qr);var xn=Object(v.a)(zn);function zn(Ht){var Tt;Object(c.a)(this,zn),Tt=xn.call(this,Ht),Tt.onDestroy=function(pr){Tt.props.onDestroy(pr)},Tt.onKeyDown=function(pr){var Ar=pr.keyCode,Nr=Tt.menuInstance,Hn=Tt.props.store,Ln=Tt.getVisible();if(Ar===R.a.ENTER)return Tt.onTitleClick(pr),ae(Hn,Tt.props.eventKey,!0),!0;if(Ar===R.a.RIGHT)return Ln?Nr.onKeyDown(pr):(Tt.triggerOpenChange(!0),ae(Hn,Tt.props.eventKey,!0)),!0;if(Ar===R.a.LEFT){var ci;if(Ln)ci=Nr.onKeyDown(pr);else return;return ci||(Tt.triggerOpenChange(!1),ci=!0),ci}return Ln&&(Ar===R.a.UP||Ar===R.a.DOWN)?Nr.onKeyDown(pr):void 0},Tt.onOpenChange=function(pr){Tt.props.onOpenChange(pr)},Tt.onPopupVisibleChange=function(pr){Tt.triggerOpenChange(pr,pr?"mouseenter":"mouseleave")},Tt.onMouseEnter=function(pr){var Ar=Tt.props,Nr=Ar.eventKey,Hn=Ar.onMouseEnter,Ln=Ar.store;ae(Ln,Tt.props.eventKey,!1),Hn({key:Nr,domEvent:pr})},Tt.onMouseLeave=function(pr){var Ar=Tt.props,Nr=Ar.parentMenu,Hn=Ar.eventKey,Ln=Ar.onMouseLeave;Nr.subMenuInstance=Object(z.a)(Tt),Ln({key:Hn,domEvent:pr})},Tt.onTitleMouseEnter=function(pr){var Ar=Tt.props,Nr=Ar.eventKey,Hn=Ar.onItemHover,Ln=Ar.onTitleMouseEnter;Hn({key:Nr,hover:!0}),Ln({key:Nr,domEvent:pr})},Tt.onTitleMouseLeave=function(pr){var Ar=Tt.props,Nr=Ar.parentMenu,Hn=Ar.eventKey,Ln=Ar.onItemHover,ci=Ar.onTitleMouseLeave;Nr.subMenuInstance=Object(z.a)(Tt),Ln({key:Hn,hover:!1}),ci({key:Hn,domEvent:pr})},Tt.onTitleClick=function(pr){var Ar=Object(z.a)(Tt),Nr=Ar.props;if(Nr.onTitleClick({key:Nr.eventKey,domEvent:pr}),Nr.triggerSubMenuAction==="hover")return;Tt.triggerOpenChange(!Tt.getVisible(),"click"),ae(Nr.store,Tt.props.eventKey,!1)},Tt.onSubMenuClick=function(pr){typeof Tt.props.onClick=="function"&&Tt.props.onClick(Tt.addKeyPath(pr))},Tt.onSelect=function(pr){Tt.props.onSelect(pr)},Tt.onDeselect=function(pr){Tt.props.onDeselect(pr)},Tt.getPrefixCls=function(){return"".concat(Tt.props.rootPrefixCls,"-submenu")},Tt.getActiveClassName=function(){return"".concat(Tt.getPrefixCls(),"-active")},Tt.getDisabledClassName=function(){return"".concat(Tt.getPrefixCls(),"-disabled")},Tt.getSelectedClassName=function(){return"".concat(Tt.getPrefixCls(),"-selected")},Tt.getOpenClassName=function(){return"".concat(Tt.props.rootPrefixCls,"-submenu-open")},Tt.getVisible=function(){return Tt.state.isOpen},Tt.getMode=function(){return Tt.state.mode},Tt.saveMenuInstance=function(pr){Tt.menuInstance=pr},Tt.addKeyPath=function(pr){return Object(a.a)(Object(a.a)({},pr),{},{keyPath:(pr.keyPath||[]).concat(Tt.props.eventKey)})},Tt.triggerOpenChange=function(pr,Ar){var Nr=Tt.props.eventKey,Hn=function(){Tt.onOpenChange({key:Nr,item:Object(z.a)(Tt),trigger:Ar,open:pr})};Ar==="mouseenter"?Tt.mouseenterTimeout=setTimeout(function(){Hn()},0):Hn()},Tt.isChildrenSelected=function(){var pr={find:!1};return At(Tt.props.children,Tt.props.selectedKeys,pr),pr.find},Tt.isInlineMode=function(){return Tt.getMode()==="inline"},Tt.adjustWidth=function(){if(!Tt.subMenuTitle||!Tt.menuInstance)return;var pr=Gt.findDOMNode(Tt.menuInstance);if(pr.offsetWidth>=Tt.subMenuTitle.offsetWidth)return;pr.style.minWidth="".concat(Tt.subMenuTitle.offsetWidth,"px")},Tt.saveSubMenuTitle=function(pr){Tt.subMenuTitle=pr},Tt.getBaseProps=function(){var pr=Object(z.a)(Tt),Ar=pr.props,Nr=Tt.getMode();return{mode:Nr==="horizontal"?"vertical":Nr,visible:Tt.getVisible(),level:Ar.level+1,inlineIndent:Ar.inlineIndent,focusable:!1,onClick:Tt.onSubMenuClick,onSelect:Tt.onSelect,onDeselect:Tt.onDeselect,onDestroy:Tt.onDestroy,selectedKeys:Ar.selectedKeys,eventKey:"".concat(Ar.eventKey,"-menu-"),openKeys:Ar.openKeys,motion:Ar.motion,onOpenChange:Tt.onOpenChange,subMenuOpenDelay:Ar.subMenuOpenDelay,parentMenu:Object(z.a)(Tt),subMenuCloseDelay:Ar.subMenuCloseDelay,forceSubMenuRender:Ar.forceSubMenuRender,triggerSubMenuAction:Ar.triggerSubMenuAction,builtinPlacements:Ar.builtinPlacements,defaultActiveFirst:Ar.store.getState().defaultActiveFirst[Le(Ar.eventKey)],multiple:Ar.multiple,prefixCls:Ar.rootPrefixCls,id:Tt.internalMenuId,manualRef:Tt.saveMenuInstance,itemIcon:Ar.itemIcon,expandIcon:Ar.expandIcon,direction:Ar.direction}},Tt.getMotion=function(pr,Ar){var Nr=Object(z.a)(Tt),Hn=Nr.haveRendered,Ln=Tt.props,ci=Ln.motion,hn=Ln.rootPrefixCls,Fr=Object(a.a)(Object(a.a)({},ci),{},{leavedClassName:"".concat(hn,"-hidden"),removeOnLeave:!1,motionAppear:Hn||!Ar||pr!=="inline"});return Fr};var Dt=Ht.store,Bt=Ht.eventKey,jt=Dt.getState(),Ot=jt.defaultActiveFirst;Tt.isRootMenu=!1;var nr=!1;return Ot&&(nr=Ot[Bt]),ae(Dt,Bt,nr),Tt.state={mode:Ht.mode,isOpen:Ht.isOpen},Tt}return Object(d.a)(zn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Tt=this,Dt=this.props,Bt=Dt.mode,jt=Dt.parentMenu,Ot=Dt.manualRef,nr=Dt.isOpen,pr=function(){Tt.setState({mode:Bt,isOpen:nr})},Ar=nr!==this.state.isOpen,Nr=Bt!==this.state.mode;if((Nr||Ar)&&(zt.a.cancel(this.updateStateRaf),Nr?this.updateStateRaf=Object(zt.a)(pr):pr()),Ot&&Ot(this),Bt!=="horizontal"||!(jt==null?void 0:jt.isRootMenu)||!nr)return;this.minWidthTimeout=setTimeout(function(){return Tt.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Tt=this.props,Dt=Tt.onDestroy,Bt=Tt.eventKey;Dt&&Dt(Bt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),zt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Tt,Dt){var Bt=this.getBaseProps();return m.createElement(ri,Object(W.a)({},Bt,{id:this.internalMenuId,className:Tt,style:Dt}),this.props.children)}},{key:"renderChildren",value:function(){var Tt=this,Dt=this.getBaseProps(),Bt=Dt.mode,jt=Dt.visible,Ot=Dt.forceSubMenuRender,nr=Dt.direction,pr=this.getMotion(Bt,jt);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||jt||Ot,!this.haveOpened)return m.createElement("div",null);var Ar=t()("".concat(Dt.prefixCls,"-sub"),Object(f.a)({},"".concat(Dt.prefixCls,"-rtl"),nr==="rtl"));return this.isInlineMode()?m.createElement(kt.b,Object(W.a)({visible:Dt.visible,forceRender:Ot},pr),function(Nr){var Hn=Nr.className,Ln=Nr.style,ci=t()(Ar,Hn);return Tt.renderPopupMenu(ci,Ln)}):this.renderPopupMenu(Ar)}},{key:"render",value:function(){var Tt,Dt,Bt,jt=Object(a.a)({},this.props),Ot=this.getVisible(),nr=this.getPrefixCls(),pr=this.isInlineMode(),Ar=this.getMode(),Nr=t()(nr,"".concat(nr,"-").concat(Ar),(Tt={},Object(f.a)(Tt,jt.className,!!jt.className),Object(f.a)(Tt,this.getOpenClassName(),Ot),Object(f.a)(Tt,this.getActiveClassName(),jt.active||Ot&&!pr),Object(f.a)(Tt,this.getDisabledClassName(),jt.disabled),Object(f.a)(Tt,this.getSelectedClassName(),this.isChildrenSelected()),Tt));this.internalMenuId||(jt.eventKey?this.internalMenuId="".concat(jt.eventKey,"$Menu"):($e+=1,this.internalMenuId="$__$".concat($e,"$Menu")));var Hn={},Ln={},ci={};jt.disabled||(Hn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Ln={onClick:this.onTitleClick},ci={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var hn={},Fr=jt.direction,En=Fr==="rtl";pr&&(En?hn.paddingRight=jt.inlineIndent*jt.level:hn.paddingLeft=jt.inlineIndent*jt.level);var Wn={};this.getVisible()&&(Wn={"aria-owns":this.internalMenuId});var Yn=null;Ar!=="horizontal"&&(Yn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Yn=m.createElement(this.props.expandIcon,Object(a.a)({},this.props))));var ii=m.createElement("div",Object(W.a)({ref:this.saveSubMenuTitle,style:hn,className:"".concat(nr,"-title"),role:"button"},ci,Ln,{"aria-expanded":Ot},Wn,{"aria-haspopup":"true",title:typeof jt.title=="string"?jt.title:void 0}),jt.title,Yn||m.createElement("i",{className:"".concat(nr,"-arrow")})),xi=this.renderChildren(),Ni=((Dt=jt.parentMenu)===null||Dt===void 0?void 0:Dt.isRootMenu)?jt.parentMenu.props.getPopupContainer:function(wr){return wr.parentNode},Li=He[Ar],oa=jt.popupOffset?{offset:jt.popupOffset}:{},ma=t()((Bt={},Object(f.a)(Bt,jt.popupClassName,jt.popupClassName&&!pr),Object(f.a)(Bt,"".concat(nr,"-rtl"),En),Bt)),ia=jt.disabled,ba=jt.triggerSubMenuAction,vi=jt.subMenuOpenDelay,On=jt.forceSubMenuRender,Fi=jt.subMenuCloseDelay,ha=jt.builtinPlacements;ht.forEach(function(wr){return delete jt[wr]}),delete jt.onClick;var ea=En?Object(a.a)(Object(a.a)({},pe),ha):Object(a.a)(Object(a.a)({},Xe),ha);delete jt.direction;var aa=this.getBaseProps(),Or=pr?null:this.getMotion(aa.mode,aa.visible);return m.createElement("li",Object(W.a)({},jt,Hn,{className:Nr,role:"menuitem"}),m.createElement(dr.a,{prefixCls:nr,popupClassName:t()("".concat(nr,"-popup"),ma),getPopupContainer:Ni,builtinPlacements:ea,popupPlacement:Li,popupVisible:pr?!1:Ot,popupAlign:oa,popup:pr?null:xi,action:ia||pr?[]:[ba],mouseEnterDelay:vi,mouseLeaveDelay:Fi,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:On,popupMotion:Or},ii),pr?xi:null)}}]),zn}(m.Component);ft.defaultProps={onMouseEnter:de,onMouseLeave:de,onTitleMouseEnter:de,onTitleMouseLeave:de,onTitleClick:de,manualRef:de,mode:"vertical",title:""};var Mt=Object(V.b)(function(qr,xn){var zn=qr.openKeys,Ht=qr.activeKey,Tt=qr.selectedKeys,Dt=xn.eventKey,Bt=xn.subMenuKey;return{isOpen:zn.indexOf(Dt)>-1,active:Ht[Bt]===Dt,selectedKeys:Tt}})(ft);Mt.isSubMenu=!0;var mt=Mt,or="menuitem-overflowed",vr=.5,fn=function(qr){Object(g.a)(zn,qr);var xn=Object(v.a)(zn);function zn(){var Ht;return Object(c.a)(this,zn),Ht=xn.apply(this,arguments),Ht.resizeObserver=null,Ht.mutationObserver=null,Ht.originalTotalWidth=0,Ht.overflowedItems=[],Ht.menuItemSizes=[],Ht.cancelFrameId=null,Ht.state={lastVisibleIndex:void 0},Ht.childRef=m.createRef(),Ht.getMenuItemNodes=function(){var Tt=Ht.props.prefixCls,Dt=Ht.childRef.current;return Dt?[].slice.call(Dt.children).filter(function(Bt){return Bt.className.split(" ").indexOf("".concat(Tt,"-overflowed-submenu"))<0}):[]},Ht.getOverflowedSubMenuItem=function(Tt,Dt,Bt){var jt=Ht.props,Ot=jt.overflowedIndicator,nr=jt.level,pr=jt.mode,Ar=jt.prefixCls,Nr=jt.theme;if(nr!==1||pr!=="horizontal")return null;var Hn=Ht.props.children[0],Ln=Hn.props,ci=Ln.children,hn=Ln.title,Fr=Ln.style,En=Object(u.a)(Ln,["children","title","style"]),Wn=Object(a.a)({},Fr),Yn="".concat(Tt,"-overflowed-indicator"),ii="".concat(Tt,"-overflowed-indicator");Dt.length===0&&Bt!==!0?Wn=Object(a.a)(Object(a.a)({},Wn),{},{display:"none"}):Bt&&(Wn=Object(a.a)(Object(a.a)({},Wn),{},{visibility:"hidden",position:"absolute"}),Yn="".concat(Yn,"-placeholder"),ii="".concat(ii,"-placeholder"));var xi=Nr?"".concat(Ar,"-").concat(Nr):"",Ni={};return ht.forEach(function(Li){En[Li]!==void 0&&(Ni[Li]=En[Li])}),m.createElement(mt,Object(W.a)({title:Ot,className:"".concat(Ar,"-overflowed-submenu"),popupClassName:xi},Ni,{key:Yn,eventKey:ii,disabled:!1,style:Wn}),Dt)},Ht.setChildrenWidthAndResize=function(){if(Ht.props.mode!=="horizontal")return;var Tt=Ht.childRef.current;if(!Tt)return;var Dt=Tt.children;if(!Dt||Dt.length===0)return;var Bt=Tt.children[Dt.length-1];Jt(Bt,"display","inline-block");var jt=Ht.getMenuItemNodes(),Ot=jt.filter(function(nr){return nr.className.split(" ").indexOf(or)>=0});Ot.forEach(function(nr){Jt(nr,"display","inline-block")}),Ht.menuItemSizes=jt.map(function(nr){return Ke(nr,!0)}),Ot.forEach(function(nr){Jt(nr,"display","none")}),Ht.overflowedIndicatorWidth=Ke(Tt.children[Tt.children.length-1],!0),Ht.originalTotalWidth=Ht.menuItemSizes.reduce(function(nr,pr){return nr+pr},0),Ht.handleResize(),Jt(Bt,"display","none")},Ht.handleResize=function(){if(Ht.props.mode!=="horizontal")return;var Tt=Ht.childRef.current;if(!Tt)return;var Dt=Ke(Tt);Ht.overflowedItems=[];var Bt=0,jt;Ht.originalTotalWidth>Dt+vr&&(jt=-1,Ht.menuItemSizes.forEach(function(Ot){Bt+=Ot,Bt+Ht.overflowedIndicatorWidth<=Dt&&(jt+=1)})),Ht.setState({lastVisibleIndex:jt})},Ht}return Object(d.a)(zn,[{key:"componentDidMount",value:function(){var Tt=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Dt=this.childRef.current;if(!Dt)return;this.resizeObserver=new C.default(function(Bt){Bt.forEach(function(){var jt=Tt.cancelFrameId;cancelAnimationFrame(jt),Tt.cancelFrameId=requestAnimationFrame(Tt.setChildrenWidthAndResize)})}),[].slice.call(Dt.children).concat(Dt).forEach(function(Bt){Tt.resizeObserver.observe(Bt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Tt.resizeObserver.disconnect(),[].slice.call(Dt.children).concat(Dt).forEach(function(Bt){Tt.resizeObserver.observe(Bt)}),Tt.setChildrenWidthAndResize()}),this.mutationObserver.observe(Dt,{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(Tt){var Dt=this,Bt=this.state.lastVisibleIndex;return(Tt||[]).reduce(function(jt,Ot,nr){var pr=Ot;if(Dt.props.mode==="horizontal"){var Ar=Dt.getOverflowedSubMenuItem(Ot.props.eventKey,[]);Bt!==void 0&&Dt.props.className.indexOf("".concat(Dt.props.prefixCls,"-root"))!==-1&&(nr>Bt&&(pr=m.cloneElement(Ot,{style:{display:"none"},eventKey:"".concat(Ot.props.eventKey,"-hidden"),className:"".concat(or)})),nr===Bt+1&&(Dt.overflowedItems=Tt.slice(Bt+1).map(function(Hn){return m.cloneElement(Hn,{key:Hn.props.eventKey,mode:"vertical-left"})}),Ar=Dt.getOverflowedSubMenuItem(Ot.props.eventKey,Dt.overflowedItems)));var Nr=[].concat(Object(l.a)(jt),[Ar,pr]);return nr===Tt.length-1&&Nr.push(Dt.getOverflowedSubMenuItem(Ot.props.eventKey,[],!0)),Nr}return[].concat(Object(l.a)(jt),[pr])},[])}},{key:"render",value:function(){var Tt=this.props,Dt=Tt.visible,Bt=Tt.prefixCls,jt=Tt.overflowedIndicator,Ot=Tt.mode,nr=Tt.level,pr=Tt.tag,Ar=Tt.children,Nr=Tt.theme,Hn=Object(u.a)(Tt,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Ln=pr;return m.createElement(Ln,Object(W.a)({ref:this.childRef},Hn),this.renderChildren(Ar))}}]),zn}(m.Component);fn.defaultProps={tag:"div",className:""};var sr=fn;function Ir(qr){return qr.length?qr.every(function(xn){return!!xn.props.disabled}):!0}function lr(qr,xn,zn){var Ht=qr.getState();qr.setState({activeKey:Object(a.a)(Object(a.a)({},Ht.activeKey),{},Object(f.a)({},xn,zn))})}function Wt(qr){return qr.eventKey||"0-menu-"}function xt(qr,xn){var zn=xn,Ht=qr.children,Tt=qr.eventKey;if(zn){var Dt;if(tt(Ht,function(Bt,jt){Bt&&Bt.props&&!Bt.props.disabled&&zn===me(Bt,Tt,jt)&&(Dt=!0)}),Dt)return zn}return zn=null,qr.defaultActiveFirst&&tt(Ht,function(Bt,jt){!zn&&Bt&&!Bt.props.disabled&&(zn=me(Bt,Tt,jt))}),zn}function rn(qr){if(!qr)return;var xn=this.instanceArray.indexOf(qr);xn!==-1?this.instanceArray[xn]=qr:this.instanceArray.push(qr)}var Dn=function(qr){Object(g.a)(zn,qr);var xn=Object(v.a)(zn);function zn(Ht){var Tt;return Object(c.a)(this,zn),Tt=xn.call(this,Ht),Tt.onKeyDown=function(Dt,Bt){var jt=Dt.keyCode,Ot;if(Tt.getFlatInstanceArray().forEach(function(pr){pr&&pr.props.active&&pr.onKeyDown&&(Ot=pr.onKeyDown(Dt))}),Ot)return 1;var nr=null;return(jt===R.a.UP||jt===R.a.DOWN)&&(nr=Tt.step(jt===R.a.UP?-1:1)),nr?(Dt.preventDefault(),lr(Tt.props.store,Wt(Tt.props),nr.props.eventKey),typeof Bt=="function"&&Bt(nr),1):void 0},Tt.onItemHover=function(Dt){var Bt=Dt.key,jt=Dt.hover;lr(Tt.props.store,Wt(Tt.props),jt?Bt:null)},Tt.onDeselect=function(Dt){Tt.props.onDeselect(Dt)},Tt.onSelect=function(Dt){Tt.props.onSelect(Dt)},Tt.onClick=function(Dt){Tt.props.onClick(Dt)},Tt.onOpenChange=function(Dt){Tt.props.onOpenChange(Dt)},Tt.onDestroy=function(Dt){Tt.props.onDestroy(Dt)},Tt.getFlatInstanceArray=function(){return Tt.instanceArray},Tt.step=function(Dt){var Bt=Tt.getFlatInstanceArray(),jt=Tt.props.store.getState().activeKey[Wt(Tt.props)],Ot=Bt.length;if(!Ot)return null;Dt<0&&(Bt=Bt.concat().reverse());var nr=-1;if(Bt.every(function(Hn,Ln){return Hn&&Hn.props.eventKey===jt?(nr=Ln,!1):!0}),!Tt.props.defaultActiveFirst&&nr!==-1&&Ir(Bt.slice(nr,Ot-1)))return;var pr=(nr+1)%Ot,Ar=pr;do{var Nr=Bt[Ar];if(!Nr||Nr.props.disabled)Ar=(Ar+1)%Ot;else return Nr}while(Ar!==pr);return null},Tt.renderCommonMenuItem=function(Dt,Bt,jt){var Ot=Tt.props.store.getState(),nr=Object(z.a)(Tt),pr=nr.props,Ar=me(Dt,pr.eventKey,Bt),Nr=Dt.props;if(!Nr||typeof Dt.type=="string")return Dt;var Hn=Ar===Ot.activeKey,Ln=Object(a.a)(Object(a.a)({mode:Nr.mode||pr.mode,level:pr.level,inlineIndent:pr.inlineIndent,renderMenuItem:Tt.renderMenuItem,rootPrefixCls:pr.prefixCls,index:Bt,parentMenu:pr.parentMenu,manualRef:Nr.disabled?void 0:Object(G.a)(Dt.ref,rn.bind(Object(z.a)(Tt))),eventKey:Ar,active:!Nr.disabled&&Hn,multiple:pr.multiple,onClick:function(hn){(Nr.onClick||de)(hn),Tt.onClick(hn)},onItemHover:Tt.onItemHover,motion:pr.motion,subMenuOpenDelay:pr.subMenuOpenDelay,subMenuCloseDelay:pr.subMenuCloseDelay,forceSubMenuRender:pr.forceSubMenuRender,onOpenChange:Tt.onOpenChange,onDeselect:Tt.onDeselect,onSelect:Tt.onSelect,builtinPlacements:pr.builtinPlacements,itemIcon:Nr.itemIcon||Tt.props.itemIcon,expandIcon:Nr.expandIcon||Tt.props.expandIcon},jt),{},{direction:pr.direction});return(pr.mode==="inline"||ct())&&(Ln.triggerSubMenuAction="click"),m.cloneElement(Dt,Object(a.a)(Object(a.a)({},Ln),{},{key:Ar||Bt}))},Tt.renderMenuItem=function(Dt,Bt,jt){if(!Dt)return null;var Ot=Tt.props.store.getState(),nr={openKeys:Ot.openKeys,selectedKeys:Ot.selectedKeys,triggerSubMenuAction:Tt.props.triggerSubMenuAction,subMenuKey:jt};return Tt.renderCommonMenuItem(Dt,Bt,nr)},Ht.store.setState({activeKey:Object(a.a)(Object(a.a)({},Ht.store.getState().activeKey),{},Object(f.a)({},Ht.eventKey,xt(Ht,Ht.activeKey)))}),Tt.instanceArray=[],Tt}return Object(d.a)(zn,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Tt){return this.props.visible||Tt.visible||this.props.className!==Tt.className||!ce()(this.props.style,Tt.style)}},{key:"componentDidUpdate",value:function(Tt){var Dt=this.props,Bt="activeKey"in Dt?Dt.activeKey:Dt.store.getState().activeKey[Wt(Dt)],jt=xt(Dt,Bt);if(jt!==Bt)lr(Dt.store,Wt(Dt),jt);else if("activeKey"in Tt){var Ot=xt(Tt,Tt.activeKey);jt!==Ot&&lr(Dt.store,Wt(Dt),jt)}}},{key:"render",value:function(){var Tt=this,Dt=Object(W.a)({},this.props);this.instanceArray=[];var Bt=t()(Dt.prefixCls,Dt.className,"".concat(Dt.prefixCls,"-").concat(Dt.mode)),jt={className:Bt,role:Dt.role||"menu"};Dt.id&&(jt.id=Dt.id),Dt.focusable&&(jt.tabIndex=0,jt.onKeyDown=this.onKeyDown);var Ot=Dt.prefixCls,nr=Dt.eventKey,pr=Dt.visible,Ar=Dt.level,Nr=Dt.mode,Hn=Dt.overflowedIndicator,Ln=Dt.theme;return ht.forEach(function(ci){return delete Dt[ci]}),delete Dt.onClick,m.createElement(sr,Object(W.a)({},Dt,{prefixCls:Ot,mode:Nr,tag:"ul",level:Ar,theme:Ln,visible:pr,overflowedIndicator:Hn},jt),Object(o.a)(Dt.children).map(function(ci,hn){return Tt.renderMenuItem(ci,hn,nr||"0-menu-")}))}}]),zn}(m.Component);Dn.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:de};var Xn=Object(V.b)()(Dn),ri=Xn;function Ui(qr,xn,zn){var Ht=qr.prefixCls,Tt=qr.motion,Dt=qr.defaultMotions,Bt=Dt===void 0?{}:Dt,jt=qr.openAnimation,Ot=qr.openTransitionName,nr=xn.switchingModeFromInline;if(Tt)return Tt;if(Object(be.a)(jt)==="object"&&jt)Object(S.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof jt=="string")return{motionName:"".concat(Ht,"-open-").concat(jt)};if(Ot)return{motionName:Ot};var pr=Bt[zn];return pr||(nr?null:Bt.other)}var Bn=function(qr){Object(g.a)(zn,qr);var xn=Object(v.a)(zn);function zn(Ht){var Tt;Object(c.a)(this,zn),Tt=xn.call(this,Ht),Tt.onSelect=function(jt){var Ot=Object(z.a)(Tt),nr=Ot.props;if(nr.selectable){var pr=Tt.store.getState(),Ar=pr.selectedKeys,Nr=jt.key;nr.multiple?Ar=Ar.concat([Nr]):Ar=[Nr],"selectedKeys"in nr||Tt.store.setState({selectedKeys:Ar}),nr.onSelect(Object(a.a)(Object(a.a)({},jt),{},{selectedKeys:Ar}))}},Tt.onClick=function(jt){var Ot=Tt.getRealMenuMode(),nr=Object(z.a)(Tt),pr=nr.store,Ar=nr.props.onOpenChange;Ot!=="inline"&&!("openKeys"in Tt.props)&&(pr.setState({openKeys:[]}),Ar([])),Tt.props.onClick(jt)},Tt.onKeyDown=function(jt,Ot){Tt.innerMenu.getWrappedInstance().onKeyDown(jt,Ot)},Tt.onOpenChange=function(jt){var Ot=Object(z.a)(Tt),nr=Ot.props,pr=Tt.store.getState().openKeys.concat(),Ar=!1,Nr=function(Ln){var ci=!1;if(Ln.open)ci=pr.indexOf(Ln.key)===-1,ci&&pr.push(Ln.key);else{var hn=pr.indexOf(Ln.key);ci=hn!==-1,ci&&pr.splice(hn,1)}Ar=Ar||ci};Array.isArray(jt)?jt.forEach(Nr):Nr(jt),Ar&&("openKeys"in Tt.props||Tt.store.setState({openKeys:pr}),nr.onOpenChange(pr))},Tt.onDeselect=function(jt){var Ot=Object(z.a)(Tt),nr=Ot.props;if(nr.selectable){var pr=Tt.store.getState().selectedKeys.concat(),Ar=jt.key,Nr=pr.indexOf(Ar);Nr!==-1&&pr.splice(Nr,1),"selectedKeys"in nr||Tt.store.setState({selectedKeys:pr}),nr.onDeselect(Object(a.a)(Object(a.a)({},jt),{},{selectedKeys:pr}))}},Tt.onMouseEnter=function(jt){Tt.restoreModeVerticalFromInline();var Ot=Tt.props.onMouseEnter;Ot&&Ot(jt)},Tt.onTransitionEnd=function(jt){var Ot=jt.propertyName==="width"&&jt.target===jt.currentTarget,nr=jt.target.className,pr=Object.prototype.toString.call(nr)==="[object SVGAnimatedString]"?nr.animVal:nr,Ar=jt.propertyName==="font-size"&&pr.indexOf("anticon")>=0;(Ot||Ar)&&Tt.restoreModeVerticalFromInline()},Tt.setInnerMenu=function(jt){Tt.innerMenu=jt},Tt.isRootMenu=!0;var Dt=Ht.defaultSelectedKeys,Bt=Ht.defaultOpenKeys;return"selectedKeys"in Ht&&(Dt=Ht.selectedKeys||[]),"openKeys"in Ht&&(Bt=Ht.openKeys||[]),Tt.store=Object(V.c)({selectedKeys:Dt,openKeys:Bt,activeKey:{"0-menu-":xt(Ht,Ht.activeKey)}}),Tt.state={switchingModeFromInline:!1,prevProps:Ht,inlineOpenKeys:[],store:Tt.store},Tt}return Object(d.a)(zn,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Tt){var Dt=this.props,Bt=Dt.siderCollapsed,jt=Dt.inlineCollapsed,Ot=Dt.onOpenChange;(!Tt.inlineCollapsed&&jt||!Tt.siderCollapsed&&Bt)&&Ot([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Tt=this.props.collapsedWidth,Dt=this.store,Bt=this.prevOpenKeys,jt=this.getInlineCollapsed()&&(Tt===0||Tt==="0"||Tt==="0px");jt?(this.prevOpenKeys=Dt.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Bt&&(this.store.setState({openKeys:Bt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Tt=this.props.mode,Dt=this.state.switchingModeFromInline,Bt=this.getInlineCollapsed();return Dt&&Bt?"inline":Bt?"vertical":Tt}},{key:"getInlineCollapsed",value:function(){var Tt=this.props,Dt=Tt.inlineCollapsed,Bt=Tt.siderCollapsed;return Bt!==void 0?Bt:Dt}},{key:"restoreModeVerticalFromInline",value:function(){var Tt=this.state.switchingModeFromInline;Tt&&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 Tt=Object(a.a)({},Object(Q.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Dt=this.getRealMenuMode();return Tt.className+=" ".concat(Tt.prefixCls,"-root"),Tt.direction==="rtl"&&(Tt.className+=" ".concat(Tt.prefixCls,"-rtl")),Tt=Object(a.a)(Object(a.a)({},Tt),{},{mode:Dt,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ui(this.props,this.state,Dt)}),delete Tt.openAnimation,delete Tt.openTransitionName,m.createElement(V.a,{store:this.store},m.createElement(ri,Object(W.a)({},Tt,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Tt,Dt){var Bt=Dt.prevProps,jt=Dt.store,Ot=jt.getState(),nr={},pr={prevProps:Tt};return Bt.mode==="inline"&&Tt.mode!=="inline"&&(pr.switchingModeFromInline=!0),"openKeys"in Tt?nr.openKeys=Tt.openKeys||[]:((Tt.inlineCollapsed&&!Bt.inlineCollapsed||Tt.siderCollapsed&&!Bt.siderCollapsed)&&(pr.switchingModeFromInline=!0,pr.inlineOpenKeys=Ot.openKeys,nr.openKeys=[]),(!Tt.inlineCollapsed&&Bt.inlineCollapsed||!Tt.siderCollapsed&&Bt.siderCollapsed)&&(nr.openKeys=Dt.inlineOpenKeys,pr.inlineOpenKeys=[])),Object.keys(nr).length&&jt.setState(nr),pr}}]),zn}(m.Component);Bn.defaultProps={selectable:!0,onClick:de,onSelect:de,onOpenChange:de,onDeselect:de,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:m.createElement("span",null,"\xB7\xB7\xB7")};var Jn=Bn,Xt=function(qr){Object(g.a)(zn,qr);var xn=Object(v.a)(zn);function zn(){var Ht;return Object(c.a)(this,zn),Ht=xn.apply(this,arguments),Ht.onKeyDown=function(Tt){var Dt=Tt.keyCode;return Dt===R.a.ENTER?(Ht.onClick(Tt),!0):void 0},Ht.onMouseLeave=function(Tt){var Dt=Ht.props,Bt=Dt.eventKey,jt=Dt.onItemHover,Ot=Dt.onMouseLeave;jt({key:Bt,hover:!1}),Ot({key:Bt,domEvent:Tt})},Ht.onMouseEnter=function(Tt){var Dt=Ht.props,Bt=Dt.eventKey,jt=Dt.onItemHover,Ot=Dt.onMouseEnter;jt({key:Bt,hover:!0}),Ot({key:Bt,domEvent:Tt})},Ht.onClick=function(Tt){var Dt=Ht.props,Bt=Dt.eventKey,jt=Dt.multiple,Ot=Dt.onClick,nr=Dt.onSelect,pr=Dt.onDeselect,Ar=Dt.isSelected,Nr={key:Bt,keyPath:[Bt],item:Object(z.a)(Ht),domEvent:Tt};Ot(Nr),jt?Ar?pr(Nr):nr(Nr):Ar||nr(Nr)},Ht.saveNode=function(Tt){Ht.node=Tt},Ht}return Object(d.a)(zn,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Tt=this.props;Tt.onDestroy&&Tt.onDestroy(Tt.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 Tt,Dt=Object(a.a)({},this.props),Bt=t()(this.getPrefixCls(),Dt.className,(Tt={},Object(f.a)(Tt,this.getActiveClassName(),!Dt.disabled&&Dt.active),Object(f.a)(Tt,this.getSelectedClassName(),Dt.isSelected),Object(f.a)(Tt,this.getDisabledClassName(),Dt.disabled),Tt)),jt=Object(a.a)(Object(a.a)({},Dt.attribute),{},{title:typeof Dt.title=="string"?Dt.title:void 0,className:Bt,role:Dt.role||"menuitem","aria-disabled":Dt.disabled});Dt.role==="option"?jt=Object(a.a)(Object(a.a)({},jt),{},{role:"option","aria-selected":Dt.isSelected}):(Dt.role===null||Dt.role==="none")&&(jt.role="none");var Ot={onClick:Dt.disabled?null:this.onClick,onMouseLeave:Dt.disabled?null:this.onMouseLeave,onMouseEnter:Dt.disabled?null:this.onMouseEnter},nr=Object(a.a)({},Dt.style);Dt.mode==="inline"&&(Dt.direction==="rtl"?nr.paddingRight=Dt.inlineIndent*Dt.level:nr.paddingLeft=Dt.inlineIndent*Dt.level),ht.forEach(function(Ar){return delete Dt[Ar]}),delete Dt.direction;var pr=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(pr=m.createElement(this.props.itemIcon,this.props)),m.createElement("li",Object(W.a)({},Object(Q.a)(Dt,["onClick","onMouseEnter","onMouseLeave","onSelect"]),jt,Ot,{style:nr,ref:this.saveNode}),Dt.children,pr)}}]),zn}(m.Component);Xt.isMenuItem=!0,Xt.defaultProps={onSelect:de,onMouseEnter:de,onMouseLeave:de,manualRef:de};var _t=Object(V.b)(function(qr,xn){var zn=qr.activeKey,Ht=qr.selectedKeys,Tt=xn.eventKey,Dt=xn.subMenuKey;return{active:zn[Dt]===Tt,isSelected:Array.isArray(Ht)?Ht.indexOf(Tt)!==-1:Ht===Tt}})(Xt),Fe=_t,Pe=function(qr){Object(g.a)(zn,qr);var xn=Object(v.a)(zn);function zn(){var Ht;return Object(c.a)(this,zn),Ht=xn.apply(this,arguments),Ht.renderInnerMenuItem=function(Tt){var Dt=Ht.props,Bt=Dt.renderMenuItem,jt=Dt.index;return Bt(Tt,jt,Ht.props.subMenuKey)},Ht}return Object(d.a)(zn,[{key:"render",value:function(){var Tt=Object(W.a)({},this.props),Dt=Tt.className,Bt=Dt===void 0?"":Dt,jt=Tt.rootPrefixCls,Ot="".concat(jt,"-item-group-title"),nr="".concat(jt,"-item-group-list"),pr=Tt.title,Ar=Tt.children;return ht.forEach(function(Nr){return delete Tt[Nr]}),delete Tt.direction,m.createElement("li",Object(W.a)({},Tt,{onClick:function(Hn){return Hn.stopPropagation()},className:"".concat(Bt," ").concat(jt,"-item-group")}),m.createElement("div",{className:Ot,title:typeof pr=="string"?pr:void 0},pr),m.createElement("ul",{className:nr},m.Children.map(Ar,this.renderInnerMenuItem)))}}]),zn}(m.Component);Pe.isMenuItemGroup=!0,Pe.defaultProps={disabled:!0};var Be=Pe,nt=function(xn){var zn=xn.className,Ht=xn.rootPrefixCls,Tt=xn.style;return m.createElement("li",{className:"".concat(zn," ").concat(Ht,"-item-divider"),style:Tt})};nt.defaultProps={disabled:!0,className:"",style:{}};var vt=nt,ar=Jn,kr={adjustX:1,adjustY:1},mn=[0,0],Zn={topLeft:{points:["bl","tl"],overflow:kr,offset:[0,-4],targetOffset:mn},topCenter:{points:["bc","tc"],overflow:kr,offset:[0,-4],targetOffset:mn},topRight:{points:["br","tr"],overflow:kr,offset:[0,-4],targetOffset:mn},bottomLeft:{points:["tl","bl"],overflow:kr,offset:[0,4],targetOffset:mn},bottomCenter:{points:["tc","bc"],overflow:kr,offset:[0,4],targetOffset:mn},bottomRight:{points:["tr","br"],overflow:kr,offset:[0,4],targetOffset:mn}},ni=Zn,ur=R.a.ESC,Nt=R.a.TAB;function bt(qr){var xn=qr.visible,zn=qr.setTriggerVisible,Ht=qr.triggerRef,Tt=qr.menuRef,Dt=qr.onVisibleChange,Bt=qr.autoFocus,jt=m.useRef(!1),Ot=function(){if(xn&&Ht.current){var Nr,Hn,Ln,ci;(Nr=Ht.current)===null||Nr===void 0||((Hn=Nr.triggerRef)===null||Hn===void 0||((Ln=Hn.current)===null||Ln===void 0||((ci=Ln.focus)===null||ci===void 0)))||ci.call(Ln),zn(!1),typeof Dt=="function"&&Dt(!1)}},nr=function(){var Nr,Hn;(Nr=Tt.current)===null||Nr===void 0||((Hn=Nr.focus)===null||Hn===void 0)||Hn.call(Nr),jt.current=!0},pr=function(Nr){var Hn;switch(Nr.keyCode){case ur:Ot();break;case Nt:!jt.current&&((Hn=Tt.current)===null||Hn===void 0?void 0:Hn.focus)?(Nr.preventDefault(),nr()):Ot();break}};m.useEffect(function(){return xn?(window.addEventListener("keydown",pr),Bt&&Object(zt.a)(nr,3),function(){window.removeEventListener("keydown",pr),jt.current=!1}):function(){jt.current=!1}},[xn])}var gr=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function Yt(qr,xn){var zn=qr.arrow,Ht=zn===void 0?!1:zn,Tt=qr.prefixCls,Dt=Tt===void 0?"rc-dropdown":Tt,Bt=qr.transitionName,jt=qr.animation,Ot=qr.align,nr=qr.placement,pr=nr===void 0?"bottomLeft":nr,Ar=qr.placements,Nr=Ar===void 0?ni:Ar,Hn=qr.getPopupContainer,Ln=qr.showAction,ci=qr.hideAction,hn=qr.overlayClassName,Fr=qr.overlayStyle,En=qr.visible,Wn=qr.trigger,Yn=Wn===void 0?["hover"]:Wn,ii=qr.autoFocus,xi=Object(u.a)(qr,gr),Ni=m.useState(),Li=Object(h.a)(Ni,2),oa=Li[0],ma=Li[1],ia="visible"in qr?En:oa,ba=m.useRef(null);m.useImperativeHandle(xn,function(){return ba.current});var vi=m.useRef(null),On="".concat(Dt,"-menu");bt({visible:ia,setTriggerVisible:ma,triggerRef:ba,menuRef:vi,onVisibleChange:qr.onVisibleChange,autoFocus:ii});var Fi=function(){var on=qr.overlay,Nn;return typeof on=="function"?Nn=on():Nn=on,Nn},ha=function(on){var Nn=qr.onOverlayClick,Et=Fi().props;ma(!1),Nn&&Nn(on),Et.onClick&&Et.onClick(on)},ea=function(on){var Nn=qr.onVisibleChange;ma(on),typeof Nn=="function"&&Nn(on)},aa=function(){var on,Nn=Fi(),Et=Object(E.a)(vi,Nn.ref),Cr=(on={prefixCls:On},Object(f.a)(on,"data-dropdown-inject",!0),Object(f.a)(on,"onClick",ha),Object(f.a)(on,"ref",Object(E.c)(Nn)?Et:void 0),on);return typeof Nn.type=="string"&&(delete Cr.prefixCls,delete Cr["data-dropdown-inject"]),m.createElement(m.Fragment,null,Ht&&m.createElement("div",{className:"".concat(Dt,"-arrow")}),m.cloneElement(Nn,Cr))},Or=function(){var on=qr.overlay;return typeof on=="function"?aa:aa()},wr=function(){var on=qr.minOverlayWidthMatchTrigger,Nn=qr.alignPoint;return"minOverlayWidthMatchTrigger"in qr?on:!Nn},Sn=function(){var on=qr.openClassName;return on!==void 0?on:"".concat(Dt,"-open")},cr=function(){var on=qr.children,Nn=on.props?on.props:{},Et=t()(Nn.className,Sn());return ia&&on?m.cloneElement(on,{className:Et}):on},Lr=ci;return!Lr&&Yn.indexOf("contextMenu")!==-1&&(Lr=["click"]),m.createElement(dr.a,Object(a.a)(Object(a.a)({builtinPlacements:Nr},xi),{},{prefixCls:Dt,ref:ba,popupClassName:t()(hn,Object(f.a)({},"".concat(Dt,"-show-arrow"),Ht)),popupStyle:Fr,action:Yn,showAction:Ln,hideAction:Lr||[],popupPlacement:pr,popupAlign:Ot,popupTransitionName:Bt,popupAnimation:jt,popupVisible:ia,stretch:wr()?"minWidth":"",popup:Or(),onPopupVisibleChange:ea,getPopupContainer:Hn}),cr())}var Pt=m.forwardRef(Yt),rr=Pt;function Rt(qr,xn){var zn=qr.prefixCls,Ht=qr.editable,Tt=qr.locale,Dt=qr.style;return!Ht||Ht.showAdd===!1?null:m.createElement("button",{ref:xn,type:"button",className:"".concat(zn,"-nav-add"),style:Dt,"aria-label":(Tt==null?void 0:Tt.addAriaLabel)||"Add tab",onClick:function(jt){Ht.onEdit("add",{event:jt})}},Ht.addIcon||"+")}var qt=m.forwardRef(Rt);function Yr(qr,xn){var zn=qr.prefixCls,Ht=qr.id,Tt=qr.tabs,Dt=qr.locale,Bt=qr.mobile,jt=qr.moreIcon,Ot=jt===void 0?"More":jt,nr=qr.moreTransitionName,pr=qr.style,Ar=qr.className,Nr=qr.editable,Hn=qr.tabBarGutter,Ln=qr.rtl,ci=qr.onTabClick,hn=Object(m.useState)(!1),Fr=Object(h.a)(hn,2),En=Fr[0],Wn=Fr[1],Yn=Object(m.useState)(null),ii=Object(h.a)(Yn,2),xi=ii[0],Ni=ii[1],Li="".concat(Ht,"-more-popup"),oa="".concat(zn,"-dropdown"),ma=xi!==null?"".concat(Li,"-").concat(xi):null,ia=Dt==null?void 0:Dt.dropdownAriaLabel,ba=m.createElement(ar,{onClick:function(Or){var wr=Or.key,Sn=Or.domEvent;ci(wr,Sn),Wn(!1)},id:Li,tabIndex:-1,role:"listbox","aria-activedescendant":ma,selectedKeys:[xi],"aria-label":ia!==void 0?ia:"expanded dropdown"},Tt.map(function(aa){return m.createElement(Fe,{key:aa.key,id:"".concat(Li,"-").concat(aa.key),role:"option","aria-controls":Ht&&"".concat(Ht,"-panel-").concat(aa.key),disabled:aa.disabled},aa.tab)}));function vi(aa){for(var Or=Tt.filter(function(Wr){return!Wr.disabled}),wr=Or.findIndex(function(Wr){return Wr.key===xi})||0,Sn=Or.length,cr=0;cr<Sn;cr+=1){wr=(wr+aa+Sn)%Sn;var Lr=Or[wr];if(!Lr.disabled){Ni(Lr.key);return}}}function On(aa){var Or=aa.which;if(!En){[R.a.DOWN,R.a.SPACE,R.a.ENTER].includes(Or)&&(Wn(!0),aa.preventDefault());return}switch(Or){case R.a.UP:vi(-1),aa.preventDefault();break;case R.a.DOWN:vi(1),aa.preventDefault();break;case R.a.ESC:Wn(!1);break;case R.a.SPACE:case R.a.ENTER:xi!==null&&ci(xi,aa);break}}Object(m.useEffect)(function(){var aa=document.getElementById(ma);aa&&aa.scrollIntoView&&aa.scrollIntoView(!1)},[xi]),Object(m.useEffect)(function(){En||Ni(null)},[En]);var Fi=Object(f.a)({},Ln?"marginLeft":"marginRight",Hn);Tt.length||(Fi.visibility="hidden",Fi.order=1);var ha=t()(Object(f.a)({},"".concat(oa,"-rtl"),Ln)),ea=Bt?null:m.createElement(rr,{prefixCls:oa,overlay:ba,trigger:["hover"],visible:En,transitionName:nr,onVisibleChange:Wn,overlayClassName:ha,mouseEnterDelay:.1,mouseLeaveDelay:.1},m.createElement("button",{type:"button",className:"".concat(zn,"-nav-more"),style:Fi,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Li,id:"".concat(Ht,"-more"),"aria-expanded":En,onKeyDown:On},Ot));return m.createElement("div",{className:t()("".concat(zn,"-nav-operations"),Ar),style:pr,ref:xn},ea,m.createElement(qt,{prefixCls:zn,locale:Dt,editable:Nr}))}var Mr=m.forwardRef(Yr),Dr=Object(m.createContext)(null),un=.1,wn=.01,ai=20,ei=Math.pow(.995,ai);function gi(){var qr=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(qr)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(qr.substr(0,4)))}function Ii(qr,xn){var zn=Object(m.useState)(),Ht=Object(h.a)(zn,2),Tt=Ht[0],Dt=Ht[1],Bt=Object(m.useState)(0),jt=Object(h.a)(Bt,2),Ot=jt[0],nr=jt[1],pr=Object(m.useState)(0),Ar=Object(h.a)(pr,2),Nr=Ar[0],Hn=Ar[1],Ln=Object(m.useState)(),ci=Object(h.a)(Ln,2),hn=ci[0],Fr=ci[1],En=Object(m.useRef)();function Wn(ia){var ba=ia.touches[0],vi=ba.screenX,On=ba.screenY;Dt({x:vi,y:On}),window.clearInterval(En.current)}function Yn(ia){if(!Tt)return;ia.preventDefault();var ba=ia.touches[0],vi=ba.screenX,On=ba.screenY;Dt({x:vi,y:On});var Fi=vi-Tt.x,ha=On-Tt.y;xn(Fi,ha);var ea=Date.now();nr(ea),Hn(ea-Ot),Fr({x:Fi,y:ha})}function ii(){if(!Tt)return;if(Dt(null),Fr(null),hn){var ia=hn.x/Nr,ba=hn.y/Nr,vi=Math.abs(ia),On=Math.abs(ba);if(Math.max(vi,On)<un)return;var Fi=ia,ha=ba;En.current=window.setInterval(function(){if(Math.abs(Fi)<wn&&Math.abs(ha)<wn){window.clearInterval(En.current);return}Fi*=ei,ha*=ei,xn(Fi*ai,ha*ai)},ai)}}var xi=Object(m.useRef)(0),Ni=Object(m.useRef)(!1),Li=Object(m.useRef)();function oa(ia){var ba=ia.deltaX,vi=ia.deltaY,On=0,Fi=Math.abs(ba),ha=Math.abs(vi);Fi===ha?On=Li.current==="x"?ba:vi:Fi>ha?(On=ba,Li.current="x"):(On=vi,Li.current="y");var ea=Date.now();ea-xi.current>100&&(Ni.current=!1),(xn(-On,-On)||Ni.current)&&(ia.preventDefault(),Ni.current=!0),xi.current=ea}var ma=Object(m.useRef)(null);ma.current={onTouchStart:Wn,onTouchMove:Yn,onTouchEnd:ii,onWheel:oa},m.useEffect(function(){function ia(Fi){ma.current.onTouchStart(Fi)}function ba(Fi){ma.current.onTouchMove(Fi)}function vi(Fi){ma.current.onTouchEnd(Fi)}function On(Fi){ma.current.onWheel(Fi)}return document.addEventListener("touchmove",ba,{passive:!1}),document.addEventListener("touchend",vi,{passive:!1}),qr.current.addEventListener("touchstart",ia,{passive:!1}),qr.current.addEventListener("wheel",On),function(){document.removeEventListener("touchmove",ba),document.removeEventListener("touchend",vi)}},[])}function ki(){var qr=Object(m.useRef)(new Map);function xn(Ht){return qr.current.has(Ht)||qr.current.set(Ht,m.createRef()),qr.current.get(Ht)}function zn(Ht){qr.current.delete(Ht)}return[xn,zn]}function Qi(qr,xn){var zn=m.useRef(qr),Ht=m.useState({}),Tt=Object(h.a)(Ht,2),Dt=Tt[1];function Bt(jt){var Ot=typeof jt=="function"?jt(zn.current):jt;Ot!==zn.current&&xn(Ot,zn.current),zn.current=Ot,Dt({})}return[zn.current,Bt]}var it=function(xn){var zn=xn.position,Ht=xn.prefixCls,Tt=xn.extra;if(!Tt)return null;var Dt,Bt=Tt;return zn==="right"&&(Dt=Bt.right||!Bt.left&&Bt||null),zn==="left"&&(Dt=Bt.left||null),Dt?m.createElement("div",{className:"".concat(Ht,"-extra-content")},Dt):null};function Me(qr,xn){var zn,Ht=m.useContext(Dr),Tt=Ht.prefixCls,Dt=Ht.tabs,Bt=qr.className,jt=qr.style,Ot=qr.id,nr=qr.animated,pr=qr.activeKey,Ar=qr.rtl,Nr=qr.extra,Hn=qr.editable,Ln=qr.locale,ci=qr.tabPosition,hn=qr.tabBarGutter,Fr=qr.children,En=qr.onTabClick,Wn=qr.onTabScroll,Yn=Object(m.useRef)(),ii=Object(m.useRef)(),xi=Object(m.useRef)(),Ni=Object(m.useRef)(),Li=ki(),oa=Object(h.a)(Li,2),ma=oa[0],ia=oa[1],ba=ci==="top"||ci==="bottom",vi=Qi(0,function(si,ui){ba&&Wn&&Wn({direction:si>ui?"left":"right"})}),On=Object(h.a)(vi,2),Fi=On[0],ha=On[1],ea=Qi(0,function(si,ui){!ba&&Wn&&Wn({direction:si>ui?"top":"bottom"})}),aa=Object(h.a)(ea,2),Or=aa[0],wr=aa[1],Sn=Object(m.useState)(0),cr=Object(h.a)(Sn,2),Lr=cr[0],Wr=cr[1],on=Object(m.useState)(0),Nn=Object(h.a)(on,2),Et=Nn[0],Cr=Nn[1],_r=Object(m.useState)(0),$r=Object(h.a)(_r,2),yn=$r[0],Tn=$r[1],vn=Object(m.useState)(0),Qn=Object(h.a)(vn,2),Fn=Qn[0],fi=Qn[1],Ri=Object(m.useState)(null),yi=Object(h.a)(Ri,2),Ci=yi[0],Wi=yi[1],qi=Object(m.useState)(null),zi=Object(h.a)(qi,2),Ki=zi[0],ji=zi[1],Yi=Object(m.useState)(0),ca=Object(h.a)(Yi,2),Ca=ca[0],ra=ca[1],Ma=Object(m.useState)(0),La=Object(h.a)(Ma,2),va=La[0],ga=La[1],Oa=I(new Map),Aa=Object(h.a)(Oa,2),Ga=Aa[0],_a=Aa[1],Va=X(Dt,Ga,Lr),Bi="".concat(Tt,"-nav-operations-hidden"),io=0,oo=0;ba?Ar?(io=0,oo=Math.max(0,Lr-Ci)):(io=Math.min(0,Ci-Lr),oo=0):(io=Math.min(0,Ki-Et),oo=0);function Qo(si){return si<io?[io,!1]:si>oo?[oo,!1]:[si,!0]}var mo=Object(m.useRef)(),To=Object(m.useState)(),ao=Object(h.a)(To,2),So=ao[0],bo=ao[1];function to(){bo(Date.now())}function Jo(){window.clearTimeout(mo.current)}Ii(Yn,function(si,ui){var oi=!1;function Ei(pi,Ai){pi(function(Oi){var na=Qo(Oi+Ai),Hi=Object(h.a)(na,2),fa=Hi[0],Xa=Hi[1];return oi=Xa,fa})}if(ba){if(Ci>=Lr)return oi;Ei(ha,si)}else{if(Ki>=Et)return oi;Ei(wr,ui)}return Jo(),to(),oi}),Object(m.useEffect)(function(){return Jo(),So&&(mo.current=window.setTimeout(function(){bo(0)},100)),Jo},[So]);function Uo(){var si=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pr,ui=Va.get(si);if(!ui)return;if(ba){var oi=Fi;Ar?ui.right<Fi?oi=ui.right:ui.right+ui.width>Fi+Ci&&(oi=ui.right+ui.width-Ci):ui.left<-Fi?oi=-ui.left:ui.left+ui.width>-Fi+Ci&&(oi=-(ui.left+ui.width-Ci)),wr(0),ha(Qo(oi)[0])}else{var Ei=Or;ui.top<-Or?Ei=-ui.top:ui.top+ui.height>-Or+Ki&&(Ei=-(ui.top+ui.height-Ki)),ha(0),wr(Qo(Ei)[0])}}var wo=j(Va,{width:Ci,height:Ki,left:Fi,top:Or},{width:yn,height:Fn},{width:Ca,height:va},Object(a.a)(Object(a.a)({},qr),{},{tabs:Dt})),ts=Object(h.a)(wo,2),Ia=ts[0],Oo=ts[1],Io=Dt.map(function(si){var ui=si.key;return m.createElement(F,{id:Ot,prefixCls:Tt,key:ui,rtl:Ar,tab:si,closable:si.closable,editable:Hn,active:ui===pr,tabPosition:ci,tabBarGutter:hn,renderWrapper:Fr,removeAriaLabel:Ln==null?void 0:Ln.removeAriaLabel,ref:ma(ui),onClick:function(Ei){En(ui,Ei)},onRemove:function(){ia(ui)},onFocus:function(){Uo(ui),to(),Ar||(Yn.current.scrollLeft=0),Yn.current.scrollTop=0}})}),os=O(function(){var si,ui,oi,Ei,pi,Ai,Oi,na,Hi,fa=((si=Yn.current)===null||si===void 0?void 0:si.offsetWidth)||0,Xa=((ui=Yn.current)===null||ui===void 0?void 0:ui.offsetHeight)||0,xa=((oi=Ni.current)===null||oi===void 0?void 0:oi.offsetWidth)||0,wa=((Ei=Ni.current)===null||Ei===void 0?void 0:Ei.offsetHeight)||0,Da=((pi=xi.current)===null||pi===void 0?void 0:pi.offsetWidth)||0,ja=((Ai=xi.current)===null||Ai===void 0?void 0:Ai.offsetHeight)||0;Wi(fa),ji(Xa),ra(xa),ga(wa);var ko=(((Oi=ii.current)===null||Oi===void 0?void 0:Oi.offsetWidth)||0)-xa,ro=(((na=ii.current)===null||na===void 0?void 0:na.offsetHeight)||0)-wa;Wr(ko),Cr(ro);var pa=(Hi=xi.current)===null||Hi===void 0?void 0:Hi.className.includes(Bi);Tn(ko-(pa?0:Da)),fi(ro-(pa?0:ja)),_a(function(){var Ea=new Map;return Dt.forEach(function(Fa){var Ka=Fa.key,lo=ma(Ka).current;lo&&Ea.set(Ka,{width:lo.offsetWidth,height:lo.offsetHeight,left:lo.offsetLeft,top:lo.offsetTop})}),Ea})}),xo=Dt.slice(0,Ia),rs=Dt.slice(Oo+1),Ho=[].concat(Object(l.a)(xo),Object(l.a)(rs)),_o=Object(m.useState)(),uo=Object(h.a)(_o,2),Ha=uo[0],pt=uo[1],xr=Va.get(pr),Jr=Object(m.useRef)();function Vr(){s.a.cancel(Jr.current)}Object(m.useEffect)(function(){var si={};return xr&&(ba?(Ar?si.right=xr.right:si.left=xr.left,si.width=xr.width):(si.top=xr.top,si.height=xr.height)),Vr(),Jr.current=s()(function(){pt(si)}),Vr},[xr,ba,Ar]),Object(m.useEffect)(function(){Uo()},[pr,xr,Va,ba]),Object(m.useEffect)(function(){os()},[Ar,hn,pr,Dt.map(function(si){return si.key}).join("_")]);var Vn=!!Ho.length,sn="".concat(Tt,"-nav-wrap"),zr,qn,en,Un;return ba?Ar?(qn=Fi>0,zr=Fi+Ci<Lr):(zr=Fi<0,qn=-Fi+Ci<Lr):(en=Or<0,Un=-Or+Ki<Et),m.createElement("div",{ref:xn,role:"tablist",className:t()("".concat(Tt,"-nav"),Bt),style:jt,onKeyDown:function(){to()}},m.createElement(it,{position:"left",extra:Nr,prefixCls:Tt}),m.createElement(w,{onResize:os},m.createElement("div",{className:t()(sn,(zn={},Object(f.a)(zn,"".concat(sn,"-ping-left"),zr),Object(f.a)(zn,"".concat(sn,"-ping-right"),qn),Object(f.a)(zn,"".concat(sn,"-ping-top"),en),Object(f.a)(zn,"".concat(sn,"-ping-bottom"),Un),zn)),ref:Yn},m.createElement(w,{onResize:os},m.createElement("div",{ref:ii,className:"".concat(Tt,"-nav-list"),style:{transform:"translate(".concat(Fi,"px, ").concat(Or,"px)"),transition:So?"none":void 0}},Io,m.createElement(qt,{ref:Ni,prefixCls:Tt,locale:Ln,editable:Hn,style:{visibility:Vn?"hidden":null}}),m.createElement("div",{className:t()("".concat(Tt,"-ink-bar"),Object(f.a)({},"".concat(Tt,"-ink-bar-animated"),nr.inkBar)),style:Ha}))))),m.createElement(Mr,Object.assign({},qr,{ref:xi,prefixCls:Tt,tabs:Ho,className:!Vn&&Bi})),m.createElement(it,{position:"right",extra:Nr,prefixCls:Tt}))}var je=m.forwardRef(Me);function Ye(qr){var xn=qr.id,zn=qr.activeKey,Ht=qr.animated,Tt=qr.tabPosition,Dt=qr.rtl,Bt=qr.destroyInactiveTabPane,jt=m.useContext(Dr),Ot=jt.prefixCls,nr=jt.tabs,pr=Ht.tabPane,Ar=nr.findIndex(function(Nr){return Nr.key===zn});return m.createElement("div",{className:t()("".concat(Ot,"-content-holder"))},m.createElement("div",{className:t()("".concat(Ot,"-content"),"".concat(Ot,"-content-").concat(Tt),Object(f.a)({},"".concat(Ot,"-content-animated"),pr)),style:Ar&&pr?Object(f.a)({},Dt?"marginRight":"marginLeft","-".concat(Ar,"00%")):null},nr.map(function(Nr){return m.cloneElement(Nr.node,{key:Nr.key,prefixCls:Ot,tabKey:Nr.key,id:xn,animated:pr,active:Nr.key===zn,destroyInactiveTabPane:Bt})})))}function rt(qr){var xn=qr.prefixCls,zn=qr.forceRender,Ht=qr.className,Tt=qr.style,Dt=qr.id,Bt=qr.active,jt=qr.animated,Ot=qr.destroyInactiveTabPane,nr=qr.tabKey,pr=qr.children,Ar=m.useState(zn),Nr=Object(h.a)(Ar,2),Hn=Nr[0],Ln=Nr[1];m.useEffect(function(){Bt?Ln(!0):Ot&&Ln(!1)},[Bt,Ot]);var ci={};return Bt||(jt?(ci.visibility="hidden",ci.height=0,ci.overflowY="hidden"):ci.display="none"),m.createElement("div",{id:Dt&&"".concat(Dt,"-panel-").concat(nr),role:"tabpanel",tabIndex:Bt?0:-1,"aria-labelledby":Dt&&"".concat(Dt,"-tab-").concat(nr),"aria-hidden":!Bt,style:Object(a.a)(Object(a.a)({},ci),Tt),className:t()("".concat(xn,"-tabpane"),Bt&&"".concat(xn,"-tabpane-active"),Ht)},(Bt||Hn||zn)&&pr)}var qe=0;function at(qr){return Object(o.a)(qr).map(function(xn){if(m.isValidElement(xn)){var zn=xn.key!==void 0?String(xn.key):void 0;return Object(a.a)(Object(a.a)({key:zn},xn.props),{},{node:xn})}return null}).filter(function(xn){return xn})}function St(qr,xn){var zn,Ht=qr.id,Tt=qr.prefixCls,Dt=Tt===void 0?"rc-tabs":Tt,Bt=qr.className,jt=qr.children,Ot=qr.direction,nr=qr.activeKey,pr=qr.defaultActiveKey,Ar=qr.editable,Nr=qr.animated,Hn=qr.tabPosition,Ln=Hn===void 0?"top":Hn,ci=qr.tabBarGutter,hn=qr.tabBarStyle,Fr=qr.tabBarExtraContent,En=qr.locale,Wn=qr.moreIcon,Yn=qr.moreTransitionName,ii=qr.destroyInactiveTabPane,xi=qr.renderTabBar,Ni=qr.onChange,Li=qr.onTabClick,oa=qr.onTabScroll,ma=Object(u.a)(qr,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),ia=at(jt),ba=Ot==="rtl",vi;Nr===!1?vi={inkBar:!1,tabPane:!1}:vi=Object(a.a)({inkBar:!0,tabPane:!1},Nr!==!0?Nr:null);var On=Object(m.useState)(!1),Fi=Object(h.a)(On,2),ha=Fi[0],ea=Fi[1];Object(m.useEffect)(function(){ea(gi())},[]);var aa=Object(e.a)(function(){var Fn;return(Fn=ia[0])===null||Fn===void 0?void 0:Fn.key},{value:nr,defaultValue:pr}),Or=Object(h.a)(aa,2),wr=Or[0],Sn=Or[1],cr=Object(m.useState)(function(){return ia.findIndex(function(Fn){return Fn.key===wr})}),Lr=Object(h.a)(cr,2),Wr=Lr[0],on=Lr[1];Object(m.useEffect)(function(){var Fn=ia.findIndex(function(Ri){return Ri.key===wr});if(Fn===-1){var fi;Fn=Math.max(0,Math.min(Wr,ia.length-1)),Sn((fi=ia[Fn])===null||fi===void 0?void 0:fi.key)}on(Fn)},[ia.map(function(Fn){return Fn.key}).join("_"),wr,Wr]);var Nn=Object(e.a)(null,{value:Ht}),Et=Object(h.a)(Nn,2),Cr=Et[0],_r=Et[1],$r=Ln;ha&&!["left","right"].includes(Ln)&&($r="top"),Object(m.useEffect)(function(){Ht||(_r("rc-tabs-".concat(qe)),qe+=1)},[]);function yn(Fn,fi){Li==null||Li(Fn,fi),Sn(Fn),Ni==null||Ni(Fn)}var Tn={id:Cr,activeKey:wr,animated:vi,tabPosition:$r,rtl:ba,mobile:ha},vn,Qn=Object(a.a)(Object(a.a)({},Tn),{},{editable:Ar,locale:En,moreIcon:Wn,moreTransitionName:Yn,tabBarGutter:ci,onTabClick:yn,onTabScroll:oa,extra:Fr,style:hn,panes:jt});return xi?vn=xi(Qn,je):vn=m.createElement(je,Object.assign({},Qn)),m.createElement(Dr.Provider,{value:{tabs:ia,prefixCls:Dt}},m.createElement("div",Object.assign({ref:xn,id:Ht,className:t()(Dt,"".concat(Dt,"-").concat($r),(zn={},Object(f.a)(zn,"".concat(Dt,"-mobile"),ha),Object(f.a)(zn,"".concat(Dt,"-editable"),Ar),Object(f.a)(zn,"".concat(Dt,"-rtl"),ba),zn),Bt)},ma),vn,m.createElement(Ye,Object.assign({destroyInactiveTabPane:ii},Tn,{animated:vi}))))}var gt=m.forwardRef(St);gt.TabPane=rt;var hr=gt,Qr=hr,Xr=n("dw78"),dn=n.n(Xr),mr=n("CRcw"),Kn=n.n(mr),Rr=n("1S0Z"),Rn=n.n(Rr),An=n("uaoM"),Zr=n("H84U"),hi=function(qr,xn){var zn={};for(var Ht in qr)Object.prototype.hasOwnProperty.call(qr,Ht)&&xn.indexOf(Ht)<0&&(zn[Ht]=qr[Ht]);if(qr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,Ht=Object.getOwnPropertySymbols(qr);Tt<Ht.length;Tt++)xn.indexOf(Ht[Tt])<0&&Object.prototype.propertyIsEnumerable.call(qr,Ht[Tt])&&(zn[Ht[Tt]]=qr[Ht[Tt]]);return zn};function Mi(qr){var xn,zn=qr.type,Ht=qr.className,Tt=qr.size,Dt=qr.onEdit,Bt=qr.hideAdd,jt=qr.centered,Ot=qr.addIcon,nr=hi(qr,["type","className","size","onEdit","hideAdd","centered","addIcon"]),pr=nr.prefixCls,Ar=m.useContext(Zr.b),Nr=Ar.getPrefixCls,Hn=Ar.direction,Ln=Nr("tabs",pr),ci;return zn==="editable-card"&&(ci={onEdit:function(Fr,En){var Wn=En.key,Yn=En.event;Dt==null||Dt(Fr==="add"?Yn:Wn,Fr)},removeIcon:m.createElement(Rn.a,null),addIcon:Ot||m.createElement(Kn.a,null),showAdd:Bt!==!0}),Object(An.a)(!("onPrevClick"in nr)&&!("onNextClick"in nr),"Tabs","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),m.createElement(Qr,p()({direction:Hn},nr,{moreTransitionName:"slide-up",className:t()(Ht,(xn={},A()(xn,"".concat(Ln,"-").concat(Tt),Tt),A()(xn,"".concat(Ln,"-card"),["card","editable-card"].includes(zn)),A()(xn,"".concat(Ln,"-editable-card"),zn==="editable-card"),A()(xn,"".concat(Ln,"-centered"),jt),xn)),editable:ci,moreIcon:m.createElement(dn.a,null),prefixCls:Ln}))}Mi.TabPane=rt;var Zi=D.a=Mi},ZTW2:function(k,D,n){},ZWlE:function(k,D,n){var y=n("bYtY"),p=n("4NO4");function x(f){A(f),m(f)}function A(f){if(f.parallel)return;var h=!1;y.each(f.series,function(u){u&&u.type==="parallel"&&(h=!0)}),h&&(f.parallel=[{}])}function m(f){var h=p.normalizeToArray(f.parallelAxis);y.each(h,function(u){if(!y.isObject(u))return;var a=u.parallelIndex||0,i=p.normalizeToArray(f.parallel)[a];i&&i.parallelAxisDefault&&y.merge(u,i.parallelAxisDefault,!1)})}k.exports=x},ZX9x:function(k,D,n){"use strict";n.d(D,"a",function(){return I}),n.d(D,"b",function(){return F});var y=n("lSNA"),p=n.n(y),x=n("pVnL"),A=n.n(x),m=n("lwsE"),f=n.n(m),h=n("W8MJ"),u=n.n(h),a=n("7W2i"),i=n.n(a),t=n("LQ03"),o=n.n(t),e=n("q1tI"),l=n("TSYQ"),r=n.n(l),s=n("BGR+"),c=n("kuFg"),d=n.n(c),g=n("nyS3"),v=n.n(g),b=n("FRVV"),S=n.n(b),E=n("PKem"),C=n("H84U"),_=function(X){return!isNaN(parseFloat(X))&&isFinite(X)},T=_,w=function(P,X){var B={};for(var j in P)Object.prototype.hasOwnProperty.call(P,j)&&X.indexOf(j)<0&&(B[j]=P[j]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,j=Object.getOwnPropertySymbols(P);W<j.length;W++)X.indexOf(j[W])<0&&Object.prototype.propertyIsEnumerable.call(P,j[W])&&(B[j[W]]=P[j[W]]);return B},O={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},I=e.createContext({}),R=function(){var P=0;return function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return P+=1,"".concat(X).concat(P)}}(),M=function(P){i()(B,P);var X=o()(B);function B(j){var W;f()(this,B),W=X.call(this,j),W.responsiveHandler=function(Q){W.setState({below:Q.matches});var G=W.props.onBreakpoint,ee=W.state.collapsed;G&&G(Q.matches),ee!==Q.matches&&W.setCollapsed(Q.matches,"responsive")},W.setCollapsed=function(Q,G){"collapsed"in W.props||W.setState({collapsed:Q});var ee=W.props.onCollapse;ee&&ee(Q,G)},W.toggle=function(){var Q=!W.state.collapsed;W.setCollapsed(Q,"clickTrigger")},W.renderSider=function(Q){var G,ee=Q.getPrefixCls,ce=W.props,be=ce.prefixCls,le=ce.className,Ie=ce.theme,ke=ce.collapsible,Re=ce.reverseArrow,Qe=ce.trigger,We=ce.style,ot=ce.width,Oe=ce.collapsedWidth,oe=ce.zeroWidthTriggerStyle,st=ce.children,he=w(ce,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle","children"]),J=W.state,Y=J.collapsed,$=J.below,fe=ee("layout-sider",be),we=Object(s.default)(he,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),Ne=Y?Oe:ot,Ee=T(Ne)?"".concat(Ne,"px"):String(Ne),de=parseFloat(String(Oe||0))===0?e.createElement("span",{onClick:W.toggle,className:r()("".concat(fe,"-zero-width-trigger"),"".concat(fe,"-zero-width-trigger-").concat(Re?"right":"left")),style:oe},Qe||e.createElement(d.a,null)):null,me={expanded:Re?e.createElement(v.a,null):e.createElement(S.a,null),collapsed:Re?e.createElement(S.a,null):e.createElement(v.a,null)},Le=Y?"collapsed":"expanded",tt=me[Le],At=Qe!==null?de||e.createElement("div",{className:"".concat(fe,"-trigger"),onClick:W.toggle,style:{width:Ee}},Qe||tt):null,ht=A()(A()({},We),{flex:"0 0 ".concat(Ee),maxWidth:Ee,minWidth:Ee,width:Ee}),Ke=r()(le,fe,"".concat(fe,"-").concat(Ie),(G={},p()(G,"".concat(fe,"-collapsed"),!!Y),p()(G,"".concat(fe,"-has-trigger"),ke&&Qe!==null&&!de),p()(G,"".concat(fe,"-below"),!!$),p()(G,"".concat(fe,"-zero-width"),parseFloat(Ee)===0),G));return e.createElement("aside",A()({className:Ke},we,{style:ht}),e.createElement("div",{className:"".concat(fe,"-children")},st),ke||$&&de?At:null)},W.uniqueId=R("ant-sider-");var z;typeof window!="undefined"&&(z=window.matchMedia),z&&j.breakpoint&&j.breakpoint in O&&(W.mql=z("(max-width: ".concat(O[j.breakpoint],")")));var V;return"collapsed"in j?V=j.collapsed:V=j.defaultCollapsed,W.state={collapsed:V,below:!1},W}return u()(B,[{key:"componentDidMount",value:function(){var W;this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),(W=this.props)===null||W===void 0||W.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){var W,z;(W=this===null||this===void 0?void 0:this.mql)===null||W===void 0||W.removeListener(this.responsiveHandler),(z=this.props)===null||z===void 0||z.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var W=this.state.collapsed,z=this.props.collapsedWidth;return e.createElement(I.Provider,{value:{siderCollapsed:W,collapsedWidth:z}},e.createElement(C.a,null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(W){return"collapsed"in W?{collapsed:W.collapsed}:null}}]),B}(e.Component);M.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"};var F=function(P){i()(B,P);var X=o()(B);function B(){return f()(this,B),X.apply(this,arguments)}return u()(B,[{key:"render",value:function(){var W=this;return e.createElement(E.a.Consumer,null,function(z){return e.createElement(M,A()({},z,W.props))})}}]),B}(e.Component)},ZYIC:function(k,D,n){var y=n("zM3Q"),p={seriesType:"lines",plan:y(),reset:function(x){var A=x.coordinateSystem,m=x.get("polyline"),f=x.pipelineContext.large;function h(u,a){var i=[];if(f){var t,o=u.end-u.start;if(m){for(var e=0,l=u.start;l<u.end;l++)e+=x.getLineCoordsCount(l);t=new Float32Array(o+e*2)}else t=new Float32Array(o*4);for(var r=0,s=[],l=u.start;l<u.end;l++){var c=x.getLineCoords(l,i);m&&(t[r++]=c);for(var d=0;d<c;d++)s=A.dataToPoint(i[d],!1,s),t[r++]=s[0],t[r++]=s[1]}a.setLayout("linesPoints",t)}else for(var l=u.start;l<u.end;l++){var g=a.getItemModel(l),c=x.getLineCoords(l,i),v=[];if(m)for(var b=0;b<c;b++)v.push(A.dataToPoint(i[b]));else{v[0]=A.dataToPoint(i[0]),v[1]=A.dataToPoint(i[1]);var S=g.get("lineStyle.curveness");+S&&(v[2]=[(v[0][0]+v[1][0])/2-(v[0][1]-v[1][1])*S,(v[0][1]+v[1][1])/2-(v[1][0]-v[0][0])*S])}a.setItemLayout(l,v)}}return{progress:h}}};k.exports=p},Ze12:function(k,D,n){var y=n("ItGF"),p=n("hOwI"),x=p.buildTransformer,A="___zrEVENTSAVED",m=[];function f(t,o,e,l,r){return h(m,o,l,r,!0)&&h(t,e,m[0],m[1])}function h(t,o,e,l,r){if(o.getBoundingClientRect&&y.domSupported&&!i(o)){var s=o[A]||(o[A]={}),c=u(o,s),d=a(c,s,r);if(d)return d(t,e,l),!0}return!1}function u(t,o){var e=o.markers;if(e)return e;e=o.markers=[];for(var l=["left","right"],r=["top","bottom"],s=0;s<4;s++){var c=document.createElement("div"),d=c.style,g=s%2,v=(s>>1)%2;d.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",l[g]+":0",r[v]+":0",l[1-g]+":auto",r[1-v]+":auto",""].join("!important;"),t.appendChild(c),e.push(c)}return e}function a(t,o,e){for(var l=e?"invTrans":"trans",r=o[l],s=o.srcCoords,c=!0,d=[],g=[],v=0;v<4;v++){var b=t[v].getBoundingClientRect(),S=2*v,E=b.left,C=b.top;d.push(E,C),c=c&&s&&E===s[S]&&C===s[S+1],g.push(t[v].offsetLeft,t[v].offsetTop)}return c&&r?r:(o.srcCoords=d,o[l]=e?x(g,d):x(d,g))}function i(t){return t.nodeName.toUpperCase()==="CANVAS"}D.transformLocalCoord=f,D.transformCoordWithViewport=h,D.isCanvasEl=i},Znkb:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),A=n("zTMp"),m=x.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(i,t,o,e){this.axisPointerClass&&A.fixValue(i),m.superApply(this,"render",arguments),f(this,i,t,o,e,!0)},updateAxisPointer:function(i,t,o,e,l){f(this,i,t,o,e,!1)},remove:function(i,t){var o=this._axisPointer;o&&o.remove(t),m.superApply(this,"remove",arguments)},dispose:function(i,t){h(this,t),m.superApply(this,"dispose",arguments)}});function f(i,t,o,e,l,r){var s=m.getAxisPointerClass(i.axisPointerClass);if(!s)return;var c=A.getAxisPointerModel(t);c?(i._axisPointer||(i._axisPointer=new s)).render(t,c,e,r):h(i,e)}function h(i,t,o){var e=i._axisPointer;e&&e.dispose(t,o),i._axisPointer=null}var u=[];m.registerAxisPointerClass=function(i,t){u[i]=t},m.getAxisPointerClass=function(i){return i&&u[i]};var a=m;k.exports=a},"Znn+":function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("9ama"),A=n.n(x)},ZqQs:function(k,D,n){var y=n("bYtY");function p(f){var h=f&&f.timeline;y.isArray(h)||(h=h?[h]:[]),y.each(h,function(u){if(!u)return;x(u)})}function x(f){var h=f.type,u={number:"value",time:"time"};if(u[h]&&(f.axisType=u[h],delete f.type),A(f),m(f,"controlPosition")){var a=f.controlStyle||(f.controlStyle={});m(a,"position")||(a.position=f.controlPosition),a.position==="none"&&!m(a,"show")&&(a.show=!1,delete a.position),delete f.controlPosition}y.each(f.data||[],function(i){y.isObject(i)&&!y.isArray(i)&&(!m(i,"value")&&m(i,"name")&&(i.value=i.name),A(i))})}function A(f){var h=f.itemStyle||(f.itemStyle={}),u=h.emphasis||(h.emphasis={}),a=f.label||f.label||{},i=a.normal||(a.normal={}),t={normal:1,emphasis:1};y.each(a,function(o,e){!t[e]&&!m(i,e)&&(i[e]=o)}),u.label&&!m(a,"emphasis")&&(a.emphasis=u.label,delete u.label)}function m(f,h){return f.hasOwnProperty(h)}k.exports=p},Zvw2:function(k,D,n){var y=n("bYtY"),p=n("hM6l"),x=function(m,f,h,u,a){p.call(this,m,f,h),this.type=u||"value",this.position=a||"bottom",this.orient=null};x.prototype={constructor:x,model:null,isHorizontal:function(){var m=this.position;return m==="top"||m==="bottom"},pointToData:function(m,f){return this.coordinateSystem.pointToData(m,f)[0]},toGlobalCoord:null,toLocalCoord:null},y.inherits(x,p);var A=x;k.exports=A},a7Wl:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={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"};D.default=y},a9QJ:function(k,D){var n={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function y(p,x){if(p==="world"){var A=n[x.name];if(A){var m=x.center;m[0]=A[0],m[1]=A[1]}}}k.exports=y},aHsQ:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("6D9b"),A=n.n(x)},aKvl:function(k,D,n){var y=n("Sj9i"),p=y.quadraticProjectPoint;function x(A,m,f,h,u,a,i,t,o){if(i===0)return!1;var e=i;if(o>m+e&&o>h+e&&o>a+e||o<m-e&&o<h-e&&o<a-e||t>A+e&&t>f+e&&t>u+e||t<A-e&&t<f-e&&t<u-e)return!1;var l=p(A,m,f,h,u,a,t,o,null);return l<=e/2}D.containStroke=x},aTJb:function(k,D,n){var y=n("bLfw");y.registerSubTypeDefaulter("dataZoom",function(){return"slider"})},aX58:function(k,D,n){var y=n("3gBT"),p=n("ItGF"),x=n("bYtY"),A=n("0s+r"),m=n("r6Bn"),f=n("7SHv"),h=n("MKOG"),u=n("zarK");/*!
|
|
|
* ZRender, a high performance 2d drawing library.
|
|
|
*
|
|
|
* Copyright (c) 2013, Baidu Inc.
|
|
|
* All rights reserved.
|
|
|
*
|
|
|
* LICENSE
|
|
|
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
|
*/var a=!p.canvasSupported,i={canvas:f},t={},o="4.3.1";function e(g,v){var b=new d(y(),g,v);return t[b.id]=b,b}function l(g){if(g)g.dispose();else{for(var v in t)t.hasOwnProperty(v)&&t[v].dispose();t={}}return this}function r(g){return t[g]}function s(g,v){i[g]=v}function c(g){delete t[g]}var d=function(v,b,S){S=S||{},this.dom=b,this.id=v;var E=this,C=new m,_=S.renderer;if(a){if(!i.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");_="vml"}else(!_||!i[_])&&(_="canvas");var T=new i[_](b,C,S,v);this.storage=C,this.painter=T;var w=!p.node&&!p.worker?new u(T.getViewportRoot(),T.root):null;this.handler=new A(C,T,w,T.root),this.animation=new h({stage:{update:x.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var O=C.delFromStorage,I=C.addToStorage;C.delFromStorage=function(R){O.call(C,R),R&&R.removeSelfFromZr(E)},C.addToStorage=function(R){I.call(C,R),R.addSelfToZr(E)}};d.prototype={constructor:d,getId:function(){return this.id},add:function(v){this.storage.addRoot(v),this._needsRefresh=!0},remove:function(v){this.storage.delRoot(v),this._needsRefresh=!0},configLayer:function(v,b){this.painter.configLayer&&this.painter.configLayer(v,b),this._needsRefresh=!0},setBackgroundColor:function(v){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(v),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var v;this._needsRefresh&&(v=!0,this.refreshImmediately()),this._needsRefreshHover&&(v=!0,this.refreshHoverImmediately()),v&&this.trigger("rendered")},addHover:function(v,b){if(this.painter.addHover){var S=this.painter.addHover(v,b);return this.refreshHover(),S}},removeHover:function(v){this.painter.removeHover&&(this.painter.removeHover(v),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(v){v=v||{},this.painter.resize(v.width,v.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(v,b){return this.painter.pathToImage(v,b)},setCursorStyle:function(v){this.handler.setCursorStyle(v)},findHover:function(v,b){return this.handler.findHover(v,b)},on:function(v,b,S){this.handler.on(v,b,S)},off:function(v,b){this.handler.off(v,b)},trigger:function(v,b){this.handler.trigger(v,b)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,c(this.id)}},D.version=o,D.init=e,D.dispose=l,D.getInstance=r,D.registerPainter=s},aX7z:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=n("GMDS"),m=n("ieMj"),f=n("4NgU"),h=n("OELB"),u=n("nVfU"),a=u.prepareLayoutBarSeries,i=u.makeColumnLayout,t=u.retrieveColumnLayout,o=n("mFDi");n("IWp7"),n("jCoz");function e(C,_){var T=C.type,w=_.getMin(),O=_.getMax(),I=C.getExtent(),R,M,F;T==="ordinal"?R=_.getCategories().length:(M=_.get("boundaryGap"),x.isArray(M)||(M=[M||0,M||0]),typeof M[0]=="boolean"&&(M=[0,0]),M[0]=h.parsePercent(M[0],1),M[1]=h.parsePercent(M[1],1),F=I[1]-I[0]||Math.abs(I[0])),w==="dataMin"?w=I[0]:typeof w=="function"&&(w=w({min:I[0],max:I[1]})),O==="dataMax"?O=I[1]:typeof O=="function"&&(O=O({min:I[0],max:I[1]}));var P=w!=null,X=O!=null;w==null&&(w=T==="ordinal"?R?0:NaN:I[0]-M[0]*F),O==null&&(O=T==="ordinal"?R?R-1:NaN:I[1]+M[1]*F),(w==null||!isFinite(w))&&(w=NaN),(O==null||!isFinite(O))&&(O=NaN),C.setBlank(x.eqNaN(w)||x.eqNaN(O)||T==="ordinal"&&!C.getOrdinalMeta().categories.length),_.getNeedCrossZero()&&(w>0&&O>0&&!P&&(w=0),w<0&&O<0&&!X&&(O=0));var B=_.ecModel;if(B&&T==="time"){var j=a("bar",B),W;if(x.each(j,function(Q){W|=Q.getBaseAxis()===_.axis}),W){var z=i(j),V=l(w,O,_,z);w=V.min,O=V.max}}return{extent:[w,O],fixMin:P,fixMax:X}}function l(C,_,T,w){var O=T.axis.getExtent(),I=O[1]-O[0],R=t(w,T.axis);if(R===void 0)return{min:C,max:_};var M=Infinity;x.each(R,function(W){M=Math.min(W.offset,M)});var F=-Infinity;x.each(R,function(W){F=Math.max(W.offset+W.width,F)}),M=Math.abs(M),F=Math.abs(F);var P=M+F,X=_-C,B=1-(M+F)/I,j=X/B-X;return _+=j*(F/P),C-=j*(M/P),{min:C,max:_}}function r(C,_){var T=e(C,_),w=T.extent,O=_.get("splitNumber");C.type==="log"&&(C.base=_.get("logBase"));var I=C.type;C.setExtent(w[0],w[1]),C.niceExtent({splitNumber:O,fixMin:T.fixMin,fixMax:T.fixMax,minInterval:I==="interval"||I==="time"?_.get("minInterval"):null,maxInterval:I==="interval"||I==="time"?_.get("maxInterval"):null});var R=_.get("interval");R!=null&&(C.setInterval&&C.setInterval(R))}function s(C,_){if(_=_||C.get("type"),_)switch(_){case"category":return new A(C.getOrdinalMeta?C.getOrdinalMeta():C.getCategories(),[Infinity,-Infinity]);case"value":return new m;default:return(f.getClass(_)||m).create(C)}}function c(C){var _=C.scale.getExtent(),T=_[0],w=_[1];return!(T>0&&w>0||T<0&&w<0)}function d(C){var _=C.getLabelModel().get("formatter"),T=C.type==="category"?C.scale.getExtent()[0]:null;return typeof _=="string"?(_=function(w){return function(O){return O=C.scale.getLabel(O),w.replace("{value}",O!=null?O:"")}}(_),_):typeof _=="function"?function(w,O){return T!=null&&(O=w-T),_(g(C,w),O)}:function(w){return C.scale.getLabel(w)}}function g(C,_){return C.type==="category"?C.scale.getLabel(_):_}function v(C){var _=C.model,T=C.scale;if(!_.get("axisLabel.show")||T.isBlank())return;var w=C.type==="category",O,I,R=T.getExtent();w?I=T.count():(O=T.getTicks(),I=O.length);var M=C.getLabelModel(),F=d(C),P,X=1;I>40&&(X=Math.ceil(I/40));for(var B=0;B<I;B+=X){var j=O?O[B]:R[0]+B,W=F(j),z=M.getTextRect(W),V=b(z,M.get("rotate")||0);P?P.union(V):P=V}return P}function b(C,_){var T=_*Math.PI/180,w=C.plain(),O=w.width,I=w.height,R=O*Math.cos(T)+I*Math.sin(T),M=O*Math.sin(T)+I*Math.cos(T),F=new o(w.x,w.y,R,M);return F}function S(C){var _=C.get("interval");return _==null?"auto":_}function E(C){return C.type==="category"&&S(C.getLabelModel())===0}D.getScaleExtent=e,D.niceScaleExtent=r,D.createScaleByModel=s,D.ifAxisCrossZero=c,D.makeLabelFormatter=d,D.getAxisRawValue=g,D.estimateLabelUnionRect=v,D.getOptionCategoryInterval=S,D.shouldShowAllLabels=E},adU4:function(k,D,n){var y=n("y1pI"),p=Array.prototype,x=p.splice;function A(m){var f=this.__data__,h=y(f,m);if(h<0)return!1;var u=f.length-1;return h==u?f.pop():x.call(f,h,1),--this.size,!0}k.exports=A},"af/B":function(k,D,n){var y=n("bYtY"),p=y.each,x=y.map,A=y.isFunction,m=y.createHashMap,f=y.noop,h=n("9H2F"),u=h.createTask,a=n("iRjW"),i=a.getUID,t=n("fmMI"),o=n("hD7B"),e=n("4NO4"),l=e.normalizeToArray;function r(W,z,V,Q){this.ecInstance=W,this.api=z,this.unfinished;var V=this._dataProcessorHandlers=V.slice(),Q=this._visualHandlers=Q.slice();this._allHandlers=V.concat(Q),this._stageTaskMap=m()}var s=r.prototype;s.restoreData=function(W,z){W.restoreData(z),this._stageTaskMap.each(function(V){var Q=V.overallTask;Q&&Q.dirty()})},s.getPerformArgs=function(W,z){if(!W.__pipeline)return;var V=this._pipelineMap.get(W.__pipeline.id),Q=V.context,G=!z&&V.progressiveEnabled&&(!Q||Q.progressiveRender)&&W.__idxInPipeline>V.blockIndex,ee=G?V.step:null,ce=Q&&Q.modDataCount,be=ce!=null?Math.ceil(ce/ee):null;return{step:ee,modBy:be,modDataCount:ce}},s.getPipeline=function(W){return this._pipelineMap.get(W)},s.updateStreamModes=function(W,z){var V=this._pipelineMap.get(W.uid),Q=W.getData(),G=Q.count(),ee=V.progressiveEnabled&&z.incrementalPrepareRender&&G>=V.threshold,ce=W.get("large")&&G>=W.get("largeThreshold"),be=W.get("progressiveChunkMode")==="mod"?G:null;W.pipelineContext=V.context={progressiveRender:ee,modDataCount:be,large:ce}},s.restorePipelines=function(W){var z=this,V=z._pipelineMap=m();W.eachSeries(function(Q){var G=Q.getProgressive(),ee=Q.uid;V.set(ee,{id:ee,head:null,tail:null,threshold:Q.getProgressiveThreshold(),progressiveEnabled:G&&!(Q.preventIncremental&&Q.preventIncremental()),blockIndex:-1,step:Math.round(G||700),count:0}),R(z,Q,Q.dataTask)})},s.prepareStageTasks=function(){var W=this._stageTaskMap,z=this.ecInstance.getModel(),V=this.api;p(this._allHandlers,function(Q){var G=W.get(Q.uid)||W.set(Q.uid,[]);Q.reset&&g(this,Q,G,z,V),Q.overallReset&&v(this,Q,G,z,V)},this)},s.prepareView=function(W,z,V,Q){var G=W.renderTask,ee=G.context;ee.model=z,ee.ecModel=V,ee.api=Q,G.__block=!W.incrementalPrepareRender,R(this,z,G)},s.performDataProcessorTasks=function(W,z){c(this,this._dataProcessorHandlers,W,z,{block:!0})},s.performVisualTasks=function(W,z,V){c(this,this._visualHandlers,W,z,V)};function c(W,z,V,Q,G){G=G||{};var ee;p(z,function(be,le){if(G.visualType&&G.visualType!==be.visualType)return;var Ie=W._stageTaskMap.get(be.uid),ke=Ie.seriesTaskMap,Re=Ie.overallTask;if(Re){var Qe,We=Re.agentStubMap;We.each(function(Oe){ce(G,Oe)&&(Oe.dirty(),Qe=!0)}),Qe&&Re.dirty(),d(Re,Q);var ot=W.getPerformArgs(Re,G.block);We.each(function(Oe){Oe.perform(ot)}),ee|=Re.perform(ot)}else ke&&ke.each(function(Oe,oe){ce(G,Oe)&&Oe.dirty();var st=W.getPerformArgs(Oe,G.block);st.skip=!be.performRawSeries&&V.isSeriesFiltered(Oe.context.model),d(Oe,Q),ee|=Oe.perform(st)})});function ce(be,le){return be.setDirty&&(!be.dirtyMap||be.dirtyMap.get(le.__pipeline.id))}W.unfinished|=ee}s.performSeriesTasks=function(W){var z;W.eachSeries(function(V){z|=V.dataTask.perform()}),this.unfinished|=z},s.plan=function(){this._pipelineMap.each(function(W){var z=W.tail;do{if(z.__block){W.blockIndex=z.__idxInPipeline;break}z=z.getUpstream()}while(z)})};var d=s.updatePayload=function(W,z){z!=="remain"&&(W.context.payload=z)};function g(W,z,V,Q,G){var ee=V.seriesTaskMap||(V.seriesTaskMap=m()),ce=z.seriesType,be=z.getTargetSeries;z.createOnAllSeries?Q.eachRawSeries(le):ce?Q.eachRawSeriesByType(ce,le):be&&be(Q,G).each(le);function le(ke){var Re=ke.uid,Qe=ee.get(Re)||ee.set(Re,u({plan:_,reset:T,count:I}));Qe.context={model:ke,ecModel:Q,api:G,useClearVisual:z.isVisual&&!z.isLayout,plan:z.plan,reset:z.reset,scheduler:W},R(W,ke,Qe)}var Ie=W._pipelineMap;ee.each(function(ke,Re){Ie.get(Re)||(ke.dispose(),ee.removeKey(Re))})}function v(W,z,V,Q,G){var ee=V.overallTask=V.overallTask||u({reset:b});ee.context={ecModel:Q,api:G,overallReset:z.overallReset,scheduler:W};var ce=ee.agentStubMap=ee.agentStubMap||m(),be=z.seriesType,le=z.getTargetSeries,Ie=!0,ke=z.modifyOutputEnd;be?Q.eachRawSeriesByType(be,Re):le?le(Q,G).each(Re):(Ie=!1,p(Q.getSeries(),Re));function Re(We){var ot=We.uid,Oe=ce.get(ot);Oe||(Oe=ce.set(ot,u({reset:S,onDirty:C})),ee.dirty()),Oe.context={model:We,overallProgress:Ie,modifyOutputEnd:ke},Oe.agent=ee,Oe.__block=Ie,R(W,We,Oe)}var Qe=W._pipelineMap;ce.each(function(We,ot){Qe.get(ot)||(We.dispose(),ee.dirty(),ce.removeKey(ot))})}function b(W){W.overallReset(W.ecModel,W.api,W.payload)}function S(W,z){return W.overallProgress&&E}function E(){this.agent.dirty(),this.getDownstream().dirty()}function C(){this.agent&&this.agent.dirty()}function _(W){return W.plan&&W.plan(W.model,W.ecModel,W.api,W.payload)}function T(W){W.useClearVisual&&W.data.clearAllVisual();var z=W.resetDefines=l(W.reset(W.model,W.ecModel,W.api,W.payload));return z.length>1?x(z,function(V,Q){return O(Q)}):w}var w=O(0);function O(W){return function(z,V){var Q=V.data,G=V.resetDefines[W];if(G&&G.dataEach)for(var ee=z.start;ee<z.end;ee++)G.dataEach(Q,ee);else G&&G.progress&&G.progress(z,Q)}}function I(W){return W.data.count()}function R(W,z,V){var Q=z.uid,G=W._pipelineMap.get(Q);!G.head&&(G.head=V),G.tail&&G.tail.pipe(V),G.tail=V,V.__idxInPipeline=G.count++,V.__pipeline=G}r.wrapStageHandler=function(W,z){return A(W)&&(W={overallReset:W,seriesType:M(W)}),W.uid=i("stageHandler"),z&&(W.visualType=z),W};function M(W){X=null;try{W(F,P)}catch(z){}return X}var F={},P={},X;B(F,t),B(P,o),F.eachSeriesByType=F.eachRawSeriesByType=function(W){X=W},F.eachComponent=function(W){W.mainType==="series"&&W.subType&&(X=W.subType)};function B(W,z){for(var V in z.prototype)W[V]=f}var j=r;k.exports=j},akwb:function(k,D,n){var y=n("RSch"),p=n("bYtY"),x=n("D9ME"),A=n("QBsz");function m(u,a,i){x.call(this,u,a,i),this._lastFrame=0,this._lastFramePercent=0}var f=m.prototype;f.createLine=function(u,a,i){return new y(u,a,i)},f.updateAnimationPoints=function(u,a){this._points=a;for(var i=[0],t=0,o=1;o<a.length;o++){var e=a[o-1],l=a[o];t+=A.dist(e,l),i.push(t)}if(t===0)return;for(var o=0;o<i.length;o++)i[o]/=t;this._offsets=i,this._length=t},f.getLineLength=function(u){return this._length},f.updateSymbolPosition=function(u){var a=u.__t,i=this._points,t=this._offsets,o=i.length;if(!t)return;var e=this._lastFrame,l;if(a<this._lastFramePercent){var r=Math.min(e+1,o-1);for(l=r;l>=0&&!(t[l]<=a);l--);l=Math.min(l,o-2)}else{for(var l=e;l<o&&!(t[l]>a);l++);l=Math.min(l-1,o-2)}A.lerp(u.position,i[l],i[l+1],(a-t[l])/(t[l+1]-t[l]));var s=i[l+1][0]-i[l][0],c=i[l+1][1]-i[l][1];u.rotation=-Math.atan2(c,s)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,u.ignore=!1},p.inherits(m,x);var h=m;k.exports=h},as94:function(k,D,n){var y=n("7aKB"),p=n("3LNs"),x=n("IwbS"),A=n("/y7N"),m=n("Fofx"),f=n("+rIm"),h=n("Znkb"),u=p.extend({makeElOption:function(o,e,l,r,s){var c=l.axis;c.dim==="angle"&&(this.animationThreshold=Math.PI/18);var d=c.polar,g=d.getOtherAxis(c),v=g.getExtent(),b;b=c["dataTo"+y.capitalFirst(c.dim)](e);var S=r.get("type");if(S&&S!=="none"){var E=A.buildElStyle(r),C=i[S](c,d,b,v,E);C.style=E,o.graphicKey=C.type,o.pointer=C}var _=r.get("label.margin"),T=a(e,l,r,d,_);A.buildLabelElOption(o,l,r,s,T)}});function a(o,e,l,r,s){var c=e.axis,d=c.dataToCoord(o),g=r.getAngleAxis().getExtent()[0];g=g/180*Math.PI;var v=r.getRadiusAxis().getExtent(),b,S,E;if(c.dim==="radius"){var C=m.create();m.rotate(C,C,g),m.translate(C,C,[r.cx,r.cy]),b=x.applyTransform([d,-s],C);var _=e.getModel("axisLabel").get("rotate")||0,T=f.innerTextLayout(g,_*Math.PI/180,-1);S=T.textAlign,E=T.textVerticalAlign}else{var w=v[1];b=r.coordToPoint([w+s,d]);var O=r.cx,I=r.cy;S=Math.abs(b[0]-O)/w<.3?"center":b[0]>O?"left":"right",E=Math.abs(b[1]-I)/w<.3?"middle":b[1]>I?"top":"bottom"}return{position:b,align:S,verticalAlign:E}}var i={line:function(o,e,l,r,s){return o.dim==="angle"?{type:"Line",shape:A.makeLineShape(e.coordToPoint([r[0],l]),e.coordToPoint([r[1],l]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:l}}},shadow:function(o,e,l,r,s){var c=Math.max(1,o.getBandWidth()),d=Math.PI/180;return o.dim==="angle"?{type:"Sector",shape:A.makeSectorShape(e.cx,e.cy,r[0],r[1],(-l-c/2)*d,(-l+c/2)*d)}:{type:"Sector",shape:A.makeSectorShape(e.cx,e.cy,l-c/2,l+c/2,0,Math.PI*2)}}};h.registerAxisPointerClass("PolarAxisPointer",u);var t=u;k.exports=t},b56q:function(k,D,n){},b80T:function(k,D,n){var y=n("UNi/"),p=n("03A+"),x=n("Z0cm"),A=n("DSRE"),m=n("wJg7"),f=n("c6wG"),h=Object.prototype,u=h.hasOwnProperty;function a(i,t){var o=x(i),e=!o&&p(i),l=!o&&!e&&A(i),r=!o&&!e&&!l&&f(i),s=o||e||l||r,c=s?y(i.length,String):[],d=c.length;for(var g in i)(t||u.call(i,g))&&!(s&&(g=="length"||l&&(g=="offset"||g=="parent")||r&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||m(g,d)))&&c.push(g);return c}k.exports=a},b8jI:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("Nu4q")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="PictureTwoTone";var i=A.forwardRef(a);D.default=i},b9oc:function(k,D,n){var y=n("bYtY"),p=y.each,x="\0_ec_hist_store";function A(a,i){var t=u(a);p(i,function(o,e){for(var l=t.length-1;l>=0;l--){var r=t[l];if(r[e])break}if(l<0){var s=a.queryComponents({mainType:"dataZoom",subType:"select",id:e})[0];if(s){var c=s.getPercentRange();t[0][e]={dataZoomId:e,start:c[0],end:c[1]}}}}),t.push(i)}function m(a){var i=u(a),t=i[i.length-1];i.length>1&&i.pop();var o={};return p(t,function(e,l){for(var r=i.length-1;r>=0;r--){var e=i[r][l];if(e){o[l]=e;break}}}),o}function f(a){a[x]=null}function h(a){return u(a).length}function u(a){var i=a[x];return i||(i=a[x]=[{}]),i}D.push=A,D.pop=m,D.clear=f,D.count=h},bBKM:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),A=n("bYtY"),m=n("+rIm"),f=n("IwbS"),h=["axisLine","axisTickLabel","axisName"],u=x.extendComponentView({type:"radar",render:function(a,i,t){var o=this.group;o.removeAll(),this._buildAxes(a),this._buildSplitLineAndArea(a)},_buildAxes:function(a){var i=a.coordinateSystem,t=i.getIndicatorAxes(),o=A.map(t,function(e){var l=new m(e.model,{position:[i.cx,i.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});A.each(o,function(e){A.each(h,e.add,e),this.group.add(e.getGroup())},this)},_buildSplitLineAndArea:function(a){var i=a.coordinateSystem,t=i.getIndicatorAxes();if(!t.length)return;var o=a.get("shape"),e=a.getModel("splitLine"),l=a.getModel("splitArea"),r=e.getModel("lineStyle"),s=l.getModel("areaStyle"),c=e.get("show"),d=l.get("show"),g=r.get("color"),v=s.get("color");g=A.isArray(g)?g:[g],v=A.isArray(v)?v:[v];var b=[],S=[];function E(j,W,z){var V=z%W.length;return j[V]=j[V]||[],V}if(o==="circle")for(var C=t[0].getTicksCoords(),_=i.cx,T=i.cy,w=0;w<C.length;w++){if(c){var O=E(b,g,w);b[O].push(new f.Circle({shape:{cx:_,cy:T,r:C[w].coord}}))}if(d&&w<C.length-1){var O=E(S,v,w);S[O].push(new f.Ring({shape:{cx:_,cy:T,r0:C[w].coord,r:C[w+1].coord}}))}}else for(var I,R=A.map(t,function(j,W){var z=j.getTicksCoords();return I=I==null?z.length-1:Math.min(z.length-1,I),A.map(z,function(V){return i.coordToPoint(V.coord,W)})}),M=[],w=0;w<=I;w++){for(var F=[],P=0;P<t.length;P++)F.push(R[P][w]);if(F[0]&&F.push(F[0].slice()),c){var O=E(b,g,w);b[O].push(new f.Polyline({shape:{points:F}}))}if(d&&M){var O=E(S,v,w-1);S[O].push(new f.Polygon({shape:{points:F.concat(M)}}))}M=F.slice().reverse()}var X=r.getLineStyle(),B=s.getAreaStyle();A.each(S,function(j,W){this.group.add(f.mergePath(j,{style:A.defaults({stroke:"none",fill:v[W%v.length]},B),silent:!0}))},this),A.each(b,function(j,W){this.group.add(f.mergePath(j,{style:A.defaults({fill:"none",stroke:g[W%g.length]},X),silent:!0}))},this)}});k.exports=u},bBL8:function(k,D,n){var y=n("ProS");n("LPzL"),n("rfSb"),n("JVwQ");var p=n("UnoB"),x=n("cbJ4"),A=n("0/Rx");y.registerLayout(p),y.registerVisual(x),y.registerProcessor(A("themeRiver"))},bE4E:function(k,D,n){},bE4q:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("RIqP"),f=n.n(m),h=n("q1tI"),u=n("TSYQ"),a=n.n(u),i=n("Zm9Q"),t=n("Ved0"),o=n.n(t),e=n("XBQK"),l=n("H84U"),r=function(M,F){var P={};for(var X in M)Object.prototype.hasOwnProperty.call(M,X)&&F.indexOf(X)<0&&(P[X]=M[X]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,X=Object.getOwnPropertySymbols(M);B<X.length;B++)F.indexOf(X[B])<0&&Object.prototype.propertyIsEnumerable.call(M,X[B])&&(P[X[B]]=M[X[B]]);return P},s=function(F){var P=F.prefixCls,X=F.separator,B=X===void 0?"/":X,j=F.children,W=F.overlay,z=F.dropdownProps,V=r(F,["prefixCls","separator","children","overlay","dropdownProps"]),Q=h.useContext(l.b),G=Q.getPrefixCls,ee=G("breadcrumb",P),ce=function(Ie){return W?h.createElement(e.a,p()({overlay:W,placement:"bottomCenter"},z),h.createElement("span",{className:"".concat(ee,"-overlay-link")},Ie,h.createElement(o.a,null))):Ie},be;return"href"in V?be=h.createElement("a",p()({className:"".concat(ee,"-link")},V),j):be=h.createElement("span",p()({className:"".concat(ee,"-link")},V),j),be=ce(be),j?h.createElement("span",null,be,B&&B!==""&&h.createElement("span",{className:"".concat(ee,"-separator")},B)):null};s.__ANT_BREADCRUMB_ITEM=!0;var c=s,d=function(F){var P=F.children,X=h.useContext(l.b),B=X.getPrefixCls,j=B("breadcrumb");return h.createElement("span",{className:"".concat(j,"-separator")},P||"/")};d.__ANT_BREADCRUMB_SEPARATOR=!0;var g=d,v=n("BvKs"),b=n("uaoM"),S=n("0n0R"),E=function(M,F){var P={};for(var X in M)Object.prototype.hasOwnProperty.call(M,X)&&F.indexOf(X)<0&&(P[X]=M[X]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,X=Object.getOwnPropertySymbols(M);B<X.length;B++)F.indexOf(X[B])<0&&Object.prototype.propertyIsEnumerable.call(M,X[B])&&(P[X[B]]=M[X[B]]);return P};function C(M,F){if(!M.breadcrumbName)return null;var P=Object.keys(F).join("|"),X=M.breadcrumbName.replace(new RegExp(":(".concat(P,")"),"g"),function(B,j){return F[j]||B});return X}function _(M,F,P,X){var B=P.indexOf(M)===P.length-1,j=C(M,F);return B?h.createElement("span",null,j):h.createElement("a",{href:"#/".concat(X.join("/"))},j)}var T=function(F,P){return F=(F||"").replace(/^\//,""),Object.keys(P).forEach(function(X){F=F.replace(":".concat(X),P[X])}),F},w=function(F){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",X=arguments.length>2?arguments[2]:void 0,B=f()(F),j=T(P,X);return j&&B.push(j),B},O=function(F){var P=F.prefixCls,X=F.separator,B=X===void 0?"/":X,j=F.style,W=F.className,z=F.routes,V=F.children,Q=F.itemRender,G=Q===void 0?_:Q,ee=F.params,ce=ee===void 0?{}:ee,be=E(F,["prefixCls","separator","style","className","routes","children","itemRender","params"]),le=h.useContext(l.b),Ie=le.getPrefixCls,ke=le.direction,Re,Qe=Ie("breadcrumb",P);if(z&&z.length>0){var We=[];Re=z.map(function(Oe){var oe=T(Oe.path,ce);oe&&We.push(oe);var st;return Oe.children&&Oe.children.length&&(st=h.createElement(v.a,null,Oe.children.map(function(he){return h.createElement(v.a.Item,{key:he.path||he.breadcrumbName},G(he,ce,z,w(We,he.path,ce)))}))),h.createElement(c,{overlay:st,separator:B,key:oe||Oe.breadcrumbName},G(Oe,ce,z,We))})}else V&&(Re=Object(i.a)(V).map(function(Oe,oe){return Oe&&(Object(b.a)(Oe.type&&(Oe.type.__ANT_BREADCRUMB_ITEM===!0||Oe.type.__ANT_BREADCRUMB_SEPARATOR===!0),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Object(S.a)(Oe,{separator:B,key:oe}))}));var ot=a()(W,Qe,A()({},"".concat(Qe,"-rtl"),ke==="rtl"));return h.createElement("div",p()({className:ot,style:j},be),Re)};O.Item=c,O.Separator=g;var I=O,R=D.a=I},bKJz:function(k,D,n){},bLfw:function(k,D,n){var y=n("bYtY"),p=n("Qxkt"),x=n("iRjW"),A=n("Yl7c"),m=A.enableClassManagement,f=A.parseClassType,h=n("4NO4"),u=h.makeInner,a=n("+TT/"),i=n("3hzK"),t=u(),o=p.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(r,s,c,d){p.call(this,r,s,c,d),this.uid=x.getUID("ec_cpt_model")},init:function(r,s,c,d){this.mergeDefaultAndTheme(r,c)},mergeDefaultAndTheme:function(r,s){var c=this.layoutMode,d=c?a.getLayoutParams(r):{},g=s.getTheme();y.merge(r,g.get(this.mainType)),y.merge(r,this.getDefaultOption()),c&&a.mergeLayoutParam(r,d,c)},mergeOption:function(r,s){y.merge(this.option,r,!0);var c=this.layoutMode;c&&a.mergeLayoutParam(this.option,r,c)},optionUpdated:function(r,s){},getDefaultOption:function(){var r=t(this);if(!r.defaultOption){for(var s=[],c=this.constructor;c;){var d=c.prototype.defaultOption;d&&s.push(d),c=c.superClass}for(var g={},v=s.length-1;v>=0;v--)g=y.merge(g,s[v],!0);r.defaultOption=g}return r.defaultOption},getReferringComponents:function(r){return this.ecModel.queryComponents({mainType:r,index:this.get(r+"Index",!0),id:this.get(r+"Id",!0)})}});m(o,{registerWhenExtend:!0}),x.enableSubTypeDefaulter(o),x.enableTopologicalTravel(o,e);function e(r){var s=[];return y.each(o.getClassesByMainType(r),function(c){s=s.concat(c.prototype.dependencies||[])}),s=y.map(s,function(c){return f(c).main}),r!=="dataset"&&y.indexOf(s,"dataset")<=0&&s.unshift("dataset"),s}y.mixin(o,i);var l=o;k.exports=l},bMXI:function(k,D,n){var y=n("bYtY"),p=n("QBsz"),x=n("Fofx"),A=n("mFDi"),m=n("DN4a"),f=p.applyTransform;function h(){m.call(this)}y.mixin(h,m);function u(t){this.name=t,this.zoomLimit,m.call(this),this._roamTransformable=new h,this._rawTransformable=new h,this._center,this._zoom}u.prototype={constructor:u,type:"view",dimensions:["x","y"],setBoundingRect:function(t,o,e,l){return this._rect=new A(t,o,e,l),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,o,e,l){this.transformTo(t,o,e,l),this._viewRect=new A(t,o,e,l)},transformTo:function(t,o,e,l){var r=this.getBoundingRect(),s=this._rawTransformable;s.transform=r.calculateTransform(new A(t,o,e,l)),s.decomposeTransform(),this._updateTransform()},setCenter:function(t){if(!t)return;this._center=t,this._updateCenterAndZoom()},setZoom:function(t){t=t||1;var o=this.zoomLimit;o&&(o.max!=null&&(t=Math.min(o.max,t)),o.min!=null&&(t=Math.max(o.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect(),o=t.x+t.width/2,e=t.y+t.height/2;return[o,e]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var t=this._rawTransformable.getLocalTransform(),o=this._roamTransformable,e=this.getDefaultCenter(),l=this.getCenter(),r=this.getZoom();l=p.applyTransform([],l,t),e=p.applyTransform([],e,t),o.origin=l,o.position=[e[0]-l[0],e[1]-l[1]],o.scale=[r,r],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,o=this._rawTransformable;o.parent=t,t.updateTransform(),o.updateTransform(),x.copy(this.transform||(this.transform=[]),o.transform||x.create()),this._rawTransform=o.getLocalTransform(),this.invTransform=this.invTransform||[],x.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var t=this._roamTransformable.transform,o=this._rawTransformable;return{roamTransform:t?y.slice(t):x.create(),rawScale:y.slice(o.scale),rawPosition:y.slice(o.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,o,e){var l=o?this._rawTransform:this.transform;return e=e||[],l?f(e,t,l):p.copy(e,t)},pointToData:function(t){var o=this.invTransform;return o?f([],t,o):[t[0],t[1]]},convertToPixel:y.curry(a,"dataToPoint"),convertFromPixel:y.curry(a,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},y.mixin(u,m);function a(t,o,e,l){var r=e.seriesModel,s=r?r.coordinateSystem:null;return s===this?s[t](l):null}var i=u;k.exports=i},bNin:function(k,D,n){var y=n("bYtY"),p=n("IwbS"),x=n("FBjb"),A=n("Itpr"),m=A.radialCoordinate,f=n("ProS"),h=n("4mN7"),u=n("bMXI"),a=n("Ae+d"),i=n("SgGq"),t=n("xSat"),o=t.onIrrelevantElement,e=n("Tghj"),l=e.__DEV__,r=n("OELB"),s=r.parsePercent,c=p.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(_,T){var w=T.childPoints,O=w.length,I=T.parentPoint,R=w[0],M=w[O-1];if(O===1){_.moveTo(I[0],I[1]),_.lineTo(R[0],R[1]);return}var F=T.orient,P=F==="TB"||F==="BT"?0:1,X=1-P,B=s(T.forkPosition,1),j=[];j[P]=I[P],j[X]=I[X]+(M[X]-I[X])*B,_.moveTo(I[0],I[1]),_.lineTo(j[0],j[1]),_.moveTo(R[0],R[1]),j[P]=R[P],_.lineTo(j[0],j[1]),j[P]=M[P],_.lineTo(j[0],j[1]),_.lineTo(M[0],M[1]);for(var W=1;W<O-1;W++){var z=w[W];_.moveTo(z[0],z[1]),j[P]=z[P],_.lineTo(j[0],j[1])}}}),d=f.extendChartView({type:"tree",init:function(_,T){this._oldTree,this._mainGroup=new p.Group,this._controller=new i(T.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(_,T,w,O){var I=_.getData(),R=_.layoutInfo,M=this._mainGroup,F=_.get("layout");F==="radial"?M.attr("position",[R.x+R.width/2,R.y+R.height/2]):M.attr("position",[R.x,R.y]),this._updateViewCoordSys(_,R,F),this._updateController(_,T,w);var P=this._data,X={expandAndCollapse:_.get("expandAndCollapse"),layout:F,edgeShape:_.get("edgeShape"),edgeForkPosition:_.get("edgeForkPosition"),orient:_.getOrient(),curvature:_.get("lineStyle.curveness"),symbolRotate:_.get("symbolRotate"),symbolOffset:_.get("symbolOffset"),hoverAnimation:_.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};I.diff(P).add(function(B){g(I,B)&&b(I,B,null,M,_,X)}).update(function(B,j){var W=P.getItemGraphicEl(j);if(!g(I,B)){W&&E(P,j,W,M,_,X);return}b(I,B,W,M,_,X)}).remove(function(B){var j=P.getItemGraphicEl(B);j&&E(P,B,j,M,_,X)}).execute(),this._nodeScaleRatio=_.get("nodeScaleRatio"),this._updateNodeAndLinkScale(_),X.expandAndCollapse===!0&&I.eachItemGraphicEl(function(B,j){B.off("click").on("click",function(){w.dispatchAction({type:"treeExpandAndCollapse",seriesId:_.id,dataIndex:j})})}),this._data=I},_updateViewCoordSys:function(_){var T=_.getData(),w=[];T.each(function(P){var X=T.getItemLayout(P);X&&!isNaN(X.x)&&!isNaN(X.y)&&w.push([+X.x,+X.y])});var O=[],I=[];h.fromPoints(w,O,I);var R=this._min,M=this._max;I[0]-O[0]===0&&(O[0]=R?R[0]:O[0]-1,I[0]=M?M[0]:I[0]+1),I[1]-O[1]===0&&(O[1]=R?R[1]:O[1]-1,I[1]=M?M[1]:I[1]+1);var F=_.coordinateSystem=new u;F.zoomLimit=_.get("scaleLimit"),F.setBoundingRect(O[0],O[1],I[0]-O[0],I[1]-O[1]),F.setCenter(_.get("center")),F.setZoom(_.get("zoom")),this.group.attr({position:F.position,scale:F.scale}),this._viewCoordSys=F,this._min=O,this._max=I},_updateController:function(_,T,w){var O=this._controller,I=this._controllerHost,R=this.group;O.setPointerChecker(function(M,F,P){var X=R.getBoundingRect();return X.applyTransform(R.transform),X.contain(F,P)&&!o(M,w,_)}),O.enable(_.get("roam")),I.zoomLimit=_.get("scaleLimit"),I.zoom=_.coordinateSystem.getZoom(),O.off("pan").off("zoom").on("pan",function(M){a.updateViewOnPan(I,M.dx,M.dy),w.dispatchAction({seriesId:_.id,type:"treeRoam",dx:M.dx,dy:M.dy})},this).on("zoom",function(M){a.updateViewOnZoom(I,M.scale,M.originX,M.originY),w.dispatchAction({seriesId:_.id,type:"treeRoam",zoom:M.scale,originX:M.originX,originY:M.originY}),this._updateNodeAndLinkScale(_)},this)},_updateNodeAndLinkScale:function(_){var T=_.getData(),w=this._getNodeGlobalScale(_),O=[w,w];T.eachItemGraphicEl(function(I,R){I.attr("scale",O)})},_getNodeGlobalScale:function(_){var T=_.coordinateSystem;if(T.type!=="view")return 1;var w=this._nodeScaleRatio,O=T.scale,I=O&&O[0]||1,R=T.getZoom(),M=(R-1)*w+1;return M/I},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function g(_,T){var w=_.getItemLayout(T);return w&&!isNaN(w.x)&&!isNaN(w.y)&&_.getItemVisual(T,"symbol")!=="none"}function v(_,T,w){return w.itemModel=T,w.itemStyle=T.getModel("itemStyle").getItemStyle(),w.hoverItemStyle=T.getModel("emphasis.itemStyle").getItemStyle(),w.lineStyle=T.getModel("lineStyle").getLineStyle(),w.labelModel=T.getModel("label"),w.hoverLabelModel=T.getModel("emphasis.label"),_.isExpand===!1&&_.children.length!==0?w.symbolInnerColor=w.itemStyle.fill:w.symbolInnerColor="#fff",w}function b(_,T,w,O,I,R){var M=!w,F=_.tree.getNodeByDataIndex(T),P=F.getModel(),R=v(F,P,R),X=_.tree.root,B=F.parentNode===X?F:F.parentNode||F,j=_.getItemGraphicEl(B.dataIndex),W=B.getLayout(),z=j?{x:j.position[0],y:j.position[1],rawX:j.__radialOldRawX,rawY:j.__radialOldRawY}:W,V=F.getLayout();M?(w=new x(_,T,R),w.attr("position",[z.x,z.y])):w.updateData(_,T,R),w.__radialOldRawX=w.__radialRawX,w.__radialOldRawY=w.__radialRawY,w.__radialRawX=V.rawX,w.__radialRawY=V.rawY,O.add(w),_.setItemGraphicEl(T,w),p.updateProps(w,{position:[V.x,V.y]},I);var Q=w.getSymbolPath();if(R.layout==="radial"){var G=X.children[0],ee=G.getLayout(),ce=G.children.length,be,le;if(V.x===ee.x&&F.isExpand===!0){var Ie={};Ie.x=(G.children[0].getLayout().x+G.children[ce-1].getLayout().x)/2,Ie.y=(G.children[0].getLayout().y+G.children[ce-1].getLayout().y)/2,be=Math.atan2(Ie.y-ee.y,Ie.x-ee.x),be<0&&(be=Math.PI*2+be),le=Ie.x<ee.x,le&&(be=be-Math.PI)}else be=Math.atan2(V.y-ee.y,V.x-ee.x),be<0&&(be=Math.PI*2+be),F.children.length===0||F.children.length!==0&&F.isExpand===!1?(le=V.x<ee.x,le&&(be=be-Math.PI)):(le=V.x>ee.x,le||(be=be-Math.PI));var ke=le?"left":"right",Re=R.labelModel.get("rotate"),Qe=Re*(Math.PI/180);Q.setStyle({textPosition:R.labelModel.get("position")||ke,textRotation:Re==null?-be:Qe,textOrigin:"center",verticalAlign:"middle"})}S(I,F,X,w,z,W,V,O,R)}function S(_,T,w,O,I,R,M,F,P){var X=P.edgeShape,B=O.__edge;if(X==="curve")T.parentNode&&T.parentNode!==w&&(B||(B=O.__edge=new p.BezierCurve({shape:C(P,I,I),style:y.defaults({opacity:0,strokeNoScale:!0},P.lineStyle)})),p.updateProps(B,{shape:C(P,R,M),style:{opacity:1}},_));else if(X==="polyline"&&(P.layout==="orthogonal"&&(T!==w&&T.children&&T.children.length!==0&&T.isExpand===!0))){for(var j=T.children,W=[],z=0;z<j.length;z++){var V=j[z].getLayout();W.push([V.x,V.y])}B||(B=O.__edge=new c({shape:{parentPoint:[M.x,M.y],childPoints:[[M.x,M.y]],orient:P.orient,forkPosition:P.edgeForkPosition},style:y.defaults({opacity:0,strokeNoScale:!0},P.lineStyle)})),p.updateProps(B,{shape:{parentPoint:[M.x,M.y],childPoints:W},style:{opacity:1}},_)}F.add(B)}function E(_,T,w,O,I,R){for(var M=_.tree.getNodeByDataIndex(T),F=_.tree.root,P=M.getModel(),R=v(M,P,R),X=M.parentNode===F?M:M.parentNode||M,B=R.edgeShape,j;j=X.getLayout(),j==null;)X=X.parentNode===F?X:X.parentNode||X;p.updateProps(w,{position:[j.x+1,j.y+1]},I,function(){O.remove(w),_.setItemGraphicEl(T,null)}),w.fadeOut(null,{keepLabel:!0});var W=_.getItemGraphicEl(X.dataIndex),z=W.__edge,V=w.__edge||(X.isExpand===!1||X.children.length===1?z:void 0),B=R.edgeShape;V&&(B==="curve"?p.updateProps(V,{shape:C(R,j,j),style:{opacity:0}},I,function(){O.remove(V)}):B==="polyline"&&R.layout==="orthogonal"&&p.updateProps(V,{shape:{parentPoint:[j.x,j.y],childPoints:[[j.x,j.y]]},style:{opacity:0}},I,function(){O.remove(V)}))}function C(_,T,w){var O,I,R,M,F=_.orient,P,X,B,j;if(_.layout==="radial"){P=T.rawX,B=T.rawY,X=w.rawX,j=w.rawY;var W=m(P,B),z=m(P,B+(j-B)*_.curvature),V=m(X,j+(B-j)*_.curvature),Q=m(X,j);return{x1:W.x,y1:W.y,x2:Q.x,y2:Q.y,cpx1:z.x,cpy1:z.y,cpx2:V.x,cpy2:V.y}}else P=T.x,B=T.y,X=w.x,j=w.y,(F==="LR"||F==="RL")&&(O=P+(X-P)*_.curvature,I=B,R=X+(P-X)*_.curvature,M=j),(F==="TB"||F==="BT")&&(O=P,I=B+(j-B)*_.curvature,R=X,M=j+(B-j)*_.curvature);return{x1:P,y1:B,x2:X,y2:j,cpx1:O,cpy1:I,cpx2:R,cpy2:M}}k.exports=d},bQjk:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("OLod"))})(this,function(y){return function(p){var x=y,A=x.lib,m=A.CipherParams,f=x.enc,h=f.Hex,u=x.format,a=u.Hex={stringify:function(t){return t.ciphertext.toString(h)},parse:function(t){var o=h.parse(t);return m.create({ciphertext:o})}}}(),y.format.Hex})},bT9E:function(k,D,n){"use strict";n.d(D,"a",function(){return p});var y=n("VTBJ");function p(x,A){var m=Object(y.a)({},x);return Array.isArray(A)&&A.forEach(function(f){delete m[f]}),m}},bU0H:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("kRqF"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},bX4T:function(k,D,n){"use strict";n.d(D,"a",function(){return u});var y=n("VTBJ"),p=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,x=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,A="".concat(p," ").concat(x).split(/[\s\n]+/),m="aria-",f="data-";function h(a,i){return a.indexOf(i)===0}function u(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t;i===!1?t={aria:!0,data:!0,attr:!0}:i===!0?t={aria:!0}:t=Object(y.a)({},i);var o={};return Object.keys(a).forEach(function(e){(t.aria&&(e==="role"||h(e,m))||t.data&&h(e,f)||t.attr&&A.includes(e))&&(o[e]=a[e])}),o}},bYtY:function(k,D){var n={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},y={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},p=Object.prototype.toString,x=Array.prototype,A=x.forEach,m=x.filter,f=x.slice,h=x.map,u=x.reduce,a={};function i(Oe,oe){Oe==="createCanvas"&&(c=null),a[Oe]=oe}function t(Oe){if(Oe==null||typeof Oe!="object")return Oe;var oe=Oe,st=p.call(Oe);if(st==="[object Array]"){if(!ke(Oe)){oe=[];for(var he=0,J=Oe.length;he<J;he++)oe[he]=t(Oe[he])}}else if(y[st]){if(!ke(Oe)){var Y=Oe.constructor;if(Oe.constructor.from)oe=Y.from(Oe);else{oe=new Y(Oe.length);for(var he=0,J=Oe.length;he<J;he++)oe[he]=t(Oe[he])}}}else if(!n[st]&&!ke(Oe)&&!j(Oe)){oe={};for(var $ in Oe)Oe.hasOwnProperty($)&&(oe[$]=t(Oe[$]))}return oe}function o(Oe,oe,st){if(!P(oe)||!P(Oe))return st?t(oe):Oe;for(var he in oe)if(oe.hasOwnProperty(he)){var J=Oe[he],Y=oe[he];P(Y)&&P(J)&&!R(Y)&&!R(J)&&!j(Y)&&!j(J)&&!X(Y)&&!X(J)&&!ke(Y)&&!ke(J)?o(J,Y,st):(st||!(he in Oe))&&(Oe[he]=t(oe[he],!0))}return Oe}function e(Oe,oe){for(var st=Oe[0],he=1,J=Oe.length;he<J;he++)st=o(st,Oe[he],oe);return st}function l(Oe,oe){for(var st in oe)oe.hasOwnProperty(st)&&(Oe[st]=oe[st]);return Oe}function r(Oe,oe,st){for(var he in oe)oe.hasOwnProperty(he)&&(st?oe[he]!=null:Oe[he]==null)&&(Oe[he]=oe[he]);return Oe}var s=function(){return a.createCanvas()};a.createCanvas=function(){return document.createElement("canvas")};var c;function d(){return c||(c=s().getContext("2d")),c}function g(Oe,oe){if(Oe){if(Oe.indexOf)return Oe.indexOf(oe);for(var st=0,he=Oe.length;st<he;st++)if(Oe[st]===oe)return st}return-1}function v(Oe,oe){var st=Oe.prototype;function he(){}he.prototype=oe.prototype,Oe.prototype=new he;for(var J in st)st.hasOwnProperty(J)&&(Oe.prototype[J]=st[J]);Oe.prototype.constructor=Oe,Oe.superClass=oe}function b(Oe,oe,st){Oe="prototype"in Oe?Oe.prototype:Oe,oe="prototype"in oe?oe.prototype:oe,r(Oe,oe,st)}function S(Oe){return Oe?typeof Oe=="string"?!1:typeof Oe.length=="number":void 0}function E(Oe,oe,st){if(!(Oe&&oe))return;if(Oe.forEach&&Oe.forEach===A)Oe.forEach(oe,st);else if(Oe.length===+Oe.length)for(var he=0,J=Oe.length;he<J;he++)oe.call(st,Oe[he],he,Oe);else for(var Y in Oe)Oe.hasOwnProperty(Y)&&oe.call(st,Oe[Y],Y,Oe)}function C(Oe,oe,st){if(!(Oe&&oe))return;if(Oe.map&&Oe.map===h)return Oe.map(oe,st);for(var he=[],J=0,Y=Oe.length;J<Y;J++)he.push(oe.call(st,Oe[J],J,Oe));return he}function _(Oe,oe,st,he){if(!(Oe&&oe))return;if(Oe.reduce&&Oe.reduce===u)return Oe.reduce(oe,st,he);for(var J=0,Y=Oe.length;J<Y;J++)st=oe.call(he,st,Oe[J],J,Oe);return st}function T(Oe,oe,st){if(!(Oe&&oe))return;if(Oe.filter&&Oe.filter===m)return Oe.filter(oe,st);for(var he=[],J=0,Y=Oe.length;J<Y;J++)oe.call(st,Oe[J],J,Oe)&&he.push(Oe[J]);return he}function w(Oe,oe,st){if(!(Oe&&oe))return;for(var he=0,J=Oe.length;he<J;he++)if(oe.call(st,Oe[he],he,Oe))return Oe[he]}function O(Oe,oe){var st=f.call(arguments,2);return function(){return Oe.apply(oe,st.concat(f.call(arguments)))}}function I(Oe){var oe=f.call(arguments,1);return function(){return Oe.apply(this,oe.concat(f.call(arguments)))}}function R(Oe){return p.call(Oe)==="[object Array]"}function M(Oe){return typeof Oe=="function"}function F(Oe){return p.call(Oe)==="[object String]"}function P(Oe){var oe=typeof Oe;return oe==="function"||!!Oe&&oe==="object"}function X(Oe){return!!n[p.call(Oe)]}function B(Oe){return!!y[p.call(Oe)]}function j(Oe){return typeof Oe=="object"&&typeof Oe.nodeType=="number"&&typeof Oe.ownerDocument=="object"}function W(Oe){return Oe!==Oe}function z(Oe){for(var oe=0,st=arguments.length;oe<st;oe++)if(arguments[oe]!=null)return arguments[oe]}function V(Oe,oe){return Oe!=null?Oe:oe}function Q(Oe,oe,st){return Oe!=null?Oe:oe!=null?oe:st}function G(){return Function.call.apply(f,arguments)}function ee(Oe){if(typeof Oe=="number")return[Oe,Oe,Oe,Oe];var oe=Oe.length;return oe===2?[Oe[0],Oe[1],Oe[0],Oe[1]]:oe===3?[Oe[0],Oe[1],Oe[2],Oe[1]]:Oe}function ce(Oe,oe){if(!Oe)throw new Error(oe)}function be(Oe){return Oe==null?null:typeof Oe.trim=="function"?Oe.trim():Oe.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var le="__ec_primitive__";function Ie(Oe){Oe[le]=!0}function ke(Oe){return Oe[le]}function Re(Oe){var oe=R(Oe);this.data={};var st=this;Oe instanceof Re?Oe.each(he):Oe&&E(Oe,he);function he(J,Y){oe?st.set(J,Y):st.set(Y,J)}}Re.prototype={constructor:Re,get:function(oe){return this.data.hasOwnProperty(oe)?this.data[oe]:null},set:function(oe,st){return this.data[oe]=st},each:function(oe,st){st!==void 0&&(oe=O(oe,st));for(var he in this.data)this.data.hasOwnProperty(he)&&oe(this.data[he],he)},removeKey:function(oe){delete this.data[oe]}};function Qe(Oe){return new Re(Oe)}function We(Oe,oe){for(var st=new Oe.constructor(Oe.length+oe.length),he=0;he<Oe.length;he++)st[he]=Oe[he];var J=Oe.length;for(he=0;he<oe.length;he++)st[he+J]=oe[he];return st}function ot(){}D.$override=i,D.clone=t,D.merge=o,D.mergeAll=e,D.extend=l,D.defaults=r,D.createCanvas=s,D.getContext=d,D.indexOf=g,D.inherits=v,D.mixin=b,D.isArrayLike=S,D.each=E,D.map=C,D.reduce=_,D.filter=T,D.find=w,D.bind=O,D.curry=I,D.isArray=R,D.isFunction=M,D.isString=F,D.isObject=P,D.isBuiltInObject=X,D.isTypedArray=B,D.isDom=j,D.eqNaN=W,D.retrieve=z,D.retrieve2=V,D.retrieve3=Q,D.slice=G,D.normalizeCssArray=ee,D.assert=ce,D.trim=be,D.setAsPrimitive=Ie,D.isPrimitive=ke,D.createHashMap=Qe,D.concatArray=We,D.noop=ot},bZqE:function(k,D){function n(p,x,A){for(var m=[p],f=[],h;h=m.pop();)if(f.push(h),h.isExpand){var u=h.children;if(u.length)for(var a=0;a<u.length;a++)m.push(u[a])}for(;h=f.pop();)x(h,A)}function y(p,x){for(var A=[p],m;m=A.pop();)if(x(m),m.isExpand){var f=m.children;if(f.length)for(var h=f.length-1;h>=0;h--)A.push(f[h])}}D.eachAfter=n,D.eachBefore=y},bahg:function(k,D){function n(y){return y.split("")}k.exports=n},bbsP:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("CWI+"),A=n.n(x)},blIg:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("8IMR")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="StarFilled";var i=A.forwardRef(a);D.default=i},bogI:function(k,D,n){"use strict";n.d(D,"a",function(){return y});var y=function(x){if(!x)return null;var A=typeof x=="function";return A?x():x}},bsht:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};D.default=y},bx4M:function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),A=n.n(x),m=n("q1tI"),f=n("TSYQ"),h=n.n(f),u=n("BGR+"),a=n("H84U"),i=function(C,_){var T={};for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&_.indexOf(w)<0&&(T[w]=C[w]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,w=Object.getOwnPropertySymbols(C);O<w.length;O++)_.indexOf(w[O])<0&&Object.prototype.propertyIsEnumerable.call(C,w[O])&&(T[w[O]]=C[w[O]]);return T},t=function(_){return m.createElement(a.a,null,function(T){var w=T.getPrefixCls,O=_.prefixCls,I=_.className,R=_.hoverable,M=R===void 0?!0:R,F=i(_,["prefixCls","className","hoverable"]),P=w("card",O),X=h()("".concat(P,"-grid"),I,p()({},"".concat(P,"-grid-hoverable"),M));return m.createElement("div",A()({},F,{className:X}))})},o=t,e=function(C,_){var T={};for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&_.indexOf(w)<0&&(T[w]=C[w]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,w=Object.getOwnPropertySymbols(C);O<w.length;O++)_.indexOf(w[O])<0&&Object.prototype.propertyIsEnumerable.call(C,w[O])&&(T[w[O]]=C[w[O]]);return T},l=function(_){return m.createElement(a.a,null,function(T){var w=T.getPrefixCls,O=_.prefixCls,I=_.className,R=_.avatar,M=_.title,F=_.description,P=e(_,["prefixCls","className","avatar","title","description"]),X=w("card",O),B=h()("".concat(X,"-meta"),I),j=R?m.createElement("div",{className:"".concat(X,"-meta-avatar")},R):null,W=M?m.createElement("div",{className:"".concat(X,"-meta-title")},M):null,z=F?m.createElement("div",{className:"".concat(X,"-meta-description")},F):null,V=W||z?m.createElement("div",{className:"".concat(X,"-meta-detail")},W,z):null;return m.createElement("div",A()({},P,{className:B}),j,V)})},r=l,s=n("ZTPi"),c=n("BMrR"),d=n("kPKH"),g=n("3Nzz"),v=function(C,_){var T={};for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&_.indexOf(w)<0&&(T[w]=C[w]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,w=Object.getOwnPropertySymbols(C);O<w.length;O++)_.indexOf(w[O])<0&&Object.prototype.propertyIsEnumerable.call(C,w[O])&&(T[w[O]]=C[w[O]]);return T};function b(C){var _=C.map(function(T,w){return m.createElement("li",{style:{width:"".concat(100/C.length,"%")},key:"action-".concat(w)},m.createElement("span",null,T))});return _}var S=function(_){var T,w,O=m.useContext(a.b),I=O.getPrefixCls,R=O.direction,M=m.useContext(g.b),F=function(dr){_.onTabChange&&_.onTabChange(dr)},P=function(){var dr;return m.Children.forEach(_.children,function(zt){zt&&zt.type&&zt.type===o&&(dr=!0)}),dr},X=_.prefixCls,B=_.className,j=_.extra,W=_.headStyle,z=W===void 0?{}:W,V=_.bodyStyle,Q=V===void 0?{}:V,G=_.title,ee=_.loading,ce=_.bordered,be=ce===void 0?!0:ce,le=_.size,Ie=_.type,ke=_.cover,Re=_.actions,Qe=_.tabList,We=_.children,ot=_.activeTabKey,Oe=_.defaultActiveTabKey,oe=_.tabBarExtraContent,st=_.hoverable,he=_.tabProps,J=he===void 0?{}:he,Y=v(_,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),$=I("card",X),fe=Q.padding===0||Q.padding==="0px"?{padding:24}:void 0,we=m.createElement("div",{className:"".concat($,"-loading-block")}),Ne=m.createElement("div",{className:"".concat($,"-loading-content"),style:fe},m.createElement(c.a,{gutter:8},m.createElement(d.a,{span:22},we)),m.createElement(c.a,{gutter:8},m.createElement(d.a,{span:8},we),m.createElement(d.a,{span:15},we)),m.createElement(c.a,{gutter:8},m.createElement(d.a,{span:6},we),m.createElement(d.a,{span:18},we)),m.createElement(c.a,{gutter:8},m.createElement(d.a,{span:13},we),m.createElement(d.a,{span:9},we)),m.createElement(c.a,{gutter:8},m.createElement(d.a,{span:4},we),m.createElement(d.a,{span:3},we),m.createElement(d.a,{span:16},we))),Ee=ot!==void 0,de=A()(A()({},J),(T={},p()(T,Ee?"activeKey":"defaultActiveKey",Ee?ot:Oe),p()(T,"tabBarExtraContent",oe),T)),me,Le=Qe&&Qe.length?m.createElement(s.a,A()({size:"large"},de,{className:"".concat($,"-head-tabs"),onChange:F}),Qe.map(function(Gt){return m.createElement(s.a.TabPane,{tab:Gt.tab,disabled:Gt.disabled,key:Gt.key})})):null;(G||j||Le)&&(me=m.createElement("div",{className:"".concat($,"-head"),style:z},m.createElement("div",{className:"".concat($,"-head-wrapper")},G&&m.createElement("div",{className:"".concat($,"-head-title")},G),j&&m.createElement("div",{className:"".concat($,"-extra")},j)),Le));var tt=ke?m.createElement("div",{className:"".concat($,"-cover")},ke):null,At=m.createElement("div",{className:"".concat($,"-body"),style:Q},ee?Ne:We),ht=Re&&Re.length?m.createElement("ul",{className:"".concat($,"-actions")},b(Re)):null,Ke=Object(u.default)(Y,["onTabChange"]),Jt=le||M,ct=h()($,B,(w={},p()(w,"".concat($,"-loading"),ee),p()(w,"".concat($,"-bordered"),be),p()(w,"".concat($,"-hoverable"),st),p()(w,"".concat($,"-contain-grid"),P()),p()(w,"".concat($,"-contain-tabs"),Qe&&Qe.length),p()(w,"".concat($,"-").concat(Jt),Jt),p()(w,"".concat($,"-type-").concat(Ie),!!Ie),p()(w,"".concat($,"-rtl"),R==="rtl"),w));return m.createElement("div",A()({},Ke,{className:ct}),me,tt,At,ht)};S.Grid=o,S.Meta=r;var E=D.a=S},c2i1:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=n("Yl7c"),m=A.enableClassCheck;function f(e){return"_EC_"+e}var h=function(e){this._directed=e||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},u=h.prototype;u.type="graph",u.isDirected=function(){return this._directed},u.addNode=function(e,l){e=e==null?""+l:""+e;var r=this._nodesMap;if(r[f(e)])return;var s=new a(e,l);return s.hostGraph=this,this.nodes.push(s),r[f(e)]=s,s},u.getNodeByIndex=function(e){var l=this.data.getRawIndex(e);return this.nodes[l]},u.getNodeById=function(e){return this._nodesMap[f(e)]},u.addEdge=function(e,l,r){var s=this._nodesMap,c=this._edgesMap;if(typeof e=="number"&&(e=this.nodes[e]),typeof l=="number"&&(l=this.nodes[l]),a.isInstance(e)||(e=s[f(e)]),a.isInstance(l)||(l=s[f(l)]),!e||!l)return;var d=e.id+"-"+l.id;if(c[d])return;var g=new i(e,l,r);return g.hostGraph=this,this._directed&&(e.outEdges.push(g),l.inEdges.push(g)),e.edges.push(g),e!==l&&l.edges.push(g),this.edges.push(g),c[d]=g,g},u.getEdgeByIndex=function(e){var l=this.edgeData.getRawIndex(e);return this.edges[l]},u.getEdge=function(e,l){a.isInstance(e)&&(e=e.id),a.isInstance(l)&&(l=l.id);var r=this._edgesMap;return this._directed?r[e+"-"+l]:r[e+"-"+l]||r[l+"-"+e]},u.eachNode=function(e,l){for(var r=this.nodes,s=r.length,c=0;c<s;c++)r[c].dataIndex>=0&&e.call(l,r[c],c)},u.eachEdge=function(e,l){for(var r=this.edges,s=r.length,c=0;c<s;c++)r[c].dataIndex>=0&&r[c].node1.dataIndex>=0&&r[c].node2.dataIndex>=0&&e.call(l,r[c],c)},u.breadthFirstTraverse=function(e,l,r,s){if(a.isInstance(l)||(l=this._nodesMap[f(l)]),!l)return;for(var c=r==="out"?"outEdges":r==="in"?"inEdges":"edges",d=0;d<this.nodes.length;d++)this.nodes[d].__visited=!1;if(e.call(s,l,null))return;for(var g=[l];g.length;)for(var v=g.shift(),b=v[c],d=0;d<b.length;d++){var S=b[d],E=S.node1===v?S.node2:S.node1;if(!E.__visited){if(e.call(s,E,v))return;g.push(E),E.__visited=!0}}},u.update=function(){for(var e=this.data,l=this.edgeData,r=this.nodes,s=this.edges,c=0,d=r.length;c<d;c++)r[c].dataIndex=-1;for(var c=0,d=e.count();c<d;c++)r[e.getRawIndex(c)].dataIndex=c;l.filterSelf(function(g){var v=s[l.getRawIndex(g)];return v.node1.dataIndex>=0&&v.node2.dataIndex>=0});for(var c=0,d=s.length;c<d;c++)s[c].dataIndex=-1;for(var c=0,d=l.count();c<d;c++)s[l.getRawIndex(c)].dataIndex=c},u.clone=function(){for(var e=new h(this._directed),l=this.nodes,r=this.edges,s=0;s<l.length;s++)e.addNode(l[s].id,l[s].dataIndex);for(var s=0;s<r.length;s++){var c=r[s];e.addEdge(c.node1.id,c.node2.id,c.dataIndex)}return e};function a(e,l){this.id=e==null?"":e,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=l==null?-1:l}a.prototype={constructor:a,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(e){if(this.dataIndex<0)return;var l=this.hostGraph,r=l.data.getItemModel(this.dataIndex);return r.getModel(e)}};function i(e,l,r){this.node1=e,this.node2=l,this.dataIndex=r==null?-1:r}i.prototype.getModel=function(e){if(this.dataIndex<0)return;var l=this.hostGraph,r=l.edgeData.getItemModel(this.dataIndex);return r.getModel(e)};var t=function(e,l){return{getValue:function(r){var s=this[e][l];return s.get(s.getDimension(r||"value"),this.dataIndex)},setVisual:function(r,s){this.dataIndex>=0&&this[e][l].setItemVisual(this.dataIndex,r,s)},getVisual:function(r,s){return this[e][l].getItemVisual(this.dataIndex,r,s)},setLayout:function(r,s){this.dataIndex>=0&&this[e][l].setItemLayout(this.dataIndex,r,s)},getLayout:function(){return this[e][l].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][l].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][l].getRawIndex(this.dataIndex)}}};x.mixin(a,t("hostGraph","data")),x.mixin(i,t("hostGraph","edgeData")),h.Node=a,h.Edge=i,m(a),m(i);var o=h;k.exports=o},c3jg:function(k,D,n){"use strict";n.d(D,"e",function(){return h}),n.d(D,"c",function(){return a}),n.d(D,"d",function(){return i}),n.d(D,"a",function(){return o}),n.d(D,"f",function(){return e}),n.d(D,"b",function(){return l});var y=n("KQm4"),p=n("VTBJ"),x=n("Ff2n"),A=n("Zm9Q"),m=n("Kwbf"),f=n("wPhX");function h(r,s){return r!=null?r:s}function u(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=new Map;function c(d){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(d||[]).forEach(function(v){var b=v.key,S=v.children;Object(m.a)(b!=null,"Tree node must have a certain key: [".concat(g).concat(b,"]"));var E=String(b);Object(m.a)(!s.has(E)||b===null||b===void 0,"Same 'key' exist in the Tree: ".concat(E)),s.set(E,!0),c(S,"".concat(g).concat(E," > "))})}c(r)}function a(r){function s(c){var d=Object(A.a)(c);return d.map(function(g){if(!Object(f.i)(g))return Object(m.a)(!g,"Tree/TreeNode can only accept TreeNode as children."),null;var v=g.key,b=g.props,S=b.children,E=Object(x.a)(b,["children"]),C=Object(p.a)({key:v},E),_=s(S);return _.length&&(C.children=_),C}).filter(function(g){return g})}return s(r)}function i(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],c=new Set(s===!0?[]:s),d=[];function g(v){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return v.map(function(S,E){var C=Object(f.h)(b?b.pos:"0",E),_=h(S.key,C),T=Object(p.a)(Object(p.a)({},S),{},{parent:b,pos:C,children:null,data:S,isStart:[].concat(Object(y.a)(b?b.isStart:[]),[E===0]),isEnd:[].concat(Object(y.a)(b?b.isEnd:[]),[E===v.length-1])});return d.push(T),s===!0||c.has(_)?T.children=g(S.children||[],T):T.children=[],T})}return g(r),d}function t(r,s,c){var d;c?typeof c=="string"?d=function(b){return b[c]}:typeof c=="function"&&(d=function(b){return c(b)}):d=function(b,S){return h(b.key,S)};function g(v,b,S){var E=v?v.children:r,C=v?Object(f.h)(S.pos,b):"0";if(v){var _=d(v,C),T={node:v,index:b,pos:C,key:_,parentPos:S.node?S.pos:null,level:S.level+1};s(T)}E&&E.forEach(function(w,O){g(w,O,{node:v,pos:C,level:S?S.level+1:-1})})}g(null)}function o(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=s.initWrapper,d=s.processEntity,g=s.onProcessFinished,v=arguments.length>2?arguments[2]:void 0,b={},S={},E={posEntities:b,keyEntities:S};return c&&(E=c(E)||E),t(r,function(C){var _=C.node,T=C.index,w=C.pos,O=C.key,I=C.parentPos,R=C.level,M={node:_,index:T,key:O,pos:w,level:R},F=h(O,w);b[w]=M,S[F]=M,M.parent=b[I],M.parent&&(M.parent.children=M.parent.children||[],M.parent.children.push(M)),d&&d(M,E)},v),g&&g(E),E}function e(r,s){var c=s.expandedKeys,d=s.selectedKeys,g=s.loadedKeys,v=s.loadingKeys,b=s.checkedKeys,S=s.halfCheckedKeys,E=s.dragOverNodeKey,C=s.dropPosition,_=s.keyEntities,T=_[r],w={eventKey:r,expanded:c.indexOf(r)!==-1,selected:d.indexOf(r)!==-1,loaded:g.indexOf(r)!==-1,loading:v.indexOf(r)!==-1,checked:b.indexOf(r)!==-1,halfChecked:S.indexOf(r)!==-1,pos:String(T?T.pos:""),dragOver:E===r&&C===0,dragOverGapTop:E===r&&C===-1,dragOverGapBottom:E===r&&C===1};return w}function l(r){var s=r.data,c=r.expanded,d=r.selected,g=r.checked,v=r.loaded,b=r.loading,S=r.halfChecked,E=r.dragOver,C=r.dragOverGapTop,_=r.dragOverGapBottom,T=r.pos,w=r.active,O=Object(p.a)(Object(p.a)({},s),{},{expanded:c,selected:d,checked:g,loaded:v,loading:b,halfChecked:S,dragOver:E,dragOverGapTop:C,dragOverGapBottom:_,pos:T,active:w});return"props"in O||Object.defineProperty(O,"props",{get:function(){return Object(m.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),r}}),O}},c5Ni:function(k,D,n){},c5fP:function(k,D,n){"use strict";function y(ct){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(dr){return typeof dr}:y=function(dr){return dr&&typeof Symbol=="function"&&dr.constructor===Symbol&&dr!==Symbol.prototype?"symbol":typeof dr},y(ct)}Object.defineProperty(D,"__esModule",{value:!0}),D._tr_init=tt,D._tr_stored_block=At,D._tr_flush_block=Ke,D._tr_tally=Jt,D._tr_align=ht;var p=A(n("6BzB"));function x(){if(typeof WeakMap!="function")return null;var ct=new WeakMap;return x=function(){return ct},ct}function A(ct){if(ct&&ct.__esModule)return ct;if(ct===null||y(ct)!=="object"&&typeof ct!="function")return{default:ct};var Gt=x();if(Gt&&Gt.has(ct))return Gt.get(ct);var dr={},zt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var kt in ct)if(Object.prototype.hasOwnProperty.call(ct,kt)){var Vt=zt?Object.getOwnPropertyDescriptor(ct,kt):null;Vt&&(Vt.get||Vt.set)?Object.defineProperty(dr,kt,Vt):dr[kt]=ct[kt]}return dr.default=ct,Gt&&Gt.set(ct,dr),dr}var m=4,f=0,h=1,u=2;function a(ct){for(var Gt=ct.length;--Gt>=0;)ct[Gt]=0}var i=0,t=1,o=2,e=3,l=258,r=29,s=256,c=s+1+r,d=30,g=19,v=2*c+1,b=15,S=16,E=7,C=256,_=16,T=17,w=18,O=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],I=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],F=512,P=new Array((c+2)*2);a(P);var X=new Array(d*2);a(X);var B=new Array(F);a(B);var j=new Array(l-e+1);a(j);var W=new Array(r);a(W);var z=new Array(d);a(z);function V(ct,Gt,dr,zt,kt){this.static_tree=ct,this.extra_bits=Gt,this.extra_base=dr,this.elems=zt,this.max_length=kt,this.has_stree=ct&&ct.length}var Q,G,ee;function ce(ct,Gt){this.dyn_tree=ct,this.max_code=0,this.stat_desc=Gt}function be(ct){return ct<256?B[ct]:B[256+(ct>>>7)]}function le(ct,Gt){ct.pending_buf[ct.pending++]=Gt&255,ct.pending_buf[ct.pending++]=Gt>>>8&255}function Ie(ct,Gt,dr){ct.bi_valid>S-dr?(ct.bi_buf|=Gt<<ct.bi_valid&65535,le(ct,ct.bi_buf),ct.bi_buf=Gt>>S-ct.bi_valid,ct.bi_valid+=dr-S):(ct.bi_buf|=Gt<<ct.bi_valid&65535,ct.bi_valid+=dr)}function ke(ct,Gt,dr){Ie(ct,dr[Gt*2],dr[Gt*2+1])}function Re(ct,Gt){var dr=0;do dr|=ct&1,ct>>>=1,dr<<=1;while(--Gt>0);return dr>>>1}function Qe(ct){ct.bi_valid===16?(le(ct,ct.bi_buf),ct.bi_buf=0,ct.bi_valid=0):ct.bi_valid>=8&&(ct.pending_buf[ct.pending++]=ct.bi_buf&255,ct.bi_buf>>=8,ct.bi_valid-=8)}function We(ct,Gt){var dr=Gt.dyn_tree,zt=Gt.max_code,kt=Gt.stat_desc.static_tree,Vt=Gt.stat_desc.has_stree,Xe=Gt.stat_desc.extra_bits,pe=Gt.stat_desc.extra_base,te=Gt.stat_desc.max_length,$e,He,ae,ft,Mt,mt,or=0;for(ft=0;ft<=b;ft++)ct.bl_count[ft]=0;for(dr[ct.heap[ct.heap_max]*2+1]=0,$e=ct.heap_max+1;$e<v;$e++){if(He=ct.heap[$e],ft=dr[dr[He*2+1]*2+1]+1,ft>te&&(ft=te,or++),dr[He*2+1]=ft,He>zt)continue;ct.bl_count[ft]++,Mt=0,He>=pe&&(Mt=Xe[He-pe]),mt=dr[He*2],ct.opt_len+=mt*(ft+Mt),Vt&&(ct.static_len+=mt*(kt[He*2+1]+Mt))}if(or===0)return;do{for(ft=te-1;ct.bl_count[ft]===0;)ft--;ct.bl_count[ft]--,ct.bl_count[ft+1]+=2,ct.bl_count[te]--,or-=2}while(or>0);for(ft=te;ft!==0;ft--)for(He=ct.bl_count[ft];He!==0;){if(ae=ct.heap[--$e],ae>zt)continue;dr[ae*2+1]!==ft&&(ct.opt_len+=(ft-dr[ae*2+1])*dr[ae*2],dr[ae*2+1]=ft),He--}}function ot(ct,Gt,dr){var zt=new Array(b+1),kt=0,Vt,Xe;for(Vt=1;Vt<=b;Vt++)zt[Vt]=kt=kt+dr[Vt-1]<<1;for(Xe=0;Xe<=Gt;Xe++){var pe=ct[Xe*2+1];if(pe===0)continue;ct[Xe*2]=Re(zt[pe]++,pe)}}function Oe(){var ct,Gt,dr,zt,kt,Vt=new Array(b+1);for(dr=0,zt=0;zt<r-1;zt++)for(W[zt]=dr,ct=0;ct<1<<O[zt];ct++)j[dr++]=zt;for(j[dr-1]=zt,kt=0,zt=0;zt<16;zt++)for(z[zt]=kt,ct=0;ct<1<<I[zt];ct++)B[kt++]=zt;for(kt>>=7;zt<d;zt++)for(z[zt]=kt<<7,ct=0;ct<1<<I[zt]-7;ct++)B[256+kt++]=zt;for(Gt=0;Gt<=b;Gt++)Vt[Gt]=0;for(ct=0;ct<=143;)P[ct*2+1]=8,ct++,Vt[8]++;for(;ct<=255;)P[ct*2+1]=9,ct++,Vt[9]++;for(;ct<=279;)P[ct*2+1]=7,ct++,Vt[7]++;for(;ct<=287;)P[ct*2+1]=8,ct++,Vt[8]++;for(ot(P,c+1,Vt),ct=0;ct<d;ct++)X[ct*2+1]=5,X[ct*2]=Re(ct,5);Q=new V(P,O,s+1,c,b),G=new V(X,I,0,d,b),ee=new V(new Array(0),R,0,g,E)}function oe(ct){var Gt;for(Gt=0;Gt<c;Gt++)ct.dyn_ltree[Gt*2]=0;for(Gt=0;Gt<d;Gt++)ct.dyn_dtree[Gt*2]=0;for(Gt=0;Gt<g;Gt++)ct.bl_tree[Gt*2]=0;ct.dyn_ltree[C*2]=1,ct.opt_len=ct.static_len=0,ct.last_lit=ct.matches=0}function st(ct){ct.bi_valid>8?le(ct,ct.bi_buf):ct.bi_valid>0&&(ct.pending_buf[ct.pending++]=ct.bi_buf),ct.bi_buf=0,ct.bi_valid=0}function he(ct,Gt,dr,zt){st(ct),zt&&(le(ct,dr),le(ct,~dr)),p.arraySet(ct.pending_buf,ct.window,Gt,dr,ct.pending),ct.pending+=dr}function J(ct,Gt,dr,zt){var kt=Gt*2,Vt=dr*2;return ct[kt]<ct[Vt]||ct[kt]===ct[Vt]&&zt[Gt]<=zt[dr]}function Y(ct,Gt,dr){for(var zt=ct.heap[dr],kt=dr<<1;kt<=ct.heap_len&&!(kt<ct.heap_len&&J(Gt,ct.heap[kt+1],ct.heap[kt],ct.depth)&&kt++,J(Gt,zt,ct.heap[kt],ct.depth));)ct.heap[dr]=ct.heap[kt],dr=kt,kt<<=1;ct.heap[dr]=zt}function $(ct,Gt,dr){var zt,kt,Vt=0,Xe,pe;if(ct.last_lit!==0)do zt=ct.pending_buf[ct.d_buf+Vt*2]<<8|ct.pending_buf[ct.d_buf+Vt*2+1],kt=ct.pending_buf[ct.l_buf+Vt],Vt++,zt===0?ke(ct,kt,Gt):(Xe=j[kt],ke(ct,Xe+s+1,Gt),pe=O[Xe],pe!==0&&(kt-=W[Xe],Ie(ct,kt,pe)),zt--,Xe=be(zt),ke(ct,Xe,dr),pe=I[Xe],pe!==0&&(zt-=z[Xe],Ie(ct,zt,pe)));while(Vt<ct.last_lit);ke(ct,C,Gt)}function fe(ct,Gt){var dr=Gt.dyn_tree,zt=Gt.stat_desc.static_tree,kt=Gt.stat_desc.has_stree,Vt=Gt.stat_desc.elems,Xe,pe,te=-1,$e;for(ct.heap_len=0,ct.heap_max=v,Xe=0;Xe<Vt;Xe++)dr[Xe*2]!==0?(ct.heap[++ct.heap_len]=te=Xe,ct.depth[Xe]=0):dr[Xe*2+1]=0;for(;ct.heap_len<2;)$e=ct.heap[++ct.heap_len]=te<2?++te:0,dr[$e*2]=1,ct.depth[$e]=0,ct.opt_len--,kt&&(ct.static_len-=zt[$e*2+1]);for(Gt.max_code=te,Xe=ct.heap_len>>1;Xe>=1;Xe--)Y(ct,dr,Xe);$e=Vt;do Xe=ct.heap[1],ct.heap[1]=ct.heap[ct.heap_len--],Y(ct,dr,1),pe=ct.heap[1],ct.heap[--ct.heap_max]=Xe,ct.heap[--ct.heap_max]=pe,dr[$e*2]=dr[Xe*2]+dr[pe*2],ct.depth[$e]=(ct.depth[Xe]>=ct.depth[pe]?ct.depth[Xe]:ct.depth[pe])+1,dr[Xe*2+1]=dr[pe*2+1]=$e,ct.heap[1]=$e++,Y(ct,dr,1);while(ct.heap_len>=2);ct.heap[--ct.heap_max]=ct.heap[1],We(ct,Gt),ot(dr,te,ct.bl_count)}function we(ct,Gt,dr){var zt,kt=-1,Vt,Xe=Gt[0*2+1],pe=0,te=7,$e=4;for(Xe===0&&(te=138,$e=3),Gt[(dr+1)*2+1]=65535,zt=0;zt<=dr;zt++){if(Vt=Xe,Xe=Gt[(zt+1)*2+1],++pe<te&&Vt===Xe)continue;pe<$e?ct.bl_tree[Vt*2]+=pe:Vt!==0?(Vt!==kt&&ct.bl_tree[Vt*2]++,ct.bl_tree[_*2]++):pe<=10?ct.bl_tree[T*2]++:ct.bl_tree[w*2]++,pe=0,kt=Vt,Xe===0?(te=138,$e=3):Vt===Xe?(te=6,$e=3):(te=7,$e=4)}}function Ne(ct,Gt,dr){var zt,kt=-1,Vt,Xe=Gt[0*2+1],pe=0,te=7,$e=4;for(Xe===0&&(te=138,$e=3),zt=0;zt<=dr;zt++){if(Vt=Xe,Xe=Gt[(zt+1)*2+1],++pe<te&&Vt===Xe)continue;if(pe<$e)do ke(ct,Vt,ct.bl_tree);while(--pe!==0);else Vt!==0?(Vt!==kt&&(ke(ct,Vt,ct.bl_tree),pe--),ke(ct,_,ct.bl_tree),Ie(ct,pe-3,2)):pe<=10?(ke(ct,T,ct.bl_tree),Ie(ct,pe-3,3)):(ke(ct,w,ct.bl_tree),Ie(ct,pe-11,7));pe=0,kt=Vt,Xe===0?(te=138,$e=3):Vt===Xe?(te=6,$e=3):(te=7,$e=4)}}function Ee(ct){var Gt;for(we(ct,ct.dyn_ltree,ct.l_desc.max_code),we(ct,ct.dyn_dtree,ct.d_desc.max_code),fe(ct,ct.bl_desc),Gt=g-1;Gt>=3&&!(ct.bl_tree[M[Gt]*2+1]!==0);Gt--);return ct.opt_len+=3*(Gt+1)+5+5+4,Gt}function de(ct,Gt,dr,zt){var kt;for(Ie(ct,Gt-257,5),Ie(ct,dr-1,5),Ie(ct,zt-4,4),kt=0;kt<zt;kt++)Ie(ct,ct.bl_tree[M[kt]*2+1],3);Ne(ct,ct.dyn_ltree,Gt-1),Ne(ct,ct.dyn_dtree,dr-1)}function me(ct){var Gt=4093624447,dr;for(dr=0;dr<=31;dr++,Gt>>>=1)if(Gt&1&&ct.dyn_ltree[dr*2]!==0)return f;if(ct.dyn_ltree[9*2]!==0||ct.dyn_ltree[10*2]!==0||ct.dyn_ltree[13*2]!==0)return h;for(dr=32;dr<s;dr++)if(ct.dyn_ltree[dr*2]!==0)return h;return f}var Le=!1;function tt(ct){Le||(Oe(),Le=!0),ct.l_desc=new ce(ct.dyn_ltree,Q),ct.d_desc=new ce(ct.dyn_dtree,G),ct.bl_desc=new ce(ct.bl_tree,ee),ct.bi_buf=0,ct.bi_valid=0,oe(ct)}function At(ct,Gt,dr,zt){Ie(ct,(i<<1)+(zt?1:0),3),he(ct,Gt,dr,!0)}function ht(ct){Ie(ct,t<<1,3),ke(ct,C,P),Qe(ct)}function Ke(ct,Gt,dr,zt){var kt,Vt,Xe=0;ct.level>0?(ct.strm.data_type===u&&(ct.strm.data_type=me(ct)),fe(ct,ct.l_desc),fe(ct,ct.d_desc),Xe=Ee(ct),kt=ct.opt_len+3+7>>>3,Vt=ct.static_len+3+7>>>3,Vt<=kt&&(kt=Vt)):kt=Vt=dr+5,dr+4<=kt&&Gt!==-1?At(ct,Gt,dr,zt):ct.strategy===m||Vt===kt?(Ie(ct,(t<<1)+(zt?1:0),3),$(ct,P,X)):(Ie(ct,(o<<1)+(zt?1:0),3),de(ct,ct.l_desc.max_code+1,ct.d_desc.max_code+1,Xe+1),$(ct,ct.dyn_ltree,ct.dyn_dtree)),oe(ct),zt&&st(ct)}function Jt(ct,Gt,dr){return ct.pending_buf[ct.d_buf+ct.last_lit*2]=Gt>>>8&255,ct.pending_buf[ct.d_buf+ct.last_lit*2+1]=Gt&255,ct.pending_buf[ct.l_buf+ct.last_lit]=dr&255,ct.last_lit++,Gt===0?ct.dyn_ltree[dr*2]++:(ct.matches++,Gt--,ct.dyn_ltree[(j[dr]+s+1)*2]++,ct.dyn_dtree[be(Gt)*2]++),ct.last_lit===ct.lit_bufsize-1}},c6wG:function(k,D,n){var y=n("dD9F"),p=n("sEf8"),x=n("mdPL"),A=x&&x.isTypedArray,m=A?p(A):y;k.exports=m},c8qY:function(k,D,n){var y=n("IwbS"),p=n("fls0");function x(o){this._ctor=o||p,this.group=new y.Group}var A=x.prototype;A.isPersistent=function(){return!0},A.updateData=function(o){var e=this,l=e.group,r=e._lineData;e._lineData=o,r||l.removeAll();var s=u(o);o.diff(r).add(function(c){m(e,o,c,s)}).update(function(c,d){f(e,r,o,d,c,s)}).remove(function(c){l.remove(r.getItemGraphicEl(c))}).execute()};function m(o,e,l,r){var s=e.getItemLayout(l);if(!i(s))return;var c=new o._ctor(e,l,r);e.setItemGraphicEl(l,c),o.group.add(c)}function f(o,e,l,r,s,c){var d=e.getItemGraphicEl(r);if(!i(l.getItemLayout(s))){o.group.remove(d);return}d?d.updateData(l,s,c):d=new o._ctor(l,s,c),l.setItemGraphicEl(s,d),o.group.add(d)}A.updateLayout=function(){var o=this._lineData;if(!o)return;o.eachItemGraphicEl(function(e,l){e.updateLayout(o,l)},this)},A.incrementalPrepareUpdate=function(o){this._seriesScope=u(o),this._lineData=null,this.group.removeAll()};function h(o){return o.animators&&o.animators.length>0}A.incrementalUpdate=function(o,e){function l(d){!d.isGroup&&!h(d)&&(d.incremental=d.useHoverLayer=!0)}for(var r=o.start;r<o.end;r++){var s=e.getItemLayout(r);if(i(s)){var c=new this._ctor(e,r,this._seriesScope);c.traverse(l),this.group.add(c),e.setItemGraphicEl(r,c)}}};function u(o){var e=o.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}A.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},A._clearIncremental=function(){var o=this._incremental;o&&o.clearDisplaybles()};function a(o){return isNaN(o[0])||isNaN(o[1])}function i(o){return!a(o[0])&&!a(o[1])}var t=x;k.exports=t},cCMj:function(k,D,n){var y=n("bYtY"),p={updateSelectedMap:function(x){this._targetList=y.isArray(x)?x.slice():[],this._selectTargetMap=y.reduce(x||[],function(A,m){return A.set(m.name,m),A},y.createHashMap())},select:function(x,A){var m=A!=null?this._targetList[A]:this._selectTargetMap.get(x),f=this.get("selectedMode");f==="single"&&this._selectTargetMap.each(function(h){h.selected=!1}),m&&(m.selected=!0)},unSelect:function(x,A){var m=A!=null?this._targetList[A]:this._selectTargetMap.get(x);m&&(m.selected=!1)},toggleSelected:function(x,A){var m=A!=null?this._targetList[A]:this._selectTargetMap.get(x);if(m!=null)return this[m.selected?"unSelect":"select"](x,A),m.selected},isSelected:function(x,A){var m=A!=null?this._targetList[A]:this._selectTargetMap.get(x);return m&&m.selected}};k.exports=p},cVA7:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=n("MT78"),p=m(y),x=n("t3Fx"),A=m(x);function m(i){return i&&i.__esModule?i:{default:i}}function f(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}function h(i,t){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:i}function u(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(i,t):i.__proto__=t)}var a=function(i){u(t,i);function t(o){f(this,t);var e=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o));return e.echartsLib=p.default,e}return t}(A.default);D.default=a},cWXX:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("oIFs"),A=n.n(x)},ca2m:function(k,D,n){var y=n("bYtY"),p={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},x={};x.categoryAxis=y.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},p),x.valueAxis=y.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},p),x.timeAxis=y.defaults({scale:!0,min:"dataMin",max:"dataMax"},x.valueAxis),x.logAxis=y.defaults({scale:!0,logBase:10},x.valueAxis);var A=x;k.exports=A},cbJ4:function(k,D,n){var y=n("bYtY"),p=y.createHashMap;function x(A){A.eachSeriesByType("themeRiver",function(m){var f=m.getData(),h=m.getRawData(),u=m.get("color"),a=p();f.each(function(i){a.set(f.getRawIndex(i),i)}),h.each(function(i){var t=h.getName(i),o=u[(m.nameMap.get(t)-1)%u.length];h.setItemVisual(i,"color",o);var e=a.get(i);e!=null&&f.setItemVisual(e,"color",o)})})}k.exports=x},chpo:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=1,p=function(){return"".concat(y++)};D.default=p},cpOr:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("T4UG"),A=n("YXkt"),m=n("bYtY"),f=m.concatArray,h=m.mergeAll,u=m.map,a=n("7aKB"),i=a.encodeHTML,t=n("IDmD"),o=typeof Uint32Array=="undefined"?Array:Uint32Array,e=typeof Float64Array=="undefined"?Array:Float64Array;function l(c){var d=c.data;d&&d[0]&&d[0][0]&&d[0][0].coord&&(c.data=u(d,function(g){var v=[g[0].coord,g[1].coord],b={coords:v};return g[0].name&&(b.fromName=g[0].name),g[1].name&&(b.toName=g[1].name),h([b,g[0],g[1]])}))}var r=x.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(c){c.data=c.data||[],l(c);var d=this._processFlatCoordsArray(c.data);this._flatCoords=d.flatCoords,this._flatCoordsOffset=d.flatCoordsOffset,d.flatCoords&&(c.data=new Float32Array(d.count)),r.superApply(this,"init",arguments)},mergeOption:function(c){if(c.data=c.data||[],l(c),c.data){var d=this._processFlatCoordsArray(c.data);this._flatCoords=d.flatCoords,this._flatCoordsOffset=d.flatCoordsOffset,d.flatCoords&&(c.data=new Float32Array(d.count))}r.superApply(this,"mergeOption",arguments)},appendData:function(c){var d=this._processFlatCoordsArray(c.data);d.flatCoords&&(this._flatCoords?(this._flatCoords=f(this._flatCoords,d.flatCoords),this._flatCoordsOffset=f(this._flatCoordsOffset,d.flatCoordsOffset)):(this._flatCoords=d.flatCoords,this._flatCoordsOffset=d.flatCoordsOffset),c.data=new Float32Array(d.count)),this.getRawData().appendData(c.data)},_getCoordsFromItemModel:function(c){var d=this.getData().getItemModel(c),g=d.option instanceof Array?d.option:d.getShallow("coords");return g},getLineCoordsCount:function(c){return this._flatCoordsOffset?this._flatCoordsOffset[c*2+1]:this._getCoordsFromItemModel(c).length},getLineCoords:function(c,d){if(this._flatCoordsOffset){for(var g=this._flatCoordsOffset[c*2],v=this._flatCoordsOffset[c*2+1],b=0;b<v;b++)d[b]=d[b]||[],d[b][0]=this._flatCoords[g+b*2],d[b][1]=this._flatCoords[g+b*2+1];return v}else{for(var S=this._getCoordsFromItemModel(c),b=0;b<S.length;b++)d[b]=d[b]||[],d[b][0]=S[b][0],d[b][1]=S[b][1];return S.length}},_processFlatCoordsArray:function(c){var d=0;if(this._flatCoords&&(d=this._flatCoords.length),typeof c[0]=="number"){for(var g=c.length,v=new o(g),b=new e(g),S=0,E=0,C=0,_=0;_<g;){C++;var T=c[_++];v[E++]=S+d,v[E++]=T;for(var w=0;w<T;w++){var O=c[_++],I=c[_++];b[S++]=O,b[S++]=I,_>g}}return{flatCoordsOffset:new Uint32Array(v.buffer,0,E),flatCoords:b,count:C}}return{flatCoordsOffset:null,flatCoords:null,count:c.length}},getInitialData:function(c,d){var g=new A(["value"],this);return g.hasItemOption=!1,g.initData(c.data,[],function(v,b,S,E){if(v instanceof Array)return NaN;g.hasItemOption=!0;var C=v.value;if(C!=null)return C instanceof Array?C[E]:C}),g},formatTooltip:function(c){var d=this.getData(),g=d.getItemModel(c),v=g.get("name");if(v)return v;var b=g.get("fromName"),S=g.get("toName"),E=[];return b!=null&&E.push(b),S!=null&&E.push(S),i(E.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var c=this.option.progressive;return c==null?this.option.large?1e4:this.get("progressive"):c},getProgressiveThreshold:function(){var c=this.option.progressiveThreshold;return c==null?this.option.large?2e4:this.get("progressiveThreshold"):c},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),s=r;k.exports=s},cpPs:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("rBdH"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},crZl:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("IwbS"),A=n("7aKB"),m=n("+TT/"),f=n("XxSj"),h=y.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(u,a){this.ecModel=u,this.api=a,this.visualMapModel},render:function(u,a,i,t){if(this.visualMapModel=u,u.get("show")===!1){this.group.removeAll();return}this.doRender.apply(this,arguments)},renderBackground:function(u){var a=this.visualMapModel,i=A.normalizeCssArray(a.get("padding")||0),t=u.getBoundingRect();u.add(new x.Rect({z2:-1,silent:!0,shape:{x:t.x-i[3],y:t.y-i[0],width:t.width+i[3]+i[1],height:t.height+i[0]+i[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},getControllerVisual:function(u,a,i){i=i||{};var t=i.forceState,o=this.visualMapModel,e={};if(a==="symbol"&&(e.symbol=o.get("itemSymbol")),a==="color"){var l=o.get("contentColor");e.color=l}function r(g){return e[g]}function s(g,v){e[g]=v}var c=o.controllerVisuals[t||o.getValueState(u)],d=f.prepareVisualTypes(c);return p.each(d,function(g){var v=c[g];i.convertOpacityToAlpha&&g==="opacity"&&(g="colorAlpha",v=c.__alphaForOpacity),f.dependsOn(g,a)&&(v&&v.applyVisual(u,r,s))}),e[a]},positionGroup:function(u){var a=this.visualMapModel,i=this.api;m.positionElement(u,a.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},doRender:p.noop});k.exports=h},crp1:function(k,D,n){"use strict";n.d(D,"b",function(){return Wt}),n.d(D,"a",function(){return Xn});var y={},p=function(Nt,bt,gr,Yt,Pt){var rr=y[bt]||(y[bt]=URL.createObjectURL(new Blob([Nt],{type:"text/javascript"}))),Rt=new Worker(rr);return Rt.onerror=function(qt){return Pt(qt.error,null)},Rt.onmessage=function(qt){return Pt(null,qt.data)},Rt.postMessage(gr,Yt),Rt},x=Uint8Array,A=Uint16Array,m=Uint32Array,f=new x([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),h=new x([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),u=new x([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(Nt,bt){for(var gr=new A(31),Yt=0;Yt<31;++Yt)gr[Yt]=bt+=1<<Nt[Yt-1];for(var Pt=new m(gr[30]),Yt=1;Yt<30;++Yt)for(var rr=gr[Yt];rr<gr[Yt+1];++rr)Pt[rr]=rr-gr[Yt]<<5|Yt;return[gr,Pt]},i=a(f,2),t=i[0],o=i[1];t[28]=258,o[258]=28;for(var e=a(h,0),l=e[0],r=e[1],s=new A(32768),c=0;c<32768;++c){var d=(c&43690)>>>1|(c&21845)<<1;d=(d&52428)>>>2|(d&13107)<<2,d=(d&61680)>>>4|(d&3855)<<4,s[c]=((d&65280)>>>8|(d&255)<<8)>>>1}for(var g=function(Nt,bt,gr){for(var Yt=Nt.length,Pt=0,rr=new A(bt);Pt<Yt;++Pt)++rr[Nt[Pt]-1];var Rt=new A(bt);for(Pt=0;Pt<bt;++Pt)Rt[Pt]=Rt[Pt-1]+rr[Pt-1]<<1;var qt;if(gr){qt=new A(1<<bt);var Yr=15-bt;for(Pt=0;Pt<Yt;++Pt)if(Nt[Pt])for(var Mr=Pt<<4|Nt[Pt],Dr=bt-Nt[Pt],un=Rt[Nt[Pt]-1]++<<Dr,wn=un|(1<<Dr)-1;un<=wn;++un)qt[s[un]>>>Yr]=Mr}else for(qt=new A(Yt),Pt=0;Pt<Yt;++Pt)qt[Pt]=s[Rt[Nt[Pt]-1]++]>>>15-Nt[Pt];return qt},v=new x(288),c=0;c<144;++c)v[c]=8;for(var c=144;c<256;++c)v[c]=9;for(var c=256;c<280;++c)v[c]=7;for(var c=280;c<288;++c)v[c]=8;for(var b=new x(32),c=0;c<32;++c)b[c]=5;var S=g(v,9,0),E=g(v,9,1),C=g(b,5,0),_=g(b,5,1),T=function(Nt){for(var bt=Nt[0],gr=1;gr<Nt.length;++gr)Nt[gr]>bt&&(bt=Nt[gr]);return bt},w=function(Nt,bt,gr){var Yt=bt/8>>0;return(Nt[Yt]|Nt[Yt+1]<<8)>>>(bt&7)&gr},O=function(Nt,bt){var gr=bt/8>>0;return(Nt[gr]|Nt[gr+1]<<8|Nt[gr+2]<<16)>>>(bt&7)},I=function(Nt){return(Nt/8>>0)+(Nt&7&&1)},R=function(Nt,bt,gr){(bt==null||bt<0)&&(bt=0),(gr==null||gr>Nt.length)&&(gr=Nt.length);var Yt=new(Nt instanceof A?A:Nt instanceof m?m:x)(gr-bt);return Yt.set(Nt.subarray(bt,gr)),Yt},M=function(Nt,bt,gr){var Yt=Nt.length,Pt=!bt||gr,rr=!gr||gr.i;gr||(gr={}),bt||(bt=new x(Yt*3));var Rt=function(zn){var Ht=bt.length;if(zn>Ht){var Tt=new x(Math.max(Ht*2,zn));Tt.set(bt),bt=Tt}},qt=gr.f||0,Yr=gr.p||0,Mr=gr.b||0,Dr=gr.l,un=gr.d,wn=gr.m,ai=gr.n,ei=Yt*8;do{if(!Dr){gr.f=qt=w(Nt,Yr,1);var gi=w(Nt,Yr+1,3);if(Yr+=3,gi)if(gi==1)Dr=E,un=_,wn=9,ai=5;else if(gi==2){var it=w(Nt,Yr,31)+257,Me=w(Nt,Yr+10,15)+4,je=it+w(Nt,Yr+5,31)+1;Yr+=14;for(var Ye=new x(je),rt=new x(19),qe=0;qe<Me;++qe)rt[u[qe]]=w(Nt,Yr+qe*3,7);Yr+=Me*3;var at=T(rt),St=(1<<at)-1;if(!rr&&Yr+je*(at+7)>ei)break;for(var gt=g(rt,at,1),qe=0;qe<je;){var hr=gt[w(Nt,Yr,St)];Yr+=hr&15;var Ii=hr>>>4;if(Ii<16)Ye[qe++]=Ii;else{var Qr=0,Xr=0;for(Ii==16?(Xr=3+w(Nt,Yr,3),Yr+=2,Qr=Ye[qe-1]):Ii==17?(Xr=3+w(Nt,Yr,7),Yr+=3):Ii==18&&(Xr=11+w(Nt,Yr,127),Yr+=7);Xr--;)Ye[qe++]=Qr}}var dn=Ye.subarray(0,it),mr=Ye.subarray(it);wn=T(dn),ai=T(mr),Dr=g(dn,wn,1),un=g(mr,ai,1)}else throw"invalid block type";else{var Ii=I(Yr)+4,ki=Nt[Ii-4]|Nt[Ii-3]<<8,Qi=Ii+ki;if(Qi>Yt){if(rr)throw"unexpected EOF";break}Pt&&Rt(Mr+ki),bt.set(Nt.subarray(Ii,Qi),Mr),gr.b=Mr+=ki,gr.p=Yr=Qi*8;continue}if(Yr>ei)throw"unexpected EOF"}Pt&&Rt(Mr+131072);for(var Kn=(1<<wn)-1,Rr=(1<<ai)-1,Rn=wn+ai+18;rr||Yr+Rn<ei;){var Qr=Dr[O(Nt,Yr)&Kn],An=Qr>>>4;if(Yr+=Qr&15,Yr>ei)throw"unexpected EOF";if(!Qr)throw"invalid length/literal";if(An<256)bt[Mr++]=An;else if(An==256){Dr=null;break}else{var Zr=An-254;if(An>264){var qe=An-257,hi=f[qe];Zr=w(Nt,Yr,(1<<hi)-1)+t[qe],Yr+=hi}var Mi=un[O(Nt,Yr)&Rr],Zi=Mi>>>4;if(!Mi)throw"invalid distance";Yr+=Mi&15;var mr=l[Zi];if(Zi>3){var hi=h[Zi];mr+=O(Nt,Yr)&(1<<hi)-1,Yr+=hi}if(Yr>ei)throw"unexpected EOF";Pt&&Rt(Mr+131072);for(var qr=Mr+Zr;Mr<qr;Mr+=4)bt[Mr]=bt[Mr-mr],bt[Mr+1]=bt[Mr+1-mr],bt[Mr+2]=bt[Mr+2-mr],bt[Mr+3]=bt[Mr+3-mr];Mr=qr}}gr.l=Dr,gr.p=Yr,gr.b=Mr,Dr&&(qt=1,gr.m=wn,gr.d=un,gr.n=ai)}while(!qt);return Mr==bt.length?bt:R(bt,0,Mr)},F=function(Nt,bt,gr){gr<<=bt&7;var Yt=bt/8>>0;Nt[Yt]|=gr,Nt[Yt+1]|=gr>>>8},P=function(Nt,bt,gr){gr<<=bt&7;var Yt=bt/8>>0;Nt[Yt]|=gr,Nt[Yt+1]|=gr>>>8,Nt[Yt+2]|=gr>>>16},X=function(Nt,bt){for(var gr=[],Yt=0;Yt<Nt.length;++Yt)Nt[Yt]&&gr.push({s:Yt,f:Nt[Yt]});var Pt=gr.length,rr=gr.slice();if(!Pt)return[new x(0),0];if(Pt==1){var Rt=new x(gr[0].s+1);return Rt[gr[0].s]=1,[Rt,1]}gr.sort(function(je,Ye){return je.f-Ye.f}),gr.push({s:-1,f:25001});var qt=gr[0],Yr=gr[1],Mr=0,Dr=1,un=2;for(gr[0]={s:-1,f:qt.f+Yr.f,l:qt,r:Yr};Dr!=Pt-1;)qt=gr[gr[Mr].f<gr[un].f?Mr++:un++],Yr=gr[Mr!=Dr&&gr[Mr].f<gr[un].f?Mr++:un++],gr[Dr++]={s:-1,f:qt.f+Yr.f,l:qt,r:Yr};for(var wn=rr[0].s,Yt=1;Yt<Pt;++Yt)rr[Yt].s>wn&&(wn=rr[Yt].s);var ai=new A(wn+1),ei=B(gr[Dr-1],ai,0);if(ei>bt){var Yt=0,gi=0,Ii=ei-bt,ki=1<<Ii;for(rr.sort(function(Ye,rt){return ai[rt.s]-ai[Ye.s]||Ye.f-rt.f});Yt<Pt;++Yt){var Qi=rr[Yt].s;if(ai[Qi]>bt)gi+=ki-(1<<ei-ai[Qi]),ai[Qi]=bt;else break}for(gi>>>=Ii;gi>0;){var it=rr[Yt].s;ai[it]<bt?gi-=1<<bt-ai[it]++-1:++Yt}for(;Yt>=0&&gi;--Yt){var Me=rr[Yt].s;ai[Me]==bt&&(--ai[Me],++gi)}ei=bt}return[new x(ai),ei]},B=function ur(Nt,bt,gr){return Nt.s==-1?Math.max(ur(Nt.l,bt,gr+1),ur(Nt.r,bt,gr+1)):bt[Nt.s]=gr},j=function(Nt){for(var bt=Nt.length;bt&&!Nt[--bt];);for(var gr=new A(++bt),Yt=0,Pt=Nt[0],rr=1,Rt=function(Mr){gr[Yt++]=Mr},qt=1;qt<=bt;++qt)if(Nt[qt]==Pt&&qt!=bt)++rr;else{if(!Pt&&rr>2){for(;rr>138;rr-=138)Rt(32754);rr>2&&(Rt(rr>10?rr-11<<5|28690:rr-3<<5|12305),rr=0)}else if(rr>3){for(Rt(Pt),--rr;rr>6;rr-=6)Rt(8304);rr>2&&(Rt(rr-3<<5|8208),rr=0)}for(;rr--;)Rt(Pt);rr=1,Pt=Nt[qt]}return[gr.subarray(0,Yt),bt]},W=function(Nt,bt){for(var gr=0,Yt=0;Yt<bt.length;++Yt)gr+=Nt[Yt]*bt[Yt];return gr},z=function(Nt,bt,gr){var Yt=gr.length,Pt=I(bt+2);Nt[Pt]=Yt&255,Nt[Pt+1]=Yt>>>8,Nt[Pt+2]=Nt[Pt]^255,Nt[Pt+3]=Nt[Pt+1]^255;for(var rr=0;rr<Yt;++rr)Nt[Pt+rr+4]=gr[rr];return(Pt+4+Yt)*8},V=function(Nt,bt,gr,Yt,Pt,rr,Rt,qt,Yr,Mr,Dr){F(bt,Dr++,gr),++Pt[256];for(var un=X(Pt,15),wn=un[0],ai=un[1],ei=X(rr,15),gi=ei[0],Ii=ei[1],ki=j(wn),Qi=ki[0],it=ki[1],Me=j(gi),je=Me[0],Ye=Me[1],rt=new A(19),qe=0;qe<Qi.length;++qe)rt[Qi[qe]&31]++;for(var qe=0;qe<je.length;++qe)rt[je[qe]&31]++;for(var at=X(rt,7),St=at[0],gt=at[1],hr=19;hr>4&&!St[u[hr-1]];--hr);var Qr=Mr+5<<3,Xr=W(Pt,v)+W(rr,b)+Rt,dn=W(Pt,wn)+W(rr,gi)+Rt+14+3*hr+W(rt,St)+(2*rt[16]+3*rt[17]+7*rt[18]);if(Qr<=Xr&&Qr<=dn)return z(bt,Dr,Nt.subarray(Yr,Yr+Mr));var mr,Kn,Rr,Rn;if(F(bt,Dr,1+(dn<Xr)),Dr+=2,dn<Xr){mr=g(wn,ai,0),Kn=wn,Rr=g(gi,Ii,0),Rn=gi;var An=g(St,gt,0);F(bt,Dr,it-257),F(bt,Dr+5,Ye-1),F(bt,Dr+10,hr-4),Dr+=14;for(var qe=0;qe<hr;++qe)F(bt,Dr+3*qe,St[u[qe]]);Dr+=3*hr;for(var Zr=[Qi,je],hi=0;hi<2;++hi)for(var Mi=Zr[hi],qe=0;qe<Mi.length;++qe){var Zi=Mi[qe]&31;F(bt,Dr,An[Zi]),Dr+=St[Zi],Zi>15&&(F(bt,Dr,Mi[qe]>>>5&127),Dr+=Mi[qe]>>>12)}}else mr=S,Kn=v,Rr=C,Rn=b;for(var qe=0;qe<qt;++qe)if(Yt[qe]>255){var Zi=Yt[qe]>>>18&31;P(bt,Dr,mr[Zi+257]),Dr+=Kn[Zi+257],Zi>7&&(F(bt,Dr,Yt[qe]>>>23&31),Dr+=f[Zi]);var qr=Yt[qe]&31;P(bt,Dr,Rr[qr]),Dr+=Rn[qr],qr>3&&(P(bt,Dr,Yt[qe]>>>5&8191),Dr+=h[qr])}else P(bt,Dr,mr[Yt[qe]]),Dr+=Kn[Yt[qe]];return P(bt,Dr,mr[256]),Dr+Kn[256]},Q=new m([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),G=new x(0),ee=function(Nt,bt,gr,Yt,Pt,rr){var Rt=Nt.length,qt=new x(Yt+Rt+5*(1+Math.floor(Rt/7e3))+Pt),Yr=qt.subarray(Yt,qt.length-Pt),Mr=0;if(!bt||Rt<8)for(var Dr=0;Dr<=Rt;Dr+=65535){var un=Dr+65535;un<Rt?Mr=z(Yr,Mr,Nt.subarray(Dr,un)):(Yr[Dr]=rr,Mr=z(Yr,Mr,Nt.subarray(Dr,Rt)))}else{for(var wn=Q[bt-1],ai=wn>>>13,ei=wn&8191,gi=(1<<gr)-1,Ii=new A(32768),ki=new A(gi+1),Qi=Math.ceil(gr/3),it=2*Qi,Me=function(pr){return(Nt[pr]^Nt[pr+1]<<Qi^Nt[pr+2]<<it)&gi},je=new m(25e3),Ye=new A(288),rt=new A(32),qe=0,at=0,Dr=0,St=0,gt=0,hr=0;Dr<Rt;++Dr){var Qr=Me(Dr),Xr=Dr&32767,dn=ki[Qr];if(Ii[Xr]=dn,ki[Qr]=Xr,gt<=Dr){var mr=Rt-Dr;if((qe>7e3||St>24576)&&mr>423){Mr=V(Nt,Yr,0,je,Ye,rt,at,St,hr,Dr-hr,Mr),St=qe=at=0,hr=Dr;for(var Kn=0;Kn<286;++Kn)Ye[Kn]=0;for(var Kn=0;Kn<30;++Kn)rt[Kn]=0}var Rr=2,Rn=0,An=ei,Zr=Xr-dn&32767;if(mr>2&&Qr==Me(Dr-Zr))for(var hi=Math.min(ai,mr)-1,Mi=Math.min(32767,Dr),Zi=Math.min(258,mr);Zr<=Mi&&--An&&Xr!=dn;){if(Nt[Dr+Rr]==Nt[Dr+Rr-Zr]){for(var qr=0;qr<Zi&&Nt[Dr+qr]==Nt[Dr+qr-Zr];++qr);if(qr>Rr){if(Rr=qr,Rn=Zr,qr>hi)break;for(var xn=Math.min(Zr,qr-2),zn=0,Kn=0;Kn<xn;++Kn){var Ht=Dr-Zr+Kn+32768&32767,Tt=Ii[Ht],Dt=Ht-Tt+32768&32767;Dt>zn&&(zn=Dt,dn=Ht)}}}Xr=dn,dn=Ii[Xr],Zr+=Xr-dn+32768&32767}if(Rn){je[St++]=268435456|o[Rr]<<18|r[Rn];var Bt=o[Rr]&31,jt=r[Rn]&31;at+=f[Bt]+h[jt],++Ye[257+Bt],++rt[jt],gt=Dr+Rr,++qe}else je[St++]=Nt[Dr],++Ye[Nt[Dr]]}}Mr=V(Nt,Yr,rr,je,Ye,rt,at,St,hr,Dr-hr,Mr),rr||(Mr=z(Yr,Mr,G))}return R(qt,0,Yt+I(Mr)+Pt)},ce=function(){for(var ur=new m(256),Nt=0;Nt<256;++Nt){for(var bt=Nt,gr=9;--gr;)bt=(bt&1&&3988292384)^bt>>>1;ur[Nt]=bt}return ur}(),be=function(){var Nt=4294967295;return{p:function(gr){for(var Yt=Nt,Pt=0;Pt<gr.length;++Pt)Yt=ce[Yt&255^gr[Pt]]^Yt>>>8;Nt=Yt},d:function(){return Nt^4294967295}}},le=function(){var Nt=1,bt=0;return{p:function(Yt){for(var Pt=Nt,rr=bt,Rt=Yt.length,qt=0;qt!=Rt;){for(var Yr=Math.min(qt+5552,Rt);qt<Yr;++qt)Pt+=Yt[qt],rr+=Pt;Pt%=65521,rr%=65521}Nt=Pt,bt=rr},d:function(){return(Nt>>>8<<16|(bt&255)<<8|bt>>>8)+((Nt&255)<<23)*2}}},Ie=function(Nt,bt,gr,Yt,Pt){return ee(Nt,bt.level==null?6:bt.level,bt.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(Nt.length)))*1.5):12+bt.mem,gr,Yt,!Pt)},ke=function(Nt,bt){var gr={};for(var Yt in Nt)gr[Yt]=Nt[Yt];for(var Yt in bt)gr[Yt]=bt[Yt];return gr},Re=function(Nt,bt,gr){for(var Yt=Nt(),Pt=Nt.toString(),rr=Pt.slice(Pt.indexOf("[")+1,Pt.lastIndexOf("]")).replace(/ /g,"").split(","),Rt=0;Rt<Yt.length;++Rt){var qt=Yt[Rt],Yr=rr[Rt];if(typeof qt=="function"){bt+=";"+Yr+"=";var Mr=qt.toString();if(qt.prototype)if(Mr.indexOf("[native code]")!=-1){var Dr=Mr.indexOf(" ",8)+1;bt+=Mr.slice(Dr,Mr.indexOf("(",Dr))}else{bt+=Mr;for(var un in qt.prototype)bt+=";"+Yr+".prototype."+un+"="+qt.prototype[un].toString()}else bt+=Mr}else gr[Yr]=qt}return[bt,gr]},Qe=[],We=function(Nt){var bt=[];for(var gr in Nt)(Nt[gr]instanceof x||Nt[gr]instanceof A||Nt[gr]instanceof m)&&bt.push((Nt[gr]=new Nt[gr].constructor(Nt[gr])).buffer);return bt},ot=function(Nt,bt,gr,Yt){var Pt;if(!Qe[gr]){for(var rr="",Rt={},qt=Nt.length-1,Yr=0;Yr<qt;++Yr)Pt=Re(Nt[Yr],rr,Rt),rr=Pt[0],Rt=Pt[1];Qe[gr]=Re(Nt[qt],rr,Rt)}var Mr=ke({},Qe[gr][1]);return p(Qe[gr][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+bt.toString()+"}",gr,Mr,We(Mr),Yt)},Oe=function(){return[x,A,m,f,h,u,t,l,E,_,s,g,T,w,O,I,R,M,$e,$,fe]},oe=function(){return[x,A,m,f,h,u,o,r,S,v,C,b,s,Q,G,g,F,P,X,B,j,W,z,V,I,R,ee,Ie,Vt,$]},st=function(){return[tt,Ke,Le,be,ce]},he=function(){return[At,ht]},J=function(){return[Jt,Le,le]},Y=function(){return[ct]},$=function(Nt){return postMessage(Nt,[Nt.buffer])},fe=function(Nt){return Nt&&Nt.size&&new x(Nt.size)},we=function(Nt,bt,gr,Yt,Pt,rr){var Rt=ot(gr,Yt,Pt,function(qt,Yr){Rt.terminate(),rr(qt,Yr)});return bt.consume||(Nt=new x(Nt)),Rt.postMessage([Nt,bt],[Nt.buffer]),function(){Rt.terminate()}},Ne=function(Nt){return Nt.ondata=function(bt,gr){return postMessage([bt,gr],[bt.buffer])},function(bt){return Nt.push(bt.data[0],bt.data[1])}},Ee=function(Nt,bt,gr,Yt,Pt){var rr,Rt=ot(Nt,Yt,Pt,function(qt,Yr){qt?(Rt.terminate(),bt.ondata.call(bt,qt)):(Yr[1]&&Rt.terminate(),bt.ondata.call(bt,qt,Yr[0],Yr[1]))});Rt.postMessage(gr),bt.push=function(qt,Yr){if(rr)throw"stream finished";if(!bt.ondata)throw"no stream handler";Rt.postMessage([qt,rr=Yr],[qt.buffer])},bt.terminate=function(){Rt.terminate()}},de=function(Nt,bt){return Nt[bt]|Nt[bt+1]<<8},me=function(Nt,bt){return(Nt[bt]|Nt[bt+1]<<8|Nt[bt+2]<<16)+(Nt[bt+3]<<23)*2},Le=function(Nt,bt,gr){for(;gr;++bt)Nt[bt]=gr,gr>>>=8},tt=function(Nt,bt){var gr=bt.filename;if(Nt[0]=31,Nt[1]=139,Nt[2]=8,Nt[8]=bt.level<2?4:bt.level==9?2:0,Nt[9]=3,bt.mtime!=0&&Le(Nt,4,Math.floor(new Date(bt.mtime||Date.now())/1e3)),gr){Nt[3]=8;for(var Yt=0;Yt<=gr.length;++Yt)Nt[Yt+10]=gr.charCodeAt(Yt)}},At=function(Nt){if(Nt[0]!=31||Nt[1]!=139||Nt[2]!=8)throw"invalid gzip data";var bt=Nt[3],gr=10;bt&4&&(gr+=Nt[10]|(Nt[11]<<8)+2);for(var Yt=(bt>>3&1)+(bt>>4&1);Yt>0;Yt-=!Nt[gr++]);return gr+(bt&2)},ht=function(Nt){var bt=Nt.length;return(Nt[bt-4]|Nt[bt-3]<<8|Nt[bt-2]<<16)+2*(Nt[bt-1]<<23)},Ke=function(Nt){return 10+(Nt.filename&&Nt.filename.length+1||0)},Jt=function(Nt,bt){var gr=bt.level,Yt=gr==0?0:gr<6?1:gr==9?3:2;Nt[0]=120,Nt[1]=Yt<<6|(Yt?32-2*Yt:1)},ct=function(Nt){if((Nt[0]&15)!=8||Nt[0]>>>4>7||(Nt[0]<<8|Nt[1])%31)throw"invalid zlib data";if(Nt[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function Gt(ur,Nt){return!Nt&&typeof ur=="function"&&(Nt=ur,ur={}),this.ondata=Nt,ur}var dr=function(){function ur(Nt,bt){!bt&&typeof Nt=="function"&&(bt=Nt,Nt={}),this.ondata=bt,this.o=Nt||{}}return ur.prototype.p=function(Nt,bt){this.ondata(Ie(Nt,this.o,0,0,!bt),bt)},ur.prototype.push=function(Nt,bt){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=bt,this.p(Nt,bt||!1)},ur}(),zt=function(){function ur(Nt,bt){Ee([oe,function(){return[Ne,dr]}],this,Gt.call(this,Nt,bt),function(gr){var Yt=new dr(gr.data);onmessage=Ne(Yt)},6)}return ur}();function kt(ur,Nt,bt){if(bt||(bt=Nt,Nt={}),typeof bt!="function")throw"no callback";return we(ur,Nt,[oe],function(gr){return $(Vt(gr.data[0],gr.data[1]))},0,bt)}function Vt(ur,Nt){return Nt===void 0&&(Nt={}),Ie(ur,Nt,0,0)}var Xe=function(){function ur(Nt){this.s={},this.p=new x(0),this.ondata=Nt}return ur.prototype.e=function(Nt){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var bt=this.p.length,gr=new x(bt+Nt.length);gr.set(this.p),gr.set(Nt,bt),this.p=gr},ur.prototype.c=function(Nt){this.d=this.s.i=Nt||!1;var bt=this.s.b,gr=M(this.p,this.o,this.s);this.ondata(R(gr,bt,this.s.b),this.d),this.o=R(gr,this.s.b-32768),this.s.b=this.o.length,this.p=R(this.p,this.s.p/8>>0),this.s.p&=7},ur.prototype.push=function(Nt,bt){this.e(Nt),this.c(bt)},ur}(),pe=function(){function ur(Nt){this.ondata=Nt,Ee([Oe,function(){return[Ne,Xe]}],this,0,function(){var bt=new Xe;onmessage=Ne(bt)},7)}return ur}();function te(ur,Nt,bt){if(bt||(bt=Nt,Nt={}),typeof bt!="function")throw"no callback";return we(ur,Nt,[Oe],function(gr){return $($e(gr.data[0],fe(gr.data[1])))},1,bt)}function $e(ur,Nt){return M(ur,Nt)}var He=function(){function ur(Nt,bt){this.c=be(),this.l=0,this.v=1,dr.call(this,Nt,bt)}return ur.prototype.push=function(Nt,bt){dr.prototype.push.call(this,Nt,bt)},ur.prototype.p=function(Nt,bt){this.c.p(Nt),this.l+=Nt.length;var gr=Ie(Nt,this.o,this.v&&Ke(this.o),bt&&8,!bt);this.v&&(tt(gr,this.o),this.v=0),bt&&(Le(gr,gr.length-8,this.c.d()),Le(gr,gr.length-4,this.l)),this.ondata(gr,bt)},ur}(),ae=function(){function ur(Nt,bt){Ee([oe,st,function(){return[Ne,dr,He]}],this,Gt.call(this,Nt,bt),function(gr){var Yt=new He(gr.data);onmessage=Ne(Yt)},8)}return ur}();function ft(ur,Nt,bt){if(bt||(bt=Nt,Nt={}),typeof bt!="function")throw"no callback";return we(ur,Nt,[oe,st,function(){return[Mt]}],function(gr){return $(Mt(gr.data[0],gr.data[1]))},2,bt)}function Mt(ur,Nt){Nt===void 0&&(Nt={});var bt=be(),gr=ur.length;bt.p(ur);var Yt=Ie(ur,Nt,Ke(Nt),8),Pt=Yt.length;return tt(Yt,Nt),Le(Yt,Pt-8,bt.d()),Le(Yt,Pt-4,gr),Yt}var mt=function(){function ur(Nt){this.v=1,Xe.call(this,Nt)}return ur.prototype.push=function(Nt,bt){if(Xe.prototype.e.call(this,Nt),this.v){var gr=At(this.p);if(gr>=this.p.length&&!bt)return;this.p=this.p.subarray(gr),this.v=0}if(bt){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}Xe.prototype.c.call(this,bt)},ur}(),or=function(){function ur(Nt){this.ondata=Nt,Ee([Oe,he,function(){return[Ne,Xe,mt]}],this,0,function(){var bt=new mt;onmessage=Ne(bt)},9)}return ur}();function vr(ur,Nt,bt){if(bt||(bt=Nt,Nt={}),typeof bt!="function")throw"no callback";return we(ur,Nt,[Oe,he,function(){return[fn]}],function(gr){return $(fn(gr.data[0]))},3,bt)}function fn(ur,Nt){return M(ur.subarray(At(ur),-8),Nt||new x(ht(ur)))}var sr=function(){function ur(Nt,bt){this.c=le(),this.v=1,dr.call(this,Nt,bt)}return ur.prototype.push=function(Nt,bt){dr.prototype.push.call(this,Nt,bt)},ur.prototype.p=function(Nt,bt){this.c.p(Nt);var gr=Ie(Nt,this.o,this.v&&2,bt&&4,!bt);this.v&&(Jt(gr,this.o),this.v=0),bt&&Le(gr,gr.length-4,this.c.d()),this.ondata(gr,bt)},ur}(),Ir=function(){function ur(Nt,bt){Ee([oe,J,function(){return[Ne,dr,sr]}],this,Gt.call(this,Nt,bt),function(gr){var Yt=new sr(gr.data);onmessage=Ne(Yt)},10)}return ur}();function lr(ur,Nt,bt){if(bt||(bt=Nt,Nt={}),typeof bt!="function")throw"no callback";return we(ur,Nt,[oe,J,function(){return[Wt]}],function(gr){return $(Wt(gr.data[0],gr.data[1]))},4,bt)}function Wt(ur,Nt){Nt===void 0&&(Nt={});var bt=le();bt.p(ur);var gr=Ie(ur,Nt,2,4);return Jt(gr,Nt),Le(gr,gr.length-4,bt.d()),gr}var xt=function(){function ur(Nt){this.v=1,Xe.call(this,Nt)}return ur.prototype.push=function(Nt,bt){if(Xe.prototype.e.call(this,Nt),this.v){if(this.p.length<2&&!bt)return;this.p=this.p.subarray(2),this.v=0}if(bt){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}Xe.prototype.c.call(this,bt)},ur}(),rn=function(){function ur(Nt){this.ondata=Nt,Ee([Oe,Y,function(){return[Ne,Xe,xt]}],this,0,function(){var bt=new xt;onmessage=Ne(bt)},11)}return ur}();function Dn(ur,Nt,bt){if(bt||(bt=Nt,Nt={}),typeof bt!="function")throw"no callback";return we(ur,Nt,[Oe,Y,function(){return[Xn]}],function(gr){return $(Xn(gr.data[0],fe(gr.data[1])))},5,bt)}function Xn(ur,Nt){return M((ct(ur),ur.subarray(2,-4)),Nt)}var ri=function(){function ur(Nt){this.G=mt,this.I=Xe,this.Z=xt,this.ondata=Nt}return ur.prototype.push=function(Nt,bt){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(Nt,bt);else{if(this.p&&this.p.length){var gr=new x(this.p.length+Nt.length);gr.set(this.p),gr.set(Nt,this.p.length)}else this.p=Nt;if(this.p.length>2){var Yt=this,Pt=function(){Yt.ondata.apply(Yt,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(Pt):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(Pt):new this.Z(Pt),this.s.push(this.p,bt),this.p=null}}},ur}(),Ui=function(){function ur(Nt){this.G=or,this.I=pe,this.Z=rn,this.ondata=Nt}return ur.prototype.push=function(Nt,bt){ri.prototype.push.call(this,Nt,bt)},ur}();function Bn(ur,Nt,bt){if(bt||(bt=Nt,Nt={}),typeof bt!="function")throw"no callback";return ur[0]==31&&ur[1]==139&&ur[2]==8?vr(ur,Nt,bt):(ur[0]&15)!=8||ur[0]>>4>7||(ur[0]<<8|ur[1])%31?te(ur,Nt,bt):Dn(ur,Nt,bt)}function Jn(ur,Nt){return ur[0]==31&&ur[1]==139&&ur[2]==8?fn(ur,Nt):(ur[0]&15)!=8||ur[0]>>4>7||(ur[0]<<8|ur[1])%31?$e(ur,Nt):Xn(ur,Nt)}var Xt=function ur(Nt,bt,gr,Yt){for(var Pt in Nt){var rr=Nt[Pt],Rt=bt+Pt;rr instanceof x?gr[Rt]=[rr,Yt]:Array.isArray(rr)?gr[Rt]=[rr[0],ke(Yt,rr[1])]:ur(rr,Rt+"/",gr,Yt)}};function _t(ur,Nt){var bt=ur.length;if(!Nt&&typeof TextEncoder!="undefined")return new TextEncoder().encode(ur);for(var gr=new x(ur.length+(ur.length>>>1)),Yt=0,Pt=function(Mr){gr[Yt++]=Mr},rr=0;rr<bt;++rr){if(Yt+5>gr.length){var Rt=new x(Yt+8+(bt-rr<<1));Rt.set(gr),gr=Rt}var qt=ur.charCodeAt(rr);qt<128||Nt?Pt(qt):qt<2048?(Pt(192|qt>>>6),Pt(128|qt&63)):qt>55295&&qt<57344?(qt=65536+(qt&1023<<10)|ur.charCodeAt(++rr)&1023,Pt(240|qt>>>18),Pt(128|qt>>>12&63),Pt(128|qt>>>6&63),Pt(128|qt&63)):(Pt(224|qt>>>12),Pt(128|qt>>>6&63),Pt(128|qt&63))}return R(gr,0,Yt)}function Fe(ur,Nt){var bt="";if(!Nt&&typeof TextDecoder!="undefined")return new TextDecoder().decode(ur);for(var gr=0;gr<ur.length;){var Yt=ur[gr++];Yt<128||Nt?bt+=String.fromCharCode(Yt):Yt<224?bt+=String.fromCharCode((Yt&31)<<6|ur[gr++]&63):Yt<240?bt+=String.fromCharCode((Yt&15)<<12|(ur[gr++]&63)<<6|ur[gr++]&63):(Yt=((Yt&15)<<18|(ur[gr++]&63)<<12|(ur[gr++]&63)<<6|ur[gr++]&63)-65536,bt+=String.fromCharCode(55296|Yt>>10,56320|Yt&1023))}return bt}var Pe=function(Nt,bt){return bt+30+de(Nt,bt+26)+de(Nt,bt+28)},Be=function(Nt,bt,gr){var Yt=de(Nt,bt+28),Pt=Fe(Nt.subarray(bt+46,bt+46+Yt),!(de(Nt,bt+8)&2048)),rr=bt+46+Yt,Rt=gr?nt(Nt,rr):[me(Nt,bt+20),me(Nt,bt+24),me(Nt,bt+42)],qt=Rt[0],Yr=Rt[1],Mr=Rt[2];return[de(Nt,bt+10),qt,Yr,Pt,rr+de(Nt,bt+30)+de(Nt,bt+32),Mr]},nt=function(Nt,bt){for(;de(Nt,bt)!=1;bt+=4+de(Nt,bt+2));return[me(Nt,bt+12),me(Nt,bt+4),me(Nt,bt+20)]},vt=function(Nt,bt,gr,Yt,Pt,rr,Rt,qt,Yr,Mr){var Dr=rr.length,un=Yt.length;Le(Nt,bt,Yr!=null?33639248:67324752),bt+=4,Yr!=null&&(Nt[bt]=20,bt+=2),Nt[bt]=20,bt+=2,Nt[bt++]=Mr==8&&(qt.level==1?6:qt.level<6?4:qt.level==9?2:0),Nt[bt++]=Rt&&8,Nt[bt]=Mr,bt+=2;var wn=new Date(qt.mtime||Date.now()),ai=wn.getFullYear()-1980;if(ai<0||ai>119)throw"date not in range 1980-2099";Le(Nt,bt,(ai<<24)*2|wn.getMonth()+1<<21|wn.getDate()<<16|wn.getHours()<<11|wn.getMinutes()<<5|wn.getSeconds()>>>1),bt+=4,Le(Nt,bt,gr),Le(Nt,bt+4,un),Le(Nt,bt+8,Pt),Le(Nt,bt+12,Dr),bt+=16,Yr!=null&&(Le(Nt,bt+=10,Yr),bt+=4),Nt.set(rr,bt),bt+=Dr,Yr==null&&Nt.set(Yt,bt)},ar=function(Nt,bt,gr,Yt,Pt){Le(Nt,bt,101010256),Le(Nt,bt+8,gr),Le(Nt,bt+10,gr),Le(Nt,bt+12,Yt),Le(Nt,bt+16,Pt)};function kr(ur,Nt,bt){if(bt||(bt=Nt,Nt={}),typeof bt!="function")throw"no callback";var gr={};Xt(ur,"",gr,Nt);var Yt=Object.keys(gr),Pt=Yt.length,rr=0,Rt=0,qt=Pt,Yr=new Array(Pt),Mr=[],Dr=function(){for(var gi=0;gi<Mr.length;++gi)Mr[gi]()},un=function(){var gi=new x(Rt+22),Ii=rr,ki=Rt-rr;Rt=0;for(var Qi=0;Qi<qt;++Qi){var it=Yr[Qi];try{vt(gi,Rt,it.c,it.d,it.m,it.n,it.u,it.p,null,it.t),vt(gi,rr,it.c,it.d,it.m,it.n,it.u,it.p,Rt,it.t),rr+=46+it.n.length,Rt+=30+it.n.length+it.d.length}catch(Me){return bt(Me,null)}}ar(gi,rr,Yr.length,ki,Ii),bt(null,gi)};Pt||un();for(var wn=function(gi){var Ii=Yt[gi],ki=gr[Ii],Qi=ki[0],it=ki[1],Me=be(),je=Qi.length;Me.p(Qi);var Ye=_t(Ii),rt=Ye.length,qe=it.level==0?0:8,at=function(gt,hr){if(gt)Dr(),bt(gt,null);else{var Qr=hr.length;Yr[gi]={t:qe,d:hr,m:je,c:Me.d(),u:Ii.length!=Qr,n:Ye,p:it},rr+=30+rt+Qr,Rt+=76+2*rt+Qr,--Pt||un()}};if(Ye.length>65535&&at("filename too long",null),!qe)at(null,Qi);else if(je<16e4)try{at(null,Vt(Qi,it))}catch(St){at(St,null)}else Mr.push(kt(Qi,it,at))},ai=0;ai<qt;++ai)wn(ai);return Dr}function mn(ur,Nt){Nt===void 0&&(Nt={});var bt={},gr=[];Xt(ur,"",bt,Nt);var Yt=0,Pt=0;for(var rr in bt){var Rt=bt[rr],qt=Rt[0],Yr=Rt[1],Mr=Yr.level==0?0:8,Dr=_t(rr),un=Dr.length;if(Dr.length>65535)throw"filename too long";var wn=Mr?Vt(qt,Yr):qt,ai=wn.length,ei=be();ei.p(qt),gr.push({t:Mr,d:wn,m:qt.length,c:ei.d(),u:rr.length!=un,n:Dr,o:Yt,p:Yr}),Yt+=30+un+ai,Pt+=76+2*un+ai}for(var gi=new x(Pt+22),Ii=Yt,ki=Pt-Yt,Qi=0;Qi<gr.length;++Qi){var it=gr[Qi];vt(gi,it.o,it.c,it.d,it.m,it.n,it.u,it.p,null,it.t),vt(gi,Yt,it.c,it.d,it.m,it.n,it.u,it.p,it.o,it.t),Yt+=46+it.n.length}return ar(gi,Yt,gr.length,ki,Ii),gi}function Zn(ur,Nt){if(typeof Nt!="function")throw"no callback";for(var bt=[],gr=function(){for(var wn=0;wn<bt.length;++wn)bt[wn]()},Yt={},Pt=ur.length-22;me(ur,Pt)!=101010256;--Pt)if(!Pt||ur.length-Pt>65558){Nt("invalid zip file",null);return}var rr=de(ur,Pt+8);rr||Nt(null,{});var Rt=rr,qt=me(ur,Pt+16),Yr=qt==4294967295;if(Yr){if(Pt=me(ur,Pt-12),me(ur,Pt)!=101075792)throw"invalid zip file";Rt=rr=me(ur,Pt+32),qt=me(ur,Pt+48)}for(var Mr=function(wn){var ai=Be(ur,qt,Yr),ei=ai[0],gi=ai[1],Ii=ai[2],ki=ai[3],Qi=ai[4],it=ai[5],Me=Pe(ur,it);qt=Qi;var je=function(qe,at){qe?(gr(),Nt(qe,null)):(Yt[ki]=at,--rr||Nt(null,Yt))};if(!ei)je(null,R(ur,Me,Me+gi));else if(ei==8){var Ye=ur.subarray(Me,Me+gi);if(gi<32e4)try{je(null,$e(Ye,new x(Ii)))}catch(rt){je(rt,null)}else bt.push(te(Ye,{size:Ii},je))}else je("unknown compression type "+ei,null)},Dr=0;Dr<Rt;++Dr)Mr(Dr);return gr}function ni(ur){for(var Nt={},bt=ur.length-22;me(ur,bt)!=101010256;--bt)if(!bt||ur.length-bt>65558)throw"invalid zip file";var gr=de(ur,bt+8);if(!gr)return{};var Yt=me(ur,bt+16),Pt=Yt==4294967295;if(Pt){if(bt=me(ur,bt-12),me(ur,bt)!=101075792)throw"invalid zip file";gr=me(ur,bt+32),Yt=me(ur,bt+48)}for(var rr=0;rr<gr;++rr){var Rt=Be(ur,Yt,Pt),qt=Rt[0],Yr=Rt[1],Mr=Rt[2],Dr=Rt[3],un=Rt[4],wn=Rt[5],ai=Pe(ur,wn);if(Yt=un,!qt)Nt[Dr]=R(ur,ai,ai+Yr);else if(qt==8)Nt[Dr]=$e(ur.subarray(ai,ai+Yr),new x(Mr));else throw"unknown compression type "+qt}return Nt}},cv67:function(k,D,n){(function(y,p){k.exports=D=p(n("Ib8C"))})(this,function(y){return function(p){var x=y,A=x.lib,m=A.WordArray,f=A.Hasher,h=x.algo,u=[];(function(){for(var l=0;l<64;l++)u[l]=p.abs(p.sin(l+1))*4294967296|0})();var a=h.MD5=f.extend({_doReset:function(){this._hash=new m.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(r,s){for(var c=0;c<16;c++){var d=s+c,g=r[d];r[d]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}var v=this._hash.words,b=r[s+0],S=r[s+1],E=r[s+2],C=r[s+3],_=r[s+4],T=r[s+5],w=r[s+6],O=r[s+7],I=r[s+8],R=r[s+9],M=r[s+10],F=r[s+11],P=r[s+12],X=r[s+13],B=r[s+14],j=r[s+15],W=v[0],z=v[1],V=v[2],Q=v[3];W=i(W,z,V,Q,b,7,u[0]),Q=i(Q,W,z,V,S,12,u[1]),V=i(V,Q,W,z,E,17,u[2]),z=i(z,V,Q,W,C,22,u[3]),W=i(W,z,V,Q,_,7,u[4]),Q=i(Q,W,z,V,T,12,u[5]),V=i(V,Q,W,z,w,17,u[6]),z=i(z,V,Q,W,O,22,u[7]),W=i(W,z,V,Q,I,7,u[8]),Q=i(Q,W,z,V,R,12,u[9]),V=i(V,Q,W,z,M,17,u[10]),z=i(z,V,Q,W,F,22,u[11]),W=i(W,z,V,Q,P,7,u[12]),Q=i(Q,W,z,V,X,12,u[13]),V=i(V,Q,W,z,B,17,u[14]),z=i(z,V,Q,W,j,22,u[15]),W=t(W,z,V,Q,S,5,u[16]),Q=t(Q,W,z,V,w,9,u[17]),V=t(V,Q,W,z,F,14,u[18]),z=t(z,V,Q,W,b,20,u[19]),W=t(W,z,V,Q,T,5,u[20]),Q=t(Q,W,z,V,M,9,u[21]),V=t(V,Q,W,z,j,14,u[22]),z=t(z,V,Q,W,_,20,u[23]),W=t(W,z,V,Q,R,5,u[24]),Q=t(Q,W,z,V,B,9,u[25]),V=t(V,Q,W,z,C,14,u[26]),z=t(z,V,Q,W,I,20,u[27]),W=t(W,z,V,Q,X,5,u[28]),Q=t(Q,W,z,V,E,9,u[29]),V=t(V,Q,W,z,O,14,u[30]),z=t(z,V,Q,W,P,20,u[31]),W=o(W,z,V,Q,T,4,u[32]),Q=o(Q,W,z,V,I,11,u[33]),V=o(V,Q,W,z,F,16,u[34]),z=o(z,V,Q,W,B,23,u[35]),W=o(W,z,V,Q,S,4,u[36]),Q=o(Q,W,z,V,_,11,u[37]),V=o(V,Q,W,z,O,16,u[38]),z=o(z,V,Q,W,M,23,u[39]),W=o(W,z,V,Q,X,4,u[40]),Q=o(Q,W,z,V,b,11,u[41]),V=o(V,Q,W,z,C,16,u[42]),z=o(z,V,Q,W,w,23,u[43]),W=o(W,z,V,Q,R,4,u[44]),Q=o(Q,W,z,V,P,11,u[45]),V=o(V,Q,W,z,j,16,u[46]),z=o(z,V,Q,W,E,23,u[47]),W=e(W,z,V,Q,b,6,u[48]),Q=e(Q,W,z,V,O,10,u[49]),V=e(V,Q,W,z,B,15,u[50]),z=e(z,V,Q,W,T,21,u[51]),W=e(W,z,V,Q,P,6,u[52]),Q=e(Q,W,z,V,C,10,u[53]),V=e(V,Q,W,z,M,15,u[54]),z=e(z,V,Q,W,S,21,u[55]),W=e(W,z,V,Q,I,6,u[56]),Q=e(Q,W,z,V,j,10,u[57]),V=e(V,Q,W,z,w,15,u[58]),z=e(z,V,Q,W,X,21,u[59]),W=e(W,z,V,Q,_,6,u[60]),Q=e(Q,W,z,V,F,10,u[61]),V=e(V,Q,W,z,E,15,u[62]),z=e(z,V,Q,W,R,21,u[63]),v[0]=v[0]+W|0,v[1]=v[1]+z|0,v[2]=v[2]+V|0,v[3]=v[3]+Q|0},_doFinalize:function(){var r=this._data,s=r.words,c=this._nDataBytes*8,d=r.sigBytes*8;s[d>>>5]|=128<<24-d%32;var g=p.floor(c/4294967296),v=c;s[(d+64>>>9<<4)+15]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,s[(d+64>>>9<<4)+14]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,r.sigBytes=(s.length+1)*4,this._process();for(var b=this._hash,S=b.words,E=0;E<4;E++){var C=S[E];S[E]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}return b},clone:function(){var r=f.clone.call(this);return r._hash=this._hash.clone(),r}});function i(l,r,s,c,d,g,v){var b=l+(r&s|~r&c)+d+v;return(b<<g|b>>>32-g)+r}function t(l,r,s,c,d,g,v){var b=l+(r&c|s&~c)+d+v;return(b<<g|b>>>32-g)+r}function o(l,r,s,c,d,g,v){var b=l+(r^s^c)+d+v;return(b<<g|b>>>32-g)+r}function e(l,r,s,c,d,g,v){var b=l+(s^(r|~c))+d+v;return(b<<g|b>>>32-g)+r}x.MD5=f._createHelper(a),x.HmacMD5=f._createHmacHelper(a)}(Math),y.MD5})},czTT:function(k,D,n){},d4KN:function(k,D,n){var y=n("ProS"),p=n("bYtY");function x(A,m){p.each(m,function(f){f.update="updateView",y.registerAction(f,function(h,u){var a={};return u.eachComponent({mainType:"series",subType:A,query:h},function(i){i[f.method]&&i[f.method](h.name,h.dataIndex);var t=i.getData();t.each(function(o){var e=t.getName(o);a[e]=i.isSelected(e)||!1})}),{name:h.name,selected:a,seriesId:h.seriesId}})})}k.exports=x},dBmv:function(k,D,n){var y=n("ProS"),p=n("szbU");n("vF/C"),n("qwVE"),n("MHoB"),n("PNag"),n("1u/T"),y.registerPreprocessor(p)},dD9F:function(k,D,n){var y=n("NykK"),p=n("shjB"),x=n("ExA7"),A="[object Arguments]",m="[object Array]",f="[object Boolean]",h="[object Date]",u="[object Error]",a="[object Function]",i="[object Map]",t="[object Number]",o="[object Object]",e="[object RegExp]",l="[object Set]",r="[object String]",s="[object WeakMap]",c="[object ArrayBuffer]",d="[object DataView]",g="[object Float32Array]",v="[object Float64Array]",b="[object Int8Array]",S="[object Int16Array]",E="[object Int32Array]",C="[object Uint8Array]",_="[object Uint8ClampedArray]",T="[object Uint16Array]",w="[object Uint32Array]",O={};O[g]=O[v]=O[b]=O[S]=O[E]=O[C]=O[_]=O[T]=O[w]=!0,O[A]=O[m]=O[c]=O[f]=O[d]=O[h]=O[u]=O[a]=O[i]=O[t]=O[o]=O[e]=O[l]=O[r]=O[s]=!1;function I(R){return x(R)&&p(R.length)&&!!O[y(R)]}k.exports=I},"dF/Y":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="DownloadOutlined";var h=D.a=p.forwardRef(f)},dMvE:function(k,D){var n={linear:function(x){return x},quadraticIn:function(x){return x*x},quadraticOut:function(x){return x*(2-x)},quadraticInOut:function(x){return(x*=2)<1?.5*x*x:-.5*(--x*(x-2)-1)},cubicIn:function(x){return x*x*x},cubicOut:function(x){return--x*x*x+1},cubicInOut:function(x){return(x*=2)<1?.5*x*x*x:.5*((x-=2)*x*x+2)},quarticIn:function(x){return x*x*x*x},quarticOut:function(x){return 1- --x*x*x*x},quarticInOut:function(x){return(x*=2)<1?.5*x*x*x*x:-.5*((x-=2)*x*x*x-2)},quinticIn:function(x){return x*x*x*x*x},quinticOut:function(x){return--x*x*x*x*x+1},quinticInOut:function(x){return(x*=2)<1?.5*x*x*x*x*x:.5*((x-=2)*x*x*x*x+2)},sinusoidalIn:function(x){return 1-Math.cos(x*Math.PI/2)},sinusoidalOut:function(x){return Math.sin(x*Math.PI/2)},sinusoidalInOut:function(x){return .5*(1-Math.cos(Math.PI*x))},exponentialIn:function(x){return x===0?0:Math.pow(1024,x-1)},exponentialOut:function(x){return x===1?1:1-Math.pow(2,-10*x)},exponentialInOut:function(x){return x===0?0:x===1?1:(x*=2)<1?.5*Math.pow(1024,x-1):.5*(-Math.pow(2,-10*(x-1))+2)},circularIn:function(x){return 1-Math.sqrt(1-x*x)},circularOut:function(x){return Math.sqrt(1- --x*x)},circularInOut:function(x){return(x*=2)<1?-.5*(Math.sqrt(1-x*x)-1):.5*(Math.sqrt(1-(x-=2)*x)+1)},elasticIn:function(x){var A,m=.1,f=.4;return x===0?0:x===1?1:(!m||m<1?(m=1,A=f/4):A=f*Math.asin(1/m)/(2*Math.PI),-(m*Math.pow(2,10*(x-=1))*Math.sin((x-A)*(2*Math.PI)/f)))},elasticOut:function(x){var A,m=.1,f=.4;return x===0?0:x===1?1:(!m||m<1?(m=1,A=f/4):A=f*Math.asin(1/m)/(2*Math.PI),m*Math.pow(2,-10*x)*Math.sin((x-A)*(2*Math.PI)/f)+1)},elasticInOut:function(x){var A,m=.1,f=.4;return x===0?0:x===1?1:(!m||m<1?(m=1,A=f/4):A=f*Math.asin(1/m)/(2*Math.PI),(x*=2)<1?-.5*(m*Math.pow(2,10*(x-=1))*Math.sin((x-A)*(2*Math.PI)/f)):m*Math.pow(2,-10*(x-=1))*Math.sin((x-A)*(2*Math.PI)/f)*.5+1)},backIn:function(x){var A=1.70158;return x*x*((A+1)*x-A)},backOut:function(x){var A=1.70158;return--x*x*((A+1)*x+A)+1},backInOut:function(x){var A=1.70158*1.525;return(x*=2)<1?.5*(x*x*((A+1)*x-A)):.5*((x-=2)*x*((A+1)*x+A)+2)},bounceIn:function(x){return 1-n.bounceOut(1-x)},bounceOut:function(x){return x<1/2.75?7.5625*x*x:x<2/2.75?7.5625*(x-=1.5/2.75)*x+.75:x<2.5/2.75?7.5625*(x-=2.25/2.75)*x+.9375:7.5625*(x-=2.625/2.75)*x+.984375},bounceInOut:function(x){return x<.5?n.bounceIn(x*2)*.5:n.bounceOut(x*2-1)*.5+.5}},y=n;k.exports=y},diRs:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("q1tI"),A=n.n(x),m=n("3S7+"),f=n("H84U"),h=n("bogI"),u=function(i,t){var o={};for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&t.indexOf(e)<0&&(o[e]=i[e]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,e=Object.getOwnPropertySymbols(i);l<e.length;l++)t.indexOf(e[l])<0&&Object.prototype.propertyIsEnumerable.call(i,e[l])&&(o[e[l]]=i[e[l]]);return o},a=x.forwardRef(function(i,t){var o=i.prefixCls,e=i.title,l=i.content,r=u(i,["prefixCls","title","content"]),s=x.useContext(f.b),c=s.getPrefixCls,d=function(b){return x.createElement(x.Fragment,null,e&&x.createElement("div",{className:"".concat(b,"-title")},Object(h.a)(e)),x.createElement("div",{className:"".concat(b,"-inner-content")},Object(h.a)(l)))},g=c("popover",o);return x.createElement(m.a,p()({},r,{prefixCls:g,ref:t,overlay:d(g)}))});a.displayName="Popover",a.defaultProps={placement:"top",transitionName:"zoom-big",trigger:"hover",mouseEnterDelay:.1,mouseLeaveDelay:.1,overlayStyle:{}},D.a=a},digP:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:function(x,A){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:A}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:x}}]}},name:"file",theme:"twotone"};D.default=y},dm2S:function(k,D,n){"use strict";n.d(D,"a",function(){return A});var y=n("ODXe"),p=n("q1tI"),x=n.n(p);function A(m){var f=p.useRef(!1),h=p.useState(m),u=Object(y.a)(h,2),a=u[0],i=u[1];p.useEffect(function(){return f.current=!1,function(){f.current=!0}},[]);function t(o,e){if(e&&f.current)return;i(o)}return[a,t]}},dmGj:function(k,D,n){var y=n("DEFe"),p=n("ProS"),x=p.extendComponentView({type:"geo",init:function(A,m){var f=new y(m,!0);this._mapDraw=f,this.group.add(f.group)},render:function(A,m,f,h){if(h&&h.type==="geoToggleSelect"&&h.from===this.uid)return;var u=this._mapDraw;A.get("show")?u.draw(A,m,f,this,h):this._mapDraw.group.removeAll(),this.group.silent=A.get("silent")},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});k.exports=x},dnwI:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("YH21"),A=n("Kagy"),m=n("IUWy"),f=A.toolbox.dataView,h=new Array(60).join("-"),u=" ";function a(S){var E={},C=[],_=[];return S.eachRawSeries(function(T){var w=T.coordinateSystem;if(w&&(w.type==="cartesian2d"||w.type==="polar")){var O=w.getBaseAxis();if(O.type==="category"){var I=O.dim+"_"+O.index;E[I]||(E[I]={categoryAxis:O,valueAxis:w.getOtherAxis(O),series:[]},_.push({axisDim:O.dim,axisIndex:O.index})),E[I].series.push(T)}else C.push(T)}else C.push(T)}),{seriesGroupByCategoryAxis:E,other:C,meta:_}}function i(S){var E=[];return p.each(S,function(C,_){var T=C.categoryAxis,w=C.valueAxis,O=w.dim,I=[" "].concat(p.map(C.series,function(B){return B.name})),R=[T.model.getCategories()];p.each(C.series,function(B){R.push(B.getRawData().mapArray(O,function(j){return j}))});for(var M=[I.join(u)],F=0;F<R[0].length;F++){for(var P=[],X=0;X<R.length;X++)P.push(R[X][F]);M.push(P.join(u))}E.push(M.join(`
|
|
|
`))}),E.join(`
|
|
|
|
|
|
`+h+`
|
|
|
|
|
|
`)}function t(S){return p.map(S,function(E){var C=E.getRawData(),_=[E.name],T=[];return C.each(C.dimensions,function(){for(var w=arguments.length,O=arguments[w-1],I=C.getName(O),R=0;R<w-1;R++)T[R]=arguments[R];_.push((I?I+u:"")+T.join(u))}),_.join(`
|
|
|
`)}).join(`
|
|
|
|
|
|
`+h+`
|
|
|
|
|
|
`)}function o(S){var E=a(S);return{value:p.filter([i(E.seriesGroupByCategoryAxis),t(E.other)],function(C){return C.replace(/[\n\t\s]/g,"")}).join(`
|
|
|
|
|
|
`+h+`
|
|
|
|
|
|
`),meta:E.meta}}function e(S){return S.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function l(S){var E=S.slice(0,S.indexOf(`
|
|
|
`));if(E.indexOf(u)>=0)return!0}var r=new RegExp("["+u+"]+","g");function s(S){for(var E=S.split(/\n+/g),C=e(E.shift()).split(r),_=[],T=p.map(C,function(R){return{name:R,data:[]}}),w=0;w<E.length;w++){var O=e(E[w]).split(r);_.push(O.shift());for(var I=0;I<O.length;I++)T[I]&&(T[I].data[w]=O[I])}return{series:T,categories:_}}function c(S){for(var E=S.split(/\n+/g),C=e(E.shift()),_=[],T=0;T<E.length;T++){var w=e(E[T]).split(r),O="",I,R=!1;isNaN(w[0])?(R=!0,O=w[0],w=w.slice(1),_[T]={name:O,value:[]},I=_[T].value):I=_[T]=[];for(var M=0;M<w.length;M++)I.push(+w[M]);I.length===1&&(R?_[T].value=I[0]:_[T]=I[0])}return{name:C,data:_}}function d(S,E){var C=S.split(new RegExp(`
|
|
|
*`+h+`
|
|
|
*`,"g")),_={series:[]};return p.each(C,function(T,w){if(l(T)){var O=s(T),I=E[w],R=I.axisDim+"Axis";I&&(_[R]=_[R]||[],_[R][I.axisIndex]={data:O.categories},_.series=_.series.concat(O.series))}else{var O=c(T);_.series.push(O)}}),_}function g(S){this._dom=null,this.model=S}g.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:p.clone(f.title),lang:p.clone(f.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},g.prototype.onclick=function(S,E){var C=E.getDom(),_=this.model;this._dom&&C.removeChild(this._dom);var T=document.createElement("div");T.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",T.style.backgroundColor=_.get("backgroundColor")||"#fff";var w=document.createElement("h4"),O=_.get("lang")||[];w.innerHTML=O[0]||_.get("title"),w.style.cssText="margin: 10px 20px;",w.style.color=_.get("textColor");var I=document.createElement("div"),R=document.createElement("textarea");I.style.cssText="display:block;width:100%;overflow:auto;";var M=_.get("optionToContent"),F=_.get("contentToOption"),P=o(S);if(typeof M=="function"){var X=M(E.getOption());typeof X=="string"?I.innerHTML=X:p.isDom(X)&&I.appendChild(X)}else I.appendChild(R),R.readOnly=_.get("readOnly"),R.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",R.style.color=_.get("textColor"),R.style.borderColor=_.get("textareaBorderColor"),R.style.backgroundColor=_.get("textareaColor"),R.value=P.value;var B=P.meta,j=document.createElement("div");j.style.cssText="position:absolute;bottom:0;left:0;right:0;";var W="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",z=document.createElement("div"),V=document.createElement("div");W+=";background-color:"+_.get("buttonColor"),W+=";color:"+_.get("buttonTextColor");var Q=this;function G(){C.removeChild(T),Q._dom=null}x.addEventListener(z,"click",G),x.addEventListener(V,"click",function(){var ee;try{typeof F=="function"?ee=F(I,E.getOption()):ee=d(R.value,B)}catch(ce){throw G(),new Error("Data view format error "+ce)}ee&&E.dispatchAction({type:"changeDataView",newOption:ee}),G()}),z.innerHTML=O[1],V.innerHTML=O[2],V.style.cssText=W,z.style.cssText=W,!_.get("readOnly")&&j.appendChild(V),j.appendChild(z),T.appendChild(w),T.appendChild(I),T.appendChild(j),I.style.height=C.clientHeight-80+"px",C.appendChild(T),this._dom=T},g.prototype.remove=function(S,E){this._dom&&E.getDom().removeChild(this._dom)},g.prototype.dispose=function(S,E){this.remove(S,E)};function v(S,E){return p.map(S,function(C,_){var T=E&&E[_];return p.isObject(T)&&!p.isArray(T)?(p.isObject(C)&&!p.isArray(C)&&(C=C.value),p.defaults({value:C},T)):C})}m.register("dataView",g),y.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(S,E){var C=[];p.each(S.newOption.series,function(_){var T=E.getSeriesByName(_.name)[0];if(!T)C.push(p.extend({type:"scatter"},_));else{var w=T.get("data");C.push({name:_.name,data:v(_.data,w)})}}),E.mergeOption(p.defaults({series:C},S.newOption))});var b=g;k.exports=b},dqUG:function(k,D,n){var y=n("Gev7"),p=n("bYtY"),x=n("6GrX"),A=n("pzxd"),m=n("gut8"),f=m.ContextCachedBy,h=function(i){y.call(this,i)};h.prototype={constructor:h,type:"text",brush:function(i,t){var o=this.style;this.__dirty&&A.normalizeTextStyle(o,!0),o.fill=o.stroke=o.shadowBlur=o.shadowColor=o.shadowOffsetX=o.shadowOffsetY=null;var e=o.text;if(e!=null&&(e+=""),!A.needDrawText(e,o)){i.__attrCachedBy=f.NONE;return}this.setTransform(i),A.renderText(this,i,e,o,null,t),this.restoreTransform(i)},getBoundingRect:function(){var i=this.style;if(this.__dirty&&A.normalizeTextStyle(i,!0),!this._rect){var t=i.text;t!=null?t+="":t="";var o=x.getBoundingRect(i.text+"",i.font,i.textAlign,i.textVerticalAlign,i.textPadding,i.textLineHeight,i.rich);if(o.x+=i.x||0,o.y+=i.y||0,A.getStroke(i.textStroke,i.textStrokeWidth)){var e=i.textStrokeWidth;o.x-=e/2,o.y-=e/2,o.width+=e,o.height+=e}this._rect=o}return this._rect}},p.inherits(h,y);var u=h;k.exports=u},dt0z:function(k,D,n){var y=n("zoYe");function p(x){return x==null?"":y(x)}k.exports=p},dtIV:function(k,D,n){"use strict";n.r(D),function(y){n.d(D,"AcroForm",function(){return He}),n.d(D,"AcroFormAppearance",function(){return te}),n.d(D,"AcroFormButton",function(){return Gt}),n.d(D,"AcroFormCheckBox",function(){return Vt}),n.d(D,"AcroFormChoiceField",function(){return ht}),n.d(D,"AcroFormComboBox",function(){return Jt}),n.d(D,"AcroFormEditBox",function(){return ct}),n.d(D,"AcroFormListBox",function(){return Ke}),n.d(D,"AcroFormPasswordField",function(){return pe}),n.d(D,"AcroFormPushButton",function(){return dr}),n.d(D,"AcroFormRadioButton",function(){return zt}),n.d(D,"AcroFormTextField",function(){return Xe}),n.d(D,"GState",function(){return X}),n.d(D,"ShadingPattern",function(){return j}),n.d(D,"TilingPattern",function(){return W}),n.d(D,"jsPDF",function(){return z});var p=n("cDf5"),x=n.n(p),A=n("crp1");/** @license
|
|
|
*
|
|
|
* jsPDF - PDF Document creation from JavaScript
|
|
|
* Version 2.5.1 Built on 2022-01-28T15:37:57.791Z
|
|
|
* CommitID 00000000
|
|
|
*
|
|
|
* Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
|
|
|
* 2015-2021 yWorks GmbH, http://www.yworks.com
|
|
|
* 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
|
|
|
* 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
|
|
|
* 2010 Aaron Spike, https://github.com/acspike
|
|
|
* 2012 Willow Systems Corporation, https://github.com/willowsystems
|
|
|
* 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
|
|
|
*
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining
|
|
|
* a copy of this software and associated documentation files (the
|
|
|
* "Software"), to deal in the Software without restriction, including
|
|
|
* without limitation the rights to use, copy, modify, merge, publish,
|
|
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
|
* permit persons to whom the Software is furnished to do so, subject to
|
|
|
* the following conditions:
|
|
|
*
|
|
|
* The above copyright notice and this permission notice shall be
|
|
|
* included in all copies or substantial portions of the Software.
|
|
|
*
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
|
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
|
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
|
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
*
|
|
|
* Contributor(s):
|
|
|
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
|
|
|
* kim3er, mfo, alnorth, Flamenco
|
|
|
*/var m=function(){return typeof window!="undefined"?window:typeof y!="undefined"?y:typeof self!="undefined"?self:this}();function f(){m.console&&typeof m.console.log=="function"&&m.console.log.apply(m.console,arguments)}var h={log:f,warn:function(Me){m.console&&(typeof m.console.warn=="function"?m.console.warn.apply(m.console,arguments):f.call(null,arguments))},error:function(Me){m.console&&(typeof m.console.error=="function"?m.console.error.apply(m.console,arguments):f(Me))}};function u(it,Me,je){var Ye=new XMLHttpRequest;Ye.open("GET",it),Ye.responseType="blob",Ye.onload=function(){e(Ye.response,Me,je)},Ye.onerror=function(){h.error("could not download file")},Ye.send()}function a(it){var Me=new XMLHttpRequest;Me.open("HEAD",it,!1);try{Me.send()}catch(je){}return Me.status>=200&&Me.status<=299}function i(it){try{it.dispatchEvent(new MouseEvent("click"))}catch(je){var Me=document.createEvent("MouseEvents");Me.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),it.dispatchEvent(Me)}}var t,o,e=m.saveAs||((typeof window=="undefined"?"undefined":x()(window))!=="object"||window!==m?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(it,Me,je){var Ye=m.URL||m.webkitURL,rt=document.createElement("a");Me=Me||it.name||"download",rt.download=Me,rt.rel="noopener",typeof it=="string"?(rt.href=it,rt.origin!==location.origin?a(rt.href)?u(it,Me,je):i(rt,rt.target="_blank"):i(rt)):(rt.href=Ye.createObjectURL(it),setTimeout(function(){Ye.revokeObjectURL(rt.href)},4e4),setTimeout(function(){i(rt)},0))}:"msSaveOrOpenBlob"in navigator?function(it,Me,je){if(Me=Me||it.name||"download",typeof it=="string")if(a(it))u(it,Me,je);else{var Ye=document.createElement("a");Ye.href=it,Ye.target="_blank",setTimeout(function(){i(Ye)})}else navigator.msSaveOrOpenBlob(function(rt,qe){return qe===void 0?qe={autoBom:!1}:x()(qe)!=="object"&&(h.warn("Deprecated: Expected third argument to be a object"),qe={autoBom:!qe}),qe.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(rt.type)?new Blob([String.fromCharCode(65279),rt],{type:rt.type}):rt}(it,je),Me)}:function(it,Me,je,Ye){if((Ye=Ye||open("","_blank"))&&(Ye.document.title=Ye.document.body.innerText="downloading..."),typeof it=="string")return u(it,Me,je);var rt=it.type==="application/octet-stream",qe=/constructor/i.test(m.HTMLElement)||m.safari,at=/CriOS\/[\d]+/.test(navigator.userAgent);if((at||rt&&qe)&&(typeof FileReader=="undefined"?"undefined":x()(FileReader))==="object"){var St=new FileReader;St.onloadend=function(){var Qr=St.result;Qr=at?Qr:Qr.replace(/^data:[^;]*;/,"data:attachment/file;"),Ye?Ye.location.href=Qr:location=Qr,Ye=null},St.readAsDataURL(it)}else{var gt=m.URL||m.webkitURL,hr=gt.createObjectURL(it);Ye?Ye.location=hr:location.href=hr,Ye=null,setTimeout(function(){gt.revokeObjectURL(hr)},4e4)}});/**
|
|
|
* A class to parse color values
|
|
|
* @author Stoyan Stefanov <sstoo@gmail.com>
|
|
|
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
|
|
|
* @license Use it if you like it
|
|
|
*/function l(it){var Me;it=it||"",this.ok=!1,it.charAt(0)=="#"&&(it=it.substr(1,6)),it={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[it=(it=it.replace(/ /g,"")).toLowerCase()]||it;for(var je=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(gt){return[parseInt(gt[1]),parseInt(gt[2]),parseInt(gt[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(gt){return[parseInt(gt[1],16),parseInt(gt[2],16),parseInt(gt[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(gt){return[parseInt(gt[1]+gt[1],16),parseInt(gt[2]+gt[2],16),parseInt(gt[3]+gt[3],16)]}}],Ye=0;Ye<je.length;Ye++){var rt=je[Ye].re,qe=je[Ye].process,at=rt.exec(it);at&&(Me=qe(at),this.r=Me[0],this.g=Me[1],this.b=Me[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var St=this.r.toString(16),gt=this.g.toString(16),hr=this.b.toString(16);return St.length==1&&(St="0"+St),gt.length==1&&(gt="0"+gt),hr.length==1&&(hr="0"+hr),"#"+St+gt+hr}}/**
|
|
|
* @license
|
|
|
* Joseph Myers does not specify a particular license for his work.
|
|
|
*
|
|
|
* Author: Joseph Myers
|
|
|
* Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
|
|
|
*
|
|
|
* Modified by: Owen Leong
|
|
|
*/function r(it,Me){var je=it[0],Ye=it[1],rt=it[2],qe=it[3];je=c(je,Ye,rt,qe,Me[0],7,-680876936),qe=c(qe,je,Ye,rt,Me[1],12,-389564586),rt=c(rt,qe,je,Ye,Me[2],17,606105819),Ye=c(Ye,rt,qe,je,Me[3],22,-1044525330),je=c(je,Ye,rt,qe,Me[4],7,-176418897),qe=c(qe,je,Ye,rt,Me[5],12,1200080426),rt=c(rt,qe,je,Ye,Me[6],17,-1473231341),Ye=c(Ye,rt,qe,je,Me[7],22,-45705983),je=c(je,Ye,rt,qe,Me[8],7,1770035416),qe=c(qe,je,Ye,rt,Me[9],12,-1958414417),rt=c(rt,qe,je,Ye,Me[10],17,-42063),Ye=c(Ye,rt,qe,je,Me[11],22,-1990404162),je=c(je,Ye,rt,qe,Me[12],7,1804603682),qe=c(qe,je,Ye,rt,Me[13],12,-40341101),rt=c(rt,qe,je,Ye,Me[14],17,-1502002290),je=d(je,Ye=c(Ye,rt,qe,je,Me[15],22,1236535329),rt,qe,Me[1],5,-165796510),qe=d(qe,je,Ye,rt,Me[6],9,-1069501632),rt=d(rt,qe,je,Ye,Me[11],14,643717713),Ye=d(Ye,rt,qe,je,Me[0],20,-373897302),je=d(je,Ye,rt,qe,Me[5],5,-701558691),qe=d(qe,je,Ye,rt,Me[10],9,38016083),rt=d(rt,qe,je,Ye,Me[15],14,-660478335),Ye=d(Ye,rt,qe,je,Me[4],20,-405537848),je=d(je,Ye,rt,qe,Me[9],5,568446438),qe=d(qe,je,Ye,rt,Me[14],9,-1019803690),rt=d(rt,qe,je,Ye,Me[3],14,-187363961),Ye=d(Ye,rt,qe,je,Me[8],20,1163531501),je=d(je,Ye,rt,qe,Me[13],5,-1444681467),qe=d(qe,je,Ye,rt,Me[2],9,-51403784),rt=d(rt,qe,je,Ye,Me[7],14,1735328473),je=g(je,Ye=d(Ye,rt,qe,je,Me[12],20,-1926607734),rt,qe,Me[5],4,-378558),qe=g(qe,je,Ye,rt,Me[8],11,-2022574463),rt=g(rt,qe,je,Ye,Me[11],16,1839030562),Ye=g(Ye,rt,qe,je,Me[14],23,-35309556),je=g(je,Ye,rt,qe,Me[1],4,-1530992060),qe=g(qe,je,Ye,rt,Me[4],11,1272893353),rt=g(rt,qe,je,Ye,Me[7],16,-155497632),Ye=g(Ye,rt,qe,je,Me[10],23,-1094730640),je=g(je,Ye,rt,qe,Me[13],4,681279174),qe=g(qe,je,Ye,rt,Me[0],11,-358537222),rt=g(rt,qe,je,Ye,Me[3],16,-722521979),Ye=g(Ye,rt,qe,je,Me[6],23,76029189),je=g(je,Ye,rt,qe,Me[9],4,-640364487),qe=g(qe,je,Ye,rt,Me[12],11,-421815835),rt=g(rt,qe,je,Ye,Me[15],16,530742520),je=v(je,Ye=g(Ye,rt,qe,je,Me[2],23,-995338651),rt,qe,Me[0],6,-198630844),qe=v(qe,je,Ye,rt,Me[7],10,1126891415),rt=v(rt,qe,je,Ye,Me[14],15,-1416354905),Ye=v(Ye,rt,qe,je,Me[5],21,-57434055),je=v(je,Ye,rt,qe,Me[12],6,1700485571),qe=v(qe,je,Ye,rt,Me[3],10,-1894986606),rt=v(rt,qe,je,Ye,Me[10],15,-1051523),Ye=v(Ye,rt,qe,je,Me[1],21,-2054922799),je=v(je,Ye,rt,qe,Me[8],6,1873313359),qe=v(qe,je,Ye,rt,Me[15],10,-30611744),rt=v(rt,qe,je,Ye,Me[6],15,-1560198380),Ye=v(Ye,rt,qe,je,Me[13],21,1309151649),je=v(je,Ye,rt,qe,Me[4],6,-145523070),qe=v(qe,je,Ye,rt,Me[11],10,-1120210379),rt=v(rt,qe,je,Ye,Me[2],15,718787259),Ye=v(Ye,rt,qe,je,Me[9],21,-343485551),it[0]=O(je,it[0]),it[1]=O(Ye,it[1]),it[2]=O(rt,it[2]),it[3]=O(qe,it[3])}function s(it,Me,je,Ye,rt,qe){return Me=O(O(Me,it),O(Ye,qe)),O(Me<<rt|Me>>>32-rt,je)}function c(it,Me,je,Ye,rt,qe,at){return s(Me&je|~Me&Ye,it,Me,rt,qe,at)}function d(it,Me,je,Ye,rt,qe,at){return s(Me&Ye|je&~Ye,it,Me,rt,qe,at)}function g(it,Me,je,Ye,rt,qe,at){return s(Me^je^Ye,it,Me,rt,qe,at)}function v(it,Me,je,Ye,rt,qe,at){return s(je^(Me|~Ye),it,Me,rt,qe,at)}function b(it){var Me,je=it.length,Ye=[1732584193,-271733879,-1732584194,271733878];for(Me=64;Me<=it.length;Me+=64)r(Ye,S(it.substring(Me-64,Me)));it=it.substring(Me-64);var rt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(Me=0;Me<it.length;Me++)rt[Me>>2]|=it.charCodeAt(Me)<<(Me%4<<3);if(rt[Me>>2]|=128<<(Me%4<<3),Me>55)for(r(Ye,rt),Me=0;Me<16;Me++)rt[Me]=0;return rt[14]=8*je,r(Ye,rt),Ye}function S(it){var Me,je=[];for(Me=0;Me<64;Me+=4)je[Me>>2]=it.charCodeAt(Me)+(it.charCodeAt(Me+1)<<8)+(it.charCodeAt(Me+2)<<16)+(it.charCodeAt(Me+3)<<24);return je}t=m.atob.bind(m),o=m.btoa.bind(m);var E="0123456789abcdef".split("");function C(it){for(var Me="",je=0;je<4;je++)Me+=E[it>>8*je+4&15]+E[it>>8*je&15];return Me}function _(it){return String.fromCharCode((255&it)>>0,(65280&it)>>8,(16711680&it)>>16,(4278190080&it)>>24)}function T(it){return b(it).map(_).join("")}var w=function(it){for(var Me=0;Me<it.length;Me++)it[Me]=C(it[Me]);return it.join("")}(b("hello"))!="5d41402abc4b2a76b9719d911017c592";function O(it,Me){if(w){var je=(65535&it)+(65535&Me);return(it>>16)+(Me>>16)+(je>>16)<<16|65535&je}return it+Me&4294967295}/**
|
|
|
* @license
|
|
|
* FPDF is released under a permissive license: there is no usage restriction.
|
|
|
* You may embed it freely in your application (commercial or not), with or
|
|
|
* without modifications.
|
|
|
*
|
|
|
* Reference: http://www.fpdf.org/en/script/script37.php
|
|
|
*/function I(it,Me){var je,Ye,rt,qe;if(it!==je){for(var at=(rt=it,qe=1+(256/it.length>>0),new Array(qe+1).join(rt)),St=[],gt=0;gt<256;gt++)St[gt]=gt;var hr=0;for(gt=0;gt<256;gt++){var Qr=St[gt];hr=(hr+Qr+at.charCodeAt(gt))%256,St[gt]=St[hr],St[hr]=Qr}je=it,Ye=St}else St=Ye;var Xr=Me.length,dn=0,mr=0,Kn="";for(gt=0;gt<Xr;gt++)mr=(mr+(Qr=St[dn=(dn+1)%256]))%256,St[dn]=St[mr],St[mr]=Qr,at=St[(St[dn]+St[mr])%256],Kn+=String.fromCharCode(Me.charCodeAt(gt)^at);return Kn}/**
|
|
|
* @license
|
|
|
* Licensed under the MIT License.
|
|
|
* http://opensource.org/licenses/mit-license
|
|
|
* Author: Owen Leong (@owenl131)
|
|
|
* Date: 15 Oct 2020
|
|
|
* References:
|
|
|
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
|
|
|
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
|
|
|
* http://www.fpdf.org/en/script/script37.php
|
|
|
*/var R={print:4,modify:8,copy:16,"annot-forms":32};function M(it,Me,je,Ye){this.v=1,this.r=2;var rt=192;it.forEach(function(St){if(R.perm!==void 0)throw new Error("Invalid permission: "+St);rt+=R[St]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var qe=(Me+this.padding).substr(0,32),at=(je+this.padding).substr(0,32);this.O=this.processOwnerPassword(qe,at),this.P=-(1+(255^rt)),this.encryptionKey=T(qe+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(Ye)).substr(0,5),this.U=I(this.encryptionKey,this.padding)}function F(it){if(/[^\u0000-\u00ff]/.test(it))throw new Error("Invalid PDF Name Object: "+it+", Only accept ASCII characters.");for(var Me="",je=it.length,Ye=0;Ye<je;Ye++){var rt=it.charCodeAt(Ye);rt<33||rt===35||rt===37||rt===40||rt===41||rt===47||rt===60||rt===62||rt===91||rt===93||rt===123||rt===125||rt>126?Me+="#"+("0"+rt.toString(16)).slice(-2):Me+=it[Ye]}return Me}function P(it){if(x()(it)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var Me={};this.subscribe=function(je,Ye,rt){if(rt=rt||!1,typeof je!="string"||typeof Ye!="function"||typeof rt!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");Me.hasOwnProperty(je)||(Me[je]={});var qe=Math.random().toString(35);return Me[je][qe]=[Ye,!!rt],qe},this.unsubscribe=function(je){for(var Ye in Me)if(Me[Ye][je])return delete Me[Ye][je],Object.keys(Me[Ye]).length===0&&delete Me[Ye],!0;return!1},this.publish=function(je){if(Me.hasOwnProperty(je)){var Ye=Array.prototype.slice.call(arguments,1),rt=[];for(var qe in Me[je]){var at=Me[je][qe];try{at[0].apply(it,Ye)}catch(St){m.console&&h.error("jsPDF PubSub Error",St.message,St)}at[1]&&rt.push(qe)}rt.length&&rt.forEach(this.unsubscribe)}},this.getTopics=function(){return Me}}function X(it){if(!(this instanceof X))return new X(it);var Me="opacity,stroke-opacity".split(",");for(var je in it)it.hasOwnProperty(je)&&Me.indexOf(je)>=0&&(this[je]=it[je]);this.id="",this.objectNumber=-1}function B(it,Me){this.gState=it,this.matrix=Me,this.id="",this.objectNumber=-1}function j(it,Me,je,Ye,rt){if(!(this instanceof j))return new j(it,Me,je,Ye,rt);this.type=it==="axial"?2:3,this.coords=Me,this.colors=je,B.call(this,Ye,rt)}function W(it,Me,je,Ye,rt){if(!(this instanceof W))return new W(it,Me,je,Ye,rt);this.boundingBox=it,this.xStep=Me,this.yStep=je,this.stream="",this.cloneIndex=0,B.call(this,Ye,rt)}function z(it){var Me,je=typeof arguments[0]=="string"?arguments[0]:"p",Ye=arguments[1],rt=arguments[2],qe=arguments[3],at=[],St=1,gt=16,hr="S",Qr=null;x()(it=it||{})==="object"&&(je=it.orientation,Ye=it.unit||Ye,rt=it.format||rt,qe=it.compress||it.compressPdf||qe,(Qr=it.encryption||null)!==null&&(Qr.userPassword=Qr.userPassword||"",Qr.ownerPassword=Qr.ownerPassword||"",Qr.userPermissions=Qr.userPermissions||[]),St=typeof it.userUnit=="number"?Math.abs(it.userUnit):1,it.precision!==void 0&&(Me=it.precision),it.floatPrecision!==void 0&&(gt=it.floatPrecision),hr=it.defaultPathOperation||"S"),at=it.filters||(qe===!0?["FlateEncode"]:at),Ye=Ye||"mm",je=(""+(je||"P")).toLowerCase();var Xr=it.putOnlyUsedFonts||!1,dn={},mr={internal:{},__private__:{}};mr.__private__.PubSub=P;var Kn="1.3",Rr=mr.__private__.getPdfVersion=function(){return Kn};mr.__private__.setPdfVersion=function(Ft){Kn=Ft};var Rn={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};mr.__private__.getPageFormats=function(){return Rn};var An=mr.__private__.getPageFormat=function(Ft){return Rn[Ft]};rt=rt||"a4";var Zr={COMPAT:"compat",ADVANCED:"advanced"},hi=Zr.COMPAT;function Mi(){this.saveGraphicsState(),On(new ra(_r,0,0,-_r,0,Ds()*_r).toString()+" cm"),this.setFontSize(this.getFontSize()/_r),hr="n",hi=Zr.ADVANCED}function Zi(){this.restoreGraphicsState(),hr="S",hi=Zr.COMPAT}var qr=mr.__private__.combineFontStyleAndFontWeight=function(Ft,er){if(Ft=="bold"&&er=="normal"||Ft=="bold"&&er==400||Ft=="normal"&&er=="italic"||Ft=="bold"&&er=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return er&&(Ft=er==400||er==="normal"?Ft==="italic"?"italic":"normal":er!=700&&er!=="bold"||Ft!=="normal"?(er==700?"bold":er)+""+Ft:"bold"),Ft};mr.advancedAPI=function(Ft){var er=hi===Zr.COMPAT;return er&&Mi.call(this),typeof Ft!="function"||(Ft(this),er&&Zi.call(this)),this},mr.compatAPI=function(Ft){var er=hi===Zr.ADVANCED;return er&&Zi.call(this),typeof Ft!="function"||(Ft(this),er&&Mi.call(this)),this},mr.isAdvancedAPI=function(){return hi===Zr.ADVANCED};var xn,zn=function(er){if(hi!==Zr.ADVANCED)throw new Error(er+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Ht=mr.roundToPrecision=mr.__private__.roundToPrecision=function(Ft,er){var Cn=Me||er;if(isNaN(Ft)||isNaN(Cn))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return Ft.toFixed(Cn).replace(/0+$/,"")};xn=mr.hpf=mr.__private__.hpf=typeof gt=="number"?function(Ft){if(isNaN(Ft))throw new Error("Invalid argument passed to jsPDF.hpf");return Ht(Ft,gt)}:gt==="smart"?function(Ft){if(isNaN(Ft))throw new Error("Invalid argument passed to jsPDF.hpf");return Ht(Ft,Ft>-1&&Ft<1?16:5)}:function(Ft){if(isNaN(Ft))throw new Error("Invalid argument passed to jsPDF.hpf");return Ht(Ft,16)};var Tt=mr.f2=mr.__private__.f2=function(Ft){if(isNaN(Ft))throw new Error("Invalid argument passed to jsPDF.f2");return Ht(Ft,2)},Dt=mr.__private__.f3=function(Ft){if(isNaN(Ft))throw new Error("Invalid argument passed to jsPDF.f3");return Ht(Ft,3)},Bt=mr.scale=mr.__private__.scale=function(Ft){if(isNaN(Ft))throw new Error("Invalid argument passed to jsPDF.scale");return hi===Zr.COMPAT?Ft*_r:hi===Zr.ADVANCED?Ft:void 0},jt=function(er){return hi===Zr.COMPAT?Ds()-er:hi===Zr.ADVANCED?er:void 0},Ot=function(er){return Bt(jt(er))};mr.__private__.setPrecision=mr.setPrecision=function(Ft){typeof parseInt(Ft,10)=="number"&&(Me=parseInt(Ft,10))};var nr,pr="00000000000000000000000000000000",Ar=mr.__private__.getFileId=function(){return pr},Nr=mr.__private__.setFileId=function(Ft){return pr=Ft!==void 0&&/^[a-fA-F0-9]{32}$/.test(Ft)?Ft.toUpperCase():pr.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),Qr!==null&&(wa=new M(Qr.userPermissions,Qr.userPassword,Qr.ownerPassword,pr)),pr};mr.setFileId=function(Ft){return Nr(Ft),this},mr.getFileId=function(){return Ar()};var Hn=mr.__private__.convertDateToPDFDate=function(Ft){var er=Ft.getTimezoneOffset(),Cn=er<0?"+":"-",di=Math.floor(Math.abs(er/60)),It=Math.abs(er%60),ue=[Cn,En(di),"'",En(It),"'"].join("");return["D:",Ft.getFullYear(),En(Ft.getMonth()+1),En(Ft.getDate()),En(Ft.getHours()),En(Ft.getMinutes()),En(Ft.getSeconds()),ue].join("")},Ln=mr.__private__.convertPDFDateToDate=function(Ft){var er=parseInt(Ft.substr(2,4),10),Cn=parseInt(Ft.substr(6,2),10)-1,di=parseInt(Ft.substr(8,2),10),It=parseInt(Ft.substr(10,2),10),ue=parseInt(Ft.substr(12,2),10),Se=parseInt(Ft.substr(14,2),10);return new Date(er,Cn,di,It,ue,Se,0)},ci=mr.__private__.setCreationDate=function(Ft){var er;if(Ft===void 0&&(Ft=new Date),Ft instanceof Date)er=Hn(Ft);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(Ft))throw new Error("Invalid argument passed to jsPDF.setCreationDate");er=Ft}return nr=er},hn=mr.__private__.getCreationDate=function(Ft){var er=nr;return Ft==="jsDate"&&(er=Ln(nr)),er};mr.setCreationDate=function(Ft){return ci(Ft),this},mr.getCreationDate=function(Ft){return hn(Ft)};var Fr,En=mr.__private__.padd2=function(Ft){return("0"+parseInt(Ft)).slice(-2)},Wn=mr.__private__.padd2Hex=function(Ft){return("00"+(Ft=Ft.toString())).substr(Ft.length)},Yn=0,ii=[],xi=[],Ni=0,Li=[],oa=[],ma=!1,ia=xi,ba=function(){Yn=0,Ni=0,xi=[],ii=[],Li=[],_a=Oa(),Va=Oa()};mr.__private__.setCustomOutputDestination=function(Ft){ma=!0,ia=Ft};var vi=function(er){ma||(ia=er)};mr.__private__.resetCustomOutputDestination=function(){ma=!1,ia=xi};var On=mr.__private__.out=function(Ft){return Ft=Ft.toString(),Ni+=Ft.length+1,ia.push(Ft),ia},Fi=mr.__private__.write=function(Ft){return On(arguments.length===1?Ft.toString():Array.prototype.join.call(arguments," "))},ha=mr.__private__.getArrayBuffer=function(Ft){for(var er=Ft.length,Cn=new ArrayBuffer(er),di=new Uint8Array(Cn);er--;)di[er]=Ft.charCodeAt(er);return Cn},ea=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];mr.__private__.getStandardFonts=function(){return ea};var aa=it.fontSize||16;mr.__private__.setFontSize=mr.setFontSize=function(Ft){return aa=hi===Zr.ADVANCED?Ft/_r:Ft,this};var Or,wr=mr.__private__.getFontSize=mr.getFontSize=function(){return hi===Zr.COMPAT?aa:aa*_r},Sn=it.R2L||!1;mr.__private__.setR2L=mr.setR2L=function(Ft){return Sn=Ft,this},mr.__private__.getR2L=mr.getR2L=function(){return Sn};var cr,Lr=mr.__private__.setZoomMode=function(Ft){var er=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(Ft))Or=Ft;else if(isNaN(Ft)){if(er.indexOf(Ft)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+Ft+'" is not recognized.');Or=Ft}else Or=parseInt(Ft,10)};mr.__private__.getZoomMode=function(){return Or};var Wr,on=mr.__private__.setPageMode=function(Ft){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(Ft)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+Ft+'" is not recognized.');cr=Ft};mr.__private__.getPageMode=function(){return cr};var Nn=mr.__private__.setLayoutMode=function(Ft){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(Ft)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+Ft+'" is not recognized.');Wr=Ft};mr.__private__.getLayoutMode=function(){return Wr},mr.__private__.setDisplayMode=mr.setDisplayMode=function(Ft,er,Cn){return Lr(Ft),Nn(er),on(Cn),this};var Et={title:"",subject:"",author:"",keywords:"",creator:""};mr.__private__.getDocumentProperty=function(Ft){if(Object.keys(Et).indexOf(Ft)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Et[Ft]},mr.__private__.getDocumentProperties=function(){return Et},mr.__private__.setDocumentProperties=mr.setProperties=mr.setDocumentProperties=function(Ft){for(var er in Et)Et.hasOwnProperty(er)&&Ft[er]&&(Et[er]=Ft[er]);return this},mr.__private__.setDocumentProperty=function(Ft,er){if(Object.keys(Et).indexOf(Ft)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Et[Ft]=er};var Cr,_r,$r,yn,Tn,vn={},Qn={},Fn=[],fi={},Ri={},yi={},Ci={},Wi=null,qi=0,zi=[],Ki=new P(mr),ji=it.hotfixes||[],Yi={},ca={},Ca=[],ra=function Ft(er,Cn,di,It,ue,Se){if(!(this instanceof Ft))return new Ft(er,Cn,di,It,ue,Se);isNaN(er)&&(er=1),isNaN(Cn)&&(Cn=0),isNaN(di)&&(di=0),isNaN(It)&&(It=1),isNaN(ue)&&(ue=0),isNaN(Se)&&(Se=0),this._matrix=[er,Cn,di,It,ue,Se]};Object.defineProperty(ra.prototype,"sx",{get:function(){return this._matrix[0]},set:function(er){this._matrix[0]=er}}),Object.defineProperty(ra.prototype,"shy",{get:function(){return this._matrix[1]},set:function(er){this._matrix[1]=er}}),Object.defineProperty(ra.prototype,"shx",{get:function(){return this._matrix[2]},set:function(er){this._matrix[2]=er}}),Object.defineProperty(ra.prototype,"sy",{get:function(){return this._matrix[3]},set:function(er){this._matrix[3]=er}}),Object.defineProperty(ra.prototype,"tx",{get:function(){return this._matrix[4]},set:function(er){this._matrix[4]=er}}),Object.defineProperty(ra.prototype,"ty",{get:function(){return this._matrix[5]},set:function(er){this._matrix[5]=er}}),Object.defineProperty(ra.prototype,"a",{get:function(){return this._matrix[0]},set:function(er){this._matrix[0]=er}}),Object.defineProperty(ra.prototype,"b",{get:function(){return this._matrix[1]},set:function(er){this._matrix[1]=er}}),Object.defineProperty(ra.prototype,"c",{get:function(){return this._matrix[2]},set:function(er){this._matrix[2]=er}}),Object.defineProperty(ra.prototype,"d",{get:function(){return this._matrix[3]},set:function(er){this._matrix[3]=er}}),Object.defineProperty(ra.prototype,"e",{get:function(){return this._matrix[4]},set:function(er){this._matrix[4]=er}}),Object.defineProperty(ra.prototype,"f",{get:function(){return this._matrix[5]},set:function(er){this._matrix[5]=er}}),Object.defineProperty(ra.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(ra.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(ra.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(ra.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),ra.prototype.join=function(Ft){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(xn).join(Ft)},ra.prototype.multiply=function(Ft){var er=Ft.sx*this.sx+Ft.shy*this.shx,Cn=Ft.sx*this.shy+Ft.shy*this.sy,di=Ft.shx*this.sx+Ft.sy*this.shx,It=Ft.shx*this.shy+Ft.sy*this.sy,ue=Ft.tx*this.sx+Ft.ty*this.shx+this.tx,Se=Ft.tx*this.shy+Ft.ty*this.sy+this.ty;return new ra(er,Cn,di,It,ue,Se)},ra.prototype.decompose=function(){var Ft=this.sx,er=this.shy,Cn=this.shx,di=this.sy,It=this.tx,ue=this.ty,Se=Math.sqrt(Ft*Ft+er*er),_e=(Ft/=Se)*Cn+(er/=Se)*di;Cn-=Ft*_e,di-=er*_e;var Je=Math.sqrt(Cn*Cn+di*di);return _e/=Je,Ft*(di/=Je)<er*(Cn/=Je)&&(Ft=-Ft,er=-er,_e=-_e,Se=-Se),{scale:new ra(Se,0,0,Je,0,0),translate:new ra(1,0,0,1,It,ue),rotate:new ra(Ft,er,-er,Ft,0,0),skew:new ra(1,0,_e,1,0,0)}},ra.prototype.toString=function(Ft){return this.join(" ")},ra.prototype.inversed=function(){var Ft=this.sx,er=this.shy,Cn=this.shx,di=this.sy,It=this.tx,ue=this.ty,Se=1/(Ft*di-er*Cn),_e=di*Se,Je=-er*Se,Lt=-Cn*Se,tr=Ft*Se;return new ra(_e,Je,Lt,tr,-_e*It-Lt*ue,-Je*It-tr*ue)},ra.prototype.applyToPoint=function(Ft){var er=Ft.x*this.sx+Ft.y*this.shx+this.tx,Cn=Ft.x*this.shy+Ft.y*this.sy+this.ty;return new tl(er,Cn)},ra.prototype.applyToRectangle=function(Ft){var er=this.applyToPoint(Ft),Cn=this.applyToPoint(new tl(Ft.x+Ft.w,Ft.y+Ft.h));return new xs(er.x,er.y,Cn.x-er.x,Cn.y-er.y)},ra.prototype.clone=function(){var Ft=this.sx,er=this.shy,Cn=this.shx,di=this.sy,It=this.tx,ue=this.ty;return new ra(Ft,er,Cn,di,It,ue)},mr.Matrix=ra;var Ma=mr.matrixMult=function(Ft,er){return er.multiply(Ft)},La=new ra(1,0,0,1,0,0);mr.unitMatrix=mr.identityMatrix=La;var va=function(er,Cn){if(!Ri[er]){var di=(Cn instanceof j?"Sh":"P")+(Object.keys(fi).length+1).toString(10);Cn.id=di,Ri[er]=di,fi[di]=Cn,Ki.publish("addPattern",Cn)}};mr.ShadingPattern=j,mr.TilingPattern=W,mr.addShadingPattern=function(Ft,er){return zn("addShadingPattern()"),va(Ft,er),this},mr.beginTilingPattern=function(Ft){zn("beginTilingPattern()"),al(Ft.boundingBox[0],Ft.boundingBox[1],Ft.boundingBox[2]-Ft.boundingBox[0],Ft.boundingBox[3]-Ft.boundingBox[1],Ft.matrix)},mr.endTilingPattern=function(Ft,er){zn("endTilingPattern()"),er.stream=oa[Fr].join(`
|
|
|
`),va(Ft,er),Ki.publish("endTilingPattern",er),Ca.pop().restore()};var ga=mr.__private__.newObject=function(){var Ft=Oa();return Aa(Ft,!0),Ft},Oa=mr.__private__.newObjectDeferred=function(){return Yn++,ii[Yn]=function(){return Ni},Yn},Aa=function(er,Cn){return Cn=typeof Cn=="boolean"&&Cn,ii[er]=Ni,Cn&&On(er+" 0 obj"),er},Ga=mr.__private__.newAdditionalObject=function(){var Ft={objId:Oa(),content:""};return Li.push(Ft),Ft},_a=Oa(),Va=Oa(),Bi=mr.__private__.decodeColorString=function(Ft){var er=Ft.split(" ");if(er.length!==2||er[1]!=="g"&&er[1]!=="G")er.length===5&&(er[4]==="k"||er[4]==="K")&&(er=[(1-er[0])*(1-er[3]),(1-er[1])*(1-er[3]),(1-er[2])*(1-er[3]),"r"]);else{var Cn=parseFloat(er[0]);er=[Cn,Cn,Cn,"r"]}for(var di="#",It=0;It<3;It++)di+=("0"+Math.floor(255*parseFloat(er[It])).toString(16)).slice(-2);return di},io=mr.__private__.encodeColorString=function(Ft){var er;typeof Ft=="string"&&(Ft={ch1:Ft});var Cn=Ft.ch1,di=Ft.ch2,It=Ft.ch3,ue=Ft.ch4,Se=Ft.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Cn=="string"&&Cn.charAt(0)!=="#"){var _e=new l(Cn);if(_e.ok)Cn=_e.toHex();else if(!/^\d*\.?\d*$/.test(Cn))throw new Error('Invalid color "'+Cn+'" passed to jsPDF.encodeColorString.')}if(typeof Cn=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Cn)&&(Cn="#"+Cn[1]+Cn[1]+Cn[2]+Cn[2]+Cn[3]+Cn[3]),typeof Cn=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Cn)){var Je=parseInt(Cn.substr(1),16);Cn=Je>>16&255,di=Je>>8&255,It=255&Je}if(di===void 0||ue===void 0&&Cn===di&&di===It)if(typeof Cn=="string")er=Cn+" "+Se[0];else switch(Ft.precision){case 2:er=Tt(Cn/255)+" "+Se[0];break;case 3:default:er=Dt(Cn/255)+" "+Se[0]}else if(ue===void 0||x()(ue)==="object"){if(ue&&!isNaN(ue.a)&&ue.a===0)return er=["1.","1.","1.",Se[1]].join(" ");if(typeof Cn=="string")er=[Cn,di,It,Se[1]].join(" ");else switch(Ft.precision){case 2:er=[Tt(Cn/255),Tt(di/255),Tt(It/255),Se[1]].join(" ");break;default:case 3:er=[Dt(Cn/255),Dt(di/255),Dt(It/255),Se[1]].join(" ")}}else if(typeof Cn=="string")er=[Cn,di,It,ue,Se[2]].join(" ");else switch(Ft.precision){case 2:er=[Tt(Cn),Tt(di),Tt(It),Tt(ue),Se[2]].join(" ");break;case 3:default:er=[Dt(Cn),Dt(di),Dt(It),Dt(ue),Se[2]].join(" ")}return er},oo=mr.__private__.getFilters=function(){return at},Qo=mr.__private__.putStream=function(Ft){var er=(Ft=Ft||{}).data||"",Cn=Ft.filters||oo(),di=Ft.alreadyAppliedFilters||[],It=Ft.addLength1||!1,ue=er.length,Se=Ft.objectId,_e=function(mi){return mi};if(Qr!==null&&Se===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");Qr!==null&&(_e=wa.encryptor(Se,0));var Je={};Cn===!0&&(Cn=["FlateEncode"]);var Lt=Ft.additionalKeyValues||[],tr=(Je=z.API.processDataByFilters!==void 0?z.API.processDataByFilters(er,Cn):{data:er,reverseChain:[]}).reverseChain+(Array.isArray(di)?di.join(" "):di.toString());if(Je.data.length!==0&&(Lt.push({key:"Length",value:Je.data.length}),It===!0&&Lt.push({key:"Length1",value:ue})),tr.length!=0)if(tr.split("/").length-1==1)Lt.push({key:"Filter",value:tr});else{Lt.push({key:"Filter",value:"["+tr+"]"});for(var Gr=0;Gr<Lt.length;Gr+=1)if(Lt[Gr].key==="DecodeParms"){for(var cn=[],_n=0;_n<Je.reverseChain.split("/").length-1;_n+=1)cn.push("null");cn.push(Lt[Gr].value),Lt[Gr].value="["+cn.join(" ")+"]"}}On("<<");for(var li=0;li<Lt.length;li++)On("/"+Lt[li].key+" "+Lt[li].value);On(">>"),Je.data.length!==0&&(On("stream"),On(_e(Je.data)),On("endstream"))},mo=mr.__private__.putPage=function(Ft){var er=Ft.number,Cn=Ft.data,di=Ft.objId,It=Ft.contentsObjId;Aa(di,!0),On("<</Type /Page"),On("/Parent "+Ft.rootDictionaryObjId+" 0 R"),On("/Resources "+Ft.resourceDictionaryObjId+" 0 R"),On("/MediaBox ["+parseFloat(xn(Ft.mediaBox.bottomLeftX))+" "+parseFloat(xn(Ft.mediaBox.bottomLeftY))+" "+xn(Ft.mediaBox.topRightX)+" "+xn(Ft.mediaBox.topRightY)+"]"),Ft.cropBox!==null&&On("/CropBox ["+xn(Ft.cropBox.bottomLeftX)+" "+xn(Ft.cropBox.bottomLeftY)+" "+xn(Ft.cropBox.topRightX)+" "+xn(Ft.cropBox.topRightY)+"]"),Ft.bleedBox!==null&&On("/BleedBox ["+xn(Ft.bleedBox.bottomLeftX)+" "+xn(Ft.bleedBox.bottomLeftY)+" "+xn(Ft.bleedBox.topRightX)+" "+xn(Ft.bleedBox.topRightY)+"]"),Ft.trimBox!==null&&On("/TrimBox ["+xn(Ft.trimBox.bottomLeftX)+" "+xn(Ft.trimBox.bottomLeftY)+" "+xn(Ft.trimBox.topRightX)+" "+xn(Ft.trimBox.topRightY)+"]"),Ft.artBox!==null&&On("/ArtBox ["+xn(Ft.artBox.bottomLeftX)+" "+xn(Ft.artBox.bottomLeftY)+" "+xn(Ft.artBox.topRightX)+" "+xn(Ft.artBox.topRightY)+"]"),typeof Ft.userUnit=="number"&&Ft.userUnit!==1&&On("/UserUnit "+Ft.userUnit),Ki.publish("putPage",{objId:di,pageContext:zi[er],pageNumber:er,page:Cn}),On("/Contents "+It+" 0 R"),On(">>"),On("endobj");var ue=Cn.join(`
|
|
|
`);return hi===Zr.ADVANCED&&(ue+=`
|
|
|
Q`),Aa(It,!0),Qo({data:ue,filters:oo(),objectId:It}),On("endobj"),di},To=mr.__private__.putPages=function(){var Ft,er,Cn=[];for(Ft=1;Ft<=qi;Ft++)zi[Ft].objId=Oa(),zi[Ft].contentsObjId=Oa();for(Ft=1;Ft<=qi;Ft++)Cn.push(mo({number:Ft,data:oa[Ft],objId:zi[Ft].objId,contentsObjId:zi[Ft].contentsObjId,mediaBox:zi[Ft].mediaBox,cropBox:zi[Ft].cropBox,bleedBox:zi[Ft].bleedBox,trimBox:zi[Ft].trimBox,artBox:zi[Ft].artBox,userUnit:zi[Ft].userUnit,rootDictionaryObjId:_a,resourceDictionaryObjId:Va}));Aa(_a,!0),On("<</Type /Pages");var di="/Kids [";for(er=0;er<qi;er++)di+=Cn[er]+" 0 R ";On(di+"]"),On("/Count "+qi),On(">>"),On("endobj"),Ki.publish("postPutPages")},ao=function(er){Ki.publish("putFont",{font:er,out:On,newObject:ga,putStream:Qo}),er.isAlreadyPutted!==!0&&(er.objectNumber=ga(),On("<<"),On("/Type /Font"),On("/BaseFont /"+F(er.postScriptName)),On("/Subtype /Type1"),typeof er.encoding=="string"&&On("/Encoding /"+er.encoding),On("/FirstChar 32"),On("/LastChar 255"),On(">>"),On("endobj"))},So=function(){for(var er in vn)vn.hasOwnProperty(er)&&(Xr===!1||Xr===!0&&dn.hasOwnProperty(er))&&ao(vn[er])},bo=function(er){er.objectNumber=ga();var Cn=[];Cn.push({key:"Type",value:"/XObject"}),Cn.push({key:"Subtype",value:"/Form"}),Cn.push({key:"BBox",value:"["+[xn(er.x),xn(er.y),xn(er.x+er.width),xn(er.y+er.height)].join(" ")+"]"}),Cn.push({key:"Matrix",value:"["+er.matrix.toString()+"]"});var di=er.pages[1].join(`
|
|
|
`);Qo({data:di,additionalKeyValues:Cn,objectId:er.objectNumber}),On("endobj")},to=function(){for(var er in Yi)Yi.hasOwnProperty(er)&&bo(Yi[er])},Jo=function(er,Cn){var di,It=[],ue=1/(Cn-1);for(di=0;di<1;di+=ue)It.push(di);if(It.push(1),er[0].offset!=0){var Se={offset:0,color:er[0].color};er.unshift(Se)}if(er[er.length-1].offset!=1){var _e={offset:1,color:er[er.length-1].color};er.push(_e)}for(var Je="",Lt=0,tr=0;tr<It.length;tr++){for(di=It[tr];di>er[Lt+1].offset;)Lt++;var Gr=er[Lt].offset,cn=(di-Gr)/(er[Lt+1].offset-Gr),_n=er[Lt].color,li=er[Lt+1].color;Je+=Wn(Math.round((1-cn)*_n[0]+cn*li[0]).toString(16))+Wn(Math.round((1-cn)*_n[1]+cn*li[1]).toString(16))+Wn(Math.round((1-cn)*_n[2]+cn*li[2]).toString(16))}return Je.trim()},Uo=function(er,Cn){Cn||(Cn=21);var di=ga(),It=Jo(er.colors,Cn),ue=[];ue.push({key:"FunctionType",value:"0"}),ue.push({key:"Domain",value:"[0.0 1.0]"}),ue.push({key:"Size",value:"["+Cn+"]"}),ue.push({key:"BitsPerSample",value:"8"}),ue.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ue.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Qo({data:It,additionalKeyValues:ue,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:di}),On("endobj"),er.objectNumber=ga(),On("<< /ShadingType "+er.type),On("/ColorSpace /DeviceRGB");var Se="/Coords ["+xn(parseFloat(er.coords[0]))+" "+xn(parseFloat(er.coords[1]))+" ";er.type===2?Se+=xn(parseFloat(er.coords[2]))+" "+xn(parseFloat(er.coords[3])):Se+=xn(parseFloat(er.coords[2]))+" "+xn(parseFloat(er.coords[3]))+" "+xn(parseFloat(er.coords[4]))+" "+xn(parseFloat(er.coords[5])),On(Se+="]"),er.matrix&&On("/Matrix ["+er.matrix.toString()+"]"),On("/Function "+di+" 0 R"),On("/Extend [true true]"),On(">>"),On("endobj")},wo=function(er,Cn){var di=Oa(),It=ga();Cn.push({resourcesOid:di,objectOid:It}),er.objectNumber=It;var ue=[];ue.push({key:"Type",value:"/Pattern"}),ue.push({key:"PatternType",value:"1"}),ue.push({key:"PaintType",value:"1"}),ue.push({key:"TilingType",value:"1"}),ue.push({key:"BBox",value:"["+er.boundingBox.map(xn).join(" ")+"]"}),ue.push({key:"XStep",value:xn(er.xStep)}),ue.push({key:"YStep",value:xn(er.yStep)}),ue.push({key:"Resources",value:di+" 0 R"}),er.matrix&&ue.push({key:"Matrix",value:"["+er.matrix.toString()+"]"}),Qo({data:er.stream,additionalKeyValues:ue,objectId:er.objectNumber}),On("endobj")},ts=function(er){var Cn;for(Cn in fi)fi.hasOwnProperty(Cn)&&(fi[Cn]instanceof j?Uo(fi[Cn]):fi[Cn]instanceof W&&wo(fi[Cn],er))},Ia=function(er){for(var Cn in er.objectNumber=ga(),On("<<"),er)switch(Cn){case"opacity":On("/ca "+Tt(er[Cn]));break;case"stroke-opacity":On("/CA "+Tt(er[Cn]))}On(">>"),On("endobj")},Oo=function(){var er;for(er in yi)yi.hasOwnProperty(er)&&Ia(yi[er])},Io=function(){for(var er in On("/XObject <<"),Yi)Yi.hasOwnProperty(er)&&Yi[er].objectNumber>=0&&On("/"+er+" "+Yi[er].objectNumber+" 0 R");Ki.publish("putXobjectDict"),On(">>")},os=function(){wa.oid=ga(),On("<<"),On("/Filter /Standard"),On("/V "+wa.v),On("/R "+wa.r),On("/U <"+wa.toHexString(wa.U)+">"),On("/O <"+wa.toHexString(wa.O)+">"),On("/P "+wa.P),On(">>"),On("endobj")},xo=function(){for(var er in On("/Font <<"),vn)vn.hasOwnProperty(er)&&(Xr===!1||Xr===!0&&dn.hasOwnProperty(er))&&On("/"+er+" "+vn[er].objectNumber+" 0 R");On(">>")},rs=function(){if(Object.keys(fi).length>0){for(var er in On("/Shading <<"),fi)fi.hasOwnProperty(er)&&fi[er]instanceof j&&fi[er].objectNumber>=0&&On("/"+er+" "+fi[er].objectNumber+" 0 R");Ki.publish("putShadingPatternDict"),On(">>")}},Ho=function(er){if(Object.keys(fi).length>0){for(var Cn in On("/Pattern <<"),fi)fi.hasOwnProperty(Cn)&&fi[Cn]instanceof mr.TilingPattern&&fi[Cn].objectNumber>=0&&fi[Cn].objectNumber<er&&On("/"+Cn+" "+fi[Cn].objectNumber+" 0 R");Ki.publish("putTilingPatternDict"),On(">>")}},_o=function(){if(Object.keys(yi).length>0){var er;for(er in On("/ExtGState <<"),yi)yi.hasOwnProperty(er)&&yi[er].objectNumber>=0&&On("/"+er+" "+yi[er].objectNumber+" 0 R");Ki.publish("putGStateDict"),On(">>")}},uo=function(er){Aa(er.resourcesOid,!0),On("<<"),On("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),xo(),rs(),Ho(er.objectOid),_o(),Io(),On(">>"),On("endobj")},Ha=function(){var er=[];So(),Oo(),to(),ts(er),Ki.publish("putResources"),er.forEach(uo),uo({resourcesOid:Va,objectOid:Number.MAX_SAFE_INTEGER}),Ki.publish("postPutResources")},pt=function(){Ki.publish("putAdditionalObjects");for(var er=0;er<Li.length;er++){var Cn=Li[er];Aa(Cn.objId,!0),On(Cn.content),On("endobj")}Ki.publish("postPutAdditionalObjects")},xr=function(er){Qn[er.fontName]=Qn[er.fontName]||{},Qn[er.fontName][er.fontStyle]=er.id},Jr=function(er,Cn,di,It,ue){var Se={id:"F"+(Object.keys(vn).length+1).toString(10),postScriptName:er,fontName:Cn,fontStyle:di,encoding:It,isStandardFont:ue||!1,metadata:{}};return Ki.publish("addFont",{font:Se,instance:this}),vn[Se.id]=Se,xr(Se),Se.id},Vr=function(er){for(var Cn=0,di=ea.length;Cn<di;Cn++){var It=Jr.call(this,er[Cn][0],er[Cn][1],er[Cn][2],ea[Cn][3],!0);Xr===!1&&(dn[It]=!0);var ue=er[Cn][0].split("-");xr({id:It,fontName:ue[0],fontStyle:ue[1]||""})}Ki.publish("addFonts",{fonts:vn,dictionary:Qn})},Vn=function(er){return er.foo=function(){try{return er.apply(this,arguments)}catch(It){var Cn=It.stack||"";~Cn.indexOf(" at ")&&(Cn=Cn.split(" at ")[1]);var di="Error in function "+Cn.split(`
|
|
|
`)[0].split("<")[0]+": "+It.message;if(!m.console)throw new Error(di);m.console.error(di,It),m.alert&&alert(di)}},er.foo.bar=er,er.foo},sn=function(er,Cn){var di,It,ue,Se,_e,Je,Lt,tr,Gr;if(ue=(Cn=Cn||{}).sourceEncoding||"Unicode",_e=Cn.outputEncoding,(Cn.autoencode||_e)&&vn[Cr].metadata&&vn[Cr].metadata[ue]&&vn[Cr].metadata[ue].encoding&&(Se=vn[Cr].metadata[ue].encoding,!_e&&vn[Cr].encoding&&(_e=vn[Cr].encoding),!_e&&Se.codePages&&(_e=Se.codePages[0]),typeof _e=="string"&&(_e=Se[_e]),_e)){for(Lt=!1,Je=[],di=0,It=er.length;di<It;di++)(tr=_e[er.charCodeAt(di)])?Je.push(String.fromCharCode(tr)):Je.push(er[di]),Je[di].charCodeAt(0)>>8&&(Lt=!0);er=Je.join("")}for(di=er.length;Lt===void 0&&di!==0;)er.charCodeAt(di-1)>>8&&(Lt=!0),di--;if(!Lt)return er;for(Je=Cn.noBOM?[]:[254,255],di=0,It=er.length;di<It;di++){if((Gr=(tr=er.charCodeAt(di))>>8)>>8)throw new Error("Character at position "+di+" of string '"+er+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Je.push(Gr),Je.push(tr-(Gr<<8))}return String.fromCharCode.apply(void 0,Je)},zr=mr.__private__.pdfEscape=mr.pdfEscape=function(Ft,er){return sn(Ft,er).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},qn=mr.__private__.beginPage=function(Ft){oa[++qi]=[],zi[qi]={objId:0,contentsObjId:0,userUnit:Number(St),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(Ft[0]),topRightY:Number(Ft[1])}},si(qi),vi(oa[Fr])},en=function(er,Cn){var di,It,ue;switch(je=Cn||je,typeof er=="string"&&(di=An(er.toLowerCase()),Array.isArray(di)&&(It=di[0],ue=di[1])),Array.isArray(er)&&(It=er[0]*_r,ue=er[1]*_r),isNaN(It)&&(It=rt[0],ue=rt[1]),(It>14400||ue>14400)&&(h.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),It=Math.min(14400,It),ue=Math.min(14400,ue)),rt=[It,ue],je.substr(0,1)){case"l":ue>It&&(rt=[ue,It]);break;case"p":It>ue&&(rt=[ue,It])}qn(rt),ss(Ao),On(hs),ds!==0&&On(ds+" J"),ks!==0&&On(ks+" j"),Ki.publish("addPage",{pageNumber:qi})},Un=function(er){er>0&&er<=qi&&(oa.splice(er,1),zi.splice(er,1),qi--,Fr>qi&&(Fr=qi),this.setPage(Fr))},si=function(er){er>0&&er<=qi&&(Fr=er)},ui=mr.__private__.getNumberOfPages=mr.getNumberOfPages=function(){return oa.length-1},oi=function(er,Cn,di){var It,ue=void 0;return di=di||{},er=er!==void 0?er:vn[Cr].fontName,Cn=Cn!==void 0?Cn:vn[Cr].fontStyle,It=er.toLowerCase(),Qn[It]!==void 0&&Qn[It][Cn]!==void 0?ue=Qn[It][Cn]:Qn[er]!==void 0&&Qn[er][Cn]!==void 0?ue=Qn[er][Cn]:di.disableWarning===!1&&h.warn("Unable to look up font label for font '"+er+"', '"+Cn+"'. Refer to getFontList() for available fonts."),ue||di.noFallback||(ue=Qn.times[Cn])==null&&(ue=Qn.times.normal),ue},Ei=mr.__private__.putInfo=function(){var Ft=ga(),er=function(It){return It};for(var Cn in Qr!==null&&(er=wa.encryptor(Ft,0)),On("<<"),On("/Producer ("+zr(er("jsPDF "+z.version))+")"),Et)Et.hasOwnProperty(Cn)&&Et[Cn]&&On("/"+Cn.substr(0,1).toUpperCase()+Cn.substr(1)+" ("+zr(er(Et[Cn]))+")");On("/CreationDate ("+zr(er(nr))+")"),On(">>"),On("endobj")},pi=mr.__private__.putCatalog=function(Ft){var er=(Ft=Ft||{}).rootDictionaryObjId||_a;switch(ga(),On("<<"),On("/Type /Catalog"),On("/Pages "+er+" 0 R"),Or||(Or="fullwidth"),Or){case"fullwidth":On("/OpenAction [3 0 R /FitH null]");break;case"fullheight":On("/OpenAction [3 0 R /FitV null]");break;case"fullpage":On("/OpenAction [3 0 R /Fit]");break;case"original":On("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Cn=""+Or;Cn.substr(Cn.length-1)==="%"&&(Or=parseInt(Or)/100),typeof Or=="number"&&On("/OpenAction [3 0 R /XYZ null null "+Tt(Or)+"]")}switch(Wr||(Wr="continuous"),Wr){case"continuous":On("/PageLayout /OneColumn");break;case"single":On("/PageLayout /SinglePage");break;case"two":case"twoleft":On("/PageLayout /TwoColumnLeft");break;case"tworight":On("/PageLayout /TwoColumnRight")}cr&&On("/PageMode /"+cr),Ki.publish("putCatalog"),On(">>"),On("endobj")},Ai=mr.__private__.putTrailer=function(){On("trailer"),On("<<"),On("/Size "+(Yn+1)),On("/Root "+Yn+" 0 R"),On("/Info "+(Yn-1)+" 0 R"),Qr!==null&&On("/Encrypt "+wa.oid+" 0 R"),On("/ID [ <"+pr+"> <"+pr+"> ]"),On(">>")},Oi=mr.__private__.putHeader=function(){On("%PDF-"+Kn),On("%\xBA\xDF\xAC\xE0")},na=mr.__private__.putXRef=function(){var Ft="0000000000";On("xref"),On("0 "+(Yn+1)),On("0000000000 65535 f ");for(var er=1;er<=Yn;er++)typeof ii[er]=="function"?On((Ft+ii[er]()).slice(-10)+" 00000 n "):ii[er]!==void 0?On((Ft+ii[er]).slice(-10)+" 00000 n "):On("0000000000 00000 n ")},Hi=mr.__private__.buildDocument=function(){ba(),vi(xi),Ki.publish("buildDocument"),Oi(),To(),pt(),Ha(),Qr!==null&&os(),Ei(),pi();var Ft=Ni;return na(),Ai(),On("startxref"),On(""+Ft),On("%%EOF"),vi(oa[Fr]),xi.join(`
|
|
|
`)},fa=mr.__private__.getBlob=function(Ft){return new Blob([ha(Ft)],{type:"application/pdf"})},Xa=mr.output=mr.__private__.output=Vn(function(Ft,er){switch(typeof(er=er||{})=="string"?er={filename:er}:er.filename=er.filename||"generated.pdf",Ft){case void 0:return Hi();case"save":mr.save(er.filename);break;case"arraybuffer":return ha(Hi());case"blob":return fa(Hi());case"bloburi":case"bloburl":if(m.URL!==void 0&&typeof m.URL.createObjectURL=="function")return m.URL&&m.URL.createObjectURL(fa(Hi()))||void 0;h.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Cn="",di=Hi();try{Cn=o(di)}catch(_n){Cn=o(unescape(encodeURIComponent(di)))}return"data:application/pdf;filename="+er.filename+";base64,"+Cn;case"pdfobjectnewwindow":if(Object.prototype.toString.call(m)==="[object Window]"){var It="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ue=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';er.pdfObjectUrl&&(It=er.pdfObjectUrl,ue="");var Se='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+It+'"'+ue+'></script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(er)+");</script></body></html>",_e=m.open();return _e!==null&&_e.document.write(Se),_e}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(m)==="[object Window]"){var Je='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(er.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+er.filename+'" width="500px" height="400px" /></body></html>',Lt=m.open();if(Lt!==null){Lt.document.write(Je);var tr=this;Lt.document.documentElement.querySelector("#pdfViewer").onload=function(){Lt.document.title=er.filename,Lt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(tr.output("bloburl"))}}return Lt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(m)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Gr='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",er)+'"></iframe></body></html>',cn=m.open();if(cn!==null&&(cn.document.write(Gr),cn.document.title=er.filename),cn||typeof safari=="undefined")return cn;break;case"datauri":case"dataurl":return m.document.location.href=this.output("datauristring",er);default:return null}}),xa=function(er){return Array.isArray(ji)===!0&&ji.indexOf(er)>-1};switch(Ye){case"pt":_r=1;break;case"mm":_r=72/25.4;break;case"cm":_r=72/2.54;break;case"in":_r=72;break;case"px":_r=xa("px_scaling")==1?.75:96/72;break;case"pc":case"em":_r=12;break;case"ex":_r=6;break;default:if(typeof Ye!="number")throw new Error("Invalid unit: "+Ye);_r=Ye}var wa=null;ci(),Nr();var Da=function(er){return Qr!==null?wa.encryptor(er,0):function(Cn){return Cn}},ja=mr.__private__.getPageInfo=mr.getPageInfo=function(Ft){if(isNaN(Ft)||Ft%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:zi[Ft].objId,pageNumber:Ft,pageContext:zi[Ft]}},ko=mr.__private__.getPageInfoByObjId=function(Ft){if(isNaN(Ft)||Ft%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var er in zi)if(zi[er].objId===Ft)break;return ja(er)},ro=mr.__private__.getCurrentPageInfo=mr.getCurrentPageInfo=function(){return{objId:zi[Fr].objId,pageNumber:Fr,pageContext:zi[Fr]}};mr.addPage=function(){return en.apply(this,arguments),this},mr.setPage=function(){return si.apply(this,arguments),vi.call(this,oa[Fr]),this},mr.insertPage=function(Ft){return this.addPage(),this.movePage(Fr,Ft),this},mr.movePage=function(Ft,er){var Cn,di;if(Ft>er){Cn=oa[Ft],di=zi[Ft];for(var It=Ft;It>er;It--)oa[It]=oa[It-1],zi[It]=zi[It-1];oa[er]=Cn,zi[er]=di,this.setPage(er)}else if(Ft<er){Cn=oa[Ft],di=zi[Ft];for(var ue=Ft;ue<er;ue++)oa[ue]=oa[ue+1],zi[ue]=zi[ue+1];oa[er]=Cn,zi[er]=di,this.setPage(er)}return this},mr.deletePage=function(){return Un.apply(this,arguments),this},mr.__private__.text=mr.text=function(Ft,er,Cn,di,It){var ue,Se,_e,Je,Lt,tr,Gr,cn,_n,li=(di=di||{}).scope||this;if(typeof Ft=="number"&&typeof er=="number"&&(typeof Cn=="string"||Array.isArray(Cn))){var wi=Cn;Cn=er,er=Ft,Ft=wi}if(arguments[3]instanceof ra==!1?(_e=arguments[4],Je=arguments[5],x()(Gr=arguments[3])==="object"&&Gr!==null||(typeof _e=="string"&&(Je=_e,_e=null),typeof Gr=="string"&&(Je=Gr,Gr=null),typeof Gr=="number"&&(_e=Gr,Gr=null),di={flags:Gr,angle:_e,align:Je})):(zn("The transform parameter of text() with a Matrix value"),_n=It),isNaN(er)||isNaN(Cn)||Ft==null)throw new Error("Invalid arguments passed to jsPDF.text");if(Ft.length===0)return li;var mi="",Gi=!1,sa=typeof di.lineHeightFactor=="number"?di.lineHeightFactor:co,Ua=li.internal.scaleFactor;function no(ol){return ol=ol.split(" ").join(Array(di.TabLen||9).join(" ")),zr(ol,Gr)}function Wo(ol){for(var Ys,sl=ol.concat(),nl=[],xl=sl.length;xl--;)typeof(Ys=sl.shift())=="string"?nl.push(Ys):Array.isArray(ol)&&(Ys.length===1||Ys[1]===void 0&&Ys[2]===void 0)?nl.push(Ys[0]):nl.push([Ys[0],Ys[1],Ys[2]]);return nl}function Zo(ol,Ys){var sl;if(typeof ol=="string")sl=Ys(ol)[0];else if(Array.isArray(ol)){for(var nl,xl,Ml=ol.concat(),Wl=[],au=Ml.length;au--;)typeof(nl=Ml.shift())=="string"?Wl.push(Ys(nl)[0]):Array.isArray(nl)&&typeof nl[0]=="string"&&(xl=Ys(nl[0],nl[1],nl[2]),Wl.push([xl[0],xl[1],xl[2]]));sl=Wl}return sl}var Bo=!1,Es=!0;if(typeof Ft=="string")Bo=!0;else if(Array.isArray(Ft)){var As=Ft.concat();Se=[];for(var $o,Do=As.length;Do--;)(typeof($o=As.shift())!="string"||Array.isArray($o)&&typeof $o[0]!="string")&&(Es=!1);Bo=Es}if(Bo===!1)throw new Error('Type of text must be string or Array. "'+Ft+'" is not recognized.');typeof Ft=="string"&&(Ft=Ft.match(/[\r?\n]/)?Ft.split(/\r\n|\r|\n/g):[Ft]);var vo=aa/li.internal.scaleFactor,Ms=vo*(sa-1);switch(di.baseline){case"bottom":Cn-=Ms;break;case"top":Cn+=vo-Ms;break;case"hanging":Cn+=vo-2*Ms;break;case"middle":Cn+=vo/2-Ms}if((tr=di.maxWidth||0)>0&&(typeof Ft=="string"?Ft=li.splitTextToSize(Ft,tr):Object.prototype.toString.call(Ft)==="[object Array]"&&(Ft=Ft.reduce(function(ol,Ys){return ol.concat(li.splitTextToSize(Ys,tr))},[]))),ue={text:Ft,x:er,y:Cn,options:di,mutex:{pdfEscape:zr,activeFontKey:Cr,fonts:vn,activeFontSize:aa}},Ki.publish("preProcessText",ue),Ft=ue.text,_e=(di=ue.options).angle,_n instanceof ra==!1&&_e&&typeof _e=="number"){_e*=Math.PI/180,di.rotationDirection===0&&(_e=-_e),hi===Zr.ADVANCED&&(_e=-_e);var rl=Math.cos(_e),gs=Math.sin(_e);_n=new ra(rl,gs,-gs,rl,0,0)}else _e&&_e instanceof ra&&(_n=_e);hi!==Zr.ADVANCED||_n||(_n=La),(Lt=di.charSpace||el)!==void 0&&(mi+=xn(Bt(Lt))+` Tc
|
|
|
`,this.setCharSpace(this.getCharSpace()||0)),(cn=di.horizontalScale)!==void 0&&(mi+=xn(100*cn)+` Tz
|
|
|
`),di.lang;var Ra=-1,dl=di.renderingMode!==void 0?di.renderingMode:di.stroke,fl=li.internal.getCurrentPageInfo().pageContext;switch(dl){case 0:case!1:case"fill":Ra=0;break;case 1:case!0:case"stroke":Ra=1;break;case 2:case"fillThenStroke":Ra=2;break;case 3:case"invisible":Ra=3;break;case 4:case"fillAndAddForClipping":Ra=4;break;case 5:case"strokeAndAddPathForClipping":Ra=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Ra=6;break;case 7:case"addToPathForClipping":Ra=7}var js=fl.usedRenderingMode!==void 0?fl.usedRenderingMode:-1;Ra!==-1?mi+=Ra+` Tr
|
|
|
`:js!==-1&&(mi+=`0 Tr
|
|
|
`),Ra!==-1&&(fl.usedRenderingMode=Ra),Je=di.align||"left";var _s,Xs=aa*sa,Ql=li.internal.pageSize.getWidth(),Ul=vn[Cr];Lt=di.charSpace||el,tr=di.maxWidth||0,Gr=Object.assign({autoencode:!0,noBOM:!0},di.flags);var wl=[];if(Object.prototype.toString.call(Ft)==="[object Array]"){var Ts;Se=Wo(Ft),Je!=="left"&&(_s=Se.map(function(ol){return li.getStringUnitWidth(ol,{font:Ul,charSpace:Lt,fontSize:aa,doKerning:!1})*aa/Ua}));var Ks,Tl=0;if(Je==="right"){er-=_s[0],Ft=[],Do=Se.length;for(var pl=0;pl<Do;pl++)pl===0?(Ks=Eo(er),Ts=zo(Cn)):(Ks=Bt(Tl-_s[pl]),Ts=-Xs),Ft.push([Se[pl],Ks,Ts]),Tl=_s[pl]}else if(Je==="center"){er-=_s[0]/2,Ft=[],Do=Se.length;for(var jo=0;jo<Do;jo++)jo===0?(Ks=Eo(er),Ts=zo(Cn)):(Ks=Bt((Tl-_s[jo])/2),Ts=-Xs),Ft.push([Se[jo],Ks,Ts]),Tl=_s[jo]}else if(Je==="left"){Ft=[],Do=Se.length;for(var yo=0;yo<Do;yo++)Ft.push(Se[yo])}else{if(Je!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');Ft=[],Do=Se.length,tr=tr!==0?tr:Ql;for(var qo=0;qo<Do;qo++)Ts=qo===0?zo(Cn):-Xs,Ks=qo===0?Eo(er):0,qo<Do-1?wl.push(xn(Bt((tr-_s[qo])/(Se[qo].split(" ").length-1)))):wl.push(0),Ft.push([Se[qo],Ks,Ts])}}var ps=typeof di.R2L=="boolean"?di.R2L:Sn;ps===!0&&(Ft=Zo(Ft,function(ol,Ys,sl){return[ol.split("").reverse().join(""),Ys,sl]})),ue={text:Ft,x:er,y:Cn,options:di,mutex:{pdfEscape:zr,activeFontKey:Cr,fonts:vn,activeFontSize:aa}},Ki.publish("postProcessText",ue),Ft=ue.text,Gi=ue.mutex.isHex||!1;var Os=vn[Cr].encoding;Os!=="WinAnsiEncoding"&&Os!=="StandardEncoding"||(Ft=Zo(Ft,function(ol,Ys,sl){return[no(ol),Ys,sl]})),Se=Wo(Ft),Ft=[];for(var es,Is,Ps,ml=0,Rl=1,_l=Array.isArray(Se[0])?Rl:ml,Bl="",jl=function(Ys,sl,nl){var xl="";return nl instanceof ra?(nl=typeof di.angle=="number"?Ma(nl,new ra(1,0,0,1,Ys,sl)):Ma(new ra(1,0,0,1,Ys,sl),nl),hi===Zr.ADVANCED&&(nl=Ma(new ra(1,0,0,-1,0,0),nl)),xl=nl.join(" ")+` Tm
|
|
|
`):xl=xn(Ys)+" "+xn(sl)+` Td
|
|
|
`,xl},kl=0;kl<Se.length;kl++){switch(Bl="",_l){case Rl:Ps=(Gi?"<":"(")+Se[kl][0]+(Gi?">":")"),es=parseFloat(Se[kl][1]),Is=parseFloat(Se[kl][2]);break;case ml:Ps=(Gi?"<":"(")+Se[kl]+(Gi?">":")"),es=Eo(er),Is=zo(Cn)}wl!==void 0&&wl[kl]!==void 0&&(Bl=wl[kl]+` Tw
|
|
|
`),kl===0?Ft.push(Bl+jl(es,Is,_n)+Ps):_l===ml?Ft.push(Bl+Ps):_l===Rl&&Ft.push(Bl+jl(es,Is,_n)+Ps)}Ft=_l===ml?Ft.join(` Tj
|
|
|
T* `):Ft.join(` Tj
|
|
|
`),Ft+=` Tj
|
|
|
`;var Xl=`BT
|
|
|
/`;return Xl+=Cr+" "+aa+` Tf
|
|
|
`,Xl+=xn(aa*sa)+` TL
|
|
|
`,Xl+=Ns+`
|
|
|
`,Xl+=mi,Xl+=Ft,On(Xl+="ET"),dn[Cr]=!0,li};var pa=mr.__private__.clip=mr.clip=function(Ft){return On(Ft==="evenodd"?"W*":"W"),this};mr.clipEvenOdd=function(){return pa("evenodd")},mr.__private__.discardPath=mr.discardPath=function(){return On("n"),this};var Ea=mr.__private__.isValidStyle=function(Ft){var er=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(Ft)!==-1&&(er=!0),er};mr.__private__.setDefaultPathOperation=mr.setDefaultPathOperation=function(Ft){return Ea(Ft)&&(hr=Ft),this};var Fa=mr.__private__.getStyle=mr.getStyle=function(Ft){var er=hr;switch(Ft){case"D":case"S":er="S";break;case"F":er="f";break;case"FD":case"DF":er="B";break;case"f":case"f*":case"B":case"B*":er=Ft}return er},Ka=mr.close=function(){return On("h"),this};mr.stroke=function(){return On("S"),this},mr.fill=function(Ft){return lo("f",Ft),this},mr.fillEvenOdd=function(Ft){return lo("f*",Ft),this},mr.fillStroke=function(Ft){return lo("B",Ft),this},mr.fillStrokeEvenOdd=function(Ft){return lo("B*",Ft),this};var lo=function(er,Cn){x()(Cn)==="object"?Lo(Cn,er):On(er)},so=function(er){er===null||hi===Zr.ADVANCED&&er===void 0||(er=Fa(er),On(er))};function Co(Ft,er,Cn,di,It){var ue=new W(er||this.boundingBox,Cn||this.xStep,di||this.yStep,this.gState,It||this.matrix);ue.stream=this.stream;var Se=Ft+"$$"+this.cloneIndex+++"$$";return va(Se,ue),ue}var Lo=function(er,Cn){var di=Ri[er.key],It=fi[di];if(It instanceof j)On("q"),On(is(Cn)),It.gState&&mr.setGState(It.gState),On(er.matrix.toString()+" cm"),On("/"+di+" sh"),On("Q");else if(It instanceof W){var ue=new ra(1,0,0,-1,0,Ds());er.matrix&&(ue=ue.multiply(er.matrix||La),di=Co.call(It,er.key,er.boundingBox,er.xStep,er.yStep,ue).id),On("q"),On("/Pattern cs"),On("/"+di+" scn"),It.gState&&mr.setGState(It.gState),On(Cn),On("Q")}},is=function(er){switch(er){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},cs=mr.moveTo=function(Ft,er){return On(xn(Bt(Ft))+" "+xn(Ot(er))+" m"),this},Rs=mr.lineTo=function(Ft,er){return On(xn(Bt(Ft))+" "+xn(Ot(er))+" l"),this},Ko=mr.curveTo=function(Ft,er,Cn,di,It,ue){return On([xn(Bt(Ft)),xn(Ot(er)),xn(Bt(Cn)),xn(Ot(di)),xn(Bt(It)),xn(Ot(ue)),"c"].join(" ")),this};mr.__private__.line=mr.line=function(Ft,er,Cn,di,It){if(isNaN(Ft)||isNaN(er)||isNaN(Cn)||isNaN(di)||!Ea(It))throw new Error("Invalid arguments passed to jsPDF.line");return hi===Zr.COMPAT?this.lines([[Cn-Ft,di-er]],Ft,er,[1,1],It||"S"):this.lines([[Cn-Ft,di-er]],Ft,er,[1,1]).stroke()},mr.__private__.lines=mr.lines=function(Ft,er,Cn,di,It,ue){var Se,_e,Je,Lt,tr,Gr,cn,_n,li,wi,mi,Gi;if(typeof Ft=="number"&&(Gi=Cn,Cn=er,er=Ft,Ft=Gi),di=di||[1,1],ue=ue||!1,isNaN(er)||isNaN(Cn)||!Array.isArray(Ft)||!Array.isArray(di)||!Ea(It)||typeof ue!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(cs(er,Cn),Se=di[0],_e=di[1],Lt=Ft.length,wi=er,mi=Cn,Je=0;Je<Lt;Je++)(tr=Ft[Je]).length===2?(wi=tr[0]*Se+wi,mi=tr[1]*_e+mi,Rs(wi,mi)):(Gr=tr[0]*Se+wi,cn=tr[1]*_e+mi,_n=tr[2]*Se+wi,li=tr[3]*_e+mi,wi=tr[4]*Se+wi,mi=tr[5]*_e+mi,Ko(Gr,cn,_n,li,wi,mi));return ue&&Ka(),so(It),this},mr.path=function(Ft){for(var er=0;er<Ft.length;er++){var Cn=Ft[er],di=Cn.c;switch(Cn.op){case"m":cs(di[0],di[1]);break;case"l":Rs(di[0],di[1]);break;case"c":Ko.apply(this,di);break;case"h":Ka()}}return this},mr.__private__.rect=mr.rect=function(Ft,er,Cn,di,It){if(isNaN(Ft)||isNaN(er)||isNaN(Cn)||isNaN(di)||!Ea(It))throw new Error("Invalid arguments passed to jsPDF.rect");return hi===Zr.COMPAT&&(di=-di),On([xn(Bt(Ft)),xn(Ot(er)),xn(Bt(Cn)),xn(Bt(di)),"re"].join(" ")),so(It),this},mr.__private__.triangle=mr.triangle=function(Ft,er,Cn,di,It,ue,Se){if(isNaN(Ft)||isNaN(er)||isNaN(Cn)||isNaN(di)||isNaN(It)||isNaN(ue)||!Ea(Se))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Cn-Ft,di-er],[It-Cn,ue-di],[Ft-It,er-ue]],Ft,er,[1,1],Se,!0),this},mr.__private__.roundedRect=mr.roundedRect=function(Ft,er,Cn,di,It,ue,Se){if(isNaN(Ft)||isNaN(er)||isNaN(Cn)||isNaN(di)||isNaN(It)||isNaN(ue)||!Ea(Se))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var _e=4/3*(Math.SQRT2-1);return It=Math.min(It,.5*Cn),ue=Math.min(ue,.5*di),this.lines([[Cn-2*It,0],[It*_e,0,It,ue-ue*_e,It,ue],[0,di-2*ue],[0,ue*_e,-It*_e,ue,-It,ue],[2*It-Cn,0],[-It*_e,0,-It,-ue*_e,-It,-ue],[0,2*ue-di],[0,-ue*_e,It*_e,-ue,It,-ue]],Ft+It,er,[1,1],Se,!0),this},mr.__private__.ellipse=mr.ellipse=function(Ft,er,Cn,di,It){if(isNaN(Ft)||isNaN(er)||isNaN(Cn)||isNaN(di)||!Ea(It))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ue=4/3*(Math.SQRT2-1)*Cn,Se=4/3*(Math.SQRT2-1)*di;return cs(Ft+Cn,er),Ko(Ft+Cn,er-Se,Ft+ue,er-di,Ft,er-di),Ko(Ft-ue,er-di,Ft-Cn,er-Se,Ft-Cn,er),Ko(Ft-Cn,er+Se,Ft-ue,er+di,Ft,er+di),Ko(Ft+ue,er+di,Ft+Cn,er+Se,Ft+Cn,er),so(It),this},mr.__private__.circle=mr.circle=function(Ft,er,Cn,di){if(isNaN(Ft)||isNaN(er)||isNaN(Cn)||!Ea(di))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(Ft,er,Cn,Cn,di)},mr.setFont=function(Ft,er,Cn){return Cn&&(er=qr(er,Cn)),Cr=oi(Ft,er,{disableWarning:!1}),this};var as=mr.__private__.getFont=mr.getFont=function(){return vn[oi.apply(mr,arguments)]};mr.__private__.getFontList=mr.getFontList=function(){var Ft,er,Cn={};for(Ft in Qn)if(Qn.hasOwnProperty(Ft))for(er in Cn[Ft]=[],Qn[Ft])Qn[Ft].hasOwnProperty(er)&&Cn[Ft].push(er);return Cn},mr.addFont=function(Ft,er,Cn,di,It){var ue=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ue.indexOf(arguments[3])!==-1?It=arguments[3]:arguments[3]&&ue.indexOf(arguments[3])==-1&&(Cn=qr(Cn,di)),It=It||"Identity-H",Jr.call(this,Ft,er,Cn,It)};var co,Ao=it.lineWidth||.200025,$a=mr.__private__.getLineWidth=mr.getLineWidth=function(){return Ao},ss=mr.__private__.setLineWidth=mr.setLineWidth=function(Ft){return Ao=Ft,On(xn(Bt(Ft))+" w"),this};mr.__private__.setLineDash=z.API.setLineDash=z.API.setLineDashPattern=function(Ft,er){if(Ft=Ft||[],er=er||0,isNaN(er)||!Array.isArray(Ft))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return Ft=Ft.map(function(Cn){return xn(Bt(Cn))}).join(" "),er=xn(Bt(er)),On("["+Ft+"] "+er+" d"),this};var Cs=mr.__private__.getLineHeight=mr.getLineHeight=function(){return aa*co};mr.__private__.getLineHeight=mr.getLineHeight=function(){return aa*co};var Fo=mr.__private__.setLineHeightFactor=mr.setLineHeightFactor=function(Ft){return typeof(Ft=Ft||1.15)=="number"&&(co=Ft),this},il=mr.__private__.getLineHeightFactor=mr.getLineHeightFactor=function(){return co};Fo(it.lineHeight);var Eo=mr.__private__.getHorizontalCoordinate=function(Ft){return Bt(Ft)},zo=mr.__private__.getVerticalCoordinate=function(Ft){return hi===Zr.ADVANCED?Ft:zi[Fr].mediaBox.topRightY-zi[Fr].mediaBox.bottomLeftY-Bt(Ft)},Bs=mr.__private__.getHorizontalCoordinateString=mr.getHorizontalCoordinateString=function(Ft){return xn(Eo(Ft))},ms=mr.__private__.getVerticalCoordinateString=mr.getVerticalCoordinateString=function(Ft){return xn(zo(Ft))},hs=it.strokeColor||"0 G";mr.__private__.getStrokeColor=mr.getDrawColor=function(){return Bi(hs)},mr.__private__.setStrokeColor=mr.setDrawColor=function(Ft,er,Cn,di){return hs=io({ch1:Ft,ch2:er,ch3:Cn,ch4:di,pdfColorType:"draw",precision:2}),On(hs),this};var gn=it.fillColor||"0 g";mr.__private__.getFillColor=mr.getFillColor=function(){return Bi(gn)},mr.__private__.setFillColor=mr.setFillColor=function(Ft,er,Cn,di){return gn=io({ch1:Ft,ch2:er,ch3:Cn,ch4:di,pdfColorType:"fill",precision:2}),On(gn),this};var Ns=it.textColor||"0 g",Ll=mr.__private__.getTextColor=mr.getTextColor=function(){return Bi(Ns)};mr.__private__.setTextColor=mr.setTextColor=function(Ft,er,Cn,di){return Ns=io({ch1:Ft,ch2:er,ch3:Cn,ch4:di,pdfColorType:"text",precision:3}),this};var el=it.charSpace,Gs=mr.__private__.getCharSpace=mr.getCharSpace=function(){return parseFloat(el||0)};mr.__private__.setCharSpace=mr.setCharSpace=function(Ft){if(isNaN(Ft))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return el=Ft,this};var ds=0;mr.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},mr.__private__.setLineCap=mr.setLineCap=function(Ft){var er=mr.CapJoinStyles[Ft];if(er===void 0)throw new Error("Line cap style of '"+Ft+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ds=er,On(er+" J"),this};var ks=0;mr.__private__.setLineJoin=mr.setLineJoin=function(Ft){var er=mr.CapJoinStyles[Ft];if(er===void 0)throw new Error("Line join style of '"+Ft+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ks=er,On(er+" j"),this},mr.__private__.setLineMiterLimit=mr.__private__.setMiterLimit=mr.setLineMiterLimit=mr.setMiterLimit=function(Ft){if(Ft=Ft||0,isNaN(Ft))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return On(xn(Bt(Ft))+" M"),this},mr.GState=X,mr.setGState=function(Ft){(Ft=typeof Ft=="string"?yi[Ci[Ft]]:Qs(null,Ft)).equals(Wi)||(On("/"+Ft.id+" gs"),Wi=Ft)};var Qs=function(er,Cn){if(!er||!Ci[er]){var di=!1;for(var It in yi)if(yi.hasOwnProperty(It)&&yi[It].equals(Cn)){di=!0;break}if(di)Cn=yi[It];else{var ue="GS"+(Object.keys(yi).length+1).toString(10);yi[ue]=Cn,Cn.id=ue}return er&&(Ci[er]=Cn.id),Ki.publish("addGState",Cn),Cn}};mr.addGState=function(Ft,er){return Qs(Ft,er),this},mr.saveGraphicsState=function(){return On("q"),Fn.push({key:Cr,size:aa,color:Ns}),this},mr.restoreGraphicsState=function(){On("Q");var Ft=Fn.pop();return Cr=Ft.key,aa=Ft.size,Ns=Ft.color,Wi=null,this},mr.setCurrentTransformationMatrix=function(Ft){return On(Ft.toString()+" cm"),this},mr.comment=function(Ft){return On("#"+Ft),this};var tl=function(er,Cn){var di=er||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return di},set:function(_e){isNaN(_e)||(di=parseFloat(_e))}});var It=Cn||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return It},set:function(_e){isNaN(_e)||(It=parseFloat(_e))}});var ue="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ue},set:function(_e){ue=_e.toString()}}),this},xs=function(er,Cn,di,It){tl.call(this,er,Cn),this.type="rect";var ue=di||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ue},set:function(Je){isNaN(Je)||(ue=parseFloat(Je))}});var Se=It||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Se},set:function(Je){isNaN(Je)||(Se=parseFloat(Je))}}),this},Us=function(){this.page=qi,this.currentPage=Fr,this.pages=oa.slice(0),this.pagesContext=zi.slice(0),this.x=$r,this.y=yn,this.matrix=Tn,this.width=No(Fr),this.height=Ds(Fr),this.outputDestination=ia,this.id="",this.objectNumber=-1};Us.prototype.restore=function(){qi=this.page,Fr=this.currentPage,zi=this.pagesContext,oa=this.pages,$r=this.x,yn=this.y,Tn=this.matrix,fs(Fr,this.width),go(Fr,this.height),ia=this.outputDestination};var al=function(er,Cn,di,It,ue){Ca.push(new Us),qi=Fr=0,oa=[],$r=er,yn=Cn,Tn=ue,qn([di,It])},Js=function(er){if(ca[er])Ca.pop().restore();else{var Cn=new Us,di="Xo"+(Object.keys(Yi).length+1).toString(10);Cn.id=di,ca[er]=di,Yi[di]=Cn,Ki.publish("addFormObject",Cn),Ca.pop().restore()}};for(var Vo in mr.beginFormObject=function(Ft,er,Cn,di,It){return al(Ft,er,Cn,di,It),this},mr.endFormObject=function(Ft){return Js(Ft),this},mr.doFormObject=function(Ft,er){var Cn=Yi[ca[Ft]];return On("q"),On(er.toString()+" cm"),On("/"+Cn.id+" Do"),On("Q"),this},mr.getFormObject=function(Ft){var er=Yi[ca[Ft]];return{x:er.x,y:er.y,width:er.width,height:er.height,matrix:er.matrix}},mr.save=function(Ft,er){return Ft=Ft||"generated.pdf",(er=er||{}).returnPromise=er.returnPromise||!1,er.returnPromise===!1?(e(fa(Hi()),Ft),typeof e.unload=="function"&&m.setTimeout&&setTimeout(e.unload,911),this):new Promise(function(Cn,di){try{var It=e(fa(Hi()),Ft);typeof e.unload=="function"&&m.setTimeout&&setTimeout(e.unload,911),Cn(It)}catch(ue){di(ue.message)}})},z.API)z.API.hasOwnProperty(Vo)&&(Vo==="events"&&z.API.events.length?function(Ft,er){var Cn,di,It;for(It=er.length-1;It!==-1;It--)Cn=er[It][0],di=er[It][1],Ft.subscribe.apply(Ft,[Cn].concat(typeof di=="function"?[di]:di))}(Ki,z.API.events):mr[Vo]=z.API[Vo]);var No=mr.getPageWidth=function(Ft){return(zi[Ft=Ft||Fr].mediaBox.topRightX-zi[Ft].mediaBox.bottomLeftX)/_r},fs=mr.setPageWidth=function(Ft,er){zi[Ft].mediaBox.topRightX=er*_r+zi[Ft].mediaBox.bottomLeftX},Ds=mr.getPageHeight=function(Ft){return(zi[Ft=Ft||Fr].mediaBox.topRightY-zi[Ft].mediaBox.bottomLeftY)/_r},go=mr.setPageHeight=function(Ft,er){zi[Ft].mediaBox.topRightY=er*_r+zi[Ft].mediaBox.bottomLeftY};return mr.internal={pdfEscape:zr,getStyle:Fa,getFont:as,getFontSize:wr,getCharSpace:Gs,getTextColor:Ll,getLineHeight:Cs,getLineHeightFactor:il,getLineWidth:$a,write:Fi,getHorizontalCoordinate:Eo,getVerticalCoordinate:zo,getCoordinateString:Bs,getVerticalCoordinateString:ms,collections:{},newObject:ga,newAdditionalObject:Ga,newObjectDeferred:Oa,newObjectDeferredBegin:Aa,getFilters:oo,putStream:Qo,events:Ki,scaleFactor:_r,pageSize:{getWidth:function(){return No(Fr)},setWidth:function(er){fs(Fr,er)},getHeight:function(){return Ds(Fr)},setHeight:function(er){go(Fr,er)}},encryptionOptions:Qr,encryption:wa,getEncryptor:Da,output:Xa,getNumberOfPages:ui,pages:oa,out:On,f2:Tt,f3:Dt,getPageInfo:ja,getPageInfoByObjId:ko,getCurrentPageInfo:ro,getPDFVersion:Rr,Point:tl,Rectangle:xs,Matrix:ra,hasHotfix:xa},Object.defineProperty(mr.internal.pageSize,"width",{get:function(){return No(Fr)},set:function(er){fs(Fr,er)},enumerable:!0,configurable:!0}),Object.defineProperty(mr.internal.pageSize,"height",{get:function(){return Ds(Fr)},set:function(er){go(Fr,er)},enumerable:!0,configurable:!0}),Vr.call(mr,ea),Cr="F1",en(rt,je),Ki.publish("initialized"),mr}M.prototype.lsbFirstWord=function(it){return String.fromCharCode(it>>0&255,it>>8&255,it>>16&255,it>>24&255)},M.prototype.toHexString=function(it){return it.split("").map(function(Me){return("0"+(255&Me.charCodeAt(0)).toString(16)).slice(-2)}).join("")},M.prototype.hexToBytes=function(it){for(var Me=[],je=0;je<it.length;je+=2)Me.push(String.fromCharCode(parseInt(it.substr(je,2),16)));return Me.join("")},M.prototype.processOwnerPassword=function(it,Me){return I(T(Me).substr(0,5),it)},M.prototype.encryptor=function(it,Me){var je=T(this.encryptionKey+String.fromCharCode(255&it,it>>8&255,it>>16&255,255&Me,Me>>8&255)).substr(0,10);return function(Ye){return I(je,Ye)}},X.prototype.equals=function(it){var Me,je="id,objectNumber,equals";if(!it||x()(it)!==x()(this))return!1;var Ye=0;for(Me in this)if(!(je.indexOf(Me)>=0)){if(this.hasOwnProperty(Me)&&!it.hasOwnProperty(Me))return!1;if(this[Me]!==it[Me])return!1;Ye++}for(Me in it)it.hasOwnProperty(Me)&&je.indexOf(Me)<0&&Ye--;return Ye===0},z.API={events:[]},z.version="2.5.1";var V=z.API,Q=1,G=function(Me){return Me.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ee=function(Me){return Me.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},ce=function(Me){return Me.toFixed(2)},be=function(Me){return Me.toFixed(5)};V.__acroform__={};var le=function(Me,je){Me.prototype=Object.create(je.prototype),Me.prototype.constructor=Me},Ie=function(Me){return Me*Q},ke=function(Me){var je=new Le,Ye=te.internal.getHeight(Me)||0,rt=te.internal.getWidth(Me)||0;return je.BBox=[0,0,Number(ce(rt)),Number(ce(Ye))],je},Re=V.__acroform__.setBit=function(it,Me){if(it=it||0,Me=Me||0,isNaN(it)||isNaN(Me))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return it|=1<<Me},Qe=V.__acroform__.clearBit=function(it,Me){if(it=it||0,Me=Me||0,isNaN(it)||isNaN(Me))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return it&=~(1<<Me)},We=V.__acroform__.getBit=function(it,Me){if(isNaN(it)||isNaN(Me))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(it&1<<Me)==0?0:1},ot=V.__acroform__.getBitForPdf=function(it,Me){if(isNaN(it)||isNaN(Me))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return We(it,Me-1)},Oe=V.__acroform__.setBitForPdf=function(it,Me){if(isNaN(it)||isNaN(Me))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Re(it,Me-1)},oe=V.__acroform__.clearBitForPdf=function(it,Me){if(isNaN(it)||isNaN(Me))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Qe(it,Me-1)},st=V.__acroform__.calculateCoordinates=function(it,Me){var je=Me.internal.getHorizontalCoordinate,Ye=Me.internal.getVerticalCoordinate,rt=it[0],qe=it[1],at=it[2],St=it[3],gt={};return gt.lowerLeft_X=je(rt)||0,gt.lowerLeft_Y=Ye(qe+St)||0,gt.upperRight_X=je(rt+at)||0,gt.upperRight_Y=Ye(qe)||0,[Number(ce(gt.lowerLeft_X)),Number(ce(gt.lowerLeft_Y)),Number(ce(gt.upperRight_X)),Number(ce(gt.upperRight_Y))]},he=function(Me){if(Me.appearanceStreamContent)return Me.appearanceStreamContent;if(Me.V||Me.DV){var je=[],Ye=Me._V||Me.DV,rt=J(Me,Ye),qe=Me.scope.internal.getFont(Me.fontName,Me.fontStyle).id;je.push("/Tx BMC"),je.push("q"),je.push("BT"),je.push(Me.scope.__private__.encodeColorString(Me.color)),je.push("/"+qe+" "+ce(rt.fontSize)+" Tf"),je.push("1 0 0 1 0 0 Tm"),je.push(rt.text),je.push("ET"),je.push("Q"),je.push("EMC");var at=ke(Me);return at.scope=Me.scope,at.stream=je.join(`
|
|
|
`),at}},J=function(Me,je){var Ye=Me.fontSize===0?Me.maxFontSize:Me.fontSize,rt={text:"",fontSize:""},qe=(je=(je=je.substr(0,1)=="("?je.substr(1):je).substr(je.length-1)==")"?je.substr(0,je.length-1):je).split(" ");qe=Me.multiline?qe.map(function(Bt){return Bt.split(`
|
|
|
`)}):qe.map(function(Bt){return[Bt]});var at=Ye,St=te.internal.getHeight(Me)||0;St=St<0?-St:St;var gt=te.internal.getWidth(Me)||0;gt=gt<0?-gt:gt;var hr=function(jt,Ot,nr){if(jt+1<qe.length){var pr=Ot+" "+qe[jt+1][0];return Y(pr,Me,nr).width<=gt-4}return!1};at++;e:for(;at>0;){je="",at--;var Qr,Xr,dn=Y("3",Me,at).height,mr=Me.multiline?St-at:(St-dn)/2,Kn=mr+=2,Rr=0,Rn=0,An=0;if(at<=0){je=`(...) Tj
|
|
|
`,je+="% Width of Text: "+Y(je,Me,at=12).width+", FieldWidth:"+gt+`
|
|
|
`;break}for(var Zr="",hi=0,Mi=0;Mi<qe.length;Mi++)if(qe.hasOwnProperty(Mi)){var Zi=!1;if(qe[Mi].length!==1&&An!==qe[Mi].length-1){if((dn+2)*(hi+2)+2>St)continue e;Zr+=qe[Mi][An],Zi=!0,Rn=Mi,Mi--}else{Zr=(Zr+=qe[Mi][An]+" ").substr(Zr.length-1)==" "?Zr.substr(0,Zr.length-1):Zr;var qr=parseInt(Mi),xn=hr(qr,Zr,at),zn=Mi>=qe.length-1;if(xn&&!zn){Zr+=" ",An=0;continue}if(xn||zn){if(zn)Rn=qr;else if(Me.multiline&&(dn+2)*(hi+2)+2>St)continue e}else{if(!Me.multiline)continue e;if((dn+2)*(hi+2)+2>St)continue e;Rn=qr}}for(var Ht="",Tt=Rr;Tt<=Rn;Tt++){var Dt=qe[Tt];if(Me.multiline){if(Tt===Rn){Ht+=Dt[An]+" ",An=(An+1)%Dt.length;continue}if(Tt===Rr){Ht+=Dt[Dt.length-1]+" ";continue}}Ht+=Dt[0]+" "}switch(Ht=Ht.substr(Ht.length-1)==" "?Ht.substr(0,Ht.length-1):Ht,Xr=Y(Ht,Me,at).width,Me.textAlign){case"right":Qr=gt-Xr-2;break;case"center":Qr=(gt-Xr)/2;break;case"left":default:Qr=2}je+=ce(Qr)+" "+ce(Kn)+` Td
|
|
|
`,je+="("+G(Ht)+`) Tj
|
|
|
`,je+=-ce(Qr)+` 0 Td
|
|
|
`,Kn=-(at+2),Xr=0,Rr=Zi?Rn:Rn+1,hi++,Zr=""}break}return rt.text=je,rt.fontSize=at,rt},Y=function(Me,je,Ye){var rt=je.scope.internal.getFont(je.fontName,je.fontStyle),qe=je.scope.getStringUnitWidth(Me,{font:rt,fontSize:parseFloat(Ye),charSpace:0})*parseFloat(Ye);return{height:je.scope.getStringUnitWidth("3",{font:rt,fontSize:parseFloat(Ye),charSpace:0})*parseFloat(Ye)*1.5,width:qe}},$={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},fe=function(Me,je){var Ye={type:"reference",object:Me};je.internal.getPageInfo(Me.page).pageContext.annotations.find(function(rt){return rt.type===Ye.type&&rt.object===Ye.object})===void 0&&je.internal.getPageInfo(Me.page).pageContext.annotations.push(Ye)},we=function(Me,je){for(var Ye in Me)if(Me.hasOwnProperty(Ye)){var rt=Ye,qe=Me[Ye];je.internal.newObjectDeferredBegin(qe.objId,!0),x()(qe)==="object"&&typeof qe.putStream=="function"&&qe.putStream(),delete Me[rt]}},Ne=function(Me,je){if(je.scope=Me,Me.internal!==void 0&&(Me.internal.acroformPlugin===void 0||Me.internal.acroformPlugin.isInitialized===!1)){if(At.FieldNum=0,Me.internal.acroformPlugin=JSON.parse(JSON.stringify($)),Me.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Q=Me.internal.scaleFactor,Me.internal.acroformPlugin.acroFormDictionaryRoot=new tt,Me.internal.acroformPlugin.acroFormDictionaryRoot.scope=Me,Me.internal.acroformPlugin.acroFormDictionaryRoot._eventID=Me.internal.events.subscribe("postPutResources",function(){!function(Ye){Ye.internal.events.unsubscribe(Ye.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete Ye.internal.acroformPlugin.acroFormDictionaryRoot._eventID,Ye.internal.acroformPlugin.printedOut=!0}(Me)}),Me.internal.events.subscribe("buildDocument",function(){!function(Ye){Ye.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var rt=Ye.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var qe in rt)if(rt.hasOwnProperty(qe)){var at=rt[qe];at.objId=void 0,at.hasAnnotation&&fe(at,Ye)}}(Me)}),Me.internal.events.subscribe("putCatalog",function(){!function(Ye){if(Ye.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");Ye.internal.write("/AcroForm "+Ye.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(Me)}),Me.internal.events.subscribe("postPutPages",function(Ye){!function(rt,qe){var at=!rt;for(var St in rt||(qe.internal.newObjectDeferredBegin(qe.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),qe.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),rt=rt||qe.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(rt.hasOwnProperty(St)){var gt=rt[St],hr=[],Qr=gt.Rect;if(gt.Rect&&(gt.Rect=st(gt.Rect,qe)),qe.internal.newObjectDeferredBegin(gt.objId,!0),gt.DA=te.createDefaultAppearanceStream(gt),x()(gt)==="object"&&typeof gt.getKeyValueListForStream=="function"&&(hr=gt.getKeyValueListForStream()),gt.Rect=Qr,gt.hasAppearanceStream&&!gt.appearanceStreamContent){var Xr=he(gt);hr.push({key:"AP",value:"<</N "+Xr+">>"}),qe.internal.acroformPlugin.xForms.push(Xr)}if(gt.appearanceStreamContent){var dn="";for(var mr in gt.appearanceStreamContent)if(gt.appearanceStreamContent.hasOwnProperty(mr)){var Kn=gt.appearanceStreamContent[mr];if(dn+="/"+mr+" ",dn+="<<",Object.keys(Kn).length>=1||Array.isArray(Kn)){for(var St in Kn)if(Kn.hasOwnProperty(St)){var Rr=Kn[St];typeof Rr=="function"&&(Rr=Rr.call(qe,gt)),dn+="/"+St+" "+Rr+" ",qe.internal.acroformPlugin.xForms.indexOf(Rr)>=0||qe.internal.acroformPlugin.xForms.push(Rr)}}else typeof(Rr=Kn)=="function"&&(Rr=Rr.call(qe,gt)),dn+="/"+St+" "+Rr,qe.internal.acroformPlugin.xForms.indexOf(Rr)>=0||qe.internal.acroformPlugin.xForms.push(Rr);dn+=">>"}hr.push({key:"AP",value:`<<
|
|
|
`+dn+">>"})}qe.internal.putStream({additionalKeyValues:hr,objectId:gt.objId}),qe.internal.out("endobj")}at&&we(qe.internal.acroformPlugin.xForms,qe)}(Ye,Me)}),Me.internal.acroformPlugin.isInitialized=!0}},Ee=V.__acroform__.arrayToPdfArray=function(it,Me,je){var Ye=function(St){return St};if(Array.isArray(it)){for(var rt="[",qe=0;qe<it.length;qe++)switch(qe!==0&&(rt+=" "),x()(it[qe])){case"boolean":case"number":case"object":rt+=it[qe].toString();break;case"string":it[qe].substr(0,1)!=="/"?(Me!==void 0&&je&&(Ye=je.internal.getEncryptor(Me)),rt+="("+G(Ye(it[qe].toString()))+")"):rt+=it[qe].toString()}return rt+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},de=function(Me,je,Ye){var rt=function(at){return at};return je!==void 0&&Ye&&(rt=Ye.internal.getEncryptor(je)),(Me=Me||"").toString(),Me="("+G(rt(Me))+")"},me=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(je){this._objId=je}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};me.prototype.toString=function(){return this.objId+" 0 R"},me.prototype.putStream=function(){var it=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:it,objectId:this.objId}),this.scope.internal.out("endobj")},me.prototype.getKeyValueListForStream=function(){var it=[],Me=Object.getOwnPropertyNames(this).filter(function(qe){return qe!="content"&&qe!="appearanceStreamContent"&&qe!="scope"&&qe!="objId"&&qe.substring(0,1)!="_"});for(var je in Me)if(Object.getOwnPropertyDescriptor(this,Me[je]).configurable===!1){var Ye=Me[je],rt=this[Ye];rt&&(Array.isArray(rt)?it.push({key:Ye,value:Ee(rt,this.objId,this.scope)}):rt instanceof me?(rt.scope=this.scope,it.push({key:Ye,value:rt.objId+" 0 R"})):typeof rt!="function"&&it.push({key:Ye,value:rt}))}return it};var Le=function(){me.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var Me,je=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return je},set:function(rt){je=rt}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(rt){Me=rt.trim()},get:function(){return Me||null}})};le(Le,me);var tt=function(){me.call(this);var Me,je=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return je.length>0?je:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return je}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(Me){var rt=function(at){return at};return this.scope&&(rt=this.scope.internal.getEncryptor(this.objId)),"("+G(rt(Me))+")"}},set:function(rt){Me=rt}})};le(tt,me);var At=function it(){me.call(this);var Me=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return Me},set:function(Zr){if(isNaN(Zr))throw new Error('Invalid value "'+Zr+'" for attribute F supplied.');Me=Zr}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(ot(Me,3))},set:function(Zr){Boolean(Zr)===!0?this.F=Oe(Me,3):this.F=oe(Me,3)}});var je=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return je},set:function(Zr){if(isNaN(Zr))throw new Error('Invalid value "'+Zr+'" for attribute Ff supplied.');je=Zr}});var Ye=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(Ye.length!==0)return Ye},set:function(Zr){Ye=Zr!==void 0?Zr:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!Ye||isNaN(Ye[0])?0:Ye[0]},set:function(Zr){Ye[0]=Zr}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!Ye||isNaN(Ye[1])?0:Ye[1]},set:function(Zr){Ye[1]=Zr}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!Ye||isNaN(Ye[2])?0:Ye[2]},set:function(Zr){Ye[2]=Zr}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!Ye||isNaN(Ye[3])?0:Ye[3]},set:function(Zr){Ye[3]=Zr}});var rt="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return rt},set:function(Zr){switch(Zr){case"/Btn":case"/Tx":case"/Ch":case"/Sig":rt=Zr;break;default:throw new Error('Invalid value "'+Zr+'" for attribute FT supplied.')}}});var qe=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!qe||qe.length<1){if(this instanceof kt)return;qe="FieldObject"+it.FieldNum++}var Zr=function(Mi){return Mi};return this.scope&&(Zr=this.scope.internal.getEncryptor(this.objId)),"("+G(Zr(qe))+")"},set:function(Zr){qe=Zr.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return qe},set:function(Zr){qe=Zr}});var at="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return at},set:function(Zr){at=Zr}});var St="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return St},set:function(Zr){St=Zr}});var gt=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return gt},set:function(Zr){gt=Zr}});var hr=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return hr===void 0?50/Q:hr},set:function(Zr){hr=Zr}});var Qr="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return Qr},set:function(Zr){Qr=Zr}});var Xr="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Xr||this instanceof kt||this instanceof Xe))return de(Xr,this.objId,this.scope)},set:function(Zr){Zr=Zr.toString(),Xr=Zr}});var dn=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(dn)return this instanceof Gt==!1?de(dn,this.objId,this.scope):dn},set:function(Zr){Zr=Zr.toString(),dn=this instanceof Gt==!1?Zr.substr(0,1)==="("?ee(Zr.substr(1,Zr.length-2)):ee(Zr):Zr}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Gt==!0?ee(dn.substr(1,dn.length-1)):dn},set:function(Zr){Zr=Zr.toString(),dn=this instanceof Gt==!0?"/"+Zr:Zr}});var mr=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(mr)return mr},set:function(Zr){this.V=Zr}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(mr)return this instanceof Gt==!1?de(mr,this.objId,this.scope):mr},set:function(Zr){Zr=Zr.toString(),mr=this instanceof Gt==!1?Zr.substr(0,1)==="("?ee(Zr.substr(1,Zr.length-2)):ee(Zr):Zr}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Gt==!0?ee(mr.substr(1,mr.length-1)):mr},set:function(Zr){Zr=Zr.toString(),mr=this instanceof Gt==!0?"/"+Zr:Zr}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var Kn,Rr=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return Rr},set:function(Zr){Zr=Boolean(Zr),Rr=Zr}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(Kn)return Kn},set:function(Zr){Kn=Zr}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(ot(this.Ff,1))},set:function(Zr){Boolean(Zr)===!0?this.Ff=Oe(this.Ff,1):this.Ff=oe(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(ot(this.Ff,2))},set:function(Zr){Boolean(Zr)===!0?this.Ff=Oe(this.Ff,2):this.Ff=oe(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(ot(this.Ff,3))},set:function(Zr){Boolean(Zr)===!0?this.Ff=Oe(this.Ff,3):this.Ff=oe(this.Ff,3)}});var Rn=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(Rn!==null)return Rn},set:function(Zr){if([0,1,2].indexOf(Zr)===-1)throw new Error('Invalid value "'+Zr+'" for attribute Q supplied.');Rn=Zr}}),Object.defineProperty(this,"textAlign",{get:function(){var Zr;switch(Rn){case 0:default:Zr="left";break;case 1:Zr="center";break;case 2:Zr="right"}return Zr},configurable:!0,enumerable:!0,set:function(Zr){switch(Zr){case"right":case 2:Rn=2;break;case"center":case 1:Rn=1;break;case"left":case 0:default:Rn=0}}})};le(At,me);var ht=function(){At.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var Me=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return Me},set:function(rt){Me=rt}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return Me},set:function(rt){Me=rt}});var je=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Ee(je,this.objId,this.scope)},set:function(rt){var qe,at;at=[],typeof(qe=rt)=="string"&&(at=function(St,gt,hr){hr||(hr=1);for(var Qr,Xr=[];Qr=gt.exec(St);)Xr.push(Qr[hr]);return Xr}(qe,/\((.*?)\)/g)),je=at}}),this.getOptions=function(){return je},this.setOptions=function(Ye){je=Ye,this.sort&&je.sort()},this.addOption=function(Ye){Ye=(Ye=Ye||"").toString(),je.push(Ye),this.sort&&je.sort()},this.removeOption=function(Ye,rt){for(rt=rt||!1,Ye=(Ye=Ye||"").toString();je.indexOf(Ye)!==-1&&(je.splice(je.indexOf(Ye),1),rt!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(ot(this.Ff,18))},set:function(rt){Boolean(rt)===!0?this.Ff=Oe(this.Ff,18):this.Ff=oe(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(ot(this.Ff,19))},set:function(rt){this.combo===!0&&(Boolean(rt)===!0?this.Ff=Oe(this.Ff,19):this.Ff=oe(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(ot(this.Ff,20))},set:function(rt){Boolean(rt)===!0?(this.Ff=Oe(this.Ff,20),je.sort()):this.Ff=oe(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(ot(this.Ff,22))},set:function(rt){Boolean(rt)===!0?this.Ff=Oe(this.Ff,22):this.Ff=oe(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(ot(this.Ff,23))},set:function(rt){Boolean(rt)===!0?this.Ff=Oe(this.Ff,23):this.Ff=oe(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(ot(this.Ff,27))},set:function(rt){Boolean(rt)===!0?this.Ff=Oe(this.Ff,27):this.Ff=oe(this.Ff,27)}}),this.hasAppearanceStream=!1};le(ht,At);var Ke=function(){ht.call(this),this.fontName="helvetica",this.combo=!1};le(Ke,ht);var Jt=function(){Ke.call(this),this.combo=!0};le(Jt,Ke);var ct=function(){Jt.call(this),this.edit=!0};le(ct,Jt);var Gt=function(){At.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(ot(this.Ff,15))},set:function(rt){Boolean(rt)===!0?this.Ff=Oe(this.Ff,15):this.Ff=oe(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(ot(this.Ff,16))},set:function(rt){Boolean(rt)===!0?this.Ff=Oe(this.Ff,16):this.Ff=oe(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(ot(this.Ff,17))},set:function(rt){Boolean(rt)===!0?this.Ff=Oe(this.Ff,17):this.Ff=oe(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(ot(this.Ff,26))},set:function(rt){Boolean(rt)===!0?this.Ff=Oe(this.Ff,26):this.Ff=oe(this.Ff,26)}});var Me,je={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var rt=function(gt){return gt};if(this.scope&&(rt=this.scope.internal.getEncryptor(this.objId)),Object.keys(je).length!==0){var qe,at=[];for(qe in at.push("<<"),je)at.push("/"+qe+" ("+G(rt(je[qe]))+")");return at.push(">>"),at.join(`
|
|
|
`)}},set:function(rt){x()(rt)==="object"&&(je=rt)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return je.CA||""},set:function(rt){typeof rt=="string"&&(je.CA=rt)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Me},set:function(rt){Me=rt}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Me.substr(1,Me.length-1)},set:function(rt){Me="/"+rt}})};le(Gt,At);var dr=function(){Gt.call(this),this.pushButton=!0};le(dr,Gt);var zt=function(){Gt.call(this),this.radio=!0,this.pushButton=!1;var Me=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return Me},set:function(Ye){Me=Ye!==void 0?Ye:[]}})};le(zt,Gt);var kt=function(){var Me,je;At.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return Me},set:function(at){Me=at}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return je},set:function(at){je=at}});var Ye,rt={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var at=function(Qr){return Qr};this.scope&&(at=this.scope.internal.getEncryptor(this.objId));var St,gt=[];for(St in gt.push("<<"),rt)gt.push("/"+St+" ("+G(at(rt[St]))+")");return gt.push(">>"),gt.join(`
|
|
|
`)},set:function(at){x()(at)==="object"&&(rt=at)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return rt.CA||""},set:function(at){typeof at=="string"&&(rt.CA=at)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Ye},set:function(at){Ye=at}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Ye.substr(1,Ye.length-1)},set:function(at){Ye="/"+at}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=te.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};le(kt,At),zt.prototype.setAppearance=function(it){if(!("createAppearanceStream"in it)||!("getCA"in it))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var Me in this.Kids)if(this.Kids.hasOwnProperty(Me)){var je=this.Kids[Me];je.appearanceStreamContent=it.createAppearanceStream(je.optionName),je.caption=it.getCA()}},zt.prototype.createOption=function(it){var Me=new kt;return Me.Parent=this,Me.optionName=it,this.Kids.push(Me),$e.call(this.scope,Me),Me};var Vt=function(){Gt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=te.CheckBox.createAppearanceStream()};le(Vt,Gt);var Xe=function(){At.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(ot(this.Ff,13))},set:function(Ye){Boolean(Ye)===!0?this.Ff=Oe(this.Ff,13):this.Ff=oe(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(ot(this.Ff,21))},set:function(Ye){Boolean(Ye)===!0?this.Ff=Oe(this.Ff,21):this.Ff=oe(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(ot(this.Ff,23))},set:function(Ye){Boolean(Ye)===!0?this.Ff=Oe(this.Ff,23):this.Ff=oe(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(ot(this.Ff,24))},set:function(Ye){Boolean(Ye)===!0?this.Ff=Oe(this.Ff,24):this.Ff=oe(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(ot(this.Ff,25))},set:function(Ye){Boolean(Ye)===!0?this.Ff=Oe(this.Ff,25):this.Ff=oe(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(ot(this.Ff,26))},set:function(Ye){Boolean(Ye)===!0?this.Ff=Oe(this.Ff,26):this.Ff=oe(this.Ff,26)}});var Me=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return Me},set:function(Ye){Me=Ye}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return Me},set:function(Ye){Number.isInteger(Ye)&&(Me=Ye)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};le(Xe,At);var pe=function(){Xe.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(ot(this.Ff,14))},set:function(je){Boolean(je)===!0?this.Ff=Oe(this.Ff,14):this.Ff=oe(this.Ff,14)}}),this.password=!0};le(pe,Xe);var te={CheckBox:{createAppearanceStream:function(){return{N:{On:te.CheckBox.YesNormal},D:{On:te.CheckBox.YesPushDown,Off:te.CheckBox.OffPushDown}}},YesPushDown:function(Me){var je=ke(Me);je.scope=Me.scope;var Ye=[],rt=Me.scope.internal.getFont(Me.fontName,Me.fontStyle).id,qe=Me.scope.__private__.encodeColorString(Me.color),at=J(Me,Me.caption);return Ye.push("0.749023 g"),Ye.push("0 0 "+ce(te.internal.getWidth(Me))+" "+ce(te.internal.getHeight(Me))+" re"),Ye.push("f"),Ye.push("BMC"),Ye.push("q"),Ye.push("0 0 1 rg"),Ye.push("/"+rt+" "+ce(at.fontSize)+" Tf "+qe),Ye.push("BT"),Ye.push(at.text),Ye.push("ET"),Ye.push("Q"),Ye.push("EMC"),je.stream=Ye.join(`
|
|
|
`),je},YesNormal:function(Me){var je=ke(Me);je.scope=Me.scope;var Ye=Me.scope.internal.getFont(Me.fontName,Me.fontStyle).id,rt=Me.scope.__private__.encodeColorString(Me.color),qe=[],at=te.internal.getHeight(Me),St=te.internal.getWidth(Me),gt=J(Me,Me.caption);return qe.push("1 g"),qe.push("0 0 "+ce(St)+" "+ce(at)+" re"),qe.push("f"),qe.push("q"),qe.push("0 0 1 rg"),qe.push("0 0 "+ce(St-1)+" "+ce(at-1)+" re"),qe.push("W"),qe.push("n"),qe.push("0 g"),qe.push("BT"),qe.push("/"+Ye+" "+ce(gt.fontSize)+" Tf "+rt),qe.push(gt.text),qe.push("ET"),qe.push("Q"),je.stream=qe.join(`
|
|
|
`),je},OffPushDown:function(Me){var je=ke(Me);je.scope=Me.scope;var Ye=[];return Ye.push("0.749023 g"),Ye.push("0 0 "+ce(te.internal.getWidth(Me))+" "+ce(te.internal.getHeight(Me))+" re"),Ye.push("f"),je.stream=Ye.join(`
|
|
|
`),je}},RadioButton:{Circle:{createAppearanceStream:function(Me){var je={D:{Off:te.RadioButton.Circle.OffPushDown},N:{}};return je.N[Me]=te.RadioButton.Circle.YesNormal,je.D[Me]=te.RadioButton.Circle.YesPushDown,je},getCA:function(){return"l"},YesNormal:function(Me){var je=ke(Me);je.scope=Me.scope;var Ye=[],rt=te.internal.getWidth(Me)<=te.internal.getHeight(Me)?te.internal.getWidth(Me)/4:te.internal.getHeight(Me)/4;rt=Number((.9*rt).toFixed(5));var qe=te.internal.Bezier_C,at=Number((rt*qe).toFixed(5));return Ye.push("q"),Ye.push("1 0 0 1 "+be(te.internal.getWidth(Me)/2)+" "+be(te.internal.getHeight(Me)/2)+" cm"),Ye.push(rt+" 0 m"),Ye.push(rt+" "+at+" "+at+" "+rt+" 0 "+rt+" c"),Ye.push("-"+at+" "+rt+" -"+rt+" "+at+" -"+rt+" 0 c"),Ye.push("-"+rt+" -"+at+" -"+at+" -"+rt+" 0 -"+rt+" c"),Ye.push(at+" -"+rt+" "+rt+" -"+at+" "+rt+" 0 c"),Ye.push("f"),Ye.push("Q"),je.stream=Ye.join(`
|
|
|
`),je},YesPushDown:function(Me){var je=ke(Me);je.scope=Me.scope;var Ye=[],rt=te.internal.getWidth(Me)<=te.internal.getHeight(Me)?te.internal.getWidth(Me)/4:te.internal.getHeight(Me)/4;rt=Number((.9*rt).toFixed(5));var qe=Number((2*rt).toFixed(5)),at=Number((qe*te.internal.Bezier_C).toFixed(5)),St=Number((rt*te.internal.Bezier_C).toFixed(5));return Ye.push("0.749023 g"),Ye.push("q"),Ye.push("1 0 0 1 "+be(te.internal.getWidth(Me)/2)+" "+be(te.internal.getHeight(Me)/2)+" cm"),Ye.push(qe+" 0 m"),Ye.push(qe+" "+at+" "+at+" "+qe+" 0 "+qe+" c"),Ye.push("-"+at+" "+qe+" -"+qe+" "+at+" -"+qe+" 0 c"),Ye.push("-"+qe+" -"+at+" -"+at+" -"+qe+" 0 -"+qe+" c"),Ye.push(at+" -"+qe+" "+qe+" -"+at+" "+qe+" 0 c"),Ye.push("f"),Ye.push("Q"),Ye.push("0 g"),Ye.push("q"),Ye.push("1 0 0 1 "+be(te.internal.getWidth(Me)/2)+" "+be(te.internal.getHeight(Me)/2)+" cm"),Ye.push(rt+" 0 m"),Ye.push(rt+" "+St+" "+St+" "+rt+" 0 "+rt+" c"),Ye.push("-"+St+" "+rt+" -"+rt+" "+St+" -"+rt+" 0 c"),Ye.push("-"+rt+" -"+St+" -"+St+" -"+rt+" 0 -"+rt+" c"),Ye.push(St+" -"+rt+" "+rt+" -"+St+" "+rt+" 0 c"),Ye.push("f"),Ye.push("Q"),je.stream=Ye.join(`
|
|
|
`),je},OffPushDown:function(Me){var je=ke(Me);je.scope=Me.scope;var Ye=[],rt=te.internal.getWidth(Me)<=te.internal.getHeight(Me)?te.internal.getWidth(Me)/4:te.internal.getHeight(Me)/4;rt=Number((.9*rt).toFixed(5));var qe=Number((2*rt).toFixed(5)),at=Number((qe*te.internal.Bezier_C).toFixed(5));return Ye.push("0.749023 g"),Ye.push("q"),Ye.push("1 0 0 1 "+be(te.internal.getWidth(Me)/2)+" "+be(te.internal.getHeight(Me)/2)+" cm"),Ye.push(qe+" 0 m"),Ye.push(qe+" "+at+" "+at+" "+qe+" 0 "+qe+" c"),Ye.push("-"+at+" "+qe+" -"+qe+" "+at+" -"+qe+" 0 c"),Ye.push("-"+qe+" -"+at+" -"+at+" -"+qe+" 0 -"+qe+" c"),Ye.push(at+" -"+qe+" "+qe+" -"+at+" "+qe+" 0 c"),Ye.push("f"),Ye.push("Q"),je.stream=Ye.join(`
|
|
|
`),je}},Cross:{createAppearanceStream:function(Me){var je={D:{Off:te.RadioButton.Cross.OffPushDown},N:{}};return je.N[Me]=te.RadioButton.Cross.YesNormal,je.D[Me]=te.RadioButton.Cross.YesPushDown,je},getCA:function(){return"8"},YesNormal:function(Me){var je=ke(Me);je.scope=Me.scope;var Ye=[],rt=te.internal.calculateCross(Me);return Ye.push("q"),Ye.push("1 1 "+ce(te.internal.getWidth(Me)-2)+" "+ce(te.internal.getHeight(Me)-2)+" re"),Ye.push("W"),Ye.push("n"),Ye.push(ce(rt.x1.x)+" "+ce(rt.x1.y)+" m"),Ye.push(ce(rt.x2.x)+" "+ce(rt.x2.y)+" l"),Ye.push(ce(rt.x4.x)+" "+ce(rt.x4.y)+" m"),Ye.push(ce(rt.x3.x)+" "+ce(rt.x3.y)+" l"),Ye.push("s"),Ye.push("Q"),je.stream=Ye.join(`
|
|
|
`),je},YesPushDown:function(Me){var je=ke(Me);je.scope=Me.scope;var Ye=te.internal.calculateCross(Me),rt=[];return rt.push("0.749023 g"),rt.push("0 0 "+ce(te.internal.getWidth(Me))+" "+ce(te.internal.getHeight(Me))+" re"),rt.push("f"),rt.push("q"),rt.push("1 1 "+ce(te.internal.getWidth(Me)-2)+" "+ce(te.internal.getHeight(Me)-2)+" re"),rt.push("W"),rt.push("n"),rt.push(ce(Ye.x1.x)+" "+ce(Ye.x1.y)+" m"),rt.push(ce(Ye.x2.x)+" "+ce(Ye.x2.y)+" l"),rt.push(ce(Ye.x4.x)+" "+ce(Ye.x4.y)+" m"),rt.push(ce(Ye.x3.x)+" "+ce(Ye.x3.y)+" l"),rt.push("s"),rt.push("Q"),je.stream=rt.join(`
|
|
|
`),je},OffPushDown:function(Me){var je=ke(Me);je.scope=Me.scope;var Ye=[];return Ye.push("0.749023 g"),Ye.push("0 0 "+ce(te.internal.getWidth(Me))+" "+ce(te.internal.getHeight(Me))+" re"),Ye.push("f"),je.stream=Ye.join(`
|
|
|
`),je}}},createDefaultAppearanceStream:function(Me){var je=Me.scope.internal.getFont(Me.fontName,Me.fontStyle).id,Ye=Me.scope.__private__.encodeColorString(Me.color);return"/"+je+" "+Me.fontSize+" Tf "+Ye}};te.internal={Bezier_C:.551915024494,calculateCross:function(Me){var je=te.internal.getWidth(Me),Ye=te.internal.getHeight(Me),rt=Math.min(je,Ye);return{x1:{x:(je-rt)/2,y:(Ye-rt)/2+rt},x2:{x:(je-rt)/2+rt,y:(Ye-rt)/2},x3:{x:(je-rt)/2,y:(Ye-rt)/2},x4:{x:(je-rt)/2+rt,y:(Ye-rt)/2+rt}}}},te.internal.getWidth=function(it){var Me=0;return x()(it)==="object"&&(Me=Ie(it.Rect[2])),Me},te.internal.getHeight=function(it){var Me=0;return x()(it)==="object"&&(Me=Ie(it.Rect[3])),Me};var $e=V.addField=function(it){if(Ne(this,it),!(it instanceof At))throw new Error("Invalid argument passed to jsPDF.addField.");var Me;return(Me=it).scope.internal.acroformPlugin.printedOut&&(Me.scope.internal.acroformPlugin.printedOut=!1,Me.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),Me.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(Me),it.page=it.scope.internal.getCurrentPageInfo().pageNumber,this};V.AcroFormChoiceField=ht,V.AcroFormListBox=Ke,V.AcroFormComboBox=Jt,V.AcroFormEditBox=ct,V.AcroFormButton=Gt,V.AcroFormPushButton=dr,V.AcroFormRadioButton=zt,V.AcroFormCheckBox=Vt,V.AcroFormTextField=Xe,V.AcroFormPasswordField=pe,V.AcroFormAppearance=te,V.AcroForm={ChoiceField:ht,ListBox:Ke,ComboBox:Jt,EditBox:ct,Button:Gt,PushButton:dr,RadioButton:zt,CheckBox:Vt,TextField:Xe,PasswordField:pe,Appearance:te},z.AcroForm={ChoiceField:ht,ListBox:Ke,ComboBox:Jt,EditBox:ct,Button:Gt,PushButton:dr,RadioButton:zt,CheckBox:Vt,TextField:Xe,PasswordField:pe,Appearance:te};var He=z.AcroForm;function ae(it){return it.reduce(function(Me,je,Ye){return Me[je]=Ye,Me},{})}!function(it){it.__addimage__={};var Me="UNKNOWN",je={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],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},Ye=it.__addimage__.getImageFileTypeByImageData=function(Dt,Bt){var jt,Ot,nr,pr,Ar,Nr=Me;if((Bt=Bt||Me)==="RGBA"||Dt.data!==void 0&&Dt.data instanceof Uint8ClampedArray&&"height"in Dt&&"width"in Dt)return"RGBA";if(qr(Dt))for(Ar in je)for(nr=je[Ar],jt=0;jt<nr.length;jt+=1){for(pr=!0,Ot=0;Ot<nr[jt].length;Ot+=1)if(nr[jt][Ot]!==void 0&&nr[jt][Ot]!==Dt[Ot]){pr=!1;break}if(pr===!0){Nr=Ar;break}}else for(Ar in je)for(nr=je[Ar],jt=0;jt<nr.length;jt+=1){for(pr=!0,Ot=0;Ot<nr[jt].length;Ot+=1)if(nr[jt][Ot]!==void 0&&nr[jt][Ot]!==Dt.charCodeAt(Ot)){pr=!1;break}if(pr===!0){Nr=Ar;break}}return Nr===Me&&Bt!==Me&&(Nr=Bt),Nr},rt=function Dt(Bt){for(var jt=this.internal.write,Ot=this.internal.putStream,nr=(0,this.internal.getFilters)();nr.indexOf("FlateEncode")!==-1;)nr.splice(nr.indexOf("FlateEncode"),1);Bt.objectId=this.internal.newObject();var pr=[];if(pr.push({key:"Type",value:"/XObject"}),pr.push({key:"Subtype",value:"/Image"}),pr.push({key:"Width",value:Bt.width}),pr.push({key:"Height",value:Bt.height}),Bt.colorSpace===Rn.INDEXED?pr.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Bt.palette.length/3-1)+" "+("sMask"in Bt&&Bt.sMask!==void 0?Bt.objectId+2:Bt.objectId+1)+" 0 R]"}):(pr.push({key:"ColorSpace",value:"/"+Bt.colorSpace}),Bt.colorSpace===Rn.DEVICE_CMYK&&pr.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),pr.push({key:"BitsPerComponent",value:Bt.bitsPerComponent}),"decodeParameters"in Bt&&Bt.decodeParameters!==void 0&&pr.push({key:"DecodeParms",value:"<<"+Bt.decodeParameters+">>"}),"transparency"in Bt&&Array.isArray(Bt.transparency)){for(var Ar="",Nr=0,Hn=Bt.transparency.length;Nr<Hn;Nr++)Ar+=Bt.transparency[Nr]+" "+Bt.transparency[Nr]+" ";pr.push({key:"Mask",value:"["+Ar+"]"})}Bt.sMask!==void 0&&pr.push({key:"SMask",value:Bt.objectId+1+" 0 R"});var Ln=Bt.filter!==void 0?["/"+Bt.filter]:void 0;if(Ot({data:Bt.data,additionalKeyValues:pr,alreadyAppliedFilters:Ln,objectId:Bt.objectId}),jt("endobj"),"sMask"in Bt&&Bt.sMask!==void 0){var ci="/Predictor "+Bt.predictor+" /Colors 1 /BitsPerComponent "+Bt.bitsPerComponent+" /Columns "+Bt.width,hn={width:Bt.width,height:Bt.height,colorSpace:"DeviceGray",bitsPerComponent:Bt.bitsPerComponent,decodeParameters:ci,data:Bt.sMask};"filter"in Bt&&(hn.filter=Bt.filter),Dt.call(this,hn)}if(Bt.colorSpace===Rn.INDEXED){var Fr=this.internal.newObject();Ot({data:zn(new Uint8Array(Bt.palette)),objectId:Fr}),jt("endobj")}},qe=function(){var Bt=this.internal.collections.addImage_images;for(var jt in Bt)rt.call(this,Bt[jt])},at=function(){var Bt,jt=this.internal.collections.addImage_images,Ot=this.internal.write;for(var nr in jt)Ot("/I"+(Bt=jt[nr]).index,Bt.objectId,"0","R")},St=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",qe),this.internal.events.subscribe("putXobjectDict",at))},gt=function(){var Bt=this.internal.collections.addImage_images;return St.call(this),Bt},hr=function(){return Object.keys(this.internal.collections.addImage_images).length},Qr=function(Bt){return typeof it["process"+Bt.toUpperCase()]=="function"},Xr=function(Bt){return x()(Bt)==="object"&&Bt.nodeType===1},dn=function(Bt,jt){if(Bt.nodeName==="IMG"&&Bt.hasAttribute("src")){var Ot=""+Bt.getAttribute("src");if(Ot.indexOf("data:image/")===0)return t(unescape(Ot).split("base64,").pop());var nr=it.loadFile(Ot,!0);if(nr!==void 0)return nr}if(Bt.nodeName==="CANVAS"){if(Bt.width===0||Bt.height===0)throw new Error("Given canvas must have data. Canvas width: "+Bt.width+", height: "+Bt.height);var pr;switch(jt){case"PNG":pr="image/png";break;case"WEBP":pr="image/webp";break;case"JPEG":case"JPG":default:pr="image/jpeg"}return t(Bt.toDataURL(pr,1).split("base64,").pop())}},mr=function(Bt){var jt=this.internal.collections.addImage_images;if(jt){for(var Ot in jt)if(Bt===jt[Ot].alias)return jt[Ot]}},Kn=function(Bt,jt,Ot){return Bt||jt||(Bt=-96,jt=-96),Bt<0&&(Bt=-1*Ot.width*72/Bt/this.internal.scaleFactor),jt<0&&(jt=-1*Ot.height*72/jt/this.internal.scaleFactor),Bt===0&&(Bt=jt*Ot.width/Ot.height),jt===0&&(jt=Bt*Ot.height/Ot.width),[Bt,jt]},Rr=function(Bt,jt,Ot,nr,pr,Ar){var Nr=Kn.call(this,Ot,nr,pr),Hn=this.internal.getCoordinateString,Ln=this.internal.getVerticalCoordinateString,ci=gt.call(this);if(Ot=Nr[0],nr=Nr[1],ci[pr.index]=pr,Ar){Ar*=Math.PI/180;var hn=Math.cos(Ar),Fr=Math.sin(Ar),En=function(ii){return ii.toFixed(4)},Wn=[En(hn),En(Fr),En(-1*Fr),En(hn),0,0,"cm"]}this.internal.write("q"),Ar?(this.internal.write([1,"0","0",1,Hn(Bt),Ln(jt+nr),"cm"].join(" ")),this.internal.write(Wn.join(" ")),this.internal.write([Hn(Ot),"0","0",Hn(nr),"0","0","cm"].join(" "))):this.internal.write([Hn(Ot),"0","0",Hn(nr),Hn(Bt),Ln(jt+nr),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+pr.index+" Do"),this.internal.write("Q")},Rn=it.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};it.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var An=it.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},Zr=it.__addimage__.sHashCode=function(Dt){var Bt,jt,Ot=0;if(typeof Dt=="string")for(jt=Dt.length,Bt=0;Bt<jt;Bt++)Ot=(Ot<<5)-Ot+Dt.charCodeAt(Bt),Ot|=0;else if(qr(Dt))for(jt=Dt.byteLength/2,Bt=0;Bt<jt;Bt++)Ot=(Ot<<5)-Ot+Dt[Bt],Ot|=0;return Ot},hi=it.__addimage__.validateStringAsBase64=function(Dt){(Dt=Dt||"").toString().trim();var Bt=!0;return Dt.length===0&&(Bt=!1),Dt.length%4!=0&&(Bt=!1),/^[A-Za-z0-9+/]+$/.test(Dt.substr(0,Dt.length-2))===!1&&(Bt=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(Dt.substr(-2))===!1&&(Bt=!1),Bt},Mi=it.__addimage__.extractImageFromDataUrl=function(Dt){var Bt=(Dt=Dt||"").split("base64,"),jt=null;if(Bt.length===2){var Ot=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(Bt[0]);Array.isArray(Ot)&&(jt={mimeType:Ot[1],charset:Ot[2],data:Bt[1]})}return jt},Zi=it.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};it.__addimage__.isArrayBuffer=function(Dt){return Zi()&&Dt instanceof ArrayBuffer};var qr=it.__addimage__.isArrayBufferView=function(Dt){return Zi()&&typeof Uint32Array!="undefined"&&(Dt instanceof Int8Array||Dt instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&Dt instanceof Uint8ClampedArray||Dt instanceof Int16Array||Dt instanceof Uint16Array||Dt instanceof Int32Array||Dt instanceof Uint32Array||Dt instanceof Float32Array||Dt instanceof Float64Array)},xn=it.__addimage__.binaryStringToUint8Array=function(Dt){for(var Bt=Dt.length,jt=new Uint8Array(Bt),Ot=0;Ot<Bt;Ot++)jt[Ot]=Dt.charCodeAt(Ot);return jt},zn=it.__addimage__.arrayBufferToBinaryString=function(Dt){for(var Bt="",jt=qr(Dt)?Dt:new Uint8Array(Dt),Ot=0;Ot<jt.length;Ot+=8192)Bt+=String.fromCharCode.apply(null,jt.subarray(Ot,Ot+8192));return Bt};it.addImage=function(){var Dt,Bt,jt,Ot,nr,pr,Ar,Nr,Hn;if(typeof arguments[1]=="number"?(Bt=Me,jt=arguments[1],Ot=arguments[2],nr=arguments[3],pr=arguments[4],Ar=arguments[5],Nr=arguments[6],Hn=arguments[7]):(Bt=arguments[1],jt=arguments[2],Ot=arguments[3],nr=arguments[4],pr=arguments[5],Ar=arguments[6],Nr=arguments[7],Hn=arguments[8]),x()(Dt=arguments[0])==="object"&&!Xr(Dt)&&"imageData"in Dt){var Ln=Dt;Dt=Ln.imageData,Bt=Ln.format||Bt||Me,jt=Ln.x||jt||0,Ot=Ln.y||Ot||0,nr=Ln.w||Ln.width||nr,pr=Ln.h||Ln.height||pr,Ar=Ln.alias||Ar,Nr=Ln.compression||Nr,Hn=Ln.rotation||Ln.angle||Hn}var ci=this.internal.getFilters();if(Nr===void 0&&ci.indexOf("FlateEncode")!==-1&&(Nr="SLOW"),isNaN(jt)||isNaN(Ot))throw new Error("Invalid coordinates passed to jsPDF.addImage");St.call(this);var hn=Ht.call(this,Dt,Bt,Ar,Nr);return Rr.call(this,jt,Ot,nr,pr,hn,Hn),this};var Ht=function(Bt,jt,Ot,nr){var pr,Ar,Nr;if(typeof Bt=="string"&&Ye(Bt)===Me){Bt=unescape(Bt);var Hn=Tt(Bt,!1);(Hn!==""||(Hn=it.loadFile(Bt,!0))!==void 0)&&(Bt=Hn)}if(Xr(Bt)&&(Bt=dn(Bt,jt)),jt=Ye(Bt,jt),!Qr(jt))throw new Error("addImage does not support files of type '"+jt+"', please ensure that a plugin for '"+jt+"' support is added.");if(((Nr=Ot)==null||Nr.length===0)&&(Ot=function(Ln){return typeof Ln=="string"||qr(Ln)?Zr(Ln):qr(Ln.data)?Zr(Ln.data):null}(Bt)),(pr=mr.call(this,Ot))||(Zi()&&(Bt instanceof Uint8Array||jt==="RGBA"||(Ar=Bt,Bt=xn(Bt))),pr=this["process"+jt.toUpperCase()](Bt,hr.call(this),Ot,function(Ln){return Ln&&typeof Ln=="string"&&(Ln=Ln.toUpperCase()),Ln in it.image_compression?Ln:An.NONE}(nr),Ar)),!pr)throw new Error("An unknown error occurred whilst processing the image.");return pr},Tt=it.__addimage__.convertBase64ToBinaryString=function(Dt,Bt){var jt;Bt=typeof Bt!="boolean"||Bt;var Ot,nr="";if(typeof Dt=="string"){Ot=(jt=Mi(Dt))!==null?jt.data:Dt;try{nr=t(Ot)}catch(pr){if(Bt)throw hi(Ot)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+pr.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return nr};it.getImageProperties=function(Dt){var Bt,jt,Ot="";if(Xr(Dt)&&(Dt=dn(Dt)),typeof Dt=="string"&&Ye(Dt)===Me&&((Ot=Tt(Dt,!1))===""&&(Ot=it.loadFile(Dt)||""),Dt=Ot),jt=Ye(Dt),!Qr(jt))throw new Error("addImage does not support files of type '"+jt+"', please ensure that a plugin for '"+jt+"' support is added.");if(!Zi()||Dt instanceof Uint8Array||(Dt=xn(Dt)),!(Bt=this["process"+jt.toUpperCase()](Dt)))throw new Error("An unknown error occurred whilst processing the image");return Bt.fileType=jt,Bt}}(z.API),function(it){var Me=function(Ye){if(Ye!==void 0&&Ye!="")return!0};z.API.events.push(["addPage",function(je){this.internal.getPageInfo(je.pageNumber).pageContext.annotations=[]}]),it.events.push(["putPage",function(je){for(var Ye,rt,qe,at=this.internal.getCoordinateString,St=this.internal.getVerticalCoordinateString,gt=this.internal.getPageInfoByObjId(je.objId),hr=je.pageContext.annotations,Qr=!1,Xr=0;Xr<hr.length&&!Qr;Xr++)switch((Ye=hr[Xr]).type){case"link":(Me(Ye.options.url)||Me(Ye.options.pageNumber))&&(Qr=!0);break;case"reference":case"text":case"freetext":Qr=!0}if(Qr!=0){this.internal.write("/Annots [");for(var dn=0;dn<hr.length;dn++){Ye=hr[dn];var mr=this.internal.pdfEscape,Kn=this.internal.getEncryptor(je.objId);switch(Ye.type){case"reference":this.internal.write(" "+Ye.object.objId+" 0 R ");break;case"text":var Rr=this.internal.newAdditionalObject(),Rn=this.internal.newAdditionalObject(),An=this.internal.getEncryptor(Rr.objId),Zr=Ye.title||"Note";qe="<</Type /Annot /Subtype /Text "+(rt="/Rect ["+at(Ye.bounds.x)+" "+St(Ye.bounds.y+Ye.bounds.h)+" "+at(Ye.bounds.x+Ye.bounds.w)+" "+St(Ye.bounds.y)+"] ")+"/Contents ("+mr(An(Ye.contents))+")",qe+=" /Popup "+Rn.objId+" 0 R",qe+=" /P "+gt.objId+" 0 R",qe+=" /T ("+mr(An(Zr))+") >>",Rr.content=qe;var hi=Rr.objId+" 0 R";qe="<</Type /Annot /Subtype /Popup "+(rt="/Rect ["+at(Ye.bounds.x+30)+" "+St(Ye.bounds.y+Ye.bounds.h)+" "+at(Ye.bounds.x+Ye.bounds.w+30)+" "+St(Ye.bounds.y)+"] ")+" /Parent "+hi,Ye.open&&(qe+=" /Open true"),qe+=" >>",Rn.content=qe,this.internal.write(Rr.objId,"0 R",Rn.objId,"0 R");break;case"freetext":rt="/Rect ["+at(Ye.bounds.x)+" "+St(Ye.bounds.y)+" "+at(Ye.bounds.x+Ye.bounds.w)+" "+St(Ye.bounds.y+Ye.bounds.h)+"] ";var Mi=Ye.color||"#000000";qe="<</Type /Annot /Subtype /FreeText "+rt+"/Contents ("+mr(Kn(Ye.contents))+")",qe+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+Mi+")",qe+=" /Border [0 0 0]",qe+=" >>",this.internal.write(qe);break;case"link":if(Ye.options.name){var Zi=this.annotations._nameMap[Ye.options.name];Ye.options.pageNumber=Zi.page,Ye.options.top=Zi.y}else Ye.options.top||(Ye.options.top=0);if(rt="/Rect ["+Ye.finalBounds.x+" "+Ye.finalBounds.y+" "+Ye.finalBounds.w+" "+Ye.finalBounds.h+"] ",qe="",Ye.options.url)qe="<</Type /Annot /Subtype /Link "+rt+"/Border [0 0 0] /A <</S /URI /URI ("+mr(Kn(Ye.options.url))+") >>";else if(Ye.options.pageNumber)switch(qe="<</Type /Annot /Subtype /Link "+rt+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(Ye.options.pageNumber).objId+" 0 R",Ye.options.magFactor=Ye.options.magFactor||"XYZ",Ye.options.magFactor){case"Fit":qe+=" /Fit]";break;case"FitH":qe+=" /FitH "+Ye.options.top+"]";break;case"FitV":Ye.options.left=Ye.options.left||0,qe+=" /FitV "+Ye.options.left+"]";break;case"XYZ":default:var qr=St(Ye.options.top);Ye.options.left=Ye.options.left||0,Ye.options.zoom===void 0&&(Ye.options.zoom=0),qe+=" /XYZ "+Ye.options.left+" "+qr+" "+Ye.options.zoom+"]"}qe!=""&&(qe+=" >>",this.internal.write(qe))}}this.internal.write("]")}}]),it.createAnnotation=function(je){var Ye=this.internal.getCurrentPageInfo();switch(je.type){case"link":this.link(je.bounds.x,je.bounds.y,je.bounds.w,je.bounds.h,je);break;case"text":case"freetext":Ye.pageContext.annotations.push(je)}},it.link=function(je,Ye,rt,qe,at){var St=this.internal.getCurrentPageInfo(),gt=this.internal.getCoordinateString,hr=this.internal.getVerticalCoordinateString;St.pageContext.annotations.push({finalBounds:{x:gt(je),y:hr(Ye),w:gt(je+rt),h:hr(Ye+qe)},options:at,type:"link"})},it.textWithLink=function(je,Ye,rt,qe){var at,St,gt=this.getTextWidth(je),hr=this.internal.getLineHeight()/this.internal.scaleFactor;if(qe.maxWidth!==void 0){St=qe.maxWidth;var Qr=this.splitTextToSize(je,St).length;at=Math.ceil(hr*Qr)}else St=gt,at=hr;return this.text(je,Ye,rt,qe),rt+=.2*hr,qe.align==="center"&&(Ye-=gt/2),qe.align==="right"&&(Ye-=gt),this.link(Ye,rt-hr,St,at,qe),gt},it.getTextWidth=function(je){var Ye=this.internal.getFontSize();return this.getStringUnitWidth(je)*Ye/this.internal.scaleFactor}}(z.API),function(it){var Me={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},je={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},Ye={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},rt=[1570,1571,1573,1575];it.__arabicParser__={};var qe=it.__arabicParser__.isInArabicSubstitutionA=function(Rr){return Me[Rr.charCodeAt(0)]!==void 0},at=it.__arabicParser__.isArabicLetter=function(Rr){return typeof Rr=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(Rr)},St=it.__arabicParser__.isArabicEndLetter=function(Rr){return at(Rr)&&qe(Rr)&&Me[Rr.charCodeAt(0)].length<=2},gt=it.__arabicParser__.isArabicAlfLetter=function(Rr){return at(Rr)&&rt.indexOf(Rr.charCodeAt(0))>=0};it.__arabicParser__.arabicLetterHasIsolatedForm=function(Rr){return at(Rr)&&qe(Rr)&&Me[Rr.charCodeAt(0)].length>=1};var hr=it.__arabicParser__.arabicLetterHasFinalForm=function(Rr){return at(Rr)&&qe(Rr)&&Me[Rr.charCodeAt(0)].length>=2};it.__arabicParser__.arabicLetterHasInitialForm=function(Rr){return at(Rr)&&qe(Rr)&&Me[Rr.charCodeAt(0)].length>=3};var Qr=it.__arabicParser__.arabicLetterHasMedialForm=function(Rr){return at(Rr)&&qe(Rr)&&Me[Rr.charCodeAt(0)].length==4},Xr=it.__arabicParser__.resolveLigatures=function(Rr){var Rn=0,An=je,Zr="",hi=0;for(Rn=0;Rn<Rr.length;Rn+=1)An[Rr.charCodeAt(Rn)]!==void 0?(hi++,typeof(An=An[Rr.charCodeAt(Rn)])=="number"&&(Zr+=String.fromCharCode(An),An=je,hi=0),Rn===Rr.length-1&&(An=je,Zr+=Rr.charAt(Rn-(hi-1)),Rn-=hi-1,hi=0)):(An=je,Zr+=Rr.charAt(Rn-hi),Rn-=hi,hi=0);return Zr};it.__arabicParser__.isArabicDiacritic=function(Rr){return Rr!==void 0&&Ye[Rr.charCodeAt(0)]!==void 0};var dn=it.__arabicParser__.getCorrectForm=function(Rr,Rn,An){return at(Rr)?qe(Rr)===!1?-1:!hr(Rr)||!at(Rn)&&!at(An)||!at(An)&&St(Rn)||St(Rr)&&!at(Rn)||St(Rr)&>(Rn)||St(Rr)&&St(Rn)?0:Qr(Rr)&&at(Rn)&&!St(Rn)&&at(An)&&hr(An)?3:St(Rr)||!at(An)?1:2:-1},mr=function(Rn){var An=0,Zr=0,hi=0,Mi="",Zi="",qr="",xn=(Rn=Rn||"").split("\\s+"),zn=[];for(An=0;An<xn.length;An+=1){for(zn.push(""),Zr=0;Zr<xn[An].length;Zr+=1)Mi=xn[An][Zr],Zi=xn[An][Zr-1],qr=xn[An][Zr+1],at(Mi)?(hi=dn(Mi,Zi,qr),zn[An]+=hi!==-1?String.fromCharCode(Me[Mi.charCodeAt(0)][hi]):Mi):zn[An]+=Mi;zn[An]=Xr(zn[An])}return zn.join(" ")},Kn=it.__arabicParser__.processArabic=it.processArabic=function(){var Rr,Rn=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,An=[];if(Array.isArray(Rn)){var Zr=0;for(An=[],Zr=0;Zr<Rn.length;Zr+=1)Array.isArray(Rn[Zr])?An.push([mr(Rn[Zr][0]),Rn[Zr][1],Rn[Zr][2]]):An.push([mr(Rn[Zr])]);Rr=An}else Rr=mr(Rn);return typeof arguments[0]=="string"?Rr:(arguments[0].text=Rr,arguments[0])};it.events.push(["preProcessText",Kn])}(z.API),z.API.autoPrint=function(it){var Me;switch((it=it||{}).variant=it.variant||"non-conform",it.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){Me=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+Me+" 0 R")})}return this},function(it){var Me=function(){var Ye=void 0;Object.defineProperty(this,"pdf",{get:function(){return Ye},set:function(hr){Ye=hr}});var rt=150;Object.defineProperty(this,"width",{get:function(){return rt},set:function(hr){rt=isNaN(hr)||Number.isInteger(hr)===!1||hr<0?150:hr,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=rt+1)}});var qe=300;Object.defineProperty(this,"height",{get:function(){return qe},set:function(hr){qe=isNaN(hr)||Number.isInteger(hr)===!1||hr<0?300:hr,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=qe+1)}});var at=[];Object.defineProperty(this,"childNodes",{get:function(){return at},set:function(hr){at=hr}});var St={};Object.defineProperty(this,"style",{get:function(){return St},set:function(hr){St=hr}}),Object.defineProperty(this,"parentNode",{})};Me.prototype.getContext=function(je,Ye){var rt;if((je=je||"2d")!=="2d")return null;for(rt in Ye)this.pdf.context2d.hasOwnProperty(rt)&&(this.pdf.context2d[rt]=Ye[rt]);return this.pdf.context2d._canvas=this,this.pdf.context2d},Me.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},it.events.push(["initialized",function(){this.canvas=new Me,this.canvas.pdf=this}])}(z.API),function(it){var Me={left:0,top:0,bottom:0,right:0},je=!1,Ye=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},Me),this.internal.__cell__.margins.width=this.getPageWidth(),rt.call(this))},rt=function(){this.internal.__cell__.lastCell=new qe,this.internal.__cell__.pages=1},qe=function(){var hr=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return hr},set:function(An){hr=An}});var Qr=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Qr},set:function(An){Qr=An}});var Xr=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return Xr},set:function(An){Xr=An}});var dn=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return dn},set:function(An){dn=An}});var mr=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return mr},set:function(An){mr=An}});var Kn=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return Kn},set:function(An){Kn=An}});var Rr=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return Rr},set:function(An){Rr=An}}),this};qe.prototype.clone=function(){return new qe(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},qe.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},it.setHeaderFunction=function(gt){return Ye.call(this),this.internal.__cell__.headerFunction=typeof gt=="function"?gt:void 0,this},it.getTextDimensions=function(gt,hr){Ye.call(this);var Qr=(hr=hr||{}).fontSize||this.getFontSize(),Xr=hr.font||this.getFont(),dn=hr.scaleFactor||this.internal.scaleFactor,mr=0,Kn=0,Rr=0,Rn=this;if(!Array.isArray(gt)&&typeof gt!="string"){if(typeof gt!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");gt=String(gt)}var An=hr.maxWidth;An>0?typeof gt=="string"?gt=this.splitTextToSize(gt,An):Object.prototype.toString.call(gt)==="[object Array]"&&(gt=gt.reduce(function(hi,Mi){return hi.concat(Rn.splitTextToSize(Mi,An))},[])):gt=Array.isArray(gt)?gt:[gt];for(var Zr=0;Zr<gt.length;Zr++)mr<(Rr=this.getStringUnitWidth(gt[Zr],{font:Xr})*Qr)&&(mr=Rr);return mr!==0&&(Kn=gt.length),{w:mr/=dn,h:Math.max((Kn*Qr*this.getLineHeightFactor()-Qr*(this.getLineHeightFactor()-1))/dn,0)}},it.cellAddPage=function(){Ye.call(this),this.addPage();var gt=this.internal.__cell__.margins||Me;return this.internal.__cell__.lastCell=new qe(gt.left,gt.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var at=it.cell=function(){var gt;gt=arguments[0]instanceof qe?arguments[0]:new qe(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),Ye.call(this);var hr=this.internal.__cell__.lastCell,Qr=this.internal.__cell__.padding,Xr=this.internal.__cell__.margins||Me,dn=this.internal.__cell__.tableHeaderRow,mr=this.internal.__cell__.printHeaders;return hr.lineNumber!==void 0&&(hr.lineNumber===gt.lineNumber?(gt.x=(hr.x||0)+(hr.width||0),gt.y=hr.y||0):hr.y+hr.height+gt.height+Xr.bottom>this.getPageHeight()?(this.cellAddPage(),gt.y=Xr.top,mr&&dn&&(this.printHeaderRow(gt.lineNumber,!0),gt.y+=dn[0].height)):gt.y=hr.y+hr.height||gt.y),gt.text[0]!==void 0&&(this.rect(gt.x,gt.y,gt.width,gt.height,je===!0?"FD":void 0),gt.align==="right"?this.text(gt.text,gt.x+gt.width-Qr,gt.y+Qr,{align:"right",baseline:"top"}):gt.align==="center"?this.text(gt.text,gt.x+gt.width/2,gt.y+Qr,{align:"center",baseline:"top",maxWidth:gt.width-Qr-Qr}):this.text(gt.text,gt.x+Qr,gt.y+Qr,{align:"left",baseline:"top",maxWidth:gt.width-Qr-Qr})),this.internal.__cell__.lastCell=gt,this};it.table=function(gt,hr,Qr,Xr,dn){if(Ye.call(this),!Qr)throw new Error("No data for PDF table.");var mr,Kn,Rr,Rn,An=[],Zr=[],hi=[],Mi={},Zi={},qr=[],xn=[],zn=(dn=dn||{}).autoSize||!1,Ht=dn.printHeaders!==!1,Tt=dn.css&&dn.css["font-size"]!==void 0?16*dn.css["font-size"]:dn.fontSize||12,Dt=dn.margins||Object.assign({width:this.getPageWidth()},Me),Bt=typeof dn.padding=="number"?dn.padding:3,jt=dn.headerBackgroundColor||"#c8c8c8",Ot=dn.headerTextColor||"#000";if(rt.call(this),this.internal.__cell__.printHeaders=Ht,this.internal.__cell__.margins=Dt,this.internal.__cell__.table_font_size=Tt,this.internal.__cell__.padding=Bt,this.internal.__cell__.headerBackgroundColor=jt,this.internal.__cell__.headerTextColor=Ot,this.setFontSize(Tt),Xr==null)Zr=An=Object.keys(Qr[0]),hi=An.map(function(){return"left"});else if(Array.isArray(Xr)&&x()(Xr[0])==="object")for(An=Xr.map(function(Ln){return Ln.name}),Zr=Xr.map(function(Ln){return Ln.prompt||Ln.name||""}),hi=Xr.map(function(Ln){return Ln.align||"left"}),mr=0;mr<Xr.length;mr+=1)Zi[Xr[mr].name]=Xr[mr].width*(19.049976/25.4);else Array.isArray(Xr)&&typeof Xr[0]=="string"&&(Zr=An=Xr,hi=An.map(function(){return"left"}));if(zn||Array.isArray(Xr)&&typeof Xr[0]=="string")for(mr=0;mr<An.length;mr+=1){for(Mi[Rn=An[mr]]=Qr.map(function(Ln){return Ln[Rn]}),this.setFont(void 0,"bold"),qr.push(this.getTextDimensions(Zr[mr],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),Kn=Mi[Rn],this.setFont(void 0,"normal"),Rr=0;Rr<Kn.length;Rr+=1)qr.push(this.getTextDimensions(Kn[Rr],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Zi[Rn]=Math.max.apply(null,qr)+Bt+Bt,qr=[]}if(Ht){var nr={};for(mr=0;mr<An.length;mr+=1)nr[An[mr]]={},nr[An[mr]].text=Zr[mr],nr[An[mr]].align=hi[mr];var pr=St.call(this,nr,Zi);xn=An.map(function(Ln){return new qe(gt,hr,Zi[Ln],pr,nr[Ln].text,void 0,nr[Ln].align)}),this.setTableHeaderRow(xn),this.printHeaderRow(1,!1)}var Ar=Xr.reduce(function(Ln,ci){return Ln[ci.name]=ci.align,Ln},{});for(mr=0;mr<Qr.length;mr+=1){"rowStart"in dn&&dn.rowStart instanceof Function&&dn.rowStart({row:mr,data:Qr[mr]},this);var Nr=St.call(this,Qr[mr],Zi);for(Rr=0;Rr<An.length;Rr+=1){var Hn=Qr[mr][An[Rr]];"cellStart"in dn&&dn.cellStart instanceof Function&&dn.cellStart({row:mr,col:Rr,data:Hn},this),at.call(this,new qe(gt,hr,Zi[An[Rr]],Nr,Hn,mr+2,Ar[An[Rr]]))}}return this.internal.__cell__.table_x=gt,this.internal.__cell__.table_y=hr,this};var St=function(hr,Qr){var Xr=this.internal.__cell__.padding,dn=this.internal.__cell__.table_font_size,mr=this.internal.scaleFactor;return Object.keys(hr).map(function(Kn){var Rr=hr[Kn];return this.splitTextToSize(Rr.hasOwnProperty("text")?Rr.text:Rr,Qr[Kn]-Xr-Xr)},this).map(function(Kn){return this.getLineHeightFactor()*Kn.length*dn/mr+Xr+Xr},this).reduce(function(Kn,Rr){return Math.max(Kn,Rr)},0)};it.setTableHeaderRow=function(gt){Ye.call(this),this.internal.__cell__.tableHeaderRow=gt},it.printHeaderRow=function(gt,hr){if(Ye.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var Qr;if(je=!0,typeof this.internal.__cell__.headerFunction=="function"){var Xr=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new qe(Xr[0],Xr[1],Xr[2],Xr[3],void 0,-1)}this.setFont(void 0,"bold");for(var dn=[],mr=0;mr<this.internal.__cell__.tableHeaderRow.length;mr+=1){Qr=this.internal.__cell__.tableHeaderRow[mr].clone(),hr&&(Qr.y=this.internal.__cell__.margins.top||0,dn.push(Qr)),Qr.lineNumber=gt;var Kn=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),at.call(this,Qr),this.setTextColor(Kn)}dn.length>0&&this.setTableHeaderRow(dn),this.setFont(void 0,"normal"),je=!1}}(z.API);var ft={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Mt=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],mt=ae(Mt),or=[100,200,300,400,500,600,700,800,900],vr=ae(or);function fn(it){var Me=it.family.replace(/"|'/g,"").toLowerCase(),je=function(qe){return ft[qe=qe||"normal"]?qe:"normal"}(it.style),Ye=function(qe){if(!qe)return 400;if(typeof qe=="number")return qe>=100&&qe<=900&&qe%100==0?qe:400;if(/^\d00$/.test(qe))return parseInt(qe);switch(qe){case"bold":return 700;case"normal":default:return 400}}(it.weight),rt=function(qe){return typeof mt[qe=qe||"normal"]=="number"?qe:"normal"}(it.stretch);return{family:Me,style:je,weight:Ye,stretch:rt,src:it.src||[],ref:it.ref||{name:Me,style:[rt,je,Ye].join(" ")}}}function sr(it,Me,je,Ye){var rt;for(rt=je;rt>=0&&rt<Me.length;rt+=Ye)if(it[Me[rt]])return it[Me[rt]];for(rt=je;rt>=0&&rt<Me.length;rt-=Ye)if(it[Me[rt]])return it[Me[rt]]}var Ir={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},lr={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Wt(it){return[it.stretch,it.style,it.weight,it.family].join(" ")}function xt(it,Me,je){for(var Ye=(je=je||{}).defaultFontFamily||"times",rt=Object.assign({},Ir,je.genericFontFamilies||{}),qe=null,at=null,St=0;St<Me.length;++St)if(rt[(qe=fn(Me[St])).family]&&(qe.family=rt[qe.family]),it.hasOwnProperty(qe.family)){at=it[qe.family];break}if(!(at=at||it[Ye]))throw new Error("Could not find a font-family for the rule '"+Wt(qe)+"' and default family '"+Ye+"'.");if(at=function(gt,hr){if(hr[gt])return hr[gt];var Qr=mt[gt],Xr=Qr<=mt.normal?-1:1,dn=sr(hr,Mt,Qr,Xr);if(!dn)throw new Error("Could not find a matching font-stretch value for "+gt);return dn}(qe.stretch,at),at=function(gt,hr){if(hr[gt])return hr[gt];for(var Qr=ft[gt],Xr=0;Xr<Qr.length;++Xr)if(hr[Qr[Xr]])return hr[Qr[Xr]];throw new Error("Could not find a matching font-style for "+gt)}(qe.style,at),!(at=function(gt,hr){if(hr[gt])return hr[gt];if(gt===400&&hr[500])return hr[500];if(gt===500&&hr[400])return hr[400];var Qr=vr[gt],Xr=sr(hr,or,Qr,gt<400?-1:1);if(!Xr)throw new Error("Could not find a matching font-weight for value "+gt);return Xr}(qe.weight,at)))throw new Error("Failed to resolve a font for the rule '"+Wt(qe)+"'.");return at}function rn(it){return it.trimLeft()}function Dn(it,Me){for(var je=0;je<it.length;){if(it.charAt(je)===Me)return[it.substring(0,je),it.substring(je+1)];je+=1}return null}function Xn(it){var Me=it.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return Me===null?null:[Me[0],it.substring(Me[0].length)]}var ri,Ui,Bn,Jn=["times"];!function(it){var Me,je,Ye,rt,qe,at,St,gt,hr,Qr=function(Fr){return Fr=Fr||{},this.isStrokeTransparent=Fr.isStrokeTransparent||!1,this.strokeOpacity=Fr.strokeOpacity||1,this.strokeStyle=Fr.strokeStyle||"#000000",this.fillStyle=Fr.fillStyle||"#000000",this.isFillTransparent=Fr.isFillTransparent||!1,this.fillOpacity=Fr.fillOpacity||1,this.font=Fr.font||"10px sans-serif",this.textBaseline=Fr.textBaseline||"alphabetic",this.textAlign=Fr.textAlign||"left",this.lineWidth=Fr.lineWidth||1,this.lineJoin=Fr.lineJoin||"miter",this.lineCap=Fr.lineCap||"butt",this.path=Fr.path||[],this.transform=Fr.transform!==void 0?Fr.transform.clone():new gt,this.globalCompositeOperation=Fr.globalCompositeOperation||"normal",this.globalAlpha=Fr.globalAlpha||1,this.clip_path=Fr.clip_path||[],this.currentPoint=Fr.currentPoint||new at,this.miterLimit=Fr.miterLimit||10,this.lastPoint=Fr.lastPoint||new at,this.lineDashOffset=Fr.lineDashOffset||0,this.lineDash=Fr.lineDash||[],this.margin=Fr.margin||[0,0,0,0],this.prevPageLastElemOffset=Fr.prevPageLastElemOffset||0,this.ignoreClearRect=typeof Fr.ignoreClearRect!="boolean"||Fr.ignoreClearRect,this};it.events.push(["initialized",function(){this.context2d=new Xr(this),Me=this.internal.f2,je=this.internal.getCoordinateString,Ye=this.internal.getVerticalCoordinateString,rt=this.internal.getHorizontalCoordinate,qe=this.internal.getVerticalCoordinate,at=this.internal.Point,St=this.internal.Rectangle,gt=this.internal.Matrix,hr=new Qr}]);var Xr=function(Fr){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var En=Fr;Object.defineProperty(this,"pdf",{get:function(){return En}});var Wn=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Wn},set:function(Fi){Wn=Boolean(Fi)}});var Yn=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Yn},set:function(Fi){Yn=Boolean(Fi)}});var ii=0;Object.defineProperty(this,"posX",{get:function(){return ii},set:function(Fi){isNaN(Fi)||(ii=Fi)}});var xi=0;Object.defineProperty(this,"posY",{get:function(){return xi},set:function(Fi){isNaN(Fi)||(xi=Fi)}}),Object.defineProperty(this,"margin",{get:function(){return hr.margin},set:function(Fi){var ha;typeof Fi=="number"?ha=[Fi,Fi,Fi,Fi]:((ha=new Array(4))[0]=Fi[0],ha[1]=Fi.length>=2?Fi[1]:ha[0],ha[2]=Fi.length>=3?Fi[2]:ha[0],ha[3]=Fi.length>=4?Fi[3]:ha[1]),hr.margin=ha}});var Ni=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Ni},set:function(Fi){Ni=Fi}});var Li=0;Object.defineProperty(this,"lastBreak",{get:function(){return Li},set:function(Fi){Li=Fi}});var oa=[];Object.defineProperty(this,"pageBreaks",{get:function(){return oa},set:function(Fi){oa=Fi}}),Object.defineProperty(this,"ctx",{get:function(){return hr},set:function(Fi){Fi instanceof Qr&&(hr=Fi)}}),Object.defineProperty(this,"path",{get:function(){return hr.path},set:function(Fi){hr.path=Fi}});var ma=[];Object.defineProperty(this,"ctxStack",{get:function(){return ma},set:function(Fi){ma=Fi}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Fi){var ha;ha=dn(Fi),this.ctx.fillStyle=ha.style,this.ctx.isFillTransparent=ha.a===0,this.ctx.fillOpacity=ha.a,this.pdf.setFillColor(ha.r,ha.g,ha.b,{a:ha.a}),this.pdf.setTextColor(ha.r,ha.g,ha.b,{a:ha.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Fi){var ha=dn(Fi);this.ctx.strokeStyle=ha.style,this.ctx.isStrokeTransparent=ha.a===0,this.ctx.strokeOpacity=ha.a,ha.a===0?this.pdf.setDrawColor(255,255,255):(ha.a,this.pdf.setDrawColor(ha.r,ha.g,ha.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Fi){["butt","round","square"].indexOf(Fi)!==-1&&(this.ctx.lineCap=Fi,this.pdf.setLineCap(Fi))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Fi){isNaN(Fi)||(this.ctx.lineWidth=Fi,this.pdf.setLineWidth(Fi))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Fi){["bevel","round","miter"].indexOf(Fi)!==-1&&(this.ctx.lineJoin=Fi,this.pdf.setLineJoin(Fi))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Fi){isNaN(Fi)||(this.ctx.miterLimit=Fi,this.pdf.setMiterLimit(Fi))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Fi){this.ctx.textBaseline=Fi}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Fi){["right","end","center","left","start"].indexOf(Fi)!==-1&&(this.ctx.textAlign=Fi)}});var ia=null;function ba(On,Fi){if(ia===null){var ha=function(ea){var aa=[];return Object.keys(ea).forEach(function(Or){ea[Or].forEach(function(wr){var Sn=null;switch(wr){case"bold":Sn={family:Or,weight:"bold"};break;case"italic":Sn={family:Or,style:"italic"};break;case"bolditalic":Sn={family:Or,weight:"bold",style:"italic"};break;case"":case"normal":Sn={family:Or}}Sn!==null&&(Sn.ref={name:Or,style:wr},aa.push(Sn))})}),aa}(On.getFontList());ia=function(ea){for(var aa={},Or=0;Or<ea.length;++Or){var wr=fn(ea[Or]),Sn=wr.family,cr=wr.stretch,Lr=wr.style,Wr=wr.weight;aa[Sn]=aa[Sn]||{},aa[Sn][cr]=aa[Sn][cr]||{},aa[Sn][cr][Lr]=aa[Sn][cr][Lr]||{},aa[Sn][cr][Lr][Wr]=wr}return aa}(ha.concat(Fi))}return ia}var vi=null;Object.defineProperty(this,"fontFaces",{get:function(){return vi},set:function(Fi){ia=null,vi=Fi}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Fi){var ha;if(this.ctx.font=Fi,(ha=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(Fi))!==null){var ea=ha[1],aa=(ha[2],ha[3]),Or=ha[4],wr=(ha[5],ha[6]),Sn=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Or)[2];Or=Sn==="px"?Math.floor(parseFloat(Or)*this.pdf.internal.scaleFactor):Sn==="em"?Math.floor(parseFloat(Or)*this.pdf.getFontSize()):Math.floor(parseFloat(Or)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Or);var cr=function(_r){var $r,yn,Tn=[],vn=_r.trim();if(vn==="")return Jn;if(vn in lr)return[lr[vn]];for(;vn!=="";){switch(yn=null,$r=(vn=rn(vn)).charAt(0)){case'"':case"'":yn=Dn(vn.substring(1),$r);break;default:yn=Xn(vn)}if(yn===null)return Jn;if(Tn.push(yn[0]),(vn=rn(yn[1]))!==""&&vn.charAt(0)!==",")return Jn;vn=vn.replace(/^,/,"")}return Tn}(wr);if(this.fontFaces){var Lr=xt(ba(this.pdf,this.fontFaces),cr.map(function(_r){return{family:_r,stretch:"normal",weight:aa,style:ea}}));this.pdf.setFont(Lr.ref.name,Lr.ref.style)}else{var Wr="";(aa==="bold"||parseInt(aa,10)>=700||ea==="bold")&&(Wr="bold"),ea==="italic"&&(Wr+="italic"),Wr.length===0&&(Wr="normal");for(var on="",Nn={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Et=0;Et<cr.length;Et++){if(this.pdf.internal.getFont(cr[Et],Wr,{noFallback:!0,disableWarning:!0})!==void 0){on=cr[Et];break}if(Wr==="bolditalic"&&this.pdf.internal.getFont(cr[Et],"bold",{noFallback:!0,disableWarning:!0})!==void 0)on=cr[Et],Wr="bold";else if(this.pdf.internal.getFont(cr[Et],"normal",{noFallback:!0,disableWarning:!0})!==void 0){on=cr[Et],Wr="normal";break}}if(on===""){for(var Cr=0;Cr<cr.length;Cr++)if(Nn[cr[Cr]]){on=Nn[cr[Cr]];break}}on=on===""?"Times":on,this.pdf.setFont(on,Wr)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Fi){this.ctx.globalCompositeOperation=Fi}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Fi){this.ctx.globalAlpha=Fi}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Fi){this.ctx.lineDashOffset=Fi,ci.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Fi){this.ctx.lineDash=Fi,ci.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Fi){this.ctx.ignoreClearRect=Boolean(Fi)}})};Xr.prototype.setLineDash=function(hn){this.lineDash=hn},Xr.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Xr.prototype.fill=function(){Mi.call(this,"fill",!1)},Xr.prototype.stroke=function(){Mi.call(this,"stroke",!1)},Xr.prototype.beginPath=function(){this.path=[{type:"begin"}]},Xr.prototype.moveTo=function(hn,Fr){if(isNaN(hn)||isNaN(Fr))throw h.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var En=this.ctx.transform.applyToPoint(new at(hn,Fr));this.path.push({type:"mt",x:En.x,y:En.y}),this.ctx.lastPoint=new at(hn,Fr)},Xr.prototype.closePath=function(){var hn=new at(0,0),Fr=0;for(Fr=this.path.length-1;Fr!==-1;Fr--)if(this.path[Fr].type==="begin"&&x()(this.path[Fr+1])==="object"&&typeof this.path[Fr+1].x=="number"){hn=new at(this.path[Fr+1].x,this.path[Fr+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new at(hn.x,hn.y)},Xr.prototype.lineTo=function(hn,Fr){if(isNaN(hn)||isNaN(Fr))throw h.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var En=this.ctx.transform.applyToPoint(new at(hn,Fr));this.path.push({type:"lt",x:En.x,y:En.y}),this.ctx.lastPoint=new at(En.x,En.y)},Xr.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),Mi.call(this,null,!0)},Xr.prototype.quadraticCurveTo=function(hn,Fr,En,Wn){if(isNaN(En)||isNaN(Wn)||isNaN(hn)||isNaN(Fr))throw h.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Yn=this.ctx.transform.applyToPoint(new at(En,Wn)),ii=this.ctx.transform.applyToPoint(new at(hn,Fr));this.path.push({type:"qct",x1:ii.x,y1:ii.y,x:Yn.x,y:Yn.y}),this.ctx.lastPoint=new at(Yn.x,Yn.y)},Xr.prototype.bezierCurveTo=function(hn,Fr,En,Wn,Yn,ii){if(isNaN(Yn)||isNaN(ii)||isNaN(hn)||isNaN(Fr)||isNaN(En)||isNaN(Wn))throw h.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var xi=this.ctx.transform.applyToPoint(new at(Yn,ii)),Ni=this.ctx.transform.applyToPoint(new at(hn,Fr)),Li=this.ctx.transform.applyToPoint(new at(En,Wn));this.path.push({type:"bct",x1:Ni.x,y1:Ni.y,x2:Li.x,y2:Li.y,x:xi.x,y:xi.y}),this.ctx.lastPoint=new at(xi.x,xi.y)},Xr.prototype.arc=function(hn,Fr,En,Wn,Yn,ii){if(isNaN(hn)||isNaN(Fr)||isNaN(En)||isNaN(Wn)||isNaN(Yn))throw h.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ii=Boolean(ii),!this.ctx.transform.isIdentity){var xi=this.ctx.transform.applyToPoint(new at(hn,Fr));hn=xi.x,Fr=xi.y;var Ni=this.ctx.transform.applyToPoint(new at(0,En)),Li=this.ctx.transform.applyToPoint(new at(0,0));En=Math.sqrt(Math.pow(Ni.x-Li.x,2)+Math.pow(Ni.y-Li.y,2))}Math.abs(Yn-Wn)>=2*Math.PI&&(Wn=0,Yn=2*Math.PI),this.path.push({type:"arc",x:hn,y:Fr,radius:En,startAngle:Wn,endAngle:Yn,counterclockwise:ii})},Xr.prototype.arcTo=function(hn,Fr,En,Wn,Yn){throw new Error("arcTo not implemented.")},Xr.prototype.rect=function(hn,Fr,En,Wn){if(isNaN(hn)||isNaN(Fr)||isNaN(En)||isNaN(Wn))throw h.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(hn,Fr),this.lineTo(hn+En,Fr),this.lineTo(hn+En,Fr+Wn),this.lineTo(hn,Fr+Wn),this.lineTo(hn,Fr),this.lineTo(hn+En,Fr),this.lineTo(hn,Fr)},Xr.prototype.fillRect=function(hn,Fr,En,Wn){if(isNaN(hn)||isNaN(Fr)||isNaN(En)||isNaN(Wn))throw h.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!mr.call(this)){var Yn={};this.lineCap!=="butt"&&(Yn.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Yn.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(hn,Fr,En,Wn),this.fill(),Yn.hasOwnProperty("lineCap")&&(this.lineCap=Yn.lineCap),Yn.hasOwnProperty("lineJoin")&&(this.lineJoin=Yn.lineJoin)}},Xr.prototype.strokeRect=function(hn,Fr,En,Wn){if(isNaN(hn)||isNaN(Fr)||isNaN(En)||isNaN(Wn))throw h.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");Kn.call(this)||(this.beginPath(),this.rect(hn,Fr,En,Wn),this.stroke())},Xr.prototype.clearRect=function(hn,Fr,En,Wn){if(isNaN(hn)||isNaN(Fr)||isNaN(En)||isNaN(Wn))throw h.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(hn,Fr,En,Wn))},Xr.prototype.save=function(hn){hn=typeof hn!="boolean"||hn;for(var Fr=this.pdf.internal.getCurrentPageInfo().pageNumber,En=0;En<this.pdf.internal.getNumberOfPages();En++)this.pdf.setPage(En+1),this.pdf.internal.out("q");if(this.pdf.setPage(Fr),hn){this.ctx.fontSize=this.pdf.internal.getFontSize();var Wn=new Qr(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Wn}},Xr.prototype.restore=function(hn){hn=typeof hn!="boolean"||hn;for(var Fr=this.pdf.internal.getCurrentPageInfo().pageNumber,En=0;En<this.pdf.internal.getNumberOfPages();En++)this.pdf.setPage(En+1),this.pdf.internal.out("Q");this.pdf.setPage(Fr),hn&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},Xr.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var dn=function(Fr){var En,Wn,Yn,ii;if(Fr.isCanvasGradient===!0&&(Fr=Fr.getColor()),!Fr)return{r:0,g:0,b:0,a:0,style:Fr};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(Fr))En=0,Wn=0,Yn=0,ii=0;else{var xi=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Fr);if(xi!==null)En=parseInt(xi[1]),Wn=parseInt(xi[2]),Yn=parseInt(xi[3]),ii=1;else if((xi=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Fr))!==null)En=parseInt(xi[1]),Wn=parseInt(xi[2]),Yn=parseInt(xi[3]),ii=parseFloat(xi[4]);else{if(ii=1,typeof Fr=="string"&&Fr.charAt(0)!=="#"){var Ni=new l(Fr);Fr=Ni.ok?Ni.toHex():"#000000"}Fr.length===4?(En=Fr.substring(1,2),En+=En,Wn=Fr.substring(2,3),Wn+=Wn,Yn=Fr.substring(3,4),Yn+=Yn):(En=Fr.substring(1,3),Wn=Fr.substring(3,5),Yn=Fr.substring(5,7)),En=parseInt(En,16),Wn=parseInt(Wn,16),Yn=parseInt(Yn,16)}}return{r:En,g:Wn,b:Yn,a:ii,style:Fr}},mr=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},Kn=function(){return Boolean(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Xr.prototype.fillText=function(hn,Fr,En,Wn){if(isNaN(Fr)||isNaN(En)||typeof hn!="string")throw h.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Wn=isNaN(Wn)?void 0:Wn,!mr.call(this)){var Yn=Nr(this.ctx.transform.rotation),ii=this.ctx.transform.scaleX;Bt.call(this,{text:hn,x:Fr,y:En,scale:ii,angle:Yn,align:this.textAlign,maxWidth:Wn})}},Xr.prototype.strokeText=function(hn,Fr,En,Wn){if(isNaN(Fr)||isNaN(En)||typeof hn!="string")throw h.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!Kn.call(this)){Wn=isNaN(Wn)?void 0:Wn;var Yn=Nr(this.ctx.transform.rotation),ii=this.ctx.transform.scaleX;Bt.call(this,{text:hn,x:Fr,y:En,scale:ii,renderingMode:"stroke",angle:Yn,align:this.textAlign,maxWidth:Wn})}},Xr.prototype.measureText=function(hn){if(typeof hn!="string")throw h.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Fr=this.pdf,En=this.pdf.internal.scaleFactor,Wn=Fr.internal.getFontSize(),Yn=Fr.getStringUnitWidth(hn)*Wn/Fr.internal.scaleFactor,ii=function(Ni){var Li=(Ni=Ni||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Li}}),this};return new ii({width:Yn*=Math.round(96*En/72*1e4)/1e4})},Xr.prototype.scale=function(hn,Fr){if(isNaN(hn)||isNaN(Fr))throw h.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var En=new gt(hn,0,0,Fr,0,0);this.ctx.transform=this.ctx.transform.multiply(En)},Xr.prototype.rotate=function(hn){if(isNaN(hn))throw h.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Fr=new gt(Math.cos(hn),Math.sin(hn),-Math.sin(hn),Math.cos(hn),0,0);this.ctx.transform=this.ctx.transform.multiply(Fr)},Xr.prototype.translate=function(hn,Fr){if(isNaN(hn)||isNaN(Fr))throw h.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var En=new gt(1,0,0,1,hn,Fr);this.ctx.transform=this.ctx.transform.multiply(En)},Xr.prototype.transform=function(hn,Fr,En,Wn,Yn,ii){if(isNaN(hn)||isNaN(Fr)||isNaN(En)||isNaN(Wn)||isNaN(Yn)||isNaN(ii))throw h.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var xi=new gt(hn,Fr,En,Wn,Yn,ii);this.ctx.transform=this.ctx.transform.multiply(xi)},Xr.prototype.setTransform=function(hn,Fr,En,Wn,Yn,ii){hn=isNaN(hn)?1:hn,Fr=isNaN(Fr)?0:Fr,En=isNaN(En)?0:En,Wn=isNaN(Wn)?1:Wn,Yn=isNaN(Yn)?0:Yn,ii=isNaN(ii)?0:ii,this.ctx.transform=new gt(hn,Fr,En,Wn,Yn,ii)};var Rr=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Xr.prototype.drawImage=function(hn,Fr,En,Wn,Yn,ii,xi,Ni,Li){var oa=this.pdf.getImageProperties(hn),ma=1,ia=1,ba=1,vi=1;Wn!==void 0&&Ni!==void 0&&(ba=Ni/Wn,vi=Li/Yn,ma=oa.width/Wn*Ni/Wn,ia=oa.height/Yn*Li/Yn),ii===void 0&&(ii=Fr,xi=En,Fr=0,En=0),Wn!==void 0&&Ni===void 0&&(Ni=Wn,Li=Yn),Wn===void 0&&Ni===void 0&&(Ni=oa.width,Li=oa.height);for(var On,Fi=this.ctx.transform.decompose(),ha=Nr(Fi.rotate.shx),ea=new gt,aa=(ea=(ea=(ea=ea.multiply(Fi.translate)).multiply(Fi.skew)).multiply(Fi.scale)).applyToRectangle(new St(ii-Fr*ba,xi-En*vi,Wn*ma,Yn*ia)),Or=Rn.call(this,aa),wr=[],Sn=0;Sn<Or.length;Sn+=1)wr.indexOf(Or[Sn])===-1&&wr.push(Or[Sn]);if(hi(wr),this.autoPaging)for(var cr=wr[0],Lr=wr[wr.length-1],Wr=cr;Wr<Lr+1;Wr++){this.pdf.setPage(Wr);var on=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Nn=Wr===1?this.posY+this.margin[0]:this.margin[0],Et=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Cr=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],_r=Wr===1?0:Et+(Wr-2)*Cr;if(this.ctx.clip_path.length!==0){var $r=this.path;On=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Zr(On,this.posX+this.margin[3],-_r+Nn+this.ctx.prevPageLastElemOffset),Zi.call(this,"fill",!0),this.path=$r}var yn=JSON.parse(JSON.stringify(aa));yn=Zr([yn],this.posX+this.margin[3],-_r+Nn+this.ctx.prevPageLastElemOffset)[0];var Tn=(Wr>cr||Wr<Lr)&&Rr.call(this);Tn&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],on,Cr,null).clip().discardPath()),this.pdf.addImage(hn,"JPEG",yn.x,yn.y,yn.w,yn.h,null,null,ha),Tn&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(hn,"JPEG",aa.x,aa.y,aa.w,aa.h,null,null,ha)};var Rn=function(Fr,En,Wn){var Yn=[];En=En||this.pdf.internal.pageSize.width,Wn=Wn||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var ii=this.posY+this.ctx.prevPageLastElemOffset;switch(Fr.type){default:case"mt":case"lt":Yn.push(Math.floor((Fr.y+ii)/Wn)+1);break;case"arc":Yn.push(Math.floor((Fr.y+ii-Fr.radius)/Wn)+1),Yn.push(Math.floor((Fr.y+ii+Fr.radius)/Wn)+1);break;case"qct":var xi=Hn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Fr.x1,Fr.y1,Fr.x,Fr.y);Yn.push(Math.floor((xi.y+ii)/Wn)+1),Yn.push(Math.floor((xi.y+xi.h+ii)/Wn)+1);break;case"bct":var Ni=Ln(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Fr.x1,Fr.y1,Fr.x2,Fr.y2,Fr.x,Fr.y);Yn.push(Math.floor((Ni.y+ii)/Wn)+1),Yn.push(Math.floor((Ni.y+Ni.h+ii)/Wn)+1);break;case"rect":Yn.push(Math.floor((Fr.y+ii)/Wn)+1),Yn.push(Math.floor((Fr.y+Fr.h+ii)/Wn)+1)}for(var Li=0;Li<Yn.length;Li+=1)for(;this.pdf.internal.getNumberOfPages()<Yn[Li];)An.call(this);return Yn},An=function(){var Fr=this.fillStyle,En=this.strokeStyle,Wn=this.font,Yn=this.lineCap,ii=this.lineWidth,xi=this.lineJoin;this.pdf.addPage(),this.fillStyle=Fr,this.strokeStyle=En,this.font=Wn,this.lineCap=Yn,this.lineWidth=ii,this.lineJoin=xi},Zr=function(Fr,En,Wn){for(var Yn=0;Yn<Fr.length;Yn++)switch(Fr[Yn].type){case"bct":Fr[Yn].x2+=En,Fr[Yn].y2+=Wn;case"qct":Fr[Yn].x1+=En,Fr[Yn].y1+=Wn;case"mt":case"lt":case"arc":default:Fr[Yn].x+=En,Fr[Yn].y+=Wn}return Fr},hi=function(Fr){return Fr.sort(function(En,Wn){return En-Wn})},Mi=function(Fr,En){for(var Wn,Yn,ii=this.fillStyle,xi=this.strokeStyle,Ni=this.lineCap,Li=this.lineWidth,oa=Math.abs(Li*this.ctx.transform.scaleX),ma=this.lineJoin,ia=JSON.parse(JSON.stringify(this.path)),ba=JSON.parse(JSON.stringify(this.path)),vi=[],On=0;On<ba.length;On++)if(ba[On].x!==void 0)for(var Fi=Rn.call(this,ba[On]),ha=0;ha<Fi.length;ha+=1)vi.indexOf(Fi[ha])===-1&&vi.push(Fi[ha]);for(var ea=0;ea<vi.length;ea++)for(;this.pdf.internal.getNumberOfPages()<vi[ea];)An.call(this);if(hi(vi),this.autoPaging)for(var aa=vi[0],Or=vi[vi.length-1],wr=aa;wr<Or+1;wr++){this.pdf.setPage(wr),this.fillStyle=ii,this.strokeStyle=xi,this.lineCap=Ni,this.lineWidth=oa,this.lineJoin=ma;var Sn=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],cr=wr===1?this.posY+this.margin[0]:this.margin[0],Lr=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Wr=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],on=wr===1?0:Lr+(wr-2)*Wr;if(this.ctx.clip_path.length!==0){var Nn=this.path;Wn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Zr(Wn,this.posX+this.margin[3],-on+cr+this.ctx.prevPageLastElemOffset),Zi.call(this,Fr,!0),this.path=Nn}if(Yn=JSON.parse(JSON.stringify(ia)),this.path=Zr(Yn,this.posX+this.margin[3],-on+cr+this.ctx.prevPageLastElemOffset),En===!1||wr===0){var Et=(wr>aa||wr<Or)&&Rr.call(this);Et&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Sn,Wr,null).clip().discardPath()),Zi.call(this,Fr,En),Et&&this.pdf.restoreGraphicsState()}this.lineWidth=Li}else this.lineWidth=oa,Zi.call(this,Fr,En),this.lineWidth=Li;this.path=ia},Zi=function(Fr,En){if((Fr!=="stroke"||En||!Kn.call(this))&&(Fr==="stroke"||En||!mr.call(this))){for(var Wn,Yn,ii=[],xi=this.path,Ni=0;Ni<xi.length;Ni++){var Li=xi[Ni];switch(Li.type){case"begin":ii.push({begin:!0});break;case"close":ii.push({close:!0});break;case"mt":ii.push({start:Li,deltas:[],abs:[]});break;case"lt":var oa=ii.length;if(xi[Ni-1]&&!isNaN(xi[Ni-1].x)&&(Wn=[Li.x-xi[Ni-1].x,Li.y-xi[Ni-1].y],oa>0)){for(;oa>=0;oa--)if(ii[oa-1].close!==!0&&ii[oa-1].begin!==!0){ii[oa-1].deltas.push(Wn),ii[oa-1].abs.push(Li);break}}break;case"bct":Wn=[Li.x1-xi[Ni-1].x,Li.y1-xi[Ni-1].y,Li.x2-xi[Ni-1].x,Li.y2-xi[Ni-1].y,Li.x-xi[Ni-1].x,Li.y-xi[Ni-1].y],ii[ii.length-1].deltas.push(Wn);break;case"qct":var ma=xi[Ni-1].x+2/3*(Li.x1-xi[Ni-1].x),ia=xi[Ni-1].y+2/3*(Li.y1-xi[Ni-1].y),ba=Li.x+2/3*(Li.x1-Li.x),vi=Li.y+2/3*(Li.y1-Li.y),On=Li.x,Fi=Li.y;Wn=[ma-xi[Ni-1].x,ia-xi[Ni-1].y,ba-xi[Ni-1].x,vi-xi[Ni-1].y,On-xi[Ni-1].x,Fi-xi[Ni-1].y],ii[ii.length-1].deltas.push(Wn);break;case"arc":ii.push({deltas:[],abs:[],arc:!0}),Array.isArray(ii[ii.length-1].abs)&&ii[ii.length-1].abs.push(Li)}}Yn=En?null:Fr==="stroke"?"stroke":"fill";for(var ha=!1,ea=0;ea<ii.length;ea++)if(ii[ea].arc)for(var aa=ii[ea].abs,Or=0;Or<aa.length;Or++){var wr=aa[Or];wr.type==="arc"?zn.call(this,wr.x,wr.y,wr.radius,wr.startAngle,wr.endAngle,wr.counterclockwise,void 0,En,!ha):jt.call(this,wr.x,wr.y),ha=!0}else if(ii[ea].close===!0)this.pdf.internal.out("h"),ha=!1;else if(ii[ea].begin!==!0){var Sn=ii[ea].start.x,cr=ii[ea].start.y;Ot.call(this,ii[ea].deltas,Sn,cr),ha=!0}Yn&&Ht.call(this,Yn),En&&Tt.call(this)}},qr=function(Fr){var En=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Wn=En*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Fr-Wn;case"top":return Fr+En-Wn;case"hanging":return Fr+En-2*Wn;case"middle":return Fr+En/2-Wn;case"ideographic":return Fr;case"alphabetic":default:return Fr}},xn=function(Fr){return Fr+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Xr.prototype.createLinearGradient=function(){var hn=function(){};return hn.colorStops=[],hn.addColorStop=function(Fr,En){this.colorStops.push([Fr,En])},hn.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},hn.isCanvasGradient=!0,hn},Xr.prototype.createPattern=function(){return this.createLinearGradient()},Xr.prototype.createRadialGradient=function(){return this.createLinearGradient()};var zn=function(Fr,En,Wn,Yn,ii,xi,Ni,Li,oa){for(var ma=pr.call(this,Wn,Yn,ii,xi),ia=0;ia<ma.length;ia++){var ba=ma[ia];ia===0&&(oa?Dt.call(this,ba.x1+Fr,ba.y1+En):jt.call(this,ba.x1+Fr,ba.y1+En)),nr.call(this,Fr,En,ba.x2,ba.y2,ba.x3,ba.y3,ba.x4,ba.y4)}Li?Tt.call(this):Ht.call(this,Ni)},Ht=function(Fr){switch(Fr){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Tt=function(){this.pdf.clip(),this.pdf.discardPath()},Dt=function(Fr,En){this.pdf.internal.out(je(Fr)+" "+Ye(En)+" m")},Bt=function(Fr){var En;switch(Fr.align){case"right":case"end":En="right";break;case"center":En="center";break;case"left":case"start":default:En="left"}var Wn=this.pdf.getTextDimensions(Fr.text),Yn=qr.call(this,Fr.y),ii=xn.call(this,Yn)-Wn.h,xi=this.ctx.transform.applyToPoint(new at(Fr.x,Yn)),Ni=this.ctx.transform.decompose(),Li=new gt;Li=(Li=(Li=Li.multiply(Ni.translate)).multiply(Ni.skew)).multiply(Ni.scale);for(var oa,ma,ia,ba=this.ctx.transform.applyToRectangle(new St(Fr.x,Yn,Wn.w,Wn.h)),vi=Li.applyToRectangle(new St(Fr.x,ii,Wn.w,Wn.h)),On=Rn.call(this,vi),Fi=[],ha=0;ha<On.length;ha+=1)Fi.indexOf(On[ha])===-1&&Fi.push(On[ha]);if(hi(Fi),this.autoPaging)for(var ea=Fi[0],aa=Fi[Fi.length-1],Or=ea;Or<aa+1;Or++){this.pdf.setPage(Or);var wr=Or===1?this.posY+this.margin[0]:this.margin[0],Sn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],cr=this.pdf.internal.pageSize.height-this.margin[2],Lr=cr-this.margin[0],Wr=this.pdf.internal.pageSize.width-this.margin[1],on=Wr-this.margin[3],Nn=Or===1?0:Sn+(Or-2)*Lr;if(this.ctx.clip_path.length!==0){var Et=this.path;oa=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Zr(oa,this.posX+this.margin[3],-1*Nn+wr),Zi.call(this,"fill",!0),this.path=Et}var Cr=Zr([JSON.parse(JSON.stringify(vi))],this.posX+this.margin[3],-Nn+wr+this.ctx.prevPageLastElemOffset)[0];Fr.scale>=.01&&(ma=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ma*Fr.scale),ia=this.lineWidth,this.lineWidth=ia*Fr.scale);var _r=this.autoPaging!=="text";if(_r||Cr.y+Cr.h<=cr){if(_r||Cr.y>=wr&&Cr.x<=Wr){var $r=_r?Fr.text:this.pdf.splitTextToSize(Fr.text,Fr.maxWidth||Wr-Cr.x)[0],yn=Zr([JSON.parse(JSON.stringify(ba))],this.posX+this.margin[3],-Nn+wr+this.ctx.prevPageLastElemOffset)[0],Tn=_r&&(Or>ea||Or<aa)&&Rr.call(this);Tn&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],on,Lr,null).clip().discardPath()),this.pdf.text($r,yn.x,yn.y,{angle:Fr.angle,align:En,renderingMode:Fr.renderingMode}),Tn&&this.pdf.restoreGraphicsState()}}else Cr.y<cr&&(this.ctx.prevPageLastElemOffset+=cr-Cr.y);Fr.scale>=.01&&(this.pdf.setFontSize(ma),this.lineWidth=ia)}else Fr.scale>=.01&&(ma=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ma*Fr.scale),ia=this.lineWidth,this.lineWidth=ia*Fr.scale),this.pdf.text(Fr.text,xi.x+this.posX,xi.y+this.posY,{angle:Fr.angle,align:En,renderingMode:Fr.renderingMode,maxWidth:Fr.maxWidth}),Fr.scale>=.01&&(this.pdf.setFontSize(ma),this.lineWidth=ia)},jt=function(Fr,En,Wn,Yn){Wn=Wn||0,Yn=Yn||0,this.pdf.internal.out(je(Fr+Wn)+" "+Ye(En+Yn)+" l")},Ot=function(Fr,En,Wn){return this.pdf.lines(Fr,En,Wn,null,null)},nr=function(Fr,En,Wn,Yn,ii,xi,Ni,Li){this.pdf.internal.out([Me(rt(Wn+Fr)),Me(qe(Yn+En)),Me(rt(ii+Fr)),Me(qe(xi+En)),Me(rt(Ni+Fr)),Me(qe(Li+En)),"c"].join(" "))},pr=function(Fr,En,Wn,Yn){for(var ii=2*Math.PI,xi=Math.PI/2;En>Wn;)En-=ii;var Ni=Math.abs(Wn-En);Ni<ii&&Yn&&(Ni=ii-Ni);for(var Li=[],oa=Yn?-1:1,ma=En;Ni>1e-5;){var ia=ma+oa*Math.min(Ni,xi);Li.push(Ar.call(this,Fr,ma,ia)),Ni-=Math.abs(ia-ma),ma=ia}return Li},Ar=function(Fr,En,Wn){var Yn=(Wn-En)/2,ii=Fr*Math.cos(Yn),xi=Fr*Math.sin(Yn),Ni=ii,Li=-xi,oa=Ni*Ni+Li*Li,ma=oa+Ni*ii+Li*xi,ia=4/3*(Math.sqrt(2*oa*ma)-ma)/(Ni*xi-Li*ii),ba=Ni-ia*Li,vi=Li+ia*Ni,On=ba,Fi=-vi,ha=Yn+En,ea=Math.cos(ha),aa=Math.sin(ha);return{x1:Fr*Math.cos(En),y1:Fr*Math.sin(En),x2:ba*ea-vi*aa,y2:ba*aa+vi*ea,x3:On*ea-Fi*aa,y3:On*aa+Fi*ea,x4:Fr*Math.cos(Wn),y4:Fr*Math.sin(Wn)}},Nr=function(Fr){return 180*Fr/Math.PI},Hn=function(Fr,En,Wn,Yn,ii,xi){var Ni=Fr+.5*(Wn-Fr),Li=En+.5*(Yn-En),oa=ii+.5*(Wn-ii),ma=xi+.5*(Yn-xi),ia=Math.min(Fr,ii,Ni,oa),ba=Math.max(Fr,ii,Ni,oa),vi=Math.min(En,xi,Li,ma),On=Math.max(En,xi,Li,ma);return new St(ia,vi,ba-ia,On-vi)},Ln=function(Fr,En,Wn,Yn,ii,xi,Ni,Li){var oa,ma,ia,ba,vi,On,Fi,ha,ea,aa,Or,wr,Sn,cr,Lr=Wn-Fr,Wr=Yn-En,on=ii-Wn,Nn=xi-Yn,Et=Ni-ii,Cr=Li-xi;for(ma=0;ma<41;ma++)ea=(Fi=(ia=Fr+(oa=ma/40)*Lr)+oa*((vi=Wn+oa*on)-ia))+oa*(vi+oa*(ii+oa*Et-vi)-Fi),aa=(ha=(ba=En+oa*Wr)+oa*((On=Yn+oa*Nn)-ba))+oa*(On+oa*(xi+oa*Cr-On)-ha),ma==0?(Or=ea,wr=aa,Sn=ea,cr=aa):(Or=Math.min(Or,ea),wr=Math.min(wr,aa),Sn=Math.max(Sn,ea),cr=Math.max(cr,aa));return new St(Math.round(Or),Math.round(wr),Math.round(Sn-Or),Math.round(cr-wr))},ci=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var Fr,En,Wn=(Fr=this.ctx.lineDash,En=this.ctx.lineDashOffset,JSON.stringify({lineDash:Fr,lineDashOffset:En}));this.prevLineDash!==Wn&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Wn)}}}(z.API),function(it){var Me=function(at){var St,gt,hr,Qr,Xr,dn,mr,Kn,Rr,Rn;for(/[^\x00-\xFF]/.test(at),gt=[],hr=0,Qr=(at+=St="\0\0\0\0".slice(at.length%4||4)).length;Qr>hr;hr+=4)(Xr=(at.charCodeAt(hr)<<24)+(at.charCodeAt(hr+1)<<16)+(at.charCodeAt(hr+2)<<8)+at.charCodeAt(hr+3))!==0?(dn=(Xr=((Xr=((Xr=((Xr=(Xr-(Rn=Xr%85))/85)-(Rr=Xr%85))/85)-(Kn=Xr%85))/85)-(mr=Xr%85))/85)%85,gt.push(dn+33,mr+33,Kn+33,Rr+33,Rn+33)):gt.push(122);return function(An,Zr){for(var hi=Zr;hi>0;hi--)An.pop()}(gt,St.length),String.fromCharCode.apply(String,gt)+"~>"},je=function(at){var St,gt,hr,Qr,Xr,dn=String,mr="length",Kn=255,Rr="charCodeAt",Rn="slice",An="replace";for(at[Rn](-2),at=at[Rn](0,-2)[An](/\s/g,"")[An]("z","!!!!!"),hr=[],Qr=0,Xr=(at+=St="uuuuu"[Rn](at[mr]%5||5))[mr];Xr>Qr;Qr+=5)gt=52200625*(at[Rr](Qr)-33)+614125*(at[Rr](Qr+1)-33)+7225*(at[Rr](Qr+2)-33)+85*(at[Rr](Qr+3)-33)+(at[Rr](Qr+4)-33),hr.push(Kn>>>24,Kn>>>16,Kn>>>8,Kn>);return function(Zr,hi){for(var Mi=hi;Mi>0;Mi--)Zr.pop()}(hr,St[mr]),dn.fromCharCode.apply(dn,hr)},Ye=function(at){var St=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((at=at.replace(/\s/g,"")).indexOf(">")!==-1&&(at=at.substr(0,at.indexOf(">"))),at.length%2&&(at+="0"),St.test(at)===!1)return"";for(var gt="",hr=0;hr<at.length;hr+=2)gt+=String.fromCharCode("0x"+(at[hr]+at[hr+1]));return gt},rt=function(at){for(var St=new Uint8Array(at.length),gt=at.length;gt--;)St[gt]=at.charCodeAt(gt);return at=(St=Object(A.b)(St)).reduce(function(hr,Qr){return hr+String.fromCharCode(Qr)},"")};it.processDataByFilters=function(qe,at){var St=0,gt=qe||"",hr=[];for(typeof(at=at||[])=="string"&&(at=[at]),St=0;St<at.length;St+=1)switch(at[St]){case"ASCII85Decode":case"/ASCII85Decode":gt=je(gt),hr.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":gt=Me(gt),hr.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":gt=Ye(gt),hr.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":gt=gt.split("").map(function(Qr){return("0"+Qr.charCodeAt().toString(16)).slice(-2)}).join("")+">",hr.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":gt=rt(gt),hr.push("/FlateDecode");break;default:throw new Error('The filter: "'+at[St]+'" is not implemented')}return{data:gt,reverseChain:hr.reverse().join(" ")}}}(z.API),function(it){it.loadFile=function(Me,je,Ye){return function(rt,qe,at){qe=qe!==!1,at=typeof at=="function"?at:function(){};var St=void 0;try{St=function(gt,hr,Qr){var Xr=new XMLHttpRequest,dn=0,mr=function(Rr){var Rn=Rr.length,An=[],Zr=String.fromCharCode;for(dn=0;dn<Rn;dn+=1)An.push(Zr(255&Rr.charCodeAt(dn)));return An.join("")};if(Xr.open("GET",gt,!hr),Xr.overrideMimeType("text/plain; charset=x-user-defined"),hr===!1&&(Xr.onload=function(){Xr.status===200?Qr(mr(this.responseText)):Qr(void 0)}),Xr.send(null),hr&&Xr.status===200)return mr(Xr.responseText)}(rt,qe,at)}catch(gt){}return St}(Me,je,Ye)},it.loadImageFile=it.loadFile}(z.API),function(it){function Me(){return(m.html2canvas?Promise.resolve(m.html2canvas):Promise.resolve().then(n.t.bind(null,"wOnQ",7))).catch(function(at){return Promise.reject(new Error("Could not load html2canvas: "+at))}).then(function(at){return at.default?at.default:at})}function je(){return(m.DOMPurify?Promise.resolve(m.DOMPurify):n.e(246).then(n.t.bind(null,"qZ2Q",7))).catch(function(at){return Promise.reject(new Error("Could not load dompurify: "+at))}).then(function(at){return at.default?at.default:at})}var Ye=function(St){var gt=x()(St);return gt==="undefined"?"undefined":gt==="string"||St instanceof String?"string":gt==="number"||St instanceof Number?"number":gt==="function"||St instanceof Function?"function":St&&St.constructor===Array?"array":St&&St.nodeType===1?"element":gt==="object"?"object":"unknown"},rt=function(St,gt){var hr=document.createElement(St);for(var Qr in gt.className&&(hr.className=gt.className),gt.innerHTML&>.dompurify&&(hr.innerHTML=gt.dompurify.sanitize(gt.innerHTML)),gt.style)hr.style[Qr]=gt.style[Qr];return hr},qe=function at(St){var gt=Object.assign(at.convert(Promise.resolve()),JSON.parse(JSON.stringify(at.template))),hr=at.convert(Promise.resolve(),gt);return hr=(hr=hr.setProgress(1,at,1,[at])).set(St)};(qe.prototype=Object.create(Promise.prototype)).constructor=qe,qe.convert=function(at,St){return at.__proto__=St||qe.prototype,at},qe.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},qe.prototype.from=function(at,St){return this.then(function(){switch(St=St||function(gt){switch(Ye(gt)){case"string":return"string";case"element":return gt.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(at)){case"string":return this.then(je).then(function(gt){return this.set({src:rt("div",{innerHTML:at,dompurify:gt})})});case"element":return this.set({src:at});case"canvas":return this.set({canvas:at});case"img":return this.set({img:at});default:return this.error("Unknown source type.")}})},qe.prototype.to=function(at){switch(at){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},qe.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var at={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},St=function gt(hr,Qr){for(var Xr=hr.nodeType===3?document.createTextNode(hr.nodeValue):hr.cloneNode(!1),dn=hr.firstChild;dn;dn=dn.nextSibling)Qr!==!0&&dn.nodeType===1&&dn.nodeName==="SCRIPT"||Xr.appendChild(gt(dn,Qr));return hr.nodeType===1&&(hr.nodeName==="CANVAS"?(Xr.width=hr.width,Xr.height=hr.height,Xr.getContext("2d").drawImage(hr,0,0)):hr.nodeName!=="TEXTAREA"&&hr.nodeName!=="SELECT"||(Xr.value=hr.value),Xr.addEventListener("load",function(){Xr.scrollTop=hr.scrollTop,Xr.scrollLeft=hr.scrollLeft},!0)),Xr}(this.prop.src,this.opt.html2canvas.javascriptEnabled);St.tagName==="BODY"&&(at.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=rt("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=rt("div",{className:"html2pdf__container",style:at}),this.prop.container.appendChild(St),this.prop.container.firstChild.appendChild(rt("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},qe.prototype.toCanvas=function(){var at=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(at).then(Me).then(function(St){var gt=Object.assign({},this.opt.html2canvas);return delete gt.onrendered,St(this.prop.container,gt)}).then(function(St){(this.opt.html2canvas.onrendered||function(){})(St),this.prop.canvas=St,document.body.removeChild(this.prop.overlay)})},qe.prototype.toContext2d=function(){var at=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(at).then(Me).then(function(St){var gt=this.opt.jsPDF,hr=this.opt.fontFaces,Qr=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,Xr=Object.assign({async:!0,allowTaint:!0,scale:Qr,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete Xr.onrendered,gt.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,gt.context2d.posX=this.opt.x,gt.context2d.posY=this.opt.y,gt.context2d.margin=this.opt.margin,gt.context2d.fontFaces=hr,hr)for(var dn=0;dn<hr.length;++dn){var mr=hr[dn],Kn=mr.src.find(function(Rr){return Rr.format==="truetype"});Kn&>.addFont(Kn.url,mr.ref.name,mr.ref.style)}return Xr.windowHeight=Xr.windowHeight||0,Xr.windowHeight=Xr.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):Xr.windowHeight,gt.context2d.save(!0),St(this.prop.container,Xr)}).then(function(St){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(St),this.prop.canvas=St,document.body.removeChild(this.prop.overlay)})},qe.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var at=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=at})},qe.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},qe.prototype.output=function(at,St,gt){return(gt=gt||"pdf").toLowerCase()==="img"||gt.toLowerCase()==="image"?this.outputImg(at,St):this.outputPdf(at,St)},qe.prototype.outputPdf=function(at,St){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(at,St)})},qe.prototype.outputImg=function(at){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(at){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+at+'" is not supported.'}})},qe.prototype.save=function(at){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(at?{filename:at}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},qe.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},qe.prototype.set=function(at){if(Ye(at)!=="object")return this;var St=Object.keys(at||{}).map(function(gt){if(gt in qe.template.prop)return function(){this.prop[gt]=at[gt]};switch(gt){case"margin":return this.setMargin.bind(this,at.margin);case"jsPDF":return function(){return this.opt.jsPDF=at.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,at.pageSize);default:return function(){this.opt[gt]=at[gt]}}},this);return this.then(function(){return this.thenList(St)})},qe.prototype.get=function(at,St){return this.then(function(){var gt=at in qe.template.prop?this.prop[at]:this.opt[at];return St?St(gt):gt})},qe.prototype.setMargin=function(at){return this.then(function(){switch(Ye(at)){case"number":at=[at,at,at,at];case"array":if(at.length===2&&(at=[at[0],at[1],at[0],at[1]]),at.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=at}).then(this.setPageSize)},qe.prototype.setPageSize=function(at){function St(gt,hr){return Math.floor(gt*hr/72*96)}return this.then(function(){(at=at||z.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(at.inner={width:at.width-this.opt.margin[1]-this.opt.margin[3],height:at.height-this.opt.margin[0]-this.opt.margin[2]},at.inner.px={width:St(at.inner.width,at.k),height:St(at.inner.height,at.k)},at.inner.ratio=at.inner.height/at.inner.width),this.prop.pageSize=at})},qe.prototype.setProgress=function(at,St,gt,hr){return at!=null&&(this.progress.val=at),St!=null&&(this.progress.state=St),gt!=null&&(this.progress.n=gt),hr!=null&&(this.progress.stack=hr),this.progress.ratio=this.progress.val/this.progress.state,this},qe.prototype.updateProgress=function(at,St,gt,hr){return this.setProgress(at?this.progress.val+at:null,St||null,gt?this.progress.n+gt:null,hr?this.progress.stack.concat(hr):null)},qe.prototype.then=function(at,St){var gt=this;return this.thenCore(at,St,function(hr,Qr){return gt.updateProgress(null,null,1,[hr]),Promise.prototype.then.call(this,function(Xr){return gt.updateProgress(null,hr),Xr}).then(hr,Qr).then(function(Xr){return gt.updateProgress(1),Xr})})},qe.prototype.thenCore=function(at,St,gt){gt=gt||Promise.prototype.then,at&&(at=at.bind(this)),St&&(St=St.bind(this));var hr=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:qe.convert(Object.assign({},this),Promise.prototype),Qr=gt.call(hr,at,St);return qe.convert(Qr,this.__proto__)},qe.prototype.thenExternal=function(at,St){return Promise.prototype.then.call(this,at,St)},qe.prototype.thenList=function(at){var St=this;return at.forEach(function(gt){St=St.thenCore(gt)}),St},qe.prototype.catch=function(at){at&&(at=at.bind(this));var St=Promise.prototype.catch.call(this,at);return qe.convert(St,this)},qe.prototype.catchExternal=function(at){return Promise.prototype.catch.call(this,at)},qe.prototype.error=function(at){return this.then(function(){throw new Error(at)})},qe.prototype.using=qe.prototype.set,qe.prototype.saveAs=qe.prototype.save,qe.prototype.export=qe.prototype.output,qe.prototype.run=qe.prototype.then,z.getPageSize=function(at,St,gt){if(x()(at)==="object"){var hr=at;at=hr.orientation,St=hr.unit||St,gt=hr.format||gt}St=St||"mm",gt=gt||"a4",at=(""+(at||"P")).toLowerCase();var Qr,Xr=(""+gt).toLowerCase(),dn={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(St){case"pt":Qr=1;break;case"mm":Qr=72/25.4;break;case"cm":Qr=72/2.54;break;case"in":Qr=72;break;case"px":Qr=.75;break;case"pc":case"em":Qr=12;break;case"ex":Qr=6;break;default:throw"Invalid unit: "+St}var mr,Kn=0,Rr=0;if(dn.hasOwnProperty(Xr))Kn=dn[Xr][1]/Qr,Rr=dn[Xr][0]/Qr;else try{Kn=gt[1],Rr=gt[0]}catch(Rn){throw new Error("Invalid format: "+gt)}if(at==="p"||at==="portrait")at="p",Rr>Kn&&(mr=Rr,Rr=Kn,Kn=mr);else{if(at!=="l"&&at!=="landscape")throw"Invalid orientation: "+at;at="l",Kn>Rr&&(mr=Rr,Rr=Kn,Kn=mr)}return{width:Rr,height:Kn,unit:St,k:Qr,orientation:at}},it.html=function(at,St){(St=St||{}).callback=St.callback||function(){},St.html2canvas=St.html2canvas||{},St.html2canvas.canvas=St.html2canvas.canvas||this.canvas,St.jsPDF=St.jsPDF||this,St.fontFaces=St.fontFaces?St.fontFaces.map(fn):null;var gt=new qe(St);return St.worker?gt:gt.from(at).doCallback()}}(z.API),z.API.addJS=function(it){return Bn=it,this.internal.events.subscribe("postPutResources",function(){ri=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(ri+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Ui=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Bn+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){ri!==void 0&&Ui!==void 0&&this.internal.out("/Names <</JavaScript "+ri+" 0 R>>")}),this},function(it){var Me;it.events.push(["postPutResources",function(){var je=this,Ye=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var rt=je.outline.render().split(/\r\n/),qe=0;qe<rt.length;qe++){var at=rt[qe],St=Ye.exec(at);if(St!=null){var gt=St[1];je.internal.newObjectDeferredBegin(gt,!1)}je.internal.write(at)}if(this.outline.createNamedDestinations){var hr=this.internal.pages.length,Qr=[];for(qe=0;qe<hr;qe++){var Xr=je.internal.newObject();Qr.push(Xr);var dn=je.internal.getPageInfo(qe+1);je.internal.write("<< /D["+dn.objId+" 0 R /XYZ null null null]>> endobj")}var mr=je.internal.newObject();for(je.internal.write("<< /Names [ "),qe=0;qe<Qr.length;qe++)je.internal.write("(page_"+(qe+1)+")"+Qr[qe]+" 0 R");je.internal.write(" ] >>","endobj"),Me=je.internal.newObject(),je.internal.write("<< /Dests "+mr+" 0 R"),je.internal.write(">>","endobj")}}]),it.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+Me+" 0 R"))}]),it.events.push(["initialized",function(){var je=this;je.outline={createNamedDestinations:!1,root:{children:[]}},je.outline.add=function(Ye,rt,qe){var at={title:rt,options:qe,children:[]};return Ye==null&&(Ye=this.root),Ye.children.push(at),at},je.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=je,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},je.outline.genIds_r=function(Ye){Ye.id=je.internal.newObjectDeferred();for(var rt=0;rt<Ye.children.length;rt++)this.genIds_r(Ye.children[rt])},je.outline.renderRoot=function(Ye){this.objStart(Ye),this.line("/Type /Outlines"),Ye.children.length>0&&(this.line("/First "+this.makeRef(Ye.children[0])),this.line("/Last "+this.makeRef(Ye.children[Ye.children.length-1]))),this.line("/Count "+this.count_r({count:0},Ye)),this.objEnd()},je.outline.renderItems=function(Ye){for(var rt=this.ctx.pdf.internal.getVerticalCoordinateString,qe=0;qe<Ye.children.length;qe++){var at=Ye.children[qe];this.objStart(at),this.line("/Title "+this.makeString(at.title)),this.line("/Parent "+this.makeRef(Ye)),qe>0&&this.line("/Prev "+this.makeRef(Ye.children[qe-1])),qe<Ye.children.length-1&&this.line("/Next "+this.makeRef(Ye.children[qe+1])),at.children.length>0&&(this.line("/First "+this.makeRef(at.children[0])),this.line("/Last "+this.makeRef(at.children[at.children.length-1])));var St=this.count=this.count_r({count:0},at);if(St>0&&this.line("/Count "+St),at.options&&at.options.pageNumber){var gt=je.internal.getPageInfo(at.options.pageNumber);this.line("/Dest ["+gt.objId+" 0 R /XYZ 0 "+rt(0)+" 0]")}this.objEnd()}for(var hr=0;hr<Ye.children.length;hr++)this.renderItems(Ye.children[hr])},je.outline.line=function(Ye){this.ctx.val+=Ye+`\r
|
|
|
`},je.outline.makeRef=function(Ye){return Ye.id+" 0 R"},je.outline.makeString=function(Ye){return"("+je.internal.pdfEscape(Ye)+")"},je.outline.objStart=function(Ye){this.ctx.val+=`\r
|
|
|
`+Ye.id+` 0 obj\r
|
|
|
<<\r
|
|
|
`},je.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
|
endobj\r
|
|
|
`},je.outline.count_r=function(Ye,rt){for(var qe=0;qe<rt.children.length;qe++)Ye.count++,this.count_r(Ye,rt.children[qe]);return Ye.count}}])}(z.API),function(it){var Me=[192,193,194,195,196,197,198,199];it.processJPEG=function(je,Ye,rt,qe,at,St){var gt,hr=this.decode.DCT_DECODE,Qr=null;if(typeof je=="string"||this.__addimage__.isArrayBuffer(je)||this.__addimage__.isArrayBufferView(je)){switch(je=at||je,je=this.__addimage__.isArrayBuffer(je)?new Uint8Array(je):je,(gt=function(Xr){for(var dn,mr=256*Xr.charCodeAt(4)+Xr.charCodeAt(5),Kn=Xr.length,Rr={width:0,height:0,numcomponents:1},Rn=4;Rn<Kn;Rn+=2){if(Rn+=mr,Me.indexOf(Xr.charCodeAt(Rn+1))!==-1){dn=256*Xr.charCodeAt(Rn+5)+Xr.charCodeAt(Rn+6),Rr={width:256*Xr.charCodeAt(Rn+7)+Xr.charCodeAt(Rn+8),height:dn,numcomponents:Xr.charCodeAt(Rn+9)};break}mr=256*Xr.charCodeAt(Rn+2)+Xr.charCodeAt(Rn+3)}return Rr}(je=this.__addimage__.isArrayBufferView(je)?this.__addimage__.arrayBufferToBinaryString(je):je)).numcomponents){case 1:St=this.color_spaces.DEVICE_GRAY;break;case 4:St=this.color_spaces.DEVICE_CMYK;break;case 3:St=this.color_spaces.DEVICE_RGB}Qr={data:je,width:gt.width,height:gt.height,colorSpace:St,bitsPerComponent:8,filter:hr,index:Ye,alias:rt}}return Qr}}(z.API);var Xt,_t,Fe,Pe,Be,nt=function(){var it,Me,je;function Ye(qe){var at,St,gt,hr,Qr,Xr,dn,mr,Kn,Rr,Rn,An,Zr,hi;for(this.data=qe,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},Xr=null;;){switch(at=this.readUInt32(),Kn=function(){var Mi,Zi;for(Zi=[],Mi=0;Mi<4;++Mi)Zi.push(String.fromCharCode(this.data[this.pos++]));return Zi}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(at);break;case"fcTL":Xr&&this.animation.frames.push(Xr),this.pos+=4,Xr={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},Qr=this.readUInt16(),hr=this.readUInt16()||100,Xr.delay=1e3*Qr/hr,Xr.disposeOp=this.data[this.pos++],Xr.blendOp=this.data[this.pos++],Xr.data=[];break;case"IDAT":case"fdAT":for(Kn==="fdAT"&&(this.pos+=4,at-=4),qe=(Xr!=null?Xr.data:void 0)||this.imgData,An=0;0<=at?An<at:An>at;0<=at?++An:--An)qe.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(gt=this.palette.length/3,this.transparency.indexed=this.read(at),this.transparency.indexed.length>gt)throw new Error("More transparent colors than palette size");if((Rr=gt-this.transparency.indexed.length)>0)for(Zr=0;0<=Rr?Zr<Rr:Zr>Rr;0<=Rr?++Zr:--Zr)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(at)[0];break;case 2:this.transparency.rgb=this.read(at)}break;case"tEXt":dn=(Rn=this.read(at)).indexOf(0),mr=String.fromCharCode.apply(String,Rn.slice(0,dn)),this.text[mr]=String.fromCharCode.apply(String,Rn.slice(dn+1));break;case"IEND":return Xr&&this.animation.frames.push(Xr),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(hi=this.colorType)===4||hi===6,St=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*St,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=at}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}Ye.prototype.read=function(qe){var at,St;for(St=[],at=0;0<=qe?at<qe:at>qe;0<=qe?++at:--at)St.push(this.data[this.pos++]);return St},Ye.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},Ye.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},Ye.prototype.decodePixels=function(qe){var at=this.pixelBitlength/8,St=new Uint8Array(this.width*this.height*at),gt=0,hr=this;if(qe==null&&(qe=this.imgData),qe.length===0)return new Uint8Array(0);function Qr(Xr,dn,mr,Kn){var Rr,Rn,An,Zr,hi,Mi,Zi,qr,xn,zn,Ht,Tt,Dt,Bt,jt,Ot,nr,pr,Ar,Nr,Hn,Ln=Math.ceil((hr.width-Xr)/mr),ci=Math.ceil((hr.height-dn)/Kn),hn=hr.width==Ln&&hr.height==ci;for(Bt=at*Ln,Tt=hn?St:new Uint8Array(Bt*ci),Mi=qe.length,Dt=0,Rn=0;Dt<ci&><Mi;){switch(qe[gt++]){case 0:for(Zr=nr=0;nr<Bt;Zr=nr+=1)Tt[Rn++]=qe[gt++];break;case 1:for(Zr=pr=0;pr<Bt;Zr=pr+=1)Rr=qe[gt++],hi=Zr<at?0:Tt[Rn-at],Tt[Rn++]=(Rr+hi)%256;break;case 2:for(Zr=Ar=0;Ar<Bt;Zr=Ar+=1)Rr=qe[gt++],An=(Zr-Zr%at)/at,jt=Dt&&Tt[(Dt-1)*Bt+An*at+Zr%at],Tt[Rn++]=(jt+Rr)%256;break;case 3:for(Zr=Nr=0;Nr<Bt;Zr=Nr+=1)Rr=qe[gt++],An=(Zr-Zr%at)/at,hi=Zr<at?0:Tt[Rn-at],jt=Dt&&Tt[(Dt-1)*Bt+An*at+Zr%at],Tt[Rn++]=(Rr+Math.floor((hi+jt)/2))%256;break;case 4:for(Zr=Hn=0;Hn<Bt;Zr=Hn+=1)Rr=qe[gt++],An=(Zr-Zr%at)/at,hi=Zr<at?0:Tt[Rn-at],Dt===0?jt=Ot=0:(jt=Tt[(Dt-1)*Bt+An*at+Zr%at],Ot=An&&Tt[(Dt-1)*Bt+(An-1)*at+Zr%at]),Zi=hi+jt-Ot,qr=Math.abs(Zi-hi),zn=Math.abs(Zi-jt),Ht=Math.abs(Zi-Ot),xn=qr<=zn&&qr<=Ht?hi:zn<=Ht?jt:Ot,Tt[Rn++]=(Rr+xn)%256;break;default:throw new Error("Invalid filter algorithm: "+qe[gt-1])}if(!hn){var Fr=((dn+Dt*Kn)*hr.width+Xr)*at,En=Dt*Bt;for(Zr=0;Zr<Ln;Zr+=1){for(var Wn=0;Wn<at;Wn+=1)St[Fr++]=Tt[En++];Fr+=(mr-1)*at}}Dt++}}return qe=Object(A.a)(qe),hr.interlaceMethod==1?(Qr(0,0,8,8),Qr(4,0,8,8),Qr(0,4,4,8),Qr(2,0,4,4),Qr(0,2,2,4),Qr(1,0,2,2),Qr(0,1,1,2)):Qr(0,0,1,1),St},Ye.prototype.decodePalette=function(){var qe,at,St,gt,hr,Qr,Xr,dn,mr;for(St=this.palette,Qr=this.transparency.indexed||[],hr=new Uint8Array((Qr.length||0)+St.length),gt=0,qe=0,at=Xr=0,dn=St.length;Xr<dn;at=Xr+=3)hr[gt++]=St[at],hr[gt++]=St[at+1],hr[gt++]=St[at+2],hr[gt++]=(mr=Qr[qe++])!=null?mr:255;return hr},Ye.prototype.copyToImageData=function(qe,at){var St,gt,hr,Qr,Xr,dn,mr,Kn,Rr,Rn,An;if(gt=this.colors,Rr=null,St=this.hasAlphaChannel,this.palette.length&&(Rr=(An=this._decodedPalette)!=null?An:this._decodedPalette=this.decodePalette(),gt=4,St=!0),Kn=(hr=qe.data||qe).length,Xr=Rr||at,Qr=dn=0,gt===1)for(;Qr<Kn;)mr=Rr?4*at[Qr/4]:dn,Rn=Xr[mr++],hr[Qr++]=Rn,hr[Qr++]=Rn,hr[Qr++]=Rn,hr[Qr++]=St?Xr[mr++]:255,dn=mr;else for(;Qr<Kn;)mr=Rr?4*at[Qr/4]:dn,hr[Qr++]=Xr[mr++],hr[Qr++]=Xr[mr++],hr[Qr++]=Xr[mr++],hr[Qr++]=St?Xr[mr++]:255,dn=mr},Ye.prototype.decode=function(){var qe;return qe=new Uint8Array(this.width*this.height*4),this.copyToImageData(qe,this.decodePixels()),qe};var rt=function(){if(Object.prototype.toString.call(m)==="[object Window]"){try{Me=m.document.createElement("canvas"),je=Me.getContext("2d")}catch(at){return!1}return!0}return!1};return rt(),it=function(at){var St;if(rt()===!0)return je.width=at.width,je.height=at.height,je.clearRect(0,0,at.width,at.height),je.putImageData(at,0,0),(St=new Image).src=Me.toDataURL(),St;throw new Error("This method requires a Browser with Canvas-capability.")},Ye.prototype.decodeFrames=function(qe){var at,St,gt,hr,Qr,Xr,dn,mr;if(this.animation){for(mr=[],St=Qr=0,Xr=(dn=this.animation.frames).length;Qr<Xr;St=++Qr)at=dn[St],gt=qe.createImageData(at.width,at.height),hr=this.decodePixels(new Uint8Array(at.data)),this.copyToImageData(gt,hr),at.imageData=gt,mr.push(at.image=it(gt));return mr}},Ye.prototype.renderFrame=function(qe,at){var St,gt,hr;return St=(gt=this.animation.frames)[at],hr=gt[at-1],at===0&&qe.clearRect(0,0,this.width,this.height),(hr!=null?hr.disposeOp:void 0)===1?qe.clearRect(hr.xOffset,hr.yOffset,hr.width,hr.height):(hr!=null?hr.disposeOp:void 0)===2&&qe.putImageData(hr.imageData,hr.xOffset,hr.yOffset),St.blendOp===0&&qe.clearRect(St.xOffset,St.yOffset,St.width,St.height),qe.drawImage(St.image,St.xOffset,St.yOffset)},Ye.prototype.animate=function(qe){var at,St,gt,hr,Qr,Xr,dn=this;return St=0,Xr=this.animation,hr=Xr.numFrames,gt=Xr.frames,Qr=Xr.numPlays,(at=function(){var Kn,Rr;if(Kn=St++%hr,Rr=gt[Kn],dn.renderFrame(qe,Kn),hr>1&&St/hr<Qr)return dn.animation._timeout=setTimeout(at,Rr.delay)})()},Ye.prototype.stopAnimation=function(){var qe;return clearTimeout((qe=this.animation)!=null?qe._timeout:void 0)},Ye.prototype.render=function(qe){var at,St;return qe._png&&qe._png.stopAnimation(),qe._png=this,qe.width=this.width,qe.height=this.height,at=qe.getContext("2d"),this.animation?(this.decodeFrames(at),this.animate(at)):(St=at.createImageData(this.width,this.height),this.copyToImageData(St,this.decodePixels()),at.putImageData(St,0,0))},Ye}();/**
|
|
|
* @license
|
|
|
*
|
|
|
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
|
|
|
*
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining
|
|
|
* a copy of this software and associated documentation files (the
|
|
|
* "Software"), to deal in the Software without restriction, including
|
|
|
* without limitation the rights to use, copy, modify, merge, publish,
|
|
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
|
* permit persons to whom the Software is furnished to do so, subject to
|
|
|
* the following conditions:
|
|
|
*
|
|
|
* The above copyright notice and this permission notice shall be
|
|
|
* included in all copies or substantial portions of the Software.
|
|
|
*
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
|
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
|
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
|
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
* ====================================================================
|
|
|
*//**
|
|
|
* @license
|
|
|
* (c) Dean McNamee <dean@gmail.com>, 2013.
|
|
|
*
|
|
|
* https://github.com/deanm/omggif
|
|
|
*
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
* of this software and associated documentation files (the "Software"), to
|
|
|
* deal in the Software without restriction, including without limitation the
|
|
|
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
|
* sell copies of the Software, and to permit persons to whom the Software is
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
*
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
* all copies or substantial portions of the Software.
|
|
|
*
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
|
* IN THE SOFTWARE.
|
|
|
*
|
|
|
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
|
|
|
* including animation and compression. It does not rely on any specific
|
|
|
* underlying system, so should run in the browser, Node, or Plask.
|
|
|
*/function vt(it){var Me=0;if(it[Me++]!==71||it[Me++]!==73||it[Me++]!==70||it[Me++]!==56||(it[Me++]+1&253)!=56||it[Me++]!==97)throw new Error("Invalid GIF 87a/89a header.");var je=it[Me++]|it[Me++]<<8,Ye=it[Me++]|it[Me++]<<8,rt=it[Me++],qe=rt>>7,at=1<<(7&rt)+1;it[Me++],it[Me++];var St=null,gt=null;qe&&(St=Me,gt=at,Me+=3*at);var hr=!0,Qr=[],Xr=0,dn=null,mr=0,Kn=null;for(this.width=je,this.height=Ye;hr&&Me<it.length;)switch(it[Me++]){case 33:switch(it[Me++]){case 255:if(it[Me]!==11||it[Me+1]==78&&it[Me+2]==69&&it[Me+3]==84&&it[Me+4]==83&&it[Me+5]==67&&it[Me+6]==65&&it[Me+7]==80&&it[Me+8]==69&&it[Me+9]==50&&it[Me+10]==46&&it[Me+11]==48&&it[Me+12]==3&&it[Me+13]==1&&it[Me+16]==0)Me+=14,Kn=it[Me++]|it[Me++]<<8,Me++;else for(Me+=12;;){if(!((Dt=it[Me++])>=0))throw Error("Invalid block size");if(Dt===0)break;Me+=Dt}break;case 249:if(it[Me++]!==4||it[Me+4]!==0)throw new Error("Invalid graphics extension block.");var Rr=it[Me++];Xr=it[Me++]|it[Me++]<<8,dn=it[Me++],(1&Rr)==0&&(dn=null),mr=Rr>>2&7,Me++;break;case 254:for(;;){if(!((Dt=it[Me++])>=0))throw Error("Invalid block size");if(Dt===0)break;Me+=Dt}break;default:throw new Error("Unknown graphic control label: 0x"+it[Me-1].toString(16))}break;case 44:var Rn=it[Me++]|it[Me++]<<8,An=it[Me++]|it[Me++]<<8,Zr=it[Me++]|it[Me++]<<8,hi=it[Me++]|it[Me++]<<8,Mi=it[Me++],Zi=Mi>>6&1,qr=1<<(7&Mi)+1,xn=St,zn=gt,Ht=!1;Mi>>7&&(Ht=!0,xn=Me,zn=qr,Me+=3*qr);var Tt=Me;for(Me++;;){var Dt;if(!((Dt=it[Me++])>=0))throw Error("Invalid block size");if(Dt===0)break;Me+=Dt}Qr.push({x:Rn,y:An,width:Zr,height:hi,has_local_palette:Ht,palette_offset:xn,palette_size:zn,data_offset:Tt,data_length:Me-Tt,transparent_index:dn,interlaced:!!Zi,delay:Xr,disposal:mr});break;case 59:hr=!1;break;default:throw new Error("Unknown gif block: 0x"+it[Me-1].toString(16))}this.numFrames=function(){return Qr.length},this.loopCount=function(){return Kn},this.frameInfo=function(Bt){if(Bt<0||Bt>=Qr.length)throw new Error("Frame index out of range.");return Qr[Bt]},this.decodeAndBlitFrameBGRA=function(Bt,jt){var Ot=this.frameInfo(Bt),nr=Ot.width*Ot.height,pr=new Uint8Array(nr);ar(it,Ot.data_offset,pr,nr);var Ar=Ot.palette_offset,Nr=Ot.transparent_index;Nr===null&&(Nr=256);var Hn=Ot.width,Ln=je-Hn,ci=Hn,hn=4*(Ot.y*je+Ot.x),Fr=4*((Ot.y+Ot.height)*je+Ot.x),En=hn,Wn=4*Ln;Ot.interlaced===!0&&(Wn+=4*je*7);for(var Yn=8,ii=0,xi=pr.length;ii<xi;++ii){var Ni=pr[ii];if(ci===0&&(ci=Hn,(En+=Wn)>=Fr&&(Wn=4*Ln+4*je*(Yn-1),En=hn+(Hn+Ln)*(Yn<<1),Yn>>=1)),Ni===Nr)En+=4;else{var Li=it[Ar+3*Ni],oa=it[Ar+3*Ni+1],ma=it[Ar+3*Ni+2];jt[En++]=ma,jt[En++]=oa,jt[En++]=Li,jt[En++]=255}--ci}},this.decodeAndBlitFrameRGBA=function(Bt,jt){var Ot=this.frameInfo(Bt),nr=Ot.width*Ot.height,pr=new Uint8Array(nr);ar(it,Ot.data_offset,pr,nr);var Ar=Ot.palette_offset,Nr=Ot.transparent_index;Nr===null&&(Nr=256);var Hn=Ot.width,Ln=je-Hn,ci=Hn,hn=4*(Ot.y*je+Ot.x),Fr=4*((Ot.y+Ot.height)*je+Ot.x),En=hn,Wn=4*Ln;Ot.interlaced===!0&&(Wn+=4*je*7);for(var Yn=8,ii=0,xi=pr.length;ii<xi;++ii){var Ni=pr[ii];if(ci===0&&(ci=Hn,(En+=Wn)>=Fr&&(Wn=4*Ln+4*je*(Yn-1),En=hn+(Hn+Ln)*(Yn<<1),Yn>>=1)),Ni===Nr)En+=4;else{var Li=it[Ar+3*Ni],oa=it[Ar+3*Ni+1],ma=it[Ar+3*Ni+2];jt[En++]=Li,jt[En++]=oa,jt[En++]=ma,jt[En++]=255}--ci}}}function ar(it,Me,je,Ye){for(var rt=it[Me++],qe=1<<rt,at=qe+1,St=at+1,gt=rt+1,hr=(1<<gt)-1,Qr=0,Xr=0,dn=0,mr=it[Me++],Kn=new Int32Array(4096),Rr=null;;){for(;Qr<16&&mr!==0;)Xr|=it[Me++]<<Qr,Qr+=8,mr===1?mr=it[Me++]:--mr;if(Qr<gt)break;var Rn=Xr&hr;if(Xr>>=gt,Qr-=gt,Rn!==qe){if(Rn===at)break;for(var An=Rn<St?Rn:Rr,Zr=0,hi=An;hi>qe;)hi=Kn[hi]>>8,++Zr;var Mi=hi;if(dn+Zr+(An!==Rn?1:0)>Ye)return void h.log("Warning, gif stream longer than expected.");je[dn++]=Mi;var Zi=dn+=Zr;for(An!==Rn&&(je[dn++]=Mi),hi=An;Zr--;)hi=Kn[hi],je[--Zi]=255&hi,hi>>=8;Rr!==null&&St<4096&&(Kn[St++]=Rr<<8|Mi,St>=hr+1&><12&&(++gt,hr=hr<<1|1)),Rr=Rn}else St=at+1,hr=(1<<(gt=rt+1))-1,Rr=null}return dn!==Ye&&h.log("Warning, gif stream shorter than expected."),je}/**
|
|
|
* @license
|
|
|
Copyright (c) 2008, Adobe Systems Incorporated
|
|
|
All rights reserved.
|
|
|
|
|
|
Redistribution and use in source and binary forms, with or without
|
|
|
modification, are permitted provided that the following conditions are
|
|
|
met:
|
|
|
|
|
|
* Redistributions of source code must retain the above copyright notice,
|
|
|
this list of conditions and the following disclaimer.
|
|
|
|
|
|
* Redistributions in binary form must reproduce the above copyright
|
|
|
notice, this list of conditions and the following disclaimer in the
|
|
|
documentation and/or other materials provided with the distribution.
|
|
|
|
|
|
* Neither the name of Adobe Systems Incorporated nor the names of its
|
|
|
contributors may be used to endorse or promote products derived from
|
|
|
this software without specific prior written permission.
|
|
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
|
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
|
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
|
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
|
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
|
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
|
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
|
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
|
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
*/function kr(it){var Me,je,Ye,rt,qe,at=Math.floor,St=new Array(64),gt=new Array(64),hr=new Array(64),Qr=new Array(64),Xr=new Array(65535),dn=new Array(65535),mr=new Array(64),Kn=new Array(64),Rr=[],Rn=0,An=7,Zr=new Array(64),hi=new Array(64),Mi=new Array(64),Zi=new Array(256),qr=new Array(2048),xn=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],zn=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Ht=[0,1,2,3,4,5,6,7,8,9,10,11],Tt=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],Dt=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],Bt=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],jt=[0,1,2,3,4,5,6,7,8,9,10,11],Ot=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],nr=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function pr(hn,Fr){for(var En=0,Wn=0,Yn=new Array,ii=1;ii<=16;ii++){for(var xi=1;xi<=hn[ii];xi++)Yn[Fr[Wn]]=[],Yn[Fr[Wn]][0]=En,Yn[Fr[Wn]][1]=ii,Wn++,En++;En*=2}return Yn}function Ar(hn){for(var Fr=hn[0],En=hn[1]-1;En>=0;)Fr&1<<En&&(Rn|=1<<An),En--,--An<0&&(Rn==255?(Nr(255),Nr(0)):Nr(Rn),An=7,Rn=0)}function Nr(hn){Rr.push(hn)}function Hn(hn){Nr(hn>>8&255),Nr(255&hn)}function Ln(hn,Fr,En,Wn,Yn){for(var ii,xi=Yn[0],Ni=Yn[240],Li=function(ea,aa){var Or,wr,Sn,cr,Lr,Wr,on,Nn,Et,Cr,_r=0;for(Et=0;Et<8;++Et){Or=ea[_r],wr=ea[_r+1],Sn=ea[_r+2],cr=ea[_r+3],Lr=ea[_r+4],Wr=ea[_r+5],on=ea[_r+6];var $r=Or+(Nn=ea[_r+7]),yn=Or-Nn,Tn=wr+on,vn=wr-on,Qn=Sn+Wr,Fn=Sn-Wr,fi=cr+Lr,Ri=cr-Lr,yi=$r+fi,Ci=$r-fi,Wi=Tn+Qn,qi=Tn-Qn;ea[_r]=yi+Wi,ea[_r+4]=yi-Wi;var zi=.707106781*(qi+Ci);ea[_r+2]=Ci+zi,ea[_r+6]=Ci-zi;var Ki=.382683433*((yi=Ri+Fn)-(qi=vn+yn)),ji=.5411961*yi+Ki,Yi=1.306562965*qi+Ki,ca=.707106781*(Wi=Fn+vn),Ca=yn+ca,ra=yn-ca;ea[_r+5]=ra+ji,ea[_r+3]=ra-ji,ea[_r+1]=Ca+Yi,ea[_r+7]=Ca-Yi,_r+=8}for(_r=0,Et=0;Et<8;++Et){Or=ea[_r],wr=ea[_r+8],Sn=ea[_r+16],cr=ea[_r+24],Lr=ea[_r+32],Wr=ea[_r+40],on=ea[_r+48];var Ma=Or+(Nn=ea[_r+56]),La=Or-Nn,va=wr+on,ga=wr-on,Oa=Sn+Wr,Aa=Sn-Wr,Ga=cr+Lr,_a=cr-Lr,Va=Ma+Ga,Bi=Ma-Ga,io=va+Oa,oo=va-Oa;ea[_r]=Va+io,ea[_r+32]=Va-io;var Qo=.707106781*(oo+Bi);ea[_r+16]=Bi+Qo,ea[_r+48]=Bi-Qo;var mo=.382683433*((Va=_a+Aa)-(oo=ga+La)),To=.5411961*Va+mo,ao=1.306562965*oo+mo,So=.707106781*(io=Aa+ga),bo=La+So,to=La-So;ea[_r+40]=to+To,ea[_r+24]=to-To,ea[_r+8]=bo+ao,ea[_r+56]=bo-ao,_r++}for(Et=0;Et<64;++Et)Cr=ea[Et]*aa[Et],mr[Et]=Cr>0?Cr+.5|0:Cr-.5|0;return mr}(hn,Fr),oa=0;oa<64;++oa)Kn[xn[oa]]=Li[oa];var ma=Kn[0]-En;En=Kn[0],ma==0?Ar(Wn[0]):(Ar(Wn[dn[ii=32767+ma]]),Ar(Xr[ii]));for(var ia=63;ia>0&&Kn[ia]==0;)ia--;if(ia==0)return Ar(xi),En;for(var ba,vi=1;vi<=ia;){for(var On=vi;Kn[vi]==0&&vi<=ia;)++vi;var Fi=vi-On;if(Fi>=16){ba=Fi>>4;for(var ha=1;ha<=ba;++ha)Ar(Ni);Fi&=15}ii=32767+Kn[vi],Ar(Yn[(Fi<<4)+dn[ii]]),Ar(Xr[ii]),vi++}return ia!=63&&Ar(xi),En}function ci(hn){(hn=Math.min(Math.max(hn,1),100),qe!=hn)&&(!function(Fr){for(var En=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],Wn=0;Wn<64;Wn++){var Yn=at((En[Wn]*Fr+50)/100);Yn=Math.min(Math.max(Yn,1),255),St[xn[Wn]]=Yn}for(var ii=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],xi=0;xi<64;xi++){var Ni=at((ii[xi]*Fr+50)/100);Ni=Math.min(Math.max(Ni,1),255),gt[xn[xi]]=Ni}for(var Li=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],oa=0,ma=0;ma<8;ma++)for(var ia=0;ia<8;ia++)hr[oa]=1/(St[xn[oa]]*Li[ma]*Li[ia]*8),Qr[oa]=1/(gt[xn[oa]]*Li[ma]*Li[ia]*8),oa++}(hn<50?Math.floor(5e3/hn):Math.floor(200-2*hn)),qe=hn)}this.encode=function(hn,Fr){Fr&&ci(Fr),Rr=new Array,Rn=0,An=7,Hn(65496),Hn(65504),Hn(16),Nr(74),Nr(70),Nr(73),Nr(70),Nr(0),Nr(1),Nr(1),Nr(0),Hn(1),Hn(1),Nr(0),Nr(0),function(){Hn(65499),Hn(132),Nr(0);for(var wr=0;wr<64;wr++)Nr(St[wr]);Nr(1);for(var Sn=0;Sn<64;Sn++)Nr(gt[Sn])}(),function(wr,Sn){Hn(65472),Hn(17),Nr(8),Hn(Sn),Hn(wr),Nr(3),Nr(1),Nr(17),Nr(0),Nr(2),Nr(17),Nr(1),Nr(3),Nr(17),Nr(1)}(hn.width,hn.height),function(){Hn(65476),Hn(418),Nr(0);for(var wr=0;wr<16;wr++)Nr(zn[wr+1]);for(var Sn=0;Sn<=11;Sn++)Nr(Ht[Sn]);Nr(16);for(var cr=0;cr<16;cr++)Nr(Tt[cr+1]);for(var Lr=0;Lr<=161;Lr++)Nr(Dt[Lr]);Nr(1);for(var Wr=0;Wr<16;Wr++)Nr(Bt[Wr+1]);for(var on=0;on<=11;on++)Nr(jt[on]);Nr(17);for(var Nn=0;Nn<16;Nn++)Nr(Ot[Nn+1]);for(var Et=0;Et<=161;Et++)Nr(nr[Et])}(),Hn(65498),Hn(12),Nr(3),Nr(1),Nr(0),Nr(2),Nr(17),Nr(3),Nr(17),Nr(0),Nr(63),Nr(0);var En=0,Wn=0,Yn=0;Rn=0,An=7,this.encode.displayName="_encode_";for(var ii,xi,Ni,Li,oa,ma,ia,ba,vi,On=hn.data,Fi=hn.width,ha=hn.height,ea=4*Fi,aa=0;aa<ha;){for(ii=0;ii<ea;){for(oa=ea*aa+ii,ia=-1,ba=0,vi=0;vi<64;vi++)ma=oa+(ba=vi>>3)*ea+(ia=4*(7&vi)),aa+ba>=ha&&(ma-=ea*(aa+1+ba-ha)),ii+ia>=ea&&(ma-=ii+ia-ea+4),xi=On[ma++],Ni=On[ma++],Li=On[ma++],Zr[vi]=(qr[xi]+qr[Ni+256>>0]+qr[Li+512>>0]>>16)-128,hi[vi]=(qr[xi+768>>0]+qr[Ni+1024>>0]+qr[Li+1280>>0]>>16)-128,Mi[vi]=(qr[xi+1280>>0]+qr[Ni+1536>>0]+qr[Li+1792>>0]>>16)-128;En=Ln(Zr,hr,En,Me,Ye),Wn=Ln(hi,Qr,Wn,je,rt),Yn=Ln(Mi,Qr,Yn,je,rt),ii+=32}aa+=8}if(An>=0){var Or=[];Or[1]=An+1,Or[0]=(1<<An+1)-1,Ar(Or)}return Hn(65497),new Uint8Array(Rr)},it=it||50,function(){for(var hn=String.fromCharCode,Fr=0;Fr<256;Fr++)Zi[Fr]=hn(Fr)}(),Me=pr(zn,Ht),je=pr(Bt,jt),Ye=pr(Tt,Dt),rt=pr(Ot,nr),function(){for(var hn=1,Fr=2,En=1;En<=15;En++){for(var Wn=hn;Wn<Fr;Wn++)dn[32767+Wn]=En,Xr[32767+Wn]=[],Xr[32767+Wn][1]=En,Xr[32767+Wn][0]=Wn;for(var Yn=-(Fr-1);Yn<=-hn;Yn++)dn[32767+Yn]=En,Xr[32767+Yn]=[],Xr[32767+Yn][1]=En,Xr[32767+Yn][0]=Fr-1+Yn;hn<<=1,Fr<<=1}}(),function(){for(var hn=0;hn<256;hn++)qr[hn]=19595*hn,qr[hn+256>>0]=38470*hn,qr[hn+512>>0]=7471*hn+32768,qr[hn+768>>0]=-11059*hn,qr[hn+1024>>0]=-21709*hn,qr[hn+1280>>0]=32768*hn+8421375,qr[hn+1536>>0]=-27439*hn,qr[hn+1792>>0]=-5329*hn}(),ci(it)}/**
|
|
|
* @license
|
|
|
* Copyright (c) 2017 Aras Abbasi
|
|
|
*
|
|
|
* Licensed under the MIT License.
|
|
|
* http://opensource.org/licenses/mit-license
|
|
|
*/function mn(it,Me){if(this.pos=0,this.buffer=it,this.datav=new DataView(it.buffer),this.is_with_alpha=!!Me,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Zn(it){function Me(zn){if(!zn)throw Error("assert :P")}function je(zn,Ht,Tt){for(var Dt=0;4>Dt;Dt++)if(zn[Ht+Dt]!=Tt.charCodeAt(Dt))return!0;return!1}function Ye(zn,Ht,Tt,Dt,Bt){for(var jt=0;jt<Bt;jt++)zn[Ht+jt]=Tt[Dt+jt]}function rt(zn,Ht,Tt,Dt){for(var Bt=0;Bt<Dt;Bt++)zn[Ht+Bt]=Tt}function qe(zn){return new Int32Array(zn)}function at(zn,Ht){for(var Tt=[],Dt=0;Dt<zn;Dt++)Tt.push(new Ht);return Tt}function St(zn,Ht){var Tt=[];return function Dt(Bt,jt,Ot){for(var nr=Ot[jt],pr=0;pr<nr&&(Bt.push(Ot.length>jt+1?[]:new Ht),!(Ot.length<jt+1));pr++)Dt(Bt[pr],jt+1,Ot)}(Tt,0,zn),Tt}var gt=function(){var Ht=this;function Tt(xe,Ze){for(var wt=1<<Ze-1>>>0;xe&wt;)wt>>>=1;return wt?(xe&wt-1)+wt:xe}function Dt(xe,Ze,wt,ir,Pr){Me(!(ir%wt));do xe[Ze+(ir-=wt)]=Pr;while(0<ir)}function Bt(xe,Ze,wt,ir,Pr){if(Me(2328>=Pr),512>=Pr)var nn=qe(512);else if((nn=qe(Pr))==null)return 0;return function(Ue,ie,Ce,et,yt,Ut){var Qt,$t,Hr=ie,ln=1<<Ce,Ur=qe(16),Br=qe(16);for(Me(yt!=0),Me(et!=null),Me(Ue!=null),Me(0<Ce),$t=0;$t<yt;++$t){if(15<et[$t])return 0;++Ur[et[$t]]}if(Ur[0]==yt)return 0;for(Br[1]=0,Qt=1;15>Qt;++Qt){if(Ur[Qt]>1<<Qt)return 0;Br[Qt+1]=Br[Qt]+Ur[Qt]}for($t=0;$t<yt;++$t)Qt=et[$t],0<et[$t]&&(Ut[Br[Qt]++]=$t);if(Br[15]==1)return(et=new jt).g=0,et.value=Ut[0],Dt(Ue,Hr,1,ln,et),ln;var an,pn=-1,jn=ln-1,_i=0,Di=1,da=1,Ji=1<<Ce;for($t=0,Qt=1,yt=2;Qt<=Ce;++Qt,yt<<=1){if(Di+=da<<=1,0>(da-=Ur[Qt]))return 0;for(;0<Ur[Qt];--Ur[Qt])(et=new jt).g=Qt,et.value=Ut[$t++],Dt(Ue,Hr+_i,yt,Ji,et),_i=Tt(_i,Qt)}for(Qt=Ce+1,yt=2;15>=Qt;++Qt,yt<<=1){if(Di+=da<<=1,0>(da-=Ur[Qt]))return 0;for(;0<Ur[Qt];--Ur[Qt]){if(et=new jt,(_i&jn)!=pn){for(Hr+=Ji,an=1<<(pn=Qt)-Ce;15>pn&&!(0>=(an-=Ur[pn]));)++pn,an<<=1;ln+=Ji=1<<(an=pn-Ce),Ue[ie+(pn=_i&jn)].g=an+Ce,Ue[ie+pn].value=Hr-ie-pn}et.g=Qt-Ce,et.value=Ut[$t++],Dt(Ue,Hr+(_i>>Ce),yt,Ji,et),_i=Tt(_i,Qt)}}return Di!=2*Br[15]-1?0:ln}(xe,Ze,wt,ir,Pr,nn)}function jt(){this.value=this.g=0}function Ot(){this.value=this.g=0}function nr(){this.G=at(5,jt),this.H=qe(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=at(vo,Ot)}function pr(xe,Ze,wt,ir){Me(xe!=null),Me(Ze!=null),Me(2147483648>ir),xe.Ca=254,xe.I=0,xe.b=-8,xe.Ka=0,xe.oa=Ze,xe.pa=wt,xe.Jd=Ze,xe.Yc=wt+ir,xe.Zc=4<=ir?wt+ir-4+1:wt,xi(xe)}function Ar(xe,Ze){for(var wt=0;0<Ze--;)wt|=Li(xe,128)<<Ze;return wt}function Nr(xe,Ze){var wt=Ar(xe,Ze);return Ni(xe)?-wt:wt}function Hn(xe,Ze,wt,ir){var Pr,nn=0;for(Me(xe!=null),Me(Ze!=null),Me(4294967288>ir),xe.Sb=ir,xe.Ra=0,xe.u=0,xe.h=0,4<ir&&(ir=4),Pr=0;Pr<ir;++Pr)nn+=Ze[wt+Pr]<<8*Pr;xe.Ra=nn,xe.bb=ir,xe.oa=Ze,xe.pa=wt}function Ln(xe){for(;8<=xe.u&&xe.bb<xe.Sb;)xe.Ra>>>=8,xe.Ra+=xe.oa[xe.pa+xe.bb]<<gs-8>>>0,++xe.bb,xe.u-=8;Wn(xe)&&(xe.h=1,xe.u=0)}function ci(xe,Ze){if(Me(0<=Ze),!xe.h&&Ze<=rl){var wt=En(xe)&Ms[Ze];return xe.u+=Ze,Ln(xe),wt}return xe.h=1,xe.u=0}function hn(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function Fr(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function En(xe){return xe.Ra>>>(xe.u&gs-1)>>>0}function Wn(xe){return Me(xe.bb<=xe.Sb),xe.h||xe.bb==xe.Sb&&xe.u>gs}function Yn(xe,Ze){xe.u=Ze,xe.h=Wn(xe)}function ii(xe){xe.u>=Ra&&(Me(xe.u>=Ra),Ln(xe))}function xi(xe){Me(xe!=null&&xe.oa!=null),xe.pa<xe.Zc?(xe.I=(xe.oa[xe.pa++]|xe.I<<8)>>>0,xe.b+=8):(Me(xe!=null&&xe.oa!=null),xe.pa<xe.Yc?(xe.b+=8,xe.I=xe.oa[xe.pa++]|xe.I<<8):xe.Ka?xe.b=0:(xe.I<<=8,xe.b+=8,xe.Ka=1))}function Ni(xe){return Ar(xe,1)}function Li(xe,Ze){var wt=xe.Ca;0>xe.b&&xi(xe);var ir=xe.b,Pr=wt*Ze>>>8,nn=(xe.I>>>ir>Pr)+0;for(nn?(wt-=Pr,xe.I-=Pr+1<<ir>>>0):wt=Pr+1,ir=wt,Pr=0;256<=ir;)Pr+=8,ir>>=8;return ir=7^Pr+dl[ir],xe.b-=ir,xe.Ca=(wt<<ir)-1,nn}function oa(xe,Ze,wt){xe[Ze+0]=wt>>24&255,xe[Ze+1]=wt>>16&255,xe[Ze+2]=wt>>8&255,xe[Ze+3]=wt>>0&255}function ma(xe,Ze){return xe[Ze+0]<<0|xe[Ze+1]<<8}function ia(xe,Ze){return ma(xe,Ze)|xe[Ze+2]<<16}function ba(xe,Ze){return ma(xe,Ze)|ma(xe,Ze+2)<<16}function vi(xe,Ze){var wt=1<<Ze;return Me(xe!=null),Me(0<Ze),xe.X=qe(wt),xe.X==null?0:(xe.Mb=32-Ze,xe.Xa=Ze,1)}function On(xe,Ze){Me(xe!=null),Me(Ze!=null),Me(xe.Xa==Ze.Xa),Ye(Ze.X,0,xe.X,0,1<<Ze.Xa)}function Fi(){this.X=[],this.Xa=this.Mb=0}function ha(xe,Ze,wt,ir){Me(wt!=null),Me(ir!=null);var Pr=wt[0],nn=ir[0];return Pr==0&&(Pr=(xe*nn+Ze/2)/Ze),nn==0&&(nn=(Ze*Pr+xe/2)/xe),0>=Pr||0>=nn?0:(wt[0]=Pr,ir[0]=nn,1)}function ea(xe,Ze){return xe+(1<<Ze)-1>>>Ze}function aa(xe,Ze){return((4278255360&xe)+(4278255360&Ze)>>>0&4278255360)+((16711935&xe)+(16711935&Ze)>>>0&16711935)>>>0}function Or(xe,Ze){Ht[Ze]=function(wt,ir,Pr,nn,Ue,ie,Ce){var et;for(et=0;et<Ue;++et){var yt=Ht[xe](ie[Ce+et-1],Pr,nn+et);ie[Ce+et]=aa(wt[ir+et],yt)}}}function wr(){this.ud=this.hd=this.jd=0}function Sn(xe,Ze){return((4278124286&(xe^Ze))>>>1)+(xe&Ze)>>>0}function cr(xe){return 0<=xe&&256>xe?xe:0>xe?0:255<xe?255:void 0}function Lr(xe,Ze){return cr(xe+(xe-Ze+.5>>1))}function Wr(xe,Ze,wt){return Math.abs(Ze-wt)-Math.abs(xe-wt)}function on(xe,Ze,wt,ir,Pr,nn,Ue){for(ir=nn[Ue-1],wt=0;wt<Pr;++wt)nn[Ue+wt]=ir=aa(xe[Ze+wt],ir)}function Nn(xe,Ze,wt,ir,Pr){var nn;for(nn=0;nn<wt;++nn){var Ue=xe[Ze+nn],ie=Ue>>8&255,Ce=16711935&(Ce=(Ce=16711935&Ue)+((ie<<16)+ie));ir[Pr+nn]=(4278255360&Ue)+Ce>>>0}}function Et(xe,Ze){Ze.jd=xe>>0&255,Ze.hd=xe>>8&255,Ze.ud=xe>>16&255}function Cr(xe,Ze,wt,ir,Pr,nn){var Ue;for(Ue=0;Ue<ir;++Ue){var ie=Ze[wt+Ue],Ce=ie>>>8,et=ie,yt=255&(yt=(yt=ie>>>16)+((xe.jd<<24>>24)*(Ce<<24>>24)>>>5));et=255&(et=(et=et+((xe.hd<<24>>24)*(Ce<<24>>24)>>>5))+((xe.ud<<24>>24)*(yt<<24>>24)>>>5)),Pr[nn+Ue]=(4278255360&ie)+(yt<<16)+et}}function _r(xe,Ze,wt,ir,Pr){Ht[Ze]=function(nn,Ue,ie,Ce,et,yt,Ut,Qt,$t){for(Ce=Ut;Ce<Qt;++Ce)for(Ut=0;Ut<$t;++Ut)et[yt++]=Pr(ie[ir(nn[Ue++])])},Ht[xe]=function(nn,Ue,ie,Ce,et,yt,Ut){var Qt=8>>nn.b,$t=nn.Ea,Hr=nn.K[0],ln=nn.w;if(8>Qt)for(nn=(1<<nn.b)-1,ln=(1<<Qt)-1;Ue<ie;++Ue){var Ur,Br=0;for(Ur=0;Ur<$t;++Ur)Ur&nn||(Br=ir(Ce[et++])),yt[Ut++]=Pr(Hr[Br&ln]),Br>>=Qt}else Ht["VP8LMapColor"+wt](Ce,et,Hr,ln,yt,Ut,Ue,ie,$t)}}function $r(xe,Ze,wt,ir,Pr){for(wt=Ze+wt;Ze<wt;){var nn=xe[Ze++];ir[Pr++]=nn>>16&255,ir[Pr++]=nn>>8&255,ir[Pr++]=nn>>0&255}}function yn(xe,Ze,wt,ir,Pr){for(wt=Ze+wt;Ze<wt;){var nn=xe[Ze++];ir[Pr++]=nn>>16&255,ir[Pr++]=nn>>8&255,ir[Pr++]=nn>>0&255,ir[Pr++]=nn>>24&255}}function Tn(xe,Ze,wt,ir,Pr){for(wt=Ze+wt;Ze<wt;){var nn=(Ue=xe[Ze++])>>16&240|Ue>>12&15,Ue=Ue>>0&240|Ue>>28&15;ir[Pr++]=nn,ir[Pr++]=Ue}}function vn(xe,Ze,wt,ir,Pr){for(wt=Ze+wt;Ze<wt;){var nn=(Ue=xe[Ze++])>>16&248|Ue>>13&7,Ue=Ue>>5&224|Ue>>3&31;ir[Pr++]=nn,ir[Pr++]=Ue}}function Qn(xe,Ze,wt,ir,Pr){for(wt=Ze+wt;Ze<wt;){var nn=xe[Ze++];ir[Pr++]=nn>>0&255,ir[Pr++]=nn>>8&255,ir[Pr++]=nn>>16&255}}function Fn(xe,Ze,wt,ir,Pr,nn){if(nn==0)for(wt=Ze+wt;Ze<wt;)oa(ir,((nn=xe[Ze++])[0]>>24|nn[1]>>8&65280|nn[2]<<8&16711680|nn[3]<<24)>>>0),Pr+=32;else Ye(ir,Pr,xe,Ze,wt)}function fi(xe,Ze){Ht[Ze][0]=Ht[xe+"0"],Ht[Ze][1]=Ht[xe+"1"],Ht[Ze][2]=Ht[xe+"2"],Ht[Ze][3]=Ht[xe+"3"],Ht[Ze][4]=Ht[xe+"4"],Ht[Ze][5]=Ht[xe+"5"],Ht[Ze][6]=Ht[xe+"6"],Ht[Ze][7]=Ht[xe+"7"],Ht[Ze][8]=Ht[xe+"8"],Ht[Ze][9]=Ht[xe+"9"],Ht[Ze][10]=Ht[xe+"10"],Ht[Ze][11]=Ht[xe+"11"],Ht[Ze][12]=Ht[xe+"12"],Ht[Ze][13]=Ht[xe+"13"],Ht[Ze][14]=Ht[xe+"0"],Ht[Ze][15]=Ht[xe+"0"]}function Ri(xe){return xe==Lu||xe==zl||xe==ru||xe==ou}function yi(){this.eb=[],this.size=this.A=this.fb=0}function Ci(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function Wi(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new yi,this.f.kb=new Ci,this.sd=null}function qi(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function zi(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Ki(xe){return alert("todo:WebPSamplerProcessPlane"),xe.T}function ji(xe,Ze){var wt=xe.T,ir=Ze.ba.f.RGBA,Pr=ir.eb,nn=ir.fb+xe.ka*ir.A,Ue=Ge[Ze.ba.S],ie=xe.y,Ce=xe.O,et=xe.f,yt=xe.N,Ut=xe.ea,Qt=xe.W,$t=Ze.cc,Hr=Ze.dc,ln=Ze.Mc,Ur=Ze.Nc,Br=xe.ka,an=xe.ka+xe.T,pn=xe.U,jn=pn+1>>1;for(Br==0?Ue(ie,Ce,null,null,et,yt,Ut,Qt,et,yt,Ut,Qt,Pr,nn,null,null,pn):(Ue(Ze.ec,Ze.fc,ie,Ce,$t,Hr,ln,Ur,et,yt,Ut,Qt,Pr,nn-ir.A,Pr,nn,pn),++wt);Br+2<an;Br+=2)$t=et,Hr=yt,ln=Ut,Ur=Qt,yt+=xe.Rc,Qt+=xe.Rc,nn+=2*ir.A,Ue(ie,(Ce+=2*xe.fa)-xe.fa,ie,Ce,$t,Hr,ln,Ur,et,yt,Ut,Qt,Pr,nn-ir.A,Pr,nn,pn);return Ce+=xe.fa,xe.j+an<xe.o?(Ye(Ze.ec,Ze.fc,ie,Ce,pn),Ye(Ze.cc,Ze.dc,et,yt,jn),Ye(Ze.Mc,Ze.Nc,Ut,Qt,jn),wt--):1&an||Ue(ie,Ce,null,null,et,yt,Ut,Qt,et,yt,Ut,Qt,Pr,nn+ir.A,null,null,pn),wt}function Yi(xe,Ze,wt){var ir=xe.F,Pr=[xe.J];if(ir!=null){var nn=xe.U,Ue=Ze.ba.S,ie=Ue==Ol||Ue==ru;Ze=Ze.ba.f.RGBA;var Ce=[0],et=xe.ka;Ce[0]=xe.T,xe.Kb&&(et==0?--Ce[0]:(--et,Pr[0]-=xe.width),xe.j+xe.ka+xe.T==xe.o&&(Ce[0]=xe.o-xe.j-et));var yt=Ze.eb;et=Ze.fb+et*Ze.A,xe=Nl(ir,Pr[0],xe.width,nn,Ce,yt,et+(ie?0:3),Ze.A),Me(wt==Ce),xe&&Ri(Ue)&&Wl(yt,et,ie,nn,Ce,Ze.A)}return 0}function ca(xe){var Ze=xe.ma,wt=Ze.ba.S,ir=11>wt,Pr=wt==Su||wt==Au||wt==Ol||wt==cu||wt==12||Ri(wt);if(Ze.memory=null,Ze.Ib=null,Ze.Jb=null,Ze.Nd=null,!As(Ze.Oa,xe,Pr?11:12))return 0;if(Pr&&Ri(wt)&&Je(),xe.da)alert("todo:use_scaling");else{if(ir){if(Ze.Ib=Ki,xe.Kb){if(wt=xe.U+1>>1,Ze.memory=qe(xe.U+2*wt),Ze.memory==null)return 0;Ze.ec=Ze.memory,Ze.fc=0,Ze.cc=Ze.ec,Ze.dc=Ze.fc+xe.U,Ze.Mc=Ze.cc,Ze.Nc=Ze.dc+wt,Ze.Ib=ji,Je()}}else alert("todo:EmitYUV");Pr&&(Ze.Jb=Yi,ir&&Se())}if(ir&&!ta){for(xe=0;256>xe;++xe)Pa[xe]=89858*(xe-128)+kn>>In,Sa[xe]=-22014*(xe-128)+kn,Ba[xe]=-45773*(xe-128),Ya[xe]=113618*(xe-128)+kn>>In;for(xe=Gn;xe<bi;++xe)Ze=76283*(xe-16)+kn>>In,Go[xe-Gn]=_o(Ze,255),Ls[xe-Gn]=_o(Ze+8>>4,15);ta=1}return 1}function Ca(xe){var Ze=xe.ma,wt=xe.U,ir=xe.T;return Me(!(1&xe.ka)),0>=wt||0>=ir?0:(wt=Ze.Ib(xe,Ze),Ze.Jb!=null&&Ze.Jb(xe,Ze,wt),Ze.Dc+=wt,1)}function ra(xe){xe.ma.memory=null}function Ma(xe,Ze,wt,ir){return ci(xe,8)!=47?0:(Ze[0]=ci(xe,14)+1,wt[0]=ci(xe,14)+1,ir[0]=ci(xe,1),ci(xe,3)!=0?0:!xe.h)}function La(xe,Ze){if(4>xe)return xe+1;var wt=xe-2>>1;return(2+(1&xe)<<wt)+ci(Ze,wt)+1}function va(xe,Ze){return 120<Ze?Ze-120:1<=(wt=((wt=yu[Ze-1])>>4)*xe+(8-(15&wt)))?wt:1;var wt}function ga(xe,Ze,wt){var ir=En(wt),Pr=xe[Ze+=255&ir].g-8;return 0<Pr&&(Yn(wt,wt.u+8),ir=En(wt),Ze+=xe[Ze].value,Ze+=ir&(1<<Pr)-1),Yn(wt,wt.u+xe[Ze].g),xe[Ze].value}function Oa(xe,Ze,wt){return wt.g+=xe.g,wt.value+=xe.value<<Ze>>>0,Me(8>=wt.g),xe.g}function Aa(xe,Ze,wt){var ir=xe.xc;return Me((Ze=ir==0?0:xe.vc[xe.md*(wt>>ir)+(Ze>>ir)])<xe.Wb),xe.Ya[Ze]}function Ga(xe,Ze,wt,ir){var Pr=xe.ab,nn=xe.c*Ze,Ue=xe.C;Ze=Ue+Ze;var ie=wt,Ce=ir;for(ir=xe.Ta,wt=xe.Ua;0<Pr--;){var et=xe.gc[Pr],yt=Ue,Ut=Ze,Qt=ie,$t=Ce,Hr=(Ce=ir,ie=wt,et.Ea);switch(Me(yt<Ut),Me(Ut<=et.nc),et.hc){case 2:_s(Qt,$t,(Ut-yt)*Hr,Ce,ie);break;case 0:var ln=yt,Ur=Ut,Br=Ce,an=ie,pn=(Ji=et).Ea;ln==0&&(fl(Qt,$t,null,null,1,Br,an),on(Qt,$t+1,0,0,pn-1,Br,an+1),$t+=pn,an+=pn,++ln);for(var jn=1<<Ji.b,_i=jn-1,Di=ea(pn,Ji.b),da=Ji.K,Ji=Ji.w+(ln>>Ji.b)*Di;ln<Ur;){var Qa=da,ya=Ji,fo=1;for(js(Qt,$t,Br,an-pn,1,Br,an);fo<pn;){var za=(fo&~_i)+jn;za>pn&&(za=pn),(0,Ts[Qa[ya++]>>8&15])(Qt,$t+ +fo,Br,an+fo-pn,za-fo,Br,an+fo),fo=za}$t+=pn,an+=pn,++ln&_i||(Ji+=Di)}Ut!=et.nc&&Ye(Ce,ie-Hr,Ce,ie+(Ut-yt-1)*Hr,Hr);break;case 1:for(Hr=Qt,Ur=$t,pn=(Qt=et.Ea)-(an=Qt&~(Br=($t=1<<et.b)-1)),ln=ea(Qt,et.b),jn=et.K,et=et.w+(yt>>et.b)*ln;yt<Ut;){for(_i=jn,Di=et,da=new wr,Ji=Ur+an,Qa=Ur+Qt;Ur<Ji;)Et(_i[Di++],da),Ks(da,Hr,Ur,$t,Ce,ie),Ur+=$t,ie+=$t;Ur<Qa&&(Et(_i[Di++],da),Ks(da,Hr,Ur,pn,Ce,ie),Ur+=pn,ie+=pn),++yt&Br||(et+=ln)}break;case 3:if(Qt==Ce&&$t==ie&&0<et.b){for(Ur=Ce,Qt=Hr=ie+(Ut-yt)*Hr-(an=(Ut-yt)*ea(et.Ea,et.b)),$t=Ce,Br=ie,ln=[],an=(pn=an)-1;0<=an;--an)ln[an]=$t[Br+an];for(an=pn-1;0<=an;--an)Ur[Qt+an]=ln[an];Xs(et,yt,Ut,Ce,Hr,Ce,ie)}else Xs(et,yt,Ut,Qt,$t,Ce,ie)}ie=ir,Ce=wt}Ce!=wt&&Ye(ir,wt,ie,Ce,nn)}function _a(xe,Ze){var wt=xe.V,ir=xe.Ba+xe.c*xe.C,Pr=Ze-xe.C;if(Me(Ze<=xe.l.o),Me(16>=Pr),0<Pr){var nn=xe.l,Ue=xe.Ta,ie=xe.Ua,Ce=nn.width;if(Ga(xe,Pr,wt,ir),Pr=ie=[ie],Me((wt=xe.C)<(ir=Ze)),Me(nn.v<nn.va),ir>nn.o&&(ir=nn.o),wt<nn.j){var et=nn.j-wt;wt=nn.j,Pr[0]+=et*Ce}if(wt>=ir?wt=0:(Pr[0]+=4*nn.v,nn.ka=wt-nn.j,nn.U=nn.va-nn.v,nn.T=ir-wt,wt=1),wt){if(ie=ie[0],11>(wt=xe.ca).S){var yt=wt.f.RGBA,Ut=(ir=wt.S,Pr=nn.U,nn=nn.T,et=yt.eb,yt.A),Qt=nn;for(yt=yt.fb+xe.Ma*yt.A;0<Qt--;){var $t=Ue,Hr=ie,ln=Pr,Ur=et,Br=yt;switch(ir){case Sl:Tl($t,Hr,ln,Ur,Br);break;case Su:pl($t,Hr,ln,Ur,Br);break;case Lu:pl($t,Hr,ln,Ur,Br),Wl(Ur,Br,0,ln,1,0);break;case vu:qo($t,Hr,ln,Ur,Br);break;case Au:Fn($t,Hr,ln,Ur,Br,1);break;case zl:Fn($t,Hr,ln,Ur,Br,1),Wl(Ur,Br,0,ln,1,0);break;case Ol:Fn($t,Hr,ln,Ur,Br,0);break;case ru:Fn($t,Hr,ln,Ur,Br,0),Wl(Ur,Br,1,ln,1,0);break;case cu:jo($t,Hr,ln,Ur,Br);break;case ou:jo($t,Hr,ln,Ur,Br),au(Ur,Br,ln,1,0);break;case du:yo($t,Hr,ln,Ur,Br);break;default:Me(0)}ie+=Ce,yt+=Ut}xe.Ma+=nn}else alert("todo:EmitRescaledRowsYUVA");Me(xe.Ma<=wt.height)}}xe.C=Ze,Me(xe.C<=xe.i)}function Va(xe){var Ze;if(0<xe.ua)return 0;for(Ze=0;Ze<xe.Wb;++Ze){var wt=xe.Ya[Ze].G,ir=xe.Ya[Ze].H;if(0<wt[1][ir[1]+0].g||0<wt[2][ir[2]+0].g||0<wt[3][ir[3]+0].g)return 0}return 1}function Bi(xe,Ze,wt,ir,Pr,nn){if(xe.Z!=0){var Ue=xe.qd,ie=xe.rd;for(Me(Te[xe.Z]!=null);Ze<wt;++Ze)Te[xe.Z](Ue,ie,ir,Pr,ir,Pr,nn),Ue=ir,ie=Pr,Pr+=nn;xe.qd=Ue,xe.rd=ie}}function io(xe,Ze){var wt=xe.l.ma,ir=wt.Z==0||wt.Z==1?xe.l.j:xe.C;if(ir=xe.C<ir?ir:xe.C,Me(Ze<=xe.l.o),Ze>ir){var Pr=xe.l.width,nn=wt.ca,Ue=wt.tb+Pr*ir,ie=xe.V,Ce=xe.Ba+xe.c*ir,et=xe.gc;Me(xe.ab==1),Me(et[0].hc==3),Ul(et[0],ir,Ze,ie,Ce,nn,Ue),Bi(wt,ir,Ze,nn,Ue,Pr)}xe.C=xe.Ma=Ze}function oo(xe,Ze,wt,ir,Pr,nn,Ue){var ie=xe.$/ir,Ce=xe.$%ir,et=xe.m,yt=xe.s,Ut=wt+xe.$,Qt=Ut;Pr=wt+ir*Pr;var $t=wt+ir*nn,Hr=280+yt.ua,ln=xe.Pb?ie:16777216,Ur=0<yt.ua?yt.Wa:null,Br=yt.wc,an=Ut<$t?Aa(yt,Ce,ie):null;Me(xe.C<nn),Me($t<=Pr);var pn=!1;e:for(;;){for(;pn||Ut<$t;){var jn=0;if(ie>=ln){var _i=Ut-wt;Me((ln=xe).Pb),ln.wd=ln.m,ln.xd=_i,0<ln.s.ua&&On(ln.s.Wa,ln.s.vb),ln=ie+bu}if(Ce&Br||(an=Aa(yt,Ce,ie)),Me(an!=null),an.Qb&&(Ze[Ut]=an.qb,pn=!0),!pn)if(ii(et),an.jc){jn=et,_i=Ze;var Di=Ut,da=an.pd[En(jn)&vo-1];Me(an.jc),256>da.g?(Yn(jn,jn.u+da.g),_i[Di]=da.value,jn=0):(Yn(jn,jn.u+da.g-256),Me(256<=da.value),jn=da.value),jn==0&&(pn=!0)}else jn=ga(an.G[0],an.H[0],et);if(et.h)break;if(pn||256>jn){if(!pn)if(an.nd)Ze[Ut]=(an.qb|jn<<8)>>>0;else{if(ii(et),pn=ga(an.G[1],an.H[1],et),ii(et),_i=ga(an.G[2],an.H[2],et),Di=ga(an.G[3],an.H[3],et),et.h)break;Ze[Ut]=(Di<<24|pn<<16|jn<<8|_i)>>>0}if(pn=!1,++Ut,++Ce>=ir&&(Ce=0,++ie,Ue!=null&&ie<=nn&&!(ie%16)&&Ue(xe,ie),Ur!=null))for(;Qt<Ut;)jn=Ze[Qt++],Ur.X[(506832829*jn&4294967295)>>>Ur.Mb]=jn}else if(280>jn){if(jn=La(jn-256,et),_i=ga(an.G[4],an.H[4],et),ii(et),_i=va(ir,_i=La(_i,et)),et.h)break;if(Ut-wt<_i||Pr-Ut<jn)break e;for(Di=0;Di<jn;++Di)Ze[Ut+Di]=Ze[Ut+Di-_i];for(Ut+=jn,Ce+=jn;Ce>=ir;)Ce-=ir,++ie,Ue!=null&&ie<=nn&&!(ie%16)&&Ue(xe,ie);if(Me(Ut<=Pr),Ce&Br&&(an=Aa(yt,Ce,ie)),Ur!=null)for(;Qt<Ut;)jn=Ze[Qt++],Ur.X[(506832829*jn&4294967295)>>>Ur.Mb]=jn}else{if(!(jn<Hr))break e;for(pn=jn-280,Me(Ur!=null);Qt<Ut;)jn=Ze[Qt++],Ur.X[(506832829*jn&4294967295)>>>Ur.Mb]=jn;jn=Ut,Me(!(pn>>>(_i=Ur).Xa)),Ze[jn]=_i.X[pn],pn=!0}pn||Me(et.h==Wn(et))}if(xe.Pb&&et.h&&Ut<Pr)Me(xe.m.h),xe.a=5,xe.m=xe.wd,xe.$=xe.xd,0<xe.s.ua&&On(xe.s.vb,xe.s.Wa);else{if(et.h)break e;Ue!=null&&Ue(xe,ie>nn?nn:ie),xe.a=0,xe.$=Ut-wt}return 1}return xe.a=3,0}function Qo(xe){Me(xe!=null),xe.vc=null,xe.yc=null,xe.Ya=null;var Ze=xe.Wa;Ze!=null&&(Ze.X=null),xe.vb=null,Me(xe!=null)}function mo(){var xe=new No;return xe==null?null:(xe.a=0,xe.xb=Ae,fi("Predictor","VP8LPredictors"),fi("Predictor","VP8LPredictors_C"),fi("PredictorAdd","VP8LPredictorsAdd"),fi("PredictorAdd","VP8LPredictorsAdd_C"),_s=Nn,Ks=Cr,Tl=$r,pl=yn,jo=Tn,yo=vn,qo=Qn,Ht.VP8LMapColor32b=Ql,Ht.VP8LMapColor8b=wl,xe)}function To(xe,Ze,wt,ir,Pr){var nn=1,Ue=[xe],ie=[Ze],Ce=ir.m,et=ir.s,yt=null,Ut=0;e:for(;;){if(wt)for(;nn&&ci(Ce,1);){var Qt=Ue,$t=ie,Hr=ir,ln=1,Ur=Hr.m,Br=Hr.gc[Hr.ab],an=ci(Ur,2);if(Hr.Oc&1<<an)nn=0;else{switch(Hr.Oc|=1<<an,Br.hc=an,Br.Ea=Qt[0],Br.nc=$t[0],Br.K=[null],++Hr.ab,Me(4>=Hr.ab),an){case 0:case 1:Br.b=ci(Ur,3)+2,ln=To(ea(Br.Ea,Br.b),ea(Br.nc,Br.b),0,Hr,Br.K),Br.K=Br.K[0];break;case 3:var pn,jn=ci(Ur,8)+1,_i=16<jn?0:4<jn?1:2<jn?2:3;if(Qt[0]=ea(Br.Ea,_i),Br.b=_i,pn=ln=To(jn,1,0,Hr,Br.K)){var Di,da=jn,Ji=Br,Qa=1<<(8>>Ji.b),ya=qe(Qa);if(ya==null)pn=0;else{var fo=Ji.K[0],za=Ji.w;for(ya[0]=Ji.K[0][0],Di=1;Di<1*da;++Di)ya[Di]=aa(fo[za+Di],ya[Di-1]);for(;Di<4*Qa;++Di)ya[Di]=0;Ji.K[0]=null,Ji.K[0]=ya,pn=1}}ln=pn;break;case 2:break;default:Me(0)}nn=ln}}if(Ue=Ue[0],ie=ie[0],nn&&ci(Ce,1)&&!(nn=1<=(Ut=ci(Ce,4))&&11>=Ut)){ir.a=3;break e}var Xo;if(Xo=nn)t:{var ls,N,U,ne=ir,se=Ue,ge=ie,ze=Ut,Ct=wt,Zt=ne.m,yr=ne.s,Tr=[null],Pn=1,$n=0,Si=xu[ze];r:for(;;){if(Ct&&ci(Zt,1)){var Ti=ci(Zt,3)+2,la=ea(se,Ti),Ta=ea(ge,Ti),Wa=la*Ta;if(!To(la,Ta,0,ne,Tr))break r;for(Tr=Tr[0],yr.xc=Ti,ls=0;ls<Wa;++ls){var ka=Tr[ls]>>8&65535;Tr[ls]=ka,ka>=Pn&&(Pn=ka+1)}}if(Zt.h)break r;for(N=0;5>N;++N){var Na=Du[N];!N&&0<ze&&(Na+=1<<ze),$n<Na&&($n=Na)}var qa=at(Pn*Si,jt),ho=Pn,ns=at(ho,nr);if(ns==null)var Mo=null;else Me(65536>=ho),Mo=ns;var Ss=qe($n);if(Mo==null||Ss==null||qa==null){ne.a=1;break r}var Zs=qa;for(ls=U=0;ls<Pn;++ls){var yl=Mo[ls],ul=yl.G,Pl=yl.H,Vl=0,Il=1,Gl=0;for(N=0;5>N;++N){Na=Du[N],ul[N]=Zs,Pl[N]=U,!N&&0<ze&&(Na+=1<<ze);i:{var Fl,Ja=Na,vl=ne,gl=Ss,El=Zs,Bu=U,Hs=0,vs=vl.m,lu=ci(vs,1);if(rt(gl,0,0,Ja),lu){var Kl=ci(vs,1)+1,Uu=ci(vs,1),Eu=ci(vs,Uu==0?1:8);gl[Eu]=1,Kl==2&&(gl[Eu=ci(vs,8)]=1);var uu=1}else{var ku=qe(19),Yl=ci(vs,4)+4;if(19<Yl){vl.a=3;var Tu=0;break i}for(Fl=0;Fl<Yl;++Fl)ku[Zl[Fl]]=ci(vs,3);var Vu=void 0,Ju=void 0,vc=vl,Ac=ku,tc=Ja,yc=gl,sc=0,ju=vc.m,hc=8,bc=at(128,jt);n:for(;Bt(bc,0,7,Ac,19);){if(ci(ju,1)){var Tc=2+2*ci(ju,3);if((Vu=2+ci(ju,Tc))>tc)break n}else Vu=tc;for(Ju=0;Ju<tc&&Vu--;){ii(ju);var wc=bc[0+(127&En(ju))];Yn(ju,ju.u+wc.g);var Pu=wc.value;if(16>Pu)yc[Ju++]=Pu,Pu!=0&&(hc=Pu);else{var Cu=Pu==16,fc=Pu-16,lc=Jl[fc],Sc=ci(ju,su[fc])+lc;if(Ju+Sc>tc)break n;for(var Cc=Cu?hc:0;0<Sc--;)yc[Ju++]=Cc}}sc=1;break n}sc||(vc.a=3),uu=sc}(uu=uu&&!vs.h)&&(Hs=Bt(El,Bu,8,gl,Ja)),uu&&Hs!=0?Tu=Hs:(vl.a=3,Tu=0)}if(Tu==0)break r;if(Il&&Ru[N]==1&&(Il=Zs[U].g==0),Vl+=Zs[U].g,U+=Tu,3>=N){var Gu,Hu=Ss[0];for(Gu=1;Gu<Na;++Gu)Ss[Gu]>Hu&&(Hu=Ss[Gu]);Gl+=Hu}}if(yl.nd=Il,yl.Qb=0,Il&&(yl.qb=(ul[3][Pl[3]+0].value<<24|ul[1][Pl[1]+0].value<<16|ul[2][Pl[2]+0].value)>>>0,Vl==0&&256>ul[0][Pl[0]+0].value&&(yl.Qb=1,yl.qb+=ul[0][Pl[0]+0].value<<8)),yl.jc=!yl.Qb&&6>Gl,yl.jc){var Xu,Fu=yl;for(Xu=0;Xu<vo;++Xu){var wu=Xu,Ku=Fu.pd[wu],uc=Fu.G[0][Fu.H[0]+wu];256<=uc.value?(Ku.g=uc.g+256,Ku.value=uc.value):(Ku.g=0,Ku.value=0,wu>>=Oa(uc,8,Ku),wu>>=Oa(Fu.G[1][Fu.H[1]+wu],16,Ku),wu>>=Oa(Fu.G[2][Fu.H[2]+wu],0,Ku),Oa(Fu.G[3][Fu.H[3]+wu],24,Ku))}}}yr.vc=Tr,yr.Wb=Pn,yr.Ya=Mo,yr.yc=qa,Xo=1;break t}Xo=0}if(!(nn=Xo)){ir.a=3;break e}if(0<Ut){if(et.ua=1<<Ut,!vi(et.Wa,Ut)){ir.a=1,nn=0;break e}}else et.ua=0;var cc=ir,xc=Ue,Ec=ie,pc=cc.s,mc=pc.xc;if(cc.c=xc,cc.i=Ec,pc.md=ea(xc,mc),pc.wc=mc==0?-1:(1<<mc)-1,wt){ir.xb=re;break e}if((yt=qe(Ue*ie))==null){ir.a=1,nn=0;break e}nn=(nn=oo(ir,yt,0,Ue,ie,ie,null))&&!Ce.h;break e}return nn?(Pr!=null?Pr[0]=yt:(Me(yt==null),Me(wt)),ir.$=0,wt||Qo(et)):Qo(et),nn}function ao(xe,Ze){var wt=xe.c*xe.i,ir=wt+Ze+16*Ze;return Me(xe.c<=Ze),xe.V=qe(ir),xe.V==null?(xe.Ta=null,xe.Ua=0,xe.a=1,0):(xe.Ta=xe.V,xe.Ua=xe.Ba+wt+Ze,1)}function So(xe,Ze){var wt=xe.C,ir=Ze-wt,Pr=xe.V,nn=xe.Ba+xe.c*wt;for(Me(Ze<=xe.l.o);0<ir;){var Ue=16<ir?16:ir,ie=xe.l.ma,Ce=xe.l.width,et=Ce*Ue,yt=ie.ca,Ut=ie.tb+Ce*wt,Qt=xe.Ta,$t=xe.Ua;Ga(xe,Ue,Pr,nn),$l(Qt,$t,yt,Ut,et),Bi(ie,wt,wt+Ue,yt,Ut,Ce),ir-=Ue,Pr+=Ue*xe.c,wt+=Ue}Me(wt==Ze),xe.C=xe.Ma=Ze}function bo(){this.ub=this.yd=this.td=this.Rb=0}function to(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Jo(){this.Fb=this.Bb=this.Cb=0,this.Zb=qe(4),this.Lb=qe(4)}function Uo(){this.Yb=function(){var xe=[];return function Ze(wt,ir,Pr){for(var nn=Pr[ir],Ue=0;Ue<nn&&(wt.push(Pr.length>ir+1?[]:0),!(Pr.length<ir+1));Ue++)Ze(wt[Ue],ir+1,Pr)}(xe,0,[3,11]),xe}()}function wo(){this.jb=qe(3),this.Wc=St([4,8],Uo),this.Xc=St([4,17],Uo)}function ts(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new qe(4),this.od=new qe(4)}function Ia(){this.ld=this.La=this.dd=this.tc=0}function Oo(){this.Na=this.la=0}function Io(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function os(){this.ad=qe(384),this.Za=0,this.Ob=qe(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function xo(){this.uc=this.M=this.Nb=0,this.wa=Array(new Ia),this.Y=0,this.ya=Array(new os),this.aa=0,this.l=new uo}function rs(){this.y=qe(16),this.f=qe(8),this.ea=qe(8)}function Ho(){this.cb=this.a=0,this.sc="",this.m=new hn,this.Od=new bo,this.Kc=new to,this.ed=new ts,this.Qa=new Jo,this.Ic=this.$c=this.Aa=0,this.D=new xo,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=at(8,hn),this.ia=0,this.pb=at(4,Io),this.Pa=new wo,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new rs),this.Hd=0,this.rb=Array(new Oo),this.sb=0,this.wa=Array(new Ia),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new os),this.L=this.aa=0,this.gd=St([4,2],Ia),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function _o(xe,Ze){return 0>xe?0:xe>Ze?Ze:xe}function uo(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Ha(){var xe=new Ho;return xe!=null&&(xe.a=0,xe.sc="OK",xe.cb=0,xe.Xb=0,nu||(nu=Vr)),xe}function pt(xe,Ze,wt){return xe.a==0&&(xe.a=Ze,xe.sc=wt,xe.cb=0),0}function xr(xe,Ze,wt){return 3<=wt&&xe[Ze+0]==157&&xe[Ze+1]==1&&xe[Ze+2]==42}function Jr(xe,Ze){if(xe==null)return 0;if(xe.a=0,xe.sc="OK",Ze==null)return pt(xe,2,"null VP8Io passed to VP8GetHeaders()");var wt=Ze.data,ir=Ze.w,Pr=Ze.ha;if(4>Pr)return pt(xe,7,"Truncated header.");var nn=wt[ir+0]|wt[ir+1]<<8|wt[ir+2]<<16,Ue=xe.Od;if(Ue.Rb=!(1&nn),Ue.td=nn>>1&7,Ue.yd=nn>>4&1,Ue.ub=nn>>5,3<Ue.td)return pt(xe,3,"Incorrect keyframe parameters.");if(!Ue.yd)return pt(xe,4,"Frame not displayable.");ir+=3,Pr-=3;var ie=xe.Kc;if(Ue.Rb){if(7>Pr)return pt(xe,7,"cannot parse picture header");if(!xr(wt,ir,Pr))return pt(xe,3,"Bad code word");ie.c=16383&(wt[ir+4]<<8|wt[ir+3]),ie.Td=wt[ir+4]>>6,ie.i=16383&(wt[ir+6]<<8|wt[ir+5]),ie.Ud=wt[ir+6]>>6,ir+=7,Pr-=7,xe.za=ie.c+15>>4,xe.Ub=ie.i+15>>4,Ze.width=ie.c,Ze.height=ie.i,Ze.Da=0,Ze.j=0,Ze.v=0,Ze.va=Ze.width,Ze.o=Ze.height,Ze.da=0,Ze.ib=Ze.width,Ze.hb=Ze.height,Ze.U=Ze.width,Ze.T=Ze.height,rt((nn=xe.Pa).jb,0,255,nn.jb.length),Me((nn=xe.Qa)!=null),nn.Cb=0,nn.Bb=0,nn.Fb=1,rt(nn.Zb,0,0,nn.Zb.length),rt(nn.Lb,0,0,nn.Lb)}if(Ue.ub>Pr)return pt(xe,7,"bad partition length");pr(nn=xe.m,wt,ir,Ue.ub),ir+=Ue.ub,Pr-=Ue.ub,Ue.Rb&&(ie.Ld=Ni(nn),ie.Kd=Ni(nn)),ie=xe.Qa;var Ce,et=xe.Pa;if(Me(nn!=null),Me(ie!=null),ie.Cb=Ni(nn),ie.Cb){if(ie.Bb=Ni(nn),Ni(nn)){for(ie.Fb=Ni(nn),Ce=0;4>Ce;++Ce)ie.Zb[Ce]=Ni(nn)?Nr(nn,7):0;for(Ce=0;4>Ce;++Ce)ie.Lb[Ce]=Ni(nn)?Nr(nn,6):0}if(ie.Bb)for(Ce=0;3>Ce;++Ce)et.jb[Ce]=Ni(nn)?Ar(nn,8):255}else ie.Bb=0;if(nn.Ka)return pt(xe,3,"cannot parse segment header");if((ie=xe.ed).zd=Ni(nn),ie.Tb=Ar(nn,6),ie.wb=Ar(nn,3),ie.Pc=Ni(nn),ie.Pc&&Ni(nn)){for(et=0;4>et;++et)Ni(nn)&&(ie.vd[et]=Nr(nn,6));for(et=0;4>et;++et)Ni(nn)&&(ie.od[et]=Nr(nn,6))}if(xe.L=ie.Tb==0?0:ie.zd?1:2,nn.Ka)return pt(xe,3,"cannot parse filter header");var yt=Pr;if(Pr=Ce=ir,ir=Ce+yt,ie=yt,xe.Xb=(1<<Ar(xe.m,2))-1,yt<3*(et=xe.Xb))wt=7;else{for(Ce+=3*et,ie-=3*et,yt=0;yt<et;++yt){var Ut=wt[Pr+0]|wt[Pr+1]<<8|wt[Pr+2]<<16;Ut>ie&&(Ut=ie),pr(xe.Jc[+yt],wt,Ce,Ut),Ce+=Ut,ie-=Ut,Pr+=3}pr(xe.Jc[+et],wt,Ce,ie),wt=Ce<ir?0:5}if(wt!=0)return pt(xe,wt,"cannot parse partitions");for(wt=Ar(Ce=xe.m,7),Pr=Ni(Ce)?Nr(Ce,4):0,ir=Ni(Ce)?Nr(Ce,4):0,ie=Ni(Ce)?Nr(Ce,4):0,et=Ni(Ce)?Nr(Ce,4):0,Ce=Ni(Ce)?Nr(Ce,4):0,yt=xe.Qa,Ut=0;4>Ut;++Ut){if(yt.Cb){var Qt=yt.Zb[Ut];yt.Fb||(Qt+=wt)}else{if(0<Ut){xe.pb[Ut]=xe.pb[0];continue}Qt=wt}var $t=xe.pb[Ut];$t.Sc[0]=hl[_o(Qt+Pr,127)],$t.Sc[1]=Dl[_o(Qt+0,127)],$t.Eb[0]=2*hl[_o(Qt+ir,127)],$t.Eb[1]=101581*Dl[_o(Qt+ie,127)]>>16,8>$t.Eb[1]&&($t.Eb[1]=8),$t.Qc[0]=hl[_o(Qt+et,117)],$t.Qc[1]=Dl[_o(Qt+Ce,127)],$t.lc=Qt+Ce}if(!Ue.Rb)return pt(xe,4,"Not a key frame.");for(Ni(nn),Ue=xe.Pa,wt=0;4>wt;++wt){for(Pr=0;8>Pr;++Pr)for(ir=0;3>ir;++ir)for(ie=0;11>ie;++ie)et=Li(nn,q[wt][Pr][ir][ie])?Ar(nn,8):iu[wt][Pr][ir][ie],Ue.Wc[wt][Pr].Yb[ir][ie]=et;for(Pr=0;17>Pr;++Pr)Ue.Xc[wt][Pr]=Ue.Wc[wt][L[Pr]]}return xe.kc=Ni(nn),xe.kc&&(xe.Bd=Ar(nn,8)),xe.cb=1}function Vr(xe,Ze,wt,ir,Pr,nn,Ue){var ie=Ze[Pr].Yb[wt];for(wt=0;16>Pr;++Pr){if(!Li(xe,ie[wt+0]))return Pr;for(;!Li(xe,ie[wt+1]);)if(ie=Ze[++Pr].Yb[0],wt=0,Pr==16)return 16;var Ce=Ze[Pr+1].Yb;if(Li(xe,ie[wt+2])){var et=xe,yt=0;if(Li(et,(Qt=ie)[(Ut=wt)+3]))if(Li(et,Qt[Ut+6])){for(ie=0,Ut=2*(yt=Li(et,Qt[Ut+8]))+(Qt=Li(et,Qt[Ut+9+yt])),yt=0,Qt=Nu[Ut];Qt[ie];++ie)yt+=yt+Li(et,Qt[ie]);yt+=3+(8<<Ut)}else Li(et,Qt[Ut+7])?(yt=7+2*Li(et,165),yt+=Li(et,145)):yt=5+Li(et,159);else yt=Li(et,Qt[Ut+4])?3+Li(et,Qt[Ut+5]):2;ie=Ce[2]}else yt=1,ie=Ce[1];Ce=Ue+hu[Pr],0>(et=xe).b&&xi(et);var Ut,Qt=et.b,$t=(Ut=et.Ca>>1)-(et.I>>Qt)>>31;--et.b,et.Ca+=$t,et.Ca|=1,et.I-=(Ut+1&$t)<<Qt,nn[Ce]=((yt^$t)-$t)*ir[(0<Pr)+0]}return 16}function Vn(xe){var Ze=xe.rb[xe.sb-1];Ze.la=0,Ze.Na=0,rt(xe.zc,0,0,xe.zc.length),xe.ja=0}function sn(xe,Ze){if(xe==null)return 0;if(Ze==null)return pt(xe,2,"NULL VP8Io parameter in VP8Decode().");if(!xe.cb&&!Jr(xe,Ze))return 0;if(Me(xe.cb),Ze.ac==null||Ze.ac(Ze)){Ze.ob&&(xe.L=0);var wt=bs[xe.L];if(xe.L==2?(xe.yb=0,xe.zb=0):(xe.yb=Ze.v-wt>>4,xe.zb=Ze.j-wt>>4,0>xe.yb&&(xe.yb=0),0>xe.zb&&(xe.zb=0)),xe.Va=Ze.o+15+wt>>4,xe.Hb=Ze.va+15+wt>>4,xe.Hb>xe.za&&(xe.Hb=xe.za),xe.Va>xe.Ub&&(xe.Va=xe.Ub),0<xe.L){var ir=xe.ed;for(wt=0;4>wt;++wt){var Pr;if(xe.Qa.Cb){var nn=xe.Qa.Lb[wt];xe.Qa.Fb||(nn+=ir.Tb)}else nn=ir.Tb;for(Pr=0;1>=Pr;++Pr){var Ue=xe.gd[wt][Pr],ie=nn;if(ir.Pc&&(ie+=ir.vd[0],Pr&&(ie+=ir.od[0])),0<(ie=0>ie?0:63<ie?63:ie)){var Ce=ie;0<ir.wb&&(Ce=4<ir.wb?Ce>>2:Ce>>1)>9-ir.wb&&(Ce=9-ir.wb),1>Ce&&(Ce=1),Ue.dd=Ce,Ue.tc=2*ie+Ce,Ue.ld=40<=ie?2:15<=ie?1:0}else Ue.tc=0;Ue.La=Pr}}}wt=0}else pt(xe,6,"Frame setup failed"),wt=xe.a;if(wt=wt==0){if(wt){xe.$c=0,0<xe.Aa||(xe.Ic=ws);e:{wt=xe.Ic,ir=4*(Ce=xe.za);var et=32*Ce,yt=Ce+1,Ut=0<xe.L?Ce*(0<xe.Aa?2:1):0,Qt=(xe.Aa==2?2:1)*Ce;if((Ue=ir+832+(Pr=3*(16*wt+bs[xe.L])/2*et)+(nn=xe.Fa!=null&&0<xe.Fa.length?xe.Kc.c*xe.Kc.i:0))!=Ue)wt=0;else{if(Ue>xe.Vb){if(xe.Vb=0,xe.Ec=qe(Ue),xe.Fc=0,xe.Ec==null){wt=pt(xe,1,"no memory during frame initialization.");break e}xe.Vb=Ue}Ue=xe.Ec,ie=xe.Fc,xe.Ac=Ue,xe.Bc=ie,ie+=ir,xe.Gd=at(et,rs),xe.Hd=0,xe.rb=at(yt+1,Oo),xe.sb=1,xe.wa=Ut?at(Ut,Ia):null,xe.Y=0,xe.D.Nb=0,xe.D.wa=xe.wa,xe.D.Y=xe.Y,0<xe.Aa&&(xe.D.Y+=Ce),Me(!0),xe.oc=Ue,xe.pc=ie,ie+=832,xe.ya=at(Qt,os),xe.aa=0,xe.D.ya=xe.ya,xe.D.aa=xe.aa,xe.Aa==2&&(xe.D.aa+=Ce),xe.R=16*Ce,xe.B=8*Ce,Ce=(et=bs[xe.L])*xe.R,et=et/2*xe.B,xe.sa=Ue,xe.ta=ie+Ce,xe.qa=xe.sa,xe.ra=xe.ta+16*wt*xe.R+et,xe.Ha=xe.qa,xe.Ia=xe.ra+8*wt*xe.B+et,xe.$c=0,ie+=Pr,xe.mb=nn?Ue:null,xe.nb=nn?ie:null,Me(ie+nn<=xe.Fc+xe.Vb),Vn(xe),rt(xe.Ac,xe.Bc,0,ir),wt=1}}if(wt){if(Ze.ka=0,Ze.y=xe.sa,Ze.O=xe.ta,Ze.f=xe.qa,Ze.N=xe.ra,Ze.ea=xe.Ha,Ze.Vd=xe.Ia,Ze.fa=xe.R,Ze.Rc=xe.B,Ze.F=null,Ze.J=0,!gu){for(wt=-255;255>=wt;++wt)tu[255+wt]=0>wt?-wt:wt;for(wt=-1020;1020>=wt;++wt)Iu[1020+wt]=-128>wt?-128:127<wt?127:wt;for(wt=-112;112>=wt;++wt)pu[112+wt]=-16>wt?-16:15<wt?15:wt;for(wt=-255;510>=wt;++wt)mu[255+wt]=0>wt?0:255<wt?255:wt;gu=1}ps=Ai,Os=ui,Is=oi,Ps=Ei,ml=pi,es=si,Rl=Ll,_l=el,Bl=ks,jl=Qs,kl=Gs,Xl=ds,ol=tl,Ys=xs,sl=zo,nl=Bs,xl=ms,Ml=hs,H[0]=Ka,H[1]=na,H[2]=Ea,H[3]=Fa,H[4]=lo,H[5]=Co,H[6]=so,H[7]=Lo,H[8]=cs,H[9]=is,K[0]=Da,K[1]=fa,K[2]=Xa,K[3]=xa,K[4]=ja,K[5]=ko,K[6]=ro,Z[0]=co,Z[1]=Hi,Z[2]=Rs,Z[3]=Ko,Z[4]=$a,Z[5]=Ao,Z[6]=ss,wt=1}else wt=0}wt&&(wt=function($t,Hr){for($t.M=0;$t.M<$t.Va;++$t.M){var ln,Ur=$t.Jc[$t.M&$t.Xb],Br=$t.m,an=$t;for(ln=0;ln<an.za;++ln){var pn=Br,jn=an,_i=jn.Ac,Di=jn.Bc+4*ln,da=jn.zc,Ji=jn.ya[jn.aa+ln];if(jn.Qa.Bb?Ji.$b=Li(pn,jn.Pa.jb[0])?2+Li(pn,jn.Pa.jb[2]):Li(pn,jn.Pa.jb[1]):Ji.$b=0,jn.kc&&(Ji.Ad=Li(pn,jn.Bd)),Ji.Za=!Li(pn,145)+0,Ji.Za){var Qa=Ji.Ob,ya=0;for(jn=0;4>jn;++jn){var fo,za=da[0+jn];for(fo=0;4>fo;++fo){za=ve[_i[Di+fo]][za];for(var Xo=fu[Li(pn,za[0])];0<Xo;)Xo=fu[2*Xo+Li(pn,za[Xo])];za=-Xo,_i[Di+fo]=za}Ye(Qa,ya,_i,Di,4),ya+=4,da[0+jn]=za}}else za=Li(pn,156)?Li(pn,128)?1:3:Li(pn,163)?2:0,Ji.Ob[0]=za,rt(_i,Di,za,4),rt(da,0,za,4);Ji.Dd=Li(pn,142)?Li(pn,114)?Li(pn,183)?1:3:2:0}if(an.m.Ka)return pt($t,7,"Premature end-of-partition0 encountered.");for(;$t.ja<$t.za;++$t.ja){if(an=Ur,pn=(Br=$t).rb[Br.sb-1],_i=Br.rb[Br.sb+Br.ja],ln=Br.ya[Br.aa+Br.ja],Di=Br.kc?ln.Ad:0)pn.la=_i.la=0,ln.Za||(pn.Na=_i.Na=0),ln.Hc=0,ln.Gc=0,ln.ia=0;else{var ls,N;if(pn=_i,_i=an,Di=Br.Pa.Xc,da=Br.ya[Br.aa+Br.ja],Ji=Br.pb[da.$b],jn=da.ad,Qa=0,ya=Br.rb[Br.sb-1],za=fo=0,rt(jn,Qa,0,384),da.Za)var U=0,ne=Di[3];else{Xo=qe(16);var se=pn.Na+ya.Na;if(se=nu(_i,Di[1],se,Ji.Eb,0,Xo,0),pn.Na=ya.Na=(0<se)+0,1<se)ps(Xo,0,jn,Qa);else{var ge=Xo[0]+3>>3;for(Xo=0;256>Xo;Xo+=16)jn[Qa+Xo]=ge}U=1,ne=Di[0]}var ze=15&pn.la,Ct=15&ya.la;for(Xo=0;4>Xo;++Xo){var Zt=1&Ct;for(ge=N=0;4>ge;++ge)ze=ze>>1|(Zt=(se=nu(_i,ne,se=Zt+(1&ze),Ji.Sc,U,jn,Qa))>U)<<7,N=N<<2|(3<se?3:1<se?2:jn[Qa+0]!=0),Qa+=16;ze>>=4,Ct=Ct>>1|Zt<<7,fo=(fo<<8|N)>>>0}for(ne=ze,U=Ct>>4,ls=0;4>ls;ls+=2){for(N=0,ze=pn.la>>4+ls,Ct=ya.la>>4+ls,Xo=0;2>Xo;++Xo){for(Zt=1&Ct,ge=0;2>ge;++ge)se=Zt+(1&ze),ze=ze>>1|(Zt=0<(se=nu(_i,Di[2],se,Ji.Qc,0,jn,Qa)))<<3,N=N<<2|(3<se?3:1<se?2:jn[Qa+0]!=0),Qa+=16;ze>>=2,Ct=Ct>>1|Zt<<5}za|=N<<4*ls,ne|=ze<<4<<ls,U|=(240&Ct)<<ls}pn.la=ne,ya.la=U,da.Hc=fo,da.Gc=za,da.ia=43690&za?0:Ji.ia,Di=!(fo|za)}if(0<Br.L&&(Br.wa[Br.Y+Br.ja]=Br.gd[ln.$b][ln.Za],Br.wa[Br.Y+Br.ja].La|=!Di),an.Ka)return pt($t,7,"Premature end-of-file encountered.")}if(Vn($t),Br=Hr,an=1,ln=(Ur=$t).D,pn=0<Ur.L&&Ur.M>=Ur.zb&&Ur.M<=Ur.Va,Ur.Aa==0)e:{if(ln.M=Ur.M,ln.uc=pn,Bo(Ur,ln),an=1,ln=(N=Ur.D).Nb,pn=(za=bs[Ur.L])*Ur.R,_i=za/2*Ur.B,Xo=16*ln*Ur.R,ge=8*ln*Ur.B,Di=Ur.sa,da=Ur.ta-pn+Xo,Ji=Ur.qa,jn=Ur.ra-_i+ge,Qa=Ur.Ha,ya=Ur.Ia-_i+ge,Ct=(ze=N.M)==0,fo=ze>=Ur.Va-1,Ur.Aa==2&&Bo(Ur,N),N.uc)for(Zt=(se=Ur).D.M,Me(se.D.uc),N=se.yb;N<se.Hb;++N){U=N,ne=Zt;var yr=(Tr=(Na=se).D).Nb;ls=Na.R;var Tr=Tr.wa[Tr.Y+U],Pn=Na.sa,$n=Na.ta+16*yr*ls+16*U,Si=Tr.dd,Ti=Tr.tc;if(Ti!=0)if(Me(3<=Ti),Na.L==1)0<U&&nl(Pn,$n,ls,Ti+4),Tr.La&&Ml(Pn,$n,ls,Ti),0<ne&&sl(Pn,$n,ls,Ti+4),Tr.La&&xl(Pn,$n,ls,Ti);else{var la=Na.B,Ta=Na.qa,Wa=Na.ra+8*yr*la+8*U,ka=Na.Ha,Na=Na.Ia+8*yr*la+8*U;yr=Tr.ld,0<U&&(_l(Pn,$n,ls,Ti+4,Si,yr),jl(Ta,Wa,ka,Na,la,Ti+4,Si,yr)),Tr.La&&(Xl(Pn,$n,ls,Ti,Si,yr),Ys(Ta,Wa,ka,Na,la,Ti,Si,yr)),0<ne&&(Rl(Pn,$n,ls,Ti+4,Si,yr),Bl(Ta,Wa,ka,Na,la,Ti+4,Si,yr)),Tr.La&&(kl(Pn,$n,ls,Ti,Si,yr),ol(Ta,Wa,ka,Na,la,Ti,Si,yr))}}if(Ur.ia&&alert("todo:DitherRow"),Br.put!=null){if(N=16*ze,ze=16*(ze+1),Ct?(Br.y=Ur.sa,Br.O=Ur.ta+Xo,Br.f=Ur.qa,Br.N=Ur.ra+ge,Br.ea=Ur.Ha,Br.W=Ur.Ia+ge):(N-=za,Br.y=Di,Br.O=da,Br.f=Ji,Br.N=jn,Br.ea=Qa,Br.W=ya),fo||(ze-=za),ze>Br.o&&(ze=Br.o),Br.F=null,Br.J=null,Ur.Fa!=null&&0<Ur.Fa.length&&N<ze&&(Br.J=er(Ur,Br,N,ze-N),Br.F=Ur.mb,Br.F==null&&Br.F.length==0)){an=pt(Ur,3,"Could not decode alpha data.");break e}N<Br.j&&(za=Br.j-N,N=Br.j,Me(!(1&za)),Br.O+=Ur.R*za,Br.N+=Ur.B*(za>>1),Br.W+=Ur.B*(za>>1),Br.F!=null&&(Br.J+=Br.width*za)),N<ze&&(Br.O+=Br.v,Br.N+=Br.v>>1,Br.W+=Br.v>>1,Br.F!=null&&(Br.J+=Br.v),Br.ka=N-Br.j,Br.U=Br.va-Br.v,Br.T=ze-N,an=Br.put(Br))}ln+1!=Ur.Ic||fo||(Ye(Ur.sa,Ur.ta-pn,Di,da+16*Ur.R,pn),Ye(Ur.qa,Ur.ra-_i,Ji,jn+8*Ur.B,_i),Ye(Ur.Ha,Ur.Ia-_i,Qa,ya+8*Ur.B,_i))}if(!an)return pt($t,6,"Output aborted.")}return 1}(xe,Ze)),Ze.bc!=null&&Ze.bc(Ze),wt&=1}return wt?(xe.cb=0,wt):0}function zr(xe,Ze,wt,ir,Pr){Pr=xe[Ze+wt+32*ir]+(Pr>>3),xe[Ze+wt+32*ir]=-256&Pr?0>Pr?0:255:Pr}function qn(xe,Ze,wt,ir,Pr,nn){zr(xe,Ze,0,wt,ir+Pr),zr(xe,Ze,1,wt,ir+nn),zr(xe,Ze,2,wt,ir-nn),zr(xe,Ze,3,wt,ir-Pr)}function en(xe){return(20091*xe>>16)+xe}function Un(xe,Ze,wt,ir){var Pr,nn=0,Ue=qe(16);for(Pr=0;4>Pr;++Pr){var ie=xe[Ze+0]+xe[Ze+8],Ce=xe[Ze+0]-xe[Ze+8],et=(35468*xe[Ze+4]>>16)-en(xe[Ze+12]),yt=en(xe[Ze+4])+(35468*xe[Ze+12]>>16);Ue[nn+0]=ie+yt,Ue[nn+1]=Ce+et,Ue[nn+2]=Ce-et,Ue[nn+3]=ie-yt,nn+=4,Ze++}for(Pr=nn=0;4>Pr;++Pr)ie=(xe=Ue[nn+0]+4)+Ue[nn+8],Ce=xe-Ue[nn+8],et=(35468*Ue[nn+4]>>16)-en(Ue[nn+12]),zr(wt,ir,0,0,ie+(yt=en(Ue[nn+4])+(35468*Ue[nn+12]>>16))),zr(wt,ir,1,0,Ce+et),zr(wt,ir,2,0,Ce-et),zr(wt,ir,3,0,ie-yt),nn++,ir+=32}function si(xe,Ze,wt,ir){var Pr=xe[Ze+0]+4,nn=35468*xe[Ze+4]>>16,Ue=en(xe[Ze+4]),ie=35468*xe[Ze+1]>>16;qn(wt,ir,0,Pr+Ue,xe=en(xe[Ze+1]),ie),qn(wt,ir,1,Pr+nn,xe,ie),qn(wt,ir,2,Pr-nn,xe,ie),qn(wt,ir,3,Pr-Ue,xe,ie)}function ui(xe,Ze,wt,ir,Pr){Un(xe,Ze,wt,ir),Pr&&Un(xe,Ze+16,wt,ir+4)}function oi(xe,Ze,wt,ir){Os(xe,Ze+0,wt,ir,1),Os(xe,Ze+32,wt,ir+128,1)}function Ei(xe,Ze,wt,ir){var Pr;for(xe=xe[Ze+0]+4,Pr=0;4>Pr;++Pr)for(Ze=0;4>Ze;++Ze)zr(wt,ir,Ze,Pr,xe)}function pi(xe,Ze,wt,ir){xe[Ze+0]&&Ps(xe,Ze+0,wt,ir),xe[Ze+16]&&Ps(xe,Ze+16,wt,ir+4),xe[Ze+32]&&Ps(xe,Ze+32,wt,ir+128),xe[Ze+48]&&Ps(xe,Ze+48,wt,ir+128+4)}function Ai(xe,Ze,wt,ir){var Pr,nn=qe(16);for(Pr=0;4>Pr;++Pr){var Ue=xe[Ze+0+Pr]+xe[Ze+12+Pr],ie=xe[Ze+4+Pr]+xe[Ze+8+Pr],Ce=xe[Ze+4+Pr]-xe[Ze+8+Pr],et=xe[Ze+0+Pr]-xe[Ze+12+Pr];nn[0+Pr]=Ue+ie,nn[8+Pr]=Ue-ie,nn[4+Pr]=et+Ce,nn[12+Pr]=et-Ce}for(Pr=0;4>Pr;++Pr)Ue=(xe=nn[0+4*Pr]+3)+nn[3+4*Pr],ie=nn[1+4*Pr]+nn[2+4*Pr],Ce=nn[1+4*Pr]-nn[2+4*Pr],et=xe-nn[3+4*Pr],wt[ir+0]=Ue+ie>>3,wt[ir+16]=et+Ce>>3,wt[ir+32]=Ue-ie>>3,wt[ir+48]=et-Ce>>3,ir+=64}function Oi(xe,Ze,wt){var ir,Pr=Ze-32,nn=ll,Ue=255-xe[Pr-1];for(ir=0;ir<wt;++ir){var ie,Ce=nn,et=Ue+xe[Ze-1];for(ie=0;ie<wt;++ie)xe[Ze+ie]=Ce[et+xe[Pr+ie]];Ze+=32}}function na(xe,Ze){Oi(xe,Ze,4)}function Hi(xe,Ze){Oi(xe,Ze,8)}function fa(xe,Ze){Oi(xe,Ze,16)}function Xa(xe,Ze){var wt;for(wt=0;16>wt;++wt)Ye(xe,Ze+32*wt,xe,Ze-32,16)}function xa(xe,Ze){var wt;for(wt=16;0<wt;--wt)rt(xe,Ze,xe[Ze-1],16),Ze+=32}function wa(xe,Ze,wt){var ir;for(ir=0;16>ir;++ir)rt(Ze,wt+32*ir,xe,16)}function Da(xe,Ze){var wt,ir=16;for(wt=0;16>wt;++wt)ir+=xe[Ze-1+32*wt]+xe[Ze+wt-32];wa(ir>>5,xe,Ze)}function ja(xe,Ze){var wt,ir=8;for(wt=0;16>wt;++wt)ir+=xe[Ze-1+32*wt];wa(ir>>4,xe,Ze)}function ko(xe,Ze){var wt,ir=8;for(wt=0;16>wt;++wt)ir+=xe[Ze+wt-32];wa(ir>>4,xe,Ze)}function ro(xe,Ze){wa(128,xe,Ze)}function pa(xe,Ze,wt){return xe+2*Ze+wt+2>>2}function Ea(xe,Ze){var wt,ir=Ze-32;for(ir=new Uint8Array([pa(xe[ir-1],xe[ir+0],xe[ir+1]),pa(xe[ir+0],xe[ir+1],xe[ir+2]),pa(xe[ir+1],xe[ir+2],xe[ir+3]),pa(xe[ir+2],xe[ir+3],xe[ir+4])]),wt=0;4>wt;++wt)Ye(xe,Ze+32*wt,ir,0,ir.length)}function Fa(xe,Ze){var wt=xe[Ze-1],ir=xe[Ze-1+32],Pr=xe[Ze-1+64],nn=xe[Ze-1+96];oa(xe,Ze+0,16843009*pa(xe[Ze-1-32],wt,ir)),oa(xe,Ze+32,16843009*pa(wt,ir,Pr)),oa(xe,Ze+64,16843009*pa(ir,Pr,nn)),oa(xe,Ze+96,16843009*pa(Pr,nn,nn))}function Ka(xe,Ze){var wt,ir=4;for(wt=0;4>wt;++wt)ir+=xe[Ze+wt-32]+xe[Ze-1+32*wt];for(ir>>=3,wt=0;4>wt;++wt)rt(xe,Ze+32*wt,ir,4)}function lo(xe,Ze){var wt=xe[Ze-1+0],ir=xe[Ze-1+32],Pr=xe[Ze-1+64],nn=xe[Ze-1-32],Ue=xe[Ze+0-32],ie=xe[Ze+1-32],Ce=xe[Ze+2-32],et=xe[Ze+3-32];xe[Ze+0+96]=pa(ir,Pr,xe[Ze-1+96]),xe[Ze+1+96]=xe[Ze+0+64]=pa(wt,ir,Pr),xe[Ze+2+96]=xe[Ze+1+64]=xe[Ze+0+32]=pa(nn,wt,ir),xe[Ze+3+96]=xe[Ze+2+64]=xe[Ze+1+32]=xe[Ze+0+0]=pa(Ue,nn,wt),xe[Ze+3+64]=xe[Ze+2+32]=xe[Ze+1+0]=pa(ie,Ue,nn),xe[Ze+3+32]=xe[Ze+2+0]=pa(Ce,ie,Ue),xe[Ze+3+0]=pa(et,Ce,ie)}function so(xe,Ze){var wt=xe[Ze+1-32],ir=xe[Ze+2-32],Pr=xe[Ze+3-32],nn=xe[Ze+4-32],Ue=xe[Ze+5-32],ie=xe[Ze+6-32],Ce=xe[Ze+7-32];xe[Ze+0+0]=pa(xe[Ze+0-32],wt,ir),xe[Ze+1+0]=xe[Ze+0+32]=pa(wt,ir,Pr),xe[Ze+2+0]=xe[Ze+1+32]=xe[Ze+0+64]=pa(ir,Pr,nn),xe[Ze+3+0]=xe[Ze+2+32]=xe[Ze+1+64]=xe[Ze+0+96]=pa(Pr,nn,Ue),xe[Ze+3+32]=xe[Ze+2+64]=xe[Ze+1+96]=pa(nn,Ue,ie),xe[Ze+3+64]=xe[Ze+2+96]=pa(Ue,ie,Ce),xe[Ze+3+96]=pa(ie,Ce,Ce)}function Co(xe,Ze){var wt=xe[Ze-1+0],ir=xe[Ze-1+32],Pr=xe[Ze-1+64],nn=xe[Ze-1-32],Ue=xe[Ze+0-32],ie=xe[Ze+1-32],Ce=xe[Ze+2-32],et=xe[Ze+3-32];xe[Ze+0+0]=xe[Ze+1+64]=nn+Ue+1>>1,xe[Ze+1+0]=xe[Ze+2+64]=Ue+ie+1>>1,xe[Ze+2+0]=xe[Ze+3+64]=ie+Ce+1>>1,xe[Ze+3+0]=Ce+et+1>>1,xe[Ze+0+96]=pa(Pr,ir,wt),xe[Ze+0+64]=pa(ir,wt,nn),xe[Ze+0+32]=xe[Ze+1+96]=pa(wt,nn,Ue),xe[Ze+1+32]=xe[Ze+2+96]=pa(nn,Ue,ie),xe[Ze+2+32]=xe[Ze+3+96]=pa(Ue,ie,Ce),xe[Ze+3+32]=pa(ie,Ce,et)}function Lo(xe,Ze){var wt=xe[Ze+0-32],ir=xe[Ze+1-32],Pr=xe[Ze+2-32],nn=xe[Ze+3-32],Ue=xe[Ze+4-32],ie=xe[Ze+5-32],Ce=xe[Ze+6-32],et=xe[Ze+7-32];xe[Ze+0+0]=wt+ir+1>>1,xe[Ze+1+0]=xe[Ze+0+64]=ir+Pr+1>>1,xe[Ze+2+0]=xe[Ze+1+64]=Pr+nn+1>>1,xe[Ze+3+0]=xe[Ze+2+64]=nn+Ue+1>>1,xe[Ze+0+32]=pa(wt,ir,Pr),xe[Ze+1+32]=xe[Ze+0+96]=pa(ir,Pr,nn),xe[Ze+2+32]=xe[Ze+1+96]=pa(Pr,nn,Ue),xe[Ze+3+32]=xe[Ze+2+96]=pa(nn,Ue,ie),xe[Ze+3+64]=pa(Ue,ie,Ce),xe[Ze+3+96]=pa(ie,Ce,et)}function is(xe,Ze){var wt=xe[Ze-1+0],ir=xe[Ze-1+32],Pr=xe[Ze-1+64],nn=xe[Ze-1+96];xe[Ze+0+0]=wt+ir+1>>1,xe[Ze+2+0]=xe[Ze+0+32]=ir+Pr+1>>1,xe[Ze+2+32]=xe[Ze+0+64]=Pr+nn+1>>1,xe[Ze+1+0]=pa(wt,ir,Pr),xe[Ze+3+0]=xe[Ze+1+32]=pa(ir,Pr,nn),xe[Ze+3+32]=xe[Ze+1+64]=pa(Pr,nn,nn),xe[Ze+3+64]=xe[Ze+2+64]=xe[Ze+0+96]=xe[Ze+1+96]=xe[Ze+2+96]=xe[Ze+3+96]=nn}function cs(xe,Ze){var wt=xe[Ze-1+0],ir=xe[Ze-1+32],Pr=xe[Ze-1+64],nn=xe[Ze-1+96],Ue=xe[Ze-1-32],ie=xe[Ze+0-32],Ce=xe[Ze+1-32],et=xe[Ze+2-32];xe[Ze+0+0]=xe[Ze+2+32]=wt+Ue+1>>1,xe[Ze+0+32]=xe[Ze+2+64]=ir+wt+1>>1,xe[Ze+0+64]=xe[Ze+2+96]=Pr+ir+1>>1,xe[Ze+0+96]=nn+Pr+1>>1,xe[Ze+3+0]=pa(ie,Ce,et),xe[Ze+2+0]=pa(Ue,ie,Ce),xe[Ze+1+0]=xe[Ze+3+32]=pa(wt,Ue,ie),xe[Ze+1+32]=xe[Ze+3+64]=pa(ir,wt,Ue),xe[Ze+1+64]=xe[Ze+3+96]=pa(Pr,ir,wt),xe[Ze+1+96]=pa(nn,Pr,ir)}function Rs(xe,Ze){var wt;for(wt=0;8>wt;++wt)Ye(xe,Ze+32*wt,xe,Ze-32,8)}function Ko(xe,Ze){var wt;for(wt=0;8>wt;++wt)rt(xe,Ze,xe[Ze-1],8),Ze+=32}function as(xe,Ze,wt){var ir;for(ir=0;8>ir;++ir)rt(Ze,wt+32*ir,xe,8)}function co(xe,Ze){var wt,ir=8;for(wt=0;8>wt;++wt)ir+=xe[Ze+wt-32]+xe[Ze-1+32*wt];as(ir>>4,xe,Ze)}function Ao(xe,Ze){var wt,ir=4;for(wt=0;8>wt;++wt)ir+=xe[Ze+wt-32];as(ir>>3,xe,Ze)}function $a(xe,Ze){var wt,ir=4;for(wt=0;8>wt;++wt)ir+=xe[Ze-1+32*wt];as(ir>>3,xe,Ze)}function ss(xe,Ze){as(128,xe,Ze)}function Cs(xe,Ze,wt){var ir=xe[Ze-wt],Pr=xe[Ze+0],nn=3*(Pr-ir)+ql[1020+xe[Ze-2*wt]-xe[Ze+wt]],Ue=Cl[112+(nn+4>>3)];xe[Ze-wt]=ll[255+ir+Cl[112+(nn+3>>3)]],xe[Ze+0]=ll[255+Pr-Ue]}function Fo(xe,Ze,wt,ir){var Pr=xe[Ze+0],nn=xe[Ze+wt];return Hl[255+xe[Ze-2*wt]-xe[Ze-wt]]>ir||Hl[255+nn-Pr]>ir}function il(xe,Ze,wt,ir){return 4*Hl[255+xe[Ze-wt]-xe[Ze+0]]+Hl[255+xe[Ze-2*wt]-xe[Ze+wt]]<=ir}function Eo(xe,Ze,wt,ir,Pr){var nn=xe[Ze-3*wt],Ue=xe[Ze-2*wt],ie=xe[Ze-wt],Ce=xe[Ze+0],et=xe[Ze+wt],yt=xe[Ze+2*wt],Ut=xe[Ze+3*wt];return 4*Hl[255+ie-Ce]+Hl[255+Ue-et]>ir?0:Hl[255+xe[Ze-4*wt]-nn]<=Pr&&Hl[255+nn-Ue]<=Pr&&Hl[255+Ue-ie]<=Pr&&Hl[255+Ut-yt]<=Pr&&Hl[255+yt-et]<=Pr&&Hl[255+et-Ce]<=Pr}function zo(xe,Ze,wt,ir){var Pr=2*ir+1;for(ir=0;16>ir;++ir)il(xe,Ze+ir,wt,Pr)&&Cs(xe,Ze+ir,wt)}function Bs(xe,Ze,wt,ir){var Pr=2*ir+1;for(ir=0;16>ir;++ir)il(xe,Ze+ir*wt,1,Pr)&&Cs(xe,Ze+ir*wt,1)}function ms(xe,Ze,wt,ir){var Pr;for(Pr=3;0<Pr;--Pr)zo(xe,Ze+=4*wt,wt,ir)}function hs(xe,Ze,wt,ir){var Pr;for(Pr=3;0<Pr;--Pr)Bs(xe,Ze+=4,wt,ir)}function gn(xe,Ze,wt,ir,Pr,nn,Ue,ie){for(nn=2*nn+1;0<Pr--;){if(Eo(xe,Ze,wt,nn,Ue))if(Fo(xe,Ze,wt,ie))Cs(xe,Ze,wt);else{var Ce=xe,et=Ze,yt=wt,Ut=Ce[et-2*yt],Qt=Ce[et-yt],$t=Ce[et+0],Hr=Ce[et+yt],ln=Ce[et+2*yt],Ur=27*(an=ql[1020+3*($t-Qt)+ql[1020+Ut-Hr]])+63>>7,Br=18*an+63>>7,an=9*an+63>>7;Ce[et-3*yt]=ll[255+Ce[et-3*yt]+an],Ce[et-2*yt]=ll[255+Ut+Br],Ce[et-yt]=ll[255+Qt+Ur],Ce[et+0]=ll[255+$t-Ur],Ce[et+yt]=ll[255+Hr-Br],Ce[et+2*yt]=ll[255+ln-an]}Ze+=ir}}function Ns(xe,Ze,wt,ir,Pr,nn,Ue,ie){for(nn=2*nn+1;0<Pr--;){if(Eo(xe,Ze,wt,nn,Ue))if(Fo(xe,Ze,wt,ie))Cs(xe,Ze,wt);else{var Ce=xe,et=Ze,yt=wt,Ut=Ce[et-yt],Qt=Ce[et+0],$t=Ce[et+yt],Hr=Cl[112+((ln=3*(Qt-Ut))+4>>3)],ln=Cl[112+(ln+3>>3)],Ur=Hr+1>>1;Ce[et-2*yt]=ll[255+Ce[et-2*yt]+Ur],Ce[et-yt]=ll[255+Ut+ln],Ce[et+0]=ll[255+Qt-Hr],Ce[et+yt]=ll[255+$t-Ur]}Ze+=ir}}function Ll(xe,Ze,wt,ir,Pr,nn){gn(xe,Ze,wt,1,16,ir,Pr,nn)}function el(xe,Ze,wt,ir,Pr,nn){gn(xe,Ze,1,wt,16,ir,Pr,nn)}function Gs(xe,Ze,wt,ir,Pr,nn){var Ue;for(Ue=3;0<Ue;--Ue)Ns(xe,Ze+=4*wt,wt,1,16,ir,Pr,nn)}function ds(xe,Ze,wt,ir,Pr,nn){var Ue;for(Ue=3;0<Ue;--Ue)Ns(xe,Ze+=4,1,wt,16,ir,Pr,nn)}function ks(xe,Ze,wt,ir,Pr,nn,Ue,ie){gn(xe,Ze,Pr,1,8,nn,Ue,ie),gn(wt,ir,Pr,1,8,nn,Ue,ie)}function Qs(xe,Ze,wt,ir,Pr,nn,Ue,ie){gn(xe,Ze,1,Pr,8,nn,Ue,ie),gn(wt,ir,1,Pr,8,nn,Ue,ie)}function tl(xe,Ze,wt,ir,Pr,nn,Ue,ie){Ns(xe,Ze+4*Pr,Pr,1,8,nn,Ue,ie),Ns(wt,ir+4*Pr,Pr,1,8,nn,Ue,ie)}function xs(xe,Ze,wt,ir,Pr,nn,Ue,ie){Ns(xe,Ze+4,1,Pr,8,nn,Ue,ie),Ns(wt,ir+4,1,Pr,8,nn,Ue,ie)}function Us(){this.ba=new Wi,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new zi,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function al(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Js(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Vo(){this.ua=0,this.Wa=new Fi,this.vb=new Fi,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new nr,this.yc=new jt}function No(){this.xb=this.a=0,this.l=new uo,this.ca=new Wi,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new Fr,this.Pb=0,this.wd=new Fr,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Vo,this.ab=0,this.gc=at(4,Js),this.Oc=0}function fs(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new uo,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Ds(xe,Ze,wt,ir,Pr,nn,Ue){for(xe=xe==null?0:xe[Ze+0],Ze=0;Ze<Ue;++Ze)Pr[nn+Ze]=xe+wt[ir+Ze]&255,xe=Pr[nn+Ze]}function go(xe,Ze,wt,ir,Pr,nn,Ue){var ie;if(xe==null)Ds(null,null,wt,ir,Pr,nn,Ue);else for(ie=0;ie<Ue;++ie)Pr[nn+ie]=xe[Ze+ie]+wt[ir+ie]&255}function Ft(xe,Ze,wt,ir,Pr,nn,Ue){if(xe==null)Ds(null,null,wt,ir,Pr,nn,Ue);else{var ie,Ce=xe[Ze+0],et=Ce,yt=Ce;for(ie=0;ie<Ue;++ie)et=yt+(Ce=xe[Ze+ie])-et,yt=wt[ir+ie]+(-256&et?0>et?0:255:et)&255,et=Ce,Pr[nn+ie]=yt}}function er(xe,Ze,wt,ir){var Pr=Ze.width,nn=Ze.o;if(Me(xe!=null&&Ze!=null),0>wt||0>=ir||wt+ir>nn)return null;if(!xe.Cc){if(xe.ga==null){var Ue;if(xe.ga=new fs,(Ue=xe.ga==null)||(Ue=Ze.width*Ze.o,Me(xe.Gb.length==0),xe.Gb=qe(Ue),xe.Uc=0,xe.Gb==null?Ue=0:(xe.mb=xe.Gb,xe.nb=xe.Uc,xe.rc=null,Ue=1),Ue=!Ue),!Ue){Ue=xe.ga;var ie=xe.Fa,Ce=xe.P,et=xe.qc,yt=xe.mb,Ut=xe.nb,Qt=Ce+1,$t=et-1,Hr=Ue.l;if(Me(ie!=null&&yt!=null&&Ze!=null),Te[0]=null,Te[1]=Ds,Te[2]=go,Te[3]=Ft,Ue.ca=yt,Ue.tb=Ut,Ue.c=Ze.width,Ue.i=Ze.height,Me(0<Ue.c&&0<Ue.i),1>=et)Ze=0;else if(Ue.$a=ie[Ce+0]>>0&3,Ue.Z=ie[Ce+0]>>2&3,Ue.Lc=ie[Ce+0]>>4&3,Ce=ie[Ce+0]>>6&3,0>Ue.$a||1<Ue.$a||4<=Ue.Z||1<Ue.Lc||Ce)Ze=0;else if(Hr.put=Ca,Hr.ac=ca,Hr.bc=ra,Hr.ma=Ue,Hr.width=Ze.width,Hr.height=Ze.height,Hr.Da=Ze.Da,Hr.v=Ze.v,Hr.va=Ze.va,Hr.j=Ze.j,Hr.o=Ze.o,Ue.$a)e:{Me(Ue.$a==1),Ze=mo();t:for(;;){if(Ze==null){Ze=0;break e}if(Me(Ue!=null),Ue.mc=Ze,Ze.c=Ue.c,Ze.i=Ue.i,Ze.l=Ue.l,Ze.l.ma=Ue,Ze.l.width=Ue.c,Ze.l.height=Ue.i,Ze.a=0,Hn(Ze.m,ie,Qt,$t),!To(Ue.c,Ue.i,1,Ze,null))break t;if(Ze.ab==1&&Ze.gc[0].hc==3&&Va(Ze.s)?(Ue.ic=1,ie=Ze.c*Ze.i,Ze.Ta=null,Ze.Ua=0,Ze.V=qe(ie),Ze.Ba=0,Ze.V==null?(Ze.a=1,Ze=0):Ze=1):(Ue.ic=0,Ze=ao(Ze,Ue.c)),!Ze)break t;Ze=1;break e}Ue.mc=null,Ze=0}else Ze=$t>=Ue.c*Ue.i;Ue=!Ze}if(Ue)return null;xe.ga.Lc!=1?xe.Ga=0:ir=nn-wt}Me(xe.ga!=null),Me(wt+ir<=nn);e:{if(Ze=(ie=xe.ga).c,nn=ie.l.o,ie.$a==0){if(Qt=xe.rc,$t=xe.Vc,Hr=xe.Fa,Ce=xe.P+1+wt*Ze,et=xe.mb,yt=xe.nb+wt*Ze,Me(Ce<=xe.P+xe.qc),ie.Z!=0)for(Me(Te[ie.Z]!=null),Ue=0;Ue<ir;++Ue)Te[ie.Z](Qt,$t,Hr,Ce,et,yt,Ze),Qt=et,$t=yt,yt+=Ze,Ce+=Ze;else for(Ue=0;Ue<ir;++Ue)Ye(et,yt,Hr,Ce,Ze),Qt=et,$t=yt,yt+=Ze,Ce+=Ze;xe.rc=Qt,xe.Vc=$t}else{if(Me(ie.mc!=null),Ze=wt+ir,Me((Ue=ie.mc)!=null),Me(Ze<=Ue.i),Ue.C>=Ze)Ze=1;else if(ie.ic||Se(),ie.ic){ie=Ue.V,Qt=Ue.Ba,$t=Ue.c;var ln=Ue.i,Ur=(Hr=1,Ce=Ue.$/$t,et=Ue.$%$t,yt=Ue.m,Ut=Ue.s,Ue.$),Br=$t*ln,an=$t*Ze,pn=Ut.wc,jn=Ur<an?Aa(Ut,et,Ce):null;Me(Ur<=Br),Me(Ze<=ln),Me(Va(Ut));t:for(;;){for(;!yt.h&&Ur<an;){if(et&pn||(jn=Aa(Ut,et,Ce)),Me(jn!=null),ii(yt),256>(ln=ga(jn.G[0],jn.H[0],yt)))ie[Qt+Ur]=ln,++Ur,++et>=$t&&(et=0,++Ce<=Ze&&!(Ce%16)&&io(Ue,Ce));else{if(!(280>ln)){Hr=0;break t}ln=La(ln-256,yt);var _i,Di=ga(jn.G[4],jn.H[4],yt);if(ii(yt),!(Ur>=(Di=va($t,Di=La(Di,yt)))&&Br-Ur>=ln)){Hr=0;break t}for(_i=0;_i<ln;++_i)ie[Qt+Ur+_i]=ie[Qt+Ur+_i-Di];for(Ur+=ln,et+=ln;et>=$t;)et-=$t,++Ce<=Ze&&!(Ce%16)&&io(Ue,Ce);Ur<an&&et&pn&&(jn=Aa(Ut,et,Ce))}Me(yt.h==Wn(yt))}io(Ue,Ce>Ze?Ze:Ce);break t}!Hr||yt.h&&Ur<Br?(Hr=0,Ue.a=yt.h?5:3):Ue.$=Ur,Ze=Hr}else Ze=oo(Ue,Ue.V,Ue.Ba,Ue.c,Ue.i,Ze,So);if(!Ze){ir=0;break e}}wt+ir>=nn&&(xe.Cc=1),ir=1}if(!ir)return null;if(xe.Cc&&((ir=xe.ga)!=null&&(ir.mc=null),xe.ga=null,0<xe.Ga))return alert("todo:WebPDequantizeLevels"),null}return xe.nb+wt*Pr}function Cn(xe,Ze,wt,ir,Pr,nn){for(;0<Pr--;){var Ue,ie=xe,Ce=Ze+(wt?1:0),et=xe,yt=Ze+(wt?0:3);for(Ue=0;Ue<ir;++Ue){var Ut=et[yt+4*Ue];Ut!=255&&(Ut*=32897,ie[Ce+4*Ue+0]=ie[Ce+4*Ue+0]*Ut>>23,ie[Ce+4*Ue+1]=ie[Ce+4*Ue+1]*Ut>>23,ie[Ce+4*Ue+2]=ie[Ce+4*Ue+2]*Ut>>23)}Ze+=nn}}function di(xe,Ze,wt,ir,Pr){for(;0<ir--;){var nn;for(nn=0;nn<wt;++nn){var Ue=xe[Ze+2*nn+0],ie=15&(et=xe[Ze+2*nn+1]),Ce=4369*ie,et=(240&et|et>>4)*Ce>>16;xe[Ze+2*nn+0]=(240&Ue|Ue>>4)*Ce>>16&240|(15&Ue|Ue<<4)*Ce>>16>>4&15,xe[Ze+2*nn+1]=240&et|ie}Ze+=Pr}}function It(xe,Ze,wt,ir,Pr,nn,Ue,ie){var Ce,et,yt=255;for(et=0;et<Pr;++et){for(Ce=0;Ce<ir;++Ce){var Ut=xe[Ze+Ce];nn[Ue+4*Ce]=Ut,yt&=Ut}Ze+=wt,Ue+=ie}return yt!=255}function ue(xe,Ze,wt,ir,Pr){var nn;for(nn=0;nn<Pr;++nn)wt[ir+nn]=xe[Ze+nn]>>8}function Se(){Wl=Cn,au=di,Nl=It,$l=ue}function _e(xe,Ze,wt){Ht[xe]=function(ir,Pr,nn,Ue,ie,Ce,et,yt,Ut,Qt,$t,Hr,ln,Ur,Br,an,pn){var jn,_i=pn-1>>1,Di=ie[Ce+0]|et[yt+0]<<16,da=Ut[Qt+0]|$t[Hr+0]<<16;Me(ir!=null);var Ji=3*Di+da+131074>>2;for(Ze(ir[Pr+0],255&Ji,Ji>>16,ln,Ur),nn!=null&&(Ji=3*da+Di+131074>>2,Ze(nn[Ue+0],255&Ji,Ji>>16,Br,an)),jn=1;jn<=_i;++jn){var Qa=ie[Ce+jn]|et[yt+jn]<<16,ya=Ut[Qt+jn]|$t[Hr+jn]<<16,fo=Di+Qa+da+ya+524296,za=fo+2*(Qa+da)>>3;Ji=za+Di>>1,Di=(fo=fo+2*(Di+ya)>>3)+Qa>>1,Ze(ir[Pr+2*jn-1],255&Ji,Ji>>16,ln,Ur+(2*jn-1)*wt),Ze(ir[Pr+2*jn-0],255&Di,Di>>16,ln,Ur+(2*jn-0)*wt),nn!=null&&(Ji=fo+da>>1,Di=za+ya>>1,Ze(nn[Ue+2*jn-1],255&Ji,Ji>>16,Br,an+(2*jn-1)*wt),Ze(nn[Ue+2*jn+0],255&Di,Di>>16,Br,an+(2*jn+0)*wt)),Di=Qa,da=ya}1&pn||(Ji=3*Di+da+131074>>2,Ze(ir[Pr+pn-1],255&Ji,Ji>>16,ln,Ur+(pn-1)*wt),nn!=null&&(Ji=3*da+Di+131074>>2,Ze(nn[Ue+pn-1],255&Ji,Ji>>16,Br,an+(pn-1)*wt)))}}function Je(){Ge[Sl]=lt,Ge[Su]=Kt,Ge[vu]=dt,Ge[Au]=Er,Ge[Ol]=br,Ge[cu]=jr,Ge[du]=Kr,Ge[Lu]=Kt,Ge[zl]=Er,Ge[ru]=br,Ge[ou]=jr}function Lt(xe){return xe&~Xi?0>xe?0:255:xe>>ua}function tr(xe,Ze){return Lt((19077*xe>>8)+(26149*Ze>>8)-14234)}function Gr(xe,Ze,wt){return Lt((19077*xe>>8)-(6419*Ze>>8)-(13320*wt>>8)+8708)}function cn(xe,Ze){return Lt((19077*xe>>8)+(33050*Ze>>8)-17685)}function _n(xe,Ze,wt,ir,Pr){ir[Pr+0]=tr(xe,wt),ir[Pr+1]=Gr(xe,Ze,wt),ir[Pr+2]=cn(xe,Ze)}function li(xe,Ze,wt,ir,Pr){ir[Pr+0]=cn(xe,Ze),ir[Pr+1]=Gr(xe,Ze,wt),ir[Pr+2]=tr(xe,wt)}function wi(xe,Ze,wt,ir,Pr){var nn=Gr(xe,Ze,wt);Ze=nn<<3&224|cn(xe,Ze)>>3,ir[Pr+0]=248&tr(xe,wt)|nn>>5,ir[Pr+1]=Ze}function mi(xe,Ze,wt,ir,Pr){var nn=240&cn(xe,Ze)|15;ir[Pr+0]=240&tr(xe,wt)|Gr(xe,Ze,wt)>>4,ir[Pr+1]=nn}function Gi(xe,Ze,wt,ir,Pr){ir[Pr+0]=255,_n(xe,Ze,wt,ir,Pr+1)}function sa(xe,Ze,wt,ir,Pr){li(xe,Ze,wt,ir,Pr),ir[Pr+3]=255}function Ua(xe,Ze,wt,ir,Pr){_n(xe,Ze,wt,ir,Pr),ir[Pr+3]=255}function _o(xe,Ze){return 0>xe?0:xe>Ze?Ze:xe}function no(xe,Ze,wt){Ht[xe]=function(ir,Pr,nn,Ue,ie,Ce,et,yt,Ut){for(var Qt=yt+(-2&Ut)*wt;yt!=Qt;)Ze(ir[Pr+0],nn[Ue+0],ie[Ce+0],et,yt),Ze(ir[Pr+1],nn[Ue+0],ie[Ce+0],et,yt+wt),Pr+=2,++Ue,++Ce,yt+=2*wt;1&Ut&&Ze(ir[Pr+0],nn[Ue+0],ie[Ce+0],et,yt)}}function Wo(xe,Ze,wt){return wt==0?xe==0?Ze==0?6:5:Ze==0?4:0:wt}function Zo(xe,Ze,wt,ir,Pr){switch(xe>>>30){case 3:Os(Ze,wt,ir,Pr,0);break;case 2:es(Ze,wt,ir,Pr);break;case 1:Ps(Ze,wt,ir,Pr)}}function Bo(xe,Ze){var wt,ir,Pr=Ze.M,nn=Ze.Nb,Ue=xe.oc,ie=xe.pc+40,Ce=xe.oc,et=xe.pc+584,yt=xe.oc,Ut=xe.pc+600;for(wt=0;16>wt;++wt)Ue[ie+32*wt-1]=129;for(wt=0;8>wt;++wt)Ce[et+32*wt-1]=129,yt[Ut+32*wt-1]=129;for(0<Pr?Ue[ie-1-32]=Ce[et-1-32]=yt[Ut-1-32]=129:(rt(Ue,ie-32-1,127,21),rt(Ce,et-32-1,127,9),rt(yt,Ut-32-1,127,9)),ir=0;ir<xe.za;++ir){var Qt=Ze.ya[Ze.aa+ir];if(0<ir){for(wt=-1;16>wt;++wt)Ye(Ue,ie+32*wt-4,Ue,ie+32*wt+12,4);for(wt=-1;8>wt;++wt)Ye(Ce,et+32*wt-4,Ce,et+32*wt+4,4),Ye(yt,Ut+32*wt-4,yt,Ut+32*wt+4,4)}var $t=xe.Gd,Hr=xe.Hd+ir,ln=Qt.ad,Ur=Qt.Hc;if(0<Pr&&(Ye(Ue,ie-32,$t[Hr].y,0,16),Ye(Ce,et-32,$t[Hr].f,0,8),Ye(yt,Ut-32,$t[Hr].ea,0,8)),Qt.Za){var Br=Ue,an=ie-32+16;for(0<Pr&&(ir>=xe.za-1?rt(Br,an,$t[Hr].y[15],4):Ye(Br,an,$t[Hr+1].y,0,4)),wt=0;4>wt;wt++)Br[an+128+wt]=Br[an+256+wt]=Br[an+384+wt]=Br[an+0+wt];for(wt=0;16>wt;++wt,Ur<<=2)Br=Ue,an=ie+ys[wt],H[Qt.Ob[wt]](Br,an),Zo(Ur,ln,16*+wt,Br,an)}else if(Br=Wo(ir,Pr,Qt.Ob[0]),K[Br](Ue,ie),Ur!=0)for(wt=0;16>wt;++wt,Ur<<=2)Zo(Ur,ln,16*+wt,Ue,ie+ys[wt]);for(wt=Qt.Gc,Br=Wo(ir,Pr,Qt.Dd),Z[Br](Ce,et),Z[Br](yt,Ut),Ur=ln,Br=Ce,an=et,255&(Qt=wt>>0)&&(170&Qt?Is(Ur,256,Br,an):ml(Ur,256,Br,an)),Qt=yt,Ur=Ut,255&(wt>>=8)&&(170&wt?Is(ln,320,Qt,Ur):ml(ln,320,Qt,Ur)),Pr<xe.Ub-1&&(Ye($t[Hr].y,0,Ue,ie+480,16),Ye($t[Hr].f,0,Ce,et+224,8),Ye($t[Hr].ea,0,yt,Ut+224,8)),wt=8*nn*xe.B,$t=xe.sa,Hr=xe.ta+16*ir+16*nn*xe.R,ln=xe.qa,Qt=xe.ra+8*ir+wt,Ur=xe.Ha,Br=xe.Ia+8*ir+wt,wt=0;16>wt;++wt)Ye($t,Hr+wt*xe.R,Ue,ie+32*wt,16);for(wt=0;8>wt;++wt)Ye(ln,Qt+wt*xe.B,Ce,et+32*wt,8),Ye(Ur,Br+wt*xe.B,yt,Ut+32*wt,8)}}function Es(xe,Ze,wt,ir,Pr,nn,Ue,ie,Ce){var et=[0],yt=[0],Ut=0,Qt=Ce!=null?Ce.kd:0,$t=Ce!=null?Ce:new al;if(xe==null||12>wt)return 7;$t.data=xe,$t.w=Ze,$t.ha=wt,Ze=[Ze],wt=[wt],$t.gb=[$t.gb];e:{var Hr=Ze,ln=wt,Ur=$t.gb;if(Me(xe!=null),Me(ln!=null),Me(Ur!=null),Ur[0]=0,12<=ln[0]&&!je(xe,Hr[0],"RIFF")){if(je(xe,Hr[0]+8,"WEBP")){Ur=3;break e}var Br=ba(xe,Hr[0]+4);if(12>Br||4294967286<Br){Ur=3;break e}if(Qt&&Br>ln[0]-8){Ur=7;break e}Ur[0]=Br,Hr[0]+=12,ln[0]-=12}Ur=0}if(Ur!=0)return Ur;for(Br=0<$t.gb[0],wt=wt[0];;){e:{var an=xe;ln=Ze,Ur=wt;var pn=et,jn=yt,_i=Hr=[0];if((Ji=Ut=[Ut])[0]=0,8>Ur[0])Ur=7;else{if(!je(an,ln[0],"VP8X")){if(ba(an,ln[0]+4)!=10){Ur=3;break e}if(18>Ur[0]){Ur=7;break e}var Di=ba(an,ln[0]+8),da=1+ia(an,ln[0]+12);if(2147483648<=da*(an=1+ia(an,ln[0]+15))){Ur=3;break e}_i!=null&&(_i[0]=Di),pn!=null&&(pn[0]=da),jn!=null&&(jn[0]=an),ln[0]+=18,Ur[0]-=18,Ji[0]=1}Ur=0}}if(Ut=Ut[0],Hr=Hr[0],Ur!=0)return Ur;if(ln=!!(2&Hr),!Br&&Ut)return 3;if(nn!=null&&(nn[0]=!!(16&Hr)),Ue!=null&&(Ue[0]=ln),ie!=null&&(ie[0]=0),Ue=et[0],Hr=yt[0],Ut&&ln&&Ce==null){Ur=0;break}if(4>wt){Ur=7;break}if(Br&&Ut||!Br&&!Ut&&!je(xe,Ze[0],"ALPH")){wt=[wt],$t.na=[$t.na],$t.P=[$t.P],$t.Sa=[$t.Sa];e:{Di=xe,Ur=Ze,Br=wt;var Ji=$t.gb;pn=$t.na,jn=$t.P,_i=$t.Sa,da=22,Me(Di!=null),Me(Br!=null),an=Ur[0];var Qa=Br[0];for(Me(pn!=null),Me(_i!=null),pn[0]=null,jn[0]=null,_i[0]=0;;){if(Ur[0]=an,Br[0]=Qa,8>Qa){Ur=7;break e}var ya=ba(Di,an+4);if(4294967286<ya){Ur=3;break e}var fo=8+ya+1&-2;if(da+=fo,0<Ji&&da>Ji){Ur=3;break e}if(!je(Di,an,"VP8 ")||!je(Di,an,"VP8L")){Ur=0;break e}if(Qa[0]<fo){Ur=7;break e}je(Di,an,"ALPH")||(pn[0]=Di,jn[0]=an+8,_i[0]=ya),an+=fo,Qa-=fo}}if(wt=wt[0],$t.na=$t.na[0],$t.P=$t.P[0],$t.Sa=$t.Sa[0],Ur!=0)break}wt=[wt],$t.Ja=[$t.Ja],$t.xa=[$t.xa];e:if(Ji=xe,Ur=Ze,Br=wt,pn=$t.gb[0],jn=$t.Ja,_i=$t.xa,Di=Ur[0],an=!je(Ji,Di,"VP8 "),da=!je(Ji,Di,"VP8L"),Me(Ji!=null),Me(Br!=null),Me(jn!=null),Me(_i!=null),8>Br[0])Ur=7;else{if(an||da){if(Ji=ba(Ji,Di+4),12<=pn&&Ji>pn-12){Ur=3;break e}if(Qt&&Ji>Br[0]-8){Ur=7;break e}jn[0]=Ji,Ur[0]+=8,Br[0]-=8,_i[0]=da}else _i[0]=5<=Br[0]&&Ji[Di+0]==47&&!(Ji[Di+4]>>5),jn[0]=Br[0];Ur=0}if(wt=wt[0],$t.Ja=$t.Ja[0],$t.xa=$t.xa[0],Ze=Ze[0],Ur!=0)break;if(4294967286<$t.Ja)return 3;if(ie==null||ln||(ie[0]=$t.xa?2:1),Ue=[Ue],Hr=[Hr],$t.xa){if(5>wt){Ur=7;break}ie=Ue,Qt=Hr,ln=nn,xe==null||5>wt?xe=0:5<=wt&&xe[Ze+0]==47&&!(xe[Ze+4]>>5)?(Br=[0],Ji=[0],pn=[0],Hn(jn=new Fr,xe,Ze,wt),Ma(jn,Br,Ji,pn)?(ie!=null&&(ie[0]=Br[0]),Qt!=null&&(Qt[0]=Ji[0]),ln!=null&&(ln[0]=pn[0]),xe=1):xe=0):xe=0}else{if(10>wt){Ur=7;break}ie=Hr,xe==null||10>wt||!xr(xe,Ze+3,wt-3)?xe=0:(Qt=xe[Ze+0]|xe[Ze+1]<<8|xe[Ze+2]<<16,ln=16383&(xe[Ze+7]<<8|xe[Ze+6]),xe=16383&(xe[Ze+9]<<8|xe[Ze+8]),1&Qt||3<(Qt>>1&7)||!(Qt>>4&1)||Qt>>5>=$t.Ja||!ln||!xe?xe=0:(Ue&&(Ue[0]=ln),ie&&(ie[0]=xe),xe=1))}if(!xe)return 3;if(Ue=Ue[0],Hr=Hr[0],Ut&&(et[0]!=Ue||yt[0]!=Hr))return 3;Ce!=null&&(Ce[0]=$t,Ce.offset=Ze-Ce.w,Me(4294967286>Ze-Ce.w),Me(Ce.offset==Ce.ha-wt));break}return Ur==0||Ur==7&&Ut&&Ce==null?(nn!=null&&(nn[0]|=$t.na!=null&&0<$t.na.length),ir!=null&&(ir[0]=Ue),Pr!=null&&(Pr[0]=Hr),0):Ur}function As(xe,Ze,wt){var ir=Ze.width,Pr=Ze.height,nn=0,Ue=0,ie=ir,Ce=Pr;if(Ze.Da=xe!=null&&0<xe.Da,Ze.Da&&(ie=xe.cd,Ce=xe.bd,nn=xe.v,Ue=xe.j,11>wt||(nn&=-2,Ue&=-2),0>nn||0>Ue||0>=ie||0>=Ce||nn+ie>ir||Ue+Ce>Pr))return 0;if(Ze.v=nn,Ze.j=Ue,Ze.va=nn+ie,Ze.o=Ue+Ce,Ze.U=ie,Ze.T=Ce,Ze.da=xe!=null&&0<xe.da,Ze.da){if(!ha(ie,Ce,wt=[xe.ib],nn=[xe.hb]))return 0;Ze.ib=wt[0],Ze.hb=nn[0]}return Ze.ob=xe!=null&&xe.ob,Ze.Kb=xe==null||!xe.Sd,Ze.da&&(Ze.ob=Ze.ib<3*ir/4&&Ze.hb<3*Pr/4,Ze.Kb=0),1}function $o(xe){if(xe==null)return 2;if(11>xe.S){var Ze=xe.f.RGBA;Ze.fb+=(xe.height-1)*Ze.A,Ze.A=-Ze.A}else Ze=xe.f.kb,xe=xe.height,Ze.O+=(xe-1)*Ze.fa,Ze.fa=-Ze.fa,Ze.N+=(xe-1>>1)*Ze.Ab,Ze.Ab=-Ze.Ab,Ze.W+=(xe-1>>1)*Ze.Db,Ze.Db=-Ze.Db,Ze.F!=null&&(Ze.J+=(xe-1)*Ze.lb,Ze.lb=-Ze.lb);return 0}function Do(xe,Ze,wt,ir){if(ir==null||0>=xe||0>=Ze)return 2;if(wt!=null){if(wt.Da){var Pr=wt.cd,nn=wt.bd,Ue=-2&wt.v,ie=-2&wt.j;if(0>Ue||0>ie||0>=Pr||0>=nn||Ue+Pr>xe||ie+nn>Ze)return 2;xe=Pr,Ze=nn}if(wt.da){if(!ha(xe,Ze,Pr=[wt.ib],nn=[wt.hb]))return 2;xe=Pr[0],Ze=nn[0]}}ir.width=xe,ir.height=Ze;e:{var Ce=ir.width,et=ir.height;if(xe=ir.S,0>=Ce||0>=et||!(xe>=Sl&&13>xe))xe=2;else{if(0>=ir.Rd&&ir.sd==null){Ue=nn=Pr=Ze=0;var yt=(ie=Ce*Ws[xe])*et;if(11>xe||(nn=(et+1)/2*(Ze=(Ce+1)/2),xe==12&&(Ue=(Pr=Ce)*et)),(et=qe(yt+2*nn+Ue))==null){xe=1;break e}ir.sd=et,11>xe?((Ce=ir.f.RGBA).eb=et,Ce.fb=0,Ce.A=ie,Ce.size=yt):((Ce=ir.f.kb).y=et,Ce.O=0,Ce.fa=ie,Ce.Fd=yt,Ce.f=et,Ce.N=0+yt,Ce.Ab=Ze,Ce.Cd=nn,Ce.ea=et,Ce.W=0+yt+nn,Ce.Db=Ze,Ce.Ed=nn,xe==12&&(Ce.F=et,Ce.J=0+yt+2*nn),Ce.Tc=Ue,Ce.lb=Pr)}if(Ze=1,Pr=ir.S,nn=ir.width,Ue=ir.height,Pr>=Sl&&13>Pr)if(11>Pr)xe=ir.f.RGBA,Ze&=(ie=Math.abs(xe.A))*(Ue-1)+nn<=xe.size,Ze&=ie>=nn*Ws[Pr],Ze&=xe.eb!=null;else{xe=ir.f.kb,ie=(nn+1)/2,yt=(Ue+1)/2,Ce=Math.abs(xe.fa),et=Math.abs(xe.Ab);var Ut=Math.abs(xe.Db),Qt=Math.abs(xe.lb),$t=Qt*(Ue-1)+nn;Ze&=Ce*(Ue-1)+nn<=xe.Fd,Ze&=et*(yt-1)+ie<=xe.Cd,Ze=(Ze&=Ut*(yt-1)+ie<=xe.Ed)&Ce>=nn&et>=ie&Ut>=ie,Ze&=xe.y!=null,Ze&=xe.f!=null,Ze&=xe.ea!=null,Pr==12&&(Ze&=Qt>=nn,Ze&=$t<=xe.Tc,Ze&=xe.F!=null)}else Ze=0;xe=Ze?0:2}}return xe!=0||wt!=null&&wt.fd&&(xe=$o(ir)),xe}var vo=64,Ms=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],rl=24,gs=32,Ra=8,dl=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Or("Predictor0","PredictorAdd0"),Ht.Predictor0=function(){return 4278190080},Ht.Predictor1=function(xe){return xe},Ht.Predictor2=function(xe,Ze,wt){return Ze[wt+0]},Ht.Predictor3=function(xe,Ze,wt){return Ze[wt+1]},Ht.Predictor4=function(xe,Ze,wt){return Ze[wt-1]},Ht.Predictor5=function(xe,Ze,wt){return Sn(Sn(xe,Ze[wt+1]),Ze[wt+0])},Ht.Predictor6=function(xe,Ze,wt){return Sn(xe,Ze[wt-1])},Ht.Predictor7=function(xe,Ze,wt){return Sn(xe,Ze[wt+0])},Ht.Predictor8=function(xe,Ze,wt){return Sn(Ze[wt-1],Ze[wt+0])},Ht.Predictor9=function(xe,Ze,wt){return Sn(Ze[wt+0],Ze[wt+1])},Ht.Predictor10=function(xe,Ze,wt){return Sn(Sn(xe,Ze[wt-1]),Sn(Ze[wt+0],Ze[wt+1]))},Ht.Predictor11=function(xe,Ze,wt){var ir=Ze[wt+0];return 0>=Wr(ir>>24&255,xe>>24&255,(Ze=Ze[wt-1])>>24&255)+Wr(ir>>16&255,xe>>16&255,Ze>>16&255)+Wr(ir>>8&255,xe>>8&255,Ze>>8&255)+Wr(255&ir,255&xe,255&Ze)?ir:xe},Ht.Predictor12=function(xe,Ze,wt){var ir=Ze[wt+0];return(cr((xe>>24&255)+(ir>>24&255)-((Ze=Ze[wt-1])>>24&255))<<24|cr((xe>>16&255)+(ir>>16&255)-(Ze>>16&255))<<16|cr((xe>>8&255)+(ir>>8&255)-(Ze>>8&255))<<8|cr((255&xe)+(255&ir)-(255&Ze)))>>>0},Ht.Predictor13=function(xe,Ze,wt){var ir=Ze[wt-1];return(Lr((xe=Sn(xe,Ze[wt+0]))>>24&255,ir>>24&255)<<24|Lr(xe>>16&255,ir>>16&255)<<16|Lr(xe>>8&255,ir>>8&255)<<8|Lr(xe>>0&255,ir>>0&255))>>>0};var fl=Ht.PredictorAdd0;Ht.PredictorAdd1=on,Or("Predictor2","PredictorAdd2"),Or("Predictor3","PredictorAdd3"),Or("Predictor4","PredictorAdd4"),Or("Predictor5","PredictorAdd5"),Or("Predictor6","PredictorAdd6"),Or("Predictor7","PredictorAdd7"),Or("Predictor8","PredictorAdd8"),Or("Predictor9","PredictorAdd9"),Or("Predictor10","PredictorAdd10"),Or("Predictor11","PredictorAdd11"),Or("Predictor12","PredictorAdd12"),Or("Predictor13","PredictorAdd13");var js=Ht.PredictorAdd2;_r("ColorIndexInverseTransform","MapARGB","32b",function(xe){return xe>>8&255},function(xe){return xe}),_r("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(xe){return xe},function(xe){return xe>>8&255});var _s,Xs=Ht.ColorIndexInverseTransform,Ql=Ht.MapARGB,Ul=Ht.VP8LColorIndexInverseTransformAlpha,wl=Ht.MapAlpha,Ts=Ht.VP8LPredictorsAdd=[];Ts.length=16,(Ht.VP8LPredictors=[]).length=16,(Ht.VP8LPredictorsAdd_C=[]).length=16,(Ht.VP8LPredictors_C=[]).length=16;var Ks,Tl,pl,jo,yo,qo,ps,Os,es,Is,Ps,ml,Rl,_l,Bl,jl,kl,Xl,ol,Ys,sl,nl,xl,Ml,Wl,au,Nl,$l,tu=qe(511),Iu=qe(2041),pu=qe(225),mu=qe(767),gu=0,ql=Iu,Cl=pu,ll=mu,Hl=tu,Sl=0,Su=1,vu=2,Au=3,Ol=4,cu=5,du=6,Lu=7,zl=8,ru=9,ou=10,su=[2,3,7],Jl=[3,3,11],Du=[280,256,256,256,40],Ru=[0,1,1,1,0],Zl=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],yu=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],xu=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],bu=8,hl=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Dl=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],nu=null,Nu=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],hu=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],fu=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],iu=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],ve=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],q=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],L=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],K=[],H=[],Z=[],re=1,Ae=2,Te=[],Ge=[];_e("UpsampleRgbLinePair",_n,3),_e("UpsampleBgrLinePair",li,3),_e("UpsampleRgbaLinePair",Ua,4),_e("UpsampleBgraLinePair",sa,4),_e("UpsampleArgbLinePair",Gi,4),_e("UpsampleRgba4444LinePair",mi,2),_e("UpsampleRgb565LinePair",wi,2);var lt=Ht.UpsampleRgbLinePair,dt=Ht.UpsampleBgrLinePair,Kt=Ht.UpsampleRgbaLinePair,Er=Ht.UpsampleBgraLinePair,br=Ht.UpsampleArgbLinePair,jr=Ht.UpsampleRgba4444LinePair,Kr=Ht.UpsampleRgb565LinePair,In=16,kn=1<<In-1,Gn=-227,bi=482,ua=6,Xi=(256<<ua)-1,ta=0,Pa=qe(256),Ya=qe(256),Ba=qe(256),Sa=qe(256),Go=qe(bi-Gn),Ls=qe(bi-Gn);no("YuvToRgbRow",_n,3),no("YuvToBgrRow",li,3),no("YuvToRgbaRow",Ua,4),no("YuvToBgraRow",sa,4),no("YuvToArgbRow",Gi,4),no("YuvToRgba4444Row",mi,2),no("YuvToRgb565Row",wi,2);var ys=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],bs=[0,2,8],Fs=[8,7,6,4,4,2,2,2,1,1,1,1],ws=1;this.WebPDecodeRGBA=function(xe,Ze,wt,ir,Pr){var nn=Su,Ue=new Us,ie=new Wi;Ue.ba=ie,ie.S=nn,ie.width=[ie.width],ie.height=[ie.height];var Ce=ie.width,et=ie.height,yt=new qi;if(yt==null||xe==null)var Ut=2;else Me(yt!=null),Ut=Es(xe,Ze,wt,yt.width,yt.height,yt.Pd,yt.Qd,yt.format,null);if(Ut!=0?Ce=0:(Ce!=null&&(Ce[0]=yt.width[0]),et!=null&&(et[0]=yt.height[0]),Ce=1),Ce){ie.width=ie.width[0],ie.height=ie.height[0],ir!=null&&(ir[0]=ie.width),Pr!=null&&(Pr[0]=ie.height);e:{if(ir=new uo,(Pr=new al).data=xe,Pr.w=Ze,Pr.ha=wt,Pr.kd=1,Ze=[0],Me(Pr!=null),((xe=Es(Pr.data,Pr.w,Pr.ha,null,null,null,Ze,null,Pr))==0||xe==7)&&Ze[0]&&(xe=4),(Ze=xe)==0){if(Me(Ue!=null),ir.data=Pr.data,ir.w=Pr.w+Pr.offset,ir.ha=Pr.ha-Pr.offset,ir.put=Ca,ir.ac=ca,ir.bc=ra,ir.ma=Ue,Pr.xa){if((xe=mo())==null){Ue=1;break e}if(function(Qt,$t){var Hr=[0],ln=[0],Ur=[0];t:for(;;){if(Qt==null)return 0;if($t==null)return Qt.a=2,0;if(Qt.l=$t,Qt.a=0,Hn(Qt.m,$t.data,$t.w,$t.ha),!Ma(Qt.m,Hr,ln,Ur)){Qt.a=3;break t}if(Qt.xb=Ae,$t.width=Hr[0],$t.height=ln[0],!To(Hr[0],ln[0],1,Qt,null))break t;return 1}return Me(Qt.a!=0),0}(xe,ir)){if(ir=(Ze=Do(ir.width,ir.height,Ue.Oa,Ue.ba))==0){t:{ir=xe;r:for(;;){if(ir==null){ir=0;break t}if(Me(ir.s.yc!=null),Me(ir.s.Ya!=null),Me(0<ir.s.Wb),Me((wt=ir.l)!=null),Me((Pr=wt.ma)!=null),ir.xb!=0){if(ir.ca=Pr.ba,ir.tb=Pr.tb,Me(ir.ca!=null),!As(Pr.Oa,wt,Au)){ir.a=2;break r}if(!ao(ir,wt.width))break r;if(wt.da)break r;if((wt.da||Ri(ir.ca.S))&&Se(),11>ir.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),ir.ca.f.kb.F!=null&&Se()),ir.Pb&&0<ir.s.ua&&ir.s.vb.X==null&&!vi(ir.s.vb,ir.s.Wa.Xa)){ir.a=1;break r}ir.xb=0}if(!oo(ir,ir.V,ir.Ba,ir.c,ir.i,wt.o,_a))break r;Pr.Dc=ir.Ma,ir=1;break t}Me(ir.a!=0),ir=0}ir=!ir}ir&&(Ze=xe.a)}else Ze=xe.a}else{if((xe=new Ha)==null){Ue=1;break e}if(xe.Fa=Pr.na,xe.P=Pr.P,xe.qc=Pr.Sa,Jr(xe,ir)){if((Ze=Do(ir.width,ir.height,Ue.Oa,Ue.ba))==0){if(xe.Aa=0,wt=Ue.Oa,Me((Pr=xe)!=null),wt!=null){if(0<(Ce=0>(Ce=wt.Md)?0:100<Ce?255:255*Ce/100)){for(et=yt=0;4>et;++et)12>(Ut=Pr.pb[et]).lc&&(Ut.ia=Ce*Fs[0>Ut.lc?0:Ut.lc]>>3),yt|=Ut.ia;yt&&(alert("todo:VP8InitRandom"),Pr.ia=1)}Pr.Ga=wt.Id,100<Pr.Ga?Pr.Ga=100:0>Pr.Ga&&(Pr.Ga=0)}sn(xe,ir)||(Ze=xe.a)}}else Ze=xe.a}Ze==0&&Ue.Oa!=null&&Ue.Oa.fd&&(Ze=$o(Ue.ba))}Ue=Ze}nn=Ue!=0?null:11>nn?ie.f.RGBA.eb:ie.f.kb.y}else nn=null;return nn};var Ws=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function hr(zn,Ht){for(var Tt="",Dt=0;Dt<4;Dt++)Tt+=String.fromCharCode(zn[Ht++]);return Tt}function Qr(zn,Ht){return(zn[Ht+0]<<0|zn[Ht+1]<<8|zn[Ht+2]<<16)>>>0}function Xr(zn,Ht){return(zn[Ht+0]<<0|zn[Ht+1]<<8|zn[Ht+2]<<16|zn[Ht+3]<<24)>>>0}new gt;var dn=[0],mr=[0],Kn=[],Rr=new gt,Rn=it,An=function(zn,Ht){var Tt={},Dt=0,Bt=!1,jt=0,Ot=0;if(Tt.frames=[],!function(Fr,En,Wn,Yn){for(var ii=0;ii<Yn;ii++)if(Fr[En+ii]!=Wn.charCodeAt(ii))return!0;return!1}(zn,Ht,"RIFF",4)){var nr,pr;for(Xr(zn,Ht+=4),Ht+=8;Ht<zn.length;){var Ar=hr(zn,Ht),Nr=Xr(zn,Ht+=4);Ht+=4;var Hn=Nr+(1&Nr);switch(Ar){case"VP8 ":case"VP8L":Tt.frames[Dt]===void 0&&(Tt.frames[Dt]={}),(hn=Tt.frames[Dt]).src_off=Bt?Ot:Ht-8,hn.src_size=jt+Nr+8,Dt++,Bt&&(Bt=!1,jt=0,Ot=0);break;case"VP8X":(hn=Tt.header={}).feature_flags=zn[Ht];var Ln=Ht+4;hn.canvas_width=1+Qr(zn,Ln),Ln+=3,hn.canvas_height=1+Qr(zn,Ln),Ln+=3;break;case"ALPH":Bt=!0,jt=Hn+8,Ot=Ht-8;break;case"ANIM":(hn=Tt.header).bgcolor=Xr(zn,Ht),Ln=Ht+4,hn.loop_count=(nr=zn)[(pr=Ln)+0]<<0|nr[pr+1]<<8,Ln+=2;break;case"ANMF":var ci,hn;(hn=Tt.frames[Dt]={}).offset_x=2*Qr(zn,Ht),Ht+=3,hn.offset_y=2*Qr(zn,Ht),Ht+=3,hn.width=1+Qr(zn,Ht),Ht+=3,hn.height=1+Qr(zn,Ht),Ht+=3,hn.duration=Qr(zn,Ht),Ht+=3,ci=zn[Ht++],hn.dispose=1&ci,hn.blend=ci>>1&1}Ar!="ANMF"&&(Ht+=Hn)}return Tt}}(Rn,0);An.response=Rn,An.rgbaoutput=!0,An.dataurl=!1;var Zr=An.header?An.header:null,hi=An.frames?An.frames:null;if(Zr){Zr.loop_counter=Zr.loop_count,dn=[Zr.canvas_height],mr=[Zr.canvas_width];for(var Mi=0;Mi<hi.length&&hi[Mi].blend!=0;Mi++);}var Zi=hi[0],qr=Rr.WebPDecodeRGBA(Rn,Zi.src_off,Zi.src_size,mr,dn);Zi.rgba=qr,Zi.imgwidth=mr[0],Zi.imgheight=dn[0];for(var xn=0;xn<mr[0]*dn[0]*4;xn++)Kn[xn]=qr[xn];return this.width=mr,this.height=dn,this.data=Kn,this}!function(it){var Me=function(){return typeof A.b=="function"},je=function(mr,Kn,Rr,Rn){var An=4,Zr=at;switch(Rn){case it.image_compression.FAST:An=1,Zr=qe;break;case it.image_compression.MEDIUM:An=6,Zr=St;break;case it.image_compression.SLOW:An=9,Zr=gt}mr=Ye(mr,Kn,Rr,Zr);var hi=Object(A.b)(mr,{level:An});return it.__addimage__.arrayBufferToBinaryString(hi)},Ye=function(mr,Kn,Rr,Rn){for(var An,Zr,hi,Mi=mr.length/Kn,Zi=new Uint8Array(mr.length+Mi),qr=Qr(),xn=0;xn<Mi;xn+=1){if(hi=xn*Kn,An=mr.subarray(hi,hi+Kn),Rn)Zi.set(Rn(An,Rr,Zr),hi+xn);else{for(var zn,Ht=qr.length,Tt=[];zn<Ht;zn+=1)Tt[zn]=qr[zn](An,Rr,Zr);var Dt=Xr(Tt.concat());Zi.set(Tt[Dt],hi+xn)}Zr=An}return Zi},rt=function(mr){var Kn=Array.apply([],mr);return Kn.unshift(0),Kn},qe=function(mr,Kn){var Rr,Rn=[],An=mr.length;Rn[0]=1;for(var Zr=0;Zr<An;Zr+=1)Rr=mr[Zr-Kn]||0,Rn[Zr+1]=mr[Zr]-Rr+256&255;return Rn},at=function(mr,Kn,Rr){var Rn,An=[],Zr=mr.length;An[0]=2;for(var hi=0;hi<Zr;hi+=1)Rn=Rr&&Rr[hi]||0,An[hi+1]=mr[hi]-Rn+256&255;return An},St=function(mr,Kn,Rr){var Rn,An,Zr=[],hi=mr.length;Zr[0]=3;for(var Mi=0;Mi<hi;Mi+=1)Rn=mr[Mi-Kn]||0,An=Rr&&Rr[Mi]||0,Zr[Mi+1]=mr[Mi]+256-(Rn+An>>>1)&255;return Zr},gt=function(mr,Kn,Rr){var Rn,An,Zr,hi,Mi=[],Zi=mr.length;Mi[0]=4;for(var qr=0;qr<Zi;qr+=1)Rn=mr[qr-Kn]||0,An=Rr&&Rr[qr]||0,Zr=Rr&&Rr[qr-Kn]||0,hi=hr(Rn,An,Zr),Mi[qr+1]=mr[qr]-hi+256&255;return Mi},hr=function(mr,Kn,Rr){if(mr===Kn&&Kn===Rr)return mr;var Rn=Math.abs(Kn-Rr),An=Math.abs(mr-Rr),Zr=Math.abs(mr+Kn-Rr-Rr);return Rn<=An&&Rn<=Zr?mr:An<=Zr?Kn:Rr},Qr=function(){return[rt,qe,at,St,gt]},Xr=function(mr){var Kn=mr.map(function(Rr){return Rr.reduce(function(Rn,An){return Rn+Math.abs(An)},0)});return Kn.indexOf(Math.min.apply(null,Kn))};it.processPNG=function(dn,mr,Kn,Rr){var Rn,An,Zr,hi,Mi,Zi,qr,xn,zn,Ht,Tt,Dt,Bt,jt,Ot,nr=this.decode.FLATE_DECODE,pr="";if(this.__addimage__.isArrayBuffer(dn)&&(dn=new Uint8Array(dn)),this.__addimage__.isArrayBufferView(dn)){if(dn=(Zr=new nt(dn)).imgData,An=Zr.bits,Rn=Zr.colorSpace,Mi=Zr.colors,[4,6].indexOf(Zr.colorType)!==-1){if(Zr.bits===8){zn=(xn=Zr.pixelBitlength==32?new Uint32Array(Zr.decodePixels().buffer):Zr.pixelBitlength==16?new Uint16Array(Zr.decodePixels().buffer):new Uint8Array(Zr.decodePixels().buffer)).length,Tt=new Uint8Array(zn*Zr.colors),Ht=new Uint8Array(zn);var Ar,Nr=Zr.pixelBitlength-Zr.bits;for(jt=0,Ot=0;jt<zn;jt++){for(Bt=xn[jt],Ar=0;Ar<Nr;)Tt[Ot++]=Bt>>>Ar&255,Ar+=Zr.bits;Ht[jt]=Bt>>>Ar&255}}if(Zr.bits===16){zn=(xn=new Uint32Array(Zr.decodePixels().buffer)).length,Tt=new Uint8Array(zn*(32/Zr.pixelBitlength)*Zr.colors),Ht=new Uint8Array(zn*(32/Zr.pixelBitlength)),Dt=Zr.colors>1,jt=0,Ot=0;for(var Hn=0;jt<zn;)Bt=xn[jt++],Tt[Ot++]=Bt>>>0&255,Dt&&(Tt[Ot++]=Bt>>>16&255,Bt=xn[jt++],Tt[Ot++]=Bt>>>0&255),Ht[Hn++]=Bt>>>16&255;An=8}Rr!==it.image_compression.NONE&&Me()?(dn=je(Tt,Zr.width*Zr.colors,Zr.colors,Rr),qr=je(Ht,Zr.width,1,Rr)):(dn=Tt,qr=Ht,nr=void 0)}if(Zr.colorType===3&&(Rn=this.color_spaces.INDEXED,Zi=Zr.palette,Zr.transparency.indexed)){var Ln=Zr.transparency.indexed,ci=0;for(jt=0,zn=Ln.length;jt<zn;++jt)ci+=Ln[jt];if((ci/=255)===zn-1&&Ln.indexOf(0)!==-1)hi=[Ln.indexOf(0)];else if(ci!==zn){for(xn=Zr.decodePixels(),Ht=new Uint8Array(xn.length),jt=0,zn=xn.length;jt<zn;jt++)Ht[jt]=Ln[xn[jt]];qr=je(Ht,Zr.width,1)}}var hn=function(Fr){var En;switch(Fr){case it.image_compression.FAST:En=11;break;case it.image_compression.MEDIUM:En=13;break;case it.image_compression.SLOW:En=14;break;default:En=12}return En}(Rr);return nr===this.decode.FLATE_DECODE&&(pr="/Predictor "+hn+" "),pr+="/Colors "+Mi+" /BitsPerComponent "+An+" /Columns "+Zr.width,(this.__addimage__.isArrayBuffer(dn)||this.__addimage__.isArrayBufferView(dn))&&(dn=this.__addimage__.arrayBufferToBinaryString(dn)),(qr&&this.__addimage__.isArrayBuffer(qr)||this.__addimage__.isArrayBufferView(qr))&&(qr=this.__addimage__.arrayBufferToBinaryString(qr)),{alias:Kn,data:dn,index:mr,filter:nr,decodeParameters:pr,transparency:hi,palette:Zi,sMask:qr,predictor:hn,width:Zr.width,height:Zr.height,bitsPerComponent:An,colorSpace:Rn}}}}(z.API),function(it){it.processGIF89A=function(Me,je,Ye,rt){var qe=new vt(Me),at=qe.width,St=qe.height,gt=[];qe.decodeAndBlitFrameRGBA(0,gt);var hr={data:gt,width:at,height:St},Qr=new kr(100).encode(hr,100);return it.processJPEG.call(this,Qr,je,Ye,rt)},it.processGIF87A=it.processGIF89A}(z.API),mn.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var it=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(it);for(var Me=0;Me<it;Me++){var je=this.datav.getUint8(this.pos++,!0),Ye=this.datav.getUint8(this.pos++,!0),rt=this.datav.getUint8(this.pos++,!0),qe=this.datav.getUint8(this.pos++,!0);this.palette[Me]={red:rt,green:Ye,blue:je,quad:qe}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},mn.prototype.parseBGR=function(){this.pos=this.offset;try{var it="bit"+this.bitPP,Me=this.width*this.height*4;this.data=new Uint8Array(Me),this[it]()}catch(je){h.log("bit decode error:"+je)}},mn.prototype.bit1=function(){var it,Me=Math.ceil(this.width/8),je=Me%4;for(it=this.height-1;it>=0;it--){for(var Ye=this.bottom_up?it:this.height-1-it,rt=0;rt<Me;rt++)for(var qe=this.datav.getUint8(this.pos++,!0),at=Ye*this.width*4+8*rt*4,St=0;St<8&&8*rt+St<this.width;St++){var gt=this.palette[qe>>7-St&1];this.data[at+4*St]=gt.blue,this.data[at+4*St+1]=gt.green,this.data[at+4*St+2]=gt.red,this.data[at+4*St+3]=255}je!==0&&(this.pos+=4-je)}},mn.prototype.bit4=function(){for(var it=Math.ceil(this.width/2),Me=it%4,je=this.height-1;je>=0;je--){for(var Ye=this.bottom_up?je:this.height-1-je,rt=0;rt<it;rt++){var qe=this.datav.getUint8(this.pos++,!0),at=Ye*this.width*4+2*rt*4,St=qe>>4,gt=15&qe,hr=this.palette[St];if(this.data[at]=hr.blue,this.data[at+1]=hr.green,this.data[at+2]=hr.red,this.data[at+3]=255,2*rt+1>=this.width)break;hr=this.palette[gt],this.data[at+4]=hr.blue,this.data[at+4+1]=hr.green,this.data[at+4+2]=hr.red,this.data[at+4+3]=255}Me!==0&&(this.pos+=4-Me)}},mn.prototype.bit8=function(){for(var it=this.width%4,Me=this.height-1;Me>=0;Me--){for(var je=this.bottom_up?Me:this.height-1-Me,Ye=0;Ye<this.width;Ye++){var rt=this.datav.getUint8(this.pos++,!0),qe=je*this.width*4+4*Ye;if(rt<this.palette.length){var at=this.palette[rt];this.data[qe]=at.red,this.data[qe+1]=at.green,this.data[qe+2]=at.blue,this.data[qe+3]=255}else this.data[qe]=255,this.data[qe+1]=255,this.data[qe+2]=255,this.data[qe+3]=255}it!==0&&(this.pos+=4-it)}},mn.prototype.bit15=function(){for(var it=this.width%3,Me=parseInt("11111",2),je=this.height-1;je>=0;je--){for(var Ye=this.bottom_up?je:this.height-1-je,rt=0;rt<this.width;rt++){var qe=this.datav.getUint16(this.pos,!0);this.pos+=2;var at=(qe&Me)/Me*255|0,St=(qe>>5&Me)/Me*255|0,gt=(qe>>10&Me)/Me*255|0,hr=qe>>15?255:0,Qr=Ye*this.width*4+4*rt;this.data[Qr]=gt,this.data[Qr+1]=St,this.data[Qr+2]=at,this.data[Qr+3]=hr}this.pos+=it}},mn.prototype.bit16=function(){for(var it=this.width%3,Me=parseInt("11111",2),je=parseInt("111111",2),Ye=this.height-1;Ye>=0;Ye--){for(var rt=this.bottom_up?Ye:this.height-1-Ye,qe=0;qe<this.width;qe++){var at=this.datav.getUint16(this.pos,!0);this.pos+=2;var St=(at&Me)/Me*255|0,gt=(at>>5&je)/je*255|0,hr=(at>>11)/Me*255|0,Qr=rt*this.width*4+4*qe;this.data[Qr]=hr,this.data[Qr+1]=gt,this.data[Qr+2]=St,this.data[Qr+3]=255}this.pos+=it}},mn.prototype.bit24=function(){for(var it=this.height-1;it>=0;it--){for(var Me=this.bottom_up?it:this.height-1-it,je=0;je<this.width;je++){var Ye=this.datav.getUint8(this.pos++,!0),rt=this.datav.getUint8(this.pos++,!0),qe=this.datav.getUint8(this.pos++,!0),at=Me*this.width*4+4*je;this.data[at]=qe,this.data[at+1]=rt,this.data[at+2]=Ye,this.data[at+3]=255}this.pos+=this.width%4}},mn.prototype.bit32=function(){for(var it=this.height-1;it>=0;it--)for(var Me=this.bottom_up?it:this.height-1-it,je=0;je<this.width;je++){var Ye=this.datav.getUint8(this.pos++,!0),rt=this.datav.getUint8(this.pos++,!0),qe=this.datav.getUint8(this.pos++,!0),at=this.datav.getUint8(this.pos++,!0),St=Me*this.width*4+4*je;this.data[St]=qe,this.data[St+1]=rt,this.data[St+2]=Ye,this.data[St+3]=at}},mn.prototype.getData=function(){return this.data},function(it){it.processBMP=function(Me,je,Ye,rt){var qe=new mn(Me,!1),at=qe.width,St=qe.height,gt={data:qe.getData(),width:at,height:St},hr=new kr(100).encode(gt,100);return it.processJPEG.call(this,hr,je,Ye,rt)}}(z.API),Zn.prototype.getData=function(){return this.data},function(it){it.processWEBP=function(Me,je,Ye,rt){var qe=new Zn(Me,!1),at=qe.width,St=qe.height,gt={data:qe.getData(),width:at,height:St},hr=new kr(100).encode(gt,100);return it.processJPEG.call(this,hr,je,Ye,rt)}}(z.API),z.API.processRGBA=function(it,Me,je){for(var Ye=it.data,rt=Ye.length,qe=new Uint8Array(rt/4*3),at=new Uint8Array(rt/4),St=0,gt=0,hr=0;hr<rt;hr+=4){var Qr=Ye[hr],Xr=Ye[hr+1],dn=Ye[hr+2],mr=Ye[hr+3];qe[St++]=Qr,qe[St++]=Xr,qe[St++]=dn,at[gt++]=mr}var Kn=this.__addimage__.arrayBufferToBinaryString(qe);return{alpha:this.__addimage__.arrayBufferToBinaryString(at),data:Kn,index:Me,alias:je,colorSpace:"DeviceRGB",bitsPerComponent:8,width:it.width,height:it.height}},z.API.setLanguage=function(it){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[it]!==void 0&&(this.internal.languageSettings.languageCode=it,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Xt=z.API,_t=Xt.getCharWidthsArray=function(it,Me){var je,Ye,rt=(Me=Me||{}).font||this.internal.getFont(),qe=Me.fontSize||this.internal.getFontSize(),at=Me.charSpace||this.internal.getCharSpace(),St=Me.widths?Me.widths:rt.metadata.Unicode.widths,gt=St.fof?St.fof:1,hr=Me.kerning?Me.kerning:rt.metadata.Unicode.kerning,Qr=hr.fof?hr.fof:1,Xr=Me.doKerning!==!1,dn=0,mr=it.length,Kn=0,Rr=St[0]||gt,Rn=[];for(je=0;je<mr;je++)Ye=it.charCodeAt(je),typeof rt.metadata.widthOfString=="function"?Rn.push((rt.metadata.widthOfGlyph(rt.metadata.characterToGlyph(Ye))+at*(1e3/qe)||0)/1e3):(dn=Xr&&x()(hr[Ye])==="object"&&!isNaN(parseInt(hr[Ye][Kn],10))?hr[Ye][Kn]/Qr:0,Rn.push((St[Ye]||Rr)/gt+dn)),Kn=Ye;return Rn},Fe=Xt.getStringUnitWidth=function(it,Me){var je=(Me=Me||{}).fontSize||this.internal.getFontSize(),Ye=Me.font||this.internal.getFont(),rt=Me.charSpace||this.internal.getCharSpace();return Xt.processArabic&&(it=Xt.processArabic(it)),typeof Ye.metadata.widthOfString=="function"?Ye.metadata.widthOfString(it,je,rt)/je:_t.apply(this,arguments).reduce(function(qe,at){return qe+at},0)},Pe=function(Me,je,Ye,rt){for(var qe=[],at=0,St=Me.length,gt=0;at!==St&>+je[at]<Ye;)gt+=je[at],at++;qe.push(Me.slice(0,at));var hr=at;for(gt=0;at!==St;)gt+je[at]>rt&&(qe.push(Me.slice(hr,at)),gt=0,hr=at),gt+=je[at],at++;return hr!==at&&qe.push(Me.slice(hr,at)),qe},Be=function(Me,je,Ye){Ye||(Ye={});var rt,qe,at,St,gt,hr,Qr,Xr=[],dn=[Xr],mr=Ye.textIndent||0,Kn=0,Rr=0,Rn=Me.split(" "),An=_t.apply(this,[" ",Ye])[0];if(hr=Ye.lineIndent===-1?Rn[0].length+2:Ye.lineIndent||0){var Zr=Array(hr).join(" "),hi=[];Rn.map(function(Zi){(Zi=Zi.split(/\s*\n/)).length>1?hi=hi.concat(Zi.map(function(qr,xn){return(xn&&qr.length?`
|
|
|
`:"")+qr})):hi.push(Zi[0])}),Rn=hi,hr=Fe.apply(this,[Zr,Ye])}for(at=0,St=Rn.length;at<St;at++){var Mi=0;if(rt=Rn[at],hr&&rt[0]==`
|
|
|
`&&(rt=rt.substr(1),Mi=1),mr+Kn+(Rr=(qe=_t.apply(this,[rt,Ye])).reduce(function(Zi,qr){return Zi+qr},0))>je||Mi){if(Rr>je){for(gt=Pe.apply(this,[rt,qe,je-(mr+Kn),je]),Xr.push(gt.shift()),Xr=[gt.pop()];gt.length;)dn.push([gt.shift()]);Rr=qe.slice(rt.length-(Xr[0]?Xr[0].length:0)).reduce(function(Zi,qr){return Zi+qr},0)}else Xr=[rt];dn.push(Xr),mr=Rr+hr,Kn=An}else Xr.push(rt),mr+=Kn+Rr,Kn=An}return Qr=hr?function(Zi,qr){return(qr?Zr:"")+Zi.join(" ")}:function(Zi){return Zi.join(" ")},dn.map(Qr)},Xt.splitTextToSize=function(it,Me,je){var Ye,rt=(je=je||{}).fontSize||this.internal.getFontSize(),qe=function(Qr){if(Qr.widths&&Qr.kerning)return{widths:Qr.widths,kerning:Qr.kerning};var Xr=this.internal.getFont(Qr.fontName,Qr.fontStyle);return Xr.metadata.Unicode?{widths:Xr.metadata.Unicode.widths||{0:1},kerning:Xr.metadata.Unicode.kerning||{}}:{font:Xr.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,je);Ye=Array.isArray(it)?it:String(it).split(/\r?\n/);var at=1*this.internal.scaleFactor*Me/rt;qe.textIndent=je.textIndent?1*je.textIndent*this.internal.scaleFactor/rt:0,qe.lineIndent=je.lineIndent;var St,gt,hr=[];for(St=0,gt=Ye.length;St<gt;St++)hr=hr.concat(Be.apply(this,[Ye[St],at,qe]));return hr},function(it){it.__fontmetrics__=it.__fontmetrics__||{};for(var Me="klmnopqrstuvwxyz",je={},Ye={},rt=0;rt<Me.length;rt++)je[Me[rt]]="0123456789abcdef"[rt],Ye["0123456789abcdef"[rt]]=Me[rt];var qe=function(dn){return"0x"+parseInt(dn,10).toString(16)},at=it.__fontmetrics__.compress=function(Xr){var dn,mr,Kn,Rr,Rn=["{"];for(var An in Xr){if(dn=Xr[An],isNaN(parseInt(An,10))?mr="'"+An+"'":(An=parseInt(An,10),mr=(mr=qe(An).slice(2)).slice(0,-1)+Ye[mr.slice(-1)]),typeof dn=="number")dn<0?(Kn=qe(dn).slice(3),Rr="-"):(Kn=qe(dn).slice(2),Rr=""),Kn=Rr+Kn.slice(0,-1)+Ye[Kn.slice(-1)];else{if(x()(dn)!=="object")throw new Error("Don't know what to do with value type "+x()(dn)+".");Kn=at(dn)}Rn.push(mr+Kn)}return Rn.push("}"),Rn.join("")},St=it.__fontmetrics__.uncompress=function(Xr){if(typeof Xr!="string")throw new Error("Invalid argument passed to uncompress.");for(var dn,mr,Kn,Rr,Rn={},An=1,Zr=Rn,hi=[],Mi="",Zi="",qr=Xr.length-1,xn=1;xn<qr;xn+=1)(Rr=Xr[xn])=="'"?dn?(Kn=dn.join(""),dn=void 0):dn=[]:dn?dn.push(Rr):Rr=="{"?(hi.push([Zr,Kn]),Zr={},Kn=void 0):Rr=="}"?((mr=hi.pop())[0][mr[1]]=Zr,Kn=void 0,Zr=mr[0]):Rr=="-"?An=-1:Kn===void 0?je.hasOwnProperty(Rr)?(Mi+=je[Rr],Kn=parseInt(Mi,16)*An,An=1,Mi=""):Mi+=Rr:je.hasOwnProperty(Rr)?(Zi+=je[Rr],Zr[Kn]=parseInt(Zi,16)*An,An=1,Kn=void 0,Zi=""):Zi+=Rr;return Rn},gt={codePages:["WinAnsiEncoding"],WinAnsiEncoding:St("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},hr={Unicode:{Courier:gt,"Courier-Bold":gt,"Courier-BoldOblique":gt,"Courier-Oblique":gt,Helvetica:gt,"Helvetica-Bold":gt,"Helvetica-BoldOblique":gt,"Helvetica-Oblique":gt,"Times-Roman":gt,"Times-Bold":gt,"Times-BoldItalic":gt,"Times-Italic":gt}},Qr={Unicode:{"Courier-Oblique":St("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":St("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":St("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:St("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":St("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":St("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:St("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:St("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":St("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:St("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":St("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":St("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":St("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":St("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};it.events.push(["addFont",function(Xr){var dn=Xr.font,mr=Qr.Unicode[dn.postScriptName];mr&&(dn.metadata.Unicode={},dn.metadata.Unicode.widths=mr.widths,dn.metadata.Unicode.kerning=mr.kerning);var Kn=hr.Unicode[dn.postScriptName];Kn&&(dn.metadata.Unicode.encoding=Kn,dn.encoding=Kn.codePages[0])}])}(z.API),function(it){var Me=function(Ye){for(var rt=Ye.length,qe=new Uint8Array(rt),at=0;at<rt;at++)qe[at]=Ye.charCodeAt(at);return qe};it.API.events.push(["addFont",function(je){var Ye=void 0,rt=je.font,qe=je.instance;if(!rt.isStandardFont){if(qe===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+rt.postScriptName+"').");if(typeof(Ye=qe.existsFileInVFS(rt.postScriptName)===!1?qe.loadFile(rt.postScriptName):qe.getFileFromVFS(rt.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+rt.postScriptName+"').");!function(at,St){St=/^\x00\x01\x00\x00/.test(St)?Me(St):Me(t(St)),at.metadata=it.API.TTFFont.open(St),at.metadata.Unicode=at.metadata.Unicode||{encoding:{},kerning:{},widths:[]},at.metadata.glyIdsUsed=[0]}(rt,Ye)}}])}(z),function(it){function Me(){return(m.canvg?Promise.resolve(m.canvg):Promise.all([n.e(0),n.e(241)]).then(n.bind(null,"DXPr"))).catch(function(je){return Promise.reject(new Error("Could not load canvg: "+je))}).then(function(je){return je.default?je.default:je})}z.API.addSvgAsImage=function(je,Ye,rt,qe,at,St,gt,hr){if(isNaN(Ye)||isNaN(rt))throw h.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(qe)||isNaN(at))throw h.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var Qr=document.createElement("canvas");Qr.width=qe,Qr.height=at;var Xr=Qr.getContext("2d");Xr.fillStyle="#fff",Xr.fillRect(0,0,Qr.width,Qr.height);var dn={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},mr=this;return Me().then(function(Kn){return Kn.fromString(Xr,je,dn)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(Kn){return Kn.render(dn)}).then(function(){mr.addImage(Qr.toDataURL("image/jpeg",1),Ye,rt,qe,at,gt,hr)})}}(),z.API.putTotalPages=function(it){var Me,je=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(Me=new RegExp(it,"g"),je=this.internal.getNumberOfPages()):(Me=new RegExp(this.pdfEscape16(it,this.internal.getFont()),"g"),je=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var Ye=1;Ye<=this.internal.getNumberOfPages();Ye++)for(var rt=0;rt<this.internal.pages[Ye].length;rt++)this.internal.pages[Ye][rt]=this.internal.pages[Ye][rt].replace(Me,je);return this},z.API.viewerPreferences=function(it,Me){var je;it=it||{},Me=Me||!1;var Ye,rt,qe,at={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},St=Object.keys(at),gt=[],hr=0,Qr=0,Xr=0;function dn(Kn,Rr){var Rn,An=!1;for(Rn=0;Rn<Kn.length;Rn+=1)Kn[Rn]===Rr&&(An=!0);return An}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(at)),this.internal.viewerpreferences.isSubscribed=!1),je=this.internal.viewerpreferences.configuration,it==="reset"||Me===!0){var mr=St.length;for(Xr=0;Xr<mr;Xr+=1)je[St[Xr]].value=je[St[Xr]].defaultValue,je[St[Xr]].explicitSet=!1}if(x()(it)==="object"){for(rt in it)if(qe=it[rt],dn(St,rt)&&qe!==void 0){if(je[rt].type==="boolean"&&typeof qe=="boolean")je[rt].value=qe;else if(je[rt].type==="name"&&dn(je[rt].valueSet,qe))je[rt].value=qe;else if(je[rt].type==="integer"&&Number.isInteger(qe))je[rt].value=qe;else if(je[rt].type==="array"){for(hr=0;hr<qe.length;hr+=1)if(Ye=!0,qe[hr].length===1&&typeof qe[hr][0]=="number")gt.push(String(qe[hr]-1));else if(qe[hr].length>1){for(Qr=0;Qr<qe[hr].length;Qr+=1)typeof qe[hr][Qr]!="number"&&(Ye=!1);Ye===!0&>.push([qe[hr][0]-1,qe[hr][1]-1].join(" "))}je[rt].value="["+gt.join(" ")+"]"}else je[rt].value=je[rt].defaultValue;je[rt].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var Kn,Rr=[];for(Kn in je)je[Kn].explicitSet===!0&&(je[Kn].type==="name"?Rr.push("/"+Kn+" /"+je[Kn].value):Rr.push("/"+Kn+" "+je[Kn].value));Rr.length!==0&&this.internal.write(`/ViewerPreferences
|
|
|
<<
|
|
|
`+Rr.join(`
|
|
|
`)+`
|
|
|
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=je,this},function(it){var Me=function(){var rt='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',qe=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),at=unescape(encodeURIComponent(rt)),St=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),gt=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),hr=unescape(encodeURIComponent("</x:xmpmeta>")),Qr=at.length+St.length+gt.length+qe.length+hr.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Qr+" >>"),this.internal.write("stream"),this.internal.write(qe+at+St+gt+hr),this.internal.write("endstream"),this.internal.write("endobj")},je=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};it.addMetadata=function(Ye,rt){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:Ye,namespaceuri:rt||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",je),this.internal.events.subscribe("postPutResources",Me)),this}}(z.API),function(it){var Me=it.API,je=Me.pdfEscape16=function(qe,at){for(var St,gt=at.metadata.Unicode.widths,hr=["","0","00","000","0000"],Qr=[""],Xr=0,dn=qe.length;Xr<dn;++Xr){if(St=at.metadata.characterToGlyph(qe.charCodeAt(Xr)),at.metadata.glyIdsUsed.push(St),at.metadata.toUnicode[St]=qe.charCodeAt(Xr),gt.indexOf(St)==-1&&(gt.push(St),gt.push([parseInt(at.metadata.widthOfGlyph(St),10)])),St=="0")return Qr.join("");St=St.toString(16),Qr.push(hr[4-St.length],St)}return Qr.join("")},Ye=function(at){var St,gt,hr,Qr,Xr,dn,mr;for(Xr=`/CIDInit /ProcSet findresource begin
|
|
|
12 dict begin
|
|
|
begincmap
|
|
|
/CIDSystemInfo <<
|
|
|
/Registry (Adobe)
|
|
|
/Ordering (UCS)
|
|
|
/Supplement 0
|
|
|
>> def
|
|
|
/CMapName /Adobe-Identity-UCS def
|
|
|
/CMapType 2 def
|
|
|
1 begincodespacerange
|
|
|
<0000><ffff>
|
|
|
endcodespacerange`,hr=[],dn=0,mr=(gt=Object.keys(at).sort(function(Kn,Rr){return Kn-Rr})).length;dn<mr;dn++)St=gt[dn],hr.length>=100&&(Xr+=`
|
|
|
`+hr.length+` beginbfchar
|
|
|
`+hr.join(`
|
|
|
`)+`
|
|
|
endbfchar`,hr=[]),at[St]!==void 0&&at[St]!==null&&typeof at[St].toString=="function"&&(Qr=("0000"+at[St].toString(16)).slice(-4),St=("0000"+(+St).toString(16)).slice(-4),hr.push("<"+St+"><"+Qr+">"));return hr.length&&(Xr+=`
|
|
|
`+hr.length+` beginbfchar
|
|
|
`+hr.join(`
|
|
|
`)+`
|
|
|
endbfchar
|
|
|
`),Xr+=`endcmap
|
|
|
CMapName currentdict /CMap defineresource pop
|
|
|
end
|
|
|
end`};Me.events.push(["putFont",function(qe){!function(at){var St=at.font,gt=at.out,hr=at.newObject,Qr=at.putStream;if(St.metadata instanceof it.API.TTFFont&&St.encoding==="Identity-H"){for(var Xr=St.metadata.Unicode.widths,dn=St.metadata.subset.encode(St.metadata.glyIdsUsed,1),mr="",Kn=0;Kn<dn.length;Kn++)mr+=String.fromCharCode(dn[Kn]);var Rr=hr();Qr({data:mr,addLength1:!0,objectId:Rr}),gt("endobj");var Rn=hr();Qr({data:Ye(St.metadata.toUnicode),addLength1:!0,objectId:Rn}),gt("endobj");var An=hr();gt("<<"),gt("/Type /FontDescriptor"),gt("/FontName /"+F(St.fontName)),gt("/FontFile2 "+Rr+" 0 R"),gt("/FontBBox "+it.API.PDFObject.convert(St.metadata.bbox)),gt("/Flags "+St.metadata.flags),gt("/StemV "+St.metadata.stemV),gt("/ItalicAngle "+St.metadata.italicAngle),gt("/Ascent "+St.metadata.ascender),gt("/Descent "+St.metadata.decender),gt("/CapHeight "+St.metadata.capHeight),gt(">>"),gt("endobj");var Zr=hr();gt("<<"),gt("/Type /Font"),gt("/BaseFont /"+F(St.fontName)),gt("/FontDescriptor "+An+" 0 R"),gt("/W "+it.API.PDFObject.convert(Xr)),gt("/CIDToGIDMap /Identity"),gt("/DW 1000"),gt("/Subtype /CIDFontType2"),gt("/CIDSystemInfo"),gt("<<"),gt("/Supplement 0"),gt("/Registry (Adobe)"),gt("/Ordering ("+St.encoding+")"),gt(">>"),gt(">>"),gt("endobj"),St.objectNumber=hr(),gt("<<"),gt("/Type /Font"),gt("/Subtype /Type0"),gt("/ToUnicode "+Rn+" 0 R"),gt("/BaseFont /"+F(St.fontName)),gt("/Encoding /"+St.encoding),gt("/DescendantFonts ["+Zr+" 0 R]"),gt(">>"),gt("endobj"),St.isAlreadyPutted=!0}}(qe)}]),Me.events.push(["putFont",function(qe){!function(at){var St=at.font,gt=at.out,hr=at.newObject,Qr=at.putStream;if(St.metadata instanceof it.API.TTFFont&&St.encoding==="WinAnsiEncoding"){for(var Xr=St.metadata.rawData,dn="",mr=0;mr<Xr.length;mr++)dn+=String.fromCharCode(Xr[mr]);var Kn=hr();Qr({data:dn,addLength1:!0,objectId:Kn}),gt("endobj");var Rr=hr();Qr({data:Ye(St.metadata.toUnicode),addLength1:!0,objectId:Rr}),gt("endobj");var Rn=hr();gt("<<"),gt("/Descent "+St.metadata.decender),gt("/CapHeight "+St.metadata.capHeight),gt("/StemV "+St.metadata.stemV),gt("/Type /FontDescriptor"),gt("/FontFile2 "+Kn+" 0 R"),gt("/Flags 96"),gt("/FontBBox "+it.API.PDFObject.convert(St.metadata.bbox)),gt("/FontName /"+F(St.fontName)),gt("/ItalicAngle "+St.metadata.italicAngle),gt("/Ascent "+St.metadata.ascender),gt(">>"),gt("endobj"),St.objectNumber=hr();for(var An=0;An<St.metadata.hmtx.widths.length;An++)St.metadata.hmtx.widths[An]=parseInt(St.metadata.hmtx.widths[An]*(1e3/St.metadata.head.unitsPerEm));gt("<</Subtype/TrueType/Type/Font/ToUnicode "+Rr+" 0 R/BaseFont/"+F(St.fontName)+"/FontDescriptor "+Rn+" 0 R/Encoding/"+St.encoding+" /FirstChar 29 /LastChar 255 /Widths "+it.API.PDFObject.convert(St.metadata.hmtx.widths)+">>"),gt("endobj"),St.isAlreadyPutted=!0}}(qe)}]);var rt=function(at){var St,gt=at.text||"",hr=at.x,Qr=at.y,Xr=at.options||{},dn=at.mutex||{},mr=dn.pdfEscape,Kn=dn.activeFontKey,Rr=dn.fonts,Rn=Kn,An="",Zr=0,hi="",Mi=Rr[Rn].encoding;if(Rr[Rn].encoding!=="Identity-H")return{text:gt,x:hr,y:Qr,options:Xr,mutex:dn};for(hi=gt,Rn=Kn,Array.isArray(gt)&&(hi=gt[0]),Zr=0;Zr<hi.length;Zr+=1)Rr[Rn].metadata.hasOwnProperty("cmap")&&(St=Rr[Rn].metadata.cmap.unicode.codeMap[hi[Zr].charCodeAt(0)]),St||hi[Zr].charCodeAt(0)<256&&Rr[Rn].metadata.hasOwnProperty("Unicode")?An+=hi[Zr]:An+="";var Zi="";return parseInt(Rn.slice(1))<14||Mi==="WinAnsiEncoding"?Zi=mr(An,Rn).split("").map(function(qr){return qr.charCodeAt(0).toString(16)}).join(""):Mi==="Identity-H"&&(Zi=je(An,Rr[Rn])),dn.isHex=!0,{text:Zi,x:hr,y:Qr,options:Xr,mutex:dn}};Me.events.push(["postProcessText",function(qe){var at=qe.text||"",St=[],gt={text:at,x:qe.x,y:qe.y,options:qe.options,mutex:qe.mutex};if(Array.isArray(at)){var hr=0;for(hr=0;hr<at.length;hr+=1)Array.isArray(at[hr])&&at[hr].length===3?St.push([rt(Object.assign({},gt,{text:at[hr][0]})).text,at[hr][1],at[hr][2]]):St.push(rt(Object.assign({},gt,{text:at[hr]})).text);qe.text=St}else qe.text=rt(Object.assign({},gt,{text:at})).text}])}(z),function(it){var Me=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};it.existsFileInVFS=function(je){return Me.call(this),this.internal.vFS[je]!==void 0},it.addFileToVFS=function(je,Ye){return Me.call(this),this.internal.vFS[je]=Ye,this},it.getFileFromVFS=function(je){return Me.call(this),this.internal.vFS[je]!==void 0?this.internal.vFS[je]:null}}(z.API),function(it){it.__bidiEngine__=it.prototype.__bidiEngine__=function(Ye){var rt,qe,at,St,gt,hr,Qr,Xr=Me,dn=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],mr=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],Kn={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},Rr={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},Rn=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],An=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),Zr=!1,hi=0;this.__bidiEngine__={};var Mi=function(Bt){var jt=Bt.charCodeAt(),Ot=jt>>8,nr=Rr[Ot];return nr!==void 0?Xr[256*nr+(255&jt)]:Ot===252||Ot===253?"AL":An.test(Ot)?"L":Ot===8?"R":"N"},Zi=function(Bt){for(var jt,Ot=0;Ot<Bt.length;Ot++){if((jt=Mi(Bt.charAt(Ot)))==="L")return!1;if(jt==="R")return!0}return!1},qr=function(Bt,jt,Ot,nr){var pr,Ar,Nr,Hn,Ln=jt[nr];switch(Ln){case"L":case"R":Zr=!1;break;case"N":case"AN":break;case"EN":Zr&&(Ln="AN");break;case"AL":Zr=!0,Ln="R";break;case"WS":Ln="N";break;case"CS":nr<1||nr+1>=jt.length||(pr=Ot[nr-1])!=="EN"&&pr!=="AN"||(Ar=jt[nr+1])!=="EN"&&Ar!=="AN"?Ln="N":Zr&&(Ar="AN"),Ln=Ar===pr?Ar:"N";break;case"ES":Ln=(pr=nr>0?Ot[nr-1]:"B")==="EN"&&nr+1<jt.length&&jt[nr+1]==="EN"?"EN":"N";break;case"ET":if(nr>0&&Ot[nr-1]==="EN"){Ln="EN";break}if(Zr){Ln="N";break}for(Nr=nr+1,Hn=jt.length;Nr<Hn&&jt[Nr]==="ET";)Nr++;Ln=Nr<Hn&&jt[Nr]==="EN"?"EN":"N";break;case"NSM":if(at&&!St){for(Hn=jt.length,Nr=nr+1;Nr<Hn&&jt[Nr]==="NSM";)Nr++;if(Nr<Hn){var ci=Bt[nr],hn=ci>=1425&&ci<=2303||ci===64286;if(pr=jt[Nr],hn&&(pr==="R"||pr==="AL")){Ln="R";break}}}Ln=nr<1||(pr=jt[nr-1])==="B"?"N":Ot[nr-1];break;case"B":Zr=!1,rt=!0,Ln=hi;break;case"S":qe=!0,Ln="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":Zr=!1;break;case"BN":Ln="N"}return Ln},xn=function(Bt,jt,Ot){var nr=Bt.split("");return Ot&&zn(nr,Ot,{hiLevel:hi}),nr.reverse(),jt&&jt.reverse(),nr.join("")},zn=function(Bt,jt,Ot){var nr,pr,Ar,Nr,Hn,Ln=-1,ci=Bt.length,hn=0,Fr=[],En=hi?mr:dn,Wn=[];for(Zr=!1,rt=!1,qe=!1,pr=0;pr<ci;pr++)Wn[pr]=Mi(Bt[pr]);for(Ar=0;Ar<ci;Ar++){if(Hn=hn,Fr[Ar]=qr(Bt,Wn,Fr,Ar),nr=240&(hn=En[Hn][Kn[Fr[Ar]]]),hn&=15,jt[Ar]=Nr=En[hn][5],nr>0)if(nr===16){for(pr=Ln;pr<Ar;pr++)jt[pr]=1;Ln=-1}else Ln=-1;if(En[hn][6])Ln===-1&&(Ln=Ar);else if(Ln>-1){for(pr=Ln;pr<Ar;pr++)jt[pr]=Nr;Ln=-1}Wn[Ar]==="B"&&(jt[Ar]=0),Ot.hiLevel|=Nr}qe&&function(Yn,ii,xi){for(var Ni=0;Ni<xi;Ni++)if(Yn[Ni]==="S"){ii[Ni]=hi;for(var Li=Ni-1;Li>=0&&Yn[Li]==="WS";Li--)ii[Li]=hi}}(Wn,jt,ci)},Ht=function(Bt,jt,Ot,nr,pr){if(!(pr.hiLevel<Bt)){if(Bt===1&&hi===1&&!rt)return jt.reverse(),void(Ot&&Ot.reverse());for(var Ar,Nr,Hn,Ln,ci=jt.length,hn=0;hn<ci;){if(nr[hn]>=Bt){for(Hn=hn+1;Hn<ci&&nr[Hn]>=Bt;)Hn++;for(Ln=hn,Nr=Hn-1;Ln<Nr;Ln++,Nr--)Ar=jt[Ln],jt[Ln]=jt[Nr],jt[Nr]=Ar,Ot&&(Ar=Ot[Ln],Ot[Ln]=Ot[Nr],Ot[Nr]=Ar);hn=Hn}hn++}}},Tt=function(Bt,jt,Ot){var nr=Bt.split(""),pr={hiLevel:hi};return Ot||(Ot=[]),zn(nr,Ot,pr),function(Ar,Nr,Hn){if(Hn.hiLevel!==0&&Qr)for(var Ln,ci=0;ci<Ar.length;ci++)Nr[ci]===1&&(Ln=Rn.indexOf(Ar[ci]))>=0&&(Ar[ci]=Rn[Ln+1])}(nr,Ot,pr),Ht(2,nr,jt,Ot,pr),Ht(1,nr,jt,Ot,pr),nr.join("")};return this.__bidiEngine__.doBidiReorder=function(Dt,Bt,jt){if(function(nr,pr){if(pr)for(var Ar=0;Ar<nr.length;Ar++)pr[Ar]=Ar;St===void 0&&(St=Zi(nr)),hr===void 0&&(hr=Zi(nr))}(Dt,Bt),at||!gt||hr)if(at&>&&St^hr)hi=St?1:0,Dt=xn(Dt,Bt,jt);else if(!at&>&&hr)hi=St?1:0,Dt=Tt(Dt,Bt,jt),Dt=xn(Dt,Bt);else if(!at||St||gt||hr){if(at&&!gt&&St^hr)Dt=xn(Dt,Bt),St?(hi=0,Dt=Tt(Dt,Bt,jt)):(hi=1,Dt=Tt(Dt,Bt,jt),Dt=xn(Dt,Bt));else if(at&&St&&!gt&&hr)hi=1,Dt=Tt(Dt,Bt,jt),Dt=xn(Dt,Bt);else if(!at&&!gt&&St^hr){var Ot=Qr;St?(hi=1,Dt=Tt(Dt,Bt,jt),hi=0,Qr=!1,Dt=Tt(Dt,Bt,jt),Qr=Ot):(hi=0,Dt=Tt(Dt,Bt,jt),Dt=xn(Dt,Bt),hi=1,Qr=!1,Dt=Tt(Dt,Bt,jt),Qr=Ot,Dt=xn(Dt,Bt))}}else hi=0,Dt=Tt(Dt,Bt,jt);else hi=St?1:0,Dt=Tt(Dt,Bt,jt);return Dt},this.__bidiEngine__.setOptions=function(Dt){Dt&&(at=Dt.isInputVisual,gt=Dt.isOutputVisual,St=Dt.isInputRtl,hr=Dt.isOutputRtl,Qr=Dt.isSymmetricSwapping)},this.__bidiEngine__.setOptions(Ye),this.__bidiEngine__};var Me=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],je=new it.__bidiEngine__({isInputVisual:!0});it.API.events.push(["postProcessText",function(Ye){var rt=Ye.text,qe=(Ye.x,Ye.y,Ye.options||{}),at=(Ye.mutex,qe.lang,[]);if(qe.isInputVisual=typeof qe.isInputVisual!="boolean"||qe.isInputVisual,je.setOptions(qe),Object.prototype.toString.call(rt)==="[object Array]"){var St=0;for(at=[],St=0;St<rt.length;St+=1)Object.prototype.toString.call(rt[St])==="[object Array]"?at.push([je.doBidiReorder(rt[St][0]),rt[St][1],rt[St][2]]):at.push([je.doBidiReorder(rt[St])]);Ye.text=at}else Ye.text=je.doBidiReorder(rt);je.setOptions({isInputVisual:!0})}])}(z),z.API.TTFFont=function(){function it(Me){var je;if(this.rawData=Me,je=this.contents=new ur(Me),this.contents.pos=4,je.readString(4)==="ttcf")throw new Error("TTCF not supported.");je.pos=0,this.parse(),this.subset=new Qi(this),this.registerTTF()}return it.open=function(Me){return new it(Me)},it.prototype.parse=function(){return this.directory=new Nt(this.contents),this.head=new Yt(this),this.name=new Dr(this),this.cmap=new rr(this),this.toUnicode={},this.hhea=new Rt(this),this.maxp=new un(this),this.hmtx=new wn(this),this.post=new Yr(this),this.os2=new qt(this),this.loca=new ki(this),this.glyf=new ei(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},it.prototype.registerTTF=function(){var Me,je,Ye,rt,qe;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var at,St,gt,hr;for(hr=[],at=0,St=(gt=this.bbox).length;at<St;at++)Me=gt[at],hr.push(Math.round(Me*this.scaleFactor));return hr}.call(this),this.stemV=0,this.post.exists?(Ye=255&(rt=this.post.italic_angle),(32768&(je=rt>>16))!=0&&(je=-(1+(65535^je))),this.italicAngle=+(je+"."+Ye)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(qe=this.familyClass)===1||qe===2||qe===3||qe===4||qe===5||qe===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},it.prototype.characterToGlyph=function(Me){var je;return((je=this.cmap.unicode)!=null?je.codeMap[Me]:void 0)||0},it.prototype.widthOfGlyph=function(Me){var je;return je=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(Me).advance*je},it.prototype.widthOfString=function(Me,je,Ye){var rt,qe,at,St;for(at=0,qe=0,St=(Me=""+Me).length;0<=St?qe<St:qe>St;qe=0<=St?++qe:--qe)rt=Me.charCodeAt(qe),at+=this.widthOfGlyph(this.characterToGlyph(rt))+Ye*(1e3/je)||0;return at*(je/1e3)},it.prototype.lineHeight=function(Me,je){var Ye;return je==null&&(je=!1),Ye=je?this.lineGap:0,(this.ascender+Ye-this.decender)/1e3*Me},it}();var ni,ur=function(){function it(Me){this.data=Me!=null?Me:[],this.pos=0,this.length=this.data.length}return it.prototype.readByte=function(){return this.data[this.pos++]},it.prototype.writeByte=function(Me){return this.data[this.pos++]=Me},it.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},it.prototype.writeUInt32=function(Me){return this.writeByte(Me>>>24&255),this.writeByte(Me>>16&255),this.writeByte(Me>>8&255),this.writeByte(255&Me)},it.prototype.readInt32=function(){var Me;return(Me=this.readUInt32())>=2147483648?Me-4294967296:Me},it.prototype.writeInt32=function(Me){return Me<0&&(Me+=4294967296),this.writeUInt32(Me)},it.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},it.prototype.writeUInt16=function(Me){return this.writeByte(Me>>8&255),this.writeByte(255&Me)},it.prototype.readInt16=function(){var Me;return(Me=this.readUInt16())>=32768?Me-65536:Me},it.prototype.writeInt16=function(Me){return Me<0&&(Me+=65536),this.writeUInt16(Me)},it.prototype.readString=function(Me){var je,Ye;for(Ye=[],je=0;0<=Me?je<Me:je>Me;je=0<=Me?++je:--je)Ye[je]=String.fromCharCode(this.readByte());return Ye.join("")},it.prototype.writeString=function(Me){var je,Ye,rt;for(rt=[],je=0,Ye=Me.length;0<=Ye?je<Ye:je>Ye;je=0<=Ye?++je:--je)rt.push(this.writeByte(Me.charCodeAt(je)));return rt},it.prototype.readShort=function(){return this.readInt16()},it.prototype.writeShort=function(Me){return this.writeInt16(Me)},it.prototype.readLongLong=function(){var Me,je,Ye,rt,qe,at,St,gt;return Me=this.readByte(),je=this.readByte(),Ye=this.readByte(),rt=this.readByte(),qe=this.readByte(),at=this.readByte(),St=this.readByte(),gt=this.readByte(),128&Me?-1*(72057594037927940*(255^Me)+281474976710656*(255^je)+1099511627776*(255^Ye)+4294967296*(255^rt)+16777216*(255^qe)+65536*(255^at)+256*(255^St)+(255^gt)+1):72057594037927940*Me+281474976710656*je+1099511627776*Ye+4294967296*rt+16777216*qe+65536*at+256*St+gt},it.prototype.writeLongLong=function(Me){var je,Ye;return je=Math.floor(Me/4294967296),Ye=4294967295&Me,this.writeByte(je>>24&255),this.writeByte(je>>16&255),this.writeByte(je>>8&255),this.writeByte(255&je),this.writeByte(Ye>>24&255),this.writeByte(Ye>>16&255),this.writeByte(Ye>>8&255),this.writeByte(255&Ye)},it.prototype.readInt=function(){return this.readInt32()},it.prototype.writeInt=function(Me){return this.writeInt32(Me)},it.prototype.read=function(Me){var je,Ye;for(je=[],Ye=0;0<=Me?Ye<Me:Ye>Me;Ye=0<=Me?++Ye:--Ye)je.push(this.readByte());return je},it.prototype.write=function(Me){var je,Ye,rt,qe;for(qe=[],Ye=0,rt=Me.length;Ye<rt;Ye++)je=Me[Ye],qe.push(this.writeByte(je));return qe},it}(),Nt=function(){var it;function Me(je){var Ye,rt,qe;for(this.scalarType=je.readInt(),this.tableCount=je.readShort(),this.searchRange=je.readShort(),this.entrySelector=je.readShort(),this.rangeShift=je.readShort(),this.tables={},rt=0,qe=this.tableCount;0<=qe?rt<qe:rt>qe;rt=0<=qe?++rt:--rt)Ye={tag:je.readString(4),checksum:je.readInt(),offset:je.readInt(),length:je.readInt()},this.tables[Ye.tag]=Ye}return Me.prototype.encode=function(je){var Ye,rt,qe,at,St,gt,hr,Qr,Xr,dn,mr,Kn,Rr;for(Rr in mr=Object.keys(je).length,gt=Math.log(2),Xr=16*Math.floor(Math.log(mr)/gt),at=Math.floor(Xr/gt),Qr=16*mr-Xr,(rt=new ur).writeInt(this.scalarType),rt.writeShort(mr),rt.writeShort(Xr),rt.writeShort(at),rt.writeShort(Qr),qe=16*mr,hr=rt.pos+qe,St=null,Kn=[],je)for(dn=je[Rr],rt.writeString(Rr),rt.writeInt(it(dn)),rt.writeInt(hr),rt.writeInt(dn.length),Kn=Kn.concat(dn),Rr==="head"&&(St=hr),hr+=dn.length;hr%4;)Kn.push(0),hr++;return rt.write(Kn),Ye=2981146554-it(rt.data),rt.pos=St+8,rt.writeUInt32(Ye),rt.data},it=function(Ye){var rt,qe,at,St;for(Ye=ai.call(Ye);Ye.length%4;)Ye.push(0);for(at=new ur(Ye),qe=0,rt=0,St=Ye.length;rt<St;rt=rt+=4)qe+=at.readUInt32();return 4294967295&qe},Me}(),bt={}.hasOwnProperty,gr=function(Me,je){for(var Ye in je)bt.call(je,Ye)&&(Me[Ye]=je[Ye]);function rt(){this.constructor=Me}return rt.prototype=je.prototype,Me.prototype=new rt,Me.__super__=je.prototype,Me};ni=function(){function it(Me){var je;this.file=Me,je=this.file.directory.tables[this.tag],this.exists=!!je,je&&(this.offset=je.offset,this.length=je.length,this.parse(this.file.contents))}return it.prototype.parse=function(){},it.prototype.encode=function(){},it.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},it}();var Yt=function(it){function Me(){return Me.__super__.constructor.apply(this,arguments)}return gr(Me,ni),Me.prototype.tag="head",Me.prototype.parse=function(je){return je.pos=this.offset,this.version=je.readInt(),this.revision=je.readInt(),this.checkSumAdjustment=je.readInt(),this.magicNumber=je.readInt(),this.flags=je.readShort(),this.unitsPerEm=je.readShort(),this.created=je.readLongLong(),this.modified=je.readLongLong(),this.xMin=je.readShort(),this.yMin=je.readShort(),this.xMax=je.readShort(),this.yMax=je.readShort(),this.macStyle=je.readShort(),this.lowestRecPPEM=je.readShort(),this.fontDirectionHint=je.readShort(),this.indexToLocFormat=je.readShort(),this.glyphDataFormat=je.readShort()},Me.prototype.encode=function(je){var Ye;return(Ye=new ur).writeInt(this.version),Ye.writeInt(this.revision),Ye.writeInt(this.checkSumAdjustment),Ye.writeInt(this.magicNumber),Ye.writeShort(this.flags),Ye.writeShort(this.unitsPerEm),Ye.writeLongLong(this.created),Ye.writeLongLong(this.modified),Ye.writeShort(this.xMin),Ye.writeShort(this.yMin),Ye.writeShort(this.xMax),Ye.writeShort(this.yMax),Ye.writeShort(this.macStyle),Ye.writeShort(this.lowestRecPPEM),Ye.writeShort(this.fontDirectionHint),Ye.writeShort(je),Ye.writeShort(this.glyphDataFormat),Ye.data},Me}(),Pt=function(){function it(Me,je){var Ye,rt,qe,at,St,gt,hr,Qr,Xr,dn,mr,Kn,Rr,Rn,An,Zr,hi;switch(this.platformID=Me.readUInt16(),this.encodingID=Me.readShort(),this.offset=je+Me.readInt(),Xr=Me.pos,Me.pos=this.offset,this.format=Me.readUInt16(),this.length=Me.readUInt16(),this.language=Me.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(gt=0;gt<256;++gt)this.codeMap[gt]=Me.readByte();break;case 4:for(mr=Me.readUInt16(),dn=mr/2,Me.pos+=6,qe=function(){var Mi,Zi;for(Zi=[],gt=Mi=0;0<=dn?Mi<dn:Mi>dn;gt=0<=dn?++Mi:--Mi)Zi.push(Me.readUInt16());return Zi}(),Me.pos+=2,Rr=function(){var Mi,Zi;for(Zi=[],gt=Mi=0;0<=dn?Mi<dn:Mi>dn;gt=0<=dn?++Mi:--Mi)Zi.push(Me.readUInt16());return Zi}(),hr=function(){var Mi,Zi;for(Zi=[],gt=Mi=0;0<=dn?Mi<dn:Mi>dn;gt=0<=dn?++Mi:--Mi)Zi.push(Me.readUInt16());return Zi}(),Qr=function(){var Mi,Zi;for(Zi=[],gt=Mi=0;0<=dn?Mi<dn:Mi>dn;gt=0<=dn?++Mi:--Mi)Zi.push(Me.readUInt16());return Zi}(),rt=(this.length-Me.pos+this.offset)/2,St=function(){var Mi,Zi;for(Zi=[],gt=Mi=0;0<=rt?Mi<rt:Mi>rt;gt=0<=rt?++Mi:--Mi)Zi.push(Me.readUInt16());return Zi}(),gt=An=0,hi=qe.length;An<hi;gt=++An)for(Rn=qe[gt],Ye=Zr=Kn=Rr[gt];Kn<=Rn?Zr<=Rn:Zr>=Rn;Ye=Kn<=Rn?++Zr:--Zr)Qr[gt]===0?at=Ye+hr[gt]:(at=St[Qr[gt]/2+(Ye-Kn)-(dn-gt)]||0)!==0&&(at+=hr[gt]),this.codeMap[Ye]=65535&at}Me.pos=Xr}return it.encode=function(Me,je){var Ye,rt,qe,at,St,gt,hr,Qr,Xr,dn,mr,Kn,Rr,Rn,An,Zr,hi,Mi,Zi,qr,xn,zn,Ht,Tt,Dt,Bt,jt,Ot,nr,pr,Ar,Nr,Hn,Ln,ci,hn,Fr,En,Wn,Yn,ii,xi,Ni,Li,oa,ma;switch(Ot=new ur,at=Object.keys(Me).sort(function(ia,ba){return ia-ba}),je){case"macroman":for(Rr=0,Rn=function(){var ia=[];for(Kn=0;Kn<256;++Kn)ia.push(0);return ia}(),Zr={0:0},qe={},nr=0,Hn=at.length;nr<Hn;nr++)Zr[Ni=Me[rt=at[nr]]]==null&&(Zr[Ni]=++Rr),qe[rt]={old:Me[rt],new:Zr[Me[rt]]},Rn[rt]=Zr[Me[rt]];return Ot.writeUInt16(1),Ot.writeUInt16(0),Ot.writeUInt32(12),Ot.writeUInt16(0),Ot.writeUInt16(262),Ot.writeUInt16(0),Ot.write(Rn),{charMap:qe,subtable:Ot.data,maxGlyphID:Rr+1};case"unicode":for(Bt=[],Xr=[],hi=0,Zr={},Ye={},An=hr=null,pr=0,Ln=at.length;pr<Ln;pr++)Zr[Zi=Me[rt=at[pr]]]==null&&(Zr[Zi]=++hi),Ye[rt]={old:Zi,new:Zr[Zi]},St=Zr[Zi]-rt,An!=null&&St===hr||(An&&Xr.push(An),Bt.push(rt),hr=St),An=rt;for(An&&Xr.push(An),Xr.push(65535),Bt.push(65535),Tt=2*(Ht=Bt.length),zn=2*Math.pow(Math.log(Ht)/Math.LN2,2),dn=Math.log(zn/2)/Math.LN2,xn=2*Ht-zn,gt=[],qr=[],mr=[],Kn=Ar=0,ci=Bt.length;Ar<ci;Kn=++Ar){if(Dt=Bt[Kn],Qr=Xr[Kn],Dt===65535){gt.push(0),qr.push(0);break}if(Dt-(jt=Ye[Dt].new)>=32768)for(gt.push(0),qr.push(2*(mr.length+Ht-Kn)),rt=Nr=Dt;Dt<=Qr?Nr<=Qr:Nr>=Qr;rt=Dt<=Qr?++Nr:--Nr)mr.push(Ye[rt].new);else gt.push(jt-Dt),qr.push(0)}for(Ot.writeUInt16(3),Ot.writeUInt16(1),Ot.writeUInt32(12),Ot.writeUInt16(4),Ot.writeUInt16(16+8*Ht+2*mr.length),Ot.writeUInt16(0),Ot.writeUInt16(Tt),Ot.writeUInt16(zn),Ot.writeUInt16(dn),Ot.writeUInt16(xn),ii=0,hn=Xr.length;ii<hn;ii++)rt=Xr[ii],Ot.writeUInt16(rt);for(Ot.writeUInt16(0),xi=0,Fr=Bt.length;xi<Fr;xi++)rt=Bt[xi],Ot.writeUInt16(rt);for(Li=0,En=gt.length;Li<En;Li++)St=gt[Li],Ot.writeUInt16(St);for(oa=0,Wn=qr.length;oa<Wn;oa++)Mi=qr[oa],Ot.writeUInt16(Mi);for(ma=0,Yn=mr.length;ma<Yn;ma++)Rr=mr[ma],Ot.writeUInt16(Rr);return{charMap:Ye,subtable:Ot.data,maxGlyphID:hi+1}}},it}(),rr=function(it){function Me(){return Me.__super__.constructor.apply(this,arguments)}return gr(Me,ni),Me.prototype.tag="cmap",Me.prototype.parse=function(je){var Ye,rt,qe;for(je.pos=this.offset,this.version=je.readUInt16(),qe=je.readUInt16(),this.tables=[],this.unicode=null,rt=0;0<=qe?rt<qe:rt>qe;rt=0<=qe?++rt:--rt)Ye=new Pt(je,this.offset),this.tables.push(Ye),Ye.isUnicode&&this.unicode==null&&(this.unicode=Ye);return!0},Me.encode=function(je,Ye){var rt,qe;return Ye==null&&(Ye="macroman"),rt=Pt.encode(je,Ye),(qe=new ur).writeUInt16(0),qe.writeUInt16(1),rt.table=qe.data.concat(rt.subtable),rt},Me}(),Rt=function(it){function Me(){return Me.__super__.constructor.apply(this,arguments)}return gr(Me,ni),Me.prototype.tag="hhea",Me.prototype.parse=function(je){return je.pos=this.offset,this.version=je.readInt(),this.ascender=je.readShort(),this.decender=je.readShort(),this.lineGap=je.readShort(),this.advanceWidthMax=je.readShort(),this.minLeftSideBearing=je.readShort(),this.minRightSideBearing=je.readShort(),this.xMaxExtent=je.readShort(),this.caretSlopeRise=je.readShort(),this.caretSlopeRun=je.readShort(),this.caretOffset=je.readShort(),je.pos+=8,this.metricDataFormat=je.readShort(),this.numberOfMetrics=je.readUInt16()},Me}(),qt=function(it){function Me(){return Me.__super__.constructor.apply(this,arguments)}return gr(Me,ni),Me.prototype.tag="OS/2",Me.prototype.parse=function(je){if(je.pos=this.offset,this.version=je.readUInt16(),this.averageCharWidth=je.readShort(),this.weightClass=je.readUInt16(),this.widthClass=je.readUInt16(),this.type=je.readShort(),this.ySubscriptXSize=je.readShort(),this.ySubscriptYSize=je.readShort(),this.ySubscriptXOffset=je.readShort(),this.ySubscriptYOffset=je.readShort(),this.ySuperscriptXSize=je.readShort(),this.ySuperscriptYSize=je.readShort(),this.ySuperscriptXOffset=je.readShort(),this.ySuperscriptYOffset=je.readShort(),this.yStrikeoutSize=je.readShort(),this.yStrikeoutPosition=je.readShort(),this.familyClass=je.readShort(),this.panose=function(){var Ye,rt;for(rt=[],Ye=0;Ye<10;++Ye)rt.push(je.readByte());return rt}(),this.charRange=function(){var Ye,rt;for(rt=[],Ye=0;Ye<4;++Ye)rt.push(je.readInt());return rt}(),this.vendorID=je.readString(4),this.selection=je.readShort(),this.firstCharIndex=je.readShort(),this.lastCharIndex=je.readShort(),this.version>0&&(this.ascent=je.readShort(),this.descent=je.readShort(),this.lineGap=je.readShort(),this.winAscent=je.readShort(),this.winDescent=je.readShort(),this.codePageRange=function(){var Ye,rt;for(rt=[],Ye=0;Ye<2;Ye=++Ye)rt.push(je.readInt());return rt}(),this.version>1))return this.xHeight=je.readShort(),this.capHeight=je.readShort(),this.defaultChar=je.readShort(),this.breakChar=je.readShort(),this.maxContext=je.readShort()},Me}(),Yr=function(it){function Me(){return Me.__super__.constructor.apply(this,arguments)}return gr(Me,ni),Me.prototype.tag="post",Me.prototype.parse=function(je){var Ye,rt,qe;switch(je.pos=this.offset,this.format=je.readInt(),this.italicAngle=je.readInt(),this.underlinePosition=je.readShort(),this.underlineThickness=je.readShort(),this.isFixedPitch=je.readInt(),this.minMemType42=je.readInt(),this.maxMemType42=je.readInt(),this.minMemType1=je.readInt(),this.maxMemType1=je.readInt(),this.format){case 65536:break;case 131072:var at;for(rt=je.readUInt16(),this.glyphNameIndex=[],at=0;0<=rt?at<rt:at>rt;at=0<=rt?++at:--at)this.glyphNameIndex.push(je.readUInt16());for(this.names=[],qe=[];je.pos<this.offset+this.length;)Ye=je.readByte(),qe.push(this.names.push(je.readString(Ye)));return qe;case 151552:return rt=je.readUInt16(),this.offsets=je.read(rt);case 196608:break;case 262144:return this.map=function(){var St,gt,hr;for(hr=[],at=St=0,gt=this.file.maxp.numGlyphs;0<=gt?St<gt:St>gt;at=0<=gt?++St:--St)hr.push(je.readUInt32());return hr}.call(this)}},Me}(),Mr=function(Me,je){this.raw=Me,this.length=Me.length,this.platformID=je.platformID,this.encodingID=je.encodingID,this.languageID=je.languageID},Dr=function(it){function Me(){return Me.__super__.constructor.apply(this,arguments)}return gr(Me,ni),Me.prototype.tag="name",Me.prototype.parse=function(je){var Ye,rt,qe,at,St,gt,hr,Qr,Xr,dn,mr;for(je.pos=this.offset,je.readShort(),Ye=je.readShort(),gt=je.readShort(),rt=[],at=0;0<=Ye?at<Ye:at>Ye;at=0<=Ye?++at:--at)rt.push({platformID:je.readShort(),encodingID:je.readShort(),languageID:je.readShort(),nameID:je.readShort(),length:je.readShort(),offset:this.offset+gt+je.readShort()});for(hr={},at=Xr=0,dn=rt.length;Xr<dn;at=++Xr)qe=rt[at],je.pos=qe.offset,Qr=je.readString(qe.length),St=new Mr(Qr,qe),hr[mr=qe.nameID]==null&&(hr[mr]=[]),hr[qe.nameID].push(St);this.strings=hr,this.copyright=hr[0],this.fontFamily=hr[1],this.fontSubfamily=hr[2],this.uniqueSubfamily=hr[3],this.fontName=hr[4],this.version=hr[5];try{this.postscriptName=hr[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(Kn){this.postscriptName=hr[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=hr[7],this.manufacturer=hr[8],this.designer=hr[9],this.description=hr[10],this.vendorUrl=hr[11],this.designerUrl=hr[12],this.license=hr[13],this.licenseUrl=hr[14],this.preferredFamily=hr[15],this.preferredSubfamily=hr[17],this.compatibleFull=hr[18],this.sampleText=hr[19]},Me}(),un=function(it){function Me(){return Me.__super__.constructor.apply(this,arguments)}return gr(Me,ni),Me.prototype.tag="maxp",Me.prototype.parse=function(je){return je.pos=this.offset,this.version=je.readInt(),this.numGlyphs=je.readUInt16(),this.maxPoints=je.readUInt16(),this.maxContours=je.readUInt16(),this.maxCompositePoints=je.readUInt16(),this.maxComponentContours=je.readUInt16(),this.maxZones=je.readUInt16(),this.maxTwilightPoints=je.readUInt16(),this.maxStorage=je.readUInt16(),this.maxFunctionDefs=je.readUInt16(),this.maxInstructionDefs=je.readUInt16(),this.maxStackElements=je.readUInt16(),this.maxSizeOfInstructions=je.readUInt16(),this.maxComponentElements=je.readUInt16(),this.maxComponentDepth=je.readUInt16()},Me}(),wn=function(it){function Me(){return Me.__super__.constructor.apply(this,arguments)}return gr(Me,ni),Me.prototype.tag="hmtx",Me.prototype.parse=function(je){var Ye,rt,qe,at,St,gt,hr;for(je.pos=this.offset,this.metrics=[],Ye=0,gt=this.file.hhea.numberOfMetrics;0<=gt?Ye<gt:Ye>gt;Ye=0<=gt?++Ye:--Ye)this.metrics.push({advance:je.readUInt16(),lsb:je.readInt16()});for(qe=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var Qr,Xr;for(Xr=[],Ye=Qr=0;0<=qe?Qr<qe:Qr>qe;Ye=0<=qe?++Qr:--Qr)Xr.push(je.readInt16());return Xr}(),this.widths=function(){var Qr,Xr,dn,mr;for(mr=[],Qr=0,Xr=(dn=this.metrics).length;Qr<Xr;Qr++)at=dn[Qr],mr.push(at.advance);return mr}.call(this),rt=this.widths[this.widths.length-1],hr=[],Ye=St=0;0<=qe?St<qe:St>qe;Ye=0<=qe?++St:--St)hr.push(this.widths.push(rt));return hr},Me.prototype.forGlyph=function(je){return je in this.metrics?this.metrics[je]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[je-this.metrics.length]}},Me}(),ai=[].slice,ei=function(it){function Me(){return Me.__super__.constructor.apply(this,arguments)}return gr(Me,ni),Me.prototype.tag="glyf",Me.prototype.parse=function(){return this.cache={}},Me.prototype.glyphFor=function(je){var Ye,rt,qe,at,St,gt,hr,Qr,Xr,dn;return je in this.cache?this.cache[je]:(at=this.file.loca,Ye=this.file.contents,rt=at.indexOf(je),(qe=at.lengthOf(je))===0?this.cache[je]=null:(Ye.pos=this.offset+rt,St=(gt=new ur(Ye.read(qe))).readShort(),Qr=gt.readShort(),dn=gt.readShort(),hr=gt.readShort(),Xr=gt.readShort(),this.cache[je]=St===-1?new Ii(gt,Qr,dn,hr,Xr):new gi(gt,St,Qr,dn,hr,Xr),this.cache[je]))},Me.prototype.encode=function(je,Ye,rt){var qe,at,St,gt,hr;for(St=[],at=[],gt=0,hr=Ye.length;gt<hr;gt++)qe=je[Ye[gt]],at.push(St.length),qe&&(St=St.concat(qe.encode(rt)));return at.push(St.length),{table:St,offsets:at}},Me}(),gi=function(){function it(Me,je,Ye,rt,qe,at){this.raw=Me,this.numberOfContours=je,this.xMin=Ye,this.yMin=rt,this.xMax=qe,this.yMax=at,this.compound=!1}return it.prototype.encode=function(){return this.raw.data},it}(),Ii=function(){function it(Me,je,Ye,rt,qe){var at,St;for(this.raw=Me,this.xMin=je,this.yMin=Ye,this.xMax=rt,this.yMax=qe,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],at=this.raw;St=at.readShort(),this.glyphOffsets.push(at.pos),this.glyphIDs.push(at.readUInt16()),32&St;)at.pos+=1&St?4:2,128&St?at.pos+=8:64&St?at.pos+=4:8&St&&(at.pos+=2)}return it.prototype.encode=function(){var Me,je,Ye;for(je=new ur(ai.call(this.raw.data)),Me=0,Ye=this.glyphIDs.length;Me<Ye;++Me)je.pos=this.glyphOffsets[Me];return je.data},it}(),ki=function(it){function Me(){return Me.__super__.constructor.apply(this,arguments)}return gr(Me,ni),Me.prototype.tag="loca",Me.prototype.parse=function(je){var Ye,rt;return je.pos=this.offset,Ye=this.file.head.indexToLocFormat,this.offsets=Ye===0?function(){var qe,at;for(at=[],rt=0,qe=this.length;rt<qe;rt+=2)at.push(2*je.readUInt16());return at}.call(this):function(){var qe,at;for(at=[],rt=0,qe=this.length;rt<qe;rt+=4)at.push(je.readUInt32());return at}.call(this)},Me.prototype.indexOf=function(je){return this.offsets[je]},Me.prototype.lengthOf=function(je){return this.offsets[je+1]-this.offsets[je]},Me.prototype.encode=function(je,Ye){for(var rt=new Uint32Array(this.offsets.length),qe=0,at=0,St=0;St<rt.length;++St)if(rt[St]=qe,at<Ye.length&&Ye[at]==St){++at,rt[St]=qe;var gt=this.offsets[St],hr=this.offsets[St+1]-gt;hr>0&&(qe+=hr)}for(var Qr=new Array(4*rt.length),Xr=0;Xr<rt.length;++Xr)Qr[4*Xr+3]=255&rt[Xr],Qr[4*Xr+2]=(65280&rt[Xr])>>8,Qr[4*Xr+1]=(16711680&rt[Xr])>>16,Qr[4*Xr]=(4278190080&rt[Xr])>>24;return Qr},Me}(),Qi=function(){function it(Me){this.font=Me,this.subset={},this.unicodes={},this.next=33}return it.prototype.generateCmap=function(){var Me,je,Ye,rt,qe;for(je in rt=this.font.cmap.tables[0].codeMap,Me={},qe=this.subset)Ye=qe[je],Me[je]=rt[Ye];return Me},it.prototype.glyphsFor=function(Me){var je,Ye,rt,qe,at,St,gt;for(rt={},at=0,St=Me.length;at<St;at++)rt[qe=Me[at]]=this.font.glyf.glyphFor(qe);for(qe in je=[],rt)((Ye=rt[qe])!=null?Ye.compound:void 0)&&je.push.apply(je,Ye.glyphIDs);if(je.length>0)for(qe in gt=this.glyphsFor(je))Ye=gt[qe],rt[qe]=Ye;return rt},it.prototype.encode=function(Me,je){var Ye,rt,qe,at,St,gt,hr,Qr,Xr,dn,mr,Kn,Rr,Rn,An;for(rt in Ye=rr.encode(this.generateCmap(),"unicode"),at=this.glyphsFor(Me),mr={0:0},An=Ye.charMap)mr[(gt=An[rt]).old]=gt.new;for(Kn in dn=Ye.maxGlyphID,at)Kn in mr||(mr[Kn]=dn++);return Qr=function(Zr){var hi,Mi;for(hi in Mi={},Zr)Mi[Zr[hi]]=hi;return Mi}(mr),Xr=Object.keys(Qr).sort(function(Zr,hi){return Zr-hi}),Rr=function(){var Zr,hi,Mi;for(Mi=[],Zr=0,hi=Xr.length;Zr<hi;Zr++)St=Xr[Zr],Mi.push(Qr[St]);return Mi}(),qe=this.font.glyf.encode(at,Rr,mr),hr=this.font.loca.encode(qe.offsets,Rr),Rn={cmap:this.font.cmap.raw(),glyf:qe.table,loca:hr,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(je)},this.font.os2.exists&&(Rn["OS/2"]=this.font.os2.raw()),this.font.directory.encode(Rn)},it}();z.API.PDFObject=function(){var it;function Me(){}return it=function(Ye,rt){return(Array(rt+1).join("0")+Ye).slice(-rt)},Me.convert=function(je){var Ye,rt,qe,at;if(Array.isArray(je))return"["+function(){var St,gt,hr;for(hr=[],St=0,gt=je.length;St<gt;St++)Ye=je[St],hr.push(Me.convert(Ye));return hr}().join(" ")+"]";if(typeof je=="string")return"/"+je;if(je!=null?je.isString:void 0)return"("+je+")";if(je instanceof Date)return"(D:"+it(je.getUTCFullYear(),4)+it(je.getUTCMonth(),2)+it(je.getUTCDate(),2)+it(je.getUTCHours(),2)+it(je.getUTCMinutes(),2)+it(je.getUTCSeconds(),2)+"Z)";if({}.toString.call(je)==="[object Object]"){for(rt in qe=["<<"],je)at=je[rt],qe.push("/"+rt+" "+Me.convert(at));return qe.push(">>"),qe.join(`
|
|
|
`)}return""+je},Me}(),D.default=z}.call(this,n("yLpj"))},e4Nc:function(k,D,n){var y=n("fGT3"),p=n("k+1r"),x=n("JHgL"),A=n("pSRY"),m=n("H8j4");function f(h){var u=-1,a=h==null?0:h.length;for(this.clear();++u<a;){var i=h[u];this.set(i[0],i[1])}}f.prototype.clear=y,f.prototype.delete=p,f.prototype.get=x,f.prototype.has=A,f.prototype.set=m,k.exports=f},e5cp:function(k,D,n){var y=n("fmRc"),p=n("or5M"),x=n("HDyB"),A=n("seXi"),m=n("QqLw"),f=n("Z0cm"),h=n("DSRE"),u=n("c6wG"),a=1,i="[object Arguments]",t="[object Array]",o="[object Object]",e=Object.prototype,l=e.hasOwnProperty;function r(s,c,d,g,v,b){var S=f(s),E=f(c),C=S?t:m(s),_=E?t:m(c);C=C==i?o:C,_=_==i?o:_;var T=C==o,w=_==o,O=C==_;if(O&&h(s)){if(!h(c))return!1;S=!0,T=!1}if(O&&!T)return b||(b=new y),S||u(s)?p(s,c,d,g,v,b):x(s,c,C,d,g,v,b);if(!(d&a)){var I=T&&l.call(s,"__wrapped__"),R=w&&l.call(c,"__wrapped__");if(I||R){var M=I?s.value():s,F=R?c.value():c;return b||(b=new y),v(M,F,d,g,b)}}return O?(b||(b=new y),A(s,c,d,g,v,b)):!1}k.exports=r},e7zE:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("3y9D"),n("WYAk"))})(this,function(y){return function(){var p=y,x=p.lib,A=x.Base,m=x.WordArray,f=p.algo,h=f.SHA1,u=f.HMAC,a=f.PBKDF2=A.extend({cfg:A.extend({keySize:128/32,hasher:h,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,o){for(var e=this.cfg,l=u.create(e.hasher,t),r=m.create(),s=m.create([1]),c=r.words,d=s.words,g=e.keySize,v=e.iterations;c.length<g;){var b=l.update(o).finalize(s);l.reset();for(var S=b.words,E=S.length,C=b,_=1;_<v;_++){C=l.finalize(C),l.reset();for(var T=C.words,w=0;w<E;w++)S[w]^=T[w]}r.concat(b),d[0]++}return r.sigBytes=g*4,r}});p.PBKDF2=function(i,t,o){return a.create(o).compute(i,t)}}(),y.PBKDF2})},eIcI:function(k,D,n){var y=n("bYtY"),p=n("hM6l");function x(m,f,h){p.call(this,m,f,h),this.type="value",this.angle=0,this.name="",this.model}y.inherits(x,p);var A=x;k.exports=A},eJH7:function(k,D,n){var y=n("bYtY");function p(x){var A=x.polar;if(A){y.isArray(A)||(A=[A]);var m=[];y.each(A,function(f,h){f.indicator?(f.type&&!f.shape&&(f.shape=f.type),x.radar=x.radar||[],y.isArray(x.radar)||(x.radar=[x.radar]),x.radar.push(f)):m.push(f)}),x.polar=m}y.each(x.series,function(f){f&&f.type==="radar"&&f.polarIndex&&(f.radarIndex=f.polarIndex)})}k.exports=p},eP3c:function(k,D,n){"use strict";function y(Xe){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(te){return typeof te}:y=function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te},y(Xe)}Object.defineProperty(D,"__esModule",{value:!0}),D.inflateReset=de,D.inflateReset2=me,D.inflateResetKeep=Ee,D.inflateInit=tt,D.inflateInit2=Le,D.inflate=Gt,D.inflateEnd=dr,D.inflateGetHeader=zt,D.inflateSetDictionary=kt,D.inflateInfo=D.Z_DEFLATED=D.Z_BUF_ERROR=D.Z_MEM_ERROR=D.Z_DATA_ERROR=D.Z_STREAM_ERROR=D.Z_NEED_DICT=D.Z_STREAM_END=D.Z_OK=D.Z_TREES=D.Z_BLOCK=D.Z_FINISH=void 0;var p=a(n("6BzB")),x=h(n("xlC8")),A=h(n("QV2g")),m=h(n("sjKO")),f=h(n("JSwD"));function h(Xe){return Xe&&Xe.__esModule?Xe:{default:Xe}}function u(){if(typeof WeakMap!="function")return null;var Xe=new WeakMap;return u=function(){return Xe},Xe}function a(Xe){if(Xe&&Xe.__esModule)return Xe;if(Xe===null||y(Xe)!=="object"&&typeof Xe!="function")return{default:Xe};var pe=u();if(pe&&pe.has(Xe))return pe.get(Xe);var te={},$e=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var He in Xe)if(Object.prototype.hasOwnProperty.call(Xe,He)){var ae=$e?Object.getOwnPropertyDescriptor(Xe,He):null;ae&&(ae.get||ae.set)?Object.defineProperty(te,He,ae):te[He]=Xe[He]}return te.default=Xe,pe&&pe.set(Xe,te),te}var i=0,t=1,o=2,e=4;D.Z_FINISH=e;var l=5;D.Z_BLOCK=l;var r=6;D.Z_TREES=r;var s=0;D.Z_OK=s;var c=1;D.Z_STREAM_END=c;var d=2;D.Z_NEED_DICT=d;var g=-2;D.Z_STREAM_ERROR=g;var v=-3;D.Z_DATA_ERROR=v;var b=-4;D.Z_MEM_ERROR=b;var S=-5;D.Z_BUF_ERROR=S;var E=8;D.Z_DEFLATED=E;var C=1,_=2,T=3,w=4,O=5,I=6,R=7,M=8,F=9,P=10,X=11,B=12,j=13,W=14,z=15,V=16,Q=17,G=18,ee=19,ce=20,be=21,le=22,Ie=23,ke=24,Re=25,Qe=26,We=27,ot=28,Oe=29,oe=30,st=31,he=32,J=852,Y=592,$=15,fe=$;function we(Xe){return(Xe>>>24&255)+(Xe>>>8&65280)+((Xe&65280)<<8)+((Xe&255)<<24)}function Ne(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new p.Buf16(320),this.work=new p.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ee(Xe){var pe;return!Xe||!Xe.state?g:(pe=Xe.state,Xe.total_in=Xe.total_out=pe.total=0,Xe.msg="",pe.wrap&&(Xe.adler=pe.wrap&1),pe.mode=C,pe.last=0,pe.havedict=0,pe.dmax=32768,pe.head=null,pe.hold=0,pe.bits=0,pe.lencode=pe.lendyn=new p.Buf32(J),pe.distcode=pe.distdyn=new p.Buf32(Y),pe.sane=1,pe.back=-1,s)}function de(Xe){var pe;return!Xe||!Xe.state?g:(pe=Xe.state,pe.wsize=0,pe.whave=0,pe.wnext=0,Ee(Xe))}function me(Xe,pe){var te,$e;return!Xe||!Xe.state?g:($e=Xe.state,pe<0?(te=0,pe=-pe):(te=(pe>>4)+1,pe<48&&(pe&=15)),pe&&(pe<8||pe>15)?g:($e.window!==null&&$e.wbits!==pe&&($e.window=null),$e.wrap=te,$e.wbits=pe,de(Xe)))}function Le(Xe,pe){var te,$e;return Xe?($e=new Ne,Xe.state=$e,$e.window=null,te=me(Xe,pe),te!==s&&(Xe.state=null),te):g}function tt(Xe){return Le(Xe,fe)}var At=!0,ht,Ke;function Jt(Xe){if(At){var pe;for(ht=new p.Buf32(512),Ke=new p.Buf32(32),pe=0;pe<144;)Xe.lens[pe++]=8;for(;pe<256;)Xe.lens[pe++]=9;for(;pe<280;)Xe.lens[pe++]=7;for(;pe<288;)Xe.lens[pe++]=8;for((0,f.default)(t,Xe.lens,0,288,ht,0,Xe.work,{bits:9}),pe=0;pe<32;)Xe.lens[pe++]=5;(0,f.default)(o,Xe.lens,0,32,Ke,0,Xe.work,{bits:5}),At=!1}Xe.lencode=ht,Xe.lenbits=9,Xe.distcode=Ke,Xe.distbits=5}function ct(Xe,pe,te,$e){var He,ae=Xe.state;return ae.window===null&&(ae.wsize=1<<ae.wbits,ae.wnext=0,ae.whave=0,ae.window=new p.Buf8(ae.wsize)),$e>=ae.wsize?(p.arraySet(ae.window,pe,te-ae.wsize,ae.wsize,0),ae.wnext=0,ae.whave=ae.wsize):(He=ae.wsize-ae.wnext,He>$e&&(He=$e),p.arraySet(ae.window,pe,te-$e,He,ae.wnext),$e-=He,$e?(p.arraySet(ae.window,pe,te-$e,$e,0),ae.wnext=$e,ae.whave=ae.wsize):(ae.wnext+=He,ae.wnext===ae.wsize&&(ae.wnext=0),ae.whave<ae.wsize&&(ae.whave+=He))),0}function Gt(Xe,pe){var te,$e,He,ae,ft,Mt,mt,or,vr,fn,sr,Ir,lr,Wt,xt=0,rn,Dn,Xn,ri,Ui,Bn,Jn,Xt,_t=new p.Buf8(4),Fe,Pe,Be=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Xe||!Xe.state||!Xe.output||!Xe.input&&Xe.avail_in!==0)return g;te=Xe.state,te.mode===B&&(te.mode=j),ft=Xe.next_out,He=Xe.output,mt=Xe.avail_out,ae=Xe.next_in,$e=Xe.input,Mt=Xe.avail_in,or=te.hold,vr=te.bits,fn=Mt,sr=mt,Xt=s;e:for(;;)switch(te.mode){case C:if(te.wrap===0){te.mode=j;break}for(;vr<16;){if(Mt===0)break e;Mt--,or+=$e[ae++]<<vr,vr+=8}if(te.wrap&2&&or===35615){te.check=0,_t[0]=or&255,_t[1]=or>>>8&255,te.check=(0,A.default)(te.check,_t,2,0),or=0,vr=0,te.mode=_;break}if(te.flags=0,te.head&&(te.head.done=!1),!(te.wrap&1)||(((or&255)<<8)+(or>>8))%31){Xe.msg="incorrect header check",te.mode=oe;break}if((or&15)!==E){Xe.msg="unknown compression method",te.mode=oe;break}if(or>>>=4,vr-=4,Jn=(or&15)+8,te.wbits===0)te.wbits=Jn;else if(Jn>te.wbits){Xe.msg="invalid window size",te.mode=oe;break}te.dmax=1<<Jn,Xe.adler=te.check=1,te.mode=or&512?P:B,or=0,vr=0;break;case _:for(;vr<16;){if(Mt===0)break e;Mt--,or+=$e[ae++]<<vr,vr+=8}if(te.flags=or,(te.flags&255)!==E){Xe.msg="unknown compression method",te.mode=oe;break}if(te.flags&57344){Xe.msg="unknown header flags set",te.mode=oe;break}te.head&&(te.head.text=or>>8&1),te.flags&512&&(_t[0]=or&255,_t[1]=or>>>8&255,te.check=(0,A.default)(te.check,_t,2,0)),or=0,vr=0,te.mode=T;case T:for(;vr<32;){if(Mt===0)break e;Mt--,or+=$e[ae++]<<vr,vr+=8}te.head&&(te.head.time=or),te.flags&512&&(_t[0]=or&255,_t[1]=or>>>8&255,_t[2]=or>>>16&255,_t[3]=or>>>24&255,te.check=(0,A.default)(te.check,_t,4,0)),or=0,vr=0,te.mode=w;case w:for(;vr<16;){if(Mt===0)break e;Mt--,or+=$e[ae++]<<vr,vr+=8}te.head&&(te.head.xflags=or&255,te.head.os=or>>8),te.flags&512&&(_t[0]=or&255,_t[1]=or>>>8&255,te.check=(0,A.default)(te.check,_t,2,0)),or=0,vr=0,te.mode=O;case O:if(te.flags&1024){for(;vr<16;){if(Mt===0)break e;Mt--,or+=$e[ae++]<<vr,vr+=8}te.length=or,te.head&&(te.head.extra_len=or),te.flags&512&&(_t[0]=or&255,_t[1]=or>>>8&255,te.check=(0,A.default)(te.check,_t,2,0)),or=0,vr=0}else te.head&&(te.head.extra=null);te.mode=I;case I:if(te.flags&1024&&(Ir=te.length,Ir>Mt&&(Ir=Mt),Ir&&(te.head&&(Jn=te.head.extra_len-te.length,te.head.extra||(te.head.extra=new Array(te.head.extra_len)),p.arraySet(te.head.extra,$e,ae,Ir,Jn)),te.flags&512&&(te.check=(0,A.default)(te.check,$e,Ir,ae)),Mt-=Ir,ae+=Ir,te.length-=Ir),te.length))break e;te.length=0,te.mode=R;case R:if(te.flags&2048){if(Mt===0)break e;Ir=0;do Jn=$e[ae+Ir++],te.head&&Jn&&te.length<65536&&(te.head.name+=String.fromCharCode(Jn));while(Jn&&Ir<Mt);if(te.flags&512&&(te.check=(0,A.default)(te.check,$e,Ir,ae)),Mt-=Ir,ae+=Ir,Jn)break e}else te.head&&(te.head.name=null);te.length=0,te.mode=M;case M:if(te.flags&4096){if(Mt===0)break e;Ir=0;do Jn=$e[ae+Ir++],te.head&&Jn&&te.length<65536&&(te.head.comment+=String.fromCharCode(Jn));while(Jn&&Ir<Mt);if(te.flags&512&&(te.check=(0,A.default)(te.check,$e,Ir,ae)),Mt-=Ir,ae+=Ir,Jn)break e}else te.head&&(te.head.comment=null);te.mode=F;case F:if(te.flags&512){for(;vr<16;){if(Mt===0)break e;Mt--,or+=$e[ae++]<<vr,vr+=8}if(or!==(te.check&65535)){Xe.msg="header crc mismatch",te.mode=oe;break}or=0,vr=0}te.head&&(te.head.hcrc=te.flags>>9&1,te.head.done=!0),Xe.adler=te.check=0,te.mode=B;break;case P:for(;vr<32;){if(Mt===0)break e;Mt--,or+=$e[ae++]<<vr,vr+=8}Xe.adler=te.check=we(or),or=0,vr=0,te.mode=X;case X:if(te.havedict===0)return Xe.next_out=ft,Xe.avail_out=mt,Xe.next_in=ae,Xe.avail_in=Mt,te.hold=or,te.bits=vr,d;Xe.adler=te.check=1,te.mode=B;case B:if(pe===l||pe===r)break e;case j:if(te.last){or>>>=vr&7,vr-=vr&7,te.mode=We;break}for(;vr<3;){if(Mt===0)break e;Mt--,or+=$e[ae++]<<vr,vr+=8}te.last=or&1,or>>>=1,vr-=1;switch(or&3){case 0:te.mode=W;break;case 1:if(Jt(te),te.mode=ce,pe===r){or>>>=2,vr-=2;break e}break;case 2:te.mode=Q;break;case 3:Xe.msg="invalid block type",te.mode=oe}or>>>=2,vr-=2;break;case W:for(or>>>=vr&7,vr-=vr&7;vr<32;){if(Mt===0)break e;Mt--,or+=$e[ae++]<<vr,vr+=8}if((or&65535)!==(or>>>16^65535)){Xe.msg="invalid stored block lengths",te.mode=oe;break}if(te.length=or&65535,or=0,vr=0,te.mode=z,pe===r)break e;case z:te.mode=V;case V:if(Ir=te.length,Ir){if(Ir>Mt&&(Ir=Mt),Ir>mt&&(Ir=mt),Ir===0)break e;p.arraySet(He,$e,ae,Ir,ft),Mt-=Ir,ae+=Ir,mt-=Ir,ft+=Ir,te.length-=Ir;break}te.mode=B;break;case Q:for(;vr<14;){if(Mt===0)break e;Mt--,or+=$e[ae++]<<vr,vr+=8}if(te.nlen=(or&31)+257,or>>>=5,vr-=5,te.ndist=(or&31)+1,or>>>=5,vr-=5,te.ncode=(or&15)+4,or>>>=4,vr-=4,te.nlen>286||te.ndist>30){Xe.msg="too many length or distance symbols",te.mode=oe;break}te.have=0,te.mode=G;case G:for(;te.have<te.ncode;){for(;vr<3;){if(Mt===0)break e;Mt--,or+=$e[ae++]<<vr,vr+=8}te.lens[Be[te.have++]]=or&7,or>>>=3,vr-=3}for(;te.have<19;)te.lens[Be[te.have++]]=0;if(te.lencode=te.lendyn,te.lenbits=7,Fe={bits:te.lenbits},Xt=(0,f.default)(i,te.lens,0,19,te.lencode,0,te.work,Fe),te.lenbits=Fe.bits,Xt){Xe.msg="invalid code lengths set",te.mode=oe;break}te.have=0,te.mode=ee;case ee:for(;te.have<te.nlen+te.ndist;){for(;!(xt=te.lencode[or&(1<<te.lenbits)-1],rn=xt>>>24,Dn=xt>>>16&255,Xn=xt&65535,rn<=vr);){if(Mt===0)break e;Mt--,or+=$e[ae++]<<vr,vr+=8}if(Xn<16)or>>>=rn,vr-=rn,te.lens[te.have++]=Xn;else{if(Xn===16){for(Pe=rn+2;vr<Pe;){if(Mt===0)break e;Mt--,or+=$e[ae++]<<vr,vr+=8}if(or>>>=rn,vr-=rn,te.have===0){Xe.msg="invalid bit length repeat",te.mode=oe;break}Jn=te.lens[te.have-1],Ir=3+(or&3),or>>>=2,vr-=2}else if(Xn===17){for(Pe=rn+3;vr<Pe;){if(Mt===0)break e;Mt--,or+=$e[ae++]<<vr,vr+=8}or>>>=rn,vr-=rn,Jn=0,Ir=3+(or&7),or>>>=3,vr-=3}else{for(Pe=rn+7;vr<Pe;){if(Mt===0)break e;Mt--,or+=$e[ae++]<<vr,vr+=8}or>>>=rn,vr-=rn,Jn=0,Ir=11+(or&127),or>>>=7,vr-=7}if(te.have+Ir>te.nlen+te.ndist){Xe.msg="invalid bit length repeat",te.mode=oe;break}for(;Ir--;)te.lens[te.have++]=Jn}}if(te.mode===oe)break;if(te.lens[256]===0){Xe.msg="invalid code -- missing end-of-block",te.mode=oe;break}if(te.lenbits=9,Fe={bits:te.lenbits},Xt=(0,f.default)(t,te.lens,0,te.nlen,te.lencode,0,te.work,Fe),te.lenbits=Fe.bits,Xt){Xe.msg="invalid literal/lengths set",te.mode=oe;break}if(te.distbits=6,te.distcode=te.distdyn,Fe={bits:te.distbits},Xt=(0,f.default)(o,te.lens,te.nlen,te.ndist,te.distcode,0,te.work,Fe),te.distbits=Fe.bits,Xt){Xe.msg="invalid distances set",te.mode=oe;break}if(te.mode=ce,pe===r)break e;case ce:te.mode=be;case be:if(Mt>=6&&mt>=258){Xe.next_out=ft,Xe.avail_out=mt,Xe.next_in=ae,Xe.avail_in=Mt,te.hold=or,te.bits=vr,(0,m.default)(Xe,sr),ft=Xe.next_out,He=Xe.output,mt=Xe.avail_out,ae=Xe.next_in,$e=Xe.input,Mt=Xe.avail_in,or=te.hold,vr=te.bits,te.mode===B&&(te.back=-1);break}for(te.back=0;!(xt=te.lencode[or&(1<<te.lenbits)-1],rn=xt>>>24,Dn=xt>>>16&255,Xn=xt&65535,rn<=vr);){if(Mt===0)break e;Mt--,or+=$e[ae++]<<vr,vr+=8}if(Dn&&(Dn&240)===0){for(ri=rn,Ui=Dn,Bn=Xn;!(xt=te.lencode[Bn+((or&(1<<ri+Ui)-1)>>ri)],rn=xt>>>24,Dn=xt>>>16&255,Xn=xt&65535,ri+rn<=vr);){if(Mt===0)break e;Mt--,or+=$e[ae++]<<vr,vr+=8}or>>>=ri,vr-=ri,te.back+=ri}if(or>>>=rn,vr-=rn,te.back+=rn,te.length=Xn,Dn===0){te.mode=Qe;break}if(Dn&32){te.back=-1,te.mode=B;break}if(Dn&64){Xe.msg="invalid literal/length code",te.mode=oe;break}te.extra=Dn&15,te.mode=le;case le:if(te.extra){for(Pe=te.extra;vr<Pe;){if(Mt===0)break e;Mt--,or+=$e[ae++]<<vr,vr+=8}te.length+=or&(1<<te.extra)-1,or>>>=te.extra,vr-=te.extra,te.back+=te.extra}te.was=te.length,te.mode=Ie;case Ie:for(;!(xt=te.distcode[or&(1<<te.distbits)-1],rn=xt>>>24,Dn=xt>>>16&255,Xn=xt&65535,rn<=vr);){if(Mt===0)break e;Mt--,or+=$e[ae++]<<vr,vr+=8}if((Dn&240)===0){for(ri=rn,Ui=Dn,Bn=Xn;!(xt=te.distcode[Bn+((or&(1<<ri+Ui)-1)>>ri)],rn=xt>>>24,Dn=xt>>>16&255,Xn=xt&65535,ri+rn<=vr);){if(Mt===0)break e;Mt--,or+=$e[ae++]<<vr,vr+=8}or>>>=ri,vr-=ri,te.back+=ri}if(or>>>=rn,vr-=rn,te.back+=rn,Dn&64){Xe.msg="invalid distance code",te.mode=oe;break}te.offset=Xn,te.extra=Dn&15,te.mode=ke;case ke:if(te.extra){for(Pe=te.extra;vr<Pe;){if(Mt===0)break e;Mt--,or+=$e[ae++]<<vr,vr+=8}te.offset+=or&(1<<te.extra)-1,or>>>=te.extra,vr-=te.extra,te.back+=te.extra}if(te.offset>te.dmax){Xe.msg="invalid distance too far back",te.mode=oe;break}te.mode=Re;case Re:if(mt===0)break e;if(Ir=sr-mt,te.offset>Ir){if(Ir=te.offset-Ir,Ir>te.whave&&te.sane){Xe.msg="invalid distance too far back",te.mode=oe;break}Ir>te.wnext?(Ir-=te.wnext,lr=te.wsize-Ir):lr=te.wnext-Ir,Ir>te.length&&(Ir=te.length),Wt=te.window}else Wt=He,lr=ft-te.offset,Ir=te.length;Ir>mt&&(Ir=mt),mt-=Ir,te.length-=Ir;do He[ft++]=Wt[lr++];while(--Ir);te.length===0&&(te.mode=be);break;case Qe:if(mt===0)break e;He[ft++]=te.length,mt--,te.mode=be;break;case We:if(te.wrap){for(;vr<32;){if(Mt===0)break e;Mt--,or|=$e[ae++]<<vr,vr+=8}if(sr-=mt,Xe.total_out+=sr,te.total+=sr,sr&&(Xe.adler=te.check=te.flags?(0,A.default)(te.check,He,sr,ft-sr):(0,x.default)(te.check,He,sr,ft-sr)),sr=mt,(te.flags?or:we(or))!==te.check){Xe.msg="incorrect data check",te.mode=oe;break}or=0,vr=0}te.mode=ot;case ot:if(te.wrap&&te.flags){for(;vr<32;){if(Mt===0)break e;Mt--,or+=$e[ae++]<<vr,vr+=8}if(or!==(te.total&4294967295)){Xe.msg="incorrect length check",te.mode=oe;break}or=0,vr=0}te.mode=Oe;case Oe:Xt=c;break e;case oe:Xt=v;break e;case st:return b;case he:default:return g}return Xe.next_out=ft,Xe.avail_out=mt,Xe.next_in=ae,Xe.avail_in=Mt,te.hold=or,te.bits=vr,(te.wsize||sr!==Xe.avail_out&&te.mode<oe&&(te.mode<We||pe!==e))&&ct(Xe,Xe.output,Xe.next_out,sr-Xe.avail_out)?(te.mode=st,b):(fn-=Xe.avail_in,sr-=Xe.avail_out,Xe.total_in+=fn,Xe.total_out+=sr,te.total+=sr,te.wrap&&sr&&(Xe.adler=te.check=te.flags?(0,A.default)(te.check,He,sr,Xe.next_out-sr):(0,x.default)(te.check,He,sr,Xe.next_out-sr)),Xe.data_type=te.bits+(te.last?64:0)+(te.mode===B?128:0)+(te.mode===ce||te.mode===z?256:0),(fn===0&&sr===0||pe===e)&&Xt===s&&(Xt=S),Xt)}function dr(Xe){if(!Xe||!Xe.state)return g;var pe=Xe.state;return pe.window&&(pe.window=null),Xe.state=null,s}function zt(Xe,pe){var te;return!Xe||!Xe.state?g:(te=Xe.state,(te.wrap&2)===0?g:(te.head=pe,pe.done=!1,s))}function kt(Xe,pe){var te=pe.length,$e,He,ae;return!Xe||!Xe.state?g:($e=Xe.state,$e.wrap!==0&&$e.mode!==X?g:$e.mode===X&&(He=1,He=(0,x.default)(He,pe,te,0),He!==$e.check)?v:(ae=ct(Xe,pe,te,te),ae?($e.mode=st,b):($e.havedict=1,s)))}var Vt="pako inflate (from Nodeca project)";D.inflateInfo=Vt},ePAk:function(k,D,n){var y=n("ProS");n("2fGM");var p=y.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(x){var A,m=this.ecModel;return m.eachComponent(x,function(f){f.getCoordSysModel()===this&&(A=f)},this),A},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});k.exports=p},eRkO:function(k,D,n){var y=n("+TT/"),p=y.getLayoutRect,x=y.box,A=y.positionElement,m=n("7aKB"),f=n("IwbS");function h(a,i,t){var o=i.getBoxLayoutParams(),e=i.get("padding"),l={width:t.getWidth(),height:t.getHeight()},r=p(o,l,e);x(i.get("orient"),a,i.get("itemGap"),r.width,r.height),A(a,o,l,e)}function u(a,i){var t=m.normalizeCssArray(i.get("padding")),o=i.getItemStyle(["color","opacity"]);o.fill=i.get("backgroundColor");var a=new f.Rect({shape:{x:a.x-t[3],y:a.y-t[0],width:a.width+t[1]+t[3],height:a.height+t[0]+t[2],r:i.get("borderRadius")},style:o,silent:!0,z2:-1});return a}D.layout=h,D.makeBackground=u},eS4l:function(k,D,n){n("HM/N"),n("FNN5")},eUgh:function(k,D){function n(y,p){for(var x=-1,A=y==null?0:y.length,m=Array(A);++x<A;)m[x]=p(y[x],x,y);return m}k.exports=n},ebwN:function(k,D,n){var y=n("Cwc5"),p=n("Kz5y"),x=y(p,"Map");k.exports=x},ekgI:function(k,D,n){var y=n("YESw"),p=Object.prototype,x=p.hasOwnProperty;function A(m){var f=this.__data__;return y?f[m]!==void 0:x.call(f,m)}k.exports=A},eokw:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("b8jI"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},ewwo:function(k,D,n){var y=n("bMXI"),p=n("+TT/"),x=p.getLayoutRect,A=n("4mN7");function m(h,u,a){var i=h.getBoxLayoutParams();return i.aspect=a,x(i,{width:u.getWidth(),height:u.getHeight()})}function f(h,u){var a=[];return h.eachSeriesByType("graph",function(i){var t=i.get("coordinateSystem");if(!t||t==="view"){var o=i.getData(),e=o.mapArray(function(E){var C=o.getItemModel(E);return[+C.get("x"),+C.get("y")]}),l=[],r=[];A.fromPoints(e,l,r),r[0]-l[0]===0&&(r[0]+=1,l[0]-=1),r[1]-l[1]===0&&(r[1]+=1,l[1]-=1);var s=(r[0]-l[0])/(r[1]-l[1]),c=m(i,u,s);isNaN(s)&&(l=[c.x,c.y],r=[c.x+c.width,c.y+c.height]);var d=r[0]-l[0],g=r[1]-l[1],v=c.width,b=c.height,S=i.coordinateSystem=new y;S.zoomLimit=i.get("scaleLimit"),S.setBoundingRect(l[0],l[1],d,g),S.setViewRect(c.x,c.y,v,b),S.setCenter(i.get("center")),S.setZoom(i.get("zoom")),a.push(S)}}),a}k.exports=f},f1nB:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),A=n("bYtY"),m=n("4NO4"),f=n("IwbS"),h=n("+TT/"),u=n("OELB"),a=u.parsePercent,i={path:null,compoundPath:null,group:f.Group,image:f.Image,text:f.Text};x.registerPreprocessor(function(v){var b=v.graphic;A.isArray(b)?!b[0]||!b[0].elements?v.graphic=[{elements:b}]:v.graphic=[v.graphic[0]]:b&&!b.elements&&(v.graphic=[{elements:[b]}])});var t=x.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(v){var b=this.option.elements;this.option.elements=null,t.superApply(this,"mergeOption",arguments),this.option.elements=b},optionUpdated:function(v,b){var S=this.option,E=(b?S:v).elements,C=S.elements=b?[]:S.elements,_=[];this._flatten(E,_);var T=m.mappingToExists(C,_);m.makeIdAndName(T);var w=this._elOptionsToUpdate=[];A.each(T,function(I,R){var M=I.option;if(!M)return;w.push(M),s(I,M),c(C,R,M),d(C[R],M)},this);for(var O=C.length-1;O>=0;O--)C[O]==null?C.splice(O,1):delete C[O].$action},_flatten:function(v,b,S){A.each(v,function(E){if(!E)return;S&&(E.parentOption=S),b.push(E);var C=E.children;E.type==="group"&&C&&this._flatten(C,b,E),delete E.children},this)},useElOptionsToUpdate:function(){var v=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,v}});x.extendComponentView({type:"graphic",init:function(v,b){this._elMap=A.createHashMap(),this._lastGraphicModel},render:function(v,b,S){v!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=v,this._updateElements(v),this._relocate(v,S)},_updateElements:function(v){var b=v.useElOptionsToUpdate();if(!b)return;var S=this._elMap,E=this.group;A.each(b,function(C){var _=C.$action,T=C.id,w=S.get(T),O=C.parentId,I=O!=null?S.get(O):E,R=C.style;C.type==="text"&&R&&(C.hv&&C.hv[1]&&(R.textVerticalAlign=R.textBaseline=null),!R.hasOwnProperty("textFill")&&R.fill&&(R.textFill=R.fill),!R.hasOwnProperty("textStroke")&&R.stroke&&(R.textStroke=R.stroke));var M=l(C);!_||_==="merge"?w?w.attr(M):o(T,I,M,S):_==="replace"?(e(w,S),o(T,I,M,S)):_==="remove"&&e(w,S);var F=S.get(T);F&&(F.__ecGraphicWidthOption=C.width,F.__ecGraphicHeightOption=C.height,g(F,v,C))})},_relocate:function(v,b){for(var S=v.option.elements,E=this.group,C=this._elMap,_=b.getWidth(),T=b.getHeight(),w=0;w<S.length;w++){var O=S[w],I=C.get(O.id);if(!I||!I.isGroup)continue;var R=I.parent,M=R===E;I.__ecGraphicWidth=a(I.__ecGraphicWidthOption,M?_:R.__ecGraphicWidth)||0,I.__ecGraphicHeight=a(I.__ecGraphicHeightOption,M?T:R.__ecGraphicHeight)||0}for(var w=S.length-1;w>=0;w--){var O=S[w],I=C.get(O.id);if(!I)continue;var R=I.parent,F=R===E?{width:_,height:T}:{width:R.__ecGraphicWidth,height:R.__ecGraphicHeight};h.positionElement(I,O,F,null,{hv:O.hv,boundingMode:O.bounding})}},_clear:function(){var v=this._elMap;v.each(function(b){e(b,v)}),this._elMap=A.createHashMap()},dispose:function(){this._clear()}});function o(v,b,S,E){var C=S.type,_=i.hasOwnProperty(C)?i[C]:f.getShapeClass(C),T=new _(S);b.add(T),E.set(v,T),T.__ecGraphicId=v}function e(v,b){var S=v&&v.parent;S&&(v.type==="group"&&v.traverse(function(E){e(E,b)}),b.removeKey(v.__ecGraphicId),S.remove(v))}function l(v){return v=A.extend({},v),A.each(["id","parentId","$action","hv","bounding"].concat(h.LOCATION_PARAMS),function(b){delete v[b]}),v}function r(v,b){var S;return A.each(b,function(E){v[E]!=null&&v[E]!=="auto"&&(S=!0)}),S}function s(v,b){var S=v.exist;if(b.id=v.keyInfo.id,!b.type&&S&&(b.type=S.type),b.parentId==null){var E=b.parentOption;E?b.parentId=E.id:S&&(b.parentId=S.parentId)}b.parentOption=null}function c(v,b,S){var E=A.extend({},S),C=v[b],_=S.$action||"merge";_==="merge"?C?(A.merge(C,E,!0),h.mergeLayoutParam(C,E,{ignoreSize:!0}),h.copyLayoutParams(S,C)):v[b]=E:_==="replace"?v[b]=E:_==="remove"&&(C&&(v[b]=null))}function d(v,b){if(!v)return;v.hv=b.hv=[r(b,["left","right"]),r(b,["top","bottom"])],v.type==="group"&&(v.width==null&&(v.width=b.width=0),v.height==null&&(v.height=b.height=0))}function g(v,b,S){var E=v.eventData;!v.silent&&!v.ignore&&!E&&(E=v.eventData={componentType:"graphic",componentIndex:b.componentIndex,name:v.name}),E&&(E.info=v.info)}},f3JH:function(k,D,n){n("aTJb"),n("OlYY"),n("fc+c"),n("oY9F"),n("MqEG"),n("LBfv"),n("noeP")},f5HG:function(k,D,n){var y=n("IwbS"),p=n("QBsz"),x=y.Line.prototype,A=y.BezierCurve.prototype;function m(h){return isNaN(+h.cpx1)||isNaN(+h.cpy1)}var f=y.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(h,u){this[m(u)?"_buildPathLine":"_buildPathCurve"](h,u)},_buildPathLine:x.buildPath,_buildPathCurve:A.buildPath,pointAt:function(h){return this[m(this.shape)?"_pointAtLine":"_pointAtCurve"](h)},_pointAtLine:x.pointAt,_pointAtCurve:A.pointAt,tangentAt:function(h){var u=this.shape,a=m(u)?[u.x2-u.x1,u.y2-u.y1]:this._tangentAtCurve(h);return p.normalize(a,a)},_tangentAtCurve:A.tangentAt});k.exports=f},f5Yq:function(k,D,n){var y=n("bYtY"),p=y.isFunction;function x(A,m,f){return{seriesType:A,performRawSeries:!0,reset:function(h,u,a){var i=h.getData(),t=h.get("symbol"),o=h.get("symbolSize"),e=h.get("symbolKeepAspect"),l=h.get("symbolRotate"),r=p(t),s=p(o),c=p(l),d=r||s||c,g=!r&&t?t:m,v=s?null:o,b=c?null:b;if(i.setVisual({legendSymbol:f||g,symbol:g,symbolSize:v,symbolKeepAspect:e,symbolRotate:l}),u.isSeriesFiltered(h))return;function S(E,C){if(d){var _=h.getRawValue(C),T=h.getDataParams(C);r&&E.setItemVisual(C,"symbol",t(_,T)),s&&E.setItemVisual(C,"symbolSize",o(_,T)),c&&E.setItemVisual(C,"symbolRotate",l(_,T))}if(E.hasItemOption){var w=E.getItemModel(C),O=w.getShallow("symbol",!0),I=w.getShallow("symbolSize",!0),R=w.getShallow("symbolRotate",!0),M=w.getShallow("symbolKeepAspect",!0);O!=null&&E.setItemVisual(C,"symbol",O),I!=null&&E.setItemVisual(C,"symbolSize",I),R!=null&&E.setItemVisual(C,"symbolRotate",R),M!=null&&E.setItemVisual(C,"symbolKeepAspect",M)}}return{dataEach:i.hasItemOption||d?S:null}}}}k.exports=x},fE02:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("/IIm"),A=n("vZ6x"),m=n("b9oc"),f=n("72pK"),h=n("Kagy"),u=n("IUWy");n("3TkU");var a=h.toolbox.dataZoom,i=p.each,t="\0_ec_\0toolbox-dataZoom_";function o(g,v,b){(this._brushController=new x(b.getZr())).on("brush",p.bind(this._onBrush,this)).mount(),this._isZoomActive}o.defaultOption={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:p.clone(a.title)};var e=o.prototype;e.render=function(g,v,b,S){this.model=g,this.ecModel=v,this.api=b,c(g,v,this,S,b),s(g,v)},e.onclick=function(g,v,b){l[b].call(this)},e.remove=function(g,v){this._brushController.unmount()},e.dispose=function(g,v){this._brushController.dispose()};var l={zoom:function(){var g=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:g})},back:function(){this._dispatchZoomAction(m.pop(this.ecModel))}};e._onBrush=function(g,v){if(!v.isEnd||!g.length)return;var b={},S=this.ecModel;this._brushController.updateCovers([]);var E=new A(r(this.model.option),S,{include:["grid"]});E.matchOutputRanges(g,S,function(T,w,O){if(O.type!=="cartesian2d")return;var I=T.brushType;I==="rect"?(C("x",O,w[0]),C("y",O,w[1])):C({lineX:"x",lineY:"y"}[I],O,w)}),m.push(S,b),this._dispatchZoomAction(b);function C(T,w,O){var I=w.getAxis(T),R=I.model,M=_(T,R,S),F=M.findRepresentativeAxisProxy(R).getMinMaxSpan();(F.minValueSpan!=null||F.maxValueSpan!=null)&&(O=f(0,O.slice(),I.scale.getExtent(),0,F.minValueSpan,F.maxValueSpan)),M&&(b[M.id]={dataZoomId:M.id,startValue:O[0],endValue:O[1]})}function _(T,w,O){var I;return O.eachComponent({mainType:"dataZoom",subType:"select"},function(R){var M=R.getAxisModel(T,w.componentIndex);M&&(I=R)}),I}},e._dispatchZoomAction=function(g){var v=[];i(g,function(b,S){v.push(p.clone(b))}),v.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:v})};function r(g){var v={};return p.each(["xAxisIndex","yAxisIndex"],function(b){v[b]=g[b],v[b]==null&&(v[b]="all"),(v[b]===!1||v[b]==="none")&&(v[b]=[])}),v}function s(g,v){g.setIconStatus("back",m.count(v)>1?"emphasis":"normal")}function c(g,v,b,S,E){var C=b._isZoomActive;S&&S.type==="takeGlobalCursor"&&(C=S.key==="dataZoomSelect"?S.dataZoomSelectActive:!1),b._isZoomActive=C,g.setIconStatus("zoom",C?"emphasis":"normal");var _=new A(r(g.option),v,{include:["grid"]});b._brushController.setPanels(_.makePanelOpts(E,function(T){return T.xAxisDeclared&&!T.yAxisDeclared?"lineX":!T.xAxisDeclared&&T.yAxisDeclared?"lineY":"rect"})).enableBrush(C?{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}}:!1)}u.register("dataZoom",o),y.registerPreprocessor(function(g){if(!g)return;var v=g.dataZoom||(g.dataZoom=[]);p.isArray(v)||(g.dataZoom=v=[v]);var b=g.toolbox;if(b&&(p.isArray(b)&&(b=b[0]),b&&b.feature)){var S=b.feature.dataZoom;E("xAxis",S),E("yAxis",S)}function E(_,T){if(!T)return;var w=_+"Index",O=T[w];O!=null&&O!=="all"&&!p.isArray(O)&&(O=O===!1||O==="none"?[]:[O]),C(_,function(I,R){if(O!=null&&O!=="all"&&p.indexOf(O,R)===-1)return;var M={type:"select",$fromToolbox:!0,filterMode:T.filterMode||"filter",id:t+_+R};M[w]=R,v.push(M)})}function C(_,T){var w=g[_];p.isArray(w)||(w=w?[w]:[]),i(w,T)}});var d=o;k.exports=d},fGT3:function(k,D,n){var y=n("4kuk"),p=n("Xi7e"),x=n("ebwN");function A(){this.size=0,this.__data__={hash:new y,map:new(x||p),string:new y}}k.exports=A},"fR/l":function(k,D,n){var y=n("CH3K"),p=n("Z0cm");function x(A,m,f){var h=m(A);return p(A)?h:y(h,f(A))}k.exports=x},fW2E:function(k,D){var n={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function y(p,x,A){return n.hasOwnProperty(x)?A*=p.dpr:A}k.exports=y},"fc+c":function(k,D,n){var y=n("sS/r"),p=y.extend({type:"dataZoom",render:function(x,A,m,f){this.dataZoomModel=x,this.ecModel=A,this.api=m},getTargetCoordInfo:function(){var x=this.dataZoomModel,A=this.ecModel,m={};x.eachTargetAxis(function(h,u){var a=A.getComponent(h.axis,u);if(a){var i=a.getCoordSysModel();i&&f(i,a,m[i.mainType]||(m[i.mainType]=[]),i.componentIndex)}},this);function f(h,u,a,i){for(var t,o=0;o<a.length;o++)if(a[o].model===h){t=a[o];break}t||a.push(t={model:h,axisModels:[],coordIndex:i}),t.axisModels.push(u)}return m}});k.exports=p},fjKi:function(k,D,n){var y=n("ProS");n("Q7if"),n("jndi"),y.registerPreprocessor(function(p){p.markArea=p.markArea||{}})},"fk+n":function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("wgjA")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="LeftOutlined";var i=A.forwardRef(a);D.default=i},fls0:function(k,D,n){var y=n("bYtY"),p=n("QBsz"),x=n("oVpE"),A=n("f5HG"),m=n("IwbS"),f=n("OELB"),h=f.round,u=["fromSymbol","toSymbol"];function a(c){return"_"+c+"Type"}function i(c,d,g){var v=d.getItemVisual(g,"color"),b=d.getItemVisual(g,c),S=d.getItemVisual(g,c+"Size");if(!b||b==="none")return;y.isArray(S)||(S=[S,S]);var E=x.createSymbol(b,-S[0]/2,-S[1]/2,S[0],S[1],v);return E.name=c,E}function t(c){var d=new A({name:"line",subPixelOptimize:!0});return o(d.shape,c),d}function o(c,d){c.x1=d[0][0],c.y1=d[0][1],c.x2=d[1][0],c.y2=d[1][1],c.percent=1;var g=d[2];g?(c.cpx1=g[0],c.cpy1=g[1]):(c.cpx1=NaN,c.cpy1=NaN)}function e(){var c=this,d=c.childOfName("fromSymbol"),g=c.childOfName("toSymbol"),v=c.childOfName("label");if(!d&&!g&&v.ignore)return;for(var b=1,S=this.parent;S;)S.scale&&(b/=S.scale[0]),S=S.parent;var E=c.childOfName("line");if(!this.__dirty&&!E.__dirty)return;var C=E.shape.percent,_=E.pointAt(0),T=E.pointAt(C),w=p.sub([],T,_);if(p.normalize(w,w),d){d.attr("position",_);var O=E.tangentAt(0);d.attr("rotation",Math.PI/2-Math.atan2(O[1],O[0])),d.attr("scale",[b*C,b*C])}if(g){g.attr("position",T);var O=E.tangentAt(1);g.attr("rotation",-Math.PI/2-Math.atan2(O[1],O[0])),g.attr("scale",[b*C,b*C])}if(!v.ignore){v.attr("position",T);var I,R,M,F,P=v.__labelDistance,X=P[0]*b,B=P[1]*b,j=C/2,O=E.tangentAt(j),W=[O[1],-O[0]],z=E.pointAt(j);W[1]>0&&(W[0]=-W[0],W[1]=-W[1]);var V=O[0]<0?-1:1;if(v.__position!=="start"&&v.__position!=="end"){var Q=-Math.atan2(O[1],O[0]);T[0]<_[0]&&(Q=Math.PI+Q),v.attr("rotation",Q)}var G;switch(v.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":G=-B,M="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":G=B,M="top";break;default:G=0,M="middle"}switch(v.__position){case"end":I=[w[0]*X+T[0],w[1]*B+T[1]],R=w[0]>.8?"left":w[0]<-.8?"right":"center",M=w[1]>.8?"top":w[1]<-.8?"bottom":"middle";break;case"start":I=[-w[0]*X+_[0],-w[1]*B+_[1]],R=w[0]>.8?"right":w[0]<-.8?"left":"center",M=w[1]>.8?"bottom":w[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":I=[X*V+_[0],_[1]+G],R=O[0]<0?"right":"left",F=[-X*V,-G];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":I=[z[0],z[1]+G],R="center",F=[0,-G];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":I=[-X*V+T[0],T[1]+G],R=O[0]>=0?"right":"left",F=[X*V,-G];break}v.attr({style:{textVerticalAlign:v.__verticalAlign||M,textAlign:v.__textAlign||R},position:I,scale:[b,b],origin:F})}}function l(c,d,g){m.Group.call(this),this._createLine(c,d,g)}var r=l.prototype;r.beforeUpdate=e,r._createLine=function(c,d,g){var v=c.hostModel,b=c.getItemLayout(d),S=t(b);S.shape.percent=0,m.initProps(S,{shape:{percent:1}},v,d),this.add(S);var E=new m.Text({name:"label",lineLabelOriginalOpacity:1});this.add(E),y.each(u,function(C){var _=i(C,c,d);this.add(_),this[a(C)]=c.getItemVisual(d,C)},this),this._updateCommonStl(c,d,g)},r.updateData=function(c,d,g){var v=c.hostModel,b=this.childOfName("line"),S=c.getItemLayout(d),E={shape:{}};o(E.shape,S),m.updateProps(b,E,v,d),y.each(u,function(C){var _=c.getItemVisual(d,C),T=a(C);if(this[T]!==_){this.remove(this.childOfName(C));var w=i(C,c,d);this.add(w)}this[T]=_},this),this._updateCommonStl(c,d,g)},r._updateCommonStl=function(c,d,g){var v=c.hostModel,b=this.childOfName("line"),S=g&&g.lineStyle,E=g&&g.hoverLineStyle,C=g&&g.labelModel,_=g&&g.hoverLabelModel;if(!g||c.hasItemOption){var T=c.getItemModel(d);S=T.getModel("lineStyle").getLineStyle(),E=T.getModel("emphasis.lineStyle").getLineStyle(),C=T.getModel("label"),_=T.getModel("emphasis.label")}var w=c.getItemVisual(d,"color"),O=y.retrieve3(c.getItemVisual(d,"opacity"),S.opacity,1);b.useStyle(y.defaults({strokeNoScale:!0,fill:"none",stroke:w,opacity:O},S)),b.hoverStyle=E,y.each(u,function(V){var Q=this.childOfName(V);Q&&(Q.setColor(w),Q.setStyle({opacity:O}))},this);var I=C.getShallow("show"),R=_.getShallow("show"),M=this.childOfName("label"),F,P;if((I||R)&&(F=w||"#000",P=v.getFormattedLabel(d,"normal",c.dataType),P==null)){var X=v.getRawValue(d);P=X==null?c.getName(d):isFinite(X)?h(X):X}var B=I?P:null,j=R?y.retrieve2(v.getFormattedLabel(d,"emphasis",c.dataType),P):null,W=M.style;if(B!=null||j!=null){m.setTextStyle(M.style,C,{text:B},{autoColor:F}),M.__textAlign=W.textAlign,M.__verticalAlign=W.textVerticalAlign,M.__position=C.get("position")||"middle";var z=C.get("distance");y.isArray(z)||(z=[z,z]),M.__labelDistance=z}j!=null?M.hoverStyle={text:j,textFill:_.getTextColor(!0),fontStyle:_.getShallow("fontStyle"),fontWeight:_.getShallow("fontWeight"),fontSize:_.getShallow("fontSize"),fontFamily:_.getShallow("fontFamily")}:M.hoverStyle={text:null},M.ignore=!I&&!R,m.setHoverStyle(this)},r.highlight=function(){this.trigger("emphasis")},r.downplay=function(){this.trigger("normal")},r.updateLayout=function(c,d){this.setLinePoints(c.getItemLayout(d))},r.setLinePoints=function(c){var d=this.childOfName("line");o(d.shape,c),d.dirty()},y.inherits(l,m.Group);var s=l;k.exports=s},fmMI:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=x.each,m=x.filter,f=x.map,h=x.isArray,u=x.indexOf,a=x.isObject,i=x.isString,t=x.createHashMap,o=x.assert,e=x.clone,l=x.merge,r=x.extend,s=x.mixin,c=n("4NO4"),d=n("Qxkt"),g=n("bLfw"),v=n("iXHM"),b=n("5Hur"),S=n("D5nY"),E=S.resetSourceDefaulter,C="\0_ec_inner",_=d.extend({init:function(B,j,W,z){W=W||{},this.option=null,this._theme=new d(W),this._optionManager=z},setOption:function(B,j){o(!(C in B),"please use chart.getOption()"),this._optionManager.setOption(B,j),this.resetOption(null)},resetOption:function(B){var j=!1,W=this._optionManager;if(!B||B==="recreate"){var z=W.mountOption(B==="recreate");!this.option||B==="recreate"?O.call(this,z):(this.restoreData(),this.mergeOption(z)),j=!0}if((B==="timeline"||B==="media")&&this.restoreData(),!B||B==="recreate"||B==="timeline"){var V=W.getTimelineOption(this);V&&(this.mergeOption(V),j=!0)}if(!B||B==="recreate"||B==="media"){var Q=W.getMediaOption(this,this._api);Q.length&&A(Q,function(G){this.mergeOption(G,j=!0)},this)}return j},mergeOption:function(B){var j=this.option,W=this._componentsMap,z=[];E(this),A(B,function(Q,G){if(Q==null)return;g.hasClass(G)?G&&z.push(G):j[G]=j[G]==null?e(Q):l(j[G],Q,!0)}),g.topologicalTravel(z,g.getAllClassMainTypes(),V,this);function V(Q,G){var ee=c.normalizeToArray(B[Q]),ce=c.mappingToExists(W.get(Q),ee);c.makeIdAndName(ce),A(ce,function(le,Ie){var ke=le.option;a(ke)&&(le.keyInfo.mainType=Q,le.keyInfo.subType=R(Q,ke,le.exist))});var be=I(W,G);j[Q]=[],W.set(Q,[]),A(ce,function(le,Ie){var ke=le.exist,Re=le.option;if(o(a(Re)||ke,"Empty component definition"),!Re)ke.mergeOption({},this),ke.optionUpdated({},!1);else{var Qe=g.getClass(Q,le.keyInfo.subType,!0);if(ke&&ke.constructor===Qe)ke.name=le.keyInfo.name,ke.mergeOption(Re,this),ke.optionUpdated(Re,!1);else{var We=r({dependentModels:be,componentIndex:Ie},le.keyInfo);ke=new Qe(Re,this,this,We),r(ke,We),ke.init(Re,this,this,We),ke.optionUpdated(null,!0)}}W.get(Q)[Ie]=ke,j[Q][Ie]=ke.option},this),Q==="series"&&M(this,W.get("series"))}this._seriesIndicesMap=t(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var B=e(this.option);return A(B,function(j,W){if(g.hasClass(W)){for(var j=c.normalizeToArray(j),z=j.length-1;z>=0;z--)c.isIdInner(j[z])&&j.splice(z,1);B[W]=j}}),delete B[C],B},getTheme:function(){return this._theme},getComponent:function(B,j){var W=this._componentsMap.get(B);if(W)return W[j||0]},queryComponents:function(B){var j=B.mainType;if(!j)return[];var W=B.index,z=B.id,V=B.name,Q=this._componentsMap.get(j);if(!Q||!Q.length)return[];var G;if(W!=null)h(W)||(W=[W]),G=m(f(W,function(be){return Q[be]}),function(be){return!!be});else if(z!=null){var ee=h(z);G=m(Q,function(be){return ee&&u(z,be.id)>=0||!ee&&be.id===z})}else if(V!=null){var ce=h(V);G=m(Q,function(be){return ce&&u(V,be.name)>=0||!ce&&be.name===V})}else G=Q.slice();return F(G,B)},findComponents:function(B){var j=B.query,W=B.mainType,z=Q(j),V=z?this.queryComponents(z):this._componentsMap.get(W);return G(F(V,B));function Q(ee){var ce=W+"Index",be=W+"Id",le=W+"Name";return ee&&(ee[ce]!=null||ee[be]!=null||ee[le]!=null)?{mainType:W,index:ee[ce],id:ee[be],name:ee[le]}:null}function G(ee){return B.filter?m(ee,B.filter):ee}},eachComponent:function(B,j,W){var z=this._componentsMap;if(typeof B=="function")W=j,j=B,z.each(function(Q,G){A(Q,function(ee,ce){j.call(W,G,ee,ce)})});else if(i(B))A(z.get(B),j,W);else if(a(B)){var V=this.findComponents(B);A(V,j,W)}},getSeriesByName:function(B){var j=this._componentsMap.get("series");return m(j,function(W){return W.name===B})},getSeriesByIndex:function(B){return this._componentsMap.get("series")[B]},getSeriesByType:function(B){var j=this._componentsMap.get("series");return m(j,function(W){return W.subType===B})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(B,j){P(this),A(this._seriesIndices,function(W){var z=this._componentsMap.get("series")[W];B.call(j,z,W)},this)},eachRawSeries:function(B,j){A(this._componentsMap.get("series"),B,j)},eachSeriesByType:function(B,j,W){P(this),A(this._seriesIndices,function(z){var V=this._componentsMap.get("series")[z];V.subType===B&&j.call(W,V,z)},this)},eachRawSeriesByType:function(B,j,W){return A(this.getSeriesByType(B),j,W)},isSeriesFiltered:function(B){return P(this),this._seriesIndicesMap.get(B.componentIndex)==null},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(B,j){P(this);var W=m(this._componentsMap.get("series"),B,j);M(this,W)},restoreData:function(B){var j=this._componentsMap;M(this,j.get("series"));var W=[];j.each(function(z,V){W.push(V)}),g.topologicalTravel(W,g.getAllClassMainTypes(),function(z,V){A(j.get(z),function(Q){(z!=="series"||!T(Q,B))&&Q.restoreData()})})}});function T(B,j){if(j){var W=j.seiresIndex,z=j.seriesId,V=j.seriesName;return W!=null&&B.componentIndex!==W||z!=null&&B.id!==z||V!=null&&B.name!==V}}function w(B,j){var W=B.color&&!B.colorLayer;A(j,function(z,V){if(V==="colorLayer"&&W)return;g.hasClass(V)||(typeof z=="object"?B[V]=B[V]?l(B[V],z,!1):e(z):B[V]==null&&(B[V]=z))})}function O(B){B=B,this.option={},this.option[C]=1,this._componentsMap=t({series:[]}),this._seriesIndices,this._seriesIndicesMap,w(B,this._theme.option),l(B,v,!1),this.mergeOption(B)}function I(B,j){h(j)||(j=j?[j]:[]);var W={};return A(j,function(z){W[z]=(B.get(z)||[]).slice()}),W}function R(B,j,W){var z=j.type?j.type:W?W.subType:g.determineSubType(B,j);return z}function M(B,j){B._seriesIndicesMap=t(B._seriesIndices=f(j,function(W){return W.componentIndex})||[])}function F(B,j){return j.hasOwnProperty("subType")?m(B,function(W){return W.subType===j.subType}):B}function P(B){}s(_,b);var X=_;k.exports=X},fmRc:function(k,D,n){var y=n("Xi7e"),p=n("77Zs"),x=n("L8xA"),A=n("gCq4"),m=n("VaNO"),f=n("0Cz8");function h(u){var a=this.__data__=new y(u);this.size=a.size}h.prototype.clear=p,h.prototype.delete=x,h.prototype.get=A,h.prototype.has=m,h.prototype.set=f,k.exports=h},ftKO:function(k,D){var n="__lodash_hash_undefined__";function y(p){return this.__data__.set(p,n),this}k.exports=y},fyUT:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("q1tI"),f=n.n(m),h=n("TSYQ"),u=n.n(h),a=n("Ff2n"),i=n("rePB"),t=n("1OyB"),o=n("vuIU"),e=n("Ji7U"),l=n("md7G"),r=n("foSv"),s=n("4IlW");function c(G,ee){var ce=Object.keys(G);if(Object.getOwnPropertySymbols){var be=Object.getOwnPropertySymbols(G);ee&&(be=be.filter(function(le){return Object.getOwnPropertyDescriptor(G,le).enumerable})),ce.push.apply(ce,be)}return ce}function d(G){for(var ee=1;ee<arguments.length;ee++){var ce=arguments[ee]!=null?arguments[ee]:{};ee%2?c(Object(ce),!0).forEach(function(be){Object(i.a)(G,be,ce[be])}):Object.getOwnPropertyDescriptors?Object.defineProperties(G,Object.getOwnPropertyDescriptors(ce)):c(Object(ce)).forEach(function(be){Object.defineProperty(G,be,Object.getOwnPropertyDescriptor(ce,be))})}return G}function g(G){var ee=v();return function(){var be=Object(r.a)(G),le;if(ee){var Ie=Object(r.a)(this).constructor;le=Reflect.construct(be,arguments,Ie)}else le=be.apply(this,arguments);return Object(l.a)(this,le)}}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(G){return!1}}function b(){}function S(G){G.preventDefault()}var E=function(ee){return ee.replace(/[^\w.-]+/g,"")},C=200,_=600,T=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,w=function(ee){return ee!=null},O=function(ee,ce){return ce===ee||typeof ce=="number"&&typeof ee=="number"&&isNaN(ce)&&isNaN(ee)},I=function(G){Object(e.a)(ce,G);var ee=g(ce);function ce(be){var le;Object(t.a)(this,ce),le=ee.call(this,be),le.onKeyDown=function(Re){var Qe=le.props,We=Qe.onKeyDown,ot=Qe.onPressEnter;if(Re.keyCode===s.a.UP){var Oe=le.getRatio(Re);le.up(Re,Oe,null),le.stop()}else if(Re.keyCode===s.a.DOWN){var oe=le.getRatio(Re);le.down(Re,oe,null),le.stop()}else Re.keyCode===s.a.ENTER&&ot&&ot(Re);if(le.recordCursorPosition(),le.lastKeyCode=Re.keyCode,We){for(var st=arguments.length,he=new Array(st>1?st-1:0),J=1;J<st;J++)he[J-1]=arguments[J];We.apply(void 0,[Re].concat(he))}},le.onKeyUp=function(Re){var Qe=le.props.onKeyUp;if(le.stop(),le.recordCursorPosition(),Qe){for(var We=arguments.length,ot=new Array(We>1?We-1:0),Oe=1;Oe<We;Oe++)ot[Oe-1]=arguments[Oe];Qe.apply(void 0,[Re].concat(ot))}},le.onChange=function(Re){var Qe=le.props.onChange;le.state.focused&&(le.inputting=!0),le.rawInput=le.props.parser(le.getValueFromEvent(Re)),le.setState({inputValue:le.rawInput}),Qe(le.toNumber(le.rawInput))},le.onMouseUp=function(){var Re=le.props.onMouseUp;le.recordCursorPosition(),Re&&Re.apply(void 0,arguments)},le.onFocus=function(){var Re;le.setState({focused:!0}),(Re=le.props).onFocus.apply(Re,arguments)},le.onBlur=function(){var Re=le.props.onBlur;le.inputting=!1,le.setState({focused:!1});var Qe=le.getCurrentValidValue(le.state.inputValue),We=le.setValue(Qe,b);if(Re){var ot=le.input.value,Oe=le.getInputDisplayValue({focus:!1,value:We});le.input.value=Oe&&Number(Oe),Re.apply(void 0,arguments),le.input.value=ot}},le.getRatio=function(Re){var Qe=1;return Re.metaKey||Re.ctrlKey?Qe=.1:Re.shiftKey&&(Qe=10),Qe},le.getFullNum=function(Re){return isNaN(Re)?Re:/e/i.test(String(Re))?Number(Re).toFixed(18).replace(/\.?0+$/,""):Re},le.getPrecision=function(Re){if(w(le.props.precision))return le.props.precision;var Qe=String(Re);if(Qe.indexOf("e-")>=0)return parseInt(Qe.slice(Qe.indexOf("e-")+2),10);var We=0;return Qe.indexOf(".")>=0&&(We=Qe.length-Qe.indexOf(".")-1),We},le.getInputDisplayValue=function(Re){var Qe=Re||le.state,We=Qe.focused,ot=Qe.inputValue,Oe=Qe.value,oe;We?oe=ot:oe=le.toPrecisionAsStep(Oe),oe==null&&(oe="");var st=le.formatWrapper(oe);return w(le.props.decimalSeparator)&&(st=st.toString().replace(".",le.props.decimalSeparator)),st},le.recordCursorPosition=function(){try{le.cursorStart=le.input.selectionStart,le.cursorEnd=le.input.selectionEnd,le.currentValue=le.input.value,le.cursorBefore=le.input.value.substring(0,le.cursorStart),le.cursorAfter=le.input.value.substring(le.cursorEnd)}catch(Re){}},le.restoreByAfter=function(Re){if(Re===void 0)return!1;var Qe=le.input.value,We=Qe.lastIndexOf(Re);if(We===-1)return!1;var ot=le.cursorBefore.length;return le.lastKeyCode===s.a.DELETE&&le.cursorBefore.charAt(ot-1)===Re[0]?(le.fixCaret(ot,ot),!0):We+Re.length===Qe.length?(le.fixCaret(We,We),!0):!1},le.partRestoreByAfter=function(Re){return Re===void 0?!1:Array.prototype.some.call(Re,function(Qe,We){var ot=Re.substring(We);return le.restoreByAfter(ot)})},le.isNotCompleteNumber=function(Re){return isNaN(Re)||Re===""||Re===null||Re&&Re.toString().indexOf(".")===Re.toString().length-1},le.stop=function(){le.autoStepTimer&&clearTimeout(le.autoStepTimer)},le.down=function(Re,Qe,We){le.pressingUpOrDown=!0,le.step("down",Re,Qe,We)},le.up=function(Re,Qe,We){le.pressingUpOrDown=!0,le.step("up",Re,Qe,We)},le.saveInput=function(Re){le.input=Re};var Ie=be.value;Ie===void 0&&(Ie=be.defaultValue),le.state={focused:be.autoFocus};var ke=le.getValidValue(le.toNumber(Ie));return le.state=d(d({},le.state),{},{inputValue:le.toPrecisionAsStep(ke),value:ke}),le}return Object(o.a)(ce,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(le){var Ie=this.props,ke=Ie.value,Re=Ie.onChange,Qe=Ie.max,We=Ie.min,ot=this.state.focused;if(le){if(!O(le.value,ke)||!O(le.max,Qe)||!O(le.min,We)){var Oe=ot?ke:this.getValidValue(ke),oe;this.pressingUpOrDown?oe=Oe:this.inputting?oe=this.rawInput:oe=this.toPrecisionAsStep(Oe),this.setState({value:Oe,inputValue:oe})}var st="value"in this.props?ke:this.state.value;"max"in this.props&&le.max!==Qe&&typeof st=="number"&&st>Qe&&Re&&Re(Qe),"min"in this.props&&le.min!==We&&typeof st=="number"&&st<We&&Re&&Re(We)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var he=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===s.a.BACKSPACE?he=this.cursorStart-1:this.lastKeyCode===s.a.DELETE&&(he=this.cursorStart):he=this.input.value.length,this.fixCaret(he,he)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case s.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case s.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(J){}if(this.lastKeyCode=null,!this.pressingUpOrDown)return;this.props.focusOnUpDown&&this.state.focused&&(document.activeElement!==this.input&&this.focus())}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"getCurrentValidValue",value:function(le){var Ie=le;return Ie===""?Ie="":this.isNotCompleteNumber(parseFloat(Ie))?Ie=this.state.value:Ie=this.getValidValue(Ie),this.toNumber(Ie)}},{key:"getValueFromEvent",value:function(le){var Ie=le.target.value.trim().replace(/。/g,".");return w(this.props.decimalSeparator)&&(Ie=Ie.replace(this.props.decimalSeparator,".")),Ie}},{key:"getValidValue",value:function(le){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,Re=parseFloat(le);return isNaN(Re)?le:(Re<Ie&&(Re=Ie),Re>ke&&(Re=ke),Re)}},{key:"setValue",value:function(le,Ie){var ke=this.props.precision,Re=this.isNotCompleteNumber(parseFloat(le))?null:parseFloat(le),Qe=this.state.value,We=Qe===void 0?null:Qe,ot=this.state.inputValue,Oe=ot===void 0?null:ot,oe=typeof Re=="number"?Re.toFixed(ke):"".concat(Re),st=Re!==We||oe!=="".concat(Oe);return"value"in this.props?(Oe=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:Oe},Ie)):this.setState({value:Re,inputValue:this.toPrecisionAsStep(le)},Ie),st&&this.props.onChange(Re),Re}},{key:"getMaxPrecision",value:function(le){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ke=this.props,Re=ke.precision,Qe=ke.step;if(w(Re))return Re;var We=this.getPrecision(Ie),ot=this.getPrecision(Qe),Oe=this.getPrecision(le);return le?Math.max(Oe,We+ot):We+ot}},{key:"getPrecisionFactor",value:function(le){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ke=this.getMaxPrecision(le,Ie);return Math.pow(10,ke)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(le){return this.props.formatter?this.props.formatter(le):le}},{key:"toPrecisionAsStep",value:function(le){if(this.isNotCompleteNumber(le)||le==="")return le;var Ie=Math.abs(this.getMaxPrecision(le));return isNaN(Ie)?le.toString():Number(le).toFixed(Ie)}},{key:"toNumber",value:function(le){var Ie=this.props.precision,ke=this.state.focused,Re=le&&le.length>16&&ke;return this.isNotCompleteNumber(le)||Re?le:w(Ie)?Math.round(le*Math.pow(10,Ie))/Math.pow(10,Ie):Number(le)}},{key:"upStep",value:function(le,Ie){var ke=this.props.step,Re=this.getPrecisionFactor(le,Ie),Qe=Math.abs(this.getMaxPrecision(le,Ie)),We=((Re*le+Re*ke*Ie)/Re).toFixed(Qe);return this.toNumber(We)}},{key:"downStep",value:function(le,Ie){var ke=this.props.step,Re=this.getPrecisionFactor(le,Ie),Qe=Math.abs(this.getMaxPrecision(le,Ie)),We=((Re*le-Re*ke*Ie)/Re).toFixed(Qe);return this.toNumber(We)}},{key:"step",value:function(le,Ie){var ke=this,Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Qe=arguments.length>3?arguments[3]:void 0;this.stop(),Ie&&(Ie.persist(),Ie.preventDefault());var We=this.props;if(We.disabled)return;var ot=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(ot))return;var Oe=this["".concat(le,"Step")](ot,Re),oe=Oe>We.max||Oe<We.min;if(Oe>We.max?Oe=We.max:Oe<We.min&&(Oe=We.min),this.setValue(Oe,null),this.setState({focused:!0},function(){ke.pressingUpOrDown=!1}),oe)return;this.autoStepTimer=setTimeout(function(){ke[le](Ie,Re,!0)},Qe?C:_)}},{key:"fixCaret",value:function(le,Ie){if(le===void 0||Ie===void 0||!this.input||!this.input.value)return;try{var ke=this.input.selectionStart,Re=this.input.selectionEnd;(le!==ke||Ie!==Re)&&this.input.setSelectionRange(le,Ie)}catch(Qe){}}},{key:"render",value:function(){var le,Ie=this.props,ke=Ie.prefixCls,Re=Ie.disabled,Qe=Ie.readOnly,We=Ie.useTouch,ot=Ie.autoComplete,Oe=Ie.upHandler,oe=Ie.downHandler,st=Ie.className,he=Ie.max,J=Ie.min,Y=Ie.style,$=Ie.title,fe=Ie.onMouseEnter,we=Ie.onMouseLeave,Ne=Ie.onMouseOver,Ee=Ie.onMouseOut,de=Ie.required,me=Ie.onClick,Le=Ie.tabIndex,tt=Ie.type,At=Ie.placeholder,ht=Ie.id,Ke=Ie.inputMode,Jt=Ie.pattern,ct=Ie.step,Gt=Ie.maxLength,dr=Ie.autoFocus,zt=Ie.name,kt=Ie.onPaste,Vt=Ie.onInput,Xe=Object(a.a)(Ie,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler","className","max","min","style","title","onMouseEnter","onMouseLeave","onMouseOver","onMouseOut","required","onClick","tabIndex","type","placeholder","id","inputMode","pattern","step","maxLength","autoFocus","name","onPaste","onInput"]),pe=this.state,te=pe.value,$e=pe.focused,He=u()(ke,(le={},Object(i.a)(le,st,!!st),Object(i.a)(le,"".concat(ke,"-disabled"),Re),Object(i.a)(le,"".concat(ke,"-focused"),$e),le)),ae={};Object.keys(Xe).forEach(function(xt){(xt.substr(0,5)==="data-"||xt.substr(0,5)==="aria-"||xt==="role")&&(ae[xt]=Xe[xt])});var ft=!Qe&&!Re,Mt=this.getInputDisplayValue(null),mt=(te||te===0)&&(isNaN(te)||Number(te)>=he),or=(te||te===0)&&(isNaN(te)||Number(te)<=J),vr=mt||Re||Qe,fn=or||Re||Qe,sr=u()("".concat(ke,"-handler"),"".concat(ke,"-handler-up"),Object(i.a)({},"".concat(ke,"-handler-up-disabled"),vr)),Ir=u()("".concat(ke,"-handler"),"".concat(ke,"-handler-down"),Object(i.a)({},"".concat(ke,"-handler-down-disabled"),fn)),lr=We?{onTouchStart:vr?b:this.up,onTouchEnd:this.stop}:{onMouseDown:vr?b:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Wt=We?{onTouchStart:fn?b:this.down,onTouchEnd:this.stop}:{onMouseDown:fn?b:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return f.a.createElement("div",{className:He,style:Y,title:$,onMouseEnter:fe,onMouseLeave:we,onMouseOver:Ne,onMouseOut:Ee,onFocus:function(){return null},onBlur:function(){return null}},f.a.createElement("div",{className:"".concat(ke,"-handler-wrap")},f.a.createElement("span",Object.assign({unselectable:"on"},lr,{role:"button","aria-label":"Increase Value","aria-disabled":vr,className:sr}),Oe||f.a.createElement("span",{unselectable:"on",className:"".concat(ke,"-handler-up-inner"),onClick:S})),f.a.createElement("span",Object.assign({unselectable:"on"},Wt,{role:"button","aria-label":"Decrease Value","aria-disabled":fn,className:Ir}),oe||f.a.createElement("span",{unselectable:"on",className:"".concat(ke,"-handler-down-inner"),onClick:S}))),f.a.createElement("div",{className:"".concat(ke,"-input-wrap")},f.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":J,"aria-valuemax":he,"aria-valuenow":te,required:de,type:tt,placeholder:At,onPaste:kt,onClick:me,onMouseUp:this.onMouseUp,className:"".concat(ke,"-input"),tabIndex:Le,autoComplete:ot,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:ft?this.onKeyDown:b,onKeyUp:ft?this.onKeyUp:b,autoFocus:dr,maxLength:Gt,readOnly:Qe,disabled:Re,max:he,min:J,step:ct,name:zt,title:$,id:ht,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Mt),pattern:Jt,inputMode:Ke,onInput:Vt},ae))))}}]),ce}(f.a.Component);I.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:T,min:-T,step:1,style:{},onChange:b,onKeyDown:b,onPressEnter:b,onFocus:b,onBlur:b,parser:E,required:!1,autoComplete:"off"};var R=I,M=R,F=n("QDgn"),P=n.n(F),X=n("Ved0"),B=n.n(X),j=n("H84U"),W=n("3Nzz"),z=function(G,ee){var ce={};for(var be in G)Object.prototype.hasOwnProperty.call(G,be)&&ee.indexOf(be)<0&&(ce[be]=G[be]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,be=Object.getOwnPropertySymbols(G);le<be.length;le++)ee.indexOf(be[le])<0&&Object.prototype.propertyIsEnumerable.call(G,be[le])&&(ce[be[le]]=G[be[le]]);return ce},V=m.forwardRef(function(G,ee){var ce=function(le){var Ie=le.getPrefixCls,ke=le.direction,Re=G.className,Qe=G.size,We=G.prefixCls,ot=G.readOnly,Oe=z(G,["className","size","prefixCls","readOnly"]),oe=Ie("input-number",We),st=m.createElement(P.a,{className:"".concat(oe,"-handler-up-inner")}),he=m.createElement(B.a,{className:"".concat(oe,"-handler-down-inner")});return m.createElement(W.b.Consumer,null,function(J){var Y,$=Qe||J,fe=u()((Y={},A()(Y,"".concat(oe,"-lg"),$==="large"),A()(Y,"".concat(oe,"-sm"),$==="small"),A()(Y,"".concat(oe,"-rtl"),ke==="rtl"),A()(Y,"".concat(oe,"-readonly"),ot),Y),Re);return m.createElement(M,p()({ref:ee,className:fe,upHandler:st,downHandler:he,prefixCls:oe,readOnly:ot},Oe))})};return m.createElement(j.a,null,ce)});V.defaultProps={step:1};var Q=D.a=V},g0SD:function(k,D,n){var y=n("bYtY"),p=n("9wZj"),x=n("OELB"),A=n("YXkt"),m=n("kj2x"),f=n("iPDy");function h(i,t,o){var e=t.coordinateSystem;i.each(function(l){var r=i.getItemModel(l),s,c=x.parsePercent(r.get("x"),o.getWidth()),d=x.parsePercent(r.get("y"),o.getHeight());if(!isNaN(c)&&!isNaN(d))s=[c,d];else if(t.getMarkerPosition)s=t.getMarkerPosition(i.getValues(i.dimensions,l));else if(e){var g=i.get(e.dimensions[0],l),v=i.get(e.dimensions[1],l);s=e.dataToPoint([g,v])}isNaN(c)||(s[0]=c),isNaN(d)||(s[1]=d),i.setItemLayout(l,s)})}var u=f.extend({type:"markPoint",updateTransform:function(i,t,o){t.eachSeries(function(e){var l=e.markPointModel;l&&(h(l.getData(),e,o),this.markerGroupMap.get(e.id).updateLayout(l))},this)},renderSeries:function(i,t,o,e){var l=i.coordinateSystem,r=i.id,s=i.getData(),c=this.markerGroupMap,d=c.get(r)||c.set(r,new p),g=a(l,i,t);t.setData(g),h(t.getData(),i,e),g.each(function(v){var b=g.getItemModel(v),S=b.getShallow("symbol"),E=b.getShallow("symbolSize"),C=y.isFunction(S),_=y.isFunction(E);if(C||_){var T=t.getRawValue(v),w=t.getDataParams(v);C&&(S=S(T,w)),_&&(E=E(T,w))}g.setItemVisual(v,{symbol:S,symbolSize:E,color:b.get("itemStyle.color")||s.getVisual("color")})}),d.updateData(g),this.group.add(d.group),g.eachItemGraphicEl(function(v){v.traverse(function(b){b.dataModel=t})}),d.__keep=!0,d.group.silent=t.get("silent")||i.get("silent")}});function a(i,t,o){var e;i?e=y.map(i&&i.dimensions,function(s){var c=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return y.defaults({name:s},c)}):e=[{name:"value",type:"float"}];var l=new A(e,o),r=y.map(o.get("data"),y.curry(m.dataTransform,t));return i&&(r=y.filter(r,y.curry(m.dataFilter,i))),l.initData(r,null,i?m.dimValueGetter:function(s){return s.value}),l}k.exports=u},g7p0:function(k,D,n){var y=n("bYtY"),p=n("bLfw"),x=n("+TT/"),A=x.getLayoutParams,m=x.sizeCalculable,f=x.mergeLayoutParam,h=p.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(i,t,o,e){var l=A(i);h.superApply(this,"init",arguments),u(i,l)},mergeOption:function(i,t){h.superApply(this,"mergeOption",arguments),u(this.option,i)}});function u(i,t){var o=i.cellSize;y.isArray(o)?o.length===1&&(o[1]=o[0]):o=i.cellSize=[o,o];var e=y.map([0,1],function(l){return m(t,l)&&(o[l]="auto"),o[l]!=null&&o[l]!=="auto"});f(i,t,{type:"box",ignoreSize:e})}var a=h;k.exports=a},g9YV:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("pED+"),A=n.n(x),m=n("+L6B"),f=n("R9oj"),h=n("7Kak"),u=n("sRBo"),a=n("qVdP"),i=n("T2oS"),t=n("DjyN"),o=n("5Dmo")},gCq4:function(k,D){function n(y){return this.__data__.get(y)}k.exports=n},gIYZ:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={Backspace:"Backspace",AltLeft:"Alt",AltRight:"Alt",CapsLock:"CapsLock",ContextMenu:"ContextMenu",ControlLeft:"Control",ControlRight:"Control",Enter:"Enter",MetaLeft:"Meta",MetaRight:"Meta",ShiftLeft:"Shift",ShiftRight:"Shift",Tab:"Tab",Delete:"Delete",End:"End",Help:"Help",Home:"Home",Insert:"Insert",PageDown:"PageDown",PageUp:"PageUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp",NumLock:"NumLock",NumpadBackspace:"Backspace",NumpadClear:"Clear",Escape:"Escape",F1:"F1",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",F10:"F10",F11:"F11",F12:"F12",F13:"F13",F14:"F14",F15:"F15",F16:"F16",F17:"F17",F18:"F18",F19:"F19",F20:"F20",F21:"F21",F22:"F22",F23:"F23",F24:"F24",F25:"F25",F26:"F26",F27:"F27",F28:"F28",F29:"F29",F30:"F30",F31:"F31",F32:"F32",F33:"F33",F34:"F34",F35:"F35",PrintScreen:"PrintScreen",ScrollLock:"ScrollLock",Pause:"Pause",BrowserBack:"BrowserBack",BrowserFavorites:"BrowserFavorites",BrowserForward:"BrowserForward",BrowserHome:"BrowserHome",BrowserRefresh:"BrowserRefresh",BrowserSearch:"BrowserSearch",BrowserStop:"BrowserStop",Eject:"Eject",LaunchApp1:"LaunchMyComputer",LaunchApp2:"LaunchCalendar",LaunchMail:"LaunchMail",MediaPlayPause:"MediaPlay",MediaStop:"MediaStop",MediaTrackNext:"MediaTrackNext",MediaTrackPrevious:"MediaTrackPrevious",Power:"Power",Sleep:"Sleep",AudioVolumeDown:"AudioVolumeDown",AudioVolumeMute:"AudioVolumeMute",AudioVolumeUp:"AudioVolumeUp",WakeUp:"WakeUp"};D.default=y},gKaM:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};D.default=y},gPAo:function(k,D){function n(A){return A}function y(A,m,f,h,u){this._old=A,this._new=m,this._oldKeyGetter=f||n,this._newKeyGetter=h||n,this.context=u}y.prototype={constructor:y,add:function(A){return this._add=A,this},update:function(A){return this._update=A,this},remove:function(A){return this._remove=A,this},execute:function(){var A=this._old,m=this._new,f={},h={},u=[],a=[],i;for(p(A,f,u,"_oldKeyGetter",this),p(m,h,a,"_newKeyGetter",this),i=0;i<A.length;i++){var t=u[i],o=h[t];if(o!=null){var e=o.length;e?(e===1&&(h[t]=null),o=o.shift()):h[t]=null,this._update&&this._update(o,i)}else this._remove&&this._remove(i)}for(var i=0;i<a.length;i++){var t=a[i];if(h.hasOwnProperty(t)){var o=h[t];if(o==null)continue;if(!o.length)this._add&&this._add(o);else for(var l=0,e=o.length;l<e;l++)this._add&&this._add(o[l])}}}};function p(A,m,f,h,u){for(var a=0;a<A.length;a++){var i="_ec_"+u[h](A[a],a),t=m[i];t==null?(f.push(i),m[i]=a):(t.length||(m[i]=t=[t]),t.push(a))}}var x=y;k.exports=x},gRFJ:function(k,D,n){k.exports=[n("rdUC"),n("ynwM"),n("RELg"),n("DlR+"),n("CrYA"),n("PD8m")]},gaXo:function(module,exports){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(k){return k<10?"0"+k:k}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(k){return rx_escapable.lastIndex=0,rx_escapable.test(k)?'"'+k.replace(rx_escapable,function(D){var n=meta[D];return typeof n=="string"?n:"\\u"+("0000"+D.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+k+'"'}function str(k,D){var n,y,p,x,A=gap,m,f=D[k];f&&typeof f=="object"&&typeof f.toJSON=="function"&&(f=f.toJSON(k)),typeof rep=="function"&&(f=rep.call(D,k,f));switch(typeof f){case"string":return quote(f);case"number":return isFinite(f)?String(f):"null";case"boolean":case"null":return String(f);case"object":if(!f)return"null";if(gap+=indent,m=[],Object.prototype.toString.apply(f)==="[object Array]"){for(x=f.length,n=0;n<x;n+=1)m[n]=str(n,f)||"null";return p=m.length===0?"[]":gap?`[
|
|
|
`+gap+m.join(`,
|
|
|
`+gap)+`
|
|
|
`+A+"]":"["+m.join(",")+"]",gap=A,p}if(rep&&typeof rep=="object")for(x=rep.length,n=0;n<x;n+=1)typeof rep[n]=="string"&&(y=rep[n],p=str(y,f),p&&m.push(quote(y)+(gap?": ":":")+p));else for(y in f)Object.prototype.hasOwnProperty.call(f,y)&&(p=str(y,f),p&&m.push(quote(y)+(gap?": ":":")+p));return p=m.length===0?"{}":gap?`{
|
|
|
`+gap+m.join(`,
|
|
|
`+gap)+`
|
|
|
`+A+"}":"{"+m.join(",")+"}",gap=A,p}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(k,D,n){var y;if(gap="",indent="",typeof n=="number")for(y=0;y<n;y+=1)indent+=" ";else typeof n=="string"&&(indent=n);if(rep=D,D&&typeof D!="function"&&(typeof D!="object"||typeof D.length!="number"))throw new Error("JSON.stringify");return str("",{"":k})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(k,D){var n,y,p=k[D];if(p&&typeof p=="object")for(n in p)Object.prototype.hasOwnProperty.call(p,n)&&(y=walk(p,n),y!==void 0?p[n]=y:delete p[n]);return reviver.call(k,D,p)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(k){return"\\u"+("0000"+k.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},gawk:function(k,D,n){var y=n("+TT/"),p=n("bYtY"),x=n("4NO4"),A=x.groupData;function m(O,I,R){O.eachSeriesByType("sankey",function(M){var F=M.get("nodeWidth"),P=M.get("nodeGap"),X=f(M,I);M.layoutInfo=X;var B=X.width,j=X.height,W=M.getGraph(),z=W.nodes,V=W.edges;u(z);var Q=p.filter(z,function(be){return be.getLayout().value===0}),G=Q.length!==0?0:M.get("layoutIterations"),ee=M.get("orient"),ce=M.get("nodeAlign");h(z,V,F,P,B,j,G,ee,ce)})}function f(O,I){return y.getLayoutRect(O.getBoxLayoutParams(),{width:I.getWidth(),height:I.getHeight()})}function h(O,I,R,M,F,P,X,B,j){a(O,I,R,F,P,B,j),l(O,I,P,F,M,X,B),w(O,B)}function u(O){p.each(O,function(I){var R=_(I.outEdges,C),M=_(I.inEdges,C),F=I.getValue()||0,P=Math.max(R,M,F);I.setLayout({value:P},!0)})}function a(O,I,R,M,F,P,X){for(var B=[],j=[],W=[],z=[],V=0,Q=0,G=0;G<I.length;G++)B[G]=1;for(G=0;G<O.length;G++)j[G]=O[G].inEdges.length,j[G]===0&&W.push(O[G]);for(var ee=-1;W.length;){for(var ce=0;ce<W.length;ce++){var be=W[ce],le=be.hostGraph.data.getRawDataItem(be.dataIndex),Ie=le.depth!=null&&le.depth>=0;Ie&&le.depth>ee&&(ee=le.depth),be.setLayout({depth:Ie?le.depth:V},!0),P==="vertical"?be.setLayout({dy:R},!0):be.setLayout({dx:R},!0);for(var ke=0;ke<be.outEdges.length;ke++){var Re=be.outEdges[ke],Qe=I.indexOf(Re);B[Qe]=0;var We=Re.node2,ot=O.indexOf(We);--j[ot]===0&&z.indexOf(We)<0&&z.push(We)}}++V,W=z,z=[]}for(G=0;G<B.length;G++)if(B[G]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var Oe=ee>V-1?ee:V-1;X&&X!=="left"&&t(O,X,P,Oe);var Q=P==="vertical"?(F-R)/Oe:(M-R)/Oe;e(O,Q,P)}function i(O){var I=O.hostGraph.data.getRawDataItem(O.dataIndex);return I.depth!=null&&I.depth>=0}function t(O,I,R,M){if(I==="right"){for(var F=[],P=O,X=0;P.length;){for(var B=0;B<P.length;B++){var j=P[B];j.setLayout({skNodeHeight:X},!0);for(var W=0;W<j.inEdges.length;W++){var z=j.inEdges[W];F.indexOf(z.node1)<0&&F.push(z.node1)}}P=F,F=[],++X}p.each(O,function(V){i(V)||V.setLayout({depth:Math.max(0,M-V.getLayout().skNodeHeight)},!0)})}else I==="justify"&&o(O,M)}function o(O,I){p.each(O,function(R){!i(R)&&!R.outEdges.length&&R.setLayout({depth:I},!0)})}function e(O,I,R){p.each(O,function(M){var F=M.getLayout().depth*I;R==="vertical"?M.setLayout({y:F},!0):M.setLayout({x:F},!0)})}function l(O,I,R,M,F,P,X){var B=r(O,X);s(B,I,R,M,F,X),c(B,F,R,M,X);for(var j=1;P>0;P--)j*=.99,d(B,j,X),c(B,F,R,M,X),T(B,j,X),c(B,F,R,M,X)}function r(O,I){var R=[],M=I==="vertical"?"y":"x",F=A(O,function(P){return P.getLayout()[M]});return F.keys.sort(function(P,X){return P-X}),p.each(F.keys,function(P){R.push(F.buckets.get(P))}),R}function s(O,I,R,M,F,P){var X=Infinity;p.each(O,function(B){var j=B.length,W=0;p.each(B,function(V){W+=V.getLayout().value});var z=P==="vertical"?(M-(j-1)*F)/W:(R-(j-1)*F)/W;z<X&&(X=z)}),p.each(O,function(B){p.each(B,function(j,W){var z=j.getLayout().value*X;P==="vertical"?(j.setLayout({x:W},!0),j.setLayout({dx:z},!0)):(j.setLayout({y:W},!0),j.setLayout({dy:z},!0))})}),p.each(I,function(B){var j=+B.getValue()*X;B.setLayout({dy:j},!0)})}function c(O,I,R,M,F){var P=F==="vertical"?"x":"y";p.each(O,function(X){X.sort(function(ce,be){return ce.getLayout()[P]-be.getLayout()[P]});for(var B,j,W,z=0,V=X.length,Q=F==="vertical"?"dx":"dy",G=0;G<V;G++)j=X[G],W=z-j.getLayout()[P],W>0&&(B=j.getLayout()[P]+W,F==="vertical"?j.setLayout({x:B},!0):j.setLayout({y:B},!0)),z=j.getLayout()[P]+j.getLayout()[Q]+I;var ee=F==="vertical"?M:R;if(W=z-I-ee,W>0)for(B=j.getLayout()[P]-W,F==="vertical"?j.setLayout({x:B},!0):j.setLayout({y:B},!0),z=B,G=V-2;G>=0;--G)j=X[G],W=j.getLayout()[P]+j.getLayout()[Q]+I-z,W>0&&(B=j.getLayout()[P]-W,F==="vertical"?j.setLayout({x:B},!0):j.setLayout({y:B},!0)),z=j.getLayout()[P]})}function d(O,I,R){p.each(O.slice().reverse(),function(M){p.each(M,function(F){if(F.outEdges.length){var P=_(F.outEdges,g,R)/_(F.outEdges,C,R);if(isNaN(P)){var X=F.outEdges.length;P=X?_(F.outEdges,v,R)/X:0}if(R==="vertical"){var B=F.getLayout().x+(P-E(F,R))*I;F.setLayout({x:B},!0)}else{var j=F.getLayout().y+(P-E(F,R))*I;F.setLayout({y:j},!0)}}})})}function g(O,I){return E(O.node2,I)*O.getValue()}function v(O,I){return E(O.node2,I)}function b(O,I){return E(O.node1,I)*O.getValue()}function S(O,I){return E(O.node1,I)}function E(O,I){return I==="vertical"?O.getLayout().x+O.getLayout().dx/2:O.getLayout().y+O.getLayout().dy/2}function C(O){return O.getValue()}function _(O,I,R){for(var M=0,F=O.length,P=-1;++P<F;){var X=+I.call(O,O[P],R);isNaN(X)||(M+=X)}return M}function T(O,I,R){p.each(O,function(M){p.each(M,function(F){if(F.inEdges.length){var P=_(F.inEdges,b,R)/_(F.inEdges,C,R);if(isNaN(P)){var X=F.inEdges.length;P=X?_(F.inEdges,S,R)/X:0}if(R==="vertical"){var B=F.getLayout().x+(P-E(F,R))*I;F.setLayout({x:B},!0)}else{var j=F.getLayout().y+(P-E(F,R))*I;F.setLayout({y:j},!0)}}})})}function w(O,I){var R=I==="vertical"?"x":"y";p.each(O,function(M){M.outEdges.sort(function(F,P){return F.node2.getLayout()[R]-P.node2.getLayout()[R]}),M.inEdges.sort(function(F,P){return F.node1.getLayout()[R]-P.node1.getLayout()[R]})}),p.each(O,function(M){var F=0,P=0;p.each(M.outEdges,function(X){X.setLayout({sy:F},!0),F+=X.getLayout().dy}),p.each(M.inEdges,function(X){X.setLayout({ty:P},!0),P+=X.getLayout().dy})})}k.exports=m},"gb/T":function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("OLod"))})(this,function(y){return y.mode.ECB=function(){var p=y.lib.BlockCipherMode.extend();return p.Encryptor=p.extend({processBlock:function(A,m){this._cipher.encryptBlock(A,m)}}),p.Decryptor=p.extend({processBlock:function(A,m){this._cipher.decryptBlock(A,m)}}),p}(),y.mode.ECB})},"giR+":function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("QbM5"),A=n.n(x)},gut8:function(k,D){var n={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},y=9;D.ContextCachedBy=n,D.WILL_BE_RESTORED=y},gvm7:function(k,D,n){var y=n("bYtY"),p=n("dqUG");function x(m){this._zr=m.getZr(),this._show=!1,this._hideTimeout}x.prototype={constructor:x,_enterable:!0,update:function(){},show:function(m){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(m,f,h){this.el&&this._zr.remove(this.el);for(var u={},a=m,i="{marker",t="|}",o=a.indexOf(i);o>=0;){var e=a.indexOf(t),l=a.substr(o+i.length,e-o-i.length);l.indexOf("sub")>-1?u["marker"+l]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:f[l],textOffset:[3,0]}:u["marker"+l]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:f[l]},a=a.substr(e+1),o=a.indexOf("{marker")}this.el=new p({style:{rich:u,text:m,textLineHeight:20,textBackgroundColor:h.get("backgroundColor"),textBorderRadius:h.get("borderRadius"),textFill:h.get("textStyle.color"),textPadding:h.get("padding")},z:h.get("z")}),this._zr.add(this.el);var r=this;this.el.on("mouseover",function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0}),this.el.on("mouseout",function(){r._enterable&&(r._show&&r.hideLater(r._hideDelay)),r._inContent=!1})},setEnterable:function(m){this._enterable=m},getSize:function(){var m=this.el.getBoundingRect();return[m.width,m.height]},moveTo:function(m,f){this.el&&this.el.attr("position",[m,f])},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(m){this._show&&!(this._inContent&&this._enterable)&&(m?(this._hideDelay=m,this._show=!1,this._hideTimeout=setTimeout(y.bind(this.hide,this),m)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var m=this.getSize();return{width:m[0],height:m[1]}}};var A=x;k.exports=A},gwTy:function(k,D,n){},h54F:function(k,D,n){var y=n("ProS"),p=n("YXkt"),x=n("bYtY"),A=n("4NO4"),m=A.defaultEmphasis,f=n("Qxkt"),h=n("7aKB"),u=h.encodeHTML,a=n("I3/A"),i=n("xKMd"),t=y.extendSeriesModel({type:"series.graph",init:function(e){t.superApply(this,"init",arguments);var l=this;function r(){return l._categoriesData}this.legendVisualProvider=new i(r,r),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeOption:function(e){t.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(e){t.superApply(this,"mergeDefaultAndTheme",arguments),m(e,["edgeLabel"],["show"])},getInitialData:function(e,l){var r=e.edges||e.links||[],s=e.data||e.nodes||[],c=this;if(s&&r)return a(s,r,this,!0,d).data;function d(g,v){g.wrapMethod("getItemModel",function(T){var w=c._categoriesModels,O=T.getShallow("category"),I=w[O];return I&&(I.parentModel=T.parentModel,T.parentModel=I),T});var b=c.getModel("edgeLabel"),S=new f({label:b.option},b.parentModel,l),E=c.getModel("emphasis.edgeLabel"),C=new f({emphasis:{label:E.option}},E.parentModel,l);v.wrapMethod("getItemModel",function(T){return T.customizeGetParent(_),T});function _(T){return T=this.parsePath(T),T&&T[0]==="label"?S:T&&T[0]==="emphasis"&&T[1]==="label"?C:this.parentModel}}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,l,r){if(r==="edge"){var s=this.getData(),c=this.getDataParams(e,r),d=s.graph.getEdgeByIndex(e),g=s.getName(d.node1.dataIndex),v=s.getName(d.node2.dataIndex),b=[];return g!=null&&b.push(g),v!=null&&b.push(v),b=u(b.join(" > ")),c.value&&(b+=" : "+u(c.value)),b}else return t.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=x.map(this.option.categories||[],function(r){return r.value!=null?r:x.extend({value:0},r)}),l=new p(["value"],this);l.initData(e),this._categoriesData=l,this._categoriesModels=l.mapArray(function(r){return l.getItemModel(r,!0)})},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},isAnimationEnabled:function(){return t.superCall(this,"isAnimationEnabled")&&!(this.get("layout")==="force"&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}}),o=t;k.exports=o},h7HQ:function(k,D,n){var y=n("y+Vt"),p=n("T6xi"),x=y.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(m,f){p.buildPath(m,f,!0)}});k.exports=x},h7i7:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("SRve")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="PlusOutlined";var i=A.forwardRef(a);D.default=i},h8O9:function(k,D,n){var y=n("bYtY"),p=y.map,x=n("zM3Q"),A=n("7hqr"),m=A.isDimensionStacked;function f(h){return{seriesType:h,plan:x(),reset:function(u){var a=u.getData(),i=u.coordinateSystem,t=u.pipelineContext,o=t.large;if(!i)return;var e=p(i.dimensions,function(c){return a.mapDimension(c)}).slice(0,2),l=e.length,r=a.getCalculationInfo("stackResultDimension");m(a,e[0])&&(e[0]=r),m(a,e[1])&&(e[1]=r);function s(c,d){for(var g=c.end-c.start,v=o&&new Float32Array(g*l),b=c.start,S=0,E=[],C=[];b<c.end;b++){var _;if(l===1){var T=d.get(e[0],b);_=!isNaN(T)&&i.dataToPoint(T,null,C)}else{var T=E[0]=d.get(e[0],b),w=E[1]=d.get(e[1],b);_=!isNaN(T)&&!isNaN(w)&&i.dataToPoint(E,null,C)}o?(v[S++]=_?_[0]:NaN,v[S++]=_?_[1]:NaN):d.setItemLayout(b,_&&_.slice()||[NaN,NaN])}o&&d.setLayout("symbolPoints",v)}return l&&{progress:s}}}}k.exports=f},hD7B:function(k,D,n){var y=n("bYtY"),p=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function x(m){y.each(p,function(f){this[f]=y.bind(m[f],m)},this)}var A=x;k.exports=A},hFM2:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("sI3+"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},hFmY:function(k,D,n){var y=n("ProS"),p={type:"axisAreaSelect",event:"axisAreaSelected"};y.registerAction(p,function(x,A){A.eachComponent({mainType:"parallelAxis",query:x},function(m){m.axis.model.setActiveIntervals(x.intervals)})}),y.registerAction("parallelAxisExpand",function(x,A){A.eachComponent({mainType:"parallel",query:x},function(m){m.setAxisExpand(x)})})},hJvP:function(k,D,n){var y=n("2dDv"),p=n("IDmD");function x(A,m){var f=[];return A.eachComponent("parallel",function(h,u){var a=new y(h,A,m);a.name="parallel_"+u,a.resize(h,m),h.coordinateSystem=a,a.model=h,f.push(a)}),A.eachSeries(function(h){if(h.get("coordinateSystem")==="parallel"){var u=A.queryComponents({mainType:"parallel",index:h.get("parallelIndex"),id:h.get("parallelId")})[0];h.coordinateSystem=u.coordinateSystem}}),f}p.register("parallel",{create:x})},hM6l:function(k,D,n){var y=n("bYtY"),p=y.each,x=y.map,A=n("OELB"),m=A.linearMap,f=A.getPixelPrecision,h=A.round,u=n("4HMb"),a=u.createAxisTicks,i=u.createAxisLabels,t=u.calculateCategoryInterval,o=[0,1],e=function(c,d,g){this.dim=c,this.scale=d,this._extent=g||[0,0],this.inverse=!1,this.onBand=!1};e.prototype={constructor:e,contain:function(c){var d=this._extent,g=Math.min(d[0],d[1]),v=Math.max(d[0],d[1]);return c>=g&&c<=v},containData:function(c){return this.scale.contain(c)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(c){return f(c||this.scale.getExtent(),this._extent)},setExtent:function(c,d){var g=this._extent;g[0]=c,g[1]=d},dataToCoord:function(c,d){var g=this._extent,v=this.scale;return c=v.normalize(c),this.onBand&&v.type==="ordinal"&&(g=g.slice(),l(g,v.count())),m(c,o,g,d)},coordToData:function(c,d){var g=this._extent,v=this.scale;this.onBand&&v.type==="ordinal"&&(g=g.slice(),l(g,v.count()));var b=m(c,g,o,d);return this.scale.scale(b)},pointToData:function(c,d){},getTicksCoords:function(c){c=c||{};var d=c.tickModel||this.getTickModel(),g=a(this,d),v=g.ticks,b=x(v,function(E){return{coord:this.dataToCoord(E),tickValue:E}},this),S=d.get("alignWithLabel");return r(this,b,S,c.clamp),b},getMinorTicksCoords:function(){if(this.scale.type==="ordinal")return[];var c=this.model.getModel("minorTick"),d=c.get("splitNumber");d>0&&d<100||(d=5);var g=this.scale.getMinorTicks(d),v=x(g,function(b){return x(b,function(S){return{coord:this.dataToCoord(S),tickValue:S}},this)},this);return v},getViewLabels:function(){return i(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var c=this._extent,d=this.scale.getExtent(),g=d[1]-d[0]+(this.onBand?1:0);g===0&&(g=1);var v=Math.abs(c[1]-c[0]);return Math.abs(v)/g},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return t(this)}};function l(c,d){var g=c[1]-c[0],v=d,b=g/v/2;c[0]+=b,c[1]-=b}function r(c,d,g,v){var b=d.length;if(!c.onBand||g||!b)return;var S=c.getExtent(),E,C;if(b===1)d[0].coord=S[0],E=d[1]={coord:S[0]};else{var _=d[b-1].tickValue-d[0].tickValue,T=(d[b-1].coord-d[0].coord)/_;p(d,function(R){R.coord-=T/2});var w=c.scale.getExtent();C=1+w[1]-d[b-1].tickValue,E={coord:d[b-1].coord+T*C},d.push(E)}var O=S[0]>S[1];I(d[0].coord,S[0])&&(v?d[0].coord=S[0]:d.shift()),v&&I(S[0],d[0].coord)&&d.unshift({coord:S[0]}),I(S[1],E.coord)&&(v?E.coord=S[1]:d.pop()),v&&I(E.coord,S[1])&&d.push({coord:S[1]});function I(R,M){return R=h(R),M=h(M),O?R>M:R<M}}var s=e;k.exports=s},hNWo:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("Qxkt"),A=n("4NO4"),m=A.isNameSpecified,f=n("Kagy"),h=f.legend.selector,u={all:{type:"all",title:p.clone(h.all)},inverse:{type:"inverse",title:p.clone(h.inverse)}},a=y.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,o,e){this.mergeDefaultAndTheme(t,e),t.selected=t.selected||{},this._updateSelector(t)},mergeOption:function(t){a.superCall(this,"mergeOption",t),this._updateSelector(t)},_updateSelector:function(t){var o=t.selector;o===!0&&(o=t.selector=["all","inverse"]),p.isArray(o)&&p.each(o,function(e,l){p.isString(e)&&(e={type:e}),o[l]=p.merge(e,u[e.type])})},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var o=!1,e=0;e<t.length;e++){var l=t[e].get("name");if(this.isSelected(l)){this.select(l),o=!0;break}}!o&&this.select(t[0].get("name"))}},_updateData:function(t){var o=[],e=[];t.eachRawSeries(function(s){var c=s.name;e.push(c);var d;if(s.legendVisualProvider){var g=s.legendVisualProvider,v=g.getAllNames();t.isSeriesFiltered(s)||(e=e.concat(v)),v.length?o=o.concat(v):d=!0}else d=!0;d&&m(s)&&o.push(s.name)}),this._availableNames=e;var l=this.get("data")||o,r=p.map(l,function(s){return(typeof s=="string"||typeof s=="number")&&(s={name:s}),new x(s,this,this.ecModel)},this);this._data=r},getData:function(){return this._data},select:function(t){var o=this.option.selected,e=this.get("selectedMode");if(e==="single"){var l=this._data;p.each(l,function(r){o[r.get("name")]=!1})}o[t]=!0},unSelect:function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},toggleSelected:function(t){var o=this.option.selected;o.hasOwnProperty(t)||(o[t]=!0),this[o[t]?"unSelect":"select"](t)},allSelect:function(){var t=this._data,o=this.option.selected;p.each(t,function(e){o[e.get("name",!0)]=!0})},inverseSelect:function(){var t=this._data,o=this.option.selected;p.each(t,function(e){var l=e.get("name",!0);o.hasOwnProperty(l)||(o[l]=!0),o[l]=!o[l]})},isSelected:function(t){var o=this.option.selected;return!(o.hasOwnProperty(t)&&!o[t])&&p.indexOf(this._availableNames,t)>=0},getOrient:function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}}),i=a;k.exports=i},hOwI:function(k,D){var n=Math.log(2);function y(x,A,m,f,h,u){var a=f+"-"+h,i=x.length;if(u.hasOwnProperty(a))return u[a];if(A===1){var t=Math.round(Math.log((1<<i)-1&~h)/n);return x[m][t]}for(var o=f|1<<m,e=m+1;f&1<<e;)e++;for(var l=0,r=0,s=0;r<i;r++){var c=1<<r;c&h||(l+=(s%2?-1:1)*x[m][r]*y(x,A-1,e,o,h|c,u),s++)}return u[a]=l,l}function p(x,A){var m=[[x[0],x[1],1,0,0,0,-A[0]*x[0],-A[0]*x[1]],[0,0,0,x[0],x[1],1,-A[1]*x[0],-A[1]*x[1]],[x[2],x[3],1,0,0,0,-A[2]*x[2],-A[2]*x[3]],[0,0,0,x[2],x[3],1,-A[3]*x[2],-A[3]*x[3]],[x[4],x[5],1,0,0,0,-A[4]*x[4],-A[4]*x[5]],[0,0,0,x[4],x[5],1,-A[5]*x[4],-A[5]*x[5]],[x[6],x[7],1,0,0,0,-A[6]*x[6],-A[6]*x[7]],[0,0,0,x[6],x[7],1,-A[7]*x[6],-A[7]*x[7]]],f={},h=y(m,8,0,0,0,f);if(h===0)return;for(var u=[],a=0;a<8;a++)for(var i=0;i<8;i++)u[i]==null&&(u[i]=0),u[i]+=((a+i)%2?-1:1)*y(m,7,a===0?1:0,1<<a,1<<i,f)/h*A[a];return function(t,o,e){var l=o*u[6]+e*u[7]+1;t[0]=(o*u[0]+e*u[1]+u[2])/l,t[1]=(o*u[3]+e*u[4]+u[5])/l}}D.buildTransformer=p},hX1E:function(k,D){var n=Math.PI*2;function y(p){return p%=n,p<0&&(p+=n),p}D.normalizeRadian=y},hXwI:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(m,f){if(!(m instanceof f))throw new TypeError("Cannot call a class as a function")}function p(m,f){for(var h=0;h<f.length;h++){var u=f[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}function x(m,f,h){return f&&p(m.prototype,f),h&&p(m,h),m}var A=function(){function m(){y(this,m)}return x(m,[{key:"decodeRect",value:function(h,u,a,i,t,o,e){if(t.rQwait("COPYRECT",4))return!1;var l=t.rQshift16(),r=t.rQshift16();return o.copyImage(l,r,h,u,a,i),!0}}]),m}();D.default=A},hi0g:function(k,D,n){var y=n("bYtY"),p=y.createHashMap,x=y.each,A=y.isString,m=y.defaults,f=y.extend,h=y.isObject,u=y.clone,a=n("4NO4"),i=a.normalizeToArray,t=n("D5nY"),o=t.guessOrdinal,e=t.BE_ORDINAL,l=n("7G+c"),r=n("L0Ub"),s=r.OTHER_DIMENSIONS,c=n("Vi4m");function d(S,E,C){l.isInstance(E)||(E=l.seriesDataToSource(E)),C=C||{},S=(S||[]).slice();for(var _=(C.dimsDef||[]).slice(),T=p(),w=p(),O=[],I=g(E,S,_,C.dimCount),R=0;R<I;R++){var M=_[R]=f({},h(_[R])?_[R]:{name:_[R]}),F=M.name,P=O[R]=new c;F!=null&&T.get(F)==null&&(P.name=P.displayName=F,T.set(F,R)),M.type!=null&&(P.type=M.type),M.displayName!=null&&(P.displayName=M.displayName)}var X=C.encodeDef;!X&&C.encodeDefaulter&&(X=C.encodeDefaulter(E,I)),X=p(X),X.each(function(ce,be){if(ce=i(ce).slice(),ce.length===1&&!A(ce[0])&&ce[0]<0){X.set(be,!1);return}var le=X.set(be,[]);x(ce,function(Ie,ke){A(Ie)&&(Ie=T.get(Ie)),Ie!=null&&Ie<I&&(le[ke]=Ie,j(O[Ie],be,ke))})});var B=0;x(S,function(ce,be){var le,ce,Ie,ke;if(A(ce))le=ce,ce={};else{le=ce.name;var Re=ce.ordinalMeta;ce.ordinalMeta=null,ce=u(ce),ce.ordinalMeta=Re,Ie=ce.dimsDef,ke=ce.otherDims,ce.name=ce.coordDim=ce.coordDimIndex=ce.dimsDef=ce.otherDims=null}var Qe=X.get(le);if(Qe===!1)return;var Qe=i(Qe);if(!Qe.length)for(var We=0;We<(Ie&&Ie.length||1);We++){for(;B<O.length&&O[B].coordDim!=null;)B++;B<O.length&&Qe.push(B++)}x(Qe,function(ot,Oe){var oe=O[ot];if(j(m(oe,ce),le,Oe),oe.name==null&&Ie){var st=Ie[Oe];!h(st)&&(st={name:st}),oe.name=oe.displayName=st.name,oe.defaultTooltip=st.defaultTooltip}ke&&m(oe.otherDims,ke)})});function j(ce,be,le){s.get(be)!=null?ce.otherDims[be]=le:(ce.coordDim=be,ce.coordDimIndex=le,w.set(be,!0))}var W=C.generateCoord,z=C.generateCoordCount,V=z!=null;z=W?z||1:0;for(var Q=W||"value",G=0;G<I;G++){var P=O[G]=O[G]||new c,ee=P.coordDim;ee==null&&(P.coordDim=v(Q,w,V),P.coordDimIndex=0,(!W||z<=0)&&(P.isExtraCoord=!0),z--),P.name==null&&(P.name=v(P.coordDim,T)),P.type==null&&(o(E,G,P.name)===e.Must||P.isExtraCoord&&(P.otherDims.itemName!=null||P.otherDims.seriesName!=null))&&(P.type="ordinal")}return O}function g(S,E,C,_){var T=Math.max(S.dimensionsDetectCount||1,E.length,C.length,_||0);return x(E,function(w){var O=w.dimsDef;O&&(T=Math.max(T,O.length))}),T}function v(S,E,C){if(C||E.get(S)!=null){for(var _=0;E.get(S+_)!=null;)_++;S+=_}return E.set(S,!0),S}var b=d;k.exports=b},hkKa:function(k,D,n){"use strict";n.d(D,"a",function(){return m});var y=n("J4zp"),p=n.n(y),x=n("q1tI"),A=n.n(x);function m(){var f=x.useReducer(function(a){return a+1},0),h=p()(f,2),u=h[1];return u}},hw6D:function(k,D,n){var y=n("bYtY");function p(m){m.eachSeriesByType("radar",function(f){var h=f.getData(),u=[],a=f.coordinateSystem;if(!a)return;var i=a.getIndicatorAxes();y.each(i,function(t,o){h.each(h.mapDimension(i[o].dim),function(e,l){u[l]=u[l]||[];var r=a.dataToPoint(e,o);u[l][o]=x(r)?r:A(a)})}),h.each(function(t){var o=y.find(u[t],function(e){return x(e)})||A(a);u[t].push(o.slice()),h.setItemLayout(t,u[t])})})}function x(m){return!isNaN(m[0])&&!isNaN(m[1])}function A(m){return[m.cx,m.cy]}k.exports=p},hydK:function(k,D){var n="http://www.w3.org/2000/svg";function y(p){return document.createElementNS(n,p)}D.createElement=y},hyiK:function(k,D){function n(y,p,x,A,m,f){if(f>p&&f>A||f<p&&f<A)return 0;if(A===p)return 0;var h=A<p?1:-1,u=(f-p)/(A-p);(u===1||u===0)&&(h=A<p?.5:-.5);var a=u*(x-y)+y;return a===m?Infinity:a>m?h:0}k.exports=n},i38C:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=x.createHashMap,m=x.retrieve,f=x.each;function h(t){this.coordSysName=t,this.coordSysDims=[],this.axisMap=A(),this.categoryAxisMap=A(),this.firstCategoryDimIndex=null}function u(t){var o=t.get("coordinateSystem"),e=new h(o),l=a[o];if(l)return l(t,e,e.axisMap,e.categoryAxisMap),e}var a={cartesian2d:function(t,o,e,l){var r=t.getReferringComponents("xAxis")[0],s=t.getReferringComponents("yAxis")[0];o.coordSysDims=["x","y"],e.set("x",r),e.set("y",s),i(r)&&(l.set("x",r),o.firstCategoryDimIndex=0),i(s)&&(l.set("y",s),o.firstCategoryDimIndex==null&(o.firstCategoryDimIndex=1))},singleAxis:function(t,o,e,l){var r=t.getReferringComponents("singleAxis")[0];o.coordSysDims=["single"],e.set("single",r),i(r)&&(l.set("single",r),o.firstCategoryDimIndex=0)},polar:function(t,o,e,l){var r=t.getReferringComponents("polar")[0],s=r.findAxisModel("radiusAxis"),c=r.findAxisModel("angleAxis");o.coordSysDims=["radius","angle"],e.set("radius",s),e.set("angle",c),i(s)&&(l.set("radius",s),o.firstCategoryDimIndex=0),i(c)&&(l.set("angle",c),o.firstCategoryDimIndex==null&&(o.firstCategoryDimIndex=1))},geo:function(t,o,e,l){o.coordSysDims=["lng","lat"]},parallel:function(t,o,e,l){var r=t.ecModel,s=r.getComponent("parallel",t.get("parallelIndex")),c=o.coordSysDims=s.dimensions.slice();f(s.parallelAxisIndex,function(d,g){var v=r.getComponent("parallelAxis",d),b=c[g];e.set(b,v),i(v)&&o.firstCategoryDimIndex==null&&(l.set(b,v),o.firstCategoryDimIndex=g)})}};function i(t){return t.get("type")==="category"}D.getCoordSysInfoBySeries=u},i6bk:function(k,D,n){"use strict";n.d(D,"b",function(){return y}),n.d(D,"a",function(){return p});function y(x){return x!=null&&x===x.window}function p(x,A){if(typeof window=="undefined")return 0;var m=A?"scrollTop":"scrollLeft",f=0;return y(x)?f=x[A?"pageYOffset":"pageXOffset"]:x instanceof Document?f=x.documentElement[m]:x&&(f=x[m]),x&&!y(x)&&typeof f!="number"&&(f=(x.ownerDocument||x).documentElement[m]),f}},iLNv:function(k,D){var n="\0__throttleOriginMethod",y="\0__throttleRate",p="\0__throttleType";function x(f,h,u){var a,i=0,t=0,o=null,e,l,r,s;h=h||0;function c(){t=new Date().getTime(),o=null,f.apply(l,r||[])}var d=function(){a=new Date().getTime(),l=this,r=arguments;var g=s||h,v=s||u;s=null,e=a-(v?i:t)-g,clearTimeout(o),v?o=setTimeout(c,g):e>=0?c():o=setTimeout(c,-e),i=a};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(g){s=g},d}function A(f,h,u,a){var i=f[h];if(!i)return;var t=i[n]||i,o=i[p],e=i[y];if(e!==u||o!==a){if(u==null||!a)return f[h]=t;i=f[h]=x(t,u,a==="debounce"),i[n]=t,i[p]=a,i[y]=u}return i}function m(f,h){var u=f[h];u&&u[n]&&(f[h]=u[n])}D.throttle=x,D.createOrUpdate=A,D.clear=m},iPDy:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=y.extendComponentView({type:"marker",init:function(){this.markerGroupMap=p.createHashMap()},render:function(A,m,f){var h=this.markerGroupMap;h.each(function(a){a.__keep=!1});var u=this.type+"Model";m.eachSeries(function(a){var i=a[u];i&&this.renderSeries(a,i,m,f)},this),h.each(function(a){!a.__keep&&this.group.remove(a.group)},this)},renderSeries:function(){}});k.exports=x},iQDF:function(k,D,n){"use strict";var y=n("ZTW2"),p=n.n(y),x=n("+BJd"),A=n("+L6B")},iRjW:function(k,D,n){var y=n("bYtY"),p=n("Yl7c"),x=p.parseClassType,A=0;function m(u){return[u||"",A++,Math.random().toFixed(5)].join("_")}function f(u){var a={};return u.registerSubTypeDefaulter=function(i,t){i=x(i),a[i.main]=t},u.determineSubType=function(i,t){var o=t.type;if(!o){var e=x(i).main;u.hasSubTypes(i)&&a[e]&&(o=a[e](t))}return o},u}function h(u,a){u.topologicalTravel=function(e,l,r,s){if(!e.length)return;var c=i(l),d=c.graph,g=c.noEntryList,v={};for(y.each(e,function(T){v[T]=!0});g.length;){var b=g.pop(),S=d[b],E=!!v[b];E&&(r.call(s,b,S.originalDeps.slice()),delete v[b]),y.each(S.successor,E?_:C)}y.each(v,function(){throw new Error("Circle dependency may exists")});function C(T){d[T].entryCount--,d[T].entryCount===0&&g.push(T)}function _(T){v[T]=!0,C(T)}};function i(e){var l={},r=[];return y.each(e,function(s){var c=t(l,s),d=c.originalDeps=a(s),g=o(d,e);c.entryCount=g.length,c.entryCount===0&&r.push(s),y.each(g,function(v){y.indexOf(c.predecessor,v)<0&&c.predecessor.push(v);var b=t(l,v);y.indexOf(b.successor,v)<0&&b.successor.push(s)})}),{graph:l,noEntryList:r}}function t(e,l){return e[l]||(e[l]={predecessor:[],successor:[]}),e[l]}function o(e,l){var r=[];return y.each(e,function(s){y.indexOf(l,s)>=0&&r.push(s)}),r}}D.getUID=m,D.enableSubTypeDefaulter=f,D.enableTopologicalTravel=h},iUHT:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(S,E){if(!(S instanceof E))throw new TypeError("Cannot call a class as a function")}function p(S,E){for(var C=0;C<E.length;C++){var _=E[C];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(S,_.key,_)}}function x(S,E,C){return E&&p(S.prototype,E),C&&p(S,C),S}var A=[13,16,10,23,0,4,2,27,14,5,20,9,22,18,11,3,25,7,15,6,26,19,12,1,40,51,30,36,46,54,29,39,50,44,32,47,43,48,38,55,33,52,45,41,49,35,28,31],m=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=0,h,u,a,i,t,o;h=1<<16,u=1<<24,a=h|u,i=1<<2,t=1<<10,o=i|t;var e=[a|t,f|f,h|f,a|o,a|i,h|o,f|i,h|f,f|t,a|t,a|o,f|t,u|o,a|i,u|f,f|i,f|o,u|t,u|t,h|t,h|t,a|f,a|f,u|o,h|i,u|i,u|i,h|i,f|f,f|o,h|o,u|f,h|f,a|o,f|i,a|f,a|t,u|f,u|f,f|t,a|i,h|f,h|t,u|i,f|t,f|i,u|o,h|o,a|o,h|i,a|f,u|o,u|i,f|o,h|o,a|t,f|o,u|t,u|t,f|f,h|i,h|t,f|f,a|i];h=1<<20,u=1<<31,a=h|u,i=1<<5,t=1<<15,o=i|t;var l=[a|o,u|t,f|t,h|o,h|f,f|i,a|i,u|o,u|i,a|o,a|t,u|f,u|t,h|f,f|i,a|i,h|t,h|i,u|o,f|f,u|f,f|t,h|o,a|f,h|i,u|i,f|f,h|t,f|o,a|t,a|f,f|o,f|f,h|o,a|i,h|f,u|o,a|f,a|t,f|t,a|f,u|t,f|i,a|o,h|o,f|i,f|t,u|f,f|o,a|t,h|f,u|i,h|i,u|o,u|i,h|i,h|t,f|f,u|t,f|o,u|f,a|i,a|o,h|t];h=1<<17,u=1<<27,a=h|u,i=1<<3,t=1<<9,o=i|t;var r=[f|o,a|t,f|f,a|i,u|t,f|f,h|o,u|t,h|i,u|i,u|i,h|f,a|o,h|i,a|f,f|o,u|f,f|i,a|t,f|t,h|t,a|f,a|i,h|o,u|o,h|t,h|f,u|o,f|i,a|o,f|t,u|f,a|t,u|f,h|i,f|o,h|f,a|t,u|t,f|f,f|t,h|i,a|o,u|t,u|i,f|t,f|f,a|i,u|o,h|f,u|f,a|o,f|i,h|o,h|t,u|i,a|f,u|o,f|o,a|f,h|o,f|i,a|i,h|t];h=1<<13,u=1<<23,a=h|u,i=1<<0,t=1<<7,o=i|t;var s=[a|i,h|o,h|o,f|t,a|t,u|o,u|i,h|i,f|f,a|f,a|f,a|o,f|o,f|f,u|t,u|i,f|i,h|f,u|f,a|i,f|t,u|f,h|i,h|t,u|o,f|i,h|t,u|t,h|f,a|t,a|o,f|o,u|t,u|i,a|f,a|o,f|o,f|f,f|f,a|f,h|t,u|t,u|o,f|i,a|i,h|o,h|o,f|t,a|o,f|o,f|i,h|f,u|i,h|i,a|t,u|o,h|i,h|t,u|f,a|i,f|t,u|f,h|f,a|t];h=1<<25,u=1<<30,a=h|u,i=1<<8,t=1<<19,o=i|t;var c=[f|i,h|o,h|t,a|i,f|t,f|i,u|f,h|t,u|o,f|t,h|i,u|o,a|i,a|t,f|o,u|f,h|f,u|t,u|t,f|f,u|i,a|o,a|o,h|i,a|t,u|i,f|f,a|f,h|o,h|f,a|f,f|o,f|t,a|i,f|i,h|f,u|f,h|t,a|i,u|o,h|i,u|f,a|t,h|o,u|o,f|i,h|f,a|t,a|o,f|o,a|f,a|o,h|t,f|f,u|t,a|f,f|o,h|i,u|i,f|t,f|f,u|t,h|o,u|i];h=1<<22,u=1<<29,a=h|u,i=1<<4,t=1<<14,o=i|t;var d=[u|i,a|f,f|t,a|o,a|f,f|i,a|o,h|f,u|t,h|o,h|f,u|i,h|i,u|t,u|f,f|o,f|f,h|i,u|o,f|t,h|t,u|o,f|i,a|i,a|i,f|f,h|o,a|t,f|o,h|t,a|t,u|f,u|t,f|i,a|i,h|t,a|o,h|f,f|o,u|i,h|f,u|t,u|f,f|o,u|i,a|o,h|t,a|f,h|o,a|t,f|f,a|i,f|i,f|t,a|f,h|o,f|t,h|i,u|o,f|f,a|t,u|f,h|i,u|o];h=1<<21,u=1<<26,a=h|u,i=1<<1,t=1<<11,o=i|t;var g=[h|f,a|i,u|o,f|f,f|t,u|o,h|o,a|t,a|o,h|f,f|f,u|i,f|i,u|f,a|i,f|o,u|t,h|o,h|i,u|t,u|i,a|f,a|t,h|i,a|f,f|t,f|o,a|o,h|t,f|i,u|f,h|t,u|f,h|t,h|f,u|o,u|o,a|i,a|i,f|i,h|i,u|f,u|t,h|f,a|t,f|o,h|o,a|t,f|o,u|i,a|o,a|f,h|t,f|f,f|i,a|o,f|f,h|o,a|f,f|t,u|i,u|t,f|t,h|i];h=1<<18,u=1<<28,a=h|u,i=1<<6,t=1<<12,o=i|t;var v=[u|o,f|t,h|f,a|o,u|f,u|o,f|i,u|f,h|i,a|f,a|o,h|t,a|t,h|o,f|t,f|i,a|f,u|i,u|t,f|o,h|t,h|i,a|i,a|t,f|o,f|f,f|f,a|i,u|i,u|t,h|o,h|f,h|o,h|f,a|t,f|t,f|i,a|i,f|t,h|o,u|t,f|i,u|i,a|f,a|i,u|f,h|f,u|o,f|f,a|o,h|i,u|i,a|f,u|t,u|o,f|f,a|o,h|t,h|t,f|o,f|o,h|i,u|f,a|t],b=function(){function S(E){y(this,S),this.keys=[];for(var C=[],_=[],T=[],w=0,O=56;w<56;++w,O-=8){O+=O<-5?65:O<-3?31:O<-1?63:O===27?35:0;var I=O&7;C[w]=(E[O>>>3]&1<<I)!==0?1:0}for(var R=0;R<16;++R){var M=R<<1,F=M+1;T[M]=T[F]=0;for(var P=28;P<59;P+=28)for(var X=P-28;X<P;++X){var B=X+m[R];_[X]=B<P?C[B]:C[B-28]}for(var j=0;j<24;++j)_[A[j]]!==0&&(T[M]|=1<<23-j),_[A[j+24]]!==0&&(T[F]|=1<<23-j)}for(var W=0,z=0,V=0;W<16;++W){var Q=T[z++],G=T[z++];this.keys[V]=(Q&16515072)<<6,this.keys[V]|=(Q&4032)<<10,this.keys[V]|=(G&16515072)>>>10,this.keys[V]|=(G&4032)>>>6,++V,this.keys[V]=(Q&258048)<<12,this.keys[V]|=(Q&63)<<16,this.keys[V]|=(G&258048)>>>4,this.keys[V]|=G&63,++V}}return x(S,[{key:"enc8",value:function(C){var _=C.slice(),T=0,w,O,I;w=_[T++]<<24|_[T++]<<16|_[T++]<<8|_[T++],O=_[T++]<<24|_[T++]<<16|_[T++]<<8|_[T++],I=(w>>>4^O)&252645135,O^=I,w^=I<<4,I=(w>>>16^O)&65535,O^=I,w^=I<<16,I=(O>>>2^w)&858993459,w^=I,O^=I<<2,I=(O>>>8^w)&16711935,w^=I,O^=I<<8,O=O<<1|O>>>31&1,I=(w^O)&2863311530,w^=I,O^=I,w=w<<1|w>>>31&1;for(var R=0,M=0;R<8;++R){I=O<<28|O>>>4,I^=this.keys[M++];var F=g[I&63];F|=c[I>>>8&63],F|=r[I>>>16&63],F|=e[I>>>24&63],I=O^this.keys[M++],F|=v[I&63],F|=d[I>>>8&63],F|=s[I>>>16&63],F|=l[I>>>24&63],w^=F,I=w<<28|w>>>4,I^=this.keys[M++],F=g[I&63],F|=c[I>>>8&63],F|=r[I>>>16&63],F|=e[I>>>24&63],I=w^this.keys[M++],F|=v[I&63],F|=d[I>>>8&63],F|=s[I>>>16&63],F|=l[I>>>24&63],O^=F}for(O=O<<31|O>>>1,I=(w^O)&2863311530,w^=I,O^=I,w=w<<31|w>>>1,I=(w>>>8^O)&16711935,O^=I,w^=I<<8,I=(w>>>2^O)&858993459,O^=I,w^=I<<2,I=(O>>>16^w)&65535,w^=I,O^=I<<16,I=(O>>>4^w)&252645135,w^=I,O^=I<<4,I=[O,w],T=0;T<8;T++)_[T]=(I[T>>>2]>>>8*(3-T%4))%256,_[T]<0&&(_[T]+=256);return _}},{key:"encrypt",value:function(C){return this.enc8(C.slice(0,8)).concat(this.enc8(C.slice(8,16)))}}]),S}();D.default=b},iXHM:function(k,D){var n="";typeof navigator!="undefined"&&(n=navigator.platform||"");var y={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:n.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};k.exports=y},iXp4:function(k,D,n){var y=n("ItGF"),p=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function x(A){return y.browser.ie&&y.browser.version>=11?function(){var m=this.__clipPaths,f=this.style,h;if(m)for(var u=0;u<m.length;u++){var a=m[u],i=a&&a.shape,t=a&&a.type;if(i&&(t==="sector"&&i.startAngle===i.endAngle||t==="rect"&&(!i.width||!i.height))){for(var o=0;o<p.length;o++)p[o][2]=f[p[o][0]],f[p[o][0]]=p[o][1];h=!0;break}}if(A.apply(this,arguments),h)for(var o=0;o<p.length;o++)f[p[o][0]]=p[o][2]}:A}k.exports=x},ieMj:function(k,D,n){var y=n("OELB"),p=n("7aKB"),x=n("4NgU"),A=n("lE7J"),m=y.round,f=x.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(u,a){var i=this._extent;isNaN(u)||(i[0]=parseFloat(u)),isNaN(a)||(i[1]=parseFloat(a))},unionExtent:function(u){var a=this._extent;u[0]<a[0]&&(a[0]=u[0]),u[1]>a[1]&&(a[1]=u[1]),f.prototype.setExtent.call(this,a[0],a[1])},getInterval:function(){return this._interval},setInterval:function(u){this._interval=u,this._niceExtent=this._extent.slice(),this._intervalPrecision=A.getIntervalPrecision(u)},getTicks:function(u){var a=this._interval,i=this._extent,t=this._niceExtent,o=this._intervalPrecision,e=[];if(!a)return e;var l=1e4;i[0]<t[0]&&(u?e.push(m(t[0]-a,o)):e.push(i[0]));for(var r=t[0];r<=t[1]&&!(e.push(r),r=m(r+a,o),r===e[e.length-1]);)if(e.length>l)return[];var s=e.length?e[e.length-1]:t[1];return i[1]>s&&(u?e.push(m(s+a,o)):e.push(i[1])),e},getMinorTicks:function(u){for(var a=this.getTicks(!0),i=[],t=this.getExtent(),o=1;o<a.length;o++){for(var e=a[o],l=a[o-1],r=0,s=[],c=e-l,d=c/u;r<u-1;){var g=y.round(l+(r+1)*d);g>t[0]&&g<t[1]&&s.push(g),r++}i.push(s)}return i},getLabel:function(u,a){if(u==null)return"";var i=a&&a.precision;return i==null?i=y.getPrecisionSafe(u)||0:i==="auto"&&(i=this._intervalPrecision),u=m(u,i,!0),p.addCommas(u)},niceTicks:function(u,a,i){u=u||5;var t=this._extent,o=t[1]-t[0];if(!isFinite(o))return;o<0&&(o=-o,t.reverse());var e=A.intervalScaleNiceTicks(t,u,a,i);this._intervalPrecision=e.intervalPrecision,this._interval=e.interval,this._niceExtent=e.niceTickExtent},niceExtent:function(u){var a=this._extent;if(a[0]===a[1])if(a[0]!==0){var i=a[0];u.fixMax||(a[1]+=i/2),a[0]-=i/2}else a[1]=1;var t=a[1]-a[0];isFinite(t)||(a[0]=0,a[1]=1),this.niceTicks(u.splitNumber,u.minInterval,u.maxInterval);var o=this._interval;u.fixMin||(a[0]=m(Math.floor(a[0]/o)*o)),u.fixMax||(a[1]=m(Math.ceil(a[1]/o)*o))}});f.create=function(){return new f};var h=f;k.exports=h},j5sG:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.createSensor=void 0;var y=p(n("NohK"));function p(A){return A&&A.__esModule?A:{default:A}}var x=function(m){var f=void 0,h=[],u=(0,y.default)(function(){h.forEach(function(e){e(m)})}),a=function(){var l=new ResizeObserver(u);return l.observe(m),u(),l},i=function(l){f||(f=a()),h.indexOf(l)===-1&&h.push(l)},t=function(){f.disconnect(),h=[],f=void 0},o=function(l){var r=h.indexOf(l);r!==-1&&h.splice(r,1),h.length===0&&f&&t()};return{element:m,bind:i,destroy:t,unbind:o}};D.createSensor=x},jCoz:function(k,D,n){var y=n("bYtY"),p=n("4NgU"),x=n("OELB"),A=n("ieMj"),m=p.prototype,f=A.prototype,h=x.getPrecisionSafe,u=x.round,a=Math.floor,i=Math.ceil,t=Math.pow,o=Math.log,e=p.extend({type:"log",base:10,$constructor:function(){p.apply(this,arguments),this._originalScale=new A},getTicks:function(s){var c=this._originalScale,d=this._extent,g=c.getExtent();return y.map(f.getTicks.call(this,s),function(v){var b=x.round(t(this.base,v));return b=v===d[0]&&c.__fixMin?l(b,g[0]):b,b=v===d[1]&&c.__fixMax?l(b,g[1]):b,b},this)},getMinorTicks:f.getMinorTicks,getLabel:f.getLabel,scale:function(s){return s=m.scale.call(this,s),t(this.base,s)},setExtent:function(s,c){var d=this.base;s=o(s)/o(d),c=o(c)/o(d),f.setExtent.call(this,s,c)},getExtent:function(){var s=this.base,c=m.getExtent.call(this);c[0]=t(s,c[0]),c[1]=t(s,c[1]);var d=this._originalScale,g=d.getExtent();return d.__fixMin&&(c[0]=l(c[0],g[0])),d.__fixMax&&(c[1]=l(c[1],g[1])),c},unionExtent:function(s){this._originalScale.unionExtent(s);var c=this.base;s[0]=o(s[0])/o(c),s[1]=o(s[1])/o(c),m.unionExtent.call(this,s)},unionExtentFromData:function(s,c){this.unionExtent(s.getApproximateExtent(c))},niceTicks:function(s){s=s||10;var c=this._extent,d=c[1]-c[0];if(d===Infinity||d<=0)return;var g=x.quantity(d),v=s/d*g;for(v<=.5&&(g*=10);!isNaN(g)&&Math.abs(g)<1&&Math.abs(g)>0;)g*=10;var b=[x.round(i(c[0]/g)*g),x.round(a(c[1]/g)*g)];this._interval=g,this._niceExtent=b},niceExtent:function(s){f.niceExtent.call(this,s);var c=this._originalScale;c.__fixMin=s.fixMin,c.__fixMax=s.fixMax}});y.each(["contain","normalize"],function(s){e.prototype[s]=function(c){return c=o(c)/o(this.base),m[s].call(this,c)}}),e.create=function(){return new e};function l(s,c){return u(s,h(c))}var r=e;k.exports=r},jN4g:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-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 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="CloseCircleFilled";var h=D.a=p.forwardRef(f)},jO45:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="CheckCircleFilled";var h=D.a=p.forwardRef(f)},jO9C:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("OLod"))})(this,function(y){return y.pad.Iso97971={pad:function(x,A){x.concat(y.lib.WordArray.create([2147483648],1)),y.pad.ZeroPadding.pad(x,A)},unpad:function(x){y.pad.ZeroPadding.unpad(x),x.sigBytes--}},y.pad.Iso97971})},jTL6:function(k,D,n){var y=n("y+Vt"),p=y.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(A,m){var f=m.cx,h=m.cy,u=Math.max(m.r,0),a=m.startAngle,i=m.endAngle,t=m.clockwise,o=Math.cos(a),e=Math.sin(a);A.moveTo(o*u+f,e*u+h),A.arc(f,h,u,a,i,!t)}});k.exports=p},je13:function(k,D,n){var y=n("5nXd"),p=n("gRFJ"),x=[n("uQRt")];k.exports=y.createStore(p,x)},jett:function(k,D,n){var y=n("ProS");n("VSLf"),n("oBaM"),n("FGaS");var p=n("mOdp"),x=n("f5Yq"),A=n("hw6D"),m=n("0/Rx"),f=n("eJH7");y.registerVisual(p("radar")),y.registerVisual(x("radar","circle")),y.registerLayout(A),y.registerProcessor(m("radar")),y.registerPreprocessor(f)},jhfD:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="ArrowLeftOutlined";var h=D.a=p.forwardRef(f)},jkPA:function(k,D,n){var y=n("bYtY"),p=y.createHashMap,x=y.isObject,A=y.map;function m(i){this.categories=i.categories||[],this._needCollect=i.needCollect,this._deduplication=i.deduplication,this._map}m.createByAxisModel=function(i){var t=i.option,o=t.data,e=o&&A(o,u);return new m({categories:e,needCollect:!e,deduplication:t.dedplication!==!1})};var f=m.prototype;f.getOrdinal=function(i){return h(this).get(i)},f.parseAndCollect=function(i){var t,o=this._needCollect;if(typeof i!="string"&&!o)return i;if(o&&!this._deduplication)return t=this.categories.length,this.categories[t]=i,t;var e=h(this);return t=e.get(i),t==null&&(o?(t=this.categories.length,this.categories[t]=i,e.set(i,t)):t=NaN),t};function h(i){return i._map||(i._map=p(i.categories))}function u(i){return x(i)&&i.value!=null?i.value:i+""}var a=m;k.exports=a},jndi:function(k,D,n){var y=n("bYtY"),p=n("Qe9p"),x=n("YXkt"),A=n("OELB"),m=n("IwbS"),f=n("kj2x"),h=n("iPDy"),u=function(r,s,c,d){var g=f.dataTransform(r,d[0]),v=f.dataTransform(r,d[1]),b=y.retrieve,S=g.coord,E=v.coord;S[0]=b(S[0],-Infinity),S[1]=b(S[1],-Infinity),E[0]=b(E[0],Infinity),E[1]=b(E[1],Infinity);var C=y.mergeAll([{},g,v]);return C.coord=[g.coord,v.coord],C.x0=g.x,C.y0=g.y,C.x1=v.x,C.y1=v.y,C};function a(r){return!isNaN(r)&&!isFinite(r)}function i(r,s,c,d){var g=1-r;return a(s[g])&&a(c[g])}function t(r,s){var c=s.coord[0],d=s.coord[1];return r.type==="cartesian2d"&&(c&&d&&(i(1,c,d,r)||i(0,c,d,r)))?!0:f.dataFilter(r,{coord:c,x:s.x0,y:s.y0})||f.dataFilter(r,{coord:d,x:s.x1,y:s.y1})}function o(r,s,c,d,g){var v=d.coordinateSystem,b=r.getItemModel(s),S,E=A.parsePercent(b.get(c[0]),g.getWidth()),C=A.parsePercent(b.get(c[1]),g.getHeight());if(!isNaN(E)&&!isNaN(C))S=[E,C];else{if(d.getMarkerPosition)S=d.getMarkerPosition(r.getValues(c,s));else{var _=r.get(c[0],s),T=r.get(c[1],s),w=[_,T];v.clampData&&v.clampData(w,w),S=v.dataToPoint(w,!0)}if(v.type==="cartesian2d"){var O=v.getAxis("x"),I=v.getAxis("y"),_=r.get(c[0],s),T=r.get(c[1],s);a(_)?S[0]=O.toGlobalCoord(O.getExtent()[c[0]==="x0"?0:1]):a(T)&&(S[1]=I.toGlobalCoord(I.getExtent()[c[1]==="y0"?0:1]))}isNaN(E)||(S[0]=E),isNaN(C)||(S[1]=C)}return S}var e=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];h.extend({type:"markArea",updateTransform:function(r,s,c){s.eachSeries(function(d){var g=d.markAreaModel;if(g){var v=g.getData();v.each(function(b){var S=y.map(e,function(C){return o(v,b,C,d,c)});v.setItemLayout(b,S);var E=v.getItemGraphicEl(b);E.setShape("points",S)})}},this)},renderSeries:function(r,s,c,d){var g=r.coordinateSystem,v=r.id,b=r.getData(),S=this.markerGroupMap,E=S.get(v)||S.set(v,{group:new m.Group});this.group.add(E.group),E.__keep=!0;var C=l(g,r,s);s.setData(C),C.each(function(_){C.setItemLayout(_,y.map(e,function(T){return o(C,_,T,r,d)})),C.setItemVisual(_,{color:b.getVisual("color")})}),C.diff(E.__data).add(function(_){var T=new m.Polygon({shape:{points:C.getItemLayout(_)}});C.setItemGraphicEl(_,T),E.group.add(T)}).update(function(_,T){var w=E.__data.getItemGraphicEl(T);m.updateProps(w,{shape:{points:C.getItemLayout(_)}},s,_),E.group.add(w),C.setItemGraphicEl(_,w)}).remove(function(_){var T=E.__data.getItemGraphicEl(_);E.group.remove(T)}).execute(),C.eachItemGraphicEl(function(_,T){var w=C.getItemModel(T),O=w.getModel("label"),I=w.getModel("emphasis.label"),R=C.getItemVisual(T,"color");_.useStyle(y.defaults(w.getModel("itemStyle").getItemStyle(),{fill:p.modifyAlpha(R,.4),stroke:R})),_.hoverStyle=w.getModel("emphasis.itemStyle").getItemStyle(),m.setLabelStyle(_.style,_.hoverStyle,O,I,{labelFetcher:s,labelDataIndex:T,defaultText:C.getName(T)||"",isRectText:!0,autoColor:R}),m.setHoverStyle(_,{}),_.dataModel=s}),E.__data=C,E.group.silent=s.get("silent")||r.get("silent")}});function l(r,s,c){var d,g,v=["x0","y0","x1","y1"];r?(d=y.map(r&&r.dimensions,function(E){var C=s.getData(),_=C.getDimensionInfo(C.mapDimension(E))||{};return y.defaults({name:E},_)}),g=new x(y.map(v,function(E,C){return{name:E,type:d[C%2].type}}),c)):(d=[{name:"value",type:"float"}],g=new x(d,c));var b=y.map(c.get("data"),y.curry(u,s,r,c));r&&(b=y.filter(b,y.curry(t,r)));var S=r?function(E,C,_,T){return E.coord[Math.floor(T/2)][T%2]}:function(E){return E.value};return g.initData(b,null,S),g.hasItemOption=!0,g}},"jsU+":function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("IUWy"),A=y.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){A.superApply(this,"optionUpdated",arguments),p.each(this.option.feature,function(f,h){var u=x.get(h);u&&p.merge(f,u.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1}}}),m=A;k.exports=m},jtI2:function(k,D,n){n("SMc4");var y=n("bLfw"),p=y.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});k.exports=p},juDX:function(k,D,n){n("P47w");var y=n("aX58"),p=y.registerPainter,x=n("3CBa");p("svg",x)},"k+1r":function(k,D,n){var y=n("QkVE");function p(x){var A=y(this,x).delete(x);return this.size-=A?1:0,A}k.exports=p},k5C7:function(k,D,n){n("0JAE"),n("g7p0"),n("7mYs")},k773:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("O0TS"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},k9D9:function(k,D){var n="original",y="arrayRows",p="objectRows",x="keyedColumns",A="unknown",m="typedArray",f="column",h="row";D.SOURCE_FORMAT_ORIGINAL=n,D.SOURCE_FORMAT_ARRAY_ROWS=y,D.SOURCE_FORMAT_OBJECT_ROWS=p,D.SOURCE_FORMAT_KEYED_COLUMNS=x,D.SOURCE_FORMAT_UNKNOWN=A,D.SOURCE_FORMAT_TYPED_ARRAY=m,D.SERIES_LAYOUT_BY_COLUMN=f,D.SERIES_LAYOUT_BY_ROW=h},kDyi:function(k,D){function n(y){var p=y.findComponents({mainType:"legend"});p&&p.length&&y.filterSeries(function(x){for(var A=0;A<p.length;A++)if(!p[A].isSelected(x.name))return!1;return!0})}k.exports=n},kMLO:function(k,D,n){var y=n("XxSj"),p=n("Qe9p"),x=n("bYtY"),A=x.isArray,m="itemStyle",f={seriesType:"treemap",reset:function(r,s,c,d){var g=r.getData().tree,v=g.root,b=r.getModel(m);if(v.isRemoved())return;var S=x.map(g.levelModels,function(E){return E?E.get(m):null});h(v,{},S,b,r.getViewRoot().getAncestors(),r)}};function h(r,s,c,d,g,v){var b=r.getModel(),S=r.getLayout();if(!S||S.invisible||!S.isInView)return;var E=r.getModel(m),C=c[r.depth],_=u(E,s,C,d),T=E.get("borderColor"),w=E.get("borderColorSaturation"),O;w!=null&&(O=a(_,r),T=i(w,O)),r.setVisual("borderColor",T);var I=r.viewChildren;if(!I||!I.length)O=a(_,r),r.setVisual("color",O);else{var R=o(r,b,S,E,_,I);x.each(I,function(M,F){if(M.depth>=g.length||M===g[M.depth]){var P=l(b,_,M,F,R,v);h(M,P,c,d,g,v)}})}}function u(r,s,c,d){var g=x.extend({},s);return x.each(["color","colorAlpha","colorSaturation"],function(v){var b=r.get(v,!0);b==null&&c&&(b=c[v]),b==null&&(b=s[v]),b==null&&(b=d.get(v)),b!=null&&(g[v]=b)}),g}function a(r){var s=t(r,"color");if(s){var c=t(r,"colorAlpha"),d=t(r,"colorSaturation");return d&&(s=p.modifyHSL(s,null,null,d)),c&&(s=p.modifyAlpha(s,c)),s}}function i(r,s){return s!=null?p.modifyHSL(s,null,null,r):null}function t(r,s){var c=r[s];if(c!=null&&c!=="none")return c}function o(r,s,c,d,g,v){if(!v||!v.length)return;var b=e(s,"color")||g.color!=null&&g.color!=="none"&&(e(s,"colorAlpha")||e(s,"colorSaturation"));if(!b)return;var S=s.get("visualMin"),E=s.get("visualMax"),C=c.dataExtent.slice();S!=null&&S<C[0]&&(C[0]=S),E!=null&&E>C[1]&&(C[1]=E);var _=s.get("colorMappingBy"),T={type:b.name,dataExtent:C,visual:b.range};T.type==="color"&&(_==="index"||_==="id")?(T.mappingMethod="category",T.loop=!0):T.mappingMethod="linear";var w=new y(T);return w.__drColorMappingBy=_,w}function e(r,s){var c=r.get(s);return A(c)&&c.length?{name:s,range:c}:null}function l(r,s,c,d,g,v){var b=x.extend({},s);if(g){var S=g.type,E=S==="color"&&g.__drColorMappingBy,C=E==="index"?d:E==="id"?v.mapIdToIndex(c.getId()):c.getValue(r.get("visualDimension"));b[S]=g.mapValueToVisual(C)}return b}k.exports=f},kRqF:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("CP8R")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="FilterFilled";var i=A.forwardRef(a);D.default=i},"kVK+":function(k,D){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */D.read=function(n,y,p,x,A){var m,f,h=A*8-x-1,u=(1<<h)-1,a=u>>1,i=-7,t=p?A-1:0,o=p?-1:1,e=n[y+t];for(t+=o,m=e&(1<<-i)-1,e>>=-i,i+=h;i>0;m=m*256+n[y+t],t+=o,i-=8);for(f=m&(1<<-i)-1,m>>=-i,i+=x;i>0;f=f*256+n[y+t],t+=o,i-=8);if(m===0)m=1-a;else{if(m===u)return f?NaN:(e?-1:1)*Infinity;f=f+Math.pow(2,x),m=m-a}return(e?-1:1)*f*Math.pow(2,m-x)},D.write=function(n,y,p,x,A,m){var f,h,u,a=m*8-A-1,i=(1<<a)-1,t=i>>1,o=A===23?Math.pow(2,-24)-Math.pow(2,-77):0,e=x?0:m-1,l=x?1:-1,r=y<0||y===0&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===Infinity?(h=isNaN(y)?1:0,f=i):(f=Math.floor(Math.log(y)/Math.LN2),y*(u=Math.pow(2,-f))<1&&(f--,u*=2),f+t>=1?y+=o/u:y+=o*Math.pow(2,1-t),y*u>=2&&(f++,u/=2),f+t>=i?(h=0,f=i):f+t>=1?(h=(y*u-1)*Math.pow(2,A),f=f+t):(h=y*Math.pow(2,t-1)*Math.pow(2,A),f=0));A>=8;n[p+e]=h&255,e+=l,h/=256,A-=8);for(f=f<<A|h,a+=A;a>0;n[p+e]=f&255,e+=l,f/=256,a-=8);n[p+e-l]|=r*128}},kekF:function(k,D){function n(y,p){return function(x){return y(p(x))}}k.exports=n},kj2x:function(k,D,n){var y=n("bYtY"),p=n("OELB"),x=n("7hqr"),A=x.isDimensionStacked,m=y.indexOf;function f(c){return!(isNaN(parseFloat(c.x))&&isNaN(parseFloat(c.y)))}function h(c){return!isNaN(parseFloat(c.x))&&!isNaN(parseFloat(c.y))}function u(c,d,g,v,b,S){var E=[],C=A(d,v),_=C?d.getCalculationInfo("stackResultDimension"):v,T=s(d,_,c),w=d.indicesOfNearest(_,T)[0];E[b]=d.get(g,w),E[S]=d.get(_,w);var O=d.get(v,w),I=p.getPrecision(d.get(v,w));return I=Math.min(I,20),I>=0&&(E[S]=+E[S].toFixed(I)),[E,O]}var a=y.curry,i={min:a(u,"min"),max:a(u,"max"),average:a(u,"average")};function t(c,d){var g=c.getData(),v=c.coordinateSystem;if(d&&!h(d)&&!y.isArray(d.coord)&&v){var b=v.dimensions,S=o(d,g,v,c);if(d=y.clone(d),d.type&&i[d.type]&&S.baseAxis&&S.valueAxis){var E=m(b,S.baseAxis.dim),C=m(b,S.valueAxis.dim),_=i[d.type](g,S.baseDataDim,S.valueDataDim,E,C);d.coord=_[0],d.value=_[1]}else{for(var T=[d.xAxis!=null?d.xAxis:d.radiusAxis,d.yAxis!=null?d.yAxis:d.angleAxis],w=0;w<2;w++)i[T[w]]&&(T[w]=s(g,g.mapDimension(b[w]),T[w]));d.coord=T}}return d}function o(c,d,g,v){var b={};return c.valueIndex!=null||c.valueDim!=null?(b.valueDataDim=c.valueIndex!=null?d.getDimension(c.valueIndex):c.valueDim,b.valueAxis=g.getAxis(e(v,b.valueDataDim)),b.baseAxis=g.getOtherAxis(b.valueAxis),b.baseDataDim=d.mapDimension(b.baseAxis.dim)):(b.baseAxis=v.getBaseAxis(),b.valueAxis=g.getOtherAxis(b.baseAxis),b.baseDataDim=d.mapDimension(b.baseAxis.dim),b.valueDataDim=d.mapDimension(b.valueAxis.dim)),b}function e(c,d){var g=c.getData(),v=g.dimensions;d=g.getDimension(d);for(var b=0;b<v.length;b++){var S=g.getDimensionInfo(v[b]);if(S.name===d)return S.coordDim}}function l(c,d){return c&&c.containData&&d.coord&&!f(d)?c.containData(d.coord):!0}function r(c,d,g,v){return v<2?c.coord&&c.coord[v]:c.value}function s(c,d,g){if(g==="average"){var v=0,b=0;return c.each(d,function(S,E){isNaN(S)||(v+=S,b++)}),v/b}else return g==="median"?c.getMedian(d):c.getDataExtent(d,!0)[g==="max"?1:0]}D.dataTransform=t,D.getAxisInfo=o,D.dataFilter=l,D.dimValueGetter=r,D.numCalculate=s},knOB:function(k,D,n){var y=n("bYtY"),p=n("hM6l");function x(m,f){p.call(this,"radius",m,f),this.type="category"}x.prototype={constructor:x,pointToData:function(m,f){return this.polar.pointToData(m,f)[this.dim==="radius"?0:1]},dataToRadius:p.prototype.dataToCoord,radiusToData:p.prototype.coordToData},y.inherits(x,p);var A=x;k.exports=A},ko1b:function(k,D,n){var y=n("bYtY"),p=n("T4UG"),x=n("Bsck"),A=n("Qxkt"),m=n("7aKB"),f=m.encodeHTML,h=m.addCommas,u=n("VaxA"),a=u.wrapTreePathInfo,i=p.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],preventUsingHoverLayer:!0,_viewRoot:null,defaultOption:{progressive:0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(e,l){var r={name:e.name,children:e.data};t(r);var s=e.levels||[];s=e.levels=o(s,l);var c=y.map(s||[],function(v){return new A(v,this,l)},this),d=x.createTree(r,this,null,g);function g(v){v.wrapMethod("getItemModel",function(b,S){var E=d.getNodeByDataIndex(S),C=c[E.depth];return C&&(b.parentModel=C),b})}return d.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var l=this.getData(),r=this.getRawValue(e),s=y.isArray(r)?h(r[0]):h(r),c=l.getName(e);return f(c+": "+s)},getDataParams:function(e){var l=p.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return l.treePathInfo=a(r,this),l},setLayoutInfo:function(e){this.layoutInfo=this.layoutInfo||{},y.extend(this.layoutInfo,e)},mapIdToIndex:function(e){var l=this._idIndexMap;l||(l=this._idIndexMap=y.createHashMap(),this._idIndexMapCount=0);var r=l.get(e);return r==null&&l.set(e,r=this._idIndexMapCount++),r},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var l=this.getRawData().tree.root;(!e||e!==l&&!l.contains(e))&&(this._viewRoot=l)}});function t(e){var l=0;y.each(e.children,function(s){t(s);var c=s.value;y.isArray(c)&&(c=c[0]),l+=c});var r=e.value;y.isArray(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=l),r<0&&(r=0),y.isArray(e.value)?e.value[0]=r:e.value=r}function o(e,l){var r=l.get("color");if(!r)return;e=e||[];var s;if(y.each(e,function(d){var g=new A(d),v=g.get("color");(g.get("itemStyle.color")||v&&v!=="none")&&(s=!0)}),!s){var c=e[0]||(e[0]={});c.color=r.slice()}return e}k.exports=i},kuFg:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("WtK/"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},kzFp:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y=D.pick=function(x,A){var m={};return A.forEach(function(f){m[f]=x[f]}),m}},kzvK:function(k,D,n){var y=n("sS/r"),p=y.extend({type:"timeline"});k.exports=p},"l+S1":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="SearchOutlined";var h=D.a=p.forwardRef(f)},lE7J:function(k,D,n){var y=n("OELB"),p=y.round;function x(h,u,a,i){var t={},o=h[1]-h[0],e=t.interval=y.nice(o/u,!0);a!=null&&e<a&&(e=t.interval=a),i!=null&&e>i&&(e=t.interval=i);var l=t.intervalPrecision=A(e),r=t.niceTickExtent=[p(Math.ceil(h[0]/e)*e,l),p(Math.floor(h[1]/e)*e,l)];return f(r,h),t}function A(h){return y.getPrecisionSafe(h)+2}function m(h,u,a){h[u]=Math.max(Math.min(h[u],a[1]),a[0])}function f(h,u){!isFinite(h[0])&&(h[0]=u[0]),!isFinite(h[1])&&(h[1]=u[1]),m(h,0,u),m(h,1,u),h[0]>h[1]&&(h[0]=h[1])}D.intervalScaleNiceTicks=x,D.getIntervalPrecision=A,D.fixExtent=f},lELe:function(k,D,n){var y=n("bYtY");function p(x){var A=[];y.each(x.series,function(m){m&&m.type==="map"&&(A.push(m),m.map=m.map||m.mapType,y.defaults(m,m.mapLocation))})}k.exports=p},lLGD:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("nVfU"),A=x.layout,m=x.largeLayout;n("Wqna"),n("F7hV"),n("Z8zF"),n("Ae16"),y.registerLayout(y.PRIORITY.VISUAL.LAYOUT,p.curry(A,"bar")),y.registerLayout(y.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,m),y.registerVisual({seriesType:"bar",reset:function(f){f.getData().setVisual("legendSymbol","roundRect")}})},lNSK:function(k,D,n){"use strict";function y(ae){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(Mt){return typeof Mt}:y=function(Mt){return Mt&&typeof Symbol=="function"&&Mt.constructor===Symbol&&Mt!==Symbol.prototype?"symbol":typeof Mt},y(ae)}Object.defineProperty(D,"__esModule",{value:!0}),D.deflateInit=Xe,D.deflateInit2=Vt,D.deflateReset=zt,D.deflateResetKeep=dr,D.deflateSetHeader=kt,D.deflate=pe,D.deflateEnd=te,D.deflateSetDictionary=$e,D.deflateInfo=D.Z_DEFLATED=D.Z_UNKNOWN=D.Z_DEFAULT_STRATEGY=D.Z_FIXED=D.Z_RLE=D.Z_HUFFMAN_ONLY=D.Z_FILTERED=D.Z_DEFAULT_COMPRESSION=D.Z_BUF_ERROR=D.Z_DATA_ERROR=D.Z_STREAM_ERROR=D.Z_STREAM_END=D.Z_OK=D.Z_BLOCK=D.Z_FINISH=D.Z_FULL_FLUSH=D.Z_PARTIAL_FLUSH=D.Z_NO_FLUSH=void 0;var p=a(n("6BzB")),x=a(n("c5fP")),A=h(n("xlC8")),m=h(n("QV2g")),f=h(n("xSIq"));function h(ae){return ae&&ae.__esModule?ae:{default:ae}}function u(){if(typeof WeakMap!="function")return null;var ae=new WeakMap;return u=function(){return ae},ae}function a(ae){if(ae&&ae.__esModule)return ae;if(ae===null||y(ae)!=="object"&&typeof ae!="function")return{default:ae};var ft=u();if(ft&&ft.has(ae))return ft.get(ae);var Mt={},mt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var or in ae)if(Object.prototype.hasOwnProperty.call(ae,or)){var vr=mt?Object.getOwnPropertyDescriptor(ae,or):null;vr&&(vr.get||vr.set)?Object.defineProperty(Mt,or,vr):Mt[or]=ae[or]}return Mt.default=ae,ft&&ft.set(ae,Mt),Mt}var i=0;D.Z_NO_FLUSH=i;var t=1;D.Z_PARTIAL_FLUSH=t;var o=3;D.Z_FULL_FLUSH=o;var e=4;D.Z_FINISH=e;var l=5;D.Z_BLOCK=l;var r=0;D.Z_OK=r;var s=1;D.Z_STREAM_END=s;var c=-2;D.Z_STREAM_ERROR=c;var d=-3;D.Z_DATA_ERROR=d;var g=-5;D.Z_BUF_ERROR=g;var v=-1;D.Z_DEFAULT_COMPRESSION=v;var b=1;D.Z_FILTERED=b;var S=2;D.Z_HUFFMAN_ONLY=S;var E=3;D.Z_RLE=E;var C=4;D.Z_FIXED=C;var _=0;D.Z_DEFAULT_STRATEGY=_;var T=2;D.Z_UNKNOWN=T;var w=8;D.Z_DEFLATED=w;var O=9,I=15,R=8,M=29,F=256,P=F+1+M,X=30,B=19,j=2*P+1,W=15,z=3,V=258,Q=V+z+1,G=32,ee=42,ce=69,be=73,le=91,Ie=103,ke=113,Re=666,Qe=1,We=2,ot=3,Oe=4,oe=3;function st(ae,ft){return ae.msg=f.default[ft],ft}function he(ae){return(ae<<1)-(ae>4?9:0)}function J(ae){for(var ft=ae.length;--ft>=0;)ae[ft]=0}function Y(ae){var ft=ae.state,Mt=ft.pending;if(Mt>ae.avail_out&&(Mt=ae.avail_out),Mt===0)return;p.arraySet(ae.output,ft.pending_buf,ft.pending_out,Mt,ae.next_out),ae.next_out+=Mt,ft.pending_out+=Mt,ae.total_out+=Mt,ae.avail_out-=Mt,ft.pending-=Mt,ft.pending===0&&(ft.pending_out=0)}function $(ae,ft){x._tr_flush_block(ae,ae.block_start>=0?ae.block_start:-1,ae.strstart-ae.block_start,ft),ae.block_start=ae.strstart,Y(ae.strm)}function fe(ae,ft){ae.pending_buf[ae.pending++]=ft}function we(ae,ft){ae.pending_buf[ae.pending++]=ft>>>8&255,ae.pending_buf[ae.pending++]=ft&255}function Ne(ae,ft,Mt,mt){var or=ae.avail_in;return or>mt&&(or=mt),or===0?0:(ae.avail_in-=or,p.arraySet(ft,ae.input,ae.next_in,or,Mt),ae.state.wrap===1?ae.adler=(0,A.default)(ae.adler,ft,or,Mt):ae.state.wrap===2&&(ae.adler=(0,m.default)(ae.adler,ft,or,Mt)),ae.next_in+=or,ae.total_in+=or,or)}function Ee(ae,ft){var Mt=ae.max_chain_length,mt=ae.strstart,or,vr,fn=ae.prev_length,sr=ae.nice_match,Ir=ae.strstart>ae.w_size-Q?ae.strstart-(ae.w_size-Q):0,lr=ae.window,Wt=ae.w_mask,xt=ae.prev,rn=ae.strstart+V,Dn=lr[mt+fn-1],Xn=lr[mt+fn];ae.prev_length>=ae.good_match&&(Mt>>=2),sr>ae.lookahead&&(sr=ae.lookahead);do{if(or=ft,lr[or+fn]!==Xn||lr[or+fn-1]!==Dn||lr[or]!==lr[mt]||lr[++or]!==lr[mt+1])continue;mt+=2,or++;do;while(lr[++mt]===lr[++or]&&lr[++mt]===lr[++or]&&lr[++mt]===lr[++or]&&lr[++mt]===lr[++or]&&lr[++mt]===lr[++or]&&lr[++mt]===lr[++or]&&lr[++mt]===lr[++or]&&lr[++mt]===lr[++or]&&mt<rn);if(vr=V-(rn-mt),mt=rn-V,vr>fn){if(ae.match_start=ft,fn=vr,vr>=sr)break;Dn=lr[mt+fn-1],Xn=lr[mt+fn]}}while((ft=xt[ft&Wt])>Ir&&--Mt!==0);return fn<=ae.lookahead?fn:ae.lookahead}function de(ae){var ft=ae.w_size,Mt,mt,or,vr,fn;do{if(vr=ae.window_size-ae.lookahead-ae.strstart,ae.strstart>=ft+(ft-Q)){p.arraySet(ae.window,ae.window,ft,ft,0),ae.match_start-=ft,ae.strstart-=ft,ae.block_start-=ft,mt=ae.hash_size,Mt=mt;do or=ae.head[--Mt],ae.head[Mt]=or>=ft?or-ft:0;while(--mt);mt=ft,Mt=mt;do or=ae.prev[--Mt],ae.prev[Mt]=or>=ft?or-ft:0;while(--mt);vr+=ft}if(ae.strm.avail_in===0)break;if(mt=Ne(ae.strm,ae.window,ae.strstart+ae.lookahead,vr),ae.lookahead+=mt,ae.lookahead+ae.insert>=z)for(fn=ae.strstart-ae.insert,ae.ins_h=ae.window[fn],ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[fn+1])&ae.hash_mask;ae.insert&&!(ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[fn+z-1])&ae.hash_mask,ae.prev[fn&ae.w_mask]=ae.head[ae.ins_h],ae.head[ae.ins_h]=fn,fn++,ae.insert--,ae.lookahead+ae.insert<z););}while(ae.lookahead<Q&&ae.strm.avail_in!==0)}function me(ae,ft){var Mt=65535;for(Mt>ae.pending_buf_size-5&&(Mt=ae.pending_buf_size-5);;){if(ae.lookahead<=1){if(de(ae),ae.lookahead===0&&ft===i)return Qe;if(ae.lookahead===0)break}ae.strstart+=ae.lookahead,ae.lookahead=0;var mt=ae.block_start+Mt;if((ae.strstart===0||ae.strstart>=mt)&&(ae.lookahead=ae.strstart-mt,ae.strstart=mt,$(ae,!1),ae.strm.avail_out===0))return Qe;if(ae.strstart-ae.block_start>=ae.w_size-Q&&($(ae,!1),ae.strm.avail_out===0))return Qe}return ae.insert=0,ft===e?($(ae,!0),ae.strm.avail_out===0?ot:Oe):(ae.strstart>ae.block_start&&($(ae,!1),ae.strm.avail_out===0),Qe)}function Le(ae,ft){for(var Mt,mt;;){if(ae.lookahead<Q){if(de(ae),ae.lookahead<Q&&ft===i)return Qe;if(ae.lookahead===0)break}if(Mt=0,ae.lookahead>=z&&(ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[ae.strstart+z-1])&ae.hash_mask,Mt=ae.prev[ae.strstart&ae.w_mask]=ae.head[ae.ins_h],ae.head[ae.ins_h]=ae.strstart),Mt!==0&&ae.strstart-Mt<=ae.w_size-Q&&(ae.match_length=Ee(ae,Mt)),ae.match_length>=z)if(mt=x._tr_tally(ae,ae.strstart-ae.match_start,ae.match_length-z),ae.lookahead-=ae.match_length,ae.match_length<=ae.max_lazy_match&&ae.lookahead>=z){ae.match_length--;do ae.strstart++,ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[ae.strstart+z-1])&ae.hash_mask,Mt=ae.prev[ae.strstart&ae.w_mask]=ae.head[ae.ins_h],ae.head[ae.ins_h]=ae.strstart;while(--ae.match_length!==0);ae.strstart++}else ae.strstart+=ae.match_length,ae.match_length=0,ae.ins_h=ae.window[ae.strstart],ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[ae.strstart+1])&ae.hash_mask;else mt=x._tr_tally(ae,0,ae.window[ae.strstart]),ae.lookahead--,ae.strstart++;if(mt&&($(ae,!1),ae.strm.avail_out===0))return Qe}return ae.insert=ae.strstart<z-1?ae.strstart:z-1,ft===e?($(ae,!0),ae.strm.avail_out===0?ot:Oe):ae.last_lit&&($(ae,!1),ae.strm.avail_out===0)?Qe:We}function tt(ae,ft){for(var Mt,mt,or;;){if(ae.lookahead<Q){if(de(ae),ae.lookahead<Q&&ft===i)return Qe;if(ae.lookahead===0)break}if(Mt=0,ae.lookahead>=z&&(ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[ae.strstart+z-1])&ae.hash_mask,Mt=ae.prev[ae.strstart&ae.w_mask]=ae.head[ae.ins_h],ae.head[ae.ins_h]=ae.strstart),ae.prev_length=ae.match_length,ae.prev_match=ae.match_start,ae.match_length=z-1,Mt!==0&&ae.prev_length<ae.max_lazy_match&&ae.strstart-Mt<=ae.w_size-Q&&(ae.match_length=Ee(ae,Mt),ae.match_length<=5&&(ae.strategy===b||ae.match_length===z&&ae.strstart-ae.match_start>4096)&&(ae.match_length=z-1)),ae.prev_length>=z&&ae.match_length<=ae.prev_length){or=ae.strstart+ae.lookahead-z,mt=x._tr_tally(ae,ae.strstart-1-ae.prev_match,ae.prev_length-z),ae.lookahead-=ae.prev_length-1,ae.prev_length-=2;do++ae.strstart<=or&&(ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[ae.strstart+z-1])&ae.hash_mask,Mt=ae.prev[ae.strstart&ae.w_mask]=ae.head[ae.ins_h],ae.head[ae.ins_h]=ae.strstart);while(--ae.prev_length!==0);if(ae.match_available=0,ae.match_length=z-1,ae.strstart++,mt&&($(ae,!1),ae.strm.avail_out===0))return Qe}else if(ae.match_available){if(mt=x._tr_tally(ae,0,ae.window[ae.strstart-1]),mt&&$(ae,!1),ae.strstart++,ae.lookahead--,ae.strm.avail_out===0)return Qe}else ae.match_available=1,ae.strstart++,ae.lookahead--}return ae.match_available&&(mt=x._tr_tally(ae,0,ae.window[ae.strstart-1]),ae.match_available=0),ae.insert=ae.strstart<z-1?ae.strstart:z-1,ft===e?($(ae,!0),ae.strm.avail_out===0?ot:Oe):ae.last_lit&&($(ae,!1),ae.strm.avail_out===0)?Qe:We}function At(ae,ft){for(var Mt,mt,or,vr,fn=ae.window;;){if(ae.lookahead<=V){if(de(ae),ae.lookahead<=V&&ft===i)return Qe;if(ae.lookahead===0)break}if(ae.match_length=0,ae.lookahead>=z&&ae.strstart>0&&(or=ae.strstart-1,mt=fn[or],mt===fn[++or]&&mt===fn[++or]&&mt===fn[++or])){vr=ae.strstart+V;do;while(mt===fn[++or]&&mt===fn[++or]&&mt===fn[++or]&&mt===fn[++or]&&mt===fn[++or]&&mt===fn[++or]&&mt===fn[++or]&&mt===fn[++or]&&or<vr);ae.match_length=V-(vr-or),ae.match_length>ae.lookahead&&(ae.match_length=ae.lookahead)}if(ae.match_length>=z?(Mt=x._tr_tally(ae,1,ae.match_length-z),ae.lookahead-=ae.match_length,ae.strstart+=ae.match_length,ae.match_length=0):(Mt=x._tr_tally(ae,0,ae.window[ae.strstart]),ae.lookahead--,ae.strstart++),Mt&&($(ae,!1),ae.strm.avail_out===0))return Qe}return ae.insert=0,ft===e?($(ae,!0),ae.strm.avail_out===0?ot:Oe):ae.last_lit&&($(ae,!1),ae.strm.avail_out===0)?Qe:We}function ht(ae,ft){for(var Mt;;){if(ae.lookahead===0&&(de(ae),ae.lookahead===0)){if(ft===i)return Qe;break}if(ae.match_length=0,Mt=x._tr_tally(ae,0,ae.window[ae.strstart]),ae.lookahead--,ae.strstart++,Mt&&($(ae,!1),ae.strm.avail_out===0))return Qe}return ae.insert=0,ft===e?($(ae,!0),ae.strm.avail_out===0?ot:Oe):ae.last_lit&&($(ae,!1),ae.strm.avail_out===0)?Qe:We}function Ke(ae,ft,Mt,mt,or){this.good_length=ae,this.max_lazy=ft,this.nice_length=Mt,this.max_chain=mt,this.func=or}var Jt;Jt=[new Ke(0,0,0,0,me),new Ke(4,4,8,4,Le),new Ke(4,5,16,8,Le),new Ke(4,6,32,32,Le),new Ke(4,4,16,16,tt),new Ke(8,16,32,32,tt),new Ke(8,16,128,128,tt),new Ke(8,32,128,256,tt),new Ke(32,128,258,1024,tt),new Ke(32,258,258,4096,tt)];function ct(ae){ae.window_size=2*ae.w_size,J(ae.head),ae.max_lazy_match=Jt[ae.level].max_lazy,ae.good_match=Jt[ae.level].good_length,ae.nice_match=Jt[ae.level].nice_length,ae.max_chain_length=Jt[ae.level].max_chain,ae.strstart=0,ae.block_start=0,ae.lookahead=0,ae.insert=0,ae.match_length=ae.prev_length=z-1,ae.match_available=0,ae.ins_h=0}function Gt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=w,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new p.Buf16(j*2),this.dyn_dtree=new p.Buf16((2*X+1)*2),this.bl_tree=new p.Buf16((2*B+1)*2),J(this.dyn_ltree),J(this.dyn_dtree),J(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new p.Buf16(W+1),this.heap=new p.Buf16(2*P+1),J(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new p.Buf16(2*P+1),J(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function dr(ae){var ft;return!ae||!ae.state?st(ae,c):(ae.total_in=ae.total_out=0,ae.data_type=T,ft=ae.state,ft.pending=0,ft.pending_out=0,ft.wrap<0&&(ft.wrap=-ft.wrap),ft.status=ft.wrap?ee:ke,ae.adler=ft.wrap===2?0:1,ft.last_flush=i,x._tr_init(ft),r)}function zt(ae){var ft=dr(ae);return ft===r&&ct(ae.state),ft}function kt(ae,ft){return!ae||!ae.state||ae.state.wrap!==2?c:(ae.state.gzhead=ft,r)}function Vt(ae,ft,Mt,mt,or,vr){if(!ae)return c;var fn=1;if(ft===v&&(ft=6),mt<0?(fn=0,mt=-mt):mt>15&&(fn=2,mt-=16),or<1||or>O||Mt!==w||mt<8||mt>15||ft<0||ft>9||vr<0||vr>C)return st(ae,c);mt===8&&(mt=9);var sr=new Gt;return ae.state=sr,sr.strm=ae,sr.wrap=fn,sr.gzhead=null,sr.w_bits=mt,sr.w_size=1<<sr.w_bits,sr.w_mask=sr.w_size-1,sr.hash_bits=or+7,sr.hash_size=1<<sr.hash_bits,sr.hash_mask=sr.hash_size-1,sr.hash_shift=~~((sr.hash_bits+z-1)/z),sr.window=new p.Buf8(sr.w_size*2),sr.head=new p.Buf16(sr.hash_size),sr.prev=new p.Buf16(sr.w_size),sr.lit_bufsize=1<<or+6,sr.pending_buf_size=sr.lit_bufsize*4,sr.pending_buf=new p.Buf8(sr.pending_buf_size),sr.d_buf=1*sr.lit_bufsize,sr.l_buf=(1+2)*sr.lit_bufsize,sr.level=ft,sr.strategy=vr,sr.method=Mt,zt(ae)}function Xe(ae,ft){return Vt(ae,ft,w,I,R,_)}function pe(ae,ft){var Mt,mt,or,vr;if(!ae||!ae.state||ft>l||ft<0)return ae?st(ae,c):c;if(mt=ae.state,!ae.output||!ae.input&&ae.avail_in!==0||mt.status===Re&&ft!==e)return st(ae,ae.avail_out===0?g:c);if(mt.strm=ae,Mt=mt.last_flush,mt.last_flush=ft,mt.status===ee)if(mt.wrap===2)ae.adler=0,fe(mt,31),fe(mt,139),fe(mt,8),mt.gzhead?(fe(mt,(mt.gzhead.text?1:0)+(mt.gzhead.hcrc?2:0)+(mt.gzhead.extra?4:0)+(mt.gzhead.name?8:0)+(mt.gzhead.comment?16:0)),fe(mt,mt.gzhead.time&255),fe(mt,mt.gzhead.time>>8&255),fe(mt,mt.gzhead.time>>16&255),fe(mt,mt.gzhead.time>>24&255),fe(mt,mt.level===9?2:mt.strategy>=S||mt.level<2?4:0),fe(mt,mt.gzhead.os&255),mt.gzhead.extra&&mt.gzhead.extra.length&&(fe(mt,mt.gzhead.extra.length&255),fe(mt,mt.gzhead.extra.length>>8&255)),mt.gzhead.hcrc&&(ae.adler=(0,m.default)(ae.adler,mt.pending_buf,mt.pending,0)),mt.gzindex=0,mt.status=ce):(fe(mt,0),fe(mt,0),fe(mt,0),fe(mt,0),fe(mt,0),fe(mt,mt.level===9?2:mt.strategy>=S||mt.level<2?4:0),fe(mt,oe),mt.status=ke);else{var fn=w+(mt.w_bits-8<<4)<<8,sr=-1;mt.strategy>=S||mt.level<2?sr=0:mt.level<6?sr=1:mt.level===6?sr=2:sr=3,fn|=sr<<6,mt.strstart!==0&&(fn|=G),fn+=31-fn%31,mt.status=ke,we(mt,fn),mt.strstart!==0&&(we(mt,ae.adler>>>16),we(mt,ae.adler&65535)),ae.adler=1}if(mt.status===ce)if(mt.gzhead.extra){for(or=mt.pending;mt.gzindex<(mt.gzhead.extra.length&65535)&&!(mt.pending===mt.pending_buf_size&&(mt.gzhead.hcrc&&mt.pending>or&&(ae.adler=(0,m.default)(ae.adler,mt.pending_buf,mt.pending-or,or)),Y(ae),or=mt.pending,mt.pending===mt.pending_buf_size));)fe(mt,mt.gzhead.extra[mt.gzindex]&255),mt.gzindex++;mt.gzhead.hcrc&&mt.pending>or&&(ae.adler=(0,m.default)(ae.adler,mt.pending_buf,mt.pending-or,or)),mt.gzindex===mt.gzhead.extra.length&&(mt.gzindex=0,mt.status=be)}else mt.status=be;if(mt.status===be)if(mt.gzhead.name){or=mt.pending;do{if(mt.pending===mt.pending_buf_size&&(mt.gzhead.hcrc&&mt.pending>or&&(ae.adler=(0,m.default)(ae.adler,mt.pending_buf,mt.pending-or,or)),Y(ae),or=mt.pending,mt.pending===mt.pending_buf_size)){vr=1;break}mt.gzindex<mt.gzhead.name.length?vr=mt.gzhead.name.charCodeAt(mt.gzindex++)&255:vr=0,fe(mt,vr)}while(vr!==0);mt.gzhead.hcrc&&mt.pending>or&&(ae.adler=(0,m.default)(ae.adler,mt.pending_buf,mt.pending-or,or)),vr===0&&(mt.gzindex=0,mt.status=le)}else mt.status=le;if(mt.status===le)if(mt.gzhead.comment){or=mt.pending;do{if(mt.pending===mt.pending_buf_size&&(mt.gzhead.hcrc&&mt.pending>or&&(ae.adler=(0,m.default)(ae.adler,mt.pending_buf,mt.pending-or,or)),Y(ae),or=mt.pending,mt.pending===mt.pending_buf_size)){vr=1;break}mt.gzindex<mt.gzhead.comment.length?vr=mt.gzhead.comment.charCodeAt(mt.gzindex++)&255:vr=0,fe(mt,vr)}while(vr!==0);mt.gzhead.hcrc&&mt.pending>or&&(ae.adler=(0,m.default)(ae.adler,mt.pending_buf,mt.pending-or,or)),vr===0&&(mt.status=Ie)}else mt.status=Ie;if(mt.status===Ie&&(mt.gzhead.hcrc?(mt.pending+2>mt.pending_buf_size&&Y(ae),mt.pending+2<=mt.pending_buf_size&&(fe(mt,ae.adler&255),fe(mt,ae.adler>>8&255),ae.adler=0,mt.status=ke)):mt.status=ke),mt.pending!==0){if(Y(ae),ae.avail_out===0)return mt.last_flush=-1,r}else if(ae.avail_in===0&&he(ft)<=he(Mt)&&ft!==e)return st(ae,g);if(mt.status===Re&&ae.avail_in!==0)return st(ae,g);if(ae.avail_in!==0||mt.lookahead!==0||ft!==i&&mt.status!==Re){var Ir=mt.strategy===S?ht(mt,ft):mt.strategy===E?At(mt,ft):Jt[mt.level].func(mt,ft);if((Ir===ot||Ir===Oe)&&(mt.status=Re),Ir===Qe||Ir===ot)return ae.avail_out===0&&(mt.last_flush=-1),r;if(Ir===We&&(ft===t?x._tr_align(mt):ft!==l&&(x._tr_stored_block(mt,0,0,!1),ft===o&&(J(mt.head),mt.lookahead===0&&(mt.strstart=0,mt.block_start=0,mt.insert=0))),Y(ae),ae.avail_out===0))return mt.last_flush=-1,r}return ft!==e?r:mt.wrap<=0?s:(mt.wrap===2?(fe(mt,ae.adler&255),fe(mt,ae.adler>>8&255),fe(mt,ae.adler>>16&255),fe(mt,ae.adler>>24&255),fe(mt,ae.total_in&255),fe(mt,ae.total_in>>8&255),fe(mt,ae.total_in>>16&255),fe(mt,ae.total_in>>24&255)):(we(mt,ae.adler>>>16),we(mt,ae.adler&65535)),Y(ae),mt.wrap>0&&(mt.wrap=-mt.wrap),mt.pending!==0?r:s)}function te(ae){var ft;return!ae||!ae.state?c:(ft=ae.state.status,ft!==ee&&ft!==ce&&ft!==be&&ft!==le&&ft!==Ie&&ft!==ke&&ft!==Re?st(ae,c):(ae.state=null,ft===ke?st(ae,d):r))}function $e(ae,ft){var Mt=ft.length,mt,or,vr,fn,sr,Ir,lr,Wt;if(!ae||!ae.state)return c;if(mt=ae.state,fn=mt.wrap,fn===2||fn===1&&mt.status!==ee||mt.lookahead)return c;for(fn===1&&(ae.adler=(0,A.default)(ae.adler,ft,Mt,0)),mt.wrap=0,Mt>=mt.w_size&&(fn===0&&(J(mt.head),mt.strstart=0,mt.block_start=0,mt.insert=0),Wt=new p.Buf8(mt.w_size),p.arraySet(Wt,ft,Mt-mt.w_size,mt.w_size,0),ft=Wt,Mt=mt.w_size),sr=ae.avail_in,Ir=ae.next_in,lr=ae.input,ae.avail_in=Mt,ae.next_in=0,ae.input=ft,de(mt);mt.lookahead>=z;){or=mt.strstart,vr=mt.lookahead-(z-1);do mt.ins_h=(mt.ins_h<<mt.hash_shift^mt.window[or+z-1])&mt.hash_mask,mt.prev[or&mt.w_mask]=mt.head[mt.ins_h],mt.head[mt.ins_h]=or,or++;while(--vr);mt.strstart=or,mt.lookahead=z-1,de(mt)}return mt.strstart+=mt.lookahead,mt.block_start=mt.strstart,mt.insert=mt.lookahead,mt.lookahead=0,mt.match_length=mt.prev_length=z-1,mt.match_available=0,ae.next_in=Ir,ae.input=lr,ae.avail_in=sr,mt.wrap=fn,r}var He="pako deflate (from Nodeca project)";D.deflateInfo=He},lOQZ:function(k,D,n){var y=n("QBsz"),p=n("U/Mo"),x=p.getSymbolSize,A=p.getNodeGlobalScale,m=Math.PI,f=[];function h(a,i){var t=a.coordinateSystem;if(t&&t.type!=="view")return;var o=t.getBoundingRect(),e=a.getData(),l=e.graph,r=o.width/2+o.x,s=o.height/2+o.y,c=Math.min(o.width,o.height)/2,d=e.count();if(e.setLayout({cx:r,cy:s}),!d)return;u[i](a,t,l,e,c,r,s,d),l.eachEdge(function(g){var v=g.getModel().get("lineStyle.curveness")||0,b=y.clone(g.node1.getLayout()),S=y.clone(g.node2.getLayout()),E,C=(b[0]+S[0])/2,_=(b[1]+S[1])/2;+v&&(v*=3,E=[r*v+C*(1-v),s*v+_*(1-v)]),g.setLayout([b,S,E])})}var u={value:function(a,i,t,o,e,l,r,s){var c=0,d=o.getSum("value"),g=Math.PI*2/(d||s);t.eachNode(function(v){var b=v.getValue("value"),S=g*(d?b:1)/2;c+=S,v.setLayout([e*Math.cos(c)+l,e*Math.sin(c)+r]),c+=S})},symbolSize:function(a,i,t,o,e,l,r,s){var c=0;f.length=s;var d=A(a);t.eachNode(function(b){var S=x(b);isNaN(S)&&(S=2),S<0&&(S=0),S*=d;var E=Math.asin(S/2/e);isNaN(E)&&(E=m/2),f[b.dataIndex]=E,c+=E*2});var g=(2*m-c)/s/2,v=0;t.eachNode(function(b){var S=g+f[b.dataIndex];v+=S,b.setLayout([e*Math.cos(v)+l,e*Math.sin(v)+r]),v+=S})}};D.circularLayout=h},lPiR:function(k,D,n){(function(y,p){k.exports=D=p(n("Ib8C"))})(this,function(y){return function(p){var x=y,A=x.lib,m=A.WordArray,f=A.Hasher,h=x.algo,u=[],a=[];(function(){function o(s){for(var c=p.sqrt(s),d=2;d<=c;d++)if(!(s%d))return!1;return!0}function e(s){return(s-(s|0))*4294967296|0}for(var l=2,r=0;r<64;)o(l)&&(r<8&&(u[r]=e(p.pow(l,1/2))),a[r]=e(p.pow(l,1/3)),r++),l++})();var i=[],t=h.SHA256=f.extend({_doReset:function(){this._hash=new m.init(u.slice(0))},_doProcessBlock:function(e,l){for(var r=this._hash.words,s=r[0],c=r[1],d=r[2],g=r[3],v=r[4],b=r[5],S=r[6],E=r[7],C=0;C<64;C++){if(C<16)i[C]=e[l+C]|0;else{var _=i[C-15],T=(_<<25|_>>>7)^(_<<14|_>>>18)^_>>>3,w=i[C-2],O=(w<<15|w>>>17)^(w<<13|w>>>19)^w>>>10;i[C]=T+i[C-7]+O+i[C-16]}var I=v&b^~v&S,R=s&c^s&d^c&d,M=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),F=(v<<26|v>>>6)^(v<<21|v>>>11)^(v<<7|v>>>25),P=E+F+I+a[C]+i[C],X=M+R;E=S,S=b,b=v,v=g+P|0,g=d,d=c,c=s,s=P+X|0}r[0]=r[0]+s|0,r[1]=r[1]+c|0,r[2]=r[2]+d|0,r[3]=r[3]+g|0,r[4]=r[4]+v|0,r[5]=r[5]+b|0,r[6]=r[6]+S|0,r[7]=r[7]+E|0},_doFinalize:function(){var e=this._data,l=e.words,r=this._nDataBytes*8,s=e.sigBytes*8;return l[s>>>5]|=128<<24-s%32,l[(s+64>>>9<<4)+14]=p.floor(r/4294967296),l[(s+64>>>9<<4)+15]=r,e.sigBytes=l.length*4,this._process(),this._hash},clone:function(){var e=f.clone.call(this);return e._hash=this._hash.clone(),e}});x.SHA256=f._createHelper(t),x.HmacSHA256=f._createHmacHelper(t)}(Math),y.SHA256})},lSCD:function(k,D,n){var y=n("NykK"),p=n("GoyQ"),x="[object AsyncFunction]",A="[object Function]",m="[object GeneratorFunction]",f="[object Proxy]";function h(u){if(!p(u))return!1;var a=y(u);return a==A||a==m||a==x||a==f}k.exports=h},lUTK:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("x54q"),A=n.n(x),m=n("5Dmo")},lZu9:function(k,D,n){(function(y){y(n("VrN/"),n("1eCo"),n("8EBN"))})(function(y){"use strict";y.defineMode("markdown",function(p,x){var A=y.getMode(p,"text/html"),m=A.name=="null";function f(W){if(y.findModeByName){var z=y.findModeByName(W);z&&(W=z.mime||z.mimes[0])}var V=y.getMode(p,W);return V.name=="null"?null:V}x.highlightFormatting===void 0&&(x.highlightFormatting=!1),x.maxBlockquoteDepth===void 0&&(x.maxBlockquoteDepth=0),x.taskLists===void 0&&(x.taskLists=!1),x.strikethrough===void 0&&(x.strikethrough=!1),x.emoji===void 0&&(x.emoji=!1),x.fencedCodeBlockHighlighting===void 0&&(x.fencedCodeBlockHighlighting=!0),x.fencedCodeBlockDefaultMode===void 0&&(x.fencedCodeBlockDefaultMode="text/plain"),x.xml===void 0&&(x.xml=!0),x.tokenTypeOverrides===void 0&&(x.tokenTypeOverrides={});var h={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var u in h)h.hasOwnProperty(u)&&x.tokenTypeOverrides[u]&&(h[u]=x.tokenTypeOverrides[u]);var a=/^([*\-_])(?:\s*\1){2,}\s*$/,i=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,t=/^\[(x| )\](?=\s)/i,o=x.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,e=/^ {0,3}(?:\={1,}|-{2,})\s*$/,l=/^[^#!\[\]*_\\<>` "'(~:]+/,r=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,s=/^\s*\[[^\]]+?\]:.*$/,c=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,d=" ";function g(W,z,V){return z.f=z.inline=V,V(W,z)}function v(W,z,V){return z.f=z.block=V,V(W,z)}function b(W){return!W||!/\S/.test(W.string)}function S(W){if(W.linkTitle=!1,W.linkHref=!1,W.linkText=!1,W.em=!1,W.strong=!1,W.strikethrough=!1,W.quote=0,W.indentedCode=!1,W.f==C){var z=m;if(!z){var V=y.innerMode(A,W.htmlState);z=V.mode.name=="xml"&&V.state.tagStart===null&&!V.state.context&&V.state.tokenize.isInText}z&&(W.f=O,W.block=E,W.htmlState=null)}return W.trailingSpace=0,W.trailingSpaceNewLine=!1,W.prevLine=W.thisLine,W.thisLine={stream:null},null}function E(W,z){var V=W.column()===z.indentation,Q=b(z.prevLine.stream),G=z.indentedCode,ee=z.prevLine.hr,ce=z.list!==!1,be=(z.listStack[z.listStack.length-1]||0)+3;z.indentedCode=!1;var le=z.indentation;if(z.indentationDiff===null&&(z.indentationDiff=z.indentation,ce)){for(z.list=null;le<z.listStack[z.listStack.length-1];)z.listStack.pop(),z.listStack.length?z.indentation=z.listStack[z.listStack.length-1]:z.list=!1;z.list!==!1&&(z.indentationDiff=le-z.listStack[z.listStack.length-1])}var Ie=!Q&&!ee&&!z.prevLine.header&&(!ce||!G)&&!z.prevLine.fencedCodeEnd,ke=(z.list===!1||ee||Q)&&z.indentation<=be&&W.match(a),Re=null;if(z.indentationDiff>=4&&(G||z.prevLine.fencedCodeEnd||z.prevLine.header||Q))return W.skipToEnd(),z.indentedCode=!0,h.code;if(W.eatSpace())return null;if(V&&z.indentation<=be&&(Re=W.match(o))&&Re[1].length<=6)return z.quote=0,z.header=Re[1].length,z.thisLine.header=!0,x.highlightFormatting&&(z.formatting="header"),z.f=z.inline,T(z);if(z.indentation<=be&&W.eat(">"))return z.quote=V?1:z.quote+1,x.highlightFormatting&&(z.formatting="quote"),W.eatSpace(),T(z);if(!ke&&!z.setext&&V&&z.indentation<=be&&(Re=W.match(i))){var Qe=Re[1]?"ol":"ul";return z.indentation=le+W.current().length,z.list=!0,z.quote=0,z.listStack.push(z.indentation),z.em=!1,z.strong=!1,z.code=!1,z.strikethrough=!1,x.taskLists&&W.match(t,!1)&&(z.taskList=!0),z.f=z.inline,x.highlightFormatting&&(z.formatting=["list","list-"+Qe]),T(z)}else{if(V&&z.indentation<=be&&(Re=W.match(r,!0)))return z.quote=0,z.fencedEndRE=new RegExp(Re[1]+"+ *$"),z.localMode=x.fencedCodeBlockHighlighting&&f(Re[2]||x.fencedCodeBlockDefaultMode),z.localMode&&(z.localState=y.startState(z.localMode)),z.f=z.block=_,x.highlightFormatting&&(z.formatting="code-block"),z.code=-1,T(z);if(z.setext||(!Ie||!ce)&&!z.quote&&z.list===!1&&!z.code&&!ke&&!s.test(W.string)&&(Re=W.lookAhead(1))&&(Re=Re.match(e)))return z.setext?(z.header=z.setext,z.setext=0,W.skipToEnd(),x.highlightFormatting&&(z.formatting="header")):(z.header=Re[0].charAt(0)=="="?1:2,z.setext=z.header),z.thisLine.header=!0,z.f=z.inline,T(z);if(ke)return W.skipToEnd(),z.hr=!0,z.thisLine.hr=!0,h.hr;if(W.peek()==="[")return g(W,z,P)}return g(W,z,z.inline)}function C(W,z){var V=A.token(W,z.htmlState);if(!m){var Q=y.innerMode(A,z.htmlState);(Q.mode.name=="xml"&&Q.state.tagStart===null&&!Q.state.context&&Q.state.tokenize.isInText||z.md_inside&&W.current().indexOf(">")>-1)&&(z.f=O,z.block=E,z.htmlState=null)}return V}function _(W,z){var V=z.listStack[z.listStack.length-1]||0,Q=z.indentation<V,G=V+3;if(z.fencedEndRE&&z.indentation<=G&&(Q||W.match(z.fencedEndRE))){x.highlightFormatting&&(z.formatting="code-block");var ee;return Q||(ee=T(z)),z.localMode=z.localState=null,z.block=E,z.f=O,z.fencedEndRE=null,z.code=0,z.thisLine.fencedCodeEnd=!0,Q?v(W,z,z.block):ee}else return z.localMode?z.localMode.token(W,z.localState):(W.skipToEnd(),h.code)}function T(W){var z=[];if(W.formatting){z.push(h.formatting),typeof W.formatting=="string"&&(W.formatting=[W.formatting]);for(var V=0;V<W.formatting.length;V++)z.push(h.formatting+"-"+W.formatting[V]),W.formatting[V]==="header"&&z.push(h.formatting+"-"+W.formatting[V]+"-"+W.header),W.formatting[V]==="quote"&&(!x.maxBlockquoteDepth||x.maxBlockquoteDepth>=W.quote?z.push(h.formatting+"-"+W.formatting[V]+"-"+W.quote):z.push("error"))}if(W.taskOpen)return z.push("meta"),z.length?z.join(" "):null;if(W.taskClosed)return z.push("property"),z.length?z.join(" "):null;if(W.linkHref?z.push(h.linkHref,"url"):(W.strong&&z.push(h.strong),W.em&&z.push(h.em),W.strikethrough&&z.push(h.strikethrough),W.emoji&&z.push(h.emoji),W.linkText&&z.push(h.linkText),W.code&&z.push(h.code),W.image&&z.push(h.image),W.imageAltText&&z.push(h.imageAltText,"link"),W.imageMarker&&z.push(h.imageMarker)),W.header&&z.push(h.header,h.header+"-"+W.header),W.quote&&(z.push(h.quote),!x.maxBlockquoteDepth||x.maxBlockquoteDepth>=W.quote?z.push(h.quote+"-"+W.quote):z.push(h.quote+"-"+x.maxBlockquoteDepth)),W.list!==!1){var Q=(W.listStack.length-1)%3;Q?Q===1?z.push(h.list2):z.push(h.list3):z.push(h.list1)}return W.trailingSpaceNewLine?z.push("trailing-space-new-line"):W.trailingSpace&&z.push("trailing-space-"+(W.trailingSpace%2?"a":"b")),z.length?z.join(" "):null}function w(W,z){return W.match(l,!0)?T(z):void 0}function O(W,z){var V=z.text(W,z);if(typeof V!="undefined")return V;if(z.list)return z.list=null,T(z);if(z.taskList){var Q=W.match(t,!0)[1]===" ";return Q?z.taskOpen=!0:z.taskClosed=!0,x.highlightFormatting&&(z.formatting="task"),z.taskList=!1,T(z)}if(z.taskOpen=!1,z.taskClosed=!1,z.header&&W.match(/^#+$/,!0))return x.highlightFormatting&&(z.formatting="header"),T(z);var G=W.next();if(z.linkTitle){z.linkTitle=!1;var ee=G;G==="("&&(ee=")"),ee=(ee+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ce="^\\s*(?:[^"+ee+"\\\\]+|\\\\\\\\|\\\\.)"+ee;if(W.match(new RegExp(ce),!0))return h.linkHref}if(G==="`"){var be=z.formatting;x.highlightFormatting&&(z.formatting="code"),W.eatWhile("`");var le=W.current().length;if(z.code==0&&(!z.quote||le==1))return z.code=le,T(z);if(le==z.code){var Ie=T(z);return z.code=0,Ie}else return z.formatting=be,T(z)}else if(z.code)return T(z);if(G==="\\"&&(W.next(),x.highlightFormatting)){var ke=T(z),Re=h.formatting+"-escape";return ke?ke+" "+Re:Re}if(G==="!"&&W.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return z.imageMarker=!0,z.image=!0,x.highlightFormatting&&(z.formatting="image"),T(z);if(G==="["&&z.imageMarker&&W.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return z.imageMarker=!1,z.imageAltText=!0,x.highlightFormatting&&(z.formatting="image"),T(z);if(G==="]"&&z.imageAltText){x.highlightFormatting&&(z.formatting="image");var ke=T(z);return z.imageAltText=!1,z.image=!1,z.inline=z.f=R,ke}if(G==="["&&!z.image)return z.linkText&&W.match(/^.*?\]/)||(z.linkText=!0,x.highlightFormatting&&(z.formatting="link")),T(z);if(G==="]"&&z.linkText){x.highlightFormatting&&(z.formatting="link");var ke=T(z);return z.linkText=!1,z.inline=z.f=W.match(/\(.*?\)| ?\[.*?\]/,!1)?R:O,ke}if(G==="<"&&W.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){z.f=z.inline=I,x.highlightFormatting&&(z.formatting="link");var ke=T(z);return ke?ke+=" ":ke="",ke+h.linkInline}if(G==="<"&&W.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){z.f=z.inline=I,x.highlightFormatting&&(z.formatting="link");var ke=T(z);return ke?ke+=" ":ke="",ke+h.linkEmail}if(x.xml&&G==="<"&&W.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Qe=W.string.indexOf(">",W.pos);if(Qe!=-1){var We=W.string.substring(W.start,Qe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(We)&&(z.md_inside=!0)}return W.backUp(1),z.htmlState=y.startState(A),v(W,z,C)}if(x.xml&&G==="<"&&W.match(/^\/\w*?>/))return z.md_inside=!1,"tag";if(G==="*"||G==="_"){for(var ot=1,Oe=W.pos==1?" ":W.string.charAt(W.pos-2);ot<3&&W.eat(G);)ot++;var oe=W.peek()||" ",st=!/\s/.test(oe)&&(!c.test(oe)||/\s/.test(Oe)||c.test(Oe)),he=!/\s/.test(Oe)&&(!c.test(Oe)||/\s/.test(oe)||c.test(oe)),J=null,Y=null;if(ot%2&&(!z.em&&st&&(G==="*"||!he||c.test(Oe))?J=!0:z.em==G&&he&&(G==="*"||!st||c.test(oe))&&(J=!1)),ot>1&&(!z.strong&&st&&(G==="*"||!he||c.test(Oe))?Y=!0:z.strong==G&&he&&(G==="*"||!st||c.test(oe))&&(Y=!1)),Y!=null||J!=null){x.highlightFormatting&&(z.formatting=J==null?"strong":Y==null?"em":"strong em"),J===!0&&(z.em=G),Y===!0&&(z.strong=G);var Ie=T(z);return J===!1&&(z.em=!1),Y===!1&&(z.strong=!1),Ie}}else if(G===" "&&(W.eat("*")||W.eat("_"))){if(W.peek()===" ")return T(z);W.backUp(1)}if(x.strikethrough){if(G==="~"&&W.eatWhile(G)){if(z.strikethrough){x.highlightFormatting&&(z.formatting="strikethrough");var Ie=T(z);return z.strikethrough=!1,Ie}else if(W.match(/^[^\s]/,!1))return z.strikethrough=!0,x.highlightFormatting&&(z.formatting="strikethrough"),T(z)}else if(G===" "&&W.match(/^~~/,!0)){if(W.peek()===" ")return T(z);W.backUp(2)}}if(x.emoji&&G===":"&&W.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){z.emoji=!0,x.highlightFormatting&&(z.formatting="emoji");var $=T(z);return z.emoji=!1,$}return G===" "&&(W.match(/^ +$/,!1)?z.trailingSpace++:z.trailingSpace&&(z.trailingSpaceNewLine=!0)),T(z)}function I(W,z){var V=W.next();if(V===">"){z.f=z.inline=O,x.highlightFormatting&&(z.formatting="link");var Q=T(z);return Q?Q+=" ":Q="",Q+h.linkInline}return W.match(/^[^>]+/,!0),h.linkInline}function R(W,z){if(W.eatSpace())return null;var V=W.next();return V==="("||V==="["?(z.f=z.inline=F(V==="("?")":"]"),x.highlightFormatting&&(z.formatting="link-string"),z.linkHref=!0,T(z)):"error"}var M={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function F(W){return function(z,V){var Q=z.next();if(Q===W){V.f=V.inline=O,x.highlightFormatting&&(V.formatting="link-string");var G=T(V);return V.linkHref=!1,G}return z.match(M[W]),V.linkHref=!0,T(V)}}function P(W,z){return W.match(/^([^\]\\]|\\.)*\]:/,!1)?(z.f=X,W.next(),x.highlightFormatting&&(z.formatting="link"),z.linkText=!0,T(z)):g(W,z,O)}function X(W,z){if(W.match(/^\]:/,!0)){z.f=z.inline=B,x.highlightFormatting&&(z.formatting="link");var V=T(z);return z.linkText=!1,V}return W.match(/^([^\]\\]|\\.)+/,!0),h.linkText}function B(W,z){return W.eatSpace()?null:(W.match(/^[^\s]+/,!0),W.peek()===void 0?z.linkTitle=!0:W.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),z.f=z.inline=O,h.linkHref+" url")}var j={startState:function(){return{f:E,prevLine:{stream:null},thisLine:{stream:null},block:E,htmlState:null,indentation:0,inline:O,text:w,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(z){return{f:z.f,prevLine:z.prevLine,thisLine:z.thisLine,block:z.block,htmlState:z.htmlState&&y.copyState(A,z.htmlState),indentation:z.indentation,localMode:z.localMode,localState:z.localMode?y.copyState(z.localMode,z.localState):null,inline:z.inline,text:z.text,formatting:!1,linkText:z.linkText,linkTitle:z.linkTitle,linkHref:z.linkHref,code:z.code,em:z.em,strong:z.strong,strikethrough:z.strikethrough,emoji:z.emoji,header:z.header,setext:z.setext,hr:z.hr,taskList:z.taskList,list:z.list,listStack:z.listStack.slice(0),quote:z.quote,indentedCode:z.indentedCode,trailingSpace:z.trailingSpace,trailingSpaceNewLine:z.trailingSpaceNewLine,md_inside:z.md_inside,fencedEndRE:z.fencedEndRE}},token:function(z,V){if(V.formatting=!1,z!=V.thisLine.stream){if(V.header=0,V.hr=!1,z.match(/^\s*$/,!0))return S(V),null;if(V.prevLine=V.thisLine,V.thisLine={stream:z},V.taskList=!1,V.trailingSpace=0,V.trailingSpaceNewLine=!1,!V.localState&&(V.f=V.block,V.f!=C)){var Q=z.match(/^\s*/,!0)[0].replace(/\t/g,d).length;if(V.indentation=Q,V.indentationDiff=null,Q>0)return null}}return V.f(z,V)},innerMode:function(z){return z.block==C?{state:z.htmlState,mode:A}:z.localState?{state:z.localState,mode:z.localMode}:{state:z,mode:j}},indent:function(z,V,Q){return z.block==C&&A.indent?A.indent(z.htmlState,V,Q):z.localState&&z.localMode.indent?z.localMode.indent(z.localState,V,Q):y.Pass},blankLine:S,getType:T,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return j},"xml"),y.defineMIME("text/markdown","markdown"),y.defineMIME("text/x-markdown","markdown")})},laiN:function(k,D,n){var y=n("ProS");n("GVMX"),n("MH26"),y.registerPreprocessor(function(p){p.markLine=p.markLine||{}})},ljhN:function(k,D){function n(y,p){return y===p||y!==y&&p!==p}k.exports=n},lnY3:function(k,D,n){},loD1:function(k,D){function n(y,p,x,A,m,f,h){if(m===0)return!1;var u=m,a=0,i=y;if(h>p+u&&h>A+u||h<p-u&&h<A-u||f>y+u&&f>x+u||f<y-u&&f<x-u)return!1;if(y!==x)a=(p-A)/(y-x),i=(y*A-x*p)/(y-x);else return Math.abs(f-y)<=u/2;var t=a*f-h+i,o=t*t/(a*a+1);return o<=u/2*u/2}D.containStroke=n},lr6o:function(k,D,n){"use strict";var y=n("rePB"),p=n("Ff2n"),x=n("VTBJ"),A=n("1OyB"),m=n("vuIU"),f=n("JX7q"),h=n("Ji7U"),u=n("LK+K"),a=n("q1tI"),i=n("TSYQ"),t=n.n(i),o=n("FTAc"),e=n("wPhX"),l=function(C){var _=C.prefixCls,T=C.level,w=C.isStart,O=C.isEnd;if(!T)return null;for(var I="".concat(_,"-indent-unit"),R=[],M=0;M<T;M+=1){var F;R.push(a.createElement("span",{key:M,className:t()(I,(F={},Object(y.a)(F,"".concat(I,"-start"),w[M+1]),Object(y.a)(F,"".concat(I,"-end"),O[M+1]),Object(y.a)(F,"".concat(I,"-end-first-level"),!M&&O[0]),F))}))}return a.createElement("span",{"aria-hidden":"true",className:"".concat(_,"-indent")},R)},r=l,s=n("c3jg"),c="open",d="close",g="---",v=function(E){Object(h.a)(_,E);var C=Object(u.a)(_);function _(){var T;return Object(A.a)(this,_),T=C.apply(this,arguments),T.state={dragNodeHighlight:!1},T.onSelectorClick=function(w){var O=T.props.context.onNodeClick;O(w,Object(s.b)(T.props)),T.isSelectable()?T.onSelect(w):T.onCheck(w)},T.onSelectorDoubleClick=function(w){var O=T.props.context.onNodeDoubleClick;O(w,Object(s.b)(T.props))},T.onSelect=function(w){if(T.isDisabled())return;var O=T.props.context.onNodeSelect;w.preventDefault(),O(w,Object(s.b)(T.props))},T.onCheck=function(w){if(T.isDisabled())return;var O=T.props,I=O.disableCheckbox,R=O.checked,M=T.props.context.onNodeCheck;if(!T.isCheckable()||I)return;w.preventDefault();var F=!R;M(w,Object(s.b)(T.props),F)},T.onMouseEnter=function(w){var O=T.props.context.onNodeMouseEnter;O(w,Object(s.b)(T.props))},T.onMouseLeave=function(w){var O=T.props.context.onNodeMouseLeave;O(w,Object(s.b)(T.props))},T.onContextMenu=function(w){var O=T.props.context.onNodeContextMenu;O(w,Object(s.b)(T.props))},T.onDragStart=function(w){var O=T.props.context.onNodeDragStart;w.stopPropagation(),T.setState({dragNodeHighlight:!0}),O(w,Object(f.a)(T));try{w.dataTransfer.setData("text/plain","")}catch(I){}},T.onDragEnter=function(w){var O=T.props.context.onNodeDragEnter;w.preventDefault(),w.stopPropagation(),O(w,Object(f.a)(T))},T.onDragOver=function(w){var O=T.props.context.onNodeDragOver;w.preventDefault(),w.stopPropagation(),O(w,Object(f.a)(T))},T.onDragLeave=function(w){var O=T.props.context.onNodeDragLeave;w.stopPropagation(),O(w,Object(f.a)(T))},T.onDragEnd=function(w){var O=T.props.context.onNodeDragEnd;w.stopPropagation(),T.setState({dragNodeHighlight:!1}),O(w,Object(f.a)(T))},T.onDrop=function(w){var O=T.props.context.onNodeDrop;w.preventDefault(),w.stopPropagation(),T.setState({dragNodeHighlight:!1}),O(w,Object(f.a)(T))},T.onExpand=function(w){var O=T.props.context.onNodeExpand;O(w,Object(s.b)(T.props))},T.setSelectHandle=function(w){T.selectHandle=w},T.getNodeState=function(){var w=T.props.expanded;return T.isLeaf()?null:w?c:d},T.hasChildren=function(){var w=T.props.eventKey,O=T.props.context.keyEntities,I=O[w]||{},R=I.children;return!!(R||[]).length},T.isLeaf=function(){var w=T.props,O=w.isLeaf,I=w.loaded,R=T.props.context.loadData,M=T.hasChildren();return O===!1?!1:O||!R&&!M||R&&I&&!M},T.isDisabled=function(){var w=T.props.disabled,O=T.props.context.disabled;return!!(O||w)},T.isCheckable=function(){var w=T.props.checkable,O=T.props.context.checkable;return!O||w===!1?!1:O},T.syncLoadData=function(w){var O=w.expanded,I=w.loading,R=w.loaded,M=T.props.context,F=M.loadData,P=M.onNodeLoad;if(I)return;F&&O&&!T.isLeaf()&&(!T.hasChildren()&&!R&&P(Object(s.b)(T.props)))},T.renderSwitcher=function(){var w=T.props,O=w.expanded,I=w.switcherIcon,R=T.props.context,M=R.prefixCls,F=R.switcherIcon,P=I||F;if(T.isLeaf())return a.createElement("span",{className:t()("".concat(M,"-switcher"),"".concat(M,"-switcher-noop"))},typeof P=="function"?P(Object(x.a)(Object(x.a)({},T.props),{},{isLeaf:!0})):P);var X=t()("".concat(M,"-switcher"),"".concat(M,"-switcher_").concat(O?c:d));return a.createElement("span",{onClick:T.onExpand,className:X},typeof P=="function"?P(Object(x.a)(Object(x.a)({},T.props),{},{isLeaf:!1})):P)},T.renderCheckbox=function(){var w=T.props,O=w.checked,I=w.halfChecked,R=w.disableCheckbox,M=T.props.context.prefixCls,F=T.isDisabled(),P=T.isCheckable();if(!P)return null;var X=typeof P!="boolean"?P:null;return a.createElement("span",{className:t()("".concat(M,"-checkbox"),O&&"".concat(M,"-checkbox-checked"),!O&&I&&"".concat(M,"-checkbox-indeterminate"),(F||R)&&"".concat(M,"-checkbox-disabled")),onClick:T.onCheck},X)},T.renderIcon=function(){var w=T.props.loading,O=T.props.context.prefixCls;return a.createElement("span",{className:t()("".concat(O,"-iconEle"),"".concat(O,"-icon__").concat(T.getNodeState()||"docu"),w&&"".concat(O,"-icon_loading"))})},T.renderSelector=function(){var w=T.state.dragNodeHighlight,O=T.props,I=O.title,R=O.selected,M=O.icon,F=O.loading,P=O.data,X=T.props.context,B=X.prefixCls,j=X.showIcon,W=X.icon,z=X.draggable,V=X.loadData,Q=X.titleRender,G=T.isDisabled(),ee="".concat(B,"-node-content-wrapper"),ce;if(j){var be=M||W;ce=be?a.createElement("span",{className:t()("".concat(B,"-iconEle"),"".concat(B,"-icon__customize"))},typeof be=="function"?be(T.props):be):T.renderIcon()}else V&&F&&(ce=T.renderIcon());var le;typeof I=="function"?le=I(P):Q?le=Q(P):le=I;var Ie=a.createElement("span",{className:"".concat(B,"-title")},le);return a.createElement("span",{ref:T.setSelectHandle,title:typeof I=="string"?I:"",className:t()("".concat(ee),"".concat(ee,"-").concat(T.getNodeState()||"normal"),!G&&(R||w)&&"".concat(B,"-node-selected"),!G&&z&&"draggable"),draggable:!G&&z||void 0,"aria-grabbed":!G&&z||void 0,onMouseEnter:T.onMouseEnter,onMouseLeave:T.onMouseLeave,onContextMenu:T.onContextMenu,onClick:T.onSelectorClick,onDoubleClick:T.onSelectorDoubleClick,onDragStart:z?T.onDragStart:void 0},ce,Ie)},T}return Object(m.a)(_,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var w=this.props.selectable,O=this.props.context.selectable;return typeof w=="boolean"?w:O}},{key:"render",value:function(){var w,O=this.props,I=O.eventKey,R=O.className,M=O.style,F=O.dragOver,P=O.dragOverGapTop,X=O.dragOverGapBottom,B=O.isLeaf,j=O.isStart,W=O.isEnd,z=O.expanded,V=O.selected,Q=O.checked,G=O.halfChecked,ee=O.loading,ce=O.domRef,be=O.active,le=O.onMouseMove,Ie=Object(p.a)(O,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),ke=this.props.context,Re=ke.prefixCls,Qe=ke.filterTreeNode,We=ke.draggable,ot=ke.keyEntities,Oe=this.isDisabled(),oe=Object(e.f)(Ie),st=ot[I]||{},he=st.level,J=W[W.length-1];return a.createElement("div",Object.assign({ref:ce,className:t()(R,"".concat(Re,"-treenode"),(w={},Object(y.a)(w,"".concat(Re,"-treenode-disabled"),Oe),Object(y.a)(w,"".concat(Re,"-treenode-switcher-").concat(z?"open":"close"),!B),Object(y.a)(w,"".concat(Re,"-treenode-checkbox-checked"),Q),Object(y.a)(w,"".concat(Re,"-treenode-checkbox-indeterminate"),G),Object(y.a)(w,"".concat(Re,"-treenode-selected"),V),Object(y.a)(w,"".concat(Re,"-treenode-loading"),ee),Object(y.a)(w,"".concat(Re,"-treenode-active"),be),Object(y.a)(w,"".concat(Re,"-treenode-leaf-last"),J),Object(y.a)(w,"drag-over",!Oe&&F),Object(y.a)(w,"drag-over-gap-top",!Oe&&P),Object(y.a)(w,"drag-over-gap-bottom",!Oe&&X),Object(y.a)(w,"filter-node",Qe&&Qe(Object(s.b)(this.props))),w)),style:M,onDragEnter:We?this.onDragEnter:void 0,onDragOver:We?this.onDragOver:void 0,onDragLeave:We?this.onDragLeave:void 0,onDrop:We?this.onDrop:void 0,onDragEnd:We?this.onDragEnd:void 0,onMouseMove:le},oe),a.createElement(r,{prefixCls:Re,level:he,isStart:j,isEnd:W}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),_}(a.Component),b=function(C){return a.createElement(o.a.Consumer,null,function(_){return a.createElement(v,Object.assign({},C,{context:_}))})};b.displayName="TreeNode",b.defaultProps={title:g},b.isTreeNode=1;var S=D.a=b},lrIw:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("cDf5"),A=n.n(x),m=n("J4zp"),f=n.n(m),h=n("q1tI"),u=n.n(h),a=n("Zm9Q"),i=n("TSYQ"),t=n.n(i),o=n("BGR+"),e=n("2fM7"),l=n("H84U"),r=n("uaoM"),s=n("0n0R"),c=e.a.Option,d=e.a;function g(S){return S&&S.type&&(S.type.isSelectOption||S.type.isSelectOptGroup)}var v=function(E,C){var _=E.prefixCls,T=E.className,w=E.children,O=E.dataSource,I=Object(a.a)(w),R=h.useRef();h.useImperativeHandle(C,function(){return R.current});var M;if(I.length===1&&Object(s.b)(I[0])&&!g(I[0])){var F=f()(I,1);M=F[0]}var P=function(){return M},X;return I.length&&g(I[0])?X=w:X=O?O.map(function(B){if(Object(s.b)(B))return B;switch(A()(B)){case"string":return h.createElement(c,{key:B,value:B},B);case"object":{var j=B.value;return h.createElement(c,{key:j,value:j},B.text)}default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[],h.useEffect(function(){Object(r.a)(!("dataSource"in E),"AutoComplete","`dataSource` is deprecated, please use `options` instead."),Object(r.a)(!M||!("size"in E),"AutoComplete","You need to control style self instead of setting `size` when using customize input.")},[]),h.createElement(l.a,null,function(B){var j=B.getPrefixCls,W=j("select",_);return h.createElement(d,p()({ref:R},Object(o.default)(E,["dataSource"]),{prefixCls:W,className:t()(T,"".concat(W,"-auto-complete")),mode:e.a.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:P}),X)})},b=h.forwardRef(v);b.Option=c,D.a=b},lwQL:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("9wZj"),A=n("c8qY"),m=n("SgGq"),f=n("Ae+d"),h=n("xSat"),u=h.onIrrelevantElement,a=n("IwbS"),i=n("SA8n"),t=n("U/Mo"),o=t.getNodeGlobalScale,e="__focusNodeAdjacency",l="__unfocusNodeAdjacency",r=["itemStyle","opacity"],s=["lineStyle","opacity"];function c(b,S){var E=b.getVisual("opacity");return E!=null?E:b.getModel().get(S)}function d(b,S,E){var C=b.getGraphicEl(),_=c(b,S);E!=null&&(_==null&&(_=1),_*=E),C.downplay&&C.downplay(),C.traverse(function(T){if(!T.isGroup){var w=T.lineLabelOriginalOpacity;(w==null||E!=null)&&(w=_),T.setStyle("opacity",w)}})}function g(b,S){var E=c(b,S),C=b.getGraphicEl();C.traverse(function(_){!_.isGroup&&_.setStyle("opacity",E)}),C.highlight&&C.highlight()}var v=y.extendChartView({type:"graph",init:function(b,S){var E=new x,C=new A,_=this.group;this._controller=new m(S.getZr()),this._controllerHost={target:_},_.add(E.group),_.add(C.group),this._symbolDraw=E,this._lineDraw=C,this._firstRender=!0},render:function(b,S,E){var C=this,_=b.coordinateSystem;this._model=b;var T=this._symbolDraw,w=this._lineDraw,O=this.group;if(_.type==="view"){var I={position:_.position,scale:_.scale};this._firstRender?O.attr(I):a.updateProps(O,I,b)}i(b.getGraph(),o(b));var R=b.getData();T.updateData(R);var M=b.getEdgeData();w.updateData(M),this._updateNodeAndLinkScale(),this._updateController(b,S,E),clearTimeout(this._layoutTimeout);var F=b.forceLayout,P=b.get("force.layoutAnimation");F&&this._startForceLayoutIteration(F,P),R.eachItemGraphicEl(function(W,z){var V=R.getItemModel(z);W.off("drag").off("dragend");var Q=V.get("draggable");Q&&W.on("drag",function(){F&&(F.warmUp(),!this._layouting&&this._startForceLayoutIteration(F,P),F.setFixed(z),R.setItemLayout(z,W.position))},this).on("dragend",function(){F&&F.setUnfixed(z)},this),W.setDraggable(Q&&F),W[e]&&W.off("mouseover",W[e]),W[l]&&W.off("mouseout",W[l]),V.get("focusNodeAdjacency")&&(W.on("mouseover",W[e]=function(){C._clearTimer(),E.dispatchAction({type:"focusNodeAdjacency",seriesId:b.id,dataIndex:W.dataIndex})}),W.on("mouseout",W[l]=function(){C._dispatchUnfocus(E)}))},this),R.graph.eachEdge(function(W){var z=W.getGraphicEl();z[e]&&z.off("mouseover",z[e]),z[l]&&z.off("mouseout",z[l]),W.getModel().get("focusNodeAdjacency")&&(z.on("mouseover",z[e]=function(){C._clearTimer(),E.dispatchAction({type:"focusNodeAdjacency",seriesId:b.id,edgeDataIndex:W.dataIndex})}),z.on("mouseout",z[l]=function(){C._dispatchUnfocus(E)}))});var X=b.get("layout")==="circular"&&b.get("circular.rotateLabel"),B=R.getLayout("cx"),j=R.getLayout("cy");R.eachItemGraphicEl(function(W,z){var V=R.getItemModel(z),Q=V.get("label.rotate")||0,G=W.getSymbolPath();if(X){var ee=R.getItemLayout(z),ce=Math.atan2(ee[1]-j,ee[0]-B);ce<0&&(ce=Math.PI*2+ce);var be=ee[0]<B;be&&(ce=ce-Math.PI);var le=be?"left":"right";a.modifyLabelStyle(G,{textRotation:-ce,textPosition:le,textOrigin:"center"},{textPosition:le})}else a.modifyLabelStyle(G,{textRotation:Q*=Math.PI/180})}),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(b,S){var E=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){E._unfocusDelayTimer=null,b.dispatchAction({type:"unfocusNodeAdjacency",seriesId:E._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(b,S,E,C){var _=b.getData(),T=_.graph,w=C.dataIndex,O=C.edgeDataIndex,I=T.getNodeByIndex(w),R=T.getEdgeByIndex(O);if(!I&&!R)return;T.eachNode(function(M){d(M,r,.1)}),T.eachEdge(function(M){d(M,s,.1)}),I&&(g(I,r),p.each(I.edges,function(M){if(M.dataIndex<0)return;g(M,s),g(M.node1,r),g(M.node2,r)})),R&&(g(R,s),g(R.node1,r),g(R.node2,r))},unfocusNodeAdjacency:function(b,S,E,C){var _=b.getData().graph;_.eachNode(function(T){d(T,r)}),_.eachEdge(function(T){d(T,s)})},_startForceLayoutIteration:function(b,S){var E=this;(function C(){b.step(function(_){E.updateLayout(E._model),(E._layouting=!_)&&(S?E._layoutTimeout=setTimeout(C,16):C())})})()},_updateController:function(b,S,E){var C=this._controller,_=this._controllerHost,T=this.group;if(C.setPointerChecker(function(w,O,I){var R=T.getBoundingRect();return R.applyTransform(T.transform),R.contain(O,I)&&!u(w,E,b)}),b.coordinateSystem.type!=="view"){C.disable();return}C.enable(b.get("roam")),_.zoomLimit=b.get("scaleLimit"),_.zoom=b.coordinateSystem.getZoom(),C.off("pan").off("zoom").on("pan",function(w){f.updateViewOnPan(_,w.dx,w.dy),E.dispatchAction({seriesId:b.id,type:"graphRoam",dx:w.dx,dy:w.dy})}).on("zoom",function(w){f.updateViewOnZoom(_,w.scale,w.originX,w.originY),E.dispatchAction({seriesId:b.id,type:"graphRoam",zoom:w.scale,originX:w.originX,originY:w.originY}),this._updateNodeAndLinkScale(),i(b.getGraph(),o(b)),this._lineDraw.updateLayout()},this)},_updateNodeAndLinkScale:function(){var b=this._model,S=b.getData(),E=o(b),C=[E,E];S.eachItemGraphicEl(function(_,T){_.attr("scale",C)})},updateLayout:function(b){i(b.getGraph(),o(b)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(b,S){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});k.exports=v},m9t5:function(k,D,n){var y=n("KCsZ"),p=y([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),x={getAreaStyle:function(A,m){return p(this,A,m)}};k.exports=x},mFDi:function(k,D,n){var y=n("QBsz"),p=n("Fofx"),x=y.applyTransform,A=Math.min,m=Math.max;function f(u,a,i,t){i<0&&(u=u+i,i=-i),t<0&&(a=a+t,t=-t),this.x=u,this.y=a,this.width=i,this.height=t}f.prototype={constructor:f,union:function(a){var i=A(a.x,this.x),t=A(a.y,this.y);this.width=m(a.x+a.width,this.x+this.width)-i,this.height=m(a.y+a.height,this.y+this.height)-t,this.x=i,this.y=t},applyTransform:function(){var u=[],a=[],i=[],t=[];return function(o){if(!o)return;u[0]=i[0]=this.x,u[1]=t[1]=this.y,a[0]=t[0]=this.x+this.width,a[1]=i[1]=this.y+this.height,x(u,u,o),x(a,a,o),x(i,i,o),x(t,t,o),this.x=A(u[0],a[0],i[0],t[0]),this.y=A(u[1],a[1],i[1],t[1]);var e=m(u[0],a[0],i[0],t[0]),l=m(u[1],a[1],i[1],t[1]);this.width=e-this.x,this.height=l-this.y}}(),calculateTransform:function(a){var i=this,t=a.width/i.width,o=a.height/i.height,e=p.create();return p.translate(e,e,[-i.x,-i.y]),p.scale(e,e,[t,o]),p.translate(e,e,[a.x,a.y]),e},intersect:function(a){if(!a)return!1;a instanceof f||(a=f.create(a));var i=this,t=i.x,o=i.x+i.width,e=i.y,l=i.y+i.height,r=a.x,s=a.x+a.width,c=a.y,d=a.y+a.height;return!(o<r||s<t||l<c||d<e)},contain:function(a,i){var t=this;return a>=t.x&&a<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},clone:function(){return new f(this.x,this.y,this.width,this.height)},copy:function(a){this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},f.create=function(u){return new f(u.x,u.y,u.width,u.height)};var h=f;k.exports=h},mHUz:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={XK_VoidSymbol:16777215,XK_BackSpace:65288,XK_Tab:65289,XK_Linefeed:65290,XK_Clear:65291,XK_Return:65293,XK_Pause:65299,XK_Scroll_Lock:65300,XK_Sys_Req:65301,XK_Escape:65307,XK_Delete:65535,XK_Multi_key:65312,XK_Codeinput:65335,XK_SingleCandidate:65340,XK_MultipleCandidate:65341,XK_PreviousCandidate:65342,XK_Kanji:65313,XK_Muhenkan:65314,XK_Henkan_Mode:65315,XK_Henkan:65315,XK_Romaji:65316,XK_Hiragana:65317,XK_Katakana:65318,XK_Hiragana_Katakana:65319,XK_Zenkaku:65320,XK_Hankaku:65321,XK_Zenkaku_Hankaku:65322,XK_Touroku:65323,XK_Massyo:65324,XK_Kana_Lock:65325,XK_Kana_Shift:65326,XK_Eisu_Shift:65327,XK_Eisu_toggle:65328,XK_Kanji_Bangou:65335,XK_Zen_Koho:65341,XK_Mae_Koho:65342,XK_Home:65360,XK_Left:65361,XK_Up:65362,XK_Right:65363,XK_Down:65364,XK_Prior:65365,XK_Page_Up:65365,XK_Next:65366,XK_Page_Down:65366,XK_End:65367,XK_Begin:65368,XK_Select:65376,XK_Print:65377,XK_Execute:65378,XK_Insert:65379,XK_Undo:65381,XK_Redo:65382,XK_Menu:65383,XK_Find:65384,XK_Cancel:65385,XK_Help:65386,XK_Break:65387,XK_Mode_switch:65406,XK_script_switch:65406,XK_Num_Lock:65407,XK_KP_Space:65408,XK_KP_Tab:65417,XK_KP_Enter:65421,XK_KP_F1:65425,XK_KP_F2:65426,XK_KP_F3:65427,XK_KP_F4:65428,XK_KP_Home:65429,XK_KP_Left:65430,XK_KP_Up:65431,XK_KP_Right:65432,XK_KP_Down:65433,XK_KP_Prior:65434,XK_KP_Page_Up:65434,XK_KP_Next:65435,XK_KP_Page_Down:65435,XK_KP_End:65436,XK_KP_Begin:65437,XK_KP_Insert:65438,XK_KP_Delete:65439,XK_KP_Equal:65469,XK_KP_Multiply:65450,XK_KP_Add:65451,XK_KP_Separator:65452,XK_KP_Subtract:65453,XK_KP_Decimal:65454,XK_KP_Divide:65455,XK_KP_0:65456,XK_KP_1:65457,XK_KP_2:65458,XK_KP_3:65459,XK_KP_4:65460,XK_KP_5:65461,XK_KP_6:65462,XK_KP_7:65463,XK_KP_8:65464,XK_KP_9:65465,XK_F1:65470,XK_F2:65471,XK_F3:65472,XK_F4:65473,XK_F5:65474,XK_F6:65475,XK_F7:65476,XK_F8:65477,XK_F9:65478,XK_F10:65479,XK_F11:65480,XK_L1:65480,XK_F12:65481,XK_L2:65481,XK_F13:65482,XK_L3:65482,XK_F14:65483,XK_L4:65483,XK_F15:65484,XK_L5:65484,XK_F16:65485,XK_L6:65485,XK_F17:65486,XK_L7:65486,XK_F18:65487,XK_L8:65487,XK_F19:65488,XK_L9:65488,XK_F20:65489,XK_L10:65489,XK_F21:65490,XK_R1:65490,XK_F22:65491,XK_R2:65491,XK_F23:65492,XK_R3:65492,XK_F24:65493,XK_R4:65493,XK_F25:65494,XK_R5:65494,XK_F26:65495,XK_R6:65495,XK_F27:65496,XK_R7:65496,XK_F28:65497,XK_R8:65497,XK_F29:65498,XK_R9:65498,XK_F30:65499,XK_R10:65499,XK_F31:65500,XK_R11:65500,XK_F32:65501,XK_R12:65501,XK_F33:65502,XK_R13:65502,XK_F34:65503,XK_R14:65503,XK_F35:65504,XK_R15:65504,XK_Shift_L:65505,XK_Shift_R:65506,XK_Control_L:65507,XK_Control_R:65508,XK_Caps_Lock:65509,XK_Shift_Lock:65510,XK_Meta_L:65511,XK_Meta_R:65512,XK_Alt_L:65513,XK_Alt_R:65514,XK_Super_L:65515,XK_Super_R:65516,XK_Hyper_L:65517,XK_Hyper_R:65518,XK_ISO_Level3_Shift:65027,XK_ISO_Next_Group:65032,XK_ISO_Prev_Group:65034,XK_ISO_First_Group:65036,XK_ISO_Last_Group:65038,XK_space:32,XK_exclam:33,XK_quotedbl:34,XK_numbersign:35,XK_dollar:36,XK_percent:37,XK_ampersand:38,XK_apostrophe:39,XK_quoteright:39,XK_parenleft:40,XK_parenright:41,XK_asterisk:42,XK_plus:43,XK_comma:44,XK_minus:45,XK_period:46,XK_slash:47,XK_0:48,XK_1:49,XK_2:50,XK_3:51,XK_4:52,XK_5:53,XK_6:54,XK_7:55,XK_8:56,XK_9:57,XK_colon:58,XK_semicolon:59,XK_less:60,XK_equal:61,XK_greater:62,XK_question:63,XK_at:64,XK_A:65,XK_B:66,XK_C:67,XK_D:68,XK_E:69,XK_F:70,XK_G:71,XK_H:72,XK_I:73,XK_J:74,XK_K:75,XK_L:76,XK_M:77,XK_N:78,XK_O:79,XK_P:80,XK_Q:81,XK_R:82,XK_S:83,XK_T:84,XK_U:85,XK_V:86,XK_W:87,XK_X:88,XK_Y:89,XK_Z:90,XK_bracketleft:91,XK_backslash:92,XK_bracketright:93,XK_asciicircum:94,XK_underscore:95,XK_grave:96,XK_quoteleft:96,XK_a:97,XK_b:98,XK_c:99,XK_d:100,XK_e:101,XK_f:102,XK_g:103,XK_h:104,XK_i:105,XK_j:106,XK_k:107,XK_l:108,XK_m:109,XK_n:110,XK_o:111,XK_p:112,XK_q:113,XK_r:114,XK_s:115,XK_t:116,XK_u:117,XK_v:118,XK_w:119,XK_x:120,XK_y:121,XK_z:122,XK_braceleft:123,XK_bar:124,XK_braceright:125,XK_asciitilde:126,XK_nobreakspace:160,XK_exclamdown:161,XK_cent:162,XK_sterling:163,XK_currency:164,XK_yen:165,XK_brokenbar:166,XK_section:167,XK_diaeresis:168,XK_copyright:169,XK_ordfeminine:170,XK_guillemotleft:171,XK_notsign:172,XK_hyphen:173,XK_registered:174,XK_macron:175,XK_degree:176,XK_plusminus:177,XK_twosuperior:178,XK_threesuperior:179,XK_acute:180,XK_mu:181,XK_paragraph:182,XK_periodcentered:183,XK_cedilla:184,XK_onesuperior:185,XK_masculine:186,XK_guillemotright:187,XK_onequarter:188,XK_onehalf:189,XK_threequarters:190,XK_questiondown:191,XK_Agrave:192,XK_Aacute:193,XK_Acircumflex:194,XK_Atilde:195,XK_Adiaeresis:196,XK_Aring:197,XK_AE:198,XK_Ccedilla:199,XK_Egrave:200,XK_Eacute:201,XK_Ecircumflex:202,XK_Ediaeresis:203,XK_Igrave:204,XK_Iacute:205,XK_Icircumflex:206,XK_Idiaeresis:207,XK_ETH:208,XK_Eth:208,XK_Ntilde:209,XK_Ograve:210,XK_Oacute:211,XK_Ocircumflex:212,XK_Otilde:213,XK_Odiaeresis:214,XK_multiply:215,XK_Oslash:216,XK_Ooblique:216,XK_Ugrave:217,XK_Uacute:218,XK_Ucircumflex:219,XK_Udiaeresis:220,XK_Yacute:221,XK_THORN:222,XK_Thorn:222,XK_ssharp:223,XK_agrave:224,XK_aacute:225,XK_acircumflex:226,XK_atilde:227,XK_adiaeresis:228,XK_aring:229,XK_ae:230,XK_ccedilla:231,XK_egrave:232,XK_eacute:233,XK_ecircumflex:234,XK_ediaeresis:235,XK_igrave:236,XK_iacute:237,XK_icircumflex:238,XK_idiaeresis:239,XK_eth:240,XK_ntilde:241,XK_ograve:242,XK_oacute:243,XK_ocircumflex:244,XK_otilde:245,XK_odiaeresis:246,XK_division:247,XK_oslash:248,XK_ooblique:248,XK_ugrave:249,XK_uacute:250,XK_ucircumflex:251,XK_udiaeresis:252,XK_yacute:253,XK_thorn:254,XK_ydiaeresis:255,XK_Hangul:65329,XK_Hangul_Hanja:65332,XK_Hangul_Jeonja:65336,XF86XK_ModeLock:269025025,XF86XK_MonBrightnessUp:269025026,XF86XK_MonBrightnessDown:269025027,XF86XK_KbdLightOnOff:269025028,XF86XK_KbdBrightnessUp:269025029,XF86XK_KbdBrightnessDown:269025030,XF86XK_Standby:269025040,XF86XK_AudioLowerVolume:269025041,XF86XK_AudioMute:269025042,XF86XK_AudioRaiseVolume:269025043,XF86XK_AudioPlay:269025044,XF86XK_AudioStop:269025045,XF86XK_AudioPrev:269025046,XF86XK_AudioNext:269025047,XF86XK_HomePage:269025048,XF86XK_Mail:269025049,XF86XK_Start:269025050,XF86XK_Search:269025051,XF86XK_AudioRecord:269025052,XF86XK_Calculator:269025053,XF86XK_Memo:269025054,XF86XK_ToDoList:269025055,XF86XK_Calendar:269025056,XF86XK_PowerDown:269025057,XF86XK_ContrastAdjust:269025058,XF86XK_RockerUp:269025059,XF86XK_RockerDown:269025060,XF86XK_RockerEnter:269025061,XF86XK_Back:269025062,XF86XK_Forward:269025063,XF86XK_Stop:269025064,XF86XK_Refresh:269025065,XF86XK_PowerOff:269025066,XF86XK_WakeUp:269025067,XF86XK_Eject:269025068,XF86XK_ScreenSaver:269025069,XF86XK_WWW:269025070,XF86XK_Sleep:269025071,XF86XK_Favorites:269025072,XF86XK_AudioPause:269025073,XF86XK_AudioMedia:269025074,XF86XK_MyComputer:269025075,XF86XK_VendorHome:269025076,XF86XK_LightBulb:269025077,XF86XK_Shop:269025078,XF86XK_History:269025079,XF86XK_OpenURL:269025080,XF86XK_AddFavorite:269025081,XF86XK_HotLinks:269025082,XF86XK_BrightnessAdjust:269025083,XF86XK_Finance:269025084,XF86XK_Community:269025085,XF86XK_AudioRewind:269025086,XF86XK_BackForward:269025087,XF86XK_Launch0:269025088,XF86XK_Launch1:269025089,XF86XK_Launch2:269025090,XF86XK_Launch3:269025091,XF86XK_Launch4:269025092,XF86XK_Launch5:269025093,XF86XK_Launch6:269025094,XF86XK_Launch7:269025095,XF86XK_Launch8:269025096,XF86XK_Launch9:269025097,XF86XK_LaunchA:269025098,XF86XK_LaunchB:269025099,XF86XK_LaunchC:269025100,XF86XK_LaunchD:269025101,XF86XK_LaunchE:269025102,XF86XK_LaunchF:269025103,XF86XK_ApplicationLeft:269025104,XF86XK_ApplicationRight:269025105,XF86XK_Book:269025106,XF86XK_CD:269025107,XF86XK_Calculater:269025108,XF86XK_Clear:269025109,XF86XK_Close:269025110,XF86XK_Copy:269025111,XF86XK_Cut:269025112,XF86XK_Display:269025113,XF86XK_DOS:269025114,XF86XK_Documents:269025115,XF86XK_Excel:269025116,XF86XK_Explorer:269025117,XF86XK_Game:269025118,XF86XK_Go:269025119,XF86XK_iTouch:269025120,XF86XK_LogOff:269025121,XF86XK_Market:269025122,XF86XK_Meeting:269025123,XF86XK_MenuKB:269025125,XF86XK_MenuPB:269025126,XF86XK_MySites:269025127,XF86XK_New:269025128,XF86XK_News:269025129,XF86XK_OfficeHome:269025130,XF86XK_Open:269025131,XF86XK_Option:269025132,XF86XK_Paste:269025133,XF86XK_Phone:269025134,XF86XK_Q:269025136,XF86XK_Reply:269025138,XF86XK_Reload:269025139,XF86XK_RotateWindows:269025140,XF86XK_RotationPB:269025141,XF86XK_RotationKB:269025142,XF86XK_Save:269025143,XF86XK_ScrollUp:269025144,XF86XK_ScrollDown:269025145,XF86XK_ScrollClick:269025146,XF86XK_Send:269025147,XF86XK_Spell:269025148,XF86XK_SplitScreen:269025149,XF86XK_Support:269025150,XF86XK_TaskPane:269025151,XF86XK_Terminal:269025152,XF86XK_Tools:269025153,XF86XK_Travel:269025154,XF86XK_UserPB:269025156,XF86XK_User1KB:269025157,XF86XK_User2KB:269025158,XF86XK_Video:269025159,XF86XK_WheelButton:269025160,XF86XK_Word:269025161,XF86XK_Xfer:269025162,XF86XK_ZoomIn:269025163,XF86XK_ZoomOut:269025164,XF86XK_Away:269025165,XF86XK_Messenger:269025166,XF86XK_WebCam:269025167,XF86XK_MailForward:269025168,XF86XK_Pictures:269025169,XF86XK_Music:269025170,XF86XK_Battery:269025171,XF86XK_Bluetooth:269025172,XF86XK_WLAN:269025173,XF86XK_UWB:269025174,XF86XK_AudioForward:269025175,XF86XK_AudioRepeat:269025176,XF86XK_AudioRandomPlay:269025177,XF86XK_Subtitle:269025178,XF86XK_AudioCycleTrack:269025179,XF86XK_CycleAngle:269025180,XF86XK_FrameBack:269025181,XF86XK_FrameForward:269025182,XF86XK_Time:269025183,XF86XK_Select:269025184,XF86XK_View:269025185,XF86XK_TopMenu:269025186,XF86XK_Red:269025187,XF86XK_Green:269025188,XF86XK_Yellow:269025189,XF86XK_Blue:269025190,XF86XK_Suspend:269025191,XF86XK_Hibernate:269025192,XF86XK_TouchpadToggle:269025193,XF86XK_TouchpadOn:269025200,XF86XK_TouchpadOff:269025201,XF86XK_AudioMicMute:269025202,XF86XK_Switch_VT_1:269024769,XF86XK_Switch_VT_2:269024770,XF86XK_Switch_VT_3:269024771,XF86XK_Switch_VT_4:269024772,XF86XK_Switch_VT_5:269024773,XF86XK_Switch_VT_6:269024774,XF86XK_Switch_VT_7:269024775,XF86XK_Switch_VT_8:269024776,XF86XK_Switch_VT_9:269024777,XF86XK_Switch_VT_10:269024778,XF86XK_Switch_VT_11:269024779,XF86XK_Switch_VT_12:269024780,XF86XK_Ungrab:269024800,XF86XK_ClearGrab:269024801,XF86XK_Next_VMode:269024802,XF86XK_Prev_VMode:269024803,XF86XK_LogWindowTree:269024804,XF86XK_LogGrabInfo:269024805};D.default=y},mLcG:function(k,D){var n=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(y){setTimeout(y,16)};k.exports=n},mOdp:function(k,D,n){var y=n("bYtY"),p=y.createHashMap;function x(A){return{getTargetSeries:function(m){var f={},h=p();return m.eachSeriesByType(A,function(u){u.__paletteScope=f,h.set(u.uid,u)}),h},reset:function(m,f){var h=m.getRawData(),u={},a=m.getData();a.each(function(i){var t=a.getRawIndex(i);u[t]=i}),h.each(function(i){var t=u[i],o=t!=null&&a.getItemVisual(t,"color",!0),e=t!=null&&a.getItemVisual(t,"borderColor",!0),l;if((!o||!e)&&(l=h.getItemModel(i)),!o){var r=l.get("itemStyle.color")||m.getColorFromPalette(h.getName(i)||i+"",m.__paletteScope,h.count());t!=null&&a.setItemVisual(t,"color",r)}if(!e){var s=l.get("itemStyle.borderColor");t!=null&&a.setItemVisual(t,"borderColor",s)}})}}}k.exports=x},mTgk:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("mHUz"));function p(u){return u&&u.__esModule?u:{default:u}}var x={};function A(u,a){if(a===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(u in x)throw new Error('Duplicate entry for key "'+u+'"');x[u]=[a,a,a,a]}function m(u,a,i){if(a===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(i===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(u in x)throw new Error('Duplicate entry for key "'+u+'"');x[u]=[a,a,i,a]}function f(u,a,i){if(a===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(i===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(u in x)throw new Error('Duplicate entry for key "'+u+'"');x[u]=[a,a,a,i]}m("Alt",y.default.XK_Alt_L,y.default.XK_Alt_R),A("AltGraph",y.default.XK_ISO_Level3_Shift),A("CapsLock",y.default.XK_Caps_Lock),m("Control",y.default.XK_Control_L,y.default.XK_Control_R),m("Meta",y.default.XK_Super_L,y.default.XK_Super_R),A("NumLock",y.default.XK_Num_Lock),A("ScrollLock",y.default.XK_Scroll_Lock),m("Shift",y.default.XK_Shift_L,y.default.XK_Shift_R),f("Enter",y.default.XK_Return,y.default.XK_KP_Enter),A("Tab",y.default.XK_Tab),f(" ",y.default.XK_space,y.default.XK_KP_Space),f("ArrowDown",y.default.XK_Down,y.default.XK_KP_Down),f("ArrowUp",y.default.XK_Up,y.default.XK_KP_Up),f("ArrowLeft",y.default.XK_Left,y.default.XK_KP_Left),f("ArrowRight",y.default.XK_Right,y.default.XK_KP_Right),f("End",y.default.XK_End,y.default.XK_KP_End),f("Home",y.default.XK_Home,y.default.XK_KP_Home),f("PageDown",y.default.XK_Next,y.default.XK_KP_Next),f("PageUp",y.default.XK_Prior,y.default.XK_KP_Prior),A("Backspace",y.default.XK_BackSpace),f("Clear",y.default.XK_Clear,y.default.XK_KP_Begin),A("Copy",y.default.XF86XK_Copy),A("Cut",y.default.XF86XK_Cut),f("Delete",y.default.XK_Delete,y.default.XK_KP_Delete),f("Insert",y.default.XK_Insert,y.default.XK_KP_Insert),A("Paste",y.default.XF86XK_Paste),A("Redo",y.default.XK_Redo),A("Undo",y.default.XK_Undo),A("Cancel",y.default.XK_Cancel),A("ContextMenu",y.default.XK_Menu),A("Escape",y.default.XK_Escape),A("Execute",y.default.XK_Execute),A("Find",y.default.XK_Find),A("Help",y.default.XK_Help),A("Pause",y.default.XK_Pause),A("Select",y.default.XK_Select),A("ZoomIn",y.default.XF86XK_ZoomIn),A("ZoomOut",y.default.XF86XK_ZoomOut),A("BrightnessDown",y.default.XF86XK_MonBrightnessDown),A("BrightnessUp",y.default.XF86XK_MonBrightnessUp),A("Eject",y.default.XF86XK_Eject),A("LogOff",y.default.XF86XK_LogOff),A("Power",y.default.XF86XK_PowerOff),A("PowerOff",y.default.XF86XK_PowerDown),A("PrintScreen",y.default.XK_Print),A("Hibernate",y.default.XF86XK_Hibernate),A("Standby",y.default.XF86XK_Standby),A("WakeUp",y.default.XF86XK_WakeUp),A("AllCandidates",y.default.XK_MultipleCandidate),A("Alphanumeric",y.default.XK_Eisu_Shift),A("CodeInput",y.default.XK_Codeinput),A("Compose",y.default.XK_Multi_key),A("Convert",y.default.XK_Henkan),A("GroupFirst",y.default.XK_ISO_First_Group),A("GroupLast",y.default.XK_ISO_Last_Group),A("GroupNext",y.default.XK_ISO_Next_Group),A("GroupPrevious",y.default.XK_ISO_Prev_Group),A("NonConvert",y.default.XK_Muhenkan),A("PreviousCandidate",y.default.XK_PreviousCandidate),A("SingleCandidate",y.default.XK_SingleCandidate),A("HangulMode",y.default.XK_Hangul),A("HanjaMode",y.default.XK_Hangul_Hanja),A("JunjuaMode",y.default.XK_Hangul_Jeonja),A("Eisu",y.default.XK_Eisu_toggle),A("Hankaku",y.default.XK_Hankaku),A("Hiragana",y.default.XK_Hiragana),A("HiraganaKatakana",y.default.XK_Hiragana_Katakana),A("KanaMode",y.default.XK_Kana_Shift),A("KanjiMode",y.default.XK_Kanji),A("Katakana",y.default.XK_Katakana),A("Romaji",y.default.XK_Romaji),A("Zenkaku",y.default.XK_Zenkaku),A("ZenkakuHanaku",y.default.XK_Zenkaku_Hankaku),A("F1",y.default.XK_F1),A("F2",y.default.XK_F2),A("F3",y.default.XK_F3),A("F4",y.default.XK_F4),A("F5",y.default.XK_F5),A("F6",y.default.XK_F6),A("F7",y.default.XK_F7),A("F8",y.default.XK_F8),A("F9",y.default.XK_F9),A("F10",y.default.XK_F10),A("F11",y.default.XK_F11),A("F12",y.default.XK_F12),A("F13",y.default.XK_F13),A("F14",y.default.XK_F14),A("F15",y.default.XK_F15),A("F16",y.default.XK_F16),A("F17",y.default.XK_F17),A("F18",y.default.XK_F18),A("F19",y.default.XK_F19),A("F20",y.default.XK_F20),A("F21",y.default.XK_F21),A("F22",y.default.XK_F22),A("F23",y.default.XK_F23),A("F24",y.default.XK_F24),A("F25",y.default.XK_F25),A("F26",y.default.XK_F26),A("F27",y.default.XK_F27),A("F28",y.default.XK_F28),A("F29",y.default.XK_F29),A("F30",y.default.XK_F30),A("F31",y.default.XK_F31),A("F32",y.default.XK_F32),A("F33",y.default.XK_F33),A("F34",y.default.XK_F34),A("F35",y.default.XK_F35),A("Close",y.default.XF86XK_Close),A("MailForward",y.default.XF86XK_MailForward),A("MailReply",y.default.XF86XK_Reply),A("MailSend",y.default.XF86XK_Send),A("MediaFastForward",y.default.XF86XK_AudioForward),A("MediaPause",y.default.XF86XK_AudioPause),A("MediaPlay",y.default.XF86XK_AudioPlay),A("MediaRecord",y.default.XF86XK_AudioRecord),A("MediaRewind",y.default.XF86XK_AudioRewind),A("MediaStop",y.default.XF86XK_AudioStop),A("MediaTrackNext",y.default.XF86XK_AudioNext),A("MediaTrackPrevious",y.default.XF86XK_AudioPrev),A("New",y.default.XF86XK_New),A("Open",y.default.XF86XK_Open),A("Print",y.default.XK_Print),A("Save",y.default.XF86XK_Save),A("SpellCheck",y.default.XF86XK_Spell),A("AudioVolumeDown",y.default.XF86XK_AudioLowerVolume),A("AudioVolumeUp",y.default.XF86XK_AudioRaiseVolume),A("AudioVolumeMute",y.default.XF86XK_AudioMute),A("MicrophoneVolumeMute",y.default.XF86XK_AudioMicMute),A("LaunchApplication1",y.default.XF86XK_MyComputer),A("LaunchApplication2",y.default.XF86XK_Calculator),A("LaunchCalendar",y.default.XF86XK_Calendar),A("LaunchMail",y.default.XF86XK_Mail),A("LaunchMediaPlayer",y.default.XF86XK_AudioMedia),A("LaunchMusicPlayer",y.default.XF86XK_Music),A("LaunchPhone",y.default.XF86XK_Phone),A("LaunchScreenSaver",y.default.XF86XK_ScreenSaver),A("LaunchSpreadsheet",y.default.XF86XK_Excel),A("LaunchWebBrowser",y.default.XF86XK_WWW),A("LaunchWebCam",y.default.XF86XK_WebCam),A("LaunchWordProcessor",y.default.XF86XK_Word),A("BrowserBack",y.default.XF86XK_Back),A("BrowserFavorites",y.default.XF86XK_Favorites),A("BrowserForward",y.default.XF86XK_Forward),A("BrowserHome",y.default.XF86XK_HomePage),A("BrowserRefresh",y.default.XF86XK_Refresh),A("BrowserSearch",y.default.XF86XK_Search),A("BrowserStop",y.default.XF86XK_Stop),A("Dimmer",y.default.XF86XK_BrightnessAdjust),A("MediaAudioTrack",y.default.XF86XK_AudioCycleTrack),A("RandomToggle",y.default.XF86XK_AudioRandomPlay),A("SplitScreenToggle",y.default.XF86XK_SplitScreen),A("Subtitle",y.default.XF86XK_Subtitle),A("VideoModeNext",y.default.XF86XK_Next_VMode),f("=",y.default.XK_equal,y.default.XK_KP_Equal),f("+",y.default.XK_plus,y.default.XK_KP_Add),f("-",y.default.XK_minus,y.default.XK_KP_Subtract),f("*",y.default.XK_asterisk,y.default.XK_KP_Multiply),f("/",y.default.XK_slash,y.default.XK_KP_Divide),f(".",y.default.XK_period,y.default.XK_KP_Decimal),f(",",y.default.XK_comma,y.default.XK_KP_Separator),f("0",y.default.XK_0,y.default.XK_KP_0),f("1",y.default.XK_1,y.default.XK_KP_1),f("2",y.default.XK_2,y.default.XK_KP_2),f("3",y.default.XK_3,y.default.XK_KP_3),f("4",y.default.XK_4,y.default.XK_KP_4),f("5",y.default.XK_5,y.default.XK_KP_5),f("6",y.default.XK_6,y.default.XK_KP_6),f("7",y.default.XK_7,y.default.XK_KP_7),f("8",y.default.XK_8,y.default.XK_KP_8),f("9",y.default.XK_9,y.default.XK_KP_9);var h=x;D.default=h},mYwL:function(k,D,n){var y=n("bYtY"),p=n("IwbS"),x=n("6GrX"),A=Math.PI;function m(f,h){h=h||{},y.defaults(h,{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#c23531",spinnerRadius:10,lineWidth:5,zlevel:0});var u=new p.Group,a=new p.Rect({style:{fill:h.maskColor},zlevel:h.zlevel,z:1e4});u.add(a);var i=h.fontSize+" sans-serif",t=new p.Rect({style:{fill:"none",text:h.text,font:i,textPosition:"right",textDistance:10,textFill:h.textColor},zlevel:h.zlevel,z:10001});if(u.add(t),h.showSpinner){var o=new p.Arc({shape:{startAngle:-A/2,endAngle:-A/2+.1,r:h.spinnerRadius},style:{stroke:h.color,lineCap:"round",lineWidth:h.lineWidth},zlevel:h.zlevel,z:10001});o.animateShape(!0).when(1e3,{endAngle:A*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:A*3/2}).delay(300).start("circularInOut"),u.add(o)}return u.resize=function(){var e=x.getWidth(h.text,i),l=h.showSpinner?h.spinnerRadius:0,r=(f.getWidth()-l*2-(h.showSpinner&&e?10:0)-e)/2-(h.showSpinner?0:e/2),s=f.getHeight()/2;h.showSpinner&&o.setShape({cx:r,cy:s}),t.setShape({x:r-l,y:s-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:f.getWidth(),height:f.getHeight()})},u.resize(),u}k.exports=m},mdPL:function(k,D,n){(function(y){var p=n("WFqU"),x=D&&!D.nodeType&&D,A=x&&typeof y=="object"&&y&&!y.nodeType&&y,m=A&&A.exports===x,f=m&&p.process,h=function(){try{var u=A&&A.require&&A.require("util").types;return u||f&&f.binding&&f.binding("util")}catch(a){}}();y.exports=h}).call(this,n("YuTi")(k))},mdZa:function(k,D,n){"use strict";typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(p,x){"use strict";if(p==null)throw new TypeError("Cannot convert undefined or null to object");for(var A=Object(p),m=1;m<arguments.length;m++){var f=arguments[m];if(f!=null)for(var h in f)Object.prototype.hasOwnProperty.call(f,h)&&(A[h]=f[h])}return A},writable:!0,configurable:!0}),function(){function y(p,x){x=x||{bubbles:!1,cancelable:!1,detail:void 0};var A=document.createEvent("CustomEvent");return A.initCustomEvent(p,x.bubbles,x.cancelable,x.detail),A}y.prototype=window.Event.prototype,typeof window.CustomEvent!="function"&&(window.CustomEvent=y)}(),Number.isInteger=Number.isInteger||function(p){return typeof p=="number"&&isFinite(p)&&Math.floor(p)===p}},meAc:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("56O1"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},"mh/l":function(k,D,n){"use strict";n.d(D,"b",function(){return S}),n.d(D,"d",function(){return E}),n.d(D,"c",function(){return C});var y=n("pVnL"),p=n.n(y),x=n("lwsE"),A=n.n(x),m=n("W8MJ"),f=n.n(m),h=n("7W2i"),u=n.n(h),a=n("LQ03"),i=n.n(a),t=n("lSNA"),o=n.n(t),e=n("q1tI"),l=n.n(e),r=n("TSYQ"),s=n.n(r),c=n("BGR+"),d=n("LlR5"),g=n("H84U"),v=n("3Nzz"),b=n("uaoM");function S(T){return typeof T=="undefined"||T===null?"":T}function E(T,w,O){if(O){var I=w;if(w.type==="click"){I=Object.create(w),I.target=T,I.currentTarget=T;var R=T.value;T.value="",O(I),T.value=R;return}O(I)}}function C(T,w,O,I,R){var M;return s()(T,(M={},o()(M,"".concat(T,"-sm"),O==="small"),o()(M,"".concat(T,"-lg"),O==="large"),o()(M,"".concat(T,"-disabled"),I),o()(M,"".concat(T,"-rtl"),R==="rtl"),o()(M,"".concat(T,"-borderless"),!w),M))}var _=function(T){u()(O,T);var w=i()(O);function O(I){var R;A()(this,O),R=w.call(this,I),R.direction="ltr",R.focus=function(){R.input.focus()},R.saveClearableInput=function(F){R.clearableInput=F},R.saveInput=function(F){R.input=F},R.onFocus=function(F){var P=R.props.onFocus;R.setState({focused:!0},R.clearPasswordValueAttribute),P&&P(F)},R.onBlur=function(F){var P=R.props.onBlur;R.setState({focused:!1},R.clearPasswordValueAttribute),P&&P(F)},R.handleReset=function(F){R.setValue("",function(){R.focus()}),E(R.input,F,R.props.onChange)},R.renderInput=function(F,P,X){var B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},j=R.props,W=j.className,z=j.addonBefore,V=j.addonAfter,Q=j.size,G=j.disabled,ee=Object(c.default)(R.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return e.createElement("input",p()({autoComplete:B.autoComplete},ee,{onChange:R.handleChange,onFocus:R.onFocus,onBlur:R.onBlur,onKeyDown:R.handleKeyDown,className:s()(C(F,X,Q||P,G,R.direction),o()({},W,W&&!z&&!V)),ref:R.saveInput}))},R.clearPasswordValueAttribute=function(){R.removePasswordTimeout=setTimeout(function(){R.input&&R.input.getAttribute("type")==="password"&&R.input.hasAttribute("value")&&R.input.removeAttribute("value")})},R.handleChange=function(F){R.setValue(F.target.value,R.clearPasswordValueAttribute),E(R.input,F,R.props.onChange)},R.handleKeyDown=function(F){var P=R.props,X=P.onPressEnter,B=P.onKeyDown;F.keyCode===13&&X&&X(F),B&&B(F)},R.renderComponent=function(F){var P=F.getPrefixCls,X=F.direction,B=F.input,j=R.state,W=j.value,z=j.focused,V=R.props,Q=V.prefixCls,G=V.bordered,ee=G===void 0?!0:G,ce=P("input",Q);return R.direction=X,e.createElement(v.b.Consumer,null,function(be){return e.createElement(d.a,p()({size:be},R.props,{prefixCls:ce,inputType:"input",value:S(W),element:R.renderInput(ce,be,ee,B),handleReset:R.handleReset,ref:R.saveClearableInput,direction:X,focused:z,triggerFocus:R.focus,bordered:ee}))})};var M=typeof I.value=="undefined"?I.defaultValue:I.value;return R.state={value:M,focused:!1,prevValue:I.value},R}return f()(O,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(R){return Object(d.b)(R)!==Object(d.b)(this.props)&&Object(b.a)(this.input!==document.activeElement,"Input","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),null}},{key:"componentWillUnmount",value:function(){this.removePasswordTimeout&&clearTimeout(this.removePasswordTimeout)}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"setValue",value:function(R,M){this.props.value===void 0&&this.setState({value:R},M)}},{key:"render",value:function(){return e.createElement(g.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(R,M){var F=M.prevValue,P={prevValue:R.value};return(R.value!==void 0||F!==R.value)&&(P.value=R.value),P}}]),O}(e.Component);_.defaultProps={type:"text"},D.a=_},mr32:function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),A=n.n(x),m=n("J4zp"),f=n.n(m),h=n("q1tI"),u=n("TSYQ"),a=n.n(u),i=n("BGR+"),t=n("1S0Z"),o=n.n(t),e=n("H84U"),l=function(_,T){var w={};for(var O in _)Object.prototype.hasOwnProperty.call(_,O)&&T.indexOf(O)<0&&(w[O]=_[O]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,O=Object.getOwnPropertySymbols(_);I<O.length;I++)T.indexOf(O[I])<0&&Object.prototype.propertyIsEnumerable.call(_,O[I])&&(w[O[I]]=_[O[I]]);return w},r=function(T){var w,O=h.useContext(e.b),I=O.getPrefixCls,R=function(z){var V=T.checked,Q=T.onChange,G=T.onClick;Q&&Q(!V),G&&G(z)},M=T.prefixCls,F=T.className,P=T.checked,X=l(T,["prefixCls","className","checked"]),B=I("tag",M),j=a()(B,(w={},p()(w,"".concat(B,"-checkable"),!0),p()(w,"".concat(B,"-checkable-checked"),P),w),F);return delete X.onChange,h.createElement("span",A()({},X,{className:j,onClick:R}))},s=r,c=n("09Wf"),d=n("g0mS"),g=function(_,T){var w={};for(var O in _)Object.prototype.hasOwnProperty.call(_,O)&&T.indexOf(O)<0&&(w[O]=_[O]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,O=Object.getOwnPropertySymbols(_);I<O.length;I++)T.indexOf(O[I])<0&&Object.prototype.propertyIsEnumerable.call(_,O[I])&&(w[O[I]]=_[O[I]]);return w},v=new RegExp("^(".concat(c.a.join("|"),")(-inverse)?$")),b=new RegExp("^(".concat(c.b.join("|"),")$")),S=function(T,w){var O,I=T.prefixCls,R=T.className,M=T.style,F=T.children,P=T.icon,X=T.color,B=T.onClose,j=T.closeIcon,W=T.closable,z=W===void 0?!1:W,V=g(T,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),Q=h.useContext(e.b),G=Q.getPrefixCls,ee=Q.direction,ce=h.useState(!0),be=f()(ce,2),le=be[0],Ie=be[1];h.useEffect(function(){"visible"in V&&Ie(V.visible)},[V.visible]);var ke=function(){return X?v.test(X)||b.test(X):!1},Re=A()({backgroundColor:X&&!ke()?X:void 0},M),Qe=ke(),We=G("tag",I),ot=a()(We,(O={},p()(O,"".concat(We,"-").concat(X),Qe),p()(O,"".concat(We,"-has-color"),X&&!Qe),p()(O,"".concat(We,"-hidden"),!le),p()(O,"".concat(We,"-rtl"),ee==="rtl"),O),R),Oe=function(we){if(we.stopPropagation(),B&&B(we),we.defaultPrevented)return;"visible"in V||Ie(!1)},oe=function(){return z?j?h.createElement("div",{className:"".concat(We,"-close-icon"),onClick:Oe},j):h.createElement(o.a,{className:"".concat(We,"-close-icon"),onClick:Oe}):null},st="onClick"in V||F&&F.type==="a",he=Object(i.default)(V,["visible"]),J=P||null,Y=J?h.createElement(h.Fragment,null,J,h.createElement("span",null,F)):F,$=h.createElement("span",A()({},he,{ref:w,className:ot,style:Re}),Y,oe());return st?h.createElement(d.a,null,$):$},E=h.forwardRef(S);E.displayName="Tag",E.CheckableTag=s;var C=D.a=E},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(k){if(!0)module.exports=k();else var D})(function(){var define,module,exports;return function(){function k(D,n,y){function p(m,f){if(!n[m]){if(!D[m]){var h=typeof require=="function"&&require;if(!f&&h)return require(m,!0);if(x)return x(m,!0);var u=new Error("Cannot find module '"+m+"'");throw u.code="MODULE_NOT_FOUND",u}var a=n[m]={exports:{}};D[m][0].call(a.exports,function(i){var t=D[m][1][i];return p(t||i)},a,a.exports,k,D,n,y)}return n[m].exports}for(var x=typeof require=="function"&&require,A=0;A<y.length;A++)p(y[A]);return p}return k}()({1:[function(k,D,n){"use strict";var y=k("./browser/client");y.Buffer=k("buffer").Buffer,y.urllib=k("../shims/xhr"),y.version=k("./browser/version").version,D.exports=y},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(k,D,n){(function(y,p){"use strict";var x=k("babel-runtime/core-js/promise"),A=a(x),m=k("babel-runtime/regenerator"),f=a(m),h=k("babel-runtime/core-js/object/assign"),u=a(h);function a(P){return P&&P.__esModule?P:{default:P}}var i=k("debug")("ali-oss"),t=k("copy-to"),o=k("xml2js"),e=k("agentkeepalive"),l=k("merge-descriptors"),r=k("url"),s=k("is-type-of"),c=k("platform"),d=k("utility"),g=k("urllib"),v=k("./version"),b=k("bowser"),S=k("../common/signUtils"),E=k("../common/utils/isIP"),C=E.isIP,_=k("../common/client/initOptions"),T=k("../common/utils/createRequest"),w=T.createRequest,O=new e;function I(){var P=c.name,X=c.version;P&&P.toLowerCase&&P.toLowerCase()==="ie"&&X.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function R(){return location&&location.protocol==="https:"}function M(P,X){if(I(),!(this instanceof M))return new M(P,X);P&&P.inited?this.options=P:this.options=M.initOptions(P),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=g,this.agent=this.options.agent||O),this.ctx=X,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}D.exports=M,M.initOptions=function(X){X.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var B=(0,u.default)({secure:R(),useFetch:!1},X);return _(B)};var F=M.prototype;F.debug=i,l(F,k("./object")),l(F,k("../common/bucket/getBucketWebsite")),l(F,k("../common/bucket/putBucketWebsite")),l(F,k("../common/bucket/deleteBucketWebsite")),l(F,k("../common/bucket/getBucketLifecycle")),l(F,k("../common/bucket/putBucketLifecycle")),l(F,k("../common/bucket/deleteBucketLifecycle")),l(F,k("../common/bucket/putBucketVersioning")),l(F,k("../common/bucket/getBucketVersioning")),l(F,k("./managed-upload")),l(F,k("../common/multipart")),l(F,k("../common/parallel")),F.signature=function(X){return this.debug("authorization stringToSign: %s",X,"info"),S.computeSignature(this.options.accessKeySecret,X)},F.authorization=function(X,B,j,W){var z=S.buildCanonicalString(X.toUpperCase(),B,{headers:W,parameters:j});return S.authorization(this.options.accessKeyId,this.options.accessKeySecret,z)},F.request=function(X){var B,j,W,z,V,Q;return f.default.async(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return B=w.call(this,X),this.options.useFetch||(B.params.mode="disable-fetch"),j=void 0,W=void 0,z=!!X.stream,ee.prev=5,ee.next=8,f.default.awrap(this.urllib.request(B.url,B.params));case 8:j=ee.sent,this.debug("response %s %s, got %s, headers: %j",X.method,B.url,j.status,j.headers,"info"),ee.next=15;break;case 12:ee.prev=12,ee.t0=ee.catch(5),W=ee.t0;case 15:if(V=void 0,!(j&&X.successStatuses&&X.successStatuses.indexOf(j.status)===-1)){ee.next=28;break}return ee.next=19,f.default.awrap(this.requestError(j));case 19:if(V=ee.sent,!(V.code==="RequestTimeTooSkewed"&&!z)){ee.next=25;break}return this.options.amendTimeSkewed=+new Date(V.serverTime)-new Date,ee.next=24,f.default.awrap(this.request(X));case 24:return ee.abrupt("return",ee.sent);case 25:V.params=X,ee.next=32;break;case 28:if(!W){ee.next=32;break}return ee.next=31,f.default.awrap(this.requestError(W));case 31:V=ee.sent;case 32:if(!V){ee.next=34;break}throw V;case 34:if(!X.xmlResponse){ee.next=39;break}return ee.next=37,f.default.awrap(this.parseXML(j.data));case 37:Q=ee.sent,j.data=Q;case 39:return ee.abrupt("return",j);case 40:case"end":return ee.stop()}},null,this,[[5,12]])},F._getResource=function(X){var B="/";return X.bucket&&(B+=X.bucket+"/"),X.object&&(B+=X.object),B},F._isIP=C,F._escape=function(X){return d.encodeURIComponent(X).replace(/%2F/g,"/")},F._getReqUrl=function(X){var B={};t(this.options.endpoint).to(B);var j=this._isIP(B.hostname),W=this.options.cname;X.bucket&&!W&&!j&&(B.host=X.bucket+"."+B.host);var z="/";X.bucket&&j&&(z+=X.bucket+"/"),X.object&&(z+=this._escape(X.object).replace(/\+/g,"%2B")),B.pathname=z;var V={};if(X.query&&l(V,X.query),X.subres){var Q={};s.string(X.subres)?Q[X.subres]="":s.array(X.subres)?X.subres.forEach(function(G){Q[G]=""}):Q=X.subres,l(V,Q)}return B.query=V,r.format(B)},F._getUserAgent=function(){var X=p&&p.browser?"js":"nodejs",B="aliyun-sdk-"+X+"/"+v.version,j=c.description;return!j&&p&&(j="Node.js "+p.version.slice(1)+" on "+p.platform+" "+p.arch),this._checkUserAgent(B+" "+j)},F._checkUserAgent=function(X){var B=X.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return B},F.checkBrowserAndVersion=function(X,B){return b.name===X&&b.version.split(".")[0]===B},F.parseXML=function(X){return new A.default(function(B,j){y.isBuffer(X)&&(X=X.toString()),o.parseString(X,{explicitRoot:!1,explicitArray:!1},function(W,z){W?j(W):B(z)})})},F.requestError=function(X){var B,j,W,z;return f.default.async(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(B=null,!(!X.data||!X.data.length)){Q.next=5;break}X.status===-1||X.status===-2?(B=new Error(X.message),B.name=X.name,B.status=X.status,B.code=X.name):(X.status===404?(B=new Error("Object not exists"),B.name="NoSuchKeyError",B.status=404,B.code="NoSuchKey"):X.status===412?(B=new Error("Pre condition failed"),B.name="PreconditionFailedError",B.status=412,B.code="PreconditionFailed"):(B=new Error("Unknow error, status: "+X.status),B.name="UnknowError",B.status=X.status),B.requestId=X.headers["x-oss-request-id"],B.host=""),Q.next=33;break;case 5:return j=String(X.data),this.debug("request response error data: %s",j,"error"),W=void 0,Q.prev=8,Q.next=11,f.default.awrap(this.parseXML(j));case 11:if(Q.t0=Q.sent,Q.t0){Q.next=14;break}Q.t0={};case 14:W=Q.t0,Q.next=24;break;case 17:return Q.prev=17,Q.t1=Q.catch(8),this.debug(j,"error"),Q.t1.message+=`
|
|
|
raw xml: `+j,Q.t1.status=X.status,Q.t1.requestId=X.headers["x-oss-request-id"],Q.abrupt("return",Q.t1);case 24:z=W.Message||"unknow request error, status: "+X.status,W.Condition&&(z+=" (condition: "+W.Condition+")"),B=new Error(z),B.name=W.Code?W.Code+"Error":"UnknowError",B.status=X.status,B.code=W.Code,B.requestId=W.RequestId,B.hostId=W.HostId,B.serverTime=W.ServerTime;case 33:return this.debug("generate error %j",B,"error"),Q.abrupt("return",B);case 35:case"end":return Q.stop()}},null,this,[[8,17]])}}).call(this,{isBuffer:k("../../node_modules/is-buffer/index.js")},k("_process"))},{"../../node_modules/is-buffer/index.js":197,"../common/bucket/deleteBucketLifecycle":6,"../common/bucket/deleteBucketWebsite":7,"../common/bucket/getBucketLifecycle":8,"../common/bucket/getBucketVersioning":9,"../common/bucket/getBucketWebsite":10,"../common/bucket/putBucketLifecycle":11,"../common/bucket/putBucketVersioning":12,"../common/bucket/putBucketWebsite":13,"../common/client/initOptions":15,"../common/multipart":18,"../common/parallel":33,"../common/signUtils":34,"../common/utils/createRequest":38,"../common/utils/isIP":45,"./managed-upload":3,"./object":4,"./version":5,_process:208,agentkeepalive:48,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,bowser:70,"copy-to":76,debug:288,"is-type-of":289,"merge-descriptors":200,platform:206,url:238,urllib:291,utility:290,xml2js:249}],3:[function(k,D,n){(function(y){"use strict";var p=k("babel-runtime/core-js/array/from"),x=u(p),A=k("babel-runtime/core-js/promise"),m=u(A),f=k("babel-runtime/regenerator"),h=u(f);function u(S){return S&&S.__esModule?S:{default:S}}var a=k("is-type-of"),i=k("util"),t=k("path"),o=k("mime"),e=k("copy-to"),l=k("../common/utils/isBlob"),r=l.isBlob,s=k("../common/utils/isFile"),c=s.isFile,d=n;d.multipartUpload=function(E,C,_){var T,w,O,I,R,M,F,P,X;return h.default.async(function(j){for(;;)switch(j.prev=j.next){case 0:if(this.resetCancelFlag(),_=_||{},!(_.checkpoint&&_.checkpoint.uploadId)){j.next=6;break}return j.next=5,h.default.awrap(this._resumeMultipart(_.checkpoint,_));case 5:return j.abrupt("return",j.sent);case 6:return T=100*1024,_.mime||(c(C)?_.mime=o.getType(t.extname(C.name)):r(C)?_.mime=C.type:_.mime=o.getType(t.extname(C))),_.headers=_.headers||{},this._convertMetaToHeaders(_.meta,_.headers),j.next=12,h.default.awrap(this._getFileSize(C));case 12:if(w=j.sent,!(w<T)){j.next=25;break}return O=this._createStream(C,0,w),_.contentLength=w,j.next=18,h.default.awrap(this.putStream(E,O,_));case 18:if(I=j.sent,!(_&&_.progress)){j.next=22;break}return j.next=22,h.default.awrap(_.progress(1));case 22:return R={res:I.res,bucket:this.options.bucket,name:E,etag:I.res.headers.etag},(_.headers&&_.headers["x-oss-callback"]||_.callback)&&(R.data=I.data),j.abrupt("return",R);case 25:if(!(_.partSize&&!(parseInt(_.partSize,10)===_.partSize))){j.next=27;break}throw new Error("partSize must be int number");case 27:if(!(_.partSize&&_.partSize<T)){j.next=29;break}throw new Error("partSize must not be smaller than "+T);case 29:return j.next=31,h.default.awrap(this.initMultipartUpload(E,_));case 31:if(M=j.sent,F=M.uploadId,P=this._getPartSize(w,_.partSize),X={file:C,name:E,fileSize:w,partSize:P,uploadId:F,doneParts:[]},!(_&&_.progress)){j.next=38;break}return j.next=38,h.default.awrap(_.progress(0,X,M.res));case 38:return j.next=40,h.default.awrap(this._resumeMultipart(X,_));case 40:return j.abrupt("return",j.sent);case 41:case"end":return j.stop()}},null,this)},d._resumeMultipart=function(E,C){var _,T,w,O,I,R,M,F,P,X,B,j,W,z,V,Q,G,ee;return h.default.async(function(be){for(;;)switch(be.prev=be.next){case 0:if(_=this,!this.isCancel()){be.next=3;break}throw this._makeCancelEvent();case 3:return T=E.file,w=E.fileSize,O=E.partSize,I=E.uploadId,R=E.doneParts,M=E.name,F=[],R.length>0&&e(R).to(F),P=this._divideParts(w,O),X=P.length,B=!1,j=function(Ie,ke){var Re=this;return new m.default(function(We,ot){var Oe,oe,st,he;return h.default.async(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(Y.prev=0,Ie.isCancel()){Y.next=18;break}return Oe=P[ke-1],oe={stream:Ie._createStream(T,Oe.start,Oe.end),size:Oe.end-Oe.start},Y.next=6,h.default.awrap(Ie._uploadPart(M,I,ke,oe));case 6:if(st=Y.sent,!(!Ie.isCancel()&&!B)){Y.next=15;break}if(E.doneParts.push({number:ke,etag:st.res.headers.etag}),!C.progress){Y.next=12;break}return Y.next=12,h.default.awrap(C.progress(R.length/X,E,st.res));case 12:We({number:ke,etag:st.res.headers.etag}),Y.next=16;break;case 15:We();case 16:Y.next=19;break;case 18:We();case 19:Y.next=30;break;case 21:Y.prev=21,Y.t0=Y.catch(0),he=new Error,he.name=Y.t0.name,he.message=Y.t0.message,he.stack=Y.t0.stack,he.partNum=ke,e(Y.t0).to(he),ot(he);case 30:case"end":return Y.stop()}},null,Re,[[0,21]])})},W=(0,x.default)(new Array(X),function(le,Ie){return Ie+1}),z=F.map(function(le){return le.number}),V=W.filter(function(le){return z.indexOf(le)<0}),Q=5,G=C.parallel||Q,be.next=17,h.default.awrap(this._parallel(V,G,function(le){return new m.default(function(Ie,ke){j(_,le).then(function(Re){Re&&F.push(Re),Ie()}).catch(function(Re){ke(Re)})})}));case 17:if(ee=be.sent,B=!0,!this.isCancel()){be.next=22;break}throw j=null,this._makeCancelEvent();case 22:if(!(ee&&ee.length>0)){be.next=25;break}throw ee[0].message="Failed to upload some parts with error: "+ee[0].toString()+" part_num: "+ee[0].partNum,ee[0];case 25:return be.next=27,h.default.awrap(this.completeMultipartUpload(M,I,F,C));case 27:return be.abrupt("return",be.sent);case 28:case"end":return be.stop()}},null,this)},d._getFileSize=function(E){return h.default.async(function(_){for(;;)switch(_.prev=_.next){case 0:if(!a.buffer(E)){_.next=4;break}return _.abrupt("return",E.length);case 4:if(!(r(E)||c(E))){_.next=6;break}return _.abrupt("return",E.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return _.stop()}},null,this)};var g=k("stream"),v=g.Readable;function b(S,E){if(!(this instanceof b))return new b(S,E);v.call(this,E),this.file=S,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}i.inherits(b,v),b.prototype.readFileAndPush=function(E){if(this.fileBuffer)for(var C=!0;C&&this.fileBuffer&&this.start<this.fileBuffer.length;){var _=this.start,T=_+E;T=T>this.fileBuffer.length?this.fileBuffer.length:T,this.start=T,C=this.push(this.fileBuffer.slice(_,T))}},b.prototype._read=function(E){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var C=16*1024;E=E||C;var _=this;this.reader.onload=function(w){_.fileBuffer=y.from(new Uint8Array(w.target.result)),_.file=null,_.readFileAndPush(E)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(E)},d._createStream=function(E,C,_){if(r(E)||c(E))return new b(E.slice(C,_));throw new Error("_createStream requires File/Blob.")},d._getPartSize=function(E,C){var _=10*1e3,T=1024*1024;return C?Math.max(Math.ceil(E/_),C):T},d._divideParts=function(E,C){for(var _=Math.ceil(E/C),T=[],w=0;w<_;w++){var O=C*w,I=Math.min(O+C,E);T.push({start:O,end:I})}return T}}).call(this,k("buffer").Buffer)},{"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/array/from":52,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,buffer:73,"copy-to":76,"is-type-of":289,mime:202,path:205,stream:230,util:243}],4:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/promise"),p=a(y),x=k("babel-runtime/core-js/object/keys"),A=a(x),m=k("babel-runtime/core-js/object/assign"),f=a(m),h=k("babel-runtime/regenerator"),u=a(h);function a(_){return _&&_.__esModule?_:{default:_}}var i=k("utility"),t=k("fs"),o=k("is-type-of"),e=k("url"),l=k("copy-to"),r=k("path"),s=k("mime"),c=k("../common/callback"),d=k("../common/signUtils"),g=k("merge-descriptors"),v=k("../common/utils/isBlob"),b=v.isBlob,S=k("../common/utils/isFile"),E=S.isFile,C=n;C.append=function(T,w,O){var I;return u.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:return O=O||{},O.position===void 0&&(O.position="0"),O.subres={append:"",position:O.position},O.method="POST",M.next=6,u.default.awrap(this.put(T,w,O));case 6:return I=M.sent,I.nextAppendPosition=I.res.headers["x-oss-next-append-position"],M.abrupt("return",I);case 9:case"end":return M.stop()}},null,this)},C.put=function(T,w,O){var I,R,M,F,P,X,B;return u.default.async(function(W){for(;;)switch(W.prev=W.next){case 0:if(I=void 0,O=O||{},T=this._objectName(T),!o.buffer(w)){W.next=7;break}I=w,W.next=33;break;case 7:if(!(b(w)||E(w))){W.next=32;break}return O.mime||(E(w)?O.mime=s.getType(r.extname(w.name)):O.mime=w.type),R=this._createStream(w,0,w.size),W.next=12,u.default.awrap(this._getFileSize(w));case 12:return O.contentLength=W.sent,W.prev=13,W.next=16,u.default.awrap(this.putStream(T,R,O));case 16:return M=W.sent,W.abrupt("return",M);case 20:if(W.prev=20,W.t0=W.catch(13),!(W.t0.code==="RequestTimeTooSkewed")){W.next=29;break}return this.options.amendTimeSkewed=+new Date(W.t0.serverTime)-new Date,W.next=26,u.default.awrap(this.put(T,w,O));case 26:return W.abrupt("return",W.sent);case 29:throw W.t0;case 30:W.next=33;break;case 32:throw new TypeError("Must provide Buffer/Blob/File for put.");case 33:return O.headers=O.headers||{},this._convertMetaToHeaders(O.meta,O.headers),F=O.method||"PUT",P=this._objectRequestParams(F,T,O),c.encodeCallback(P,O),P.mime=O.mime,P.content=I,P.successStatuses=[200],W.next=43,u.default.awrap(this.request(P));case 43:return X=W.sent,B={name:T,url:this._objectUrl(T),res:X.res},P.headers&&P.headers["x-oss-callback"]&&(B.data=JSON.parse(X.data.toString())),W.abrupt("return",B);case 47:case"end":return W.stop()}},null,this,[[13,20]])},C.putStream=function(T,w,O){var I,R,M,F;return u.default.async(function(X){for(;;)switch(X.prev=X.next){case 0:return O=O||{},O.headers=O.headers||{},T=this._objectName(T),O.contentLength?O.headers["Content-Length"]=O.contentLength:O.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(O.meta,O.headers),I=O.method||"PUT",R=this._objectRequestParams(I,T,O),c.encodeCallback(R,O),R.mime=O.mime,R.stream=w,R.successStatuses=[200],X.next=13,u.default.awrap(this.request(R));case 13:return M=X.sent,F={name:T,url:this._objectUrl(T),res:M.res},R.headers&&R.headers["x-oss-callback"]&&(F.data=JSON.parse(M.data.toString())),X.abrupt("return",F);case 17:case"end":return X.stop()}},null,this)},g(C,k("../common/object/copyObject")),g(C,k("../common/object/getObjectTagging")),g(C,k("../common/object/putObjectTagging")),g(C,k("../common/object/deleteObjectTagging")),g(C,k("../common/image")),g(C,k("../common/object/getBucketVersions")),g(C,k("../common/object/getACL")),g(C,k("../common/object/putACL")),g(C,k("../common/object/head")),g(C,k("../common/object/delete")),g(C,k("../common/object/get")),g(C,k("../common/object/putSymlink")),g(C,k("../common/object/getSymlink")),g(C,k("../common/object/deleteMulti")),g(C,k("../common/object/getObjectMeta")),C.putMeta=function(T,w,O){var I;return u.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,u.default.awrap(this.copy(T,T,{meta:w||{},timeout:O&&O.timeout,ctx:O&&O.ctx}));case 2:return I=M.sent,M.abrupt("return",I);case 4:case"end":return M.stop()}},null,this)},C.list=function(T,w){var O,I,R,M,F;return u.default.async(function(X){for(;;)switch(X.prev=X.next){case 0:return O=this._objectRequestParams("GET","",w),O.query=T,O.xmlResponse=!0,O.successStatuses=[200],X.next=6,u.default.awrap(this.request(O));case 6:return I=X.sent,R=I.data.Contents,M=this,R&&(Array.isArray(R)||(R=[R]),R=R.map(function(B){return{name:B.Key,url:M._objectUrl(B.Key),lastModified:B.LastModified,etag:B.ETag,type:B.Type,size:Number(B.Size),storageClass:B.StorageClass,owner:{id:B.Owner.ID,displayName:B.Owner.DisplayName}}})),F=I.data.CommonPrefixes||null,F&&(Array.isArray(F)||(F=[F]),F=F.map(function(B){return B.Prefix})),X.abrupt("return",{res:I.res,objects:R,prefixes:F,nextMarker:I.data.NextMarker||null,isTruncated:I.data.IsTruncated==="true"});case 13:case"end":return X.stop()}},null,this)},C.restore=function(T,w){var O,I;return u.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:return w=w||{},w.subres=(0,f.default)({restore:""},w.subres),w.versionId&&(w.subres.versionId=w.versionId),O=this._objectRequestParams("POST",T,w),O.successStatuses=[202],M.next=7,u.default.awrap(this.request(O));case 7:return I=M.sent,M.abrupt("return",{res:I.res});case 9:case"end":return M.stop()}},null,this)},C.signatureUrl=function(T,w){w=w||{},T=this._objectName(T),w.method=w.method||"GET";var O=i.timestamp()+(w.expires||1800),I={bucket:this.options.bucket,object:T},R=this._getResource(I);this.options.stsToken&&(w["security-token"]=this.options.stsToken);var M=d._signatureForURL(this.options.accessKeySecret,w,R,O),F=e.parse(this._getReqUrl(I));return F.query={OSSAccessKeyId:this.options.accessKeyId,Expires:O,Signature:M.Signature},l(M.subResource).to(F.query),F.format()},C.getObjectUrl=function(T,w){return w?w[w.length-1]!=="/"&&(w+="/"):w=this.options.endpoint.format(),w+this._escape(this._objectName(T))},C._objectUrl=function(T){return this._getReqUrl({bucket:this.options.bucket,object:T})},C.generateObjectUrl=function(_,T){if(T)T[T.length-1]!=="/"&&(T+="/");else{T=this.options.endpoint.format();var w=e.parse(T),O=this.options.bucket;w.hostname=O+"."+w.hostname,w.host=O+"."+w.host,T=w.format()}return T+this._escape(this._objectName(_))},C._objectRequestParams=function(T,w,O){if(!this.options.bucket)throw new Error("Please create a bucket first");O=O||{},w=this._objectName(w);var I={object:w,bucket:this.options.bucket,method:T,subres:O&&O.subres,timeout:O&&O.timeout,ctx:O&&O.ctx};return O.headers&&(I.headers={},l(O.headers).to(I.headers)),I},C._objectName=function(T){return T.replace(/^\/+/,"")},C._convertMetaToHeaders=function(T,w){if(!T)return;(0,A.default)(T).forEach(function(O){w["x-oss-meta-"+O]=T[O]})},C._deleteFileSafe=function(T){var w=this;return new p.default(function(O){t.exists(T,function(I){I?t.unlink(T,function(R){R&&w.debug("unlink %j error: %s",T,R,"error"),O()}):O()})})}},{"../common/callback":14,"../common/image":16,"../common/object/copyObject":19,"../common/object/delete":20,"../common/object/deleteMulti":21,"../common/object/deleteObjectTagging":22,"../common/object/get":23,"../common/object/getACL":24,"../common/object/getBucketVersions":25,"../common/object/getObjectMeta":26,"../common/object/getObjectTagging":27,"../common/object/getSymlink":28,"../common/object/head":29,"../common/object/putACL":30,"../common/object/putObjectTagging":31,"../common/object/putSymlink":32,"../common/signUtils":34,"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,"copy-to":76,fs:71,"is-type-of":289,"merge-descriptors":200,mime:202,path:205,url:238,utility:290}],5:[function(k,D,n){"use strict";n.version="6.10.0"},{}],6:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(h){return h&&h.__esModule?h:{default:h}}var A=k("../utils/checkBucketName"),m=A.checkBucketName,f=n;f.deleteBucketLifecycle=function(u,a){var i,t;return p.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return m(u),i=this._bucketRequestParams("DELETE",u,"lifecycle",a),i.successStatuses=[204],e.next=5,p.default.awrap(this.request(i));case 5:return t=e.sent,e.abrupt("return",{res:t.res});case 7:case"end":return e.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],7:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(h){return h&&h.__esModule?h:{default:h}}var A=k("../utils/checkBucketName"),m=A.checkBucketName,f=n;f.deleteBucketWebsite=function(u,a){var i,t;return p.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return m(u),i=this._bucketRequestParams("DELETE",u,"website",a),i.successStatuses=[204],e.next=5,p.default.awrap(this.request(i));case 5:return t=e.sent,e.abrupt("return",{res:t.res});case 7:case"end":return e.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],8:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(t){return t&&t.__esModule?t:{default:t}}var A=k("../utils/checkBucketName"),m=A.checkBucketName,f=k("../utils/isArray"),h=f.isArray,u=k("../utils/formatObjKey"),a=u.formatObjKey,i=n;i.getBucketLifecycle=function(o,e){var l,r,s;return p.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return m(o),l=this._bucketRequestParams("GET",o,"lifecycle",e),l.successStatuses=[200],l.xmlResponse=!0,d.next=6,p.default.awrap(this.request(l));case 6:return r=d.sent,s=r.data.Rule||null,s&&(h(s)||(s=[s]),s=s.map(function(g){return g.ID&&(g.id=g.ID,delete g.ID),g.Tag&&!h(g.Tag)&&(g.Tag=[g.Tag]),a(g,"firstLowerCase")})),d.abrupt("return",{rules:s,res:r.res});case 10:case"end":return d.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/formatObjKey":40,"../utils/isArray":42,"babel-runtime/regenerator":68}],9:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(h){return h&&h.__esModule?h:{default:h}}var A=k("../utils/checkBucketName"),m=A.checkBucketName,f=n;f.getBucketVersioning=function(u,a){var i,t,o;return p.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return m(u),i=this._bucketRequestParams("GET",u,"versioning",a),i.xmlResponse=!0,i.successStatuses=[200],l.next=6,p.default.awrap(this.request(i));case 6:return t=l.sent,o=t.data.Status,l.abrupt("return",{status:t.status,versionStatus:o,res:t.res});case 9:case"end":return l.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(a){return a&&a.__esModule?a:{default:a}}var A=k("../utils/checkBucketName"),m=A.checkBucketName,f=k("../utils/isObject"),h=f.isObject,u=n;u.getBucketWebsite=function(i,t){var o,e,l;return p.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return m(i),o=this._bucketRequestParams("GET",i,"website",t),o.successStatuses=[200],o.xmlResponse=!0,s.next=6,p.default.awrap(this.request(o));case 6:return e=s.sent,l=[],e.data.RoutingRules&&e.data.RoutingRules.RoutingRule&&(h(e.data.RoutingRules.RoutingRule)?l=[e.data.RoutingRules.RoutingRule]:l=e.data.RoutingRules.RoutingRule),s.abrupt("return",{index:e.data.IndexDocument&&e.data.IndexDocument.Suffix||"",supportSubDir:e.data.IndexDocument&&e.data.IndexDocument.SupportSubDir||"false",type:e.data.IndexDocument&&e.data.IndexDocument.Type,routingRules:l,error:e.data.ErrorDocument&&e.data.ErrorDocument.Key||null,res:e.res});case 10:case"end":return s.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isObject":46,"babel-runtime/regenerator":68}],11:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(E){return E&&E.__esModule?E:{default:E}}var A=k("../utils/checkBucketName"),m=A.checkBucketName,f=k("../utils/isArray"),h=f.isArray,u=k("../utils/deepCopy"),a=u.deepCopy,i=k("../utils/isObject"),t=i.isObject,o=k("../utils/obj2xml"),e=o.obj2xml,l=k("../utils/checkObjectTag"),r=l.checkObjectTag,s=k("../utils/getStrBytesCount"),c=s.getStrBytesCount,d=n;d.putBucketLifecycle=function(C,_,T){var w,O,I,R,M;return p.default.async(function(P){for(;;)switch(P.prev=P.next){case 0:if(m(C),h(_)){P.next=3;break}throw new Error("rules must be Array");case 3:return w=this._bucketRequestParams("PUT",C,"lifecycle",T),O=[],I={LifecycleConfiguration:{Rule:O}},_.forEach(function(X){g(X),S(X),X.id&&(X.ID=X.id,delete X.id),O.push(X)}),R=e(I,{headers:!0,firstUpperCase:!0}),w.content=R,w.mime="xml",w.successStatuses=[200],P.next=13,p.default.awrap(this.request(w));case 13:return M=P.sent,P.abrupt("return",{res:M.res});case 15:case"end":return P.stop()}},null,this)};function g(E){E.days&&(E.expiration={days:E.days}),E.date&&(E.expiration={createdBeforeDate:E.date})}function v(E,C){var _=E.days,T=E.createdBeforeDate;if(!_&&!T)throw new Error(C+" must includes days or createdBeforeDate");if(_&&!/^[1-9][0-9]*$/.test(_))throw new Error("days must be a positive integer");if(T&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(T))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function b(E){if(!h(E)&&!t(E))throw new Error("tag must be Object or Array");E=t(E)?[E]:E;var C={},_=a(E);_.forEach(function(T){C[T.key]=T.value}),r(C)}function S(E){if(E.id&&c(E.id)>255)throw new Error("ID is composed of 255 bytes at most");if(E.prefix===""||E.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(E.status))throw new Error("Status must be Enabled or Disabled");if(E.transition){if(!["IA","Archive"].includes(E.transition.storageClass))throw new Error("StorageClass must be IA or Archive");v(E.transition,"Transition")}if(E.expiration){if(!E.expiration.expiredObjectDeleteMarker)v(E.expiration,"Expiration");else if(E.expiration.days||E.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(E.abortMultipartUpload&&v(E.abortMultipartUpload,"AbortMultipartUpload"),!E.expiration&&!E.abortMultipartUpload&&!E.transition&&!E.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(E.tag){if(E.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");b(E.tag)}}},{"../utils/checkBucketName":35,"../utils/checkObjectTag":36,"../utils/deepCopy":39,"../utils/getStrBytesCount":41,"../utils/isArray":42,"../utils/isObject":46,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],12:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(a){return a&&a.__esModule?a:{default:a}}var A=k("../utils/checkBucketName"),m=A.checkBucketName,f=k("../utils/obj2xml"),h=f.obj2xml,u=n;u.putBucketVersioning=function(i,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e,l,r;return p.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:if(m(i),["Enabled","Suspended"].includes(t)){c.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return e=this._bucketRequestParams("PUT",i,"versioning",o),l={VersioningConfiguration:{Status:t}},e.mime="xml",e.content=h(l,{headers:!0}),c.next=9,p.default.awrap(this.request(e));case 9:return r=c.sent,c.abrupt("return",{res:r.res,status:r.status});case 11:case"end":return c.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(t){return t&&t.__esModule?t:{default:t}}var A=k("../utils/checkBucketName"),m=A.checkBucketName,f=k("../utils/obj2xml"),h=f.obj2xml,u=k("../utils/isArray"),a=u.isArray,i=n;i.putBucketWebsite=function(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments[2],r,s,c,d,g;return p.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:if(m(o),r=this._bucketRequestParams("PUT",o,"website",l),s={Suffix:e.index||"index.html"},c={IndexDocument:s},d={WebsiteConfiguration:c},e.supportSubDir&&(s.SupportSubDir=e.supportSubDir),e.type&&(s.Type=e.type),e.error&&(c.ErrorDocument={Key:e.error}),!(e.routingRules!==void 0)){b.next=12;break}if(a(e.routingRules)){b.next=11;break}throw new Error("RoutingRules must be Array");case 11:c.RoutingRules={RoutingRule:e.routingRules};case 12:return d=h(d),r.content=d,r.mime="xml",r.successStatuses=[200],b.next=18,p.default.awrap(this.request(r));case 18:return g=b.sent,b.abrupt("return",{res:g.res});case 20:case"end":return b.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(k,D,n){(function(y){"use strict";var p=k("babel-runtime/core-js/object/keys"),x=f(p),A=k("babel-runtime/core-js/json/stringify"),m=f(A);function f(h){return h&&h.__esModule?h:{default:h}}n.encodeCallback=function(u,a){if(u.headers=u.headers||{},!Object.prototype.hasOwnProperty.call(u.headers,"x-oss-callback")&&a.callback){var i={callbackUrl:encodeURI(a.callback.url),callbackBody:a.callback.body};a.callback.host&&(i.callbackHost=a.callback.host),a.callback.contentType&&(i.callbackBodyType=a.callback.contentType);var t=y.from((0,m.default)(i)).toString("base64");if(u.headers["x-oss-callback"]=t,a.callback.customValue){var o={};(0,x.default)(a.callback.customValue).forEach(function(e){o["x:"+e]=a.callback.customValue[e]}),u.headers["x-oss-callback-var"]=y.from((0,m.default)(o)).toString("base64")}}}}).call(this,k("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/assign"),p=x(y);function x(i){return i&&i.__esModule?i:{default:i}}var A=k("humanize-ms"),m=k("url"),f=k("../utils/checkBucketName"),h=f.checkBucketName;function u(i,t){var o=m.parse(i);if(o.protocol||(o=m.parse("http"+(t?"s":"")+"://"+i)),o.protocol!=="http:"&&o.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return o}function a(i,t,o){var e=o?"https://":"http://",l=t?"-internal.aliyuncs.com":".aliyuncs.com",r="vpc100-oss-cn-";return i.substr(0,r.length)===r&&(l=".aliyuncs.com"),m.parse(e+i+l)}D.exports=function(i){if(!i||!i.accessKeyId||!i.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");i.bucket&&h(i.bucket);var t=(0,p.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},i);if(t.accessKeyId=t.accessKeyId.trim(),t.accessKeySecret=t.accessKeySecret.trim(),t.timeout&&(t.timeout=A(t.timeout)),t.endpoint)t.endpoint=u(t.endpoint,t.secure);else if(t.region)t.endpoint=a(t.region,t.internal,t.secure);else throw new Error("require options.endpoint or options.region");return t.inited=!0,t}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(k,D,n){"use strict";var y=k("merge-descriptors"),p=n;y(p,k("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(t){return t&&t.__esModule?t:{default:t}}var A=k("../utils/checkBucketName"),m=A.checkBucketName,f=k("querystring"),h=k("js-base64"),u=h.Base64.encode,a=n;a.processObjectSave=function(o,e,l,r){var s,c,d,g;return p.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return i(o,"sourceObject"),i(e,"targetObject"),i(l,"process"),e=this._objectName(e),r&&m(r),s=this._objectRequestParams("POST",o,{subres:"x-oss-process"}),c=r?",b_"+u(r):"",e=u(e),d={"x-oss-process":l+"|sys/saveas,o_"+e+c},s.content=f.stringify(d),b.next=12,p.default.awrap(this.request(s));case 12:return g=b.sent,b.abrupt("return",{res:g.res,status:g.res.status});case 14:case"end":return b.stop()}},null,this)};function i(t,o){if(!t)throw new Error(o+" is required");if(typeof t!="string")throw new Error(o+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(a){return a&&a.__esModule?a:{default:a}}var A=k("copy-to"),m=k("./callback"),f=k("./utils/deepCopy"),h=f.deepCopy,u=n;u.listUploads=function(i,t){var o,e,l,r;return p.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return t=t||{},o={},A(t).to(o),o.subres="uploads",e=this._objectRequestParams("GET","",o),e.query=i,e.xmlResponse=!0,e.successStatuses=[200],c.next=10,p.default.awrap(this.request(e));case 10:return l=c.sent,r=l.data.Upload||[],Array.isArray(r)||(r=[r]),r=r.map(function(d){return{name:d.Key,uploadId:d.UploadId,initiated:d.Initiated}}),c.abrupt("return",{res:l.res,uploads:r,bucket:l.data.Bucket,nextKeyMarker:l.data.NextKeyMarker,nextUploadIdMarker:l.data.NextUploadIdMarker,isTruncated:l.data.IsTruncated==="true"});case 15:case"end":return c.stop()}},null,this)},u.listParts=function(i,t,o,e){var l,r,s;return p.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return e=e||{},l={},A(e).to(l),l.subres={uploadId:t},r=this._objectRequestParams("GET",i,l),r.query=o,r.xmlResponse=!0,r.successStatuses=[200],d.next=10,p.default.awrap(this.request(r));case 10:return s=d.sent,d.abrupt("return",{res:s.res,uploadId:s.data.UploadId,bucket:s.data.Bucket,name:s.data.Key,partNumberMarker:s.data.PartNumberMarker,nextPartNumberMarker:s.data.NextPartNumberMarker,maxParts:s.data.MaxParts,isTruncated:s.data.IsTruncated,parts:s.data.Part||[]});case 12:case"end":return d.stop()}},null,this)},u.abortMultipartUpload=function(i,t,o){var e,l,r;return p.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return this._stop(),o=o||{},e={},A(o).to(e),e.subres={uploadId:t},l=this._objectRequestParams("DELETE",i,e),l.successStatuses=[204],c.next=9,p.default.awrap(this.request(l));case 9:return r=c.sent,c.abrupt("return",{res:r.res});case 11:case"end":return c.stop()}},null,this)},u.initMultipartUpload=function(i,t){var o,e,l;return p.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return t=t||{},o={},A(t).to(o),o.headers=o.headers||{},this._convertMetaToHeaders(t.meta,o.headers),o.subres="uploads",e=this._objectRequestParams("POST",i,o),e.mime=t.mime,e.xmlResponse=!0,e.successStatuses=[200],s.next=12,p.default.awrap(this.request(e));case 12:return l=s.sent,s.abrupt("return",{res:l.res,bucket:l.data.Bucket,name:l.data.Key,uploadId:l.data.UploadId});case 14:case"end":return s.stop()}},null,this)},u.uploadPart=function(i,t,o,e,l,r,s){var c;return p.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return c={stream:this._createStream(e,l,r),size:r-l},g.next=3,p.default.awrap(this._uploadPart(i,t,o,c,s));case 3:return g.abrupt("return",g.sent);case 4:case"end":return g.stop()}},null,this)},u.completeMultipartUpload=function(i,t,o,e){var l,r,s,c,d,g,v,b;return p.default.async(function(E){for(;;)switch(E.prev=E.next){case 0:for(l=o.concat().sort(function(C,_){return C.number-_.number}).filter(function(C,_,T){return!_||C.number!==T[_-1].number}),r=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,s=0;s<l.length;s++)c=l[s],r+=`<Part>
|
|
|
`,r+="<PartNumber>"+c.number+`</PartNumber>
|
|
|
`,r+="<ETag>"+c.etag+`</ETag>
|
|
|
`,r+=`</Part>
|
|
|
`;return r+="</CompleteMultipartUpload>",e=e||{},d={},d=h(e),d.headers&&delete d.headers["x-oss-server-side-encryption"],d.subres={uploadId:t},g=this._objectRequestParams("POST",i,d),m.encodeCallback(g,d),g.mime="xml",g.content=r,g.headers&&g.headers["x-oss-callback"]||(g.xmlResponse=!0),g.successStatuses=[200],E.next=17,p.default.awrap(this.request(g));case 17:return v=E.sent,b={res:v.res,bucket:g.bucket,name:i,etag:v.res.headers.etag},g.headers&&g.headers["x-oss-callback"]&&(b.data=JSON.parse(v.data.toString())),E.abrupt("return",b);case 21:case"end":return E.stop()}},null,this)},u._uploadPart=function(i,t,o,e,l){var r,s,c;return p.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return l=l||{},r={},A(l).to(r),r.headers={"Content-Length":e.size},r.subres={partNumber:o,uploadId:t},s=this._objectRequestParams("PUT",i,r),s.mime=r.mime,s.stream=e.stream,s.successStatuses=[200],g.next=11,p.default.awrap(this.request(s));case 11:if(c=g.sent,c.res.headers.etag){g.next=14;break}throw new Error(`Please set the etag of expose-headers in OSS
|
|
|
https://help.aliyun.com/document_detail/32069.html`);case 14:return e.stream=null,s.stream=null,g.abrupt("return",{name:i,etag:c.res.headers.etag,res:c.res});case 17:case"end":return g.stop()}},null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=h(y),x=k("babel-runtime/core-js/object/keys"),A=h(x),m=k("babel-runtime/helpers/typeof"),f=h(m);function h(t){return t&&t.__esModule?t:{default:t}}var u=k("../utils/checkBucketName"),a=u.checkBucketName,i=n;i.copy=function(o,e,l,r){var s,c,d;return p.default.async(function(v){for(;;)switch(v.prev=v.next){case 0:return(typeof l=="undefined"?"undefined":(0,f.default)(l))==="object"&&(r=l),r=r||{},r.headers=r.headers||{},(0,A.default)(r.headers).forEach(function(b){r.headers["x-oss-copy-source-"+b.toLowerCase()]=r.headers[b]}),r.meta&&(r.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(r.meta,r.headers),e=this._getSourceName(e,l),r.versionId&&(e=e+"?versionId="+r.versionId),r.headers["x-oss-copy-source"]=e,s=this._objectRequestParams("PUT",o,r),s.xmlResponse=!0,s.successStatuses=[200,304],v.next=14,p.default.awrap(this.request(s));case 14:return c=v.sent,d=c.data,d&&(d={etag:d.ETag,lastModified:d.LastModified}),v.abrupt("return",{data:d,res:c.res});case 18:case"end":return v.stop()}},null,this)},i._getSourceName=function(o,e){return typeof e=="string"?o=this._objectName(o):o[0]!=="/"?e=this.options.bucket:(e=o.replace(/\/(.+?)(\/.*)/,"$1"),o=o.replace(/(\/.+?\/)(.*)/,"$2")),a(e),o=encodeURI(o),o="/"+e+"/"+o,o}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),A=m(x);function m(h){return h&&h.__esModule?h:{default:h}}var f=n;f.delete=function(u){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,t;return p.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return a.subres=(0,A.default)({},a.subres),a.versionId&&(a.subres.versionId=a.versionId),i=this._objectRequestParams("DELETE",u,a),i.successStatuses=[204],e.next=6,p.default.awrap(this.request(i));case 6:return t=e.sent,e.abrupt("return",{res:t.res});case 8:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),A=m(x);function m(i){return i&&i.__esModule?i:{default:i}}var f=k("utility"),h=k("../utils/obj2xml"),u=h.obj2xml,a=n;a.deleteMulti=function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e,l,r,s,c,d,g,v,b,S,E,C;return p.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:if(e=[],!(!t||!t.length)){T.next=3;break}throw new Error("names is required");case 3:for(l=0;l<t.length;l++)r={},typeof t[l]=="string"?r.Key=f.escape(this._objectName(t[l])):(s=t[l],c=s.key,d=s.versionId,r.Key=f.escape(this._objectName(c)),r.VersionId=d),e.push(r);return g={Delete:{Quiet:!!o.quiet,Object:e}},v=u(g,{headers:!0}),o.subres=(0,A.default)({delete:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),b=this._objectRequestParams("POST","",o),b.mime="xml",b.content=v,b.xmlResponse=!0,b.successStatuses=[200],T.next=15,p.default.awrap(this.request(b));case 15:return S=T.sent,E=S.data,C=E&&E.Deleted||null,C&&(Array.isArray(C)||(C=[C])),T.abrupt("return",{res:S.res,deleted:C||[]});case 20:case"end":return T.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),A=m(x);function m(h){return h&&h.__esModule?h:{default:h}}var f=n;f.deleteObjectTagging=function(u){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,t;return p.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return a.subres=(0,A.default)({tagging:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),u=this._objectName(u),i=this._objectRequestParams("DELETE",u,a),i.successStatuses=[204],e.next=7,p.default.awrap(this.request(i));case 7:return t=e.sent,e.abrupt("return",{status:t.status,res:t.res});case 9:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),A=m(x);function m(a){return a&&a.__esModule?a:{default:a}}var f=k("fs"),h=k("is-type-of"),u=n;u.get=function(i,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e,l,r,s;return p.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return e=null,l=!1,h.writableStream(t)?e=t:h.string(t)?(e=f.createWriteStream(t),l=!0):o=t,o=o||{},o.subres=(0,A.default)({},o.subres),o.versionId&&(o.subres.versionId=o.versionId),o.process&&(o.subres["x-oss-process"]=o.process),r=void 0,d.prev=8,s=this._objectRequestParams("GET",i,o),s.writeStream=e,s.successStatuses=[200,206,304],d.next=14,p.default.awrap(this.request(s));case 14:r=d.sent,l&&e.destroy(),d.next=25;break;case 18:if(d.prev=18,d.t0=d.catch(8),!l){d.next=24;break}return e.destroy(),d.next=24,p.default.awrap(this._deleteFileSafe(t));case 24:throw d.t0;case 25:return d.abrupt("return",{res:r.res,content:r.data});case 26:case"end":return d.stop()}},null,this,[[8,18]])}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,fs:71,"is-type-of":289}],24:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),A=m(x);function m(h){return h&&h.__esModule?h:{default:h}}var f=n;f.getACL=function(u){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,t;return p.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return a.subres=(0,A.default)({acl:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),u=this._objectName(u),i=this._objectRequestParams("GET",u,a),i.successStatuses=[200],i.xmlResponse=!0,e.next=8,p.default.awrap(this.request(i));case 8:return t=e.sent,e.abrupt("return",{acl:t.data.AccessControlList.Grant,owner:{id:t.data.Owner.ID,displayName:t.data.Owner.DisplayName},res:t.res});case 10:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=h(y),x=k("babel-runtime/regenerator"),A=h(x),m=k("babel-runtime/core-js/object/assign"),f=h(m);function h(s){return s&&s.__esModule?s:{default:s}}var u=n,a=k("../utils/isObject"),i=a.isObject,t=k("../utils/isArray"),o=t.isArray;u.getBucketVersions=e,u.listObjectVersions=e;function e(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d,g,v,b,S,E;return A.default.async(function(_){for(;;)switch(_.prev=_.next){case 0:if(!(s.versionIdMarker&&s.keyMarker===void 0)){_.next=2;break}throw new Error("A version-id marker cannot be specified without a key marker");case 2:return c.subres=(0,f.default)({versions:""},c.subres),c.versionId&&(c.subres.versionId=c.versionId),d=this._objectRequestParams("GET","",c),d.xmlResponse=!0,d.successStatuses=[200],d.query=r(s),_.next=10,A.default.awrap(this.request(d));case 10:return g=_.sent,v=g.data.Version||[],b=g.data.DeleteMarker||[],S=this,v&&(Array.isArray(v)||(v=[v]),v=v.map(function(T){return{name:T.Key,url:S._objectUrl(T.Key),lastModified:T.LastModified,isLatest:T.IsLatest==="true",versionId:T.VersionId,etag:T.ETag,type:T.Type,size:Number(T.Size),storageClass:T.StorageClass,owner:{id:T.Owner.ID,displayName:T.Owner.DisplayName}}})),b&&(o(b)||(b=[b]),b=b.map(function(T){return{name:T.Key,lastModified:T.LastModified,versionId:T.VersionId,owner:{id:T.Owner.ID,displayName:T.Owner.DisplayName}}})),E=g.data.CommonPrefixes||null,E&&(o(E)||(E=[E]),E=E.map(function(T){return T.Prefix})),_.abrupt("return",{res:g.res,objects:v,deleteMarker:b,prefixes:E,nextMarker:g.data.NextMarker||null,NextVersionIdMarker:g.data.NextVersionIdMarker||null,isTruncated:g.data.IsTruncated==="true"});case 19:case"end":return _.stop()}},null,this)}function l(s){return s.replace(/([A-Z])/g,"-$1").toLowerCase()}function r(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c={};return i(s)&&(0,p.default)(s).forEach(function(d){c[l(d)]=s[d]}),c}},{"../utils/isArray":42,"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],26:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),A=m(x);function m(h){return h&&h.__esModule?h:{default:h}}var f=n;f.getObjectMeta=function(u,a){var i,t;return p.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return a=a||{},u=this._objectName(u),a.subres=(0,A.default)({objectMeta:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),i=this._objectRequestParams("HEAD",u,a),i.successStatuses=[200],e.next=8,p.default.awrap(this.request(i));case 8:return t=e.sent,e.abrupt("return",{status:t.status,res:t.res});case 10:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),A=m(x);function m(a){return a&&a.__esModule?a:{default:a}}var f=n,h=k("../utils/isObject"),u=h.isObject;f.getObjectTagging=function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,e,l,r,s;return p.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return t.subres=(0,A.default)({tagging:""},t.subres),t.versionId&&(t.subres.versionId=t.versionId),i=this._objectName(i),o=this._objectRequestParams("GET",i,t),o.successStatuses=[200],d.next=7,p.default.awrap(this.request(o));case 7:return e=d.sent,d.next=10,p.default.awrap(this.parseXML(e.data));case 10:return l=d.sent,r=l.TagSet.Tag,r=r&&u(r)?[r]:r||[],s={},r.forEach(function(g){s[g.Key]=g.Value}),d.abrupt("return",{status:e.status,res:e.res,tag:s});case 16:case"end":return d.stop()}},null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),A=m(x);function m(h){return h&&h.__esModule?h:{default:h}}var f=n;f.getSymlink=function(u){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,t,o;return p.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return a.subres=(0,A.default)({symlink:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),u=this._objectName(u),i=this._objectRequestParams("GET",u,a),i.successStatuses=[200],l.next=7,p.default.awrap(this.request(i));case 7:return t=l.sent,o=t.res.headers["x-oss-symlink-target"],l.abrupt("return",{targetName:decodeURIComponent(o),res:t.res});case 10:case"end":return l.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=h(y),x=k("babel-runtime/core-js/object/keys"),A=h(x),m=k("babel-runtime/core-js/object/assign"),f=h(m);function h(a){return a&&a.__esModule?a:{default:a}}var u=n;u.head=function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,e,l;return p.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return t.subres=(0,f.default)({},t.subres),t.versionId&&(t.subres.versionId=t.versionId),o=this._objectRequestParams("HEAD",i,t),o.successStatuses=[200,304],s.next=6,p.default.awrap(this.request(o));case 6:return e=s.sent,l={meta:null,res:e.res,status:e.status},e.status===200&&(0,A.default)(e.headers).forEach(function(c){c.indexOf("x-oss-meta-")===0&&(l.meta||(l.meta={}),l.meta[c.substring(11)]=e.headers[c])}),s.abrupt("return",l);case 10:case"end":return s.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),A=m(x);function m(h){return h&&h.__esModule?h:{default:h}}var f=n;f.putACL=function(u,a,i){var t,o;return p.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return i=i||{},i.subres=(0,A.default)({acl:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),i.headers=i.headers||{},i.headers["x-oss-object-acl"]=a,u=this._objectName(u),t=this._objectRequestParams("PUT",u,i),t.successStatuses=[200],l.next=10,p.default.awrap(this.request(t));case 10:return o=l.sent,l.abrupt("return",{res:o.res});case 12:case"end":return l.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=h(y),x=k("babel-runtime/core-js/object/keys"),A=h(x),m=k("babel-runtime/core-js/object/assign"),f=h(m);function h(e){return e&&e.__esModule?e:{default:e}}var u=k("../utils/obj2xml"),a=u.obj2xml,i=k("../utils/checkObjectTag"),t=i.checkObjectTag,o=n;o.putObjectTagging=function(l,r){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c,d,g;return p.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return t(r),s.subres=(0,f.default)({tagging:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),l=this._objectName(l),c=this._objectRequestParams("PUT",l,s),c.successStatuses=[200],r=(0,A.default)(r).map(function(S){return{Key:S,Value:r[S]}}),d={Tagging:{TagSet:{Tag:r}}},c.mime="xml",c.content=a(d),b.next=12,p.default.awrap(this.request(c));case 12:return g=b.sent,b.abrupt("return",{res:g.res,status:g.status});case 14:case"end":return b.stop()}},null,this)}},{"../utils/checkObjectTag":36,"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],32:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),A=m(x);function m(h){return h&&h.__esModule?h:{default:h}}var f=n;f.putSymlink=function(u,a,i){var t,o;return p.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return i=i||{},i.headers=i.headers||{},a=this._escape(this._objectName(a)),this._convertMetaToHeaders(i.meta,i.headers),i.headers["x-oss-symlink-target"]=a,i.subres=(0,A.default)({symlink:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),i.storageClass&&(i.headers["x-oss-storage-class"]=i.storageClass),u=this._objectName(u),t=this._objectRequestParams("PUT",u,i),t.successStatuses=[200],l.next=13,p.default.awrap(this.request(t));case 13:return o=l.sent,l.abrupt("return",{res:o.res});case 15:case"end":return l.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/promise"),A=m(x);function m(h){return h&&h.__esModule?h:{default:h}}var f=n;f._parallelNode=function(u,a,i,t){var o,e,l,r,s,c,d,g;return p.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:o=this,e=[],l=[],r=u.length/a,s=u.length%a,c=s===0?r:(u.length-s)/a+1,d=1,g=0;case 8:if(!(g<u.length)){b.next=26;break}if(!o.isCancel()){b.next=11;break}return b.abrupt("break",26);case 11:if(t?l.push(i(o,u[g],t)):l.push(i(o,u[g])),!(l.length===a||d===c&&g===u.length-1)){b.next=23;break}return b.prev=13,d+=1,b.next=17,p.default.awrap(A.default.all(l));case 17:b.next=22;break;case 19:b.prev=19,b.t0=b.catch(13),e.push(b.t0);case 22:l=[];case 23:g++,b.next=8;break;case 26:return b.abrupt("return",e);case 27:case"end":return b.stop()}},null,this,[[13,19]])},f._parallel=function(u,a,i){var t=this;return new A.default(function(o){var e=[];if(a<=0||!u){o(e);return}function l(E){return function(){if(E===null)throw new Error("Callback was already called.");var C=E;E=null;for(var _=arguments.length,T=Array(_),w=0;w<_;w++)T[w]=arguments[w];C.apply(this,T)}}function r(E){var C=-1,_=E.length;return function(){return++C<_&&!t.isCancel()?{value:E[C],key:C}:null}}var s=r(u),c=!1,d=0,g=!1;function v(E,C){d-=1,E?(c=!0,e.push(E),o(e)):C==={}||c&&d<=0?(c=!0,o(e)):g||(t.isCancel()?o(e):S())}function b(E,C){i(E).then(function(_){C(null,_)}).catch(function(_){C(_)})}function S(){for(g=!0;d<a&&!c&&!t.isCancel();){var E=s();if(E===null||e.length>0){c=!0,d<=0&&o(e);return}d+=1,b(E.value,l(v))}g=!1}S()})},f.cancel=function(u){this.options.cancelFlag=!0,u&&this.abortMultipartUpload(u.name,u.uploadId,u.options)},f.isCancel=function(){return this.options.cancelFlag},f.resetCancelFlag=function(){this.options.cancelFlag=!1},f._stop=function(){this.options.cancelFlag=!0},f._makeCancelEvent=function(){var u={status:0,name:"cancel"};return u}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(k,D,n){(function(y){"use strict";var p=k("babel-runtime/core-js/json/stringify"),x=f(p),A=k("babel-runtime/core-js/object/keys"),m=f(A);function f(a){return a&&a.__esModule?a:{default:a}}var h=k("./../../shims/crypto/crypto.js"),u=k("is-type-of");n.buildCanonicalizedResource=function(i,t){var o=""+i,e="?";if(u.string(t)&&t.trim()!=="")o+=e+t;else if(u.array(t))t.sort(),o+=e+t.join("&");else if(t){var l=function(c,d){return c[0]>d[0]?1:c[0]<d[0]?-1:0},r=function(c){o+=e+c,t[c]&&(o+="="+t[c]),e="&"};(0,m.default)(t).sort(l).forEach(r)}return o},n.buildCanonicalString=function(i,t,o,e){o=o||{};var l=o.headers||{},r="x-oss-",s=[],c={},d=[i.toUpperCase(),l["Content-Md5"]||"",l["Content-Type"]||l["Content-Type".toLowerCase()],e||l["x-oss-date"]];return(0,m.default)(l).forEach(function(g){var v=g.toLowerCase();v.indexOf(r)===0&&(c[v]=String(l[g]).trim())}),(0,m.default)(c).sort().forEach(function(g){s.push(g+":"+c[g])}),d=d.concat(s),d.push(this.buildCanonicalizedResource(t,o.parameters)),d.join(`
|
|
|
`)},n.computeSignature=function(i,t){var o=h.createHmac("sha1",i);return o.update(y.from(t,"utf8")).digest("base64")},n.authorization=function(i,t,o){return"OSS "+i+":"+this.computeSignature(t,o)},n._signatureForURL=function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments[2],e=arguments[3],l={},r=t.subResource,s=r===void 0?{}:r;if(t.process){var c="x-oss-process";s[c]=t.process}if(t.trafficLimit){var d="x-oss-traffic-limit";s[d]=t.trafficLimit}if(t.response&&(0,m.default)(t.response).forEach(function(S){var E="response-"+S.toLowerCase();s[E]=t.response[S]}),(0,m.default)(t).forEach(function(S){var E=S.toLowerCase(),C=t[S];E.indexOf("x-oss-")===0?l[E]=C:(E.indexOf("content-md5")===0||E.indexOf("content-type")===0)&&(l[S]=C)}),Object.prototype.hasOwnProperty.call(t,"security-token")&&(s["security-token"]=t["security-token"]),Object.prototype.hasOwnProperty.call(t,"callback")){var g={callbackUrl:encodeURI(t.callback.url),callbackBody:t.callback.body};if(t.callback.host&&(g.callbackHost=t.callback.host),t.callback.contentType&&(g.callbackBodyType=t.callback.contentType),s.callback=y.from((0,x.default)(g)).toString("base64"),t.callback.customValue){var v={};(0,m.default)(t.callback.customValue).forEach(function(S){v["x:"+S]=t.callback.customValue[S]}),s["callback-var"]=y.from((0,x.default)(v)).toString("base64")}}var b=this.buildCanonicalString(t.method,o,{headers:l,parameters:s},e.toString());return{Signature:this.computeSignature(i,b),subResource:s}}}).call(this,k("buffer").Buffer)},{"./../../shims/crypto/crypto.js":284,"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73,"is-type-of":289}],35:[function(k,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.checkBucketName=void 0,n.checkBucketName=function(y,p){var x=p?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!x.test(y))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/entries"),p=x(y);function x(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0}),n.checkObjectTag=void 0;var A=k("./checkValid"),m=A.checkValid,f=k("./isObject"),h=f.isObject,u=[{validator:function(o){if(typeof o!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],a={key:[].concat(u,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(u,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function i(t){if(!h(t))throw new Error("tag must be Object");var o=(0,p.default)(t);if(o.length>10)throw new Error("maximum of 10 tags for a object");var e=["key","value"];o.forEach(function(l){l.forEach(function(r,s){m(r,a[e[s]])})})}n.checkObjectTag=i},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(k,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.checkValid=void 0;function y(p,x){x.forEach(function(A){if(A.validator)A.validator(p);else if(A.pattern&&!A.pattern.test(p))throw new Error(A.msg)})}n.checkValid=y},{}],38:[function(k,D,n){(function(y){"use strict";var p=k("babel-runtime/core-js/object/assign"),x=A(p);function A(l){return l&&l.__esModule?l:{default:l}}Object.defineProperty(n,"__esModule",{value:!0}),n.createRequest=void 0;var m=k("./../../../shims/crypto/crypto.js"),f=k("debug")("ali-oss"),h=k("mime"),u=k("dateformat"),a=k("copy-to"),i=k("path");function t(l,r){return l[r]||l[r.toLowerCase()]}function o(l,r){delete l[r],delete l[r.toLowerCase()]}function e(l){var r=new Date;this.options.amendTimeSkewed&&(r=+new Date+this.options.amendTimeSkewed);var s={"x-oss-date":u(r,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(s["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,x.default)(s,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(s["x-oss-security-token"]=this.options.stsToken),a(l.headers).to(s),t(s,"Content-Type")||(l.mime&&l.mime.indexOf("/")>0?s["Content-Type"]=l.mime:s["Content-Type"]=h.getType(l.mime||i.extname(l.object||""))),t(s,"Content-Type")||o(s,"Content-Type"),l.content&&(s["Content-Md5"]=m.createHash("md5").update(y.from(l.content,"utf8")).digest("base64"),s["Content-Length"]||(s["Content-Length"]=l.content.length));var c=this._getResource(l);s.authorization=this.authorization(l.method,c,l.subres,s);var d=this._getReqUrl(l);f("request %s %s, with headers %j, !!stream: %s",l.method,d,s,!!l.stream);var g=l.timeout||this.options.timeout,v={method:l.method,content:l.content,stream:l.stream,headers:s,timeout:g,writeStream:l.writeStream,customResponse:l.customResponse,ctx:l.ctx||this.ctx};return this.agent&&(v.agent=this.agent),this.httpsAgent&&(v.httpsAgent=this.httpsAgent),{url:d,params:v}}n.createRequest=e}).call(this,k("buffer").Buffer)},{"./../../../shims/crypto/crypto.js":284,"babel-runtime/core-js/object/assign":54,buffer:73,"copy-to":76,dateformat:190,debug:288,mime:202,path:205}],39:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=m(y),x=k("babel-runtime/helpers/typeof"),A=m(x);function m(f){return f&&f.__esModule?f:{default:f}}Object.defineProperty(n,"__esModule",{value:!0}),n.deepCopy=void 0,n.deepCopy=function(f){if(f===null||(typeof f=="undefined"?"undefined":(0,A.default)(f))!=="object")return f;var h=Array.isArray(f)?[]:{};return(0,p.default)(f).forEach(function(u){h[u]=n.deepCopy(f[u])}),h}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=m(y),x=k("babel-runtime/helpers/typeof"),A=m(x);function m(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(n,"__esModule",{value:!0}),n.formatObjKey=void 0;function f(u,a){if(u===null||(typeof u=="undefined"?"undefined":(0,A.default)(u))!=="object")return u;var i=void 0;if(Array.isArray(u)){i=[];for(var t=0;t<u.length;t++)i.push(f(u[t],a))}else i={},(0,p.default)(u).forEach(function(o){i[h(o,a)]=f(u[o],a)});return i}n.formatObjKey=f;function h(u,a){return a==="firstUpperCase"?u=u.replace(/^./,function(i){return i.toUpperCase()}):a==="firstLowerCase"&&(u=u.replace(/^./,function(i){return i.toLowerCase()})),u}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],41:[function(k,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getStrBytesCount=void 0;function y(p){for(var x=0,A=0;A<p.length;A++){var m=p.charAt(A);/^[\u00-\uff]$/.test(m)?x+=1:x+=2}return x}n.getStrBytesCount=y},{}],42:[function(k,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isArray=void 0,n.isArray=function(y){return Object.prototype.toString.call(y)==="[object Array]"}},{}],43:[function(k,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isBlob=void 0;function y(p){return typeof Blob!="undefined"&&p instanceof Blob}n.isBlob=y},{}],44:[function(k,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isFile=void 0,n.isFile=function(y){return typeof File!="undefined"&&y instanceof File}},{}],45:[function(k,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isIP=void 0,n.isIP=function(y){var p=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,x=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return p.test(y)||x.test(y)}},{}],46:[function(k,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isObject=void 0,n.isObject=function(y){return Object.prototype.toString.call(y)==="[object Object]"}},{}],47:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=x(y);function x(h){return h&&h.__esModule?h:{default:h}}Object.defineProperty(n,"__esModule",{value:!0}),n.obj2xml=void 0;var A=k("./formatObjKey");function m(h){return Object.prototype.toString.call(h).replace(/(.*? |])/g,"").toLowerCase()}function f(h,u){var a="";return u&&u.headers&&(a=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
`),u&&u.firstUpperCase&&(h=A.formatObjKey(h,"firstUpperCase")),m(h)==="object"?(0,p.default)(h).forEach(function(i){m(h[i])==="string"||m(h[i])==="number"?a+="<"+i+">"+h[i]+"</"+i+">":m(h[i])==="object"?a+="<"+i+">"+f(h[i])+"</"+i+">":m(h[i])==="array"?a+=h[i].map(function(t){return"<"+i+">"+f(t)+"</"+i+">"}).join(""):a+="<"+i+">"+h[i].toString()+"</"+i+">"}):a+=h.toString(),a}n.obj2xml=f},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(k,D,n){D.exports=y,D.exports.HttpsAgent=y;function y(){}},{}],49:[function(k,D,n){D.exports=k("./register")().Promise},{"./register":51}],50:[function(k,D,n){"use strict";var y="@@any-promise/REGISTRATION",p=null;D.exports=function(x,A){return function(f,h){f=f||null,h=h||{};var u=h.global!==!1;if(p===null&&u&&(p=x[y]||null),p!==null&&f!==null&&p.implementation!==f)throw new Error('any-promise already defined as "'+p.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return p===null&&(f!==null&&typeof h.Promise!="undefined"?p={Promise:h.Promise,implementation:f}:p=A(f),u&&(x[y]=p)),p}}},{}],51:[function(k,D,n){"use strict";D.exports=k("./loader")(window,y);function y(){if(typeof window.Promise=="undefined")throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}},{"./loader":50}],52:[function(k,D,n){D.exports={default:k("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(k,D,n){D.exports={default:k("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(k,D,n){D.exports={default:k("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(k,D,n){D.exports={default:k("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(k,D,n){D.exports={default:k("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(k,D,n){D.exports={default:k("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(k,D,n){D.exports={default:k("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(k,D,n){D.exports={default:k("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(k,D,n){D.exports={default:k("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(k,D,n){D.exports={default:k("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(k,D,n){D.exports={default:k("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(k,D,n){D.exports={default:k("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(k,D,n){D.exports={default:k("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(k,D,n){D.exports={default:k("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(k,D,n){D.exports={default:k("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(k,D,n){"use strict";n.__esModule=!0;var y=k("../core-js/symbol/iterator"),p=f(y),x=k("../core-js/symbol"),A=f(x),m=typeof A.default=="function"&&typeof p.default=="symbol"?function(h){return typeof h}:function(h){return h&&typeof A.default=="function"&&h.constructor===A.default&&h!==A.default.prototype?"symbol":typeof h};function f(h){return h&&h.__esModule?h:{default:h}}n.default=typeof A.default=="function"&&m(p.default)==="symbol"?function(h){return typeof h=="undefined"?"undefined":m(h)}:function(h){return h&&typeof A.default=="function"&&h.constructor===A.default&&h!==A.default.prototype?"symbol":typeof h=="undefined"?"undefined":m(h)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(k,D,n){D.exports=k("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(k,D,n){"use strict";n.byteLength=u,n.toByteArray=i,n.fromByteArray=e;for(var y=[],p=[],x=typeof Uint8Array!="undefined"?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,f=A.length;m<f;++m)y[m]=A[m],p[A.charCodeAt(m)]=m;p["-".charCodeAt(0)]=62,p["_".charCodeAt(0)]=63;function h(l){var r=l.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var s=l.indexOf("=");s===-1&&(s=r);var c=s===r?0:4-s%4;return[s,c]}function u(l){var r=h(l),s=r[0],c=r[1];return(s+c)*3/4-c}function a(l,r,s){return(r+s)*3/4-s}function i(l){var r,s=h(l),c=s[0],d=s[1],g=new x(a(l,c,d)),v=0,b=d>0?c-4:c,S;for(S=0;S<b;S+=4)r=p[l.charCodeAt(S)]<<18|p[l.charCodeAt(S+1)]<<12|p[l.charCodeAt(S+2)]<<6|p[l.charCodeAt(S+3)],g[v++]=r>>16&255,g[v++]=r>>8&255,g[v++]=r&255;return d===2&&(r=p[l.charCodeAt(S)]<<2|p[l.charCodeAt(S+1)]>>4,g[v++]=r&255),d===1&&(r=p[l.charCodeAt(S)]<<10|p[l.charCodeAt(S+1)]<<4|p[l.charCodeAt(S+2)]>>2,g[v++]=r>>8&255,g[v++]=r&255),g}function t(l){return y[l>>18&63]+y[l>>12&63]+y[l>>6&63]+y[l&63]}function o(l,r,s){for(var c,d=[],g=r;g<s;g+=3)c=(l[g]<<16&16711680)+(l[g+1]<<8&65280)+(l[g+2]&255),d.push(t(c));return d.join("")}function e(l){for(var r,s=l.length,c=s%3,d=[],g=16383,v=0,b=s-c;v<b;v+=g)d.push(o(l,v,v+g>b?b:v+g));return c===1?(r=l[s-1],d.push(y[r>>2]+y[r<<4&63]+"==")):c===2&&(r=(l[s-2]<<8)+l[s-1],d.push(y[r>>10]+y[r>>4&63]+y[r<<2&63]+"=")),d.join("")}},{}],70:[function(k,D,n){/*!
|
|
|
* Bowser - a browser detector
|
|
|
* https://github.com/ded/bowser
|
|
|
* MIT License | (c) Dustin Diaz 2015
|
|
|
*/!function(y,p,x){typeof D!="undefined"&&D.exports?D.exports=x():typeof define=="function"&&define.amd?define(p,x):y[p]=x()}(this,"bowser",function(){var y=!0;function p(a){function i(j){var W=a.match(j);return W&&W.length>1&&W[1]||""}function t(j){var W=a.match(j);return W&&W.length>1&&W[2]||""}var o=i(/(ipod|iphone|ipad)/i).toLowerCase(),e=/like android/i.test(a),l=!e&&/android/i.test(a),r=/nexus\s*[0-6]\s*/i.test(a),s=!r&&/nexus\s*[0-9]+/i.test(a),c=/CrOS/.test(a),d=/silk/i.test(a),g=/sailfish/i.test(a),v=/tizen/i.test(a),b=/(web|hpw)(o|0)s/i.test(a),S=/windows phone/i.test(a),E=/SamsungBrowser/i.test(a),C=!S&&/windows/i.test(a),_=!o&&!d&&/macintosh/i.test(a),T=!l&&!g&&!v&&!b&&/linux/i.test(a),w=t(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),O=i(/version\/(\d+(\.\d+)?)/i),I=/tablet/i.test(a)&&!/tablet pc/i.test(a),R=!I&&/[^-]mobi/i.test(a),M=/xbox/i.test(a),F;/opera/i.test(a)?F={name:"Opera",opera:y,version:O||i(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(a)?F={name:"Opera",opera:y,version:i(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||O}:/SamsungBrowser/i.test(a)?F={name:"Samsung Internet for Android",samsungBrowser:y,version:O||i(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(a)?F={name:"NAVER Whale browser",whale:y,version:i(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(a)?F={name:"MZ Browser",mzbrowser:y,version:i(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(a)?F={name:"Opera Coast",coast:y,version:O||i(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(a)?F={name:"Focus",focus:y,version:i(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(a)?F={name:"Yandex Browser",yandexbrowser:y,version:O||i(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(a)?F={name:"UC Browser",ucbrowser:y,version:i(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(a)?F={name:"Maxthon",maxthon:y,version:i(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(a)?F={name:"Epiphany",epiphany:y,version:i(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(a)?F={name:"Puffin",puffin:y,version:i(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(a)?F={name:"Sleipnir",sleipnir:y,version:i(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(a)?F={name:"K-Meleon",kMeleon:y,version:i(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:S?(F={name:"Windows Phone",osname:"Windows Phone",windowsphone:y},w?(F.msedge=y,F.version=w):(F.msie=y,F.version=i(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(a)?F={name:"Internet Explorer",msie:y,version:i(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:c?F={name:"Chrome",osname:"Chrome OS",chromeos:y,chromeBook:y,chrome:y,version:i(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(a)?F={name:"Microsoft Edge",msedge:y,version:w}:/vivaldi/i.test(a)?F={name:"Vivaldi",vivaldi:y,version:i(/vivaldi\/(\d+(\.\d+)?)/i)||O}:g?F={name:"Sailfish",osname:"Sailfish OS",sailfish:y,version:i(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(a)?F={name:"SeaMonkey",seamonkey:y,version:i(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(a)?(F={name:"Firefox",firefox:y,version:i(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(a)&&(F.firefoxos=y,F.osname="Firefox OS")):d?F={name:"Amazon Silk",silk:y,version:i(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(a)?F={name:"PhantomJS",phantom:y,version:i(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(a)?F={name:"SlimerJS",slimer:y,version:i(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(a)||/rim\stablet/i.test(a)?F={name:"BlackBerry",osname:"BlackBerry OS",blackberry:y,version:O||i(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:b?(F={name:"WebOS",osname:"WebOS",webos:y,version:O||i(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(a)&&(F.touchpad=y)):/bada/i.test(a)?F={name:"Bada",osname:"Bada",bada:y,version:i(/dolfin\/(\d+(\.\d+)?)/i)}:v?F={name:"Tizen",osname:"Tizen",tizen:y,version:i(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||O}:/qupzilla/i.test(a)?F={name:"QupZilla",qupzilla:y,version:i(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||O}:/chromium/i.test(a)?F={name:"Chromium",chromium:y,version:i(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||O}:/chrome|crios|crmo/i.test(a)?F={name:"Chrome",chrome:y,version:i(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:l?F={name:"Android",version:O}:/safari|applewebkit/i.test(a)?(F={name:"Safari",safari:y},O&&(F.version=O)):o?(F={name:o=="iphone"?"iPhone":o=="ipad"?"iPad":"iPod"},O&&(F.version=O)):/googlebot/i.test(a)?F={name:"Googlebot",googlebot:y,version:i(/googlebot\/(\d+(\.\d+))/i)||O}:F={name:i(/^(.*)\/(.*) /),version:t(/^(.*)\/(.*) /)},!F.msedge&&/(apple)?webkit/i.test(a)?(/(apple)?webkit\/537\.36/i.test(a)?(F.name=F.name||"Blink",F.blink=y):(F.name=F.name||"Webkit",F.webkit=y),!F.version&&O&&(F.version=O)):!F.opera&&/gecko\//i.test(a)&&(F.name=F.name||"Gecko",F.gecko=y,F.version=F.version||i(/gecko\/(\d+(\.\d+)?)/i)),!F.windowsphone&&(l||F.silk)?(F.android=y,F.osname="Android"):!F.windowsphone&&o?(F[o]=y,F.ios=y,F.osname="iOS"):_?(F.mac=y,F.osname="macOS"):M?(F.xbox=y,F.osname="Xbox"):C?(F.windows=y,F.osname="Windows"):T&&(F.linux=y,F.osname="Linux");function P(j){switch(j){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var X="";F.windows?X=P(i(/Windows ((NT|XP)( \d\d?.\d)?)/i)):F.windowsphone?X=i(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):F.mac?(X=i(/Mac OS X (\d+([_\.\s]\d+)*)/i),X=X.replace(/[_\s]/g,".")):o?(X=i(/os (\d+([_\s]\d+)*) like mac os x/i),X=X.replace(/[_\s]/g,".")):l?X=i(/android[ \/-](\d+(\.\d+)*)/i):F.webos?X=i(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):F.blackberry?X=i(/rim\stablet\sos\s(\d+(\.\d+)*)/i):F.bada?X=i(/bada\/(\d+(\.\d+)*)/i):F.tizen&&(X=i(/tizen[\/\s](\d+(\.\d+)*)/i)),X&&(F.osversion=X);var B=!F.windows&&X.split(".")[0];return I||s||o=="ipad"||l&&(B==3||B>=4&&!R)||F.silk?F.tablet=y:(R||o=="iphone"||o=="ipod"||l||r||F.blackberry||F.webos||F.bada)&&(F.mobile=y),F.msedge||F.msie&&F.version>=10||F.yandexbrowser&&F.version>=15||F.vivaldi&&F.version>=1||F.chrome&&F.version>=20||F.samsungBrowser&&F.version>=4||F.whale&&f([F.version,"1.0"])===1||F.mzbrowser&&f([F.version,"6.0"])===1||F.focus&&f([F.version,"1.0"])===1||F.firefox&&F.version>=20||F.safari&&F.version>=6||F.opera&&F.version>=10||F.ios&&F.osversion&&F.osversion.split(".")[0]>=6||F.blackberry&&F.version>=10.1||F.chromium&&F.version>=20?F.a=y:F.msie&&F.version<10||F.chrome&&F.version<20||F.firefox&&F.version<20||F.safari&&F.version<6||F.opera&&F.version<10||F.ios&&F.osversion&&F.osversion.split(".")[0]<6||F.chromium&&F.version<20?F.c=y:F.x=y,F}var x=p(typeof navigator!="undefined"&&navigator.userAgent||"");x.test=function(a){for(var i=0;i<a.length;++i){var t=a[i];if(typeof t=="string"&&t in x)return!0}return!1};function A(a){return a.split(".").length}function m(a,i){var t=[],o;if(Array.prototype.map)return Array.prototype.map.call(a,i);for(o=0;o<a.length;o++)t.push(i(a[o]));return t}function f(a){for(var i=Math.max(A(a[0]),A(a[1])),t=m(a,function(o){var e=i-A(o);return o=o+new Array(e+1).join(".0"),m(o.split("."),function(l){return new Array(20-l.length).join("0")+l}).reverse()});--i>=0;){if(t[0][i]>t[1][i])return 1;if(t[0][i]===t[1][i]){if(i===0)return 0}else return-1}}function h(a,i,t){var o=x;typeof i=="string"&&(t=i,i=void 0),i===void 0&&(i=!1),t&&(o=p(t));var e=""+o.version;for(var l in a)if(a.hasOwnProperty(l)&&o[l]){if(typeof a[l]!="string")throw new Error("Browser version in the minVersion map should be a string: "+l+": "+String(a));return f([e,a[l]])<0}return i}function u(a,i,t){return!h(a,i,t)}return x.isUnsupportedBrowser=h,x.compareVersions=f,x.check=u,x._detect=p,x.detect=p,x})},{}],71:[function(k,D,n){},{}],72:[function(k,D,n){var y=k("buffer").Buffer,p=y.isEncoding||function(u){switch(u&&u.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function x(u){if(u&&!p(u))throw new Error("Unknown encoding: "+u)}var A=n.StringDecoder=function(u){this.encoding=(u||"utf8").toLowerCase().replace(/[-_]/,""),x(u);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=f;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=h;break;default:this.write=m;return}this.charBuffer=new y(6),this.charReceived=0,this.charLength=0};A.prototype.write=function(u){for(var a="";this.charLength;){var i=u.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:u.length;if(u.copy(this.charBuffer,this.charReceived,0,i),this.charReceived+=i,this.charReceived<this.charLength)return"";u=u.slice(i,u.length),a=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var o=a.charCodeAt(a.length-1);if(o>=55296&&o<=56319){this.charLength+=this.surrogateSize,a="";continue}if(this.charReceived=this.charLength=0,u.length===0)return a;break}this.detectIncompleteChar(u);var t=u.length;this.charLength&&(u.copy(this.charBuffer,0,u.length-this.charReceived,t),t-=this.charReceived),a+=u.toString(this.encoding,0,t);var t=a.length-1,o=a.charCodeAt(t);if(o>=55296&&o<=56319){var e=this.surrogateSize;return this.charLength+=e,this.charReceived+=e,this.charBuffer.copy(this.charBuffer,e,0,e),u.copy(this.charBuffer,0,0,e),a.substring(0,t)}return a},A.prototype.detectIncompleteChar=function(u){for(var a=u.length>=3?3:u.length;a>0;a--){var i=u[u.length-a];if(a==1&&i>>5==6){this.charLength=2;break}if(a<=2&&i>>4==14){this.charLength=3;break}if(a<=3&&i>>3==30){this.charLength=4;break}}this.charReceived=a},A.prototype.end=function(u){var a="";if(u&&u.length&&(a=this.write(u)),this.charReceived){var i=this.charReceived,t=this.charBuffer,o=this.encoding;a+=t.slice(0,i).toString(o)}return a};function m(u){return u.toString(this.encoding)}function f(u){this.charReceived=u.length%2,this.charLength=this.charReceived?2:0}function h(u){this.charReceived=u.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(k,D,n){(function(y,p){/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/"use strict";var x=k("base64-js"),A=k("ieee754"),m=k("isarray");n.Buffer=p,n.SlowBuffer=d,n.INSPECT_MAX_BYTES=50,p.TYPED_ARRAY_SUPPORT=y.TYPED_ARRAY_SUPPORT!==void 0?y.TYPED_ARRAY_SUPPORT:f(),n.kMaxLength=h();function f(){try{var he=new Uint8Array(1);return he.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},he.foo()===42&&typeof he.subarray=="function"&&he.subarray(1,1).byteLength===0}catch(J){return!1}}function h(){return p.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(he,J){if(h()<J)throw new RangeError("Invalid typed array length");return p.TYPED_ARRAY_SUPPORT?(he=new Uint8Array(J),he.__proto__=p.prototype):(he===null&&(he=new p(J)),he.length=J),he}function p(he,J,Y){if(!p.TYPED_ARRAY_SUPPORT&&!(this instanceof p))return new p(he,J,Y);if(typeof he=="number"){if(typeof J=="string")throw new Error("If encoding is specified then the first argument must be a string");return o(this,he)}return a(this,he,J,Y)}p.poolSize=8192,p._augment=function(he){return he.__proto__=p.prototype,he};function a(he,J,Y,$){if(typeof J=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&J instanceof ArrayBuffer?r(he,J,Y,$):typeof J=="string"?e(he,J,Y):s(he,J)}p.from=function(he,J,Y){return a(null,he,J,Y)},p.TYPED_ARRAY_SUPPORT&&(p.prototype.__proto__=Uint8Array.prototype,p.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&p[Symbol.species]===p&&Object.defineProperty(p,Symbol.species,{value:null,configurable:!0}));function i(he){if(typeof he!="number")throw new TypeError('"size" argument must be a number');if(he<0)throw new RangeError('"size" argument must not be negative')}function t(he,J,Y,$){return i(J),J<=0?u(he,J):Y!==void 0?typeof $=="string"?u(he,J).fill(Y,$):u(he,J).fill(Y):u(he,J)}p.alloc=function(he,J,Y){return t(null,he,J,Y)};function o(he,J){if(i(J),he=u(he,J<0?0:c(J)|0),!p.TYPED_ARRAY_SUPPORT)for(var Y=0;Y<J;++Y)he[Y]=0;return he}p.allocUnsafe=function(he){return o(null,he)},p.allocUnsafeSlow=function(he){return o(null,he)};function e(he,J,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!p.isEncoding(Y))throw new TypeError('"encoding" must be a valid string encoding');var $=g(J,Y)|0;he=u(he,$);var fe=he.write(J,Y);return fe!==$&&(he=he.slice(0,fe)),he}function l(he,J){var Y=J.length<0?0:c(J.length)|0;he=u(he,Y);for(var $=0;$<Y;$+=1)he[$]=J[$]&255;return he}function r(he,J,Y,$){if(J.byteLength,Y<0||J.byteLength<Y)throw new RangeError("'offset' is out of bounds");if(J.byteLength<Y+($||0))throw new RangeError("'length' is out of bounds");return Y===void 0&&$===void 0?J=new Uint8Array(J):$===void 0?J=new Uint8Array(J,Y):J=new Uint8Array(J,Y,$),p.TYPED_ARRAY_SUPPORT?(he=J,he.__proto__=p.prototype):he=l(he,J),he}function s(he,J){if(p.isBuffer(J)){var Y=c(J.length)|0;return he=u(he,Y),he.length===0||J.copy(he,0,0,Y),he}if(J){if(typeof ArrayBuffer!="undefined"&&J.buffer instanceof ArrayBuffer||"length"in J)return typeof J.length!="number"||st(J.length)?u(he,0):l(he,J);if(J.type==="Buffer"&&m(J.data))return l(he,J.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(he){if(he>=h())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h().toString(16)+" bytes");return he|0}function d(he){return+he!=he&&(he=0),p.alloc(+he)}p.isBuffer=function(J){return!!(J!=null&&J._isBuffer)},p.compare=function(J,Y){if(!p.isBuffer(J)||!p.isBuffer(Y))throw new TypeError("Arguments must be Buffers");if(J===Y)return 0;for(var $=J.length,fe=Y.length,we=0,Ne=Math.min($,fe);we<Ne;++we)if(J[we]!==Y[we]){$=J[we],fe=Y[we];break}return $<fe?-1:fe<$?1:0},p.isEncoding=function(J){switch(String(J).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},p.concat=function(J,Y){if(!m(J))throw new TypeError('"list" argument must be an Array of Buffers');if(J.length===0)return p.alloc(0);var $;if(Y===void 0)for(Y=0,$=0;$<J.length;++$)Y+=J[$].length;var fe=p.allocUnsafe(Y),we=0;for($=0;$<J.length;++$){var Ne=J[$];if(!p.isBuffer(Ne))throw new TypeError('"list" argument must be an Array of Buffers');Ne.copy(fe,we),we+=Ne.length}return fe};function g(he,J){if(p.isBuffer(he))return he.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(he)||he instanceof ArrayBuffer))return he.byteLength;typeof he!="string"&&(he=""+he);var Y=he.length;if(Y===0)return 0;for(var $=!1;;)switch(J){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":case void 0:return Qe(he).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y*2;case"hex":return Y>>>1;case"base64":return Oe(he).length;default:if($)return Qe(he).length;J=(""+J).toLowerCase(),$=!0}}p.byteLength=g;function v(he,J,Y){var $=!1;if((J===void 0||J<0)&&(J=0),J>this.length)return"";if((Y===void 0||Y>this.length)&&(Y=this.length),Y<=0)return"";if(Y>>>=0,J>>>=0,Y<=J)return"";for(he||(he="utf8");;)switch(he){case"hex":return j(this,J,Y);case"utf8":case"utf-8":return M(this,J,Y);case"ascii":return X(this,J,Y);case"latin1":case"binary":return B(this,J,Y);case"base64":return R(this,J,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,J,Y);default:if($)throw new TypeError("Unknown encoding: "+he);he=(he+"").toLowerCase(),$=!0}}p.prototype._isBuffer=!0;function b(he,J,Y){var $=he[J];he[J]=he[Y],he[Y]=$}p.prototype.swap16=function(){var J=this.length;if(J%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Y=0;Y<J;Y+=2)b(this,Y,Y+1);return this},p.prototype.swap32=function(){var J=this.length;if(J%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Y=0;Y<J;Y+=4)b(this,Y,Y+3),b(this,Y+1,Y+2);return this},p.prototype.swap64=function(){var J=this.length;if(J%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Y=0;Y<J;Y+=8)b(this,Y,Y+7),b(this,Y+1,Y+6),b(this,Y+2,Y+5),b(this,Y+3,Y+4);return this},p.prototype.toString=function(){var J=this.length|0;return J===0?"":arguments.length===0?M(this,0,J):v.apply(this,arguments)},p.prototype.equals=function(J){if(!p.isBuffer(J))throw new TypeError("Argument must be a Buffer");return this===J?!0:p.compare(this,J)===0},p.prototype.inspect=function(){var J="",Y=n.INSPECT_MAX_BYTES;return this.length>0&&(J=this.toString("hex",0,Y).match(/.{2}/g).join(" "),this.length>Y&&(J+=" ... ")),"<Buffer "+J+">"},p.prototype.compare=function(J,Y,$,fe,we){if(!p.isBuffer(J))throw new TypeError("Argument must be a Buffer");if(Y===void 0&&(Y=0),$===void 0&&($=J?J.length:0),fe===void 0&&(fe=0),we===void 0&&(we=this.length),Y<0||$>J.length||fe<0||we>this.length)throw new RangeError("out of range index");if(fe>=we&&Y>=$)return 0;if(fe>=we)return-1;if(Y>=$)return 1;if(Y>>>=0,$>>>=0,fe>>>=0,we>>>=0,this===J)return 0;for(var Ne=we-fe,Ee=$-Y,de=Math.min(Ne,Ee),me=this.slice(fe,we),Le=J.slice(Y,$),tt=0;tt<de;++tt)if(me[tt]!==Le[tt]){Ne=me[tt],Ee=Le[tt];break}return Ne<Ee?-1:Ee<Ne?1:0};function S(he,J,Y,$,fe){if(he.length===0)return-1;if(typeof Y=="string"?($=Y,Y=0):Y>2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,isNaN(Y)&&(Y=fe?0:he.length-1),Y<0&&(Y=he.length+Y),Y>=he.length){if(fe)return-1;Y=he.length-1}else if(Y<0)if(fe)Y=0;else return-1;if(typeof J=="string"&&(J=p.from(J,$)),p.isBuffer(J))return J.length===0?-1:E(he,J,Y,$,fe);if(typeof J=="number")return J=J&255,p.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?fe?Uint8Array.prototype.indexOf.call(he,J,Y):Uint8Array.prototype.lastIndexOf.call(he,J,Y):E(he,[J],Y,$,fe);throw new TypeError("val must be string, number or Buffer")}function E(he,J,Y,$,fe){var we=1,Ne=he.length,Ee=J.length;if($!==void 0&&($=String($).toLowerCase(),$==="ucs2"||$==="ucs-2"||$==="utf16le"||$==="utf-16le")){if(he.length<2||J.length<2)return-1;we=2,Ne/=2,Ee/=2,Y/=2}function de(ht,Ke){return we===1?ht[Ke]:ht.readUInt16BE(Ke*we)}var me;if(fe){var Le=-1;for(me=Y;me<Ne;me++)if(de(he,me)===de(J,Le===-1?0:me-Le)){if(Le===-1&&(Le=me),me-Le+1===Ee)return Le*we}else Le!==-1&&(me-=me-Le),Le=-1}else for(Y+Ee>Ne&&(Y=Ne-Ee),me=Y;me>=0;me--){for(var tt=!0,At=0;At<Ee;At++)if(de(he,me+At)!==de(J,At)){tt=!1;break}if(tt)return me}return-1}p.prototype.includes=function(J,Y,$){return this.indexOf(J,Y,$)!==-1},p.prototype.indexOf=function(J,Y,$){return S(this,J,Y,$,!0)},p.prototype.lastIndexOf=function(J,Y,$){return S(this,J,Y,$,!1)};function C(he,J,Y,$){Y=Number(Y)||0;var fe=he.length-Y;$?($=Number($),$>fe&&($=fe)):$=fe;var we=J.length;if(we%2!==0)throw new TypeError("Invalid hex string");$>we/2&&($=we/2);for(var Ne=0;Ne<$;++Ne){var Ee=parseInt(J.substr(Ne*2,2),16);if(isNaN(Ee))return Ne;he[Y+Ne]=Ee}return Ne}function _(he,J,Y,$){return oe(Qe(J,he.length-Y),he,Y,$)}function T(he,J,Y,$){return oe(We(J),he,Y,$)}function w(he,J,Y,$){return T(he,J,Y,$)}function O(he,J,Y,$){return oe(Oe(J),he,Y,$)}function I(he,J,Y,$){return oe(ot(J,he.length-Y),he,Y,$)}p.prototype.write=function(J,Y,$,fe){if(Y===void 0)fe="utf8",$=this.length,Y=0;else if($===void 0&&typeof Y=="string")fe=Y,$=this.length,Y=0;else if(isFinite(Y))Y=Y|0,isFinite($)?($=$|0,fe===void 0&&(fe="utf8")):(fe=$,$=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var we=this.length-Y;if(($===void 0||$>we)&&($=we),J.length>0&&($<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");fe||(fe="utf8");for(var Ne=!1;;)switch(fe){case"hex":return C(this,J,Y,$);case"utf8":case"utf-8":return _(this,J,Y,$);case"ascii":return T(this,J,Y,$);case"latin1":case"binary":return w(this,J,Y,$);case"base64":return O(this,J,Y,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,J,Y,$);default:if(Ne)throw new TypeError("Unknown encoding: "+fe);fe=(""+fe).toLowerCase(),Ne=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function R(he,J,Y){return J===0&&Y===he.length?x.fromByteArray(he):x.fromByteArray(he.slice(J,Y))}function M(he,J,Y){Y=Math.min(he.length,Y);for(var $=[],fe=J;fe<Y;){var we=he[fe],Ne=null,Ee=we>239?4:we>223?3:we>191?2:1;if(fe+Ee<=Y){var de,me,Le,tt;switch(Ee){case 1:we<128&&(Ne=we);break;case 2:de=he[fe+1],(de&192)===128&&(tt=(we&31)<<6|de&63,tt>127&&(Ne=tt));break;case 3:de=he[fe+1],me=he[fe+2],(de&192)===128&&(me&192)===128&&(tt=(we&15)<<12|(de&63)<<6|me&63,tt>2047&&(tt<55296||tt>57343)&&(Ne=tt));break;case 4:de=he[fe+1],me=he[fe+2],Le=he[fe+3],(de&192)===128&&(me&192)===128&&(Le&192)===128&&(tt=(we&15)<<18|(de&63)<<12|(me&63)<<6|Le&63,tt>65535&&tt<1114112&&(Ne=tt))}}Ne===null?(Ne=65533,Ee=1):Ne>65535&&(Ne-=65536,$.push(Ne>>>10&1023|55296),Ne=56320|Ne&1023),$.push(Ne),fe+=Ee}return P($)}var F=4096;function P(he){var J=he.length;if(J<=F)return String.fromCharCode.apply(String,he);for(var Y="",$=0;$<J;)Y+=String.fromCharCode.apply(String,he.slice($,$+=F));return Y}function X(he,J,Y){var $="";Y=Math.min(he.length,Y);for(var fe=J;fe<Y;++fe)$+=String.fromCharCode(he[fe]&127);return $}function B(he,J,Y){var $="";Y=Math.min(he.length,Y);for(var fe=J;fe<Y;++fe)$+=String.fromCharCode(he[fe]);return $}function j(he,J,Y){var $=he.length;(!J||J<0)&&(J=0),(!Y||Y<0||Y>$)&&(Y=$);for(var fe="",we=J;we<Y;++we)fe+=Re(he[we]);return fe}function W(he,J,Y){for(var $=he.slice(J,Y),fe="",we=0;we<$.length;we+=2)fe+=String.fromCharCode($[we]+$[we+1]*256);return fe}p.prototype.slice=function(J,Y){var $=this.length;J=~~J,Y=Y===void 0?$:~~Y,J<0?(J+=$,J<0&&(J=0)):J>$&&(J=$),Y<0?(Y+=$,Y<0&&(Y=0)):Y>$&&(Y=$),Y<J&&(Y=J);var fe;if(p.TYPED_ARRAY_SUPPORT)fe=this.subarray(J,Y),fe.__proto__=p.prototype;else{var we=Y-J;fe=new p(we,void 0);for(var Ne=0;Ne<we;++Ne)fe[Ne]=this[Ne+J]}return fe};function z(he,J,Y){if(he%1!==0||he<0)throw new RangeError("offset is not uint");if(he+J>Y)throw new RangeError("Trying to access beyond buffer length")}p.prototype.readUIntLE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var fe=this[J],we=1,Ne=0;++Ne<Y&&(we*=256);)fe+=this[J+Ne]*we;return fe},p.prototype.readUIntBE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var fe=this[J+--Y],we=1;Y>0&&(we*=256);)fe+=this[J+--Y]*we;return fe},p.prototype.readUInt8=function(J,Y){return Y||z(J,1,this.length),this[J]},p.prototype.readUInt16LE=function(J,Y){return Y||z(J,2,this.length),this[J]|this[J+1]<<8},p.prototype.readUInt16BE=function(J,Y){return Y||z(J,2,this.length),this[J]<<8|this[J+1]},p.prototype.readUInt32LE=function(J,Y){return Y||z(J,4,this.length),(this[J]|this[J+1]<<8|this[J+2]<<16)+this[J+3]*16777216},p.prototype.readUInt32BE=function(J,Y){return Y||z(J,4,this.length),this[J]*16777216+(this[J+1]<<16|this[J+2]<<8|this[J+3])},p.prototype.readIntLE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var fe=this[J],we=1,Ne=0;++Ne<Y&&(we*=256);)fe+=this[J+Ne]*we;return we*=128,fe>=we&&(fe-=Math.pow(2,8*Y)),fe},p.prototype.readIntBE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var fe=Y,we=1,Ne=this[J+--fe];fe>0&&(we*=256);)Ne+=this[J+--fe]*we;return we*=128,Ne>=we&&(Ne-=Math.pow(2,8*Y)),Ne},p.prototype.readInt8=function(J,Y){return Y||z(J,1,this.length),this[J]&128?(255-this[J]+1)*-1:this[J]},p.prototype.readInt16LE=function(J,Y){Y||z(J,2,this.length);var $=this[J]|this[J+1]<<8;return $&32768?$|4294901760:$},p.prototype.readInt16BE=function(J,Y){Y||z(J,2,this.length);var $=this[J+1]|this[J]<<8;return $&32768?$|4294901760:$},p.prototype.readInt32LE=function(J,Y){return Y||z(J,4,this.length),this[J]|this[J+1]<<8|this[J+2]<<16|this[J+3]<<24},p.prototype.readInt32BE=function(J,Y){return Y||z(J,4,this.length),this[J]<<24|this[J+1]<<16|this[J+2]<<8|this[J+3]},p.prototype.readFloatLE=function(J,Y){return Y||z(J,4,this.length),A.read(this,J,!0,23,4)},p.prototype.readFloatBE=function(J,Y){return Y||z(J,4,this.length),A.read(this,J,!1,23,4)},p.prototype.readDoubleLE=function(J,Y){return Y||z(J,8,this.length),A.read(this,J,!0,52,8)},p.prototype.readDoubleBE=function(J,Y){return Y||z(J,8,this.length),A.read(this,J,!1,52,8)};function V(he,J,Y,$,fe,we){if(!p.isBuffer(he))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>fe||J<we)throw new RangeError('"value" argument is out of bounds');if(Y+$>he.length)throw new RangeError("Index out of range")}p.prototype.writeUIntLE=function(J,Y,$,fe){if(J=+J,Y=Y|0,$=$|0,!fe){var we=Math.pow(2,8*$)-1;V(this,J,Y,$,we,0)}var Ne=1,Ee=0;for(this[Y]=J&255;++Ee<$&&(Ne*=256);)this[Y+Ee]=J/Ne&255;return Y+$},p.prototype.writeUIntBE=function(J,Y,$,fe){if(J=+J,Y=Y|0,$=$|0,!fe){var we=Math.pow(2,8*$)-1;V(this,J,Y,$,we,0)}var Ne=$-1,Ee=1;for(this[Y+Ne]=J&255;--Ne>=0&&(Ee*=256);)this[Y+Ne]=J/Ee&255;return Y+$},p.prototype.writeUInt8=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,1,255,0),p.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),this[Y]=J&255,Y+1};function Q(he,J,Y,$){J<0&&(J=65535+J+1);for(var fe=0,we=Math.min(he.length-Y,2);fe<we;++fe)he[Y+fe]=(J&255<<8*($?fe:1-fe))>>>($?fe:1-fe)*8}p.prototype.writeUInt16LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8):Q(this,J,Y,!0),Y+2},p.prototype.writeUInt16BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>8,this[Y+1]=J&255):Q(this,J,Y,!1),Y+2};function G(he,J,Y,$){J<0&&(J=4294967295+J+1);for(var fe=0,we=Math.min(he.length-Y,4);fe<we;++fe)he[Y+fe]=J>>>($?fe:3-fe)*8&255}p.prototype.writeUInt32LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[Y+3]=J>>>24,this[Y+2]=J>>>16,this[Y+1]=J>>>8,this[Y]=J&255):G(this,J,Y,!0),Y+4},p.prototype.writeUInt32BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>24,this[Y+1]=J>>>16,this[Y+2]=J>>>8,this[Y+3]=J&255):G(this,J,Y,!1),Y+4},p.prototype.writeIntLE=function(J,Y,$,fe){if(J=+J,Y=Y|0,!fe){var we=Math.pow(2,8*$-1);V(this,J,Y,$,we-1,-we)}var Ne=0,Ee=1,de=0;for(this[Y]=J&255;++Ne<$&&(Ee*=256);)J<0&&de===0&&this[Y+Ne-1]!==0&&(de=1),this[Y+Ne]=(J/Ee>>0)-de&255;return Y+$},p.prototype.writeIntBE=function(J,Y,$,fe){if(J=+J,Y=Y|0,!fe){var we=Math.pow(2,8*$-1);V(this,J,Y,$,we-1,-we)}var Ne=$-1,Ee=1,de=0;for(this[Y+Ne]=J&255;--Ne>=0&&(Ee*=256);)J<0&&de===0&&this[Y+Ne+1]!==0&&(de=1),this[Y+Ne]=(J/Ee>>0)-de&255;return Y+$},p.prototype.writeInt8=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,1,127,-128),p.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),J<0&&(J=255+J+1),this[Y]=J&255,Y+1},p.prototype.writeInt16LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8):Q(this,J,Y,!0),Y+2},p.prototype.writeInt16BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>8,this[Y+1]=J&255):Q(this,J,Y,!1),Y+2},p.prototype.writeInt32LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,2147483647,-2147483648),p.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8,this[Y+2]=J>>>16,this[Y+3]=J>>>24):G(this,J,Y,!0),Y+4},p.prototype.writeInt32BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,2147483647,-2147483648),J<0&&(J=4294967295+J+1),p.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>24,this[Y+1]=J>>>16,this[Y+2]=J>>>8,this[Y+3]=J&255):G(this,J,Y,!1),Y+4};function ee(he,J,Y,$,fe,we){if(Y+$>he.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function ce(he,J,Y,$,fe){return fe||ee(he,J,Y,4,34028234663852886e22,-34028234663852886e22),A.write(he,J,Y,$,23,4),Y+4}p.prototype.writeFloatLE=function(J,Y,$){return ce(this,J,Y,!0,$)},p.prototype.writeFloatBE=function(J,Y,$){return ce(this,J,Y,!1,$)};function be(he,J,Y,$,fe){return fe||ee(he,J,Y,8,17976931348623157e292,-17976931348623157e292),A.write(he,J,Y,$,52,8),Y+8}p.prototype.writeDoubleLE=function(J,Y,$){return be(this,J,Y,!0,$)},p.prototype.writeDoubleBE=function(J,Y,$){return be(this,J,Y,!1,$)},p.prototype.copy=function(J,Y,$,fe){if($||($=0),!fe&&fe!==0&&(fe=this.length),Y>=J.length&&(Y=J.length),Y||(Y=0),fe>0&&fe<$&&(fe=$),fe===$)return 0;if(J.length===0||this.length===0)return 0;if(Y<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("sourceStart out of bounds");if(fe<0)throw new RangeError("sourceEnd out of bounds");fe>this.length&&(fe=this.length),J.length-Y<fe-$&&(fe=J.length-Y+$);var we=fe-$,Ne;if(this===J&&$<Y&&Y<fe)for(Ne=we-1;Ne>=0;--Ne)J[Ne+Y]=this[Ne+$];else if(we<1e3||!p.TYPED_ARRAY_SUPPORT)for(Ne=0;Ne<we;++Ne)J[Ne+Y]=this[Ne+$];else Uint8Array.prototype.set.call(J,this.subarray($,$+we),Y);return we},p.prototype.fill=function(J,Y,$,fe){if(typeof J=="string"){if(typeof Y=="string"?(fe=Y,Y=0,$=this.length):typeof $=="string"&&(fe=$,$=this.length),J.length===1){var we=J.charCodeAt(0);we<256&&(J=we)}if(fe!==void 0&&typeof fe!="string")throw new TypeError("encoding must be a string");if(typeof fe=="string"&&!p.isEncoding(fe))throw new TypeError("Unknown encoding: "+fe)}else typeof J=="number"&&(J=J&255);if(Y<0||this.length<Y||this.length<$)throw new RangeError("Out of range index");if($<=Y)return this;Y=Y>>>0,$=$===void 0?this.length:$>>>0,J||(J=0);var Ne;if(typeof J=="number")for(Ne=Y;Ne<$;++Ne)this[Ne]=J;else{var Ee=p.isBuffer(J)?J:Qe(new p(J,fe).toString()),de=Ee.length;for(Ne=0;Ne<$-Y;++Ne)this[Ne+Y]=Ee[Ne%de]}return this};var le=/[^+\/0-9A-Za-z-_]/g;function Ie(he){if(he=ke(he).replace(le,""),he.length<2)return"";for(;he.length%4!==0;)he=he+"=";return he}function ke(he){return he.trim?he.trim():he.replace(/^\s+|\s+$/g,"")}function Re(he){return he<16?"0"+he.toString(16):he.toString(16)}function Qe(he,J){J=J||Infinity;for(var Y,$=he.length,fe=null,we=[],Ne=0;Ne<$;++Ne){if(Y=he.charCodeAt(Ne),Y>55295&&Y<57344){if(!fe){if(Y>56319){(J-=3)>-1&&we.push(239,191,189);continue}else if(Ne+1===$){(J-=3)>-1&&we.push(239,191,189);continue}fe=Y;continue}if(Y<56320){(J-=3)>-1&&we.push(239,191,189),fe=Y;continue}Y=(fe-55296<<10|Y-56320)+65536}else fe&&((J-=3)>-1&&we.push(239,191,189));if(fe=null,Y<128){if((J-=1)<0)break;we.push(Y)}else if(Y<2048){if((J-=2)<0)break;we.push(Y>>6|192,Y&63|128)}else if(Y<65536){if((J-=3)<0)break;we.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if((J-=4)<0)break;we.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,Y&63|128)}else throw new Error("Invalid code point")}return we}function We(he){for(var J=[],Y=0;Y<he.length;++Y)J.push(he.charCodeAt(Y)&255);return J}function ot(he,J){for(var Y,$,fe,we=[],Ne=0;Ne<he.length&&!((J-=2)<0);++Ne)Y=he.charCodeAt(Ne),$=Y>>8,fe=Y%256,we.push(fe),we.push($);return we}function Oe(he){return x.toByteArray(Ie(he))}function oe(he,J,Y,$){for(var fe=0;fe<$&&!(fe+Y>=J.length||fe>=he.length);++fe)J[fe+Y]=he[fe];return fe}function st(he){return he!==he}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},k("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(k,D,n){D.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Unordered Collection","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}},{}],75:[function(k,D,n){D.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],76:[function(k,D,n){/*!
|
|
|
* copy-to - index.js
|
|
|
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var y=Array.prototype.slice;D.exports=p;function p(A,m){if(!(this instanceof p))return new p(A,m);this.src=A,this._withAccess=m}p.prototype.withAccess=function(A){return this._withAccess=A!==!1,this},p.prototype.pick=function(A){return Array.isArray(A)||(A=y.call(arguments)),A.length&&(this.keys=A),this},p.prototype.to=function(A){if(A=A||{},!this.src)return A;var m=this.keys||Object.keys(this.src);if(!this._withAccess){for(var f=0;f<m.length;f++){if(h=m[f],A[h]!==void 0)continue;A[h]=this.src[h]}return A}for(var f=0;f<m.length;f++){var h=m[f];if(!x(A,h))continue;var u=this.src.__lookupGetter__(h),a=this.src.__lookupSetter__(h);u&&A.__defineGetter__(h,u),a&&A.__defineSetter__(h,a),!u&&!a&&(A[h]=this.src[h])}return A},p.prototype.toCover=function(A){for(var m=this.keys||Object.keys(this.src),f=0;f<m.length;f++){var h=m[f];delete A[h];var u=this.src.__lookupGetter__(h),a=this.src.__lookupSetter__(h);u&&A.__defineGetter__(h,u),a&&A.__defineSetter__(h,a),!u&&!a&&(A[h]=this.src[h])}},p.prototype.override=p.prototype.toCover,p.prototype.and=function(A){var m={};return this.to(m),this.src=A,this.to(m),this.src=m,this};function x(A,m){return A[m]===void 0&&A.__lookupGetter__(m)===void 0&&A.__lookupSetter__(m)===void 0}},{}],77:[function(k,D,n){k("../../modules/es6.string.iterator"),k("../../modules/es6.array.from"),D.exports=k("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(k,D,n){var y=k("../../modules/_core"),p=y.JSON||(y.JSON={stringify:JSON.stringify});D.exports=function(A){return p.stringify.apply(p,arguments)}},{"../../modules/_core":99}],79:[function(k,D,n){k("../../modules/es6.object.assign"),D.exports=k("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(k,D,n){k("../../modules/es6.object.create");var y=k("../../modules/_core").Object;D.exports=function(x,A){return y.create(x,A)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(k,D,n){k("../../modules/es6.object.define-property");var y=k("../../modules/_core").Object;D.exports=function(x,A,m){return y.defineProperty(x,A,m)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(k,D,n){k("../../modules/es7.object.entries"),D.exports=k("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(k,D,n){k("../../modules/es6.object.get-own-property-names");var y=k("../../modules/_core").Object;D.exports=function(x){return y.getOwnPropertyNames(x)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(k,D,n){k("../../modules/es6.object.get-prototype-of"),D.exports=k("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(k,D,n){k("../../modules/es6.object.keys"),D.exports=k("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(k,D,n){k("../modules/es6.object.to-string"),k("../modules/es6.string.iterator"),k("../modules/web.dom.iterable"),k("../modules/es6.promise"),k("../modules/es7.promise.finally"),k("../modules/es7.promise.try"),D.exports=k("../modules/_core").Promise},{"../modules/_core":99,"../modules/es6.object.to-string":177,"../modules/es6.promise":178,"../modules/es6.string.iterator":180,"../modules/es7.promise.finally":183,"../modules/es7.promise.try":184,"../modules/web.dom.iterable":187}],87:[function(k,D,n){k("../modules/web.immediate"),D.exports=k("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(k,D,n){k("../../modules/es6.string.from-code-point"),D.exports=k("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(k,D,n){k("../../modules/es6.function.has-instance"),D.exports=k("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(k,D,n){k("../../modules/es6.symbol"),k("../../modules/es6.object.to-string"),k("../../modules/es7.symbol.async-iterator"),k("../../modules/es7.symbol.observable"),D.exports=k("../../modules/_core").Symbol},{"../../modules/_core":99,"../../modules/es6.object.to-string":177,"../../modules/es6.symbol":181,"../../modules/es7.symbol.async-iterator":185,"../../modules/es7.symbol.observable":186}],91:[function(k,D,n){k("../../modules/es6.string.iterator"),k("../../modules/web.dom.iterable"),D.exports=k("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(k,D,n){D.exports=function(y){if(typeof y!="function")throw TypeError(y+" is not a function!");return y}},{}],93:[function(k,D,n){D.exports=function(){}},{}],94:[function(k,D,n){D.exports=function(y,p,x,A){if(!(y instanceof p)||A!==void 0&&A in y)throw TypeError(x+": incorrect invocation!");return y}},{}],95:[function(k,D,n){var y=k("./_is-object");D.exports=function(p){if(!y(p))throw TypeError(p+" is not an object!");return p}},{"./_is-object":119}],96:[function(k,D,n){var y=k("./_to-iobject"),p=k("./_to-length"),x=k("./_to-absolute-index");D.exports=function(A){return function(m,f,h){var u=y(m),a=p(u.length),i=x(h,a),t;if(A&&f!=f){for(;a>i;)if(t=u[i++],t!=t)return!0}else for(;a>i;i++)if((A||i in u)&&u[i]===f)return A||i||0;return!A&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(k,D,n){var y=k("./_cof"),p=k("./_wks")("toStringTag"),x=y(function(){return arguments}())=="Arguments",A=function(f,h){try{return f[h]}catch(u){}};D.exports=function(m){var f,h,u;return m===void 0?"Undefined":m===null?"Null":typeof(h=A(f=Object(m),p))=="string"?h:x?y(f):(u=y(f))=="Object"&&typeof f.callee=="function"?"Arguments":u}},{"./_cof":98,"./_wks":166}],98:[function(k,D,n){var y={}.toString;D.exports=function(p){return y.call(p).slice(8,-1)}},{}],99:[function(k,D,n){var y=D.exports={version:"2.6.11"};typeof __e=="number"&&(__e=y)},{}],100:[function(k,D,n){"use strict";var y=k("./_object-dp"),p=k("./_property-desc");D.exports=function(x,A,m){A in x?y.f(x,A,p(0,m)):x[A]=m}},{"./_object-dp":132,"./_property-desc":146}],101:[function(k,D,n){var y=k("./_a-function");D.exports=function(p,x,A){if(y(p),x===void 0)return p;switch(A){case 1:return function(m){return p.call(x,m)};case 2:return function(m,f){return p.call(x,m,f)};case 3:return function(m,f,h){return p.call(x,m,f,h)}}return function(){return p.apply(x,arguments)}}},{"./_a-function":92}],102:[function(k,D,n){D.exports=function(y){if(y==null)throw TypeError("Can't call method on "+y);return y}},{}],103:[function(k,D,n){D.exports=!k("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(k,D,n){var y=k("./_is-object"),p=k("./_global").document,x=y(p)&&y(p.createElement);D.exports=function(A){return x?p.createElement(A):{}}},{"./_global":110,"./_is-object":119}],105:[function(k,D,n){D.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(k,D,n){var y=k("./_object-keys"),p=k("./_object-gops"),x=k("./_object-pie");D.exports=function(A){var m=y(A),f=p.f;if(f)for(var h=f(A),u=x.f,a=0,i;h.length>a;)u.call(A,i=h[a++])&&m.push(i);return m}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(k,D,n){var y=k("./_global"),p=k("./_core"),x=k("./_ctx"),A=k("./_hide"),m=k("./_has"),f="prototype",h=function u(a,i,t){var o=a&u.F,e=a&u.G,l=a&u.S,r=a&u.P,s=a&u.B,c=a&u.W,d=e?p:p[i]||(p[i]={}),g=d[f],v=e?y:l?y[i]:(y[i]||{})[f],b,S,E;e&&(t=i);for(b in t){if(S=!o&&v&&v[b]!==void 0,S&&m(d,b))continue;E=S?v[b]:t[b],d[b]=e&&typeof v[b]!="function"?t[b]:s&&S?x(E,y):c&&v[b]==E?function(C){var _=function(w,O,I){if(this instanceof C){switch(arguments.length){case 0:return new C;case 1:return new C(w);case 2:return new C(w,O)}return new C(w,O,I)}return C.apply(this,arguments)};return _[f]=C[f],_}(E):r&&typeof E=="function"?x(Function.call,E):E,r&&((d.virtual||(d.virtual={}))[b]=E,a&u.R&&g&&!g[b]&&A(g,b,E))}};h.F=1,h.G=2,h.S=4,h.P=8,h.B=16,h.W=32,h.U=64,h.R=128,D.exports=h},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(k,D,n){D.exports=function(y){try{return!!y()}catch(p){return!0}}},{}],109:[function(k,D,n){var y=k("./_ctx"),p=k("./_iter-call"),x=k("./_is-array-iter"),A=k("./_an-object"),m=k("./_to-length"),f=k("./core.get-iterator-method"),h={},u={},n=D.exports=function(a,i,t,o,e){var l=e?function(){return a}:f(a),r=y(t,o,i?2:1),s=0,c,d,g,v;if(typeof l!="function")throw TypeError(a+" is not iterable!");if(x(l)){for(c=m(a.length);c>s;s++)if(v=i?r(A(d=a[s])[0],d[1]):r(a[s]),v===h||v===u)return v}else for(g=l.call(a);!(d=g.next()).done;)if(v=p(g,r,d.value,i),v===h||v===u)return v};n.BREAK=h,n.RETURN=u},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(k,D,n){var y=D.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=y)},{}],111:[function(k,D,n){var y={}.hasOwnProperty;D.exports=function(p,x){return y.call(p,x)}},{}],112:[function(k,D,n){var y=k("./_object-dp"),p=k("./_property-desc");D.exports=k("./_descriptors")?function(x,A,m){return y.f(x,A,p(1,m))}:function(x,A,m){return x[A]=m,x}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(k,D,n){var y=k("./_global").document;D.exports=y&&y.documentElement},{"./_global":110}],114:[function(k,D,n){D.exports=!k("./_descriptors")&&!k("./_fails")(function(){return Object.defineProperty(k("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(k,D,n){D.exports=function(y,p,x){var A=x===void 0;switch(p.length){case 0:return A?y():y.call(x);case 1:return A?y(p[0]):y.call(x,p[0]);case 2:return A?y(p[0],p[1]):y.call(x,p[0],p[1]);case 3:return A?y(p[0],p[1],p[2]):y.call(x,p[0],p[1],p[2]);case 4:return A?y(p[0],p[1],p[2],p[3]):y.call(x,p[0],p[1],p[2],p[3])}return y.apply(x,p)}},{}],116:[function(k,D,n){var y=k("./_cof");D.exports=Object("z").propertyIsEnumerable(0)?Object:function(p){return y(p)=="String"?p.split(""):Object(p)}},{"./_cof":98}],117:[function(k,D,n){var y=k("./_iterators"),p=k("./_wks")("iterator"),x=Array.prototype;D.exports=function(A){return A!==void 0&&(y.Array===A||x[p]===A)}},{"./_iterators":125,"./_wks":166}],118:[function(k,D,n){var y=k("./_cof");D.exports=Array.isArray||function(x){return y(x)=="Array"}},{"./_cof":98}],119:[function(k,D,n){D.exports=function(y){return typeof y=="object"?y!==null:typeof y=="function"}},{}],120:[function(k,D,n){var y=k("./_an-object");D.exports=function(p,x,A,m){try{return m?x(y(A)[0],A[1]):x(A)}catch(h){var f=p.return;throw f!==void 0&&y(f.call(p)),h}}},{"./_an-object":95}],121:[function(k,D,n){"use strict";var y=k("./_object-create"),p=k("./_property-desc"),x=k("./_set-to-string-tag"),A={};k("./_hide")(A,k("./_wks")("iterator"),function(){return this}),D.exports=function(m,f,h){m.prototype=y(A,{next:p(1,h)}),x(m,f+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(k,D,n){"use strict";var y=k("./_library"),p=k("./_export"),x=k("./_redefine"),A=k("./_hide"),m=k("./_iterators"),f=k("./_iter-create"),h=k("./_set-to-string-tag"),u=k("./_object-gpo"),a=k("./_wks")("iterator"),i=!([].keys&&"next"in[].keys()),t="@@iterator",o="keys",e="values",l=function(){return this};D.exports=function(r,s,c,d,g,v,b){f(c,s,d);var S=function(B){if(!i&&B in T)return T[B];switch(B){case o:return function(){return new c(this,B)};case e:return function(){return new c(this,B)}}return function(){return new c(this,B)}},E=s+" Iterator",C=g==e,_=!1,T=r.prototype,w=T[a]||T[t]||g&&T[g],O=w||S(g),I=g?C?S("entries"):O:void 0,R=s=="Array"&&T.entries||w,M,F,P;if(R&&(P=u(R.call(new r)),P!==Object.prototype&&P.next&&(h(P,E,!0),!y&&typeof P[a]!="function"&&A(P,a,l))),C&&w&&w.name!==e&&(_=!0,O=function(){return w.call(this)}),(!y||b)&&(i||_||!T[a])&&A(T,a,O),m[s]=O,m[E]=l,g)if(M={values:C?O:S(e),keys:v?O:S(o),entries:I},b)for(F in M)F in T||x(T,F,M[F]);else p(p.P+p.F*(i||_),s,M);return M}},{"./_export":107,"./_hide":112,"./_iter-create":121,"./_iterators":125,"./_library":126,"./_object-gpo":138,"./_redefine":148,"./_set-to-string-tag":150,"./_wks":166}],123:[function(k,D,n){var y=k("./_wks")("iterator"),p=!1;try{var x=[7][y]();x.return=function(){p=!0},Array.from(x,function(){throw 2})}catch(A){}D.exports=function(A,m){if(!m&&!p)return!1;var f=!1;try{var h=[7],u=h[y]();u.next=function(){return{done:f=!0}},h[y]=function(){return u},A(h)}catch(a){}return f}},{"./_wks":166}],124:[function(k,D,n){D.exports=function(y,p){return{value:p,done:!!y}}},{}],125:[function(k,D,n){D.exports={}},{}],126:[function(k,D,n){D.exports=!0},{}],127:[function(k,D,n){var y=k("./_uid")("meta"),p=k("./_is-object"),x=k("./_has"),A=k("./_object-dp").f,m=0,f=Object.isExtensible||function(){return!0},h=!k("./_fails")(function(){return f(Object.preventExtensions({}))}),u=function(l){A(l,y,{value:{i:"O"+ ++m,w:{}}})},a=function(l,r){if(!p(l))return typeof l=="symbol"?l:(typeof l=="string"?"S":"P")+l;if(!x(l,y)){if(!f(l))return"F";if(!r)return"E";u(l)}return l[y].i},i=function(l,r){if(!x(l,y)){if(!f(l))return!0;if(!r)return!1;u(l)}return l[y].w},t=function(l){return h&&o.NEED&&f(l)&&!x(l,y)&&u(l),l},o=D.exports={KEY:y,NEED:!1,fastKey:a,getWeak:i,onFreeze:t}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(k,D,n){var y=k("./_global"),p=k("./_task").set,x=y.MutationObserver||y.WebKitMutationObserver,A=y.process,m=y.Promise,f=k("./_cof")(A)=="process";D.exports=function(){var h,u,a,i=function(){var r,s;for(f&&(r=A.domain)&&r.exit();h;){s=h.fn,h=h.next;try{s()}catch(c){throw h?a():u=void 0,c}}u=void 0,r&&r.enter()};if(f)a=function(){A.nextTick(i)};else if(x&&!(y.navigator&&y.navigator.standalone)){var t=!0,o=document.createTextNode("");new x(i).observe(o,{characterData:!0}),a=function(){o.data=t=!t}}else if(m&&m.resolve){var e=m.resolve(void 0);a=function(){e.then(i)}}else a=function(){p.call(y,i)};return function(l){var r={fn:l,next:void 0};u&&(u.next=r),h||(h=r,a()),u=r}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(k,D,n){"use strict";var y=k("./_a-function");function p(x){var A,m;this.promise=new x(function(f,h){if(A!==void 0||m!==void 0)throw TypeError("Bad Promise constructor");A=f,m=h}),this.resolve=y(A),this.reject=y(m)}D.exports.f=function(x){return new p(x)}},{"./_a-function":92}],130:[function(k,D,n){"use strict";var y=k("./_descriptors"),p=k("./_object-keys"),x=k("./_object-gops"),A=k("./_object-pie"),m=k("./_to-object"),f=k("./_iobject"),h=Object.assign;D.exports=!h||k("./_fails")(function(){var u={},a={},i=Symbol(),t="abcdefghijklmnopqrst";return u[i]=7,t.split("").forEach(function(o){a[o]=o}),h({},u)[i]!=7||Object.keys(h({},a)).join("")!=t})?function(a,i){for(var t=m(a),o=arguments.length,e=1,l=x.f,r=A.f;o>e;)for(var s=f(arguments[e++]),c=l?p(s).concat(l(s)):p(s),d=c.length,g=0,v;d>g;)v=c[g++],(!y||r.call(s,v))&&(t[v]=s[v]);return t}:h},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(k,D,n){var y=k("./_an-object"),p=k("./_object-dps"),x=k("./_enum-bug-keys"),A=k("./_shared-key")("IE_PROTO"),m=function(){},f="prototype",h=function(){var a=k("./_dom-create")("iframe"),i=x.length,t="<",o=">",e;for(a.style.display="none",k("./_html").appendChild(a),a.src="javascript:",e=a.contentWindow.document,e.open(),e.write(t+"script"+o+"document.F=Object"+t+"/script"+o),e.close(),h=e.F;i--;)delete h[f][x[i]];return h()};D.exports=Object.create||function(a,i){var t;return a!==null?(m[f]=y(a),t=new m,m[f]=null,t[A]=a):t=h(),i===void 0?t:p(t,i)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(k,D,n){var y=k("./_an-object"),p=k("./_ie8-dom-define"),x=k("./_to-primitive"),A=Object.defineProperty;n.f=k("./_descriptors")?Object.defineProperty:function(f,h,u){if(y(f),h=x(h,!0),y(u),p)try{return A(f,h,u)}catch(a){}if("get"in u||"set"in u)throw TypeError("Accessors not supported!");return"value"in u&&(f[h]=u.value),f}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(k,D,n){var y=k("./_object-dp"),p=k("./_an-object"),x=k("./_object-keys");D.exports=k("./_descriptors")?Object.defineProperties:function(m,f){p(m);for(var h=x(f),u=h.length,a=0,i;u>a;)y.f(m,i=h[a++],f[i]);return m}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(k,D,n){var y=k("./_object-pie"),p=k("./_property-desc"),x=k("./_to-iobject"),A=k("./_to-primitive"),m=k("./_has"),f=k("./_ie8-dom-define"),h=Object.getOwnPropertyDescriptor;n.f=k("./_descriptors")?h:function(a,i){if(a=x(a),i=A(i,!0),f)try{return h(a,i)}catch(t){}if(m(a,i))return p(!y.f.call(a,i),a[i])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(k,D,n){var y=k("./_to-iobject"),p=k("./_object-gopn").f,x={}.toString,A=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],m=function(h){try{return p(h)}catch(u){return A.slice()}};D.exports.f=function(h){return A&&x.call(h)=="[object Window]"?m(h):p(y(h))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(k,D,n){var y=k("./_object-keys-internal"),p=k("./_enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(A){return y(A,p)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(k,D,n){n.f=Object.getOwnPropertySymbols},{}],138:[function(k,D,n){var y=k("./_has"),p=k("./_to-object"),x=k("./_shared-key")("IE_PROTO"),A=Object.prototype;D.exports=Object.getPrototypeOf||function(m){return m=p(m),y(m,x)?m[x]:typeof m.constructor=="function"&&m instanceof m.constructor?m.constructor.prototype:m instanceof Object?A:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(k,D,n){var y=k("./_has"),p=k("./_to-iobject"),x=k("./_array-includes")(!1),A=k("./_shared-key")("IE_PROTO");D.exports=function(m,f){var h=p(m),u=0,a=[],i;for(i in h)i!=A&&(y(h,i)&&a.push(i));for(;f.length>u;)y(h,i=f[u++])&&(~x(a,i)||a.push(i));return a}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(k,D,n){var y=k("./_object-keys-internal"),p=k("./_enum-bug-keys");D.exports=Object.keys||function(A){return y(A,p)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(k,D,n){n.f={}.propertyIsEnumerable},{}],142:[function(k,D,n){var y=k("./_export"),p=k("./_core"),x=k("./_fails");D.exports=function(A,m){var f=(p.Object||{})[A]||Object[A],h={};h[A]=m(f),y(y.S+y.F*x(function(){f(1)}),"Object",h)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(k,D,n){var y=k("./_descriptors"),p=k("./_object-keys"),x=k("./_to-iobject"),A=k("./_object-pie").f;D.exports=function(m){return function(f){for(var h=x(f),u=p(h),a=u.length,i=0,t=[],o;a>i;)o=u[i++],(!y||A.call(h,o))&&t.push(m?[o,h[o]]:h[o]);return t}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(k,D,n){D.exports=function(y){try{return{e:!1,v:y()}}catch(p){return{e:!0,v:p}}}},{}],145:[function(k,D,n){var y=k("./_an-object"),p=k("./_is-object"),x=k("./_new-promise-capability");D.exports=function(A,m){if(y(A),p(m)&&m.constructor===A)return m;var f=x.f(A),h=f.resolve;return h(m),f.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(k,D,n){D.exports=function(y,p){return{enumerable:!(y&1),configurable:!(y&2),writable:!(y&4),value:p}}},{}],147:[function(k,D,n){var y=k("./_hide");D.exports=function(p,x,A){for(var m in x)A&&p[m]?p[m]=x[m]:y(p,m,x[m]);return p}},{"./_hide":112}],148:[function(k,D,n){D.exports=k("./_hide")},{"./_hide":112}],149:[function(k,D,n){"use strict";var y=k("./_global"),p=k("./_core"),x=k("./_object-dp"),A=k("./_descriptors"),m=k("./_wks")("species");D.exports=function(f){var h=typeof p[f]=="function"?p[f]:y[f];A&&h&&!h[m]&&x.f(h,m,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(k,D,n){var y=k("./_object-dp").f,p=k("./_has"),x=k("./_wks")("toStringTag");D.exports=function(A,m,f){A&&!p(A=f?A:A.prototype,x)&&y(A,x,{configurable:!0,value:m})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(k,D,n){var y=k("./_shared")("keys"),p=k("./_uid");D.exports=function(x){return y[x]||(y[x]=p(x))}},{"./_shared":152,"./_uid":162}],152:[function(k,D,n){var y=k("./_core"),p=k("./_global"),x="__core-js_shared__",A=p[x]||(p[x]={});(D.exports=function(m,f){return A[m]||(A[m]=f!==void 0?f:{})})("versions",[]).push({version:y.version,mode:k("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(k,D,n){var y=k("./_an-object"),p=k("./_a-function"),x=k("./_wks")("species");D.exports=function(A,m){var f=y(A).constructor,h;return f===void 0||(h=y(f)[x])==null?m:p(h)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(k,D,n){var y=k("./_to-integer"),p=k("./_defined");D.exports=function(x){return function(A,m){var f=String(p(A)),h=y(m),u=f.length,a,i;return h<0||h>=u?x?"":void 0:(a=f.charCodeAt(h),a<55296||a>56319||h+1===u||(i=f.charCodeAt(h+1))<56320||i>57343?x?f.charAt(h):a:x?f.slice(h,h+2):(a-55296<<10)+(i-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(k,D,n){var y=k("./_ctx"),p=k("./_invoke"),x=k("./_html"),A=k("./_dom-create"),m=k("./_global"),f=m.process,h=m.setImmediate,u=m.clearImmediate,a=m.MessageChannel,i=m.Dispatch,t=0,o={},e="onreadystatechange",l,r,s,c=function(){var v=+this;if(o.hasOwnProperty(v)){var b=o[v];delete o[v],b()}},d=function(v){c.call(v.data)};(!h||!u)&&(h=function(v){for(var b=[],S=1;arguments.length>S;)b.push(arguments[S++]);return o[++t]=function(){p(typeof v=="function"?v:Function(v),b)},l(t),t},u=function(v){delete o[v]},k("./_cof")(f)=="process"?l=function(v){f.nextTick(y(c,v,1))}:i&&i.now?l=function(v){i.now(y(c,v,1))}:a?(r=new a,s=r.port2,r.port1.onmessage=d,l=y(s.postMessage,s,1)):m.addEventListener&&typeof postMessage=="function"&&!m.importScripts?(l=function(v){m.postMessage(v+"","*")},m.addEventListener("message",d,!1)):e in A("script")?l=function(v){x.appendChild(A("script"))[e]=function(){x.removeChild(this),c.call(v)}}:l=function(v){setTimeout(y(c,v,1),0)}),D.exports={set:h,clear:u}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(k,D,n){var y=k("./_to-integer"),p=Math.max,x=Math.min;D.exports=function(A,m){return A=y(A),A<0?p(A+m,0):x(A,m)}},{"./_to-integer":157}],157:[function(k,D,n){var y=Math.ceil,p=Math.floor;D.exports=function(x){return isNaN(x=+x)?0:(x>0?p:y)(x)}},{}],158:[function(k,D,n){var y=k("./_iobject"),p=k("./_defined");D.exports=function(x){return y(p(x))}},{"./_defined":102,"./_iobject":116}],159:[function(k,D,n){var y=k("./_to-integer"),p=Math.min;D.exports=function(x){return x>0?p(y(x),9007199254740991):0}},{"./_to-integer":157}],160:[function(k,D,n){var y=k("./_defined");D.exports=function(p){return Object(y(p))}},{"./_defined":102}],161:[function(k,D,n){var y=k("./_is-object");D.exports=function(p,x){if(!y(p))return p;var A,m;if(x&&typeof(A=p.toString)=="function"&&!y(m=A.call(p)))return m;if(typeof(A=p.valueOf)=="function"&&!y(m=A.call(p)))return m;if(!x&&typeof(A=p.toString)=="function"&&!y(m=A.call(p)))return m;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(k,D,n){var y=0,p=Math.random();D.exports=function(x){return"Symbol(".concat(x===void 0?"":x,")_",(++y+p).toString(36))}},{}],163:[function(k,D,n){var y=k("./_global"),p=y.navigator;D.exports=p&&p.userAgent||""},{"./_global":110}],164:[function(k,D,n){var y=k("./_global"),p=k("./_core"),x=k("./_library"),A=k("./_wks-ext"),m=k("./_object-dp").f;D.exports=function(f){var h=p.Symbol||(p.Symbol=x?{}:y.Symbol||{});f.charAt(0)!="_"&&!(f in h)&&m(h,f,{value:A.f(f)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(k,D,n){n.f=k("./_wks")},{"./_wks":166}],166:[function(k,D,n){var y=k("./_shared")("wks"),p=k("./_uid"),x=k("./_global").Symbol,A=typeof x=="function",m=D.exports=function(f){return y[f]||(y[f]=A&&x[f]||(A?x:p)("Symbol."+f))};m.store=y},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(k,D,n){var y=k("./_classof"),p=k("./_wks")("iterator"),x=k("./_iterators");D.exports=k("./_core").getIteratorMethod=function(A){if(A!=null)return A[p]||A["@@iterator"]||x[y(A)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(k,D,n){"use strict";var y=k("./_ctx"),p=k("./_export"),x=k("./_to-object"),A=k("./_iter-call"),m=k("./_is-array-iter"),f=k("./_to-length"),h=k("./_create-property"),u=k("./core.get-iterator-method");p(p.S+p.F*!k("./_iter-detect")(function(a){Array.from(a)}),"Array",{from:function(i){var t=x(i),o=typeof this=="function"?this:Array,e=arguments.length,l=e>1?arguments[1]:void 0,r=l!==void 0,s=0,c=u(t),d,g,v,b;if(r&&(l=y(l,e>2?arguments[2]:void 0,2)),c!=null&&!(o==Array&&m(c)))for(b=c.call(t),g=new o;!(v=b.next()).done;s++)h(g,s,r?A(b,l,[v.value,s],!0):v.value);else for(d=f(t.length),g=new o(d);d>s;s++)h(g,s,r?l(t[s],s):t[s]);return g.length=s,g}})},{"./_create-property":100,"./_ctx":101,"./_export":107,"./_is-array-iter":117,"./_iter-call":120,"./_iter-detect":123,"./_to-length":159,"./_to-object":160,"./core.get-iterator-method":167}],169:[function(k,D,n){"use strict";var y=k("./_add-to-unscopables"),p=k("./_iter-step"),x=k("./_iterators"),A=k("./_to-iobject");D.exports=k("./_iter-define")(Array,"Array",function(m,f){this._t=A(m),this._i=0,this._k=f},function(){var m=this._t,f=this._k,h=this._i++;return!m||h>=m.length?(this._t=void 0,p(1)):f=="keys"?p(0,h):f=="values"?p(0,m[h]):p(0,[h,m[h]])},"values"),x.Arguments=x.Array,y("keys"),y("values"),y("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(k,D,n){"use strict";var y=k("./_is-object"),p=k("./_object-gpo"),x=k("./_wks")("hasInstance"),A=Function.prototype;x in A||k("./_object-dp").f(A,x,{value:function(f){if(typeof this!="function"||!y(f))return!1;if(!y(this.prototype))return f instanceof this;for(;f=p(f);)if(this.prototype===f)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(k,D,n){var y=k("./_export");y(y.S+y.F,"Object",{assign:k("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(k,D,n){var y=k("./_export");y(y.S,"Object",{create:k("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(k,D,n){var y=k("./_export");y(y.S+y.F*!k("./_descriptors"),"Object",{defineProperty:k("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(k,D,n){k("./_object-sap")("getOwnPropertyNames",function(){return k("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(k,D,n){var y=k("./_to-object"),p=k("./_object-gpo");k("./_object-sap")("getPrototypeOf",function(){return function(A){return p(y(A))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(k,D,n){var y=k("./_to-object"),p=k("./_object-keys");k("./_object-sap")("keys",function(){return function(A){return p(y(A))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(k,D,n){arguments[4][71][0].apply(n,arguments)},{dup:71}],178:[function(k,D,n){"use strict";var y=k("./_library"),p=k("./_global"),x=k("./_ctx"),A=k("./_classof"),m=k("./_export"),f=k("./_is-object"),h=k("./_a-function"),u=k("./_an-instance"),a=k("./_for-of"),i=k("./_species-constructor"),t=k("./_task").set,o=k("./_microtask")(),e=k("./_new-promise-capability"),l=k("./_perform"),r=k("./_user-agent"),s=k("./_promise-resolve"),c="Promise",d=p.TypeError,g=p.process,v=g&&g.versions,b=v&&v.v8||"",S=p[c],E=A(g)=="process",C=function(){},_,T,w,O,I=T=e.f,R=!!function(){try{var z=S.resolve(1),V=(z.constructor={})[k("./_wks")("species")]=function(Q){Q(C,C)};return(E||typeof PromiseRejectionEvent=="function")&&z.then(C)instanceof V&&b.indexOf("6.6")!==0&&r.indexOf("Chrome/66")===-1}catch(Q){}}(),M=function(V){var Q;return f(V)&&typeof(Q=V.then)=="function"?Q:!1},F=function(V,Q){if(V._n)return;V._n=!0;var G=V._c;o(function(){for(var ee=V._v,ce=V._s==1,be=0,le=function(ke){var Re=ce?ke.ok:ke.fail,Qe=ke.resolve,We=ke.reject,ot=ke.domain,Oe,oe,st;try{Re?(ce||(V._h==2&&B(V),V._h=1),Re===!0?Oe=ee:(ot&&ot.enter(),Oe=Re(ee),ot&&(ot.exit(),st=!0)),Oe===ke.promise?We(d("Promise-chain cycle")):(oe=M(Oe))?oe.call(Oe,Qe,We):Qe(Oe)):We(ee)}catch(he){ot&&!st&&ot.exit(),We(he)}};G.length>be;)le(G[be++]);V._c=[],V._n=!1,Q&&!V._h&&P(V)})},P=function(V){t.call(p,function(){var Q=V._v,G=X(V),ee,ce,be;if(G&&(ee=l(function(){E?g.emit("unhandledRejection",Q,V):(ce=p.onunhandledrejection)?ce({promise:V,reason:Q}):(be=p.console)&&be.error&&be.error("Unhandled promise rejection",Q)}),V._h=E||X(V)?2:1),V._a=void 0,G&&ee.e)throw ee.v})},X=function(V){return V._h!==1&&(V._a||V._c).length===0},B=function(V){t.call(p,function(){var Q;E?g.emit("rejectionHandled",V):(Q=p.onrejectionhandled)&&Q({promise:V,reason:V._v})})},j=function(V){var Q=this;if(Q._d)return;Q._d=!0,Q=Q._w||Q,Q._v=V,Q._s=2,Q._a||(Q._a=Q._c.slice()),F(Q,!0)},W=function z(V){var Q=this,G;if(Q._d)return;Q._d=!0,Q=Q._w||Q;try{if(Q===V)throw d("Promise can't be resolved itself");(G=M(V))?o(function(){var ee={_w:Q,_d:!1};try{G.call(V,x(z,ee,1),x(j,ee,1))}catch(ce){j.call(ee,ce)}}):(Q._v=V,Q._s=1,F(Q,!1))}catch(ee){j.call({_w:Q,_d:!1},ee)}};R||(S=function(V){u(this,S,c,"_h"),h(V),_.call(this);try{V(x(W,this,1),x(j,this,1))}catch(Q){j.call(this,Q)}},_=function(V){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},_.prototype=k("./_redefine-all")(S.prototype,{then:function(V,Q){var G=I(i(this,S));return G.ok=typeof V=="function"?V:!0,G.fail=typeof Q=="function"&&Q,G.domain=E?g.domain:void 0,this._c.push(G),this._a&&this._a.push(G),this._s&&F(this,!1),G.promise},catch:function(V){return this.then(void 0,V)}}),w=function(){var V=new _;this.promise=V,this.resolve=x(W,V,1),this.reject=x(j,V,1)},e.f=I=function(V){return V===S||V===O?new w(V):T(V)}),m(m.G+m.W+m.F*!R,{Promise:S}),k("./_set-to-string-tag")(S,c),k("./_set-species")(c),O=k("./_core")[c],m(m.S+m.F*!R,c,{reject:function(V){var Q=I(this),G=Q.reject;return G(V),Q.promise}}),m(m.S+m.F*(y||!R),c,{resolve:function(V){return s(y&&this===O?S:this,V)}}),m(m.S+m.F*!(R&&k("./_iter-detect")(function(z){S.all(z).catch(C)})),c,{all:function(V){var Q=this,G=I(Q),ee=G.resolve,ce=G.reject,be=l(function(){var le=[],Ie=0,ke=1;a(V,!1,function(Re){var Qe=Ie++,We=!1;le.push(void 0),ke++,Q.resolve(Re).then(function(ot){if(We)return;We=!0,le[Qe]=ot,--ke||ee(le)},ce)}),--ke||ee(le)});return be.e&&ce(be.v),G.promise},race:function(V){var Q=this,G=I(Q),ee=G.reject,ce=l(function(){a(V,!1,function(be){Q.resolve(be).then(G.resolve,ee)})});return ce.e&&ee(ce.v),G.promise}})},{"./_a-function":92,"./_an-instance":94,"./_classof":97,"./_core":99,"./_ctx":101,"./_export":107,"./_for-of":109,"./_global":110,"./_is-object":119,"./_iter-detect":123,"./_library":126,"./_microtask":128,"./_new-promise-capability":129,"./_perform":144,"./_promise-resolve":145,"./_redefine-all":147,"./_set-species":149,"./_set-to-string-tag":150,"./_species-constructor":153,"./_task":155,"./_user-agent":163,"./_wks":166}],179:[function(k,D,n){var y=k("./_export"),p=k("./_to-absolute-index"),x=String.fromCharCode,A=String.fromCodePoint;y(y.S+y.F*(!!A&&A.length!=1),"String",{fromCodePoint:function(f){for(var h=[],u=arguments.length,a=0,i;u>a;){if(i=+arguments[a++],p(i,1114111)!==i)throw RangeError(i+" is not a valid code point");h.push(i<65536?x(i):x(((i-=65536)>>10)+55296,i%1024+56320))}return h.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(k,D,n){"use strict";var y=k("./_string-at")(!0);k("./_iter-define")(String,"String",function(p){this._t=String(p),this._i=0},function(){var p=this._t,x=this._i,A;return x>=p.length?{value:void 0,done:!0}:(A=y(p,x),this._i+=A.length,{value:A,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(k,D,n){"use strict";var y=k("./_global"),p=k("./_has"),x=k("./_descriptors"),A=k("./_export"),m=k("./_redefine"),f=k("./_meta").KEY,h=k("./_fails"),u=k("./_shared"),a=k("./_set-to-string-tag"),i=k("./_uid"),t=k("./_wks"),o=k("./_wks-ext"),e=k("./_wks-define"),l=k("./_enum-keys"),r=k("./_is-array"),s=k("./_an-object"),c=k("./_is-object"),d=k("./_to-object"),g=k("./_to-iobject"),v=k("./_to-primitive"),b=k("./_property-desc"),S=k("./_object-create"),E=k("./_object-gopn-ext"),C=k("./_object-gopd"),_=k("./_object-gops"),T=k("./_object-dp"),w=k("./_object-keys"),O=C.f,I=T.f,R=E.f,M=y.Symbol,F=y.JSON,P=F&&F.stringify,X="prototype",B=t("_hidden"),j=t("toPrimitive"),W={}.propertyIsEnumerable,z=u("symbol-registry"),V=u("symbols"),Q=u("op-symbols"),G=Object[X],ee=typeof M=="function"&&!!_.f,ce=y.QObject,be=!ce||!ce[X]||!ce[X].findChild,le=x&&h(function(){return S(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a!=7})?function(we,Ne,Ee){var de=O(G,Ne);de&&delete G[Ne],I(we,Ne,Ee),de&&we!==G&&I(G,Ne,de)}:I,Ie=function(Ne){var Ee=V[Ne]=S(M[X]);return Ee._k=Ne,Ee},ke=ee&&typeof M.iterator=="symbol"?function(we){return typeof we=="symbol"}:function(we){return we instanceof M},Re=function(Ne,Ee,de){return Ne===G&&Re(Q,Ee,de),s(Ne),Ee=v(Ee,!0),s(de),p(V,Ee)?(de.enumerable?(p(Ne,B)&&Ne[B][Ee]&&(Ne[B][Ee]=!1),de=S(de,{enumerable:b(0,!1)})):(p(Ne,B)||I(Ne,B,b(1,{})),Ne[B][Ee]=!0),le(Ne,Ee,de)):I(Ne,Ee,de)},Qe=function(Ne,Ee){s(Ne);for(var de=l(Ee=g(Ee)),me=0,Le=de.length,tt;Le>me;)Re(Ne,tt=de[me++],Ee[tt]);return Ne},We=function(Ne,Ee){return Ee===void 0?S(Ne):Qe(S(Ne),Ee)},ot=function(Ne){var Ee=W.call(this,Ne=v(Ne,!0));return this===G&&p(V,Ne)&&!p(Q,Ne)?!1:Ee||!p(this,Ne)||!p(V,Ne)||p(this,B)&&this[B][Ne]?Ee:!0},Oe=function(Ne,Ee){if(Ne=g(Ne),Ee=v(Ee,!0),Ne===G&&p(V,Ee)&&!p(Q,Ee))return;var de=O(Ne,Ee);return de&&p(V,Ee)&&!(p(Ne,B)&&Ne[B][Ee])&&(de.enumerable=!0),de},oe=function(Ne){for(var Ee=R(g(Ne)),de=[],me=0,Le;Ee.length>me;)!p(V,Le=Ee[me++])&&Le!=B&&Le!=f&&de.push(Le);return de},st=function(Ne){for(var Ee=Ne===G,de=R(Ee?Q:g(Ne)),me=[],Le=0,tt;de.length>Le;)p(V,tt=de[Le++])&&(Ee?p(G,tt):!0)&&me.push(V[tt]);return me};ee||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var Ne=i(arguments.length>0?arguments[0]:void 0),Ee=function de(me){this===G&&de.call(Q,me),p(this,B)&&p(this[B],Ne)&&(this[B][Ne]=!1),le(this,Ne,b(1,me))};return x&&be&&le(G,Ne,{configurable:!0,set:Ee}),Ie(Ne)},m(M[X],"toString",function(){return this._k}),C.f=Oe,T.f=Re,k("./_object-gopn").f=E.f=oe,k("./_object-pie").f=ot,_.f=st,x&&!k("./_library")&&m(G,"propertyIsEnumerable",ot,!0),o.f=function(we){return Ie(t(we))}),A(A.G+A.W+A.F*!ee,{Symbol:M});for(var he="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),J=0;he.length>J;)t(he[J++]);for(var Y=w(t.store),$=0;Y.length>$;)e(Y[$++]);A(A.S+A.F*!ee,"Symbol",{for:function(Ne){return p(z,Ne+="")?z[Ne]:z[Ne]=M(Ne)},keyFor:function(Ne){if(!ke(Ne))throw TypeError(Ne+" is not a symbol!");for(var Ee in z)if(z[Ee]===Ne)return Ee},useSetter:function(){be=!0},useSimple:function(){be=!1}}),A(A.S+A.F*!ee,"Object",{create:We,defineProperty:Re,defineProperties:Qe,getOwnPropertyDescriptor:Oe,getOwnPropertyNames:oe,getOwnPropertySymbols:st});var fe=h(function(){_.f(1)});A(A.S+A.F*fe,"Object",{getOwnPropertySymbols:function(Ne){return _.f(d(Ne))}}),F&&A(A.S+A.F*(!ee||h(function(){var we=M();return P([we])!="[null]"||P({a:we})!="{}"||P(Object(we))!="{}"})),"JSON",{stringify:function(Ne){for(var Ee=[Ne],de=1,me,Le;arguments.length>de;)Ee.push(arguments[de++]);return Le=me=Ee[1],!c(me)&&Ne===void 0||ke(Ne)?void 0:(r(me)||(me=function(At,ht){if(typeof Le=="function"&&(ht=Le.call(this,At,ht)),!ke(ht))return ht}),Ee[1]=me,P.apply(F,Ee))}}),M[X][j]||k("./_hide")(M[X],j,M[X].valueOf),a(M,"Symbol"),a(Math,"Math",!0),a(y.JSON,"JSON",!0)},{"./_an-object":95,"./_descriptors":103,"./_enum-keys":106,"./_export":107,"./_fails":108,"./_global":110,"./_has":111,"./_hide":112,"./_is-array":118,"./_is-object":119,"./_library":126,"./_meta":127,"./_object-create":131,"./_object-dp":132,"./_object-gopd":134,"./_object-gopn":136,"./_object-gopn-ext":135,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_property-desc":146,"./_redefine":148,"./_set-to-string-tag":150,"./_shared":152,"./_to-iobject":158,"./_to-object":160,"./_to-primitive":161,"./_uid":162,"./_wks":166,"./_wks-define":164,"./_wks-ext":165}],182:[function(k,D,n){var y=k("./_export"),p=k("./_object-to-array")(!0);y(y.S,"Object",{entries:function(A){return p(A)}})},{"./_export":107,"./_object-to-array":143}],183:[function(k,D,n){"use strict";var y=k("./_export"),p=k("./_core"),x=k("./_global"),A=k("./_species-constructor"),m=k("./_promise-resolve");y(y.P+y.R,"Promise",{finally:function(h){var u=A(this,p.Promise||x.Promise),a=typeof h=="function";return this.then(a?function(i){return m(u,h()).then(function(){return i})}:h,a?function(i){return m(u,h()).then(function(){throw i})}:h)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(k,D,n){"use strict";var y=k("./_export"),p=k("./_new-promise-capability"),x=k("./_perform");y(y.S,"Promise",{try:function(m){var f=p.f(this),h=x(m);return(h.e?f.reject:f.resolve)(h.v),f.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(k,D,n){k("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(k,D,n){k("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(k,D,n){k("./es6.array.iterator");for(var y=k("./_global"),p=k("./_hide"),x=k("./_iterators"),A=k("./_wks")("toStringTag"),m="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;f<m.length;f++){var h=m[f],u=y[h],a=u&&u.prototype;a&&!a[A]&&p(a,A,h),x[h]=x.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(k,D,n){var y=k("./_export"),p=k("./_task");y(y.G+y.B,{setImmediate:p.set,clearImmediate:p.clear})},{"./_export":107,"./_task":155}],189:[function(k,D,n){(function(y){"use strict";var p=k("babel-runtime/helpers/typeof"),x=A(p);function A(v){return v&&v.__esModule?v:{default:v}}function m(v){return Array.isArray?Array.isArray(v):g(v)==="[object Array]"}n.isArray=m;function f(v){return typeof v=="boolean"}n.isBoolean=f;function h(v){return v===null}n.isNull=h;function u(v){return v==null}n.isNullOrUndefined=u;function a(v){return typeof v=="number"}n.isNumber=a;function i(v){return typeof v=="string"}n.isString=i;function t(v){return(typeof v=="undefined"?"undefined":(0,x.default)(v))==="symbol"}n.isSymbol=t;function o(v){return v===void 0}n.isUndefined=o;function e(v){return g(v)==="[object RegExp]"}n.isRegExp=e;function l(v){return(typeof v=="undefined"?"undefined":(0,x.default)(v))==="object"&&v!==null}n.isObject=l;function r(v){return g(v)==="[object Date]"}n.isDate=r;function s(v){return g(v)==="[object Error]"||v instanceof Error}n.isError=s;function c(v){return typeof v=="function"}n.isFunction=c;function d(v){return v===null||typeof v=="boolean"||typeof v=="number"||typeof v=="string"||(typeof v=="undefined"?"undefined":(0,x.default)(v))==="symbol"||typeof v=="undefined"}n.isPrimitive=d,n.isBuffer=y.isBuffer;function g(v){return Object.prototype.toString.call(v)}}).call(this,{isBuffer:k("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(k,D,n){"use strict";var y=k("babel-runtime/helpers/typeof"),p=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(A){"use strict";var m=function(){var i=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,t=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,o=/[^-+\dA-Z]/g;return function(e,l,r,s){if(arguments.length===1&&a(e)==="string"&&!/\d/.test(e)&&(l=e,e=void 0),e=e||new Date,e instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");l=String(m.masks[l]||l||m.masks.default);var c=l.slice(0,4);(c==="UTC:"||c==="GMT:")&&(l=l.slice(4),r=!0,c==="GMT:"&&(s=!0));var d=r?"getUTC":"get",g=e[d+"Date"](),v=e[d+"Day"](),b=e[d+"Month"](),S=e[d+"FullYear"](),E=e[d+"Hours"](),C=e[d+"Minutes"](),_=e[d+"Seconds"](),T=e[d+"Milliseconds"](),w=r?0:e.getTimezoneOffset(),O=h(e),I=u(e),R={d:g,dd:f(g),ddd:m.i18n.dayNames[v],dddd:m.i18n.dayNames[v+7],m:b+1,mm:f(b+1),mmm:m.i18n.monthNames[b],mmmm:m.i18n.monthNames[b+12],yy:String(S).slice(2),yyyy:S,h:E%12||12,hh:f(E%12||12),H:E,HH:f(E),M:C,MM:f(C),s:_,ss:f(_),l:f(T,3),L:f(Math.round(T/10)),t:E<12?"a":"p",tt:E<12?"am":"pm",T:E<12?"A":"P",TT:E<12?"AM":"PM",Z:s?"GMT":r?"UTC":(String(e).match(t)||[""]).pop().replace(o,""),o:(w>0?"-":"+")+f(Math.floor(Math.abs(w)/60)*100+Math.abs(w)%60,4),S:["th","st","nd","rd"][g%10>3?0:(g%100-g%10!=10)*g%10],W:O,N:I};return l.replace(i,function(M){return M in R?R[M]:M.slice(1,M.length-1)})}}();m.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},m.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function f(i,t){for(i=String(i),t=t||2;i.length<t;)i="0"+i;return i}function h(i){var t=new Date(i.getFullYear(),i.getMonth(),i.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);var o=new Date(t.getFullYear(),0,4);o.setDate(o.getDate()-(o.getDay()+6)%7+3);var e=t.getTimezoneOffset()-o.getTimezoneOffset();t.setHours(t.getHours()-e);var l=(t-o)/(864e5*7);return 1+Math.floor(l)}function u(i){var t=i.getDay();return t===0&&(t=7),t}function a(i){return i===null?"null":i===void 0?"undefined":(typeof i=="undefined"?"undefined":(0,p.default)(i))!=="object"?typeof i=="undefined"?"undefined":(0,p.default)(i):Array.isArray(i)?"array":{}.toString.call(i).slice(8,-1).toLowerCase()}typeof define=="function"&&define.amd?define(function(){return m}):(typeof n=="undefined"?"undefined":(0,p.default)(n))==="object"?D.exports=m:A.dateFormat=m})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(k,D,n){/*!
|
|
|
* escape-html
|
|
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
|
* Copyright(c) 2015 Andreas Lubbe
|
|
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var y=/["'&<>]/;D.exports=p;function p(x){var A=""+x,m=y.exec(A);if(!m)return A;var f,h="",u=0,a=0;for(u=m.index;u<A.length;u++){switch(A.charCodeAt(u)){case 34:f=""";break;case 38:f="&";break;case 39:f="'";break;case 60:f="<";break;case 62:f=">";break;default:continue}a!==u&&(h+=A.substring(a,u)),a=u+1,h+=f}return a!==u?h+A.substring(a,u):h}},{}],192:[function(k,D,n){function y(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}D.exports=y,y.EventEmitter=y,y.prototype._events=void 0,y.prototype._maxListeners=void 0,y.defaultMaxListeners=10,y.prototype.setMaxListeners=function(f){if(!x(f)||f<0||isNaN(f))throw TypeError("n must be a positive number");return this._maxListeners=f,this},y.prototype.emit=function(f){var h,u,a,i,t,o;if(this._events||(this._events={}),f==="error"&&(!this._events.error||A(this._events.error)&&!this._events.error.length)){if(h=arguments[1],h instanceof Error)throw h;var e=new Error('Uncaught, unspecified "error" event. ('+h+")");throw e.context=h,e}if(u=this._events[f],m(u))return!1;if(p(u))switch(arguments.length){case 1:u.call(this);break;case 2:u.call(this,arguments[1]);break;case 3:u.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),u.apply(this,i)}else if(A(u))for(i=Array.prototype.slice.call(arguments,1),o=u.slice(),a=o.length,t=0;t<a;t++)o[t].apply(this,i);return!0},y.prototype.addListener=function(f,h){var u;if(!p(h))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",f,p(h.listener)?h.listener:h),this._events[f]?A(this._events[f])?this._events[f].push(h):this._events[f]=[this._events[f],h]:this._events[f]=h,A(this._events[f])&&!this._events[f].warned&&(m(this._maxListeners)?u=y.defaultMaxListeners:u=this._maxListeners,u&&u>0&&this._events[f].length>u&&(this._events[f].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[f].length),typeof console.trace=="function"&&console.trace())),this},y.prototype.on=y.prototype.addListener,y.prototype.once=function(f,h){if(!p(h))throw TypeError("listener must be a function");var u=!1;function a(){this.removeListener(f,a),u||(u=!0,h.apply(this,arguments))}return a.listener=h,this.on(f,a),this},y.prototype.removeListener=function(f,h){var u,a,i,t;if(!p(h))throw TypeError("listener must be a function");if(!this._events||!this._events[f])return this;if(u=this._events[f],i=u.length,a=-1,u===h||p(u.listener)&&u.listener===h)delete this._events[f],this._events.removeListener&&this.emit("removeListener",f,h);else if(A(u)){for(t=i;t-- >0;)if(u[t]===h||u[t].listener&&u[t].listener===h){a=t;break}if(a<0)return this;u.length===1?(u.length=0,delete this._events[f]):u.splice(a,1),this._events.removeListener&&this.emit("removeListener",f,h)}return this},y.prototype.removeAllListeners=function(f){var h,u;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[f]&&delete this._events[f],this;if(arguments.length===0){for(h in this._events){if(h==="removeListener")continue;this.removeAllListeners(h)}return this.removeAllListeners("removeListener"),this._events={},this}if(u=this._events[f],p(u))this.removeListener(f,u);else if(u)for(;u.length;)this.removeListener(f,u[u.length-1]);return delete this._events[f],this},y.prototype.listeners=function(f){var h;return!this._events||!this._events[f]?h=[]:p(this._events[f])?h=[this._events[f]]:h=this._events[f].slice(),h},y.prototype.listenerCount=function(f){if(this._events){var h=this._events[f];if(p(h))return 1;if(h)return h.length}return 0},y.listenerCount=function(f,h){return f.listenerCount(h)};function p(f){return typeof f=="function"}function x(f){return typeof f=="number"}function A(f){return typeof f=="object"&&f!==null}function m(f){return f===void 0}},{}],193:[function(k,D,n){var y=k("http"),p=D.exports;for(var x in y)y.hasOwnProperty(x)&&(p[x]=y[x]);p.request=function(A,m){return A||(A={}),A.scheme="https",A.protocol="https:",y.request.call(this,A,m)}},{http:231}],194:[function(k,D,n){/*!
|
|
|
* humanize-ms - index.js
|
|
|
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var y=k("util"),p=k("ms");D.exports=function(x){if(typeof x=="number")return x;var A=p(x);if(A===void 0){var m=new Error(y.format("humanize-ms(%j) result undefined",x));console.warn(m.stack)}return A}},{ms:204,util:243}],195:[function(k,D,n){n.read=function(y,p,x,A,m){var f,h,u=m*8-A-1,a=(1<<u)-1,i=a>>1,t=-7,o=x?m-1:0,e=x?-1:1,l=y[p+o];for(o+=e,f=l&(1<<-t)-1,l>>=-t,t+=u;t>0;f=f*256+y[p+o],o+=e,t-=8);for(h=f&(1<<-t)-1,f>>=-t,t+=A;t>0;h=h*256+y[p+o],o+=e,t-=8);if(f===0)f=1-i;else{if(f===a)return h?NaN:(l?-1:1)*Infinity;h=h+Math.pow(2,A),f=f-i}return(l?-1:1)*h*Math.pow(2,f-A)},n.write=function(y,p,x,A,m,f){var h,u,a,i=f*8-m-1,t=(1<<i)-1,o=t>>1,e=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,l=A?0:f-1,r=A?1:-1,s=p<0||p===0&&1/p<0?1:0;for(p=Math.abs(p),isNaN(p)||p===Infinity?(u=isNaN(p)?1:0,h=t):(h=Math.floor(Math.log(p)/Math.LN2),p*(a=Math.pow(2,-h))<1&&(h--,a*=2),h+o>=1?p+=e/a:p+=e*Math.pow(2,1-o),p*a>=2&&(h++,a/=2),h+o>=t?(u=0,h=t):h+o>=1?(u=(p*a-1)*Math.pow(2,m),h=h+o):(u=p*Math.pow(2,o-1)*Math.pow(2,m),h=0));m>=8;y[x+l]=u&255,l+=r,u/=256,m-=8);for(h=h<<m|u,i+=m;i>0;y[x+l]=h&255,l+=r,h/=256,i-=8);y[x+l-r]|=s*128}},{}],196:[function(k,D,n){typeof Object.create=="function"?D.exports=function(p,x){x&&(p.super_=x,p.prototype=Object.create(x.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}))}:D.exports=function(p,x){if(x){p.super_=x;var A=function(){};A.prototype=x.prototype,p.prototype=new A,p.prototype.constructor=p}}},{}],197:[function(k,D,n){/*!
|
|
|
* Determine if an object is a Buffer
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
|
* @license MIT
|
|
|
*/D.exports=function(x){return x!=null&&(y(x)||p(x)||!!x._isBuffer)};function y(x){return!!x.constructor&&typeof x.constructor.isBuffer=="function"&&x.constructor.isBuffer(x)}function p(x){return typeof x.readFloatLE=="function"&&typeof x.slice=="function"&&y(x.slice(0,0))}},{}],198:[function(k,D,n){var y={}.toString;D.exports=Array.isArray||function(p){return y.call(p)=="[object Array]"}},{}],199:[function(require,module,exports){(function(global){(function(k,D){typeof exports=="object"&&typeof module!="undefined"?module.exports=D(k):typeof define=="function"&&define.amd?define(D):D(k)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:this,function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.2",buffer;if(typeof module!="undefined"&&module.exports)try{buffer=eval("require('buffer').Buffer")}catch(k){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(k){for(var D={},n=0,y=k.length;n<y;n++)D[k.charAt(n)]=n;return D}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(D){if(D.length<2){var n=D.charCodeAt(0);return n<128?D:n<2048?fromCharCode(192|n>>>6)+fromCharCode(128|n&63):fromCharCode(224|n>>>12&15)+fromCharCode(128|n>>>6&63)+fromCharCode(128|n&63)}else{var n=65536+(D.charCodeAt(0)-55296)*1024+(D.charCodeAt(1)-56320);return fromCharCode(240|n>>>18&7)+fromCharCode(128|n>>>12&63)+fromCharCode(128|n>>>6&63)+fromCharCode(128|n&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(D){return D.replace(re_utob,cb_utob)},cb_encode=function(D){var n=[0,2,1][D.length%3],y=D.charCodeAt(0)<<16|(D.length>1?D.charCodeAt(1):0)<<8|(D.length>2?D.charCodeAt(2):0),p=[b64chars.charAt(y>>>18),b64chars.charAt(y>>>12&63),n>=2?"=":b64chars.charAt(y>>>6&63),n>=1?"=":b64chars.charAt(y&63)];return p.join("")},btoa=global.btoa?function(k){return global.btoa(k)}:function(k){return k.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(D){var n=Object.prototype.toString.call(D)==="[object Uint8Array]";return n?D.toString("base64"):btoa(utob(String(D)))},encode=function(D,n){return n?_encode(String(D)).replace(/[+\/]/g,function(y){return y=="+"?"-":"_"}).replace(/=/g,""):_encode(D)},encodeURI=function(D){return encode(D,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(D){switch(D.length){case 4:var n=(7&D.charCodeAt(0))<<18|(63&D.charCodeAt(1))<<12|(63&D.charCodeAt(2))<<6|63&D.charCodeAt(3),y=n-65536;return fromCharCode((y>>>10)+55296)+fromCharCode((y&1023)+56320);case 3:return fromCharCode((15&D.charCodeAt(0))<<12|(63&D.charCodeAt(1))<<6|63&D.charCodeAt(2));default:return fromCharCode((31&D.charCodeAt(0))<<6|63&D.charCodeAt(1))}},btou=function(D){return D.replace(re_btou,cb_btou)},cb_decode=function(D){var n=D.length,y=n%4,p=(n>0?b64tab[D.charAt(0)]<<18:0)|(n>1?b64tab[D.charAt(1)]<<12:0)|(n>2?b64tab[D.charAt(2)]<<6:0)|(n>3?b64tab[D.charAt(3)]:0),x=[fromCharCode(p>>>16),fromCharCode(p>>>8&255),fromCharCode(p&255)];return x.length-=[0,0,2,1][y],x.join("")},_atob=global.atob?function(k){return global.atob(k)}:function(k){return k.replace(/\S{1,4}/g,cb_decode)},atob=function(D){return _atob(String(D).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(k){return(k.constructor===buffer.constructor?k:buffer.from(k,"base64")).toString()}:function(k){return(k.constructor===buffer.constructor?k:new buffer(k,"base64")).toString()}:function(k){return btou(_atob(k))},decode=function(D){return _decode(String(D).replace(/[-_]/g,function(n){return n=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var D=global.Base64;return global.Base64=_Base64,D};if(global.Base64={VERSION:version,atob,btoa,fromBase64:decode,toBase64:encode,utob,encode,encodeURI,btou,decode,noConflict,__buffer__:buffer},typeof Object.defineProperty=="function"){var noEnum=function(D){return{value:D,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)})),Object.defineProperty(String.prototype,"toBase64",noEnum(function(k){return encode(this,k)})),Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,!0)}))}}return global.Meteor&&(Base64=global.Base64),typeof module!="undefined"&&module.exports?module.exports.Base64=global.Base64:typeof define=="function"&&define.amd&&define([],function(){return global.Base64}),{Base64:global.Base64}})}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],200:[function(k,D,n){/*!
|
|
|
* merge-descriptors
|
|
|
* Copyright(c) 2014 Jonathan Ong
|
|
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
|
* MIT Licensed
|
|
|
*/"use strict";D.exports=p;var y=Object.prototype.hasOwnProperty;function p(x,A,m){if(!x)throw new TypeError("argument dest is required");if(!A)throw new TypeError("argument src is required");return m===void 0&&(m=!0),Object.getOwnPropertyNames(A).forEach(function(h){if(!m&&y.call(x,h))return;var u=Object.getOwnPropertyDescriptor(A,h);Object.defineProperty(x,h,u)}),x}},{}],201:[function(k,D,n){"use strict";function y(){this._types=Object.create(null),this._extensions=Object.create(null);for(var p=0;p<arguments.length;p++)this.define(arguments[p]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}y.prototype.define=function(p,x){for(var A in p){var m=p[A].map(function(u){return u.toLowerCase()});A=A.toLowerCase();for(var f=0;f<m.length;f++){var h=m[f];if(h[0]=="*")continue;if(!x&&h in this._types)throw new Error('Attempt to change mapping for "'+h+'" extension from "'+this._types[h]+'" to "'+A+'". Pass `force=true` to allow this, otherwise remove "'+h+'" from the list of extensions for "'+A+'".');this._types[h]=A}if(x||!this._extensions[A]){var h=m[0];this._extensions[A]=h[0]!="*"?h:h.substr(1)}}},y.prototype.getType=function(p){p=String(p);var x=p.replace(/^.*[/\\]/,"").toLowerCase(),A=x.replace(/^.*\./,"").toLowerCase(),m=x.length<p.length,f=A.length<x.length-1;return(f||!m)&&this._types[A]||null},y.prototype.getExtension=function(p){return p=/^\s*([^;\s]*)/.test(p)&&RegExp.$1,p&&this._extensions[p.toLowerCase()]||null},D.exports=y},{}],202:[function(k,D,n){"use strict";var y=k("./Mime");D.exports=new y(k("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(k,D,n){D.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma","es"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/mrb-consumer+xml":["*xdf"],"application/mrb-publish+xml":["*xdf"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["*xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/ttml+xml":["ttml"],"application/urc-ressheet+xml":["rsheet"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-error+xml":["xer"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],204:[function(k,D,n){var y=1e3,p=y*60,x=p*60,A=x*24,m=A*7,f=A*365.25;D.exports=function(t,o){o=o||{};var e=typeof t;if(e==="string"&&t.length>0)return h(t);if(e==="number"&&isFinite(t))return o.long?a(t):u(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function h(t){if(t=String(t),t.length>100)return;var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!o)return;var e=parseFloat(o[1]),l=(o[2]||"ms").toLowerCase();switch(l){case"years":case"year":case"yrs":case"yr":case"y":return e*f;case"weeks":case"week":case"w":return e*m;case"days":case"day":case"d":return e*A;case"hours":case"hour":case"hrs":case"hr":case"h":return e*x;case"minutes":case"minute":case"mins":case"min":case"m":return e*p;case"seconds":case"second":case"secs":case"sec":case"s":return e*y;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return e;default:return}}function u(t){var o=Math.abs(t);return o>=A?Math.round(t/A)+"d":o>=x?Math.round(t/x)+"h":o>=p?Math.round(t/p)+"m":o>=y?Math.round(t/y)+"s":t+"ms"}function a(t){var o=Math.abs(t);return o>=A?i(t,o,A,"day"):o>=x?i(t,o,x,"hour"):o>=p?i(t,o,p,"minute"):o>=y?i(t,o,y,"second"):t+" ms"}function i(t,o,e,l){var r=o>=e*1.5;return Math.round(t/e)+" "+l+(r?"s":"")}},{}],205:[function(k,D,n){(function(y){function p(f,h){for(var u=0,a=f.length-1;a>=0;a--){var i=f[a];i==="."?f.splice(a,1):i===".."?(f.splice(a,1),u++):u&&(f.splice(a,1),u--)}if(h)for(;u--;u)f.unshift("..");return f}n.resolve=function(){for(var f="",h=!1,u=arguments.length-1;u>=-1&&!h;u--){var a=u>=0?arguments[u]:y.cwd();if(typeof a!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!a)continue;f=a+"/"+f,h=a.charAt(0)==="/"}return f=p(A(f.split("/"),function(i){return!!i}),!h).join("/"),(h?"/":"")+f||"."},n.normalize=function(f){var h=n.isAbsolute(f),u=m(f,-1)==="/";return f=p(A(f.split("/"),function(a){return!!a}),!h).join("/"),!f&&!h&&(f="."),f&&u&&(f+="/"),(h?"/":"")+f},n.isAbsolute=function(f){return f.charAt(0)==="/"},n.join=function(){var f=Array.prototype.slice.call(arguments,0);return n.normalize(A(f,function(h,u){if(typeof h!="string")throw new TypeError("Arguments to path.join must be strings");return h}).join("/"))},n.relative=function(f,h){f=n.resolve(f).substr(1),h=n.resolve(h).substr(1);function u(r){for(var s=0;s<r.length&&!(r[s]!=="");s++);for(var c=r.length-1;c>=0&&!(r[c]!=="");c--);return s>c?[]:r.slice(s,c-s+1)}for(var a=u(f.split("/")),i=u(h.split("/")),t=Math.min(a.length,i.length),o=t,e=0;e<t;e++)if(a[e]!==i[e]){o=e;break}for(var l=[],e=o;e<a.length;e++)l.push("..");return l=l.concat(i.slice(o)),l.join("/")},n.sep="/",n.delimiter=":",n.dirname=function(f){if(typeof f!="string"&&(f=f+""),f.length===0)return".";for(var h=f.charCodeAt(0),u=h===47,a=-1,i=!0,t=f.length-1;t>=1;--t)if(h=f.charCodeAt(t),h===47){if(!i){a=t;break}}else i=!1;return a===-1?u?"/":".":u&&a===1?"/":f.slice(0,a)};function x(f){typeof f!="string"&&(f=f+"");var h=0,u=-1,a=!0,i;for(i=f.length-1;i>=0;--i)if(f.charCodeAt(i)===47){if(!a){h=i+1;break}}else u===-1&&(a=!1,u=i+1);return u===-1?"":f.slice(h,u)}n.basename=function(f,h){var u=x(f);return h&&u.substr(-1*h.length)===h&&(u=u.substr(0,u.length-h.length)),u},n.extname=function(f){typeof f!="string"&&(f=f+"");for(var h=-1,u=0,a=-1,i=!0,t=0,o=f.length-1;o>=0;--o){var e=f.charCodeAt(o);if(e===47){if(!i){u=o+1;break}continue}a===-1&&(i=!1,a=o+1),e===46?h===-1?h=o:t!==1&&(t=1):h!==-1&&(t=-1)}return h===-1||a===-1||t===0||t===1&&h===a-1&&h===u+1?"":f.slice(h,a)};function A(f,h){if(f.filter)return f.filter(h);for(var u=[],a=0;a<f.length;a++)h(f[a],a,f)&&u.push(f[a]);return u}var m="ab".substr(-1)==="b"?function(f,h,u){return f.substr(h,u)}:function(f,h,u){return h<0&&(h=f.length+h),f.substr(h,u)}}).call(this,k("_process"))},{_process:208}],206:[function(k,D,n){(function(y){/*!
|
|
|
* Platform.js <https://mths.be/platform>
|
|
|
* Copyright 2014-2018 Benjamin Tan <https://bnjmnt4n.now.sh/>
|
|
|
* Copyright 2011-2013 John-David Dalton <http://allyoucanleet.com/>
|
|
|
* Available under MIT license <https://mths.be/mit>
|
|
|
*/(function(){"use strict";var p={function:!0,object:!0},x=p[typeof window]&&window||this,A=x,m=p[typeof n]&&n,f=p[typeof D]&&D&&!D.nodeType&&D,h=m&&f&&typeof y=="object"&&y;h&&(h.global===h||h.window===h||h.self===h)&&(x=h);var u=Math.pow(2,53)-1,a=/\bOpera/,i=this,t=Object.prototype,o=t.hasOwnProperty,e=t.toString;function l(T){return T=String(T),T.charAt(0).toUpperCase()+T.slice(1)}function r(T,w,O){var I={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return w&&O&&/^Win/i.test(T)&&!/^Windows Phone /i.test(T)&&(I=I[/[\d.]+$/.exec(T)])&&(T="Windows "+I),T=String(T),w&&O&&(T=T.replace(RegExp(w,"i"),O)),T=c(T.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),T}function s(T,w){var O=-1,I=T?T.length:0;if(typeof I=="number"&&I>-1&&I<=u)for(;++O<I;)w(T[O],O,T);else d(T,w)}function c(T){return T=E(T),/^(?:webOS|i(?:OS|P))/.test(T)?T:l(T)}function d(T,w){for(var O in T)o.call(T,O)&&w(T[O],O,T)}function g(T){return T==null?l(T):e.call(T).slice(8,-1)}function v(T,w){var O=T!=null?typeof T[w]:"number";return!/^(?:boolean|number|string|undefined)$/.test(O)&&(O=="object"?!!T[w]:!0)}function b(T){return String(T).replace(/([ -])(?!$)/g,"$1?")}function S(T,w){var O=null;return s(T,function(I,R){O=w(O,I,R,T)}),O}function E(T){return String(T).replace(/^ +| +$/g,"")}function C(T){var w=x,O=T&&typeof T=="object"&&g(T)!="String";O&&(w=T,T=null);var I=w.navigator||{},R=I.userAgent||"";T||(T=R);var M=O||i==A,F=O?!!I.likeChrome:/\bChrome\b/.test(T)&&!/internal|\n/i.test(e.toString()),P="Object",X=O?P:"ScriptBridgingProxyObject",B=O?P:"Environment",j=O&&w.java?"JavaPackage":g(w.java),W=O?P:"RuntimeObject",z=/\bJava/.test(j)&&w.java,V=z&&g(w.environment)==B,Q=z?"a":"\u03B1",G=z?"b":"\u03B2",ee=w.document||{},ce=w.operamini||w.opera,be=a.test(be=O&&ce?ce["[[Class]]"]:g(ce))?be:ce=null,le,Ie=T,ke=[],Re=null,Qe=T==R,We=Qe&&ce&&typeof ce.version=="function"&&ce.version(),ot,Oe=Y([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),oe=fe(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),st=Ne([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),he=$({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),J=we(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function Y(Le){return S(Le,function(tt,At){return tt||RegExp("\\b"+(At.pattern||b(At))+"\\b","i").exec(T)&&(At.label||At)})}function $(Le){return S(Le,function(tt,At,ht){return tt||(At[st]||At[/^[a-z]+(?: +[a-z]+\b)*/i.exec(st)]||RegExp("\\b"+b(ht)+"(?:\\b|\\w*\\d)","i").exec(T))&&ht})}function fe(Le){return S(Le,function(tt,At){return tt||RegExp("\\b"+(At.pattern||b(At))+"\\b","i").exec(T)&&(At.label||At)})}function we(Le){return S(Le,function(tt,At){var ht=At.pattern||b(At);return!tt&&(tt=RegExp("\\b"+ht+"(?:/[\\d.]+|[ \\w.]*)","i").exec(T))&&(tt=r(tt,ht,At.label||At)),tt})}function Ne(Le){return S(Le,function(tt,At){var ht=At.pattern||b(At);return!tt&&(tt=RegExp("\\b"+ht+" *\\d+[.\\w_]*","i").exec(T)||RegExp("\\b"+ht+" *\\w+-[\\w]*","i").exec(T)||RegExp("\\b"+ht+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(T))&&((tt=String(At.label&&!RegExp(ht,"i").test(At.label)?At.label:tt).split("/"))[1]&&!/[\d.]+/.test(tt[0])&&(tt[0]+=" "+tt[1]),At=At.label||At,tt=c(tt[0].replace(RegExp(ht,"i"),At).replace(RegExp("; *(?:"+At+"[_-])?","i")," ").replace(RegExp("("+At+")[-_.]?(\\w)","i"),"$1 $2"))),tt})}function Ee(Le){return S(Le,function(tt,At){return tt||(RegExp(At+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(T)||0)[1]||null})}function de(){return this.description||""}if(Oe&&(Oe=[Oe]),he&&!st&&(st=Ne([he])),(le=/\bGoogle TV\b/.exec(st))&&(st=le[0]),/\bSimulator\b/i.test(T)&&(st=(st?st+" ":"")+"Simulator"),oe=="Opera Mini"&&/\bOPiOS\b/.test(T)&&ke.push("running in Turbo/Uncompressed mode"),oe=="IE"&&/\blike iPhone OS\b/.test(T)?(le=C(T.replace(/like iPhone OS/,"")),he=le.manufacturer,st=le.product):/^iP/.test(st)?(oe||(oe="Safari"),J="iOS"+((le=/ OS ([\d_]+)/i.exec(T))?" "+le[1].replace(/_/g,"."):"")):oe=="Konqueror"&&!/buntu/i.test(J)?J="Kubuntu":he&&he!="Google"&&(/Chrome/.test(oe)&&!/\bMobile Safari\b/i.test(T)||/\bVita\b/.test(st))||/\bAndroid\b/.test(J)&&/^Chrome/.test(oe)&&/\bVersion\//i.test(T)?(oe="Android Browser",J=/\bAndroid\b/.test(J)?J:"Android"):oe=="Silk"?(/\bMobi/i.test(T)||(J="Android",ke.unshift("desktop mode")),/Accelerated *= *true/i.test(T)&&ke.unshift("accelerated")):oe=="PaleMoon"&&(le=/\bFirefox\/([\d.]+)\b/.exec(T))?ke.push("identifying as Firefox "+le[1]):oe=="Firefox"&&(le=/\b(Mobile|Tablet|TV)\b/i.exec(T))?(J||(J="Firefox OS"),st||(st=le[1])):!oe||(le=!/\bMinefield\b/i.test(T)&&/\b(?:Firefox|Safari)\b/.exec(oe))?(oe&&!st&&/[\/,]|^[^(]+?\)/.test(T.slice(T.indexOf(le+"/")+8))&&(oe=null),(le=st||he||J)&&(st||he||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(J))&&(oe=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(J)?J:le)+" Browser")):oe=="Electron"&&(le=(/\bChrome\/([\d.]+)\b/.exec(T)||0)[1])&&ke.push("Chromium "+le),We||(We=Ee(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",b(oe),"(?:Firefox|Minefield|NetFront)"])),(le=Oe=="iCab"&&parseFloat(We)>3&&"WebKit"||/\bOpera\b/.test(oe)&&(/\bOPR\b/.test(T)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(T)&&!/^(?:Trident|EdgeHTML)$/.test(Oe)&&"WebKit"||!Oe&&/\bMSIE\b/i.test(T)&&(J=="Mac OS"?"Tasman":"Trident")||Oe=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(oe)&&"NetFront")&&(Oe=[le]),oe=="IE"&&(le=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(T)||0)[1])?(oe+=" Mobile",J="Windows Phone "+(/\+$/.test(le)?le:le+".x"),ke.unshift("desktop mode")):/\bWPDesktop\b/i.test(T)?(oe="IE Mobile",J="Windows Phone 8.x",ke.unshift("desktop mode"),We||(We=(/\brv:([\d.]+)/.exec(T)||0)[1])):oe!="IE"&&Oe=="Trident"&&(le=/\brv:([\d.]+)/.exec(T))&&(oe&&ke.push("identifying as "+oe+(We?" "+We:"")),oe="IE",We=le[1]),Qe){if(v(w,"global"))if(z&&(le=z.lang.System,Ie=le.getProperty("os.arch"),J=J||le.getProperty("os.name")+" "+le.getProperty("os.version")),V){try{We=w.require("ringo/engine").version.join("."),oe="RingoJS"}catch(Le){(le=w.system)&&le.global.system==w.system&&(oe="Narwhal",J||(J=le[0].os||null))}oe||(oe="Rhino")}else typeof w.process=="object"&&!w.process.browser&&(le=w.process)&&(typeof le.versions=="object"&&(typeof le.versions.electron=="string"?(ke.push("Node "+le.versions.node),oe="Electron",We=le.versions.electron):typeof le.versions.nw=="string"&&(ke.push("Chromium "+We,"Node "+le.versions.node),oe="NW.js",We=le.versions.nw)),oe||(oe="Node.js",Ie=le.arch,J=le.platform,We=/[\d.]+/.exec(le.version),We=We?We[0]:null));else g(le=w.runtime)==X?(oe="Adobe AIR",J=le.flash.system.Capabilities.os):g(le=w.phantom)==W?(oe="PhantomJS",We=(le=le.version||null)&&le.major+"."+le.minor+"."+le.patch):typeof ee.documentMode=="number"&&(le=/\bTrident\/(\d+)/i.exec(T))?(We=[We,ee.documentMode],(le=+le[1]+4)!=We[1]&&(ke.push("IE "+We[1]+" mode"),Oe&&(Oe[1]=""),We[1]=le),We=oe=="IE"?String(We[1].toFixed(1)):We[0]):typeof ee.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(oe)&&(ke.push("masking as "+oe+" "+We),oe="IE",We="11.0",Oe=["Trident"],J="Windows");J=J&&c(J)}if(We&&(le=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(We)||/(?:alpha|beta)(?: ?\d)?/i.exec(T+";"+(Qe&&I.appMinorVersion))||/\bMinefield\b/i.test(T)&&"a")&&(Re=/b/i.test(le)?"beta":"alpha",We=We.replace(RegExp(le+"\\+?$"),"")+(Re=="beta"?G:Q)+(/\d+\+?/.exec(le)||"")),oe=="Fennec"||oe=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(J))oe="Firefox Mobile";else if(oe=="Maxthon"&&We)We=We.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(st))st=="Xbox 360"&&(J=null),st=="Xbox 360"&&/\bIEMobile\b/.test(T)&&ke.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(oe)||oe&&!st&&!/Browser|Mobi/.test(oe))&&(J=="Windows CE"||/Mobi/i.test(T)))oe+=" Mobile";else if(oe=="IE"&&Qe)try{w.external===null&&ke.unshift("platform preview")}catch(Le){ke.unshift("embedded")}else(/\bBlackBerry\b/.test(st)||/\bBB10\b/.test(T))&&(le=(RegExp(st.replace(/ +/g," *")+"/([.\\d]+)","i").exec(T)||0)[1]||We)?(le=[le,/BB10/.test(T)],J=(le[1]?(st=null,he="BlackBerry"):"Device Software")+" "+le[0],We=null):this!=d&&st!="Wii"&&(Qe&&ce||/Opera/.test(oe)&&/\b(?:MSIE|Firefox)\b/i.test(T)||oe=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(J)||oe=="IE"&&(J&&!/^Win/.test(J)&&We>5.5||/\bWindows XP\b/.test(J)&&We>8||We==8&&!/\bTrident\b/.test(T)))&&!a.test(le=C.call(d,T.replace(a,"")+";"))&&le.name&&(le="ing as "+le.name+((le=le.version)?" "+le:""),a.test(oe)?(/\bIE\b/.test(le)&&J=="Mac OS"&&(J=null),le="identify"+le):(le="mask"+le,be?oe=c(be.replace(/([a-z])([A-Z])/g,"$1 $2")):oe="Opera",/\bIE\b/.test(le)&&(J=null),Qe||(We=null)),Oe=["Presto"],ke.push(le));(le=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(T)||0)[1])&&(le=[parseFloat(le.replace(/\.(\d)$/,".0$1")),le],oe=="Safari"&&le[1].slice(-1)=="+"?(oe="WebKit Nightly",Re="alpha",We=le[1].slice(0,-1)):(We==le[1]||We==(le[2]=(/\bSafari\/([\d.]+\+?)/i.exec(T)||0)[1]))&&(We=null),le[1]=(/\bChrome\/([\d.]+)/i.exec(T)||0)[1],le[0]==537.36&&le[2]==537.36&&parseFloat(le[1])>=28&&Oe=="WebKit"&&(Oe=["Blink"]),!Qe||!F&&!le[1]?(Oe&&(Oe[1]="like Safari"),le=(le=le[0],le<400?1:le<500?2:le<526?3:le<533?4:le<534?"4+":le<535?5:le<537?6:le<538?7:le<601?8:"8")):(Oe&&(Oe[1]="like Chrome"),le=le[1]||(le=le[0],le<530?1:le<532?2:le<532.05?3:le<533?4:le<534.03?5:le<534.07?6:le<534.1?7:le<534.13?8:le<534.16?9:le<534.24?10:le<534.3?11:le<535.01?12:le<535.02?"13+":le<535.07?15:le<535.11?16:le<535.19?17:le<536.05?18:le<536.1?19:le<537.01?20:le<537.11?"21+":le<537.13?23:le<537.18?24:le<537.24?25:le<537.36?26:Oe!="Blink"?"27":"28")),Oe&&(Oe[1]+=" "+(le+=typeof le=="number"?".x":/[.+]/.test(le)?"":"+")),oe=="Safari"&&(!We||parseInt(We)>45)&&(We=le)),oe=="Opera"&&(le=/\bzbov|zvav$/.exec(J))?(oe+=" ",ke.unshift("desktop mode"),le=="zvav"?(oe+="Mini",We=null):oe+="Mobile",J=J.replace(RegExp(" *"+le+"$"),"")):oe=="Safari"&&/\bChrome\b/.exec(Oe&&Oe[1])&&(ke.unshift("desktop mode"),oe="Chrome Mobile",We=null,/\bOS X\b/.test(J)?(he="Apple",J="iOS 4.3+"):J=null),We&&We.indexOf(le=/[\d.]+$/.exec(J))==0&&T.indexOf("/"+le+"-")>-1&&(J=E(J.replace(le,""))),Oe&&!/\b(?:Avant|Nook)\b/.test(oe)&&(/Browser|Lunascape|Maxthon/.test(oe)||oe!="Safari"&&/^iOS/.test(J)&&/\bSafari\b/.test(Oe[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(oe)&&Oe[1])&&((le=Oe[Oe.length-1])&&ke.push(le)),ke.length&&(ke=["("+ke.join("; ")+")"]),he&&st&&st.indexOf(he)<0&&ke.push("on "+he),st&&ke.push((/^on /.test(ke[ke.length-1])?"":"on ")+st),J&&(le=/ ([\d.+]+)$/.exec(J),ot=le&&J.charAt(J.length-le[0].length-1)=="/",J={architecture:32,family:le&&!ot?J.replace(le[0],""):J,version:le?le[1]:null,toString:function(){var tt=this.version;return this.family+(tt&&!ot?" "+tt:"")+(this.architecture==64?" 64-bit":"")}}),(le=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Ie))&&!/\bi686\b/i.test(Ie)?(J&&(J.architecture=64,J.family=J.family.replace(RegExp(" *"+le),"")),oe&&(/\bWOW64\b/i.test(T)||Qe&&/\w(?:86|32)$/.test(I.cpuClass||I.platform)&&!/\bWin64; x64\b/i.test(T))&&ke.unshift("32-bit")):J&&/^OS X/.test(J.family)&&oe=="Chrome"&&parseFloat(We)>=39&&(J.architecture=64),T||(T=null);var me={};return me.description=T,me.layout=Oe&&Oe[0],me.manufacturer=he,me.name=oe,me.prerelease=Re,me.product=st,me.ua=T,me.version=oe&&We,me.os=J||{architecture:null,family:null,version:null,toString:function(){return"null"}},me.parse=C,me.toString=de,me.version&&ke.unshift(We),me.name&&ke.unshift(oe),J&&oe&&!(J==String(J).split(" ")[0]&&(J==oe.split(" ")[0]||st))&&ke.push(st?"("+J+")":"on "+J),ke.length&&(me.description=ke.join(" ")),me}var _=C();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(x.platform=_,define(function(){return _})):m&&f?d(_,function(T,w){m[w]=T}):x.platform=_}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(k,D,n){(function(y){"use strict";typeof y=="undefined"||!y.version||y.version.indexOf("v0.")===0||y.version.indexOf("v1.")===0&&y.version.indexOf("v1.8.")!==0?D.exports={nextTick:p}:D.exports=y;function p(x,A,m,f){if(typeof x!="function")throw new TypeError('"callback" argument must be a function');var h=arguments.length,u,a;switch(h){case 0:case 1:return y.nextTick(x);case 2:return y.nextTick(function(){x.call(null,A)});case 3:return y.nextTick(function(){x.call(null,A,m)});case 4:return y.nextTick(function(){x.call(null,A,m,f)});default:for(u=new Array(h-1),a=0;a<u.length;)u[a++]=arguments[a];return y.nextTick(function(){x.apply(null,u)})}}}).call(this,k("_process"))},{_process:208}],208:[function(k,D,n){var y=D.exports={},p,x;function A(){throw new Error("setTimeout has not been defined")}function m(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?p=setTimeout:p=A}catch(s){p=A}try{typeof clearTimeout=="function"?x=clearTimeout:x=m}catch(s){x=m}})();function f(s){if(p===setTimeout)return setTimeout(s,0);if((p===A||!p)&&setTimeout)return p=setTimeout,setTimeout(s,0);try{return p(s,0)}catch(c){try{return p.call(null,s,0)}catch(d){return p.call(this,s,0)}}}function h(s){if(x===clearTimeout)return clearTimeout(s);if((x===m||!x)&&clearTimeout)return x=clearTimeout,clearTimeout(s);try{return x(s)}catch(c){try{return x.call(null,s)}catch(d){return x.call(this,s)}}}var u=[],a=!1,i,t=-1;function o(){if(!a||!i)return;a=!1,i.length?u=i.concat(u):t=-1,u.length&&e()}function e(){if(a)return;var s=f(o);a=!0;for(var c=u.length;c;){for(i=u,u=[];++t<c;)i&&i[t].run();t=-1,c=u.length}i=null,a=!1,h(s)}y.nextTick=function(s){var c=new Array(arguments.length-1);if(arguments.length>1)for(var d=1;d<arguments.length;d++)c[d-1]=arguments[d];u.push(new l(s,c)),u.length===1&&!a&&f(e)};function l(s,c){this.fun=s,this.array=c}l.prototype.run=function(){this.fun.apply(null,this.array)},y.title="browser",y.browser=!0,y.env={},y.argv=[],y.version="",y.versions={};function r(){}y.on=r,y.addListener=r,y.once=r,y.off=r,y.removeListener=r,y.removeAllListeners=r,y.emit=r,y.prependListener=r,y.prependOnceListener=r,y.listeners=function(s){return[]},y.binding=function(s){throw new Error("process.binding is not supported")},y.cwd=function(){return"/"},y.chdir=function(s){throw new Error("process.chdir is not supported")},y.umask=function(){return 0}},{}],209:[function(k,D,n){(function(y){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(p){var x=typeof n=="object"&&n&&!n.nodeType&&n,A=typeof D=="object"&&D&&!D.nodeType&&D,m=typeof y=="object"&&y;(m.global===m||m.window===m||m.self===m)&&(p=m);var f,h=2147483647,u=36,a=1,i=26,t=38,o=700,e=72,l=128,r="-",s=/^xn--/,c=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,g={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},v=u-a,b=Math.floor,S=String.fromCharCode,E;function C(j){throw new RangeError(g[j])}function _(j,W){for(var z=j.length,V=[];z--;)V[z]=W(j[z]);return V}function T(j,W){var z=j.split("@"),V="";z.length>1&&(V=z[0]+"@",j=z[1]),j=j.replace(d,".");var Q=j.split("."),G=_(Q,W).join(".");return V+G}function w(j){for(var W=[],z=0,V=j.length,Q,G;z<V;)Q=j.charCodeAt(z++),Q>=55296&&Q<=56319&&z<V?(G=j.charCodeAt(z++),(G&64512)==56320?W.push(((Q&1023)<<10)+(G&1023)+65536):(W.push(Q),z--)):W.push(Q);return W}function O(j){return _(j,function(W){var z="";return W>65535&&(W-=65536,z+=S(W>>>10&1023|55296),W=56320|W&1023),z+=S(W),z}).join("")}function I(j){return j-48<10?j-22:j-65<26?j-65:j-97<26?j-97:u}function R(j,W){return j+22+75*(j<26)-((W!=0)<<5)}function M(j,W,z){var V=0;for(j=z?b(j/o):j>>1,j+=b(j/W);j>v*i>>1;V+=u)j=b(j/v);return b(V+(v+1)*j/(j+t))}function F(j){var W=[],z=j.length,V,Q=0,G=l,ee=e,ce,be,le,Ie,ke,Re,Qe,We,ot;for(ce=j.lastIndexOf(r),ce<0&&(ce=0),be=0;be<ce;++be)j.charCodeAt(be)>=128&&C("not-basic"),W.push(j.charCodeAt(be));for(le=ce>0?ce+1:0;le<z;){for(Ie=Q,ke=1,Re=u;!(le>=z&&C("invalid-input"),Qe=I(j.charCodeAt(le++)),(Qe>=u||Qe>b((h-Q)/ke))&&C("overflow"),Q+=Qe*ke,We=Re<=ee?a:Re>=ee+i?i:Re-ee,Qe<We);Re+=u)ot=u-We,ke>b(h/ot)&&C("overflow"),ke*=ot;V=W.length+1,ee=M(Q-Ie,V,Ie==0),b(Q/V)>h-G&&C("overflow"),G+=b(Q/V),Q%=V,W.splice(Q++,0,G)}return O(W)}function P(j){var W,z,V,Q,G,ee,ce,be,le,Ie,ke,Re=[],Qe,We,ot,Oe;for(j=w(j),Qe=j.length,W=l,z=0,G=e,ee=0;ee<Qe;++ee)ke=j[ee],ke<128&&Re.push(S(ke));for(V=Q=Re.length,Q&&Re.push(r);V<Qe;){for(ce=h,ee=0;ee<Qe;++ee)ke=j[ee],ke>=W&&ke<ce&&(ce=ke);for(We=V+1,ce-W>b((h-z)/We)&&C("overflow"),z+=(ce-W)*We,W=ce,ee=0;ee<Qe;++ee)if(ke=j[ee],ke<W&&++z>h&&C("overflow"),ke==W){for(be=z,le=u;!(Ie=le<=G?a:le>=G+i?i:le-G,be<Ie);le+=u)Oe=be-Ie,ot=u-Ie,Re.push(S(R(Ie+Oe%ot,0))),be=b(Oe/ot);Re.push(S(R(be,0))),G=M(z,We,V==Q),z=0,++V}++z,++W}return Re.join("")}function X(j){return T(j,function(W){return s.test(W)?F(W.slice(4).toLowerCase()):W})}function B(j){return T(j,function(W){return c.test(W)?"xn--"+P(W):W})}if(f={version:"1.4.1",ucs2:{decode:w,encode:O},decode:F,encode:P,toASCII:B,toUnicode:X},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return f});else if(x&&A)if(D.exports==x)A.exports=f;else for(E in f)f.hasOwnProperty(E)&&(x[E]=f[E]);else p.punycode=f})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(k,D,n){"use strict";function y(x,A){return Object.prototype.hasOwnProperty.call(x,A)}D.exports=function(x,A,m,f){A=A||"&",m=m||"=";var h={};if(typeof x!="string"||x.length===0)return h;var u=/\+/g;x=x.split(A);var a=1e3;f&&typeof f.maxKeys=="number"&&(a=f.maxKeys);var i=x.length;a>0&&i>a&&(i=a);for(var t=0;t<i;++t){var o=x[t].replace(u,"%20"),e=o.indexOf(m),l,r,s,c;e>=0?(l=o.substr(0,e),r=o.substr(e+1)):(l=o,r=""),s=decodeURIComponent(l),c=decodeURIComponent(r),y(h,s)?p(h[s])?h[s].push(c):h[s]=[h[s],c]:h[s]=c}return h};var p=Array.isArray||function(x){return Object.prototype.toString.call(x)==="[object Array]"}},{}],211:[function(k,D,n){"use strict";var y=function(f){switch(typeof f){case"string":return f;case"boolean":return f?"true":"false";case"number":return isFinite(f)?f:"";default:return""}};D.exports=function(m,f,h,u){return f=f||"&",h=h||"=",m===null&&(m=void 0),typeof m=="object"?x(A(m),function(a){var i=encodeURIComponent(y(a))+h;return p(m[a])?x(m[a],function(t){return i+encodeURIComponent(y(t))}).join(f):i+encodeURIComponent(y(m[a]))}).join(f):u?encodeURIComponent(y(u))+h+encodeURIComponent(y(m)):""};var p=Array.isArray||function(m){return Object.prototype.toString.call(m)==="[object Array]"};function x(m,f){if(m.map)return m.map(f);for(var h=[],u=0;u<m.length;u++)h.push(f(m[u],u));return h}var A=Object.keys||function(m){var f=[];for(var h in m)Object.prototype.hasOwnProperty.call(m,h)&&f.push(h);return f}},{}],212:[function(k,D,n){"use strict";n.decode=n.parse=k("./decode"),n.encode=n.stringify=k("./encode")},{"./decode":210,"./encode":211}],213:[function(k,D,n){D.exports=k("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/create"),p=m(y),x=k("babel-runtime/core-js/object/keys"),A=m(x);function m(c){return c&&c.__esModule?c:{default:c}}var f=k("process-nextick-args"),h=A.default||function(c){var d=[];for(var g in c)d.push(g);return d};D.exports=l;var u=(0,p.default)(k("core-util-is"));u.inherits=k("inherits");var a=k("./_stream_readable"),i=k("./_stream_writable");u.inherits(l,a);for(var t=h(i.prototype),o=0;o<t.length;o++){var e=t[o];l.prototype[e]||(l.prototype[e]=i.prototype[e])}function l(c){if(!(this instanceof l))return new l(c);a.call(this,c),i.call(this,c),c&&c.readable===!1&&(this.readable=!1),c&&c.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,c&&c.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",r)}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function r(){if(this.allowHalfOpen||this._writableState.ended)return;f.nextTick(s,this)}function s(c){c.end()}Object.defineProperty(l.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(d){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=d,this._writableState.destroyed=d}}),l.prototype._destroy=function(c,d){this.push(null),this.end(),f.nextTick(d,c)}},{"./_stream_readable":216,"./_stream_writable":218,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60,"core-util-is":189,inherits:196,"process-nextick-args":207}],215:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/create"),p=x(y);function x(h){return h&&h.__esModule?h:{default:h}}D.exports=f;var A=k("./_stream_transform"),m=(0,p.default)(k("core-util-is"));m.inherits=k("inherits"),m.inherits(f,A);function f(h){if(!(this instanceof f))return new f(h);A.call(this,h)}f.prototype._transform=function(h,u,a){a(null,h)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(k,D,n){(function(y,p){"use strict";var x=k("babel-runtime/core-js/object/get-prototype-of"),A=h(x),m=k("babel-runtime/core-js/object/create"),f=h(m);function h(Oe){return Oe&&Oe.__esModule?Oe:{default:Oe}}var u=k("process-nextick-args");D.exports=w;var a=k("isarray"),i;w.ReadableState=T;var t=k("events").EventEmitter,o=function(oe,st){return oe.listeners(st).length},e=k("./internal/streams/stream"),l=k("safe-buffer").Buffer,r=p.Uint8Array||function(){};function s(Oe){return l.from(Oe)}function c(Oe){return l.isBuffer(Oe)||Oe instanceof r}var d=(0,f.default)(k("core-util-is"));d.inherits=k("inherits");var g=k("util"),v=void 0;g&&g.debuglog?v=g.debuglog("stream"):v=function(){};var b=k("./internal/streams/BufferList"),S=k("./internal/streams/destroy"),E;d.inherits(w,e);var C=["error","close","destroy","pause","resume"];function _(Oe,oe,st){if(typeof Oe.prependListener=="function")return Oe.prependListener(oe,st);!Oe._events||!Oe._events[oe]?Oe.on(oe,st):a(Oe._events[oe])?Oe._events[oe].unshift(st):Oe._events[oe]=[st,Oe._events[oe]]}function T(Oe,oe){i=i||k("./_stream_duplex"),Oe=Oe||{};var st=oe instanceof i;this.objectMode=!!Oe.objectMode,st&&(this.objectMode=this.objectMode||!!Oe.readableObjectMode);var he=Oe.highWaterMark,J=Oe.readableHighWaterMark,Y=this.objectMode?16:16*1024;he||he===0?this.highWaterMark=he:st&&(J||J===0)?this.highWaterMark=J:this.highWaterMark=Y,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=Oe.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Oe.encoding&&(E||(E=k("string_decoder/").StringDecoder),this.decoder=new E(Oe.encoding),this.encoding=Oe.encoding)}function w(Oe){if(i=i||k("./_stream_duplex"),!(this instanceof w))return new w(Oe);this._readableState=new T(Oe,this),this.readable=!0,Oe&&(typeof Oe.read=="function"&&(this._read=Oe.read),typeof Oe.destroy=="function"&&(this._destroy=Oe.destroy)),e.call(this)}Object.defineProperty(w.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(oe){if(!this._readableState)return;this._readableState.destroyed=oe}}),w.prototype.destroy=S.destroy,w.prototype._undestroy=S.undestroy,w.prototype._destroy=function(Oe,oe){this.push(null),oe(Oe)},w.prototype.push=function(Oe,oe){var st=this._readableState,he;return st.objectMode?he=!0:typeof Oe=="string"&&(oe=oe||st.defaultEncoding,oe!==st.encoding&&(Oe=l.from(Oe,oe),oe=""),he=!0),O(this,Oe,oe,!1,he)},w.prototype.unshift=function(Oe){return O(this,Oe,null,!0,!1)};function O(Oe,oe,st,he,J){var Y=Oe._readableState;if(oe===null)Y.reading=!1,B(Oe,Y);else{var $;J||($=R(Y,oe)),$?Oe.emit("error",$):Y.objectMode||oe&&oe.length>0?(typeof oe!="string"&&!Y.objectMode&&(0,A.default)(oe)!==l.prototype&&(oe=s(oe)),he?Y.endEmitted?Oe.emit("error",new Error("stream.unshift() after end event")):I(Oe,Y,oe,!0):Y.ended?Oe.emit("error",new Error("stream.push() after EOF")):(Y.reading=!1,Y.decoder&&!st?(oe=Y.decoder.write(oe),Y.objectMode||oe.length!==0?I(Oe,Y,oe,!1):z(Oe,Y)):I(Oe,Y,oe,!1))):he||(Y.reading=!1)}return M(Y)}function I(Oe,oe,st,he){oe.flowing&&oe.length===0&&!oe.sync?(Oe.emit("data",st),Oe.read(0)):(oe.length+=oe.objectMode?1:st.length,he?oe.buffer.unshift(st):oe.buffer.push(st),oe.needReadable&&j(Oe)),z(Oe,oe)}function R(Oe,oe){var st;return!c(oe)&&typeof oe!="string"&&oe!==void 0&&!Oe.objectMode&&(st=new TypeError("Invalid non-string/buffer chunk")),st}function M(Oe){return!Oe.ended&&(Oe.needReadable||Oe.length<Oe.highWaterMark||Oe.length===0)}w.prototype.isPaused=function(){return this._readableState.flowing===!1},w.prototype.setEncoding=function(Oe){return E||(E=k("string_decoder/").StringDecoder),this._readableState.decoder=new E(Oe),this._readableState.encoding=Oe,this};var F=8388608;function P(Oe){return Oe>=F?Oe=F:(Oe--,Oe|=Oe>>>1,Oe|=Oe>>>2,Oe|=Oe>>>4,Oe|=Oe>>>8,Oe|=Oe>>>16,Oe++),Oe}function X(Oe,oe){return Oe<=0||oe.length===0&&oe.ended?0:oe.objectMode?1:Oe!==Oe?oe.flowing&&oe.length?oe.buffer.head.data.length:oe.length:(Oe>oe.highWaterMark&&(oe.highWaterMark=P(Oe)),Oe<=oe.length?Oe:oe.ended?oe.length:(oe.needReadable=!0,0))}w.prototype.read=function(Oe){v("read",Oe),Oe=parseInt(Oe,10);var oe=this._readableState,st=Oe;if(Oe!==0&&(oe.emittedReadable=!1),Oe===0&&oe.needReadable&&(oe.length>=oe.highWaterMark||oe.ended))return v("read: emitReadable",oe.length,oe.ended),oe.length===0&&oe.ended?Qe(this):j(this),null;if(Oe=X(Oe,oe),Oe===0&&oe.ended)return oe.length===0&&Qe(this),null;var he=oe.needReadable;v("need readable",he),(oe.length===0||oe.length-Oe<oe.highWaterMark)&&(he=!0,v("length less than watermark",he)),oe.ended||oe.reading?(he=!1,v("reading or ended",he)):he&&(v("do read"),oe.reading=!0,oe.sync=!0,oe.length===0&&(oe.needReadable=!0),this._read(oe.highWaterMark),oe.sync=!1,oe.reading||(Oe=X(st,oe)));var J;return Oe>0?J=le(Oe,oe):J=null,J===null?(oe.needReadable=!0,Oe=0):oe.length-=Oe,oe.length===0&&(oe.ended||(oe.needReadable=!0),st!==Oe&&oe.ended&&Qe(this)),J!==null&&this.emit("data",J),J};function B(Oe,oe){if(oe.ended)return;if(oe.decoder){var st=oe.decoder.end();st&&st.length&&(oe.buffer.push(st),oe.length+=oe.objectMode?1:st.length)}oe.ended=!0,j(Oe)}function j(Oe){var oe=Oe._readableState;oe.needReadable=!1,oe.emittedReadable||(v("emitReadable",oe.flowing),oe.emittedReadable=!0,oe.sync?u.nextTick(W,Oe):W(Oe))}function W(Oe){v("emit readable"),Oe.emit("readable"),be(Oe)}function z(Oe,oe){oe.readingMore||(oe.readingMore=!0,u.nextTick(V,Oe,oe))}function V(Oe,oe){for(var st=oe.length;!oe.reading&&!oe.flowing&&!oe.ended&&oe.length<oe.highWaterMark&&!(v("maybeReadMore read 0"),Oe.read(0),st===oe.length);)st=oe.length;oe.readingMore=!1}w.prototype._read=function(Oe){this.emit("error",new Error("_read() is not implemented"))},w.prototype.pipe=function(Oe,oe){var st=this,he=this._readableState;switch(he.pipesCount){case 0:he.pipes=Oe;break;case 1:he.pipes=[he.pipes,Oe];break;default:he.pipes.push(Oe);break}he.pipesCount+=1,v("pipe count=%d opts=%j",he.pipesCount,oe);var J=(!oe||oe.end!==!1)&&Oe!==y.stdout&&Oe!==y.stderr,Y=J?fe:ht;he.endEmitted?u.nextTick(Y):st.once("end",Y),Oe.on("unpipe",$);function $(Ke,Jt){v("onunpipe"),Ke===st&&(Jt&&Jt.hasUnpiped===!1&&(Jt.hasUnpiped=!0,Ee()))}function fe(){v("onend"),Oe.end()}var we=Q(st);Oe.on("drain",we);var Ne=!1;function Ee(){v("cleanup"),Oe.removeListener("close",tt),Oe.removeListener("finish",At),Oe.removeListener("drain",we),Oe.removeListener("error",Le),Oe.removeListener("unpipe",$),st.removeListener("end",fe),st.removeListener("end",ht),st.removeListener("data",me),Ne=!0,he.awaitDrain&&(!Oe._writableState||Oe._writableState.needDrain)&&we()}var de=!1;st.on("data",me);function me(Ke){v("ondata"),de=!1;var Jt=Oe.write(Ke);Jt===!1&&!de&&((he.pipesCount===1&&he.pipes===Oe||he.pipesCount>1&&ot(he.pipes,Oe)!==-1)&&!Ne&&(v("false write response, pause",st._readableState.awaitDrain),st._readableState.awaitDrain++,de=!0),st.pause())}function Le(Ke){v("onerror",Ke),ht(),Oe.removeListener("error",Le),o(Oe,"error")===0&&Oe.emit("error",Ke)}_(Oe,"error",Le);function tt(){Oe.removeListener("finish",At),ht()}Oe.once("close",tt);function At(){v("onfinish"),Oe.removeListener("close",tt),ht()}Oe.once("finish",At);function ht(){v("unpipe"),st.unpipe(Oe)}return Oe.emit("pipe",st),he.flowing||(v("pipe resume"),st.resume()),Oe};function Q(Oe){return function(){var oe=Oe._readableState;v("pipeOnDrain",oe.awaitDrain),oe.awaitDrain&&oe.awaitDrain--,oe.awaitDrain===0&&o(Oe,"data")&&(oe.flowing=!0,be(Oe))}}w.prototype.unpipe=function(Oe){var oe=this._readableState,st={hasUnpiped:!1};if(oe.pipesCount===0)return this;if(oe.pipesCount===1)return Oe&&Oe!==oe.pipes?this:(Oe||(Oe=oe.pipes),oe.pipes=null,oe.pipesCount=0,oe.flowing=!1,Oe&&Oe.emit("unpipe",this,st),this);if(!Oe){var he=oe.pipes,J=oe.pipesCount;oe.pipes=null,oe.pipesCount=0,oe.flowing=!1;for(var Y=0;Y<J;Y++)he[Y].emit("unpipe",this,st);return this}var $=ot(oe.pipes,Oe);return $===-1?this:(oe.pipes.splice($,1),oe.pipesCount-=1,oe.pipesCount===1&&(oe.pipes=oe.pipes[0]),Oe.emit("unpipe",this,st),this)},w.prototype.on=function(Oe,oe){var st=e.prototype.on.call(this,Oe,oe);if(Oe==="data")this._readableState.flowing!==!1&&this.resume();else if(Oe==="readable"){var he=this._readableState;!he.endEmitted&&!he.readableListening&&(he.readableListening=he.needReadable=!0,he.emittedReadable=!1,he.reading?he.length&&j(this):u.nextTick(G,this))}return st},w.prototype.addListener=w.prototype.on;function G(Oe){v("readable nexttick read 0"),Oe.read(0)}w.prototype.resume=function(){var Oe=this._readableState;return Oe.flowing||(v("resume"),Oe.flowing=!0,ee(this,Oe)),this};function ee(Oe,oe){oe.resumeScheduled||(oe.resumeScheduled=!0,u.nextTick(ce,Oe,oe))}function ce(Oe,oe){oe.reading||(v("resume read 0"),Oe.read(0)),oe.resumeScheduled=!1,oe.awaitDrain=0,Oe.emit("resume"),be(Oe),oe.flowing&&!oe.reading&&Oe.read(0)}w.prototype.pause=function(){return v("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(v("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function be(Oe){var oe=Oe._readableState;for(v("flow",oe.flowing);oe.flowing&&Oe.read()!==null;);}w.prototype.wrap=function(Oe){var oe=this,st=this._readableState,he=!1;Oe.on("end",function(){if(v("wrapped end"),st.decoder&&!st.ended){var $=st.decoder.end();$&&$.length&&oe.push($)}oe.push(null)}),Oe.on("data",function($){if(v("wrapped data"),st.decoder&&($=st.decoder.write($)),st.objectMode&&$==null)return;if(!st.objectMode&&(!$||!$.length))return;var fe=oe.push($);fe||(he=!0,Oe.pause())});for(var J in Oe)this[J]===void 0&&typeof Oe[J]=="function"&&(this[J]=function($){return function(){return Oe[$].apply(Oe,arguments)}}(J));for(var Y=0;Y<C.length;Y++)Oe.on(C[Y],this.emit.bind(this,C[Y]));return this._read=function($){v("wrapped _read",$),he&&(he=!1,Oe.resume())},this},Object.defineProperty(w.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),w._fromList=le;function le(Oe,oe){if(oe.length===0)return null;var st;return oe.objectMode?st=oe.buffer.shift():!Oe||Oe>=oe.length?(oe.decoder?st=oe.buffer.join(""):oe.buffer.length===1?st=oe.buffer.head.data:st=oe.buffer.concat(oe.length),oe.buffer.clear()):st=Ie(Oe,oe.buffer,oe.decoder),st}function Ie(Oe,oe,st){var he;return Oe<oe.head.data.length?(he=oe.head.data.slice(0,Oe),oe.head.data=oe.head.data.slice(Oe)):Oe===oe.head.data.length?he=oe.shift():he=st?ke(Oe,oe):Re(Oe,oe),he}function ke(Oe,oe){var st=oe.head,he=1,J=st.data;for(Oe-=J.length;st=st.next;){var Y=st.data,$=Oe>Y.length?Y.length:Oe;if($===Y.length?J+=Y:J+=Y.slice(0,Oe),Oe-=$,Oe===0){$===Y.length?(++he,st.next?oe.head=st.next:oe.head=oe.tail=null):(oe.head=st,st.data=Y.slice($));break}++he}return oe.length-=he,J}function Re(Oe,oe){var st=l.allocUnsafe(Oe),he=oe.head,J=1;for(he.data.copy(st),Oe-=he.data.length;he=he.next;){var Y=he.data,$=Oe>Y.length?Y.length:Oe;if(Y.copy(st,st.length-Oe,0,$),Oe-=$,Oe===0){$===Y.length?(++J,he.next?oe.head=he.next:oe.head=oe.tail=null):(oe.head=he,he.data=Y.slice($));break}++J}return oe.length-=J,st}function Qe(Oe){var oe=Oe._readableState;if(oe.length>0)throw new Error('"endReadable()" called on non-empty stream');oe.endEmitted||(oe.ended=!0,u.nextTick(We,oe,Oe))}function We(Oe,oe){!Oe.endEmitted&&Oe.length===0&&(Oe.endEmitted=!0,oe.readable=!1,oe.emit("end"))}function ot(Oe,oe){for(var st=0,he=Oe.length;st<he;st++)if(Oe[st]===oe)return st;return-1}}).call(this,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/BufferList":219,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/get-prototype-of":59,"core-util-is":189,events:192,inherits:196,isarray:198,"process-nextick-args":207,"safe-buffer":228,"string_decoder/":235,util:71}],217:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/create"),p=x(y);function x(i){return i&&i.__esModule?i:{default:i}}D.exports=h;var A=k("./_stream_duplex"),m=(0,p.default)(k("core-util-is"));m.inherits=k("inherits"),m.inherits(h,A);function f(i,t){var o=this._transformState;o.transforming=!1;var e=o.writecb;if(!e)return this.emit("error",new Error("write callback called multiple times"));o.writechunk=null,o.writecb=null,t!=null&&this.push(t),e(i);var l=this._readableState;l.reading=!1,(l.needReadable||l.length<l.highWaterMark)&&this._read(l.highWaterMark)}function h(i){if(!(this instanceof h))return new h(i);A.call(this,i),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,i&&(typeof i.transform=="function"&&(this._transform=i.transform),typeof i.flush=="function"&&(this._flush=i.flush)),this.on("prefinish",u)}function u(){var i=this;typeof this._flush=="function"?this._flush(function(t,o){a(i,t,o)}):a(this,null,null)}h.prototype.push=function(i,t){return this._transformState.needTransform=!1,A.prototype.push.call(this,i,t)},h.prototype._transform=function(i,t,o){throw new Error("_transform() is not implemented")},h.prototype._write=function(i,t,o){var e=this._transformState;if(e.writecb=o,e.writechunk=i,e.writeencoding=t,!e.transforming){var l=this._readableState;(e.needTransform||l.needReadable||l.length<l.highWaterMark)&&this._read(l.highWaterMark)}},h.prototype._read=function(i){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},h.prototype._destroy=function(i,t){var o=this;A.prototype._destroy.call(this,i,function(e){t(e),o.emit("close")})};function a(i,t,o){if(t)return i.emit("error",t);if(o!=null&&i.push(o),i._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(i._transformState.transforming)throw new Error("Calling transform done when still transforming");return i.push(null)}},{"./_stream_duplex":214,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],218:[function(k,D,n){(function(y,p){"use strict";var x=k("babel-runtime/core-js/object/define-property"),A=e(x),m=k("babel-runtime/core-js/symbol/has-instance"),f=e(m),h=k("babel-runtime/core-js/symbol"),u=e(h),a=k("babel-runtime/core-js/object/create"),i=e(a),t=k("babel-runtime/core-js/set-immediate"),o=e(t);function e(Re){return Re&&Re.__esModule?Re:{default:Re}}var l=k("process-nextick-args");D.exports=R;function r(Re,Qe,We){this.chunk=Re,this.encoding=Qe,this.callback=We,this.next=null}function s(Re){var Qe=this;this.next=null,this.entry=null,this.finish=function(){ke(Qe,Re)}}var c=!y.browser&&["v0.10","v0.9."].indexOf(y.version.slice(0,5))>-1?o.default:l.nextTick,d;R.WritableState=O;var g=(0,i.default)(k("core-util-is"));g.inherits=k("inherits");var v={deprecate:k("util-deprecate")},b=k("./internal/streams/stream"),S=k("safe-buffer").Buffer,E=p.Uint8Array||function(){};function C(Re){return S.from(Re)}function _(Re){return S.isBuffer(Re)||Re instanceof E}var T=k("./internal/streams/destroy");g.inherits(R,b);function w(){}function O(Re,Qe){d=d||k("./_stream_duplex"),Re=Re||{};var We=Qe instanceof d;this.objectMode=!!Re.objectMode,We&&(this.objectMode=this.objectMode||!!Re.writableObjectMode);var ot=Re.highWaterMark,Oe=Re.writableHighWaterMark,oe=this.objectMode?16:16*1024;ot||ot===0?this.highWaterMark=ot:We&&(Oe||Oe===0)?this.highWaterMark=Oe:this.highWaterMark=oe,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var st=Re.decodeStrings===!1;this.decodeStrings=!st,this.defaultEncoding=Re.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(he){z(Qe,he)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}O.prototype.getBuffer=function(){for(var Qe=this.bufferedRequest,We=[];Qe;)We.push(Qe),Qe=Qe.next;return We},function(){try{Object.defineProperty(O.prototype,"buffer",{get:v.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Re){}}();var I;typeof u.default=="function"&&f.default&&typeof Function.prototype[f.default]=="function"?(I=Function.prototype[f.default],(0,A.default)(R,f.default,{value:function(Qe){return I.call(this,Qe)?!0:this!==R?!1:Qe&&Qe._writableState instanceof O}})):I=function(Qe){return Qe instanceof this};function R(Re){if(d=d||k("./_stream_duplex"),!I.call(R,this)&&!(this instanceof d))return new R(Re);this._writableState=new O(Re,this),this.writable=!0,Re&&(typeof Re.write=="function"&&(this._write=Re.write),typeof Re.writev=="function"&&(this._writev=Re.writev),typeof Re.destroy=="function"&&(this._destroy=Re.destroy),typeof Re.final=="function"&&(this._final=Re.final)),b.call(this)}R.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function M(Re,Qe){var We=new Error("write after end");Re.emit("error",We),l.nextTick(Qe,We)}function F(Re,Qe,We,ot){var Oe=!0,oe=!1;return We===null?oe=new TypeError("May not write null values to stream"):typeof We!="string"&&We!==void 0&&!Qe.objectMode&&(oe=new TypeError("Invalid non-string/buffer chunk")),oe&&(Re.emit("error",oe),l.nextTick(ot,oe),Oe=!1),Oe}R.prototype.write=function(Re,Qe,We){var ot=this._writableState,Oe=!1,oe=!ot.objectMode&&_(Re);return oe&&!S.isBuffer(Re)&&(Re=C(Re)),typeof Qe=="function"&&(We=Qe,Qe=null),oe?Qe="buffer":Qe||(Qe=ot.defaultEncoding),typeof We!="function"&&(We=w),ot.ended?M(this,We):(oe||F(this,ot,Re,We))&&(ot.pendingcb++,Oe=X(this,ot,oe,Re,Qe,We)),Oe},R.prototype.cork=function(){var Re=this._writableState;Re.corked++},R.prototype.uncork=function(){var Re=this._writableState;Re.corked&&(Re.corked--,!Re.writing&&!Re.corked&&!Re.finished&&!Re.bufferProcessing&&Re.bufferedRequest&&G(this,Re))},R.prototype.setDefaultEncoding=function(Qe){if(typeof Qe=="string"&&(Qe=Qe.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Qe+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Qe);return this._writableState.defaultEncoding=Qe,this};function P(Re,Qe,We){return!Re.objectMode&&Re.decodeStrings!==!1&&typeof Qe=="string"&&(Qe=S.from(Qe,We)),Qe}Object.defineProperty(R.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function X(Re,Qe,We,ot,Oe,oe){if(!We){var st=P(Qe,ot,Oe);ot!==st&&(We=!0,Oe="buffer",ot=st)}var he=Qe.objectMode?1:ot.length;Qe.length+=he;var J=Qe.length<Qe.highWaterMark;if(J||(Qe.needDrain=!0),Qe.writing||Qe.corked){var Y=Qe.lastBufferedRequest;Qe.lastBufferedRequest={chunk:ot,encoding:Oe,isBuf:We,callback:oe,next:null},Y?Y.next=Qe.lastBufferedRequest:Qe.bufferedRequest=Qe.lastBufferedRequest,Qe.bufferedRequestCount+=1}else B(Re,Qe,!1,he,ot,Oe,oe);return J}function B(Re,Qe,We,ot,Oe,oe,st){Qe.writelen=ot,Qe.writecb=st,Qe.writing=!0,Qe.sync=!0,We?Re._writev(Oe,Qe.onwrite):Re._write(Oe,oe,Qe.onwrite),Qe.sync=!1}function j(Re,Qe,We,ot,Oe){--Qe.pendingcb,We?(l.nextTick(Oe,ot),l.nextTick(le,Re,Qe),Re._writableState.errorEmitted=!0,Re.emit("error",ot)):(Oe(ot),Re._writableState.errorEmitted=!0,Re.emit("error",ot),le(Re,Qe))}function W(Re){Re.writing=!1,Re.writecb=null,Re.length-=Re.writelen,Re.writelen=0}function z(Re,Qe){var We=Re._writableState,ot=We.sync,Oe=We.writecb;if(W(We),Qe)j(Re,We,ot,Qe,Oe);else{var oe=ee(We);!oe&&!We.corked&&!We.bufferProcessing&&We.bufferedRequest&&G(Re,We),ot?c(V,Re,We,oe,Oe):V(Re,We,oe,Oe)}}function V(Re,Qe,We,ot){We||Q(Re,Qe),Qe.pendingcb--,ot(),le(Re,Qe)}function Q(Re,Qe){Qe.length===0&&Qe.needDrain&&(Qe.needDrain=!1,Re.emit("drain"))}function G(Re,Qe){Qe.bufferProcessing=!0;var We=Qe.bufferedRequest;if(Re._writev&&We&&We.next){var ot=Qe.bufferedRequestCount,Oe=new Array(ot),oe=Qe.corkedRequestsFree;oe.entry=We;for(var st=0,he=!0;We;)Oe[st]=We,We.isBuf||(he=!1),We=We.next,st+=1;Oe.allBuffers=he,B(Re,Qe,!0,Qe.length,Oe,"",oe.finish),Qe.pendingcb++,Qe.lastBufferedRequest=null,oe.next?(Qe.corkedRequestsFree=oe.next,oe.next=null):Qe.corkedRequestsFree=new s(Qe),Qe.bufferedRequestCount=0}else{for(;We;){var J=We.chunk,Y=We.encoding,$=We.callback,fe=Qe.objectMode?1:J.length;if(B(Re,Qe,!1,fe,J,Y,$),We=We.next,Qe.bufferedRequestCount--,Qe.writing)break}We===null&&(Qe.lastBufferedRequest=null)}Qe.bufferedRequest=We,Qe.bufferProcessing=!1}R.prototype._write=function(Re,Qe,We){We(new Error("_write() is not implemented"))},R.prototype._writev=null,R.prototype.end=function(Re,Qe,We){var ot=this._writableState;typeof Re=="function"?(We=Re,Re=null,Qe=null):typeof Qe=="function"&&(We=Qe,Qe=null),Re!=null&&this.write(Re,Qe),ot.corked&&(ot.corked=1,this.uncork()),!ot.ending&&!ot.finished&&Ie(this,ot,We)};function ee(Re){return Re.ending&&Re.length===0&&Re.bufferedRequest===null&&!Re.finished&&!Re.writing}function ce(Re,Qe){Re._final(function(We){Qe.pendingcb--,We&&Re.emit("error",We),Qe.prefinished=!0,Re.emit("prefinish"),le(Re,Qe)})}function be(Re,Qe){!Qe.prefinished&&!Qe.finalCalled&&(typeof Re._final=="function"?(Qe.pendingcb++,Qe.finalCalled=!0,l.nextTick(ce,Re,Qe)):(Qe.prefinished=!0,Re.emit("prefinish")))}function le(Re,Qe){var We=ee(Qe);return We&&(be(Re,Qe),Qe.pendingcb===0&&(Qe.finished=!0,Re.emit("finish"))),We}function Ie(Re,Qe,We){Qe.ending=!0,le(Re,Qe),We&&(Qe.finished?l.nextTick(We):Re.once("finish",We)),Qe.ended=!0,Re.writable=!1}function ke(Re,Qe,We){var ot=Re.entry;for(Re.entry=null;ot;){var Oe=ot.callback;Qe.pendingcb--,Oe(We),ot=ot.next}Qe.corkedRequestsFree?Qe.corkedRequestsFree.next=Re:Qe.corkedRequestsFree=Re}Object.defineProperty(R.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Qe){if(!this._writableState)return;this._writableState.destroyed=Qe}}),R.prototype.destroy=T.destroy,R.prototype._undestroy=T.undestroy,R.prototype._destroy=function(Re,Qe){this.end(),Qe(Re)}}).call(this,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/set-immediate":62,"babel-runtime/core-js/symbol":64,"babel-runtime/core-js/symbol/has-instance":65,"core-util-is":189,inherits:196,"process-nextick-args":207,"safe-buffer":228,"util-deprecate":240}],219:[function(k,D,n){"use strict";function y(m,f){if(!(m instanceof f))throw new TypeError("Cannot call a class as a function")}var p=k("safe-buffer").Buffer,x=k("util");function A(m,f,h){m.copy(f,h)}D.exports=function(){function m(){y(this,m),this.head=null,this.tail=null,this.length=0}return m.prototype.push=function(h){var u={data:h,next:null};this.length>0?this.tail.next=u:this.head=u,this.tail=u,++this.length},m.prototype.unshift=function(h){var u={data:h,next:this.head};this.length===0&&(this.tail=u),this.head=u,++this.length},m.prototype.shift=function(){if(this.length===0)return;var h=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,h},m.prototype.clear=function(){this.head=this.tail=null,this.length=0},m.prototype.join=function(h){if(this.length===0)return"";for(var u=this.head,a=""+u.data;u=u.next;)a+=h+u.data;return a},m.prototype.concat=function(h){if(this.length===0)return p.alloc(0);if(this.length===1)return this.head.data;for(var u=p.allocUnsafe(h>>>0),a=this.head,i=0;a;)A(a.data,u,i),i+=a.data.length,a=a.next;return u},m}(),x&&x.inspect&&x.inspect.custom&&(D.exports.prototype[x.inspect.custom]=function(){var m=x.inspect({length:this.length});return this.constructor.name+" "+m})},{"safe-buffer":228,util:71}],220:[function(k,D,n){"use strict";var y=k("process-nextick-args");function p(m,f){var h=this,u=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return u||a?(f?f(m):m&&(!this._writableState||!this._writableState.errorEmitted)&&y.nextTick(A,this,m),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(m||null,function(i){!f&&i?(y.nextTick(A,h,i),h._writableState&&(h._writableState.errorEmitted=!0)):f&&f(i)}),this)}function x(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function A(m,f){m.emit("error",f)}D.exports={destroy:p,undestroy:x}},{"process-nextick-args":207}],221:[function(k,D,n){"use strict";D.exports=k("events").EventEmitter},{events:192}],222:[function(k,D,n){D.exports=k("./readable").PassThrough},{"./readable":223}],223:[function(k,D,n){n=D.exports=k("./lib/_stream_readable.js"),n.Stream=n,n.Readable=n,n.Writable=k("./lib/_stream_writable.js"),n.Duplex=k("./lib/_stream_duplex.js"),n.Transform=k("./lib/_stream_transform.js"),n.PassThrough=k("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":214,"./lib/_stream_passthrough.js":215,"./lib/_stream_readable.js":216,"./lib/_stream_transform.js":217,"./lib/_stream_writable.js":218}],224:[function(k,D,n){D.exports=k("./readable").Transform},{"./readable":223}],225:[function(k,D,n){D.exports=k("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(k,D,n){var y=function(){return this}()||Function("return this")(),p=y.regeneratorRuntime&&Object.getOwnPropertyNames(y).indexOf("regeneratorRuntime")>=0,x=p&&y.regeneratorRuntime;if(y.regeneratorRuntime=void 0,D.exports=k("./runtime"),p)y.regeneratorRuntime=x;else try{delete y.regeneratorRuntime}catch(A){y.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(k,D,n){!function(y){"use strict";var p=Object.prototype,x=p.hasOwnProperty,A,m=typeof Symbol=="function"?Symbol:{},f=m.iterator||"@@iterator",h=m.asyncIterator||"@@asyncIterator",u=m.toStringTag||"@@toStringTag",a=typeof D=="object",i=y.regeneratorRuntime;if(i){a&&(D.exports=i);return}i=y.regeneratorRuntime=a?D.exports:{};function t(X,B,j,W){var z=B&&B.prototype instanceof d?B:d,V=Object.create(z.prototype),Q=new M(W||[]);return V._invoke=w(X,j,Q),V}i.wrap=t;function o(X,B,j){try{return{type:"normal",arg:X.call(B,j)}}catch(W){return{type:"throw",arg:W}}}var e="suspendedStart",l="suspendedYield",r="executing",s="completed",c={};function d(){}function g(){}function v(){}var b={};b[f]=function(){return this};var S=Object.getPrototypeOf,E=S&&S(S(F([])));E&&E!==p&&x.call(E,f)&&(b=E);var C=v.prototype=d.prototype=Object.create(b);g.prototype=C.constructor=v,v.constructor=g,v[u]=g.displayName="GeneratorFunction";function _(X){["next","throw","return"].forEach(function(B){X[B]=function(j){return this._invoke(B,j)}})}i.isGeneratorFunction=function(X){var B=typeof X=="function"&&X.constructor;return B?B===g||(B.displayName||B.name)==="GeneratorFunction":!1},i.mark=function(X){return Object.setPrototypeOf?Object.setPrototypeOf(X,v):(X.__proto__=v,u in X||(X[u]="GeneratorFunction")),X.prototype=Object.create(C),X},i.awrap=function(X){return{__await:X}};function T(X){function B(z,V,Q,G){var ee=o(X[z],X,V);if(ee.type==="throw")G(ee.arg);else{var ce=ee.arg,be=ce.value;return be&&typeof be=="object"&&x.call(be,"__await")?Promise.resolve(be.__await).then(function(le){B("next",le,Q,G)},function(le){B("throw",le,Q,G)}):Promise.resolve(be).then(function(le){ce.value=le,Q(ce)},G)}}var j;function W(z,V){function Q(){return new Promise(function(G,ee){B(z,V,G,ee)})}return j=j?j.then(Q,Q):Q()}this._invoke=W}_(T.prototype),T.prototype[h]=function(){return this},i.AsyncIterator=T,i.async=function(X,B,j,W){var z=new T(t(X,B,j,W));return i.isGeneratorFunction(B)?z:z.next().then(function(V){return V.done?V.value:z.next()})};function w(X,B,j){var W=e;return function(V,Q){if(W===r)throw new Error("Generator is already running");if(W===s){if(V==="throw")throw Q;return P()}for(j.method=V,j.arg=Q;;){var G=j.delegate;if(G){var ee=O(G,j);if(ee){if(ee===c)continue;return ee}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(W===e)throw W=s,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);W=r;var ce=o(X,B,j);if(ce.type==="normal"){if(W=j.done?s:l,ce.arg===c)continue;return{value:ce.arg,done:j.done}}else ce.type==="throw"&&(W=s,j.method="throw",j.arg=ce.arg)}}}function O(X,B){var j=X.iterator[B.method];if(j===A){if(B.delegate=null,B.method==="throw"){if(X.iterator.return&&(B.method="return",B.arg=A,O(X,B),B.method==="throw"))return c;B.method="throw",B.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var W=o(j,X.iterator,B.arg);if(W.type==="throw")return B.method="throw",B.arg=W.arg,B.delegate=null,c;var z=W.arg;if(!z)return B.method="throw",B.arg=new TypeError("iterator result is not an object"),B.delegate=null,c;if(z.done)B[X.resultName]=z.value,B.next=X.nextLoc,B.method!=="return"&&(B.method="next",B.arg=A);else return z;return B.delegate=null,c}_(C),C[u]="Generator",C[f]=function(){return this},C.toString=function(){return"[object Generator]"};function I(X){var B={tryLoc:X[0]};1 in X&&(B.catchLoc=X[1]),2 in X&&(B.finallyLoc=X[2],B.afterLoc=X[3]),this.tryEntries.push(B)}function R(X){var B=X.completion||{};B.type="normal",delete B.arg,X.completion=B}function M(X){this.tryEntries=[{tryLoc:"root"}],X.forEach(I,this),this.reset(!0)}i.keys=function(X){var B=[];for(var j in X)B.push(j);return B.reverse(),function W(){for(;B.length;){var z=B.pop();if(z in X)return W.value=z,W.done=!1,W}return W.done=!0,W}};function F(X){if(X){var B=X[f];if(B)return B.call(X);if(typeof X.next=="function")return X;if(!isNaN(X.length)){var j=-1,W=function z(){for(;++j<X.length;)if(x.call(X,j))return z.value=X[j],z.done=!1,z;return z.value=A,z.done=!0,z};return W.next=W}}return{next:P}}i.values=F;function P(){return{value:A,done:!0}}M.prototype={constructor:M,reset:function(B){if(this.prev=0,this.next=0,this.sent=this._sent=A,this.done=!1,this.delegate=null,this.method="next",this.arg=A,this.tryEntries.forEach(R),!B)for(var j in this)j.charAt(0)==="t"&&x.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=A)},stop:function(){this.done=!0;var B=this.tryEntries[0],j=B.completion;if(j.type==="throw")throw j.arg;return this.rval},dispatchException:function(B){if(this.done)throw B;var j=this;function W(ce,be){return Q.type="throw",Q.arg=B,j.next=ce,be&&(j.method="next",j.arg=A),!!be}for(var z=this.tryEntries.length-1;z>=0;--z){var V=this.tryEntries[z],Q=V.completion;if(V.tryLoc==="root")return W("end");if(V.tryLoc<=this.prev){var G=x.call(V,"catchLoc"),ee=x.call(V,"finallyLoc");if(G&&ee){if(this.prev<V.catchLoc)return W(V.catchLoc,!0);if(this.prev<V.finallyLoc)return W(V.finallyLoc)}else if(G){if(this.prev<V.catchLoc)return W(V.catchLoc,!0)}else if(ee){if(this.prev<V.finallyLoc)return W(V.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(B,j){for(var W=this.tryEntries.length-1;W>=0;--W){var z=this.tryEntries[W];if(z.tryLoc<=this.prev&&x.call(z,"finallyLoc")&&this.prev<z.finallyLoc){var V=z;break}}V&&(B==="break"||B==="continue")&&V.tryLoc<=j&&j<=V.finallyLoc&&(V=null);var Q=V?V.completion:{};return Q.type=B,Q.arg=j,V?(this.method="next",this.next=V.finallyLoc,c):this.complete(Q)},complete:function(B,j){if(B.type==="throw")throw B.arg;return B.type==="break"||B.type==="continue"?this.next=B.arg:B.type==="return"?(this.rval=this.arg=B.arg,this.method="return",this.next="end"):B.type==="normal"&&j&&(this.next=j),c},finish:function(B){for(var j=this.tryEntries.length-1;j>=0;--j){var W=this.tryEntries[j];if(W.finallyLoc===B)return this.complete(W.completion,W.afterLoc),R(W),c}},catch:function(B){for(var j=this.tryEntries.length-1;j>=0;--j){var W=this.tryEntries[j];if(W.tryLoc===B){var z=W.completion;if(z.type==="throw"){var V=z.arg;R(W)}return V}}throw new Error("illegal catch attempt")},delegateYield:function(B,j,W){return this.delegate={iterator:F(B),resultName:j,nextLoc:W},this.method==="next"&&(this.arg=A),c}}}(function(){return this}()||Function("return this")())},{}],228:[function(k,D,n){var y=k("buffer"),p=y.Buffer;function x(m,f){for(var h in m)f[h]=m[h]}p.from&&p.alloc&&p.allocUnsafe&&p.allocUnsafeSlow?D.exports=y:(x(y,n),n.Buffer=A);function A(m,f,h){return p(m,f,h)}x(p,A),A.from=function(m,f,h){if(typeof m=="number")throw new TypeError("Argument must not be a number");return p(m,f,h)},A.alloc=function(m,f,h){if(typeof m!="number")throw new TypeError("Argument must be a number");var u=p(m);return f!==void 0?typeof h=="string"?u.fill(f,h):u.fill(f):u.fill(0),u},A.allocUnsafe=function(m){if(typeof m!="number")throw new TypeError("Argument must be a number");return p(m)},A.allocUnsafeSlow=function(m){if(typeof m!="number")throw new TypeError("Argument must be a number");return y.SlowBuffer(m)}},{buffer:73}],229:[function(k,D,n){(function(y){"use strict";var p=k("babel-runtime/core-js/string/from-code-point"),x=l(p),A=k("babel-runtime/core-js/json/stringify"),m=l(A),f=k("babel-runtime/helpers/typeof"),h=l(f),u=k("babel-runtime/core-js/object/define-property"),a=l(u),i=k("babel-runtime/core-js/object/keys"),t=l(i),o=k("babel-runtime/core-js/object/create"),e=l(o);function l(r){return r&&r.__esModule?r:{default:r}}(function(r){r.parser=function(Y,$){return new c(Y,$)},r.SAXParser=c,r.SAXStream=C,r.createStream=E,r.MAX_BUFFER_LENGTH=64*1024;var s=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];r.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function c(Y,$){if(!(this instanceof c))return new c(Y,$);var fe=this;g(fe),fe.q=fe.c="",fe.bufferCheckPosition=r.MAX_BUFFER_LENGTH,fe.opt=$||{},fe.opt.lowercase=fe.opt.lowercase||fe.opt.lowercasetags,fe.looseCase=fe.opt.lowercase?"toLowerCase":"toUpperCase",fe.tags=[],fe.closed=fe.closedRoot=fe.sawRoot=!1,fe.tag=fe.error=null,fe.strict=!!Y,fe.noscript=!!(Y||fe.opt.noscript),fe.state=V.BEGIN,fe.strictEntities=fe.opt.strictEntities,fe.ENTITIES=fe.strictEntities?(0,e.default)(r.XML_ENTITIES):(0,e.default)(r.ENTITIES),fe.attribList=[],fe.opt.xmlns&&(fe.ns=(0,e.default)(I)),fe.trackPosition=fe.opt.position!==!1,fe.trackPosition&&(fe.position=fe.line=fe.column=0),G(fe,"onready")}e.default||(Object.create=function(Y){function $(){}$.prototype=Y;var fe=new $;return fe}),t.default||(Object.keys=function(Y){var $=[];for(var fe in Y)Y.hasOwnProperty(fe)&&$.push(fe);return $});function d(Y){for(var $=Math.max(r.MAX_BUFFER_LENGTH,10),fe=0,we=0,Ne=s.length;we<Ne;we++){var Ee=Y[s[we]].length;if(Ee>$)switch(s[we]){case"textNode":ce(Y);break;case"cdata":ee(Y,"oncdata",Y.cdata),Y.cdata="";break;case"script":ee(Y,"onscript",Y.script),Y.script="";break;default:le(Y,"Max buffer length exceeded: "+s[we])}fe=Math.max(fe,Ee)}var de=r.MAX_BUFFER_LENGTH-fe;Y.bufferCheckPosition=de+Y.position}function g(Y){for(var $=0,fe=s.length;$<fe;$++)Y[s[$]]=""}function v(Y){ce(Y),Y.cdata!==""&&(ee(Y,"oncdata",Y.cdata),Y.cdata=""),Y.script!==""&&(ee(Y,"onscript",Y.script),Y.script="")}c.prototype={end:function(){Ie(this)},write:J,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){v(this)}};var b;try{b=k("stream").Stream}catch(Y){b=function(){}}var S=r.EVENTS.filter(function(Y){return Y!=="error"&&Y!=="end"});function E(Y,$){return new C(Y,$)}function C(Y,$){if(!(this instanceof C))return new C(Y,$);b.apply(this),this._parser=new c(Y,$),this.writable=!0,this.readable=!0;var fe=this;this._parser.onend=function(){fe.emit("end")},this._parser.onerror=function(we){fe.emit("error",we),fe._parser.error=null},this._decoder=null,S.forEach(function(we){(0,a.default)(fe,"on"+we,{get:function(){return fe._parser["on"+we]},set:function(Ee){if(!Ee)return fe.removeAllListeners(we),fe._parser["on"+we]=Ee,Ee;fe.on(we,Ee)},enumerable:!0,configurable:!1})})}C.prototype=(0,e.default)(b.prototype,{constructor:{value:C}}),C.prototype.write=function(Y){if(typeof y=="function"&&typeof y.isBuffer=="function"&&y.isBuffer(Y)){if(!this._decoder){var $=k("string_decoder").StringDecoder;this._decoder=new $("utf8")}Y=this._decoder.write(Y)}return this._parser.write(Y.toString()),this.emit("data",Y),!0},C.prototype.end=function(Y){return Y&&Y.length&&this.write(Y),this._parser.end(),!0},C.prototype.on=function(Y,$){var fe=this;return!fe._parser["on"+Y]&&S.indexOf(Y)!==-1&&(fe._parser["on"+Y]=function(){var we=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);we.splice(0,0,Y),fe.emit.apply(fe,we)}),b.prototype.on.call(fe,Y,$)};var _="[CDATA[",T="DOCTYPE",w="http://www.w3.org/XML/1998/namespace",O="http://www.w3.org/2000/xmlns/",I={xml:w,xmlns:O},R=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,M=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,F=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,P=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function X(Y){return Y===" "||Y===`
|
|
|
`||Y==="\r"||Y===" "}function B(Y){return Y==='"'||Y==="'"}function j(Y){return Y===">"||X(Y)}function W(Y,$){return Y.test($)}function z(Y,$){return!W(Y,$)}var V=0;r.STATE={BEGIN:V++,BEGIN_WHITESPACE:V++,TEXT:V++,TEXT_ENTITY:V++,OPEN_WAKA:V++,SGML_DECL:V++,SGML_DECL_QUOTED:V++,DOCTYPE:V++,DOCTYPE_QUOTED:V++,DOCTYPE_DTD:V++,DOCTYPE_DTD_QUOTED:V++,COMMENT_STARTING:V++,COMMENT:V++,COMMENT_ENDING:V++,COMMENT_ENDED:V++,CDATA:V++,CDATA_ENDING:V++,CDATA_ENDING_2:V++,PROC_INST:V++,PROC_INST_BODY:V++,PROC_INST_ENDING:V++,OPEN_TAG:V++,OPEN_TAG_SLASH:V++,ATTRIB:V++,ATTRIB_NAME:V++,ATTRIB_NAME_SAW_WHITE:V++,ATTRIB_VALUE:V++,ATTRIB_VALUE_QUOTED:V++,ATTRIB_VALUE_CLOSED:V++,ATTRIB_VALUE_UNQUOTED:V++,ATTRIB_VALUE_ENTITY_Q:V++,ATTRIB_VALUE_ENTITY_U:V++,CLOSE_TAG:V++,CLOSE_TAG_SAW_WHITE:V++,SCRIPT:V++,SCRIPT_ENDING:V++},r.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},r.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,t.default)(r.ENTITIES).forEach(function(Y){var $=r.ENTITIES[Y],fe=typeof $=="number"?String.fromCharCode($):$;r.ENTITIES[Y]=fe});for(var Q in r.STATE)r.STATE[r.STATE[Q]]=Q;V=r.STATE;function G(Y,$,fe){Y[$]&&Y[$](fe)}function ee(Y,$,fe){Y.textNode&&ce(Y),G(Y,$,fe)}function ce(Y){Y.textNode=be(Y.opt,Y.textNode),Y.textNode&&G(Y,"ontext",Y.textNode),Y.textNode=""}function be(Y,$){return Y.trim&&($=$.trim()),Y.normalize&&($=$.replace(/\s+/g," ")),$}function le(Y,$){return ce(Y),Y.trackPosition&&($+=`
|
|
|
Line: `+Y.line+`
|
|
|
Column: `+Y.column+`
|
|
|
Char: `+Y.c),$=new Error($),Y.error=$,G(Y,"onerror",$),Y}function Ie(Y){return Y.sawRoot&&!Y.closedRoot&&ke(Y,"Unclosed root tag"),Y.state!==V.BEGIN&&Y.state!==V.BEGIN_WHITESPACE&&Y.state!==V.TEXT&&le(Y,"Unexpected end"),ce(Y),Y.c="",Y.closed=!0,G(Y,"onend"),c.call(Y,Y.strict,Y.opt),Y}function ke(Y,$){if((typeof Y=="undefined"?"undefined":(0,h.default)(Y))!=="object"||!(Y instanceof c))throw new Error("bad call to strictFail");Y.strict&&le(Y,$)}function Re(Y){Y.strict||(Y.tagName=Y.tagName[Y.looseCase]());var $=Y.tags[Y.tags.length-1]||Y,fe=Y.tag={name:Y.tagName,attributes:{}};Y.opt.xmlns&&(fe.ns=$.ns),Y.attribList.length=0,ee(Y,"onopentagstart",fe)}function Qe(Y,$){var fe=Y.indexOf(":"),we=fe<0?["",Y]:Y.split(":"),Ne=we[0],Ee=we[1];return $&&Y==="xmlns"&&(Ne="xmlns",Ee=""),{prefix:Ne,local:Ee}}function We(Y){if(Y.strict||(Y.attribName=Y.attribName[Y.looseCase]()),Y.attribList.indexOf(Y.attribName)!==-1||Y.tag.attributes.hasOwnProperty(Y.attribName)){Y.attribName=Y.attribValue="";return}if(Y.opt.xmlns){var $=Qe(Y.attribName,!0),fe=$.prefix,we=$.local;if(fe==="xmlns")if(we==="xml"&&Y.attribValue!==w)ke(Y,"xml: prefix must be bound to "+w+`
|
|
|
Actual: `+Y.attribValue);else if(we==="xmlns"&&Y.attribValue!==O)ke(Y,"xmlns: prefix must be bound to "+O+`
|
|
|
Actual: `+Y.attribValue);else{var Ne=Y.tag,Ee=Y.tags[Y.tags.length-1]||Y;Ne.ns===Ee.ns&&(Ne.ns=(0,e.default)(Ee.ns)),Ne.ns[we]=Y.attribValue}Y.attribList.push([Y.attribName,Y.attribValue])}else Y.tag.attributes[Y.attribName]=Y.attribValue,ee(Y,"onattribute",{name:Y.attribName,value:Y.attribValue});Y.attribName=Y.attribValue=""}function ot(Y,$){if(Y.opt.xmlns){var fe=Y.tag,we=Qe(Y.tagName);fe.prefix=we.prefix,fe.local=we.local,fe.uri=fe.ns[we.prefix]||"",fe.prefix&&!fe.uri&&(ke(Y,"Unbound namespace prefix: "+(0,m.default)(Y.tagName)),fe.uri=we.prefix);var Ne=Y.tags[Y.tags.length-1]||Y;fe.ns&&Ne.ns!==fe.ns&&(0,t.default)(fe.ns).forEach(function(Gt){ee(Y,"onopennamespace",{prefix:Gt,uri:fe.ns[Gt]})});for(var Ee=0,de=Y.attribList.length;Ee<de;Ee++){var me=Y.attribList[Ee],Le=me[0],tt=me[1],At=Qe(Le,!0),ht=At.prefix,Ke=At.local,Jt=ht===""?"":fe.ns[ht]||"",ct={name:Le,value:tt,prefix:ht,local:Ke,uri:Jt};ht&&ht!=="xmlns"&&!Jt&&(ke(Y,"Unbound namespace prefix: "+(0,m.default)(ht)),ct.uri=ht),Y.tag.attributes[Le]=ct,ee(Y,"onattribute",ct)}Y.attribList.length=0}Y.tag.isSelfClosing=!!$,Y.sawRoot=!0,Y.tags.push(Y.tag),ee(Y,"onopentag",Y.tag),$||(!Y.noscript&&Y.tagName.toLowerCase()==="script"?Y.state=V.SCRIPT:Y.state=V.TEXT,Y.tag=null,Y.tagName=""),Y.attribName=Y.attribValue="",Y.attribList.length=0}function Oe(Y){if(!Y.tagName){ke(Y,"Weird empty close tag."),Y.textNode+="</>",Y.state=V.TEXT;return}if(Y.script){if(Y.tagName!=="script"){Y.script+="</"+Y.tagName+">",Y.tagName="",Y.state=V.SCRIPT;return}ee(Y,"onscript",Y.script),Y.script=""}var $=Y.tags.length,fe=Y.tagName;Y.strict||(fe=fe[Y.looseCase]());for(var we=fe;$--;){var Ne=Y.tags[$];if(Ne.name!==we)ke(Y,"Unexpected close tag");else break}if($<0){ke(Y,"Unmatched closing tag: "+Y.tagName),Y.textNode+="</"+Y.tagName+">",Y.state=V.TEXT;return}Y.tagName=fe;for(var Ee=Y.tags.length;Ee-- >$;){var de=Y.tag=Y.tags.pop();Y.tagName=Y.tag.name,ee(Y,"onclosetag",Y.tagName);var me={};for(var Le in de.ns)me[Le]=de.ns[Le];var tt=Y.tags[Y.tags.length-1]||Y;Y.opt.xmlns&&de.ns!==tt.ns&&(0,t.default)(de.ns).forEach(function(At){var ht=de.ns[At];ee(Y,"onclosenamespace",{prefix:At,uri:ht})})}$===0&&(Y.closedRoot=!0),Y.tagName=Y.attribValue=Y.attribName="",Y.attribList.length=0,Y.state=V.TEXT}function oe(Y){var $=Y.entity,fe=$.toLowerCase(),we,Ne="";return Y.ENTITIES[$]?Y.ENTITIES[$]:Y.ENTITIES[fe]?Y.ENTITIES[fe]:($=fe,$.charAt(0)==="#"&&($.charAt(1)==="x"?($=$.slice(2),we=parseInt($,16),Ne=we.toString(16)):($=$.slice(1),we=parseInt($,10),Ne=we.toString(10))),$=$.replace(/^0+/,""),isNaN(we)||Ne.toLowerCase()!==$?(ke(Y,"Invalid character entity"),"&"+Y.entity+";"):(0,x.default)(we))}function st(Y,$){$==="<"?(Y.state=V.OPEN_WAKA,Y.startTagPosition=Y.position):X($)||(ke(Y,"Non-whitespace before first tag."),Y.textNode=$,Y.state=V.TEXT)}function he(Y,$){var fe="";return $<Y.length&&(fe=Y.charAt($)),fe}function J(Y){var $=this;if(this.error)throw this.error;if($.closed)return le($,"Cannot write after close. Assign an onready handler.");if(Y===null)return Ie($);(typeof Y=="undefined"?"undefined":(0,h.default)(Y))==="object"&&(Y=Y.toString());for(var fe=0,we="";!(we=he(Y,fe++),$.c=we,!we);){$.trackPosition&&($.position++,we===`
|
|
|
`?($.line++,$.column=0):$.column++);switch($.state){case V.BEGIN:if($.state=V.BEGIN_WHITESPACE,we==="\uFEFF")continue;st($,we);continue;case V.BEGIN_WHITESPACE:st($,we);continue;case V.TEXT:if($.sawRoot&&!$.closedRoot){for(var Ne=fe-1;we&&we!=="<"&&we!=="&";)we=he(Y,fe++),we&&$.trackPosition&&($.position++,we===`
|
|
|
`?($.line++,$.column=0):$.column++);$.textNode+=Y.substring(Ne,fe-1)}we==="<"&&!($.sawRoot&&$.closedRoot&&!$.strict)?($.state=V.OPEN_WAKA,$.startTagPosition=$.position):(!X(we)&&(!$.sawRoot||$.closedRoot)&&ke($,"Text data outside of root node."),we==="&"?$.state=V.TEXT_ENTITY:$.textNode+=we);continue;case V.SCRIPT:we==="<"?$.state=V.SCRIPT_ENDING:$.script+=we;continue;case V.SCRIPT_ENDING:we==="/"?$.state=V.CLOSE_TAG:($.script+="<"+we,$.state=V.SCRIPT);continue;case V.OPEN_WAKA:if(we==="!")$.state=V.SGML_DECL,$.sgmlDecl="";else if(!X(we))if(W(R,we))$.state=V.OPEN_TAG,$.tagName=we;else if(we==="/")$.state=V.CLOSE_TAG,$.tagName="";else if(we==="?")$.state=V.PROC_INST,$.procInstName=$.procInstBody="";else{if(ke($,"Unencoded <"),$.startTagPosition+1<$.position){var Ee=$.position-$.startTagPosition;we=new Array(Ee).join(" ")+we}$.textNode+="<"+we,$.state=V.TEXT}continue;case V.SGML_DECL:($.sgmlDecl+we).toUpperCase()===_?(ee($,"onopencdata"),$.state=V.CDATA,$.sgmlDecl="",$.cdata=""):$.sgmlDecl+we==="--"?($.state=V.COMMENT,$.comment="",$.sgmlDecl=""):($.sgmlDecl+we).toUpperCase()===T?($.state=V.DOCTYPE,($.doctype||$.sawRoot)&&ke($,"Inappropriately located doctype declaration"),$.doctype="",$.sgmlDecl=""):we===">"?(ee($,"onsgmldeclaration",$.sgmlDecl),$.sgmlDecl="",$.state=V.TEXT):(B(we)&&($.state=V.SGML_DECL_QUOTED),$.sgmlDecl+=we);continue;case V.SGML_DECL_QUOTED:we===$.q&&($.state=V.SGML_DECL,$.q=""),$.sgmlDecl+=we;continue;case V.DOCTYPE:we===">"?($.state=V.TEXT,ee($,"ondoctype",$.doctype),$.doctype=!0):($.doctype+=we,we==="["?$.state=V.DOCTYPE_DTD:B(we)&&($.state=V.DOCTYPE_QUOTED,$.q=we));continue;case V.DOCTYPE_QUOTED:$.doctype+=we,we===$.q&&($.q="",$.state=V.DOCTYPE);continue;case V.DOCTYPE_DTD:$.doctype+=we,we==="]"?$.state=V.DOCTYPE:B(we)&&($.state=V.DOCTYPE_DTD_QUOTED,$.q=we);continue;case V.DOCTYPE_DTD_QUOTED:$.doctype+=we,we===$.q&&($.state=V.DOCTYPE_DTD,$.q="");continue;case V.COMMENT:we==="-"?$.state=V.COMMENT_ENDING:$.comment+=we;continue;case V.COMMENT_ENDING:we==="-"?($.state=V.COMMENT_ENDED,$.comment=be($.opt,$.comment),$.comment&&ee($,"oncomment",$.comment),$.comment=""):($.comment+="-"+we,$.state=V.COMMENT);continue;case V.COMMENT_ENDED:we!==">"?(ke($,"Malformed comment"),$.comment+="--"+we,$.state=V.COMMENT):$.state=V.TEXT;continue;case V.CDATA:we==="]"?$.state=V.CDATA_ENDING:$.cdata+=we;continue;case V.CDATA_ENDING:we==="]"?$.state=V.CDATA_ENDING_2:($.cdata+="]"+we,$.state=V.CDATA);continue;case V.CDATA_ENDING_2:we===">"?($.cdata&&ee($,"oncdata",$.cdata),ee($,"onclosecdata"),$.cdata="",$.state=V.TEXT):we==="]"?$.cdata+="]":($.cdata+="]]"+we,$.state=V.CDATA);continue;case V.PROC_INST:we==="?"?$.state=V.PROC_INST_ENDING:X(we)?$.state=V.PROC_INST_BODY:$.procInstName+=we;continue;case V.PROC_INST_BODY:if(!$.procInstBody&&X(we))continue;we==="?"?$.state=V.PROC_INST_ENDING:$.procInstBody+=we;continue;case V.PROC_INST_ENDING:we===">"?(ee($,"onprocessinginstruction",{name:$.procInstName,body:$.procInstBody}),$.procInstName=$.procInstBody="",$.state=V.TEXT):($.procInstBody+="?"+we,$.state=V.PROC_INST_BODY);continue;case V.OPEN_TAG:W(M,we)?$.tagName+=we:(Re($),we===">"?ot($):we==="/"?$.state=V.OPEN_TAG_SLASH:(X(we)||ke($,"Invalid character in tag name"),$.state=V.ATTRIB));continue;case V.OPEN_TAG_SLASH:we===">"?(ot($,!0),Oe($)):(ke($,"Forward-slash in opening tag not followed by >"),$.state=V.ATTRIB);continue;case V.ATTRIB:if(X(we))continue;we===">"?ot($):we==="/"?$.state=V.OPEN_TAG_SLASH:W(R,we)?($.attribName=we,$.attribValue="",$.state=V.ATTRIB_NAME):ke($,"Invalid attribute name");continue;case V.ATTRIB_NAME:we==="="?$.state=V.ATTRIB_VALUE:we===">"?(ke($,"Attribute without value"),$.attribValue=$.attribName,We($),ot($)):X(we)?$.state=V.ATTRIB_NAME_SAW_WHITE:W(M,we)?$.attribName+=we:ke($,"Invalid attribute name");continue;case V.ATTRIB_NAME_SAW_WHITE:if(we==="=")$.state=V.ATTRIB_VALUE;else{if(X(we))continue;ke($,"Attribute without value"),$.tag.attributes[$.attribName]="",$.attribValue="",ee($,"onattribute",{name:$.attribName,value:""}),$.attribName="",we===">"?ot($):W(R,we)?($.attribName=we,$.state=V.ATTRIB_NAME):(ke($,"Invalid attribute name"),$.state=V.ATTRIB)}continue;case V.ATTRIB_VALUE:if(X(we))continue;B(we)?($.q=we,$.state=V.ATTRIB_VALUE_QUOTED):(ke($,"Unquoted attribute value"),$.state=V.ATTRIB_VALUE_UNQUOTED,$.attribValue=we);continue;case V.ATTRIB_VALUE_QUOTED:if(we!==$.q){we==="&"?$.state=V.ATTRIB_VALUE_ENTITY_Q:$.attribValue+=we;continue}We($),$.q="",$.state=V.ATTRIB_VALUE_CLOSED;continue;case V.ATTRIB_VALUE_CLOSED:X(we)?$.state=V.ATTRIB:we===">"?ot($):we==="/"?$.state=V.OPEN_TAG_SLASH:W(R,we)?(ke($,"No whitespace between attributes"),$.attribName=we,$.attribValue="",$.state=V.ATTRIB_NAME):ke($,"Invalid attribute name");continue;case V.ATTRIB_VALUE_UNQUOTED:if(!j(we)){we==="&"?$.state=V.ATTRIB_VALUE_ENTITY_U:$.attribValue+=we;continue}We($),we===">"?ot($):$.state=V.ATTRIB;continue;case V.CLOSE_TAG:if($.tagName)we===">"?Oe($):W(M,we)?$.tagName+=we:$.script?($.script+="</"+$.tagName,$.tagName="",$.state=V.SCRIPT):(X(we)||ke($,"Invalid tagname in closing tag"),$.state=V.CLOSE_TAG_SAW_WHITE);else{if(X(we))continue;z(R,we)?$.script?($.script+="</"+we,$.state=V.SCRIPT):ke($,"Invalid tagname in closing tag."):$.tagName=we}continue;case V.CLOSE_TAG_SAW_WHITE:if(X(we))continue;we===">"?Oe($):ke($,"Invalid characters in closing tag");continue;case V.TEXT_ENTITY:case V.ATTRIB_VALUE_ENTITY_Q:case V.ATTRIB_VALUE_ENTITY_U:var de,me;switch($.state){case V.TEXT_ENTITY:de=V.TEXT,me="textNode";break;case V.ATTRIB_VALUE_ENTITY_Q:de=V.ATTRIB_VALUE_QUOTED,me="attribValue";break;case V.ATTRIB_VALUE_ENTITY_U:de=V.ATTRIB_VALUE_UNQUOTED,me="attribValue";break}we===";"?($[me]+=oe($),$.entity="",$.state=de):W($.entity.length?P:F,we)?$.entity+=we:(ke($,"Invalid character in entity name"),$[me]+="&"+$.entity+we,$.entity="",$.state=de);continue;default:throw new Error($,"Unknown state: "+$.state)}}return $.position>=$.bufferCheckPosition&&d($),$}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */x.default||function(){var Y=String.fromCharCode,$=Math.floor,fe=function(){var Ne=16384,Ee=[],de,me,Le=-1,tt=arguments.length;if(!tt)return"";for(var At="";++Le<tt;){var ht=Number(arguments[Le]);if(!isFinite(ht)||ht<0||ht>1114111||$(ht)!==ht)throw RangeError("Invalid code point: "+ht);ht<=65535?Ee.push(ht):(ht-=65536,de=(ht>>10)+55296,me=ht%1024+56320,Ee.push(de,me)),(Le+1===tt||Ee.length>Ne)&&(At+=Y.apply(null,Ee),Ee.length=0)}return At};a.default?Object.defineProperty(String,"fromCodePoint",{value:fe,configurable:!0,writable:!0}):String.fromCodePoint=fe}()})(typeof n=="undefined"?(void 0).sax={}:n)}).call(this,k("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/string/from-code-point":63,"babel-runtime/helpers/typeof":67,buffer:73,stream:230,string_decoder:72}],230:[function(k,D,n){D.exports=x;var y=k("events").EventEmitter,p=k("inherits");p(x,y),x.Readable=k("readable-stream/readable.js"),x.Writable=k("readable-stream/writable.js"),x.Duplex=k("readable-stream/duplex.js"),x.Transform=k("readable-stream/transform.js"),x.PassThrough=k("readable-stream/passthrough.js"),x.Stream=x;function x(){y.call(this)}x.prototype.pipe=function(A,m){var f=this;function h(l){A.writable&&(A.write(l)===!1&&f.pause&&f.pause())}f.on("data",h);function u(){f.readable&&f.resume&&f.resume()}A.on("drain",u),!A._isStdio&&(!m||m.end!==!1)&&(f.on("end",i),f.on("close",t));var a=!1;function i(){if(a)return;a=!0,A.end()}function t(){if(a)return;a=!0,typeof A.destroy=="function"&&A.destroy()}function o(l){if(e(),y.listenerCount(this,"error")===0)throw l}f.on("error",o),A.on("error",o);function e(){f.removeListener("data",h),A.removeListener("drain",u),f.removeListener("end",i),f.removeListener("close",t),f.removeListener("error",o),A.removeListener("error",o),f.removeListener("end",e),f.removeListener("close",e),A.removeListener("close",e)}return f.on("end",e),f.on("close",e),A.on("close",e),A.emit("pipe",f),A}},{events:192,inherits:196,"readable-stream/duplex.js":213,"readable-stream/passthrough.js":222,"readable-stream/readable.js":223,"readable-stream/transform.js":224,"readable-stream/writable.js":225}],231:[function(k,D,n){(function(y){var p=k("./lib/request"),x=k("./lib/response"),A=k("xtend"),m=k("builtin-status-codes"),f=k("url"),h=n;h.request=function(u,a){typeof u=="string"?u=f.parse(u):u=A(u);var i=y.location.protocol.search(/^https?:$/)===-1?"http:":"",t=u.protocol||i,o=u.hostname||u.host,e=u.port,l=u.path||"/";o&&o.indexOf(":")!==-1&&(o="["+o+"]"),u.url=(o?t+"//"+o:"")+(e?":"+e:"")+l,u.method=(u.method||"GET").toUpperCase(),u.headers=u.headers||{};var r=new p(u);return a&&r.on("response",a),r},h.get=function(a,i){var t=h.request(a,i);return t.end(),t},h.ClientRequest=p,h.IncomingMessage=x.IncomingMessage,h.Agent=function(){},h.Agent.defaultMaxSockets=4,h.globalAgent=new h.Agent,h.STATUS_CODES=m,h.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":233,"./lib/response":234,"builtin-status-codes":74,url:238,xtend:283}],232:[function(k,D,n){(function(y){"use strict";n.fetch=h(y.fetch)&&h(y.ReadableStream),n.writableStream=h(y.WritableStream),n.abortController=h(y.AbortController),n.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),n.blobConstructor=!0}catch(u){}var p;function x(){if(p!==void 0)return p;if(y.XMLHttpRequest){p=new y.XMLHttpRequest;try{p.open("GET",y.XDomainRequest?"/":"https://example.com")}catch(u){p=null}}else p=null;return p}function A(u){var a=x();if(!a)return!1;try{return a.responseType=u,a.responseType===u}catch(i){}return!1}var m=typeof y.ArrayBuffer!="undefined",f=m&&h(y.ArrayBuffer.prototype.slice);n.arraybuffer=n.fetch||m&&A("arraybuffer"),n.msstream=!n.fetch&&f&&A("ms-stream"),n.mozchunkedarraybuffer=!n.fetch&&m&&A("moz-chunked-arraybuffer"),n.overrideMimeType=n.fetch||(x()?h(x().overrideMimeType):!1),n.vbArray=h(y.VBArray);function h(u){return typeof u=="function"}p=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(k,D,n){(function(y,p,x){"use strict";var A=k("babel-runtime/core-js/object/keys"),m=f(A);function f(d){return d&&d.__esModule?d:{default:d}}var h=k("./capability"),u=k("inherits"),a=k("./response"),i=k("readable-stream"),t=k("to-arraybuffer"),o=a.IncomingMessage,e=a.readyStates;function l(d,g){return h.fetch&&g?"fetch":h.mozchunkedarraybuffer?"moz-chunked-arraybuffer":h.msstream?"ms-stream":h.arraybuffer&&d?"arraybuffer":h.vbArray&&d?"text:vbarray":"text"}var r=D.exports=function(d){var g=this;i.Writable.call(g),g._opts=d,g._body=[],g._headers={},d.auth&&g.setHeader("Authorization","Basic "+new x(d.auth).toString("base64")),(0,m.default)(d.headers).forEach(function(S){g.setHeader(S,d.headers[S])});var v,b=!0;if(d.mode==="disable-fetch"||"requestTimeout"in d&&!h.abortController)b=!1,v=!0;else if(d.mode==="prefer-streaming")v=!1;else if(d.mode==="allow-wrong-content-type")v=!h.overrideMimeType;else if(!d.mode||d.mode==="default"||d.mode==="prefer-fast")v=!0;else throw new Error("Invalid value for opts.mode");g._mode=l(v,b),g._fetchTimer=null,g.on("finish",function(){g._onFinish()})};u(r,i.Writable),r.prototype.setHeader=function(d,g){var v=this,b=d.toLowerCase();if(c.indexOf(b)!==-1)return;v._headers[b]={name:d,value:g}},r.prototype.getHeader=function(d){var g=this._headers[d.toLowerCase()];return g?g.value:null},r.prototype.removeHeader=function(d){var g=this;delete g._headers[d.toLowerCase()]},r.prototype._onFinish=function(){var d=this;if(d._destroyed)return;var g=d._opts,v=d._headers,b=null;g.method!=="GET"&&g.method!=="HEAD"&&(h.arraybuffer?b=t(x.concat(d._body)):h.blobConstructor?b=new p.Blob(d._body.map(function(w){return t(w)}),{type:(v["content-type"]||{}).value||""}):b=x.concat(d._body).toString());var S=[];if((0,m.default)(v).forEach(function(w){var O=v[w].name,I=v[w].value;Array.isArray(I)?I.forEach(function(R){S.push([O,R])}):S.push([O,I])}),d._mode==="fetch"){var E=null,C=null;if(h.abortController){var _=new AbortController;E=_.signal,d._fetchAbortController=_,"requestTimeout"in g&&g.requestTimeout!==0&&(d._fetchTimer=p.setTimeout(function(){d.emit("requestTimeout"),d._fetchAbortController&&d._fetchAbortController.abort()},g.requestTimeout))}p.fetch(d._opts.url,{method:d._opts.method,headers:S,body:b||void 0,mode:"cors",credentials:g.withCredentials?"include":"same-origin",signal:E}).then(function(w){d._fetchResponse=w,d._connect()},function(w){p.clearTimeout(d._fetchTimer),d._destroyed||d.emit("error",w)})}else{var T=d._xhr=new p.XMLHttpRequest;try{T.open(d._opts.method,d._opts.url,!0)}catch(w){y.nextTick(function(){d.emit("error",w)});return}"responseType"in T&&(T.responseType=d._mode.split(":")[0]),"withCredentials"in T&&(T.withCredentials=!!g.withCredentials),d._mode==="text"&&"overrideMimeType"in T&&T.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in g&&(T.timeout=g.requestTimeout,T.ontimeout=function(){d.emit("requestTimeout")}),S.forEach(function(w){T.setRequestHeader(w[0],w[1])}),d._response=null,T.onreadystatechange=function(){switch(T.readyState){case e.LOADING:case e.DONE:d._onXHRProgress();break}},d._mode==="moz-chunked-arraybuffer"&&(T.onprogress=function(){d._onXHRProgress()}),T.onerror=function(){if(d._destroyed)return;d.emit("error",new Error("XHR error"))};try{T.send(b)}catch(w){y.nextTick(function(){d.emit("error",w)});return}}};function s(d){try{var g=d.status;return g!==null&&g!==0}catch(v){return!1}}r.prototype._onXHRProgress=function(){var d=this;if(!s(d._xhr)||d._destroyed)return;d._response||d._connect(),d._response._onXHRProgress()},r.prototype._connect=function(){var d=this;if(d._destroyed)return;d._response=new o(d._xhr,d._fetchResponse,d._mode,d._fetchTimer),d._response.on("error",function(g){d.emit("error",g)}),d.emit("response",d._response)},r.prototype._write=function(d,g,v){var b=this;b._body.push(d),v()},r.prototype.abort=r.prototype.destroy=function(){var d=this;d._destroyed=!0,p.clearTimeout(d._fetchTimer),d._response&&(d._response._destroyed=!0),d._xhr?d._xhr.abort():d._fetchAbortController&&d._fetchAbortController.abort()},r.prototype.end=function(d,g,v){var b=this;typeof d=="function"&&(v=d,d=void 0),i.Writable.prototype.end.call(b,d,g,v)},r.prototype.flushHeaders=function(){},r.prototype.setTimeout=function(){},r.prototype.setNoDelay=function(){},r.prototype.setSocketKeepAlive=function(){};var c=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},k("buffer").Buffer)},{"./capability":232,"./response":234,_process:208,"babel-runtime/core-js/object/keys":60,buffer:73,inherits:196,"readable-stream":223,"to-arraybuffer":237}],234:[function(k,D,n){(function(y,p,x){"use strict";var A=k("babel-runtime/core-js/promise"),m=f(A);function f(o){return o&&o.__esModule?o:{default:o}}var h=k("./capability"),u=k("inherits"),a=k("readable-stream"),i=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},t=n.IncomingMessage=function(o,e,l,r){var s=this;if(a.Readable.call(s),s._mode=l,s.headers={},s.rawHeaders=[],s.trailers={},s.rawTrailers=[],s.on("end",function(){y.nextTick(function(){s.emit("close")})}),l==="fetch"){var c=function E(){g.read().then(function(C){if(s._destroyed)return;if(C.done){p.clearTimeout(r),s.push(null);return}s.push(new x(C.value)),E()}).catch(function(C){p.clearTimeout(r),s._destroyed||s.emit("error",C)})};if(s._fetchResponse=e,s.url=e.url,s.statusCode=e.status,s.statusMessage=e.statusText,e.headers.forEach(function(E,C){s.headers[C.toLowerCase()]=E,s.rawHeaders.push(C,E)}),h.writableStream){var d=new WritableStream({write:function(C){return new m.default(function(_,T){s._destroyed?T():s.push(new x(C))?_():s._resumeFetch=_})},close:function(){p.clearTimeout(r),s._destroyed||s.push(null)},abort:function(C){s._destroyed||s.emit("error",C)}});try{e.body.pipeTo(d).catch(function(E){p.clearTimeout(r),s._destroyed||s.emit("error",E)});return}catch(E){}}var g=e.body.getReader();c()}else{s._xhr=o,s._pos=0,s.url=o.responseURL,s.statusCode=o.status,s.statusMessage=o.statusText;var v=o.getAllResponseHeaders().split(/\r?\n/);if(v.forEach(function(E){var C=E.match(/^([^:]+):\s*(.*)/);if(C){var _=C[1].toLowerCase();_==="set-cookie"?(s.headers[_]===void 0&&(s.headers[_]=[]),s.headers[_].push(C[2])):s.headers[_]!==void 0?s.headers[_]+=", "+C[2]:s.headers[_]=C[2],s.rawHeaders.push(C[1],C[2])}}),s._charset="x-user-defined",!h.overrideMimeType){var b=s.rawHeaders["mime-type"];if(b){var S=b.match(/;\s*charset=([^;])(;|$)/);S&&(s._charset=S[1].toLowerCase())}s._charset||(s._charset="utf-8")}}};u(t,a.Readable),t.prototype._read=function(){var o=this,e=o._resumeFetch;e&&(o._resumeFetch=null,e())},t.prototype._onXHRProgress=function(){var o=this,e=o._xhr,l=null;switch(o._mode){case"text:vbarray":if(e.readyState!==i.DONE)break;try{l=new p.VBArray(e.responseBody).toArray()}catch(g){}if(l!==null){o.push(new x(l));break}case"text":try{l=e.responseText}catch(g){o._mode="text:vbarray";break}if(l.length>o._pos){var r=l.substr(o._pos);if(o._charset==="x-user-defined"){for(var s=new x(r.length),c=0;c<r.length;c++)s[c]=r.charCodeAt(c)&255;o.push(s)}else o.push(r,o._charset);o._pos=l.length}break;case"arraybuffer":if(e.readyState!==i.DONE||!e.response)break;l=e.response,o.push(new x(new Uint8Array(l)));break;case"moz-chunked-arraybuffer":if(l=e.response,e.readyState!==i.LOADING||!l)break;o.push(new x(new Uint8Array(l)));break;case"ms-stream":if(l=e.response,e.readyState!==i.LOADING)break;var d=new p.MSStreamReader;d.onprogress=function(){d.result.byteLength>o._pos&&(o.push(new x(new Uint8Array(d.result.slice(o._pos)))),o._pos=d.result.byteLength)},d.onload=function(){o.push(null)},d.readAsArrayBuffer(l);break}o._xhr.readyState===i.DONE&&o._mode!=="ms-stream"&&o.push(null)}}).call(this,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},k("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(k,D,n){"use strict";var y=k("safe-buffer").Buffer,p=y.isEncoding||function(d){d=""+d;switch(d&&d.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function x(d){if(!d)return"utf8";for(var g;;)switch(d){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return d;default:if(g)return;d=(""+d).toLowerCase(),g=!0}}function A(d){var g=x(d);if(typeof g!="string"&&(y.isEncoding===p||!p(d)))throw new Error("Unknown encoding: "+d);return g||d}n.StringDecoder=m;function m(d){this.encoding=A(d);var g;switch(this.encoding){case"utf16le":this.text=o,this.end=e,g=4;break;case"utf8":this.fillLast=a,g=4;break;case"base64":this.text=l,this.end=r,g=3;break;default:this.write=s,this.end=c;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=y.allocUnsafe(g)}m.prototype.write=function(d){if(d.length===0)return"";var g,v;if(this.lastNeed){if(g=this.fillLast(d),g===void 0)return"";v=this.lastNeed,this.lastNeed=0}else v=0;return v<d.length?g?g+this.text(d,v):this.text(d,v):g||""},m.prototype.end=t,m.prototype.text=i,m.prototype.fillLast=function(d){if(this.lastNeed<=d.length)return d.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,this.lastTotal-this.lastNeed,0,d.length),this.lastNeed-=d.length};function f(d){return d<=127?0:d>>5===6?2:d>>4===14?3:d>>3===30?4:d>>6===2?-1:-2}function h(d,g,v){var b=g.length-1;if(b<v)return 0;var S=f(g[b]);return S>=0?(S>0&&(d.lastNeed=S-1),S):--b<v||S===-2?0:(S=f(g[b]),S>=0?(S>0&&(d.lastNeed=S-2),S):--b<v||S===-2?0:(S=f(g[b]),S>=0?(S>0&&(S===2?S=0:d.lastNeed=S-3),S):0))}function u(d,g,v){if((g[0]&192)!==128)return d.lastNeed=0,"\uFFFD";if(d.lastNeed>1&&g.length>1){if((g[1]&192)!==128)return d.lastNeed=1,"\uFFFD";if(d.lastNeed>2&&g.length>2&&(g[2]&192)!==128)return d.lastNeed=2,"\uFFFD"}}function a(d){var g=this.lastTotal-this.lastNeed,v=u(this,d,g);if(v!==void 0)return v;if(this.lastNeed<=d.length)return d.copy(this.lastChar,g,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,g,0,d.length),this.lastNeed-=d.length}function i(d,g){var v=h(this,d,g);if(!this.lastNeed)return d.toString("utf8",g);this.lastTotal=v;var b=d.length-(v-this.lastNeed);return d.copy(this.lastChar,0,b),d.toString("utf8",g,b)}function t(d){var g=d&&d.length?this.write(d):"";return this.lastNeed?g+"\uFFFD":g}function o(d,g){if((d.length-g)%2===0){var v=d.toString("utf16le",g);if(v){var b=v.charCodeAt(v.length-1);if(b>=55296&&b<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1],v.slice(0,-1)}return v}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=d[d.length-1],d.toString("utf16le",g,d.length-1)}function e(d){var g=d&&d.length?this.write(d):"";if(this.lastNeed){var v=this.lastTotal-this.lastNeed;return g+this.lastChar.toString("utf16le",0,v)}return g}function l(d,g){var v=(d.length-g)%3;return v===0?d.toString("base64",g):(this.lastNeed=3-v,this.lastTotal=3,v===1?this.lastChar[0]=d[d.length-1]:(this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1]),d.toString("base64",g,d.length-v))}function r(d){var g=d&&d.length?this.write(d):"";return this.lastNeed?g+this.lastChar.toString("base64",0,3-this.lastNeed):g}function s(d){return d.toString(this.encoding)}function c(d){return d&&d.length?this.write(d):""}},{"safe-buffer":228}],236:[function(k,D,n){(function(y,p){var x=k("process/browser.js").nextTick,A=Function.prototype.apply,m=Array.prototype.slice,f={},h=0;n.setTimeout=function(){return new u(A.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new u(A.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(a){a.close()};function u(a,i){this._id=a,this._clearFn=i}u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(a,i){clearTimeout(a._idleTimeoutId),a._idleTimeout=i},n.unenroll=function(a){clearTimeout(a._idleTimeoutId),a._idleTimeout=-1},n._unrefActive=n.active=function(a){clearTimeout(a._idleTimeoutId);var i=a._idleTimeout;i>=0&&(a._idleTimeoutId=setTimeout(function(){a._onTimeout&&a._onTimeout()},i))},n.setImmediate=typeof y=="function"?y:function(a){var i=h++,t=arguments.length<2?!1:m.call(arguments,1);return f[i]=!0,x(function(){f[i]&&(t?a.apply(null,t):a.call(null),n.clearImmediate(i))}),i},n.clearImmediate=typeof p=="function"?p:function(a){delete f[a]}}).call(this,k("timers").setImmediate,k("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(k,D,n){var y=k("buffer").Buffer;D.exports=function(p){if(p instanceof Uint8Array){if(p.byteOffset===0&&p.byteLength===p.buffer.byteLength)return p.buffer;if(typeof p.buffer.slice=="function")return p.buffer.slice(p.byteOffset,p.byteOffset+p.byteLength)}if(y.isBuffer(p)){for(var x=new Uint8Array(p.length),A=p.length,m=0;m<A;m++)x[m]=p[m];return x.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(k,D,n){"use strict";var y=k("punycode"),p=k("./util");n.parse=g,n.resolve=b,n.resolveObject=S,n.format=v,n.Url=x;function x(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var A=/^([a-z0-9.+-]+:)/i,m=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,h=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],u=["{","}","|","\\","^","`"].concat(h),a=["'"].concat(u),i=["%","/","?",";","#"].concat(a),t=["/","?","#"],o=255,e=/^[+a-z0-9A-Z_-]{0,63}$/,l=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,r={javascript:!0,"javascript:":!0},s={javascript:!0,"javascript:":!0},c={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},d=k("querystring");function g(E,C,_){if(E&&p.isObject(E)&&E instanceof x)return E;var T=new x;return T.parse(E,C,_),T}x.prototype.parse=function(E,C,_){if(!p.isString(E))throw new TypeError("Parameter 'url' must be a string, not "+typeof E);var T=E.indexOf("?"),w=T!==-1&&T<E.indexOf("#")?"?":"#",O=E.split(w),I=/\\/g;O[0]=O[0].replace(I,"/"),E=O.join(w);var R=E;if(R=R.trim(),!_&&E.split("#").length===1){var M=f.exec(R);if(M)return this.path=R,this.href=R,this.pathname=M[1],M[2]?(this.search=M[2],C?this.query=d.parse(this.search.substr(1)):this.query=this.search.substr(1)):C&&(this.search="",this.query={}),this}var F=A.exec(R);if(F){F=F[0];var P=F.toLowerCase();this.protocol=P,R=R.substr(F.length)}if(_||F||R.match(/^\/\/[^@\/]+@[^@\/]+/)){var X=R.substr(0,2)==="//";X&&!(F&&s[F])&&(R=R.substr(2),this.slashes=!0)}if(!s[F]&&(X||F&&!c[F])){for(var B=-1,j=0;j<t.length;j++){var W=R.indexOf(t[j]);W!==-1&&(B===-1||W<B)&&(B=W)}var z,V;B===-1?V=R.lastIndexOf("@"):V=R.lastIndexOf("@",B),V!==-1&&(z=R.slice(0,V),R=R.slice(V+1),this.auth=decodeURIComponent(z)),B=-1;for(var j=0;j<i.length;j++){var W=R.indexOf(i[j]);W!==-1&&(B===-1||W<B)&&(B=W)}B===-1&&(B=R.length),this.host=R.slice(0,B),R=R.slice(B),this.parseHost(),this.hostname=this.hostname||"";var Q=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Q)for(var G=this.hostname.split(/\./),j=0,ee=G.length;j<ee;j++){var ce=G[j];if(!ce)continue;if(!ce.match(e)){for(var be="",le=0,Ie=ce.length;le<Ie;le++)ce.charCodeAt(le)>127?be+="x":be+=ce[le];if(!be.match(e)){var ke=G.slice(0,j),Re=G.slice(j+1),Qe=ce.match(l);Qe&&(ke.push(Qe[1]),Re.unshift(Qe[2])),Re.length&&(R="/"+Re.join(".")+R),this.hostname=ke.join(".");break}}}this.hostname.length>o?this.hostname="":this.hostname=this.hostname.toLowerCase(),Q||(this.hostname=y.toASCII(this.hostname));var We=this.port?":"+this.port:"",ot=this.hostname||"";this.host=ot+We,this.href+=this.host,Q&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),R[0]!=="/"&&(R="/"+R))}if(!r[P])for(var j=0,ee=a.length;j<ee;j++){var Oe=a[j];if(R.indexOf(Oe)===-1)continue;var oe=encodeURIComponent(Oe);oe===Oe&&(oe=escape(Oe)),R=R.split(Oe).join(oe)}var st=R.indexOf("#");st!==-1&&(this.hash=R.substr(st),R=R.slice(0,st));var he=R.indexOf("?");if(he!==-1?(this.search=R.substr(he),this.query=R.substr(he+1),C&&(this.query=d.parse(this.query)),R=R.slice(0,he)):C&&(this.search="",this.query={}),R&&(this.pathname=R),c[P]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var We=this.pathname||"",J=this.search||"";this.path=We+J}return this.href=this.format(),this};function v(E){return p.isString(E)&&(E=g(E)),E instanceof x?E.format():x.prototype.format.call(E)}x.prototype.format=function(){var E=this.auth||"";E&&(E=encodeURIComponent(E),E=E.replace(/%3A/i,":"),E+="@");var C=this.protocol||"",_=this.pathname||"",T=this.hash||"",w=!1,O="";this.host?w=E+this.host:this.hostname&&(w=E+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(w+=":"+this.port)),this.query&&p.isObject(this.query)&&Object.keys(this.query).length&&(O=d.stringify(this.query));var I=this.search||O&&"?"+O||"";return C&&C.substr(-1)!==":"&&(C+=":"),this.slashes||(!C||c[C])&&w!==!1?(w="//"+(w||""),_&&_.charAt(0)!=="/"&&(_="/"+_)):w||(w=""),T&&T.charAt(0)!=="#"&&(T="#"+T),I&&I.charAt(0)!=="?"&&(I="?"+I),_=_.replace(/[?#]/g,function(R){return encodeURIComponent(R)}),I=I.replace("#","%23"),C+w+_+I+T};function b(E,C){return g(E,!1,!0).resolve(C)}x.prototype.resolve=function(E){return this.resolveObject(g(E,!1,!0)).format()};function S(E,C){return E?g(E,!1,!0).resolveObject(C):C}x.prototype.resolveObject=function(E){if(p.isString(E)){var C=new x;C.parse(E,!1,!0),E=C}for(var _=new x,T=Object.keys(this),w=0;w<T.length;w++){var O=T[w];_[O]=this[O]}if(_.hash=E.hash,E.href==="")return _.href=_.format(),_;if(E.slashes&&!E.protocol){for(var I=Object.keys(E),R=0;R<I.length;R++){var M=I[R];M!=="protocol"&&(_[M]=E[M])}return c[_.protocol]&&_.hostname&&!_.pathname&&(_.path=_.pathname="/"),_.href=_.format(),_}if(E.protocol&&E.protocol!==_.protocol){if(!c[E.protocol]){for(var F=Object.keys(E),P=0;P<F.length;P++){var X=F[P];_[X]=E[X]}return _.href=_.format(),_}if(_.protocol=E.protocol,!E.host&&!s[E.protocol]){for(var ee=(E.pathname||"").split("/");ee.length&&!(E.host=ee.shift()););E.host||(E.host=""),E.hostname||(E.hostname=""),ee[0]!==""&&ee.unshift(""),ee.length<2&&ee.unshift(""),_.pathname=ee.join("/")}else _.pathname=E.pathname;if(_.search=E.search,_.query=E.query,_.host=E.host||"",_.auth=E.auth,_.hostname=E.hostname||E.host,_.port=E.port,_.pathname||_.search){var B=_.pathname||"",j=_.search||"";_.path=B+j}return _.slashes=_.slashes||E.slashes,_.href=_.format(),_}var W=_.pathname&&_.pathname.charAt(0)==="/",z=E.host||E.pathname&&E.pathname.charAt(0)==="/",V=z||W||_.host&&E.pathname,Q=V,G=_.pathname&&_.pathname.split("/")||[],ee=E.pathname&&E.pathname.split("/")||[],ce=_.protocol&&!c[_.protocol];if(ce&&(_.hostname="",_.port=null,_.host&&(G[0]===""?G[0]=_.host:G.unshift(_.host)),_.host="",E.protocol&&(E.hostname=null,E.port=null,E.host&&(ee[0]===""?ee[0]=E.host:ee.unshift(E.host)),E.host=null),V=V&&(ee[0]===""||G[0]==="")),z)_.host=E.host||E.host===""?E.host:_.host,_.hostname=E.hostname||E.hostname===""?E.hostname:_.hostname,_.search=E.search,_.query=E.query,G=ee;else if(ee.length)G||(G=[]),G.pop(),G=G.concat(ee),_.search=E.search,_.query=E.query;else if(!p.isNullOrUndefined(E.search)){if(ce){_.hostname=_.host=G.shift();var be=_.host&&_.host.indexOf("@")>0?_.host.split("@"):!1;be&&(_.auth=be.shift(),_.host=_.hostname=be.shift())}return _.search=E.search,_.query=E.query,(!p.isNull(_.pathname)||!p.isNull(_.search))&&(_.path=(_.pathname?_.pathname:"")+(_.search?_.search:"")),_.href=_.format(),_}if(!G.length)return _.pathname=null,_.search?_.path="/"+_.search:_.path=null,_.href=_.format(),_;for(var le=G.slice(-1)[0],Ie=(_.host||E.host||G.length>1)&&(le==="."||le==="..")||le==="",ke=0,Re=G.length;Re>=0;Re--)le=G[Re],le==="."?G.splice(Re,1):le===".."?(G.splice(Re,1),ke++):ke&&(G.splice(Re,1),ke--);if(!V&&!Q)for(;ke--;ke)G.unshift("..");V&&G[0]!==""&&(!G[0]||G[0].charAt(0)!=="/")&&G.unshift(""),Ie&&G.join("/").substr(-1)!=="/"&&G.push("");var Qe=G[0]===""||G[0]&&G[0].charAt(0)==="/";if(ce){_.hostname=_.host=Qe?"":G.length?G.shift():"";var be=_.host&&_.host.indexOf("@")>0?_.host.split("@"):!1;be&&(_.auth=be.shift(),_.host=_.hostname=be.shift())}return V=V||_.host&&G.length,V&&!Qe&&G.unshift(""),G.length?_.pathname=G.join("/"):(_.pathname=null,_.path=null),(!p.isNull(_.pathname)||!p.isNull(_.search))&&(_.path=(_.pathname?_.pathname:"")+(_.search?_.search:"")),_.auth=E.auth||_.auth,_.slashes=_.slashes||E.slashes,_.href=_.format(),_},x.prototype.parseHost=function(){var E=this.host,C=m.exec(E);C&&(C=C[0],C!==":"&&(this.port=C.substr(1)),E=E.substr(0,E.length-C.length)),E&&(this.hostname=E)}},{"./util":239,punycode:209,querystring:212}],239:[function(k,D,n){"use strict";D.exports={isString:function(p){return typeof p=="string"},isObject:function(p){return typeof p=="object"&&p!==null},isNull:function(p){return p===null},isNullOrUndefined:function(p){return p==null}}},{}],240:[function(k,D,n){(function(y){D.exports=p;function p(A,m){if(x("noDeprecation"))return A;var f=!1;function h(){if(!f){if(x("throwDeprecation"))throw new Error(m);x("traceDeprecation")?console.trace(m):console.warn(m),f=!0}return A.apply(this,arguments)}return h}function x(A){try{if(!y.localStorage)return!1}catch(f){return!1}var m=y.localStorage[A];return m==null?!1:String(m).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(k,D,n){typeof Object.create=="function"?D.exports=function(p,x){p.super_=x,p.prototype=Object.create(x.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}})}:D.exports=function(p,x){p.super_=x;var A=function(){};A.prototype=x.prototype,p.prototype=new A,p.prototype.constructor=p}},{}],242:[function(k,D,n){D.exports=function(p){return p&&typeof p=="object"&&typeof p.copy=="function"&&typeof p.fill=="function"&&typeof p.readUInt8=="function"}},{}],243:[function(k,D,n){(function(y,p){var x=/%[sdj%]/g;n.format=function(B){if(!b(B)){for(var j=[],W=0;W<arguments.length;W++)j.push(f(arguments[W]));return j.join(" ")}for(var W=1,z=arguments,V=z.length,Q=String(B).replace(x,function(ee){if(ee==="%%")return"%";if(W>=V)return ee;switch(ee){case"%s":return String(z[W++]);case"%d":return Number(z[W++]);case"%j":try{return JSON.stringify(z[W++])}catch(ce){return"[Circular]"}default:return ee}}),G=z[W];W<V;G=z[++W])d(G)||!_(G)?Q+=" "+G:Q+=" "+f(G);return Q},n.deprecate=function(B,j){if(E(p.process))return function(){return n.deprecate(B,j).apply(this,arguments)};if(y.noDeprecation===!0)return B;var W=!1;function z(){if(!W){if(y.throwDeprecation)throw new Error(j);y.traceDeprecation?console.trace(j):console.error(j),W=!0}return B.apply(this,arguments)}return z};var A={},m;n.debuglog=function(B){if(E(m)&&(m=y.env.NODE_DEBUG||""),B=B.toUpperCase(),!A[B])if(new RegExp("\\b"+B+"\\b","i").test(m)){var j=y.pid;A[B]=function(){var W=n.format.apply(n,arguments);console.error("%s %d: %s",B,j,W)}}else A[B]=function(){};return A[B]};function f(B,j){var W={seen:[],stylize:u};return arguments.length>=3&&(W.depth=arguments[2]),arguments.length>=4&&(W.colors=arguments[3]),c(j)?W.showHidden=j:j&&n._extend(W,j),E(W.showHidden)&&(W.showHidden=!1),E(W.depth)&&(W.depth=2),E(W.colors)&&(W.colors=!1),E(W.customInspect)&&(W.customInspect=!0),W.colors&&(W.stylize=h),i(W,B,W.depth)}n.inspect=f,f.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function h(B,j){var W=f.styles[j];return W?"["+f.colors[W][0]+"m"+B+"["+f.colors[W][1]+"m":B}function u(B,j){return B}function a(B){var j={};return B.forEach(function(W,z){j[W]=!0}),j}function i(B,j,W){if(B.customInspect&&j&&O(j.inspect)&&j.inspect!==n.inspect&&!(j.constructor&&j.constructor.prototype===j)){var z=j.inspect(W,B);return b(z)||(z=i(B,z,W)),z}var V=t(B,j);if(V)return V;var Q=Object.keys(j),G=a(Q);if(B.showHidden&&(Q=Object.getOwnPropertyNames(j)),w(j)&&(Q.indexOf("message")>=0||Q.indexOf("description")>=0))return o(j);if(Q.length===0){if(O(j)){var ee=j.name?": "+j.name:"";return B.stylize("[Function"+ee+"]","special")}if(C(j))return B.stylize(RegExp.prototype.toString.call(j),"regexp");if(T(j))return B.stylize(Date.prototype.toString.call(j),"date");if(w(j))return o(j)}var ce="",be=!1,le=["{","}"];if(s(j)&&(be=!0,le=["[","]"]),O(j)){var Ie=j.name?": "+j.name:"";ce=" [Function"+Ie+"]"}if(C(j)&&(ce=" "+RegExp.prototype.toString.call(j)),T(j)&&(ce=" "+Date.prototype.toUTCString.call(j)),w(j)&&(ce=" "+o(j)),Q.length===0&&(!be||j.length==0))return le[0]+ce+le[1];if(W<0)return C(j)?B.stylize(RegExp.prototype.toString.call(j),"regexp"):B.stylize("[Object]","special");B.seen.push(j);var ke;return be?ke=e(B,j,W,G,Q):ke=Q.map(function(Re){return l(B,j,W,G,Re,be)}),B.seen.pop(),r(ke,ce,le)}function t(B,j){if(E(j))return B.stylize("undefined","undefined");if(b(j)){var W="'"+JSON.stringify(j).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return B.stylize(W,"string")}if(v(j))return B.stylize(""+j,"number");if(c(j))return B.stylize(""+j,"boolean");if(d(j))return B.stylize("null","null")}function o(B){return"["+Error.prototype.toString.call(B)+"]"}function e(B,j,W,z,V){for(var Q=[],G=0,ee=j.length;G<ee;++G)X(j,String(G))?Q.push(l(B,j,W,z,String(G),!0)):Q.push("");return V.forEach(function(ce){ce.match(/^\d+$/)||Q.push(l(B,j,W,z,ce,!0))}),Q}function l(B,j,W,z,V,Q){var G,ee,ce;if(ce=Object.getOwnPropertyDescriptor(j,V)||{value:j[V]},ce.get?ce.set?ee=B.stylize("[Getter/Setter]","special"):ee=B.stylize("[Getter]","special"):ce.set&&(ee=B.stylize("[Setter]","special")),X(z,V)||(G="["+V+"]"),ee||(B.seen.indexOf(ce.value)<0?(d(W)?ee=i(B,ce.value,null):ee=i(B,ce.value,W-1),ee.indexOf(`
|
|
|
`)>-1&&(Q?ee=ee.split(`
|
|
|
`).map(function(be){return" "+be}).join(`
|
|
|
`).substr(2):ee=`
|
|
|
`+ee.split(`
|
|
|
`).map(function(be){return" "+be}).join(`
|
|
|
`))):ee=B.stylize("[Circular]","special")),E(G)){if(Q&&V.match(/^\d+$/))return ee;G=JSON.stringify(""+V),G.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(G=G.substr(1,G.length-2),G=B.stylize(G,"name")):(G=G.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),G=B.stylize(G,"string"))}return G+": "+ee}function r(B,j,W){var z=0,V=B.reduce(function(Q,G){return z++,G.indexOf(`
|
|
|
`)>=0&&z++,Q+G.replace(/\u001b\[\d\d?m/g,"").length+1},0);return V>60?W[0]+(j===""?"":j+`
|
|
|
`)+" "+B.join(`,
|
|
|
`)+" "+W[1]:W[0]+j+" "+B.join(", ")+" "+W[1]}function s(B){return Array.isArray(B)}n.isArray=s;function c(B){return typeof B=="boolean"}n.isBoolean=c;function d(B){return B===null}n.isNull=d;function g(B){return B==null}n.isNullOrUndefined=g;function v(B){return typeof B=="number"}n.isNumber=v;function b(B){return typeof B=="string"}n.isString=b;function S(B){return typeof B=="symbol"}n.isSymbol=S;function E(B){return B===void 0}n.isUndefined=E;function C(B){return _(B)&&R(B)==="[object RegExp]"}n.isRegExp=C;function _(B){return typeof B=="object"&&B!==null}n.isObject=_;function T(B){return _(B)&&R(B)==="[object Date]"}n.isDate=T;function w(B){return _(B)&&(R(B)==="[object Error]"||B instanceof Error)}n.isError=w;function O(B){return typeof B=="function"}n.isFunction=O;function I(B){return B===null||typeof B=="boolean"||typeof B=="number"||typeof B=="string"||typeof B=="symbol"||typeof B=="undefined"}n.isPrimitive=I,n.isBuffer=k("./support/isBuffer");function R(B){return Object.prototype.toString.call(B)}function M(B){return B<10?"0"+B.toString(10):B.toString(10)}var F=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var B=new Date,j=[M(B.getHours()),M(B.getMinutes()),M(B.getSeconds())].join(":");return[B.getDate(),F[B.getMonth()],j].join(" ")}n.log=function(){console.log("%s - %s",P(),n.format.apply(n,arguments))},n.inherits=k("inherits"),n._extend=function(B,j){if(!j||!_(j))return B;for(var W=Object.keys(j),z=W.length;z--;)B[W[z]]=j[W[z]];return B};function X(B,j){return Object.prototype.hasOwnProperty.call(B,j)}}).call(this,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(k,D,n){"use strict";(function(){"use strict";n.stripBOM=function(y){return y[0]==="\uFEFF"?y.substring(1):y}}).call(void 0)},{}],245:[function(k,D,n){"use strict";var y=k("babel-runtime/helpers/typeof"),p=m(y),x=k("babel-runtime/core-js/object/keys"),A=m(x);function m(f){return f&&f.__esModule?f:{default:f}}(function(){"use strict";var f,h,u,a,i,t={}.hasOwnProperty;f=k("xmlbuilder"),h=k("./defaults").defaults,a=function(e){return typeof e=="string"&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0)},i=function(e){return"<![CDATA["+u(e)+"]]>"},u=function(e){return e.replace("]]>","]]]]><![CDATA[>")},n.Builder=function(){function o(e){var l,r,s;this.options={},r=h["0.2"];for(l in r){if(!t.call(r,l))continue;s=r[l],this.options[l]=s}for(l in e){if(!t.call(e,l))continue;s=e[l],this.options[l]=s}}return o.prototype.buildObject=function(e){var l,r,s,c,d;return l=this.options.attrkey,r=this.options.charkey,(0,A.default)(e).length===1&&this.options.rootName===h["0.2"].rootName?(d=(0,A.default)(e)[0],e=e[d]):d=this.options.rootName,s=function(g){return function(v,b){var S,E,C,_,T,w;if((typeof b=="undefined"?"undefined":(0,p.default)(b))!=="object")g.options.cdata&&a(b)?v.raw(i(b)):v.txt(b);else if(Array.isArray(b))for(_ in b){if(!t.call(b,_))continue;E=b[_];for(T in E)C=E[T],v=s(v.ele(T),C).up()}else for(T in b){if(!t.call(b,T))continue;if(E=b[T],T===l){if((typeof E=="undefined"?"undefined":(0,p.default)(E))==="object")for(S in E)w=E[S],v=v.att(S,w)}else if(T===r)g.options.cdata&&a(E)?v=v.raw(i(E)):v=v.txt(E);else if(Array.isArray(E))for(_ in E){if(!t.call(E,_))continue;C=E[_],typeof C=="string"?g.options.cdata&&a(C)?v=v.ele(T).raw(i(C)).up():v=v.ele(T,C).up():v=s(v.ele(T),C).up()}else(typeof E=="undefined"?"undefined":(0,p.default)(E))==="object"?v=s(v.ele(T),E).up():typeof E=="string"&&g.options.cdata&&a(E)?v=v.ele(T).raw(i(E)).up():(E==null&&(E=""),v=v.ele(T,E.toString()).up())}return v}}(this),c=f.create(d,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),s(c,e).end(this.options.renderOpts)},o}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(k,D,n){"use strict";(function(){n.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
|
|
|
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],247:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/promise"),p=a(y),x=k("babel-runtime/core-js/object/get-own-property-names"),A=a(x),m=k("babel-runtime/core-js/object/keys"),f=a(m),h=k("babel-runtime/helpers/typeof"),u=a(h);function a(i){return i&&i.__esModule?i:{default:i}}(function(){"use strict";var i,t,o,e,l,r,s,c,d=function(S,E){return function(){return S.apply(E,arguments)}},g=function(S,E){for(var C in E)v.call(E,C)&&(S[C]=E[C]);function _(){this.constructor=S}return _.prototype=E.prototype,S.prototype=new _,S.__super__=E.prototype,S},v={}.hasOwnProperty;s=k("sax"),o=k("events"),i=k("./bom"),r=k("./processors"),c=k("timers").setImmediate,t=k("./defaults").defaults,e=function(S){return(typeof S=="undefined"?"undefined":(0,u.default)(S))==="object"&&S!=null&&(0,f.default)(S).length===0},l=function(S,E,C){var _,T,w;for(_=0,T=S.length;_<T;_++)w=S[_],E=w(E,C);return E},n.Parser=function(b){g(S,b);function S(E){this.parseStringPromise=d(this.parseStringPromise,this),this.parseString=d(this.parseString,this),this.reset=d(this.reset,this),this.assignOrPush=d(this.assignOrPush,this),this.processAsync=d(this.processAsync,this);var C,_,T;if(!(this instanceof n.Parser))return new n.Parser(E);this.options={},_=t["0.2"];for(C in _){if(!v.call(_,C))continue;T=_[C],this.options[C]=T}for(C in E){if(!v.call(E,C))continue;T=E[C],this.options[C]=T}this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(r.normalize)),this.reset()}return S.prototype.processAsync=function(){var E,C;try{return this.remaining.length<=this.options.chunkSize?(E=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(E),this.saxParser.close()):(E=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(E),c(this.processAsync))}catch(_){if(C=_,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(C)}},S.prototype.assignOrPush=function(E,C,_){return C in E?(E[C]instanceof Array||(E[C]=[E[C]]),E[C].push(_)):this.options.explicitArray?E[C]=[_]:E[C]=_},S.prototype.reset=function(){var E,C,_,T;return this.removeAllListeners(),this.saxParser=s.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(w){return function(O){if(w.saxParser.resume(),!w.saxParser.errThrown)return w.saxParser.errThrown=!0,w.emit("error",O)}}(this),this.saxParser.onend=function(w){return function(){if(!w.saxParser.ended)return w.saxParser.ended=!0,w.emit("end",w.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,T=[],E=this.options.attrkey,C=this.options.charkey,this.saxParser.onopentag=function(w){return function(O){var I,R,M,F,P;if(M={},M[C]="",!w.options.ignoreAttrs){P=O.attributes;for(I in P){if(!v.call(P,I))continue;!(E in M)&&!w.options.mergeAttrs&&(M[E]={}),R=w.options.attrValueProcessors?l(w.options.attrValueProcessors,O.attributes[I],I):O.attributes[I],F=w.options.attrNameProcessors?l(w.options.attrNameProcessors,I):I,w.options.mergeAttrs?w.assignOrPush(M,F,R):M[E][F]=R}}return M["#name"]=w.options.tagNameProcessors?l(w.options.tagNameProcessors,O.name):O.name,w.options.xmlns&&(M[w.options.xmlnskey]={uri:O.uri,local:O.local}),T.push(M)}}(this),this.saxParser.onclosetag=function(w){return function(){var O,I,R,M,F,P,X,B,j,W;if(P=T.pop(),F=P["#name"],(!w.options.explicitChildren||!w.options.preserveChildrenOrder)&&delete P["#name"],P.cdata===!0&&(O=P.cdata,delete P.cdata),j=T[T.length-1],P[C].match(/^\s*$/)&&!O?(I=P[C],delete P[C]):(w.options.trim&&(P[C]=P[C].trim()),w.options.normalize&&(P[C]=P[C].replace(/\s{2,}/g," ").trim()),P[C]=w.options.valueProcessors?l(w.options.valueProcessors,P[C],F):P[C],(0,f.default)(P).length===1&&C in P&&!w.EXPLICIT_CHARKEY&&(P=P[C])),e(P)&&(P=w.options.emptyTag!==""?w.options.emptyTag:I),w.options.validator!=null&&(W="/"+function(){var z,V,Q;for(Q=[],z=0,V=T.length;z<V;z++)M=T[z],Q.push(M["#name"]);return Q}().concat(F).join("/"),function(){var z;try{return P=w.options.validator(W,j&&j[F],P)}catch(V){return z=V,w.emit("error",z)}}()),w.options.explicitChildren&&!w.options.mergeAttrs&&(typeof P=="undefined"?"undefined":(0,u.default)(P))==="object"){if(!w.options.preserveChildrenOrder)M={},w.options.attrkey in P&&(M[w.options.attrkey]=P[w.options.attrkey],delete P[w.options.attrkey]),!w.options.charsAsChildren&&w.options.charkey in P&&(M[w.options.charkey]=P[w.options.charkey],delete P[w.options.charkey]),(0,A.default)(P).length>0&&(M[w.options.childkey]=P),P=M;else if(j){j[w.options.childkey]=j[w.options.childkey]||[],X={};for(R in P){if(!v.call(P,R))continue;X[R]=P[R]}j[w.options.childkey].push(X),delete P["#name"],(0,f.default)(P).length===1&&C in P&&!w.EXPLICIT_CHARKEY&&(P=P[C])}}return T.length>0?w.assignOrPush(j,F,P):(w.options.explicitRoot&&(B=P,P={},P[F]=B),w.resultObject=P,w.saxParser.ended=!0,w.emit("end",w.resultObject))}}(this),_=function(w){return function(O){var I,R;if(R=T[T.length-1],R)return R[C]+=O,w.options.explicitChildren&&w.options.preserveChildrenOrder&&w.options.charsAsChildren&&(w.options.includeWhiteChars||O.replace(/\\n/g,"").trim()!=="")&&(R[w.options.childkey]=R[w.options.childkey]||[],I={"#name":"__text__"},I[C]=O,w.options.normalize&&(I[C]=I[C].replace(/\s{2,}/g," ").trim()),R[w.options.childkey].push(I)),R}}(this),this.saxParser.ontext=_,this.saxParser.oncdata=function(w){return function(O){var I;if(I=_(O),I)return I.cdata=!0}}(this)},S.prototype.parseString=function(E,C){var _;C!=null&&typeof C=="function"&&(this.on("end",function(T){return this.reset(),C(null,T)}),this.on("error",function(T){return this.reset(),C(T)}));try{return E=E.toString(),E.trim()===""?(this.emit("end",null),!0):(E=i.stripBOM(E),this.options.async?(this.remaining=E,c(this.processAsync),this.saxParser):this.saxParser.write(E).close())}catch(T){if(_=T,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw _}else return this.emit("error",_),this.saxParser.errThrown=!0}},S.prototype.parseStringPromise=function(E){return new p.default(function(C){return function(_,T){return C.parseString(E,function(w,O){return w?T(w):_(O)})}}(this))},S}(o),n.parseString=function(b,S,E){var C,_,T;return E!=null?(typeof E=="function"&&(C=E),(typeof S=="undefined"?"undefined":(0,u.default)(S))==="object"&&(_=S)):(typeof S=="function"&&(C=S),_={}),T=new n.Parser(_),T.parseString(b,C)},n.parseStringPromise=function(b,S){var E,C;return(typeof S=="undefined"?"undefined":(0,u.default)(S))==="object"&&(E=S),C=new n.Parser(E),C.parseStringPromise(b)}}).call(void 0)},{"./bom":244,"./defaults":246,"./processors":248,"babel-runtime/core-js/object/get-own-property-names":58,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/helpers/typeof":67,events:192,sax:229,timers:236}],248:[function(k,D,n){"use strict";(function(){"use strict";var y;y=new RegExp(/(?!xmlns)^.*:/),n.normalize=function(p){return p.toLowerCase()},n.firstCharLowerCase=function(p){return p.charAt(0).toLowerCase()+p.slice(1)},n.stripPrefix=function(p){return p.replace(y,"")},n.parseNumbers=function(p){return isNaN(p)||(p=p%1===0?parseInt(p,10):parseFloat(p)),p},n.parseBooleans=function(p){return/^(?:true|false)$/i.test(p)&&(p=p.toLowerCase()==="true"),p}}).call(void 0)},{}],249:[function(k,D,n){"use strict";(function(){"use strict";var y,p,x,A,m=function(u,a){for(var i in a)f.call(a,i)&&(u[i]=a[i]);function t(){this.constructor=u}return t.prototype=a.prototype,u.prototype=new t,u.__super__=a.prototype,u},f={}.hasOwnProperty;p=k("./defaults"),y=k("./builder"),x=k("./parser"),A=k("./processors"),n.defaults=p.defaults,n.processors=A,n.ValidationError=function(h){m(u,h);function u(a){this.message=a}return u}(Error),n.Builder=y.Builder,n.Parser=x.Parser,n.parseString=x.parseString,n.parseStringPromise=x.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(k,D,n){"use strict";(function(){D.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(k,D,n){"use strict";(function(){D.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(void 0)},{}],252:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/get-prototype-of"),p=h(y),x=k("babel-runtime/helpers/typeof"),A=h(x),m=k("babel-runtime/core-js/object/assign"),f=h(m);function h(u){return u&&u.__esModule?u:{default:u}}(function(){var u,a,i,t,o,e,l,r=[].slice,s={}.hasOwnProperty;u=function(){var d,g,v,b,S,E;if(E=arguments[0],S=2<=arguments.length?r.call(arguments,1):[],o(f.default))f.default.apply(null,arguments);else for(d=0,v=S.length;d<v;d++)if(b=S[d],b!=null)for(g in b){if(!s.call(b,g))continue;E[g]=b[g]}return E},o=function(d){return!!d&&Object.prototype.toString.call(d)==="[object Function]"},e=function(d){var g;return!!d&&((g=typeof d=="undefined"?"undefined":(0,A.default)(d))==="function"||g==="object")},i=function(d){return o(Array.isArray)?Array.isArray(d):Object.prototype.toString.call(d)==="[object Array]"},t=function(d){var g;if(i(d))return!d.length;for(g in d){if(!s.call(d,g))continue;return!1}return!0},l=function(d){var g,v;return e(d)&&(v=(0,p.default)(d))&&(g=v.constructor)&&typeof g=="function"&&g instanceof g&&Function.prototype.toString.call(g)===Function.prototype.toString.call(Object)},a=function(d){return o(d.valueOf)?d.valueOf():d},D.exports.assign=u,D.exports.isFunction=o,D.exports.isObject=e,D.exports.isArray=i,D.exports.isEmpty=t,D.exports.isPlainObject=l,D.exports.getValue=a}).call(void 0)},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/get-prototype-of":59,"babel-runtime/helpers/typeof":67}],253:[function(k,D,n){"use strict";(function(){D.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/create"),p=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,f;A=k("./NodeType"),f=k("./XMLNode"),D.exports=m=function(){function h(u,a,i){if(this.parent=u,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),a==null)throw new Error("Missing attribute name. "+this.debugInfo(a));this.name=this.stringify.name(a),this.value=this.stringify.attValue(i),this.type=A.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(h.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(h.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(h.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(h.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(h.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(h.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(h.prototype,"specified",{get:function(){return!0}}),h.prototype.clone=function(){return(0,p.default)(this)},h.prototype.toString=function(u){return this.options.writer.attribute(this,this.options.writer.filterOptions(u))},h.prototype.debugInfo=function(u){return u=u||this.name,u==null?"parent: <"+this.parent.name+">":"attribute: {"+u+"}, parent: <"+this.parent.name+">"},h.prototype.isEqualNode=function(u){return u.namespaceURI!==this.namespaceURI||(u.prefix!==this.prefix||u.localName!==this.localName)?!1:!(u.value!==this.value)},h}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/create"),p=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,f,h=function(i,t){for(var o in t)u.call(t,o)&&(i[o]=t[o]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;A=k("./NodeType"),f=k("./XMLCharacterData"),D.exports=m=function(a){h(i,a);function i(t,o){if(i.__super__.constructor.call(this,t),o==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=A.CData,this.value=this.stringify.cdata(o)}return i.prototype.clone=function(){return(0,p.default)(this)},i.prototype.toString=function(t){return this.options.writer.cdata(this,this.options.writer.filterOptions(t))},i}(f)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/create"),p=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,f=function(a,i){for(var t in i)h.call(i,t)&&(a[t]=i[t]);function o(){this.constructor=a}return o.prototype=i.prototype,a.prototype=new o,a.__super__=i.prototype,a},h={}.hasOwnProperty;m=k("./XMLNode"),D.exports=A=function(u){f(a,u);function a(i){a.__super__.constructor.call(this,i),this.value=""}return Object.defineProperty(a.prototype,"data",{get:function(){return this.value},set:function(t){return this.value=t||""}}),Object.defineProperty(a.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(a.prototype,"textContent",{get:function(){return this.value},set:function(t){return this.value=t||""}}),a.prototype.clone=function(){return(0,p.default)(this)},a.prototype.substringData=function(i,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.appendData=function(i){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.insertData=function(i,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.deleteData=function(i,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.replaceData=function(i,t,o){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isEqualNode=function(i){return a.__super__.isEqualNode.apply(this,arguments).isEqualNode(i)?!(i.data!==this.data):!1},a}(m)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/create"),p=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,f,h=function(i,t){for(var o in t)u.call(t,o)&&(i[o]=t[o]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;A=k("./NodeType"),m=k("./XMLCharacterData"),D.exports=f=function(a){h(i,a);function i(t,o){if(i.__super__.constructor.call(this,t),o==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=A.Comment,this.value=this.stringify.comment(o)}return i.prototype.clone=function(){return(0,p.default)(this)},i.prototype.toString=function(t){return this.options.writer.comment(this,this.options.writer.filterOptions(t))},i}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=m(y),x=k("babel-runtime/core-js/object/create"),A=m(x);function m(f){return f&&f.__esModule?f:{default:f}}(function(){var f,h,u;h=k("./XMLDOMErrorHandler"),u=k("./XMLDOMStringList"),D.exports=f=function(){function a(){var i;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new h,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=i=(0,A.default)(this.defaultParams)}return Object.defineProperty(a.prototype,"parameterNames",{get:function(){return new u((0,p.default)(this.defaultParams))}}),a.prototype.getParameter=function(i){return this.params.hasOwnProperty(i)?this.params[i]:null},a.prototype.canSetParameter=function(i,t){return!0},a.prototype.setParameter=function(i,t){return t!=null?this.params[i]=t:delete this.params[i]},a}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(k,D,n){"use strict";(function(){var y;D.exports=y=function(){function p(){}return p.prototype.handleError=function(x){throw new Error(x)},p}()}).call(void 0)},{}],260:[function(k,D,n){"use strict";(function(){var y;D.exports=y=function(){function p(){}return p.prototype.hasFeature=function(x,A){return!0},p.prototype.createDocumentType=function(x,A,m){throw new Error("This DOM method is not implemented.")},p.prototype.createDocument=function(x,A,m){throw new Error("This DOM method is not implemented.")},p.prototype.createHTMLDocument=function(x){throw new Error("This DOM method is not implemented.")},p.prototype.getFeature=function(x,A){throw new Error("This DOM method is not implemented.")},p}()}).call(void 0)},{}],261:[function(k,D,n){"use strict";(function(){var y;D.exports=y=function(){function p(x){this.arr=x||[]}return Object.defineProperty(p.prototype,"length",{get:function(){return this.arr.length}}),p.prototype.item=function(x){return this.arr[x]||null},p.prototype.contains=function(x){return this.arr.indexOf(x)!==-1},p}()}).call(void 0)},{}],262:[function(k,D,n){"use strict";(function(){var y,p,x,A=function(h,u){for(var a in u)m.call(u,a)&&(h[a]=u[a]);function i(){this.constructor=h}return i.prototype=u.prototype,h.prototype=new i,h.__super__=u.prototype,h},m={}.hasOwnProperty;x=k("./XMLNode"),y=k("./NodeType"),D.exports=p=function(f){A(h,f);function h(u,a,i,t,o,e){if(h.__super__.constructor.call(this,u),a==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(i==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(a));if(!t)throw new Error("Missing DTD attribute type. "+this.debugInfo(a));if(!o)throw new Error("Missing DTD attribute default. "+this.debugInfo(a));if(o.indexOf("#")!==0&&(o="#"+o),!o.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(a));if(e&&!o.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(a));this.elementName=this.stringify.name(a),this.type=y.AttributeDeclaration,this.attributeName=this.stringify.name(i),this.attributeType=this.stringify.dtdAttType(t),e&&(this.defaultValue=this.stringify.dtdAttDefault(e)),this.defaultValueType=o}return h.prototype.toString=function(u){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(u))},h}(x)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(k,D,n){"use strict";(function(){var y,p,x,A=function(h,u){for(var a in u)m.call(u,a)&&(h[a]=u[a]);function i(){this.constructor=h}return i.prototype=u.prototype,h.prototype=new i,h.__super__=u.prototype,h},m={}.hasOwnProperty;x=k("./XMLNode"),y=k("./NodeType"),D.exports=p=function(f){A(h,f);function h(u,a,i){if(h.__super__.constructor.call(this,u),a==null)throw new Error("Missing DTD element name. "+this.debugInfo());i||(i="(#PCDATA)"),Array.isArray(i)&&(i="("+i.join(",")+")"),this.name=this.stringify.name(a),this.type=y.ElementDeclaration,this.value=this.stringify.dtdElementValue(i)}return h.prototype.toString=function(u){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(u))},h}(x)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(k,D,n){"use strict";(function(){var y,p,x,A,m=function(u,a){for(var i in a)f.call(a,i)&&(u[i]=a[i]);function t(){this.constructor=u}return t.prototype=a.prototype,u.prototype=new t,u.__super__=a.prototype,u},f={}.hasOwnProperty;A=k("./Utility").isObject,x=k("./XMLNode"),y=k("./NodeType"),D.exports=p=function(h){m(u,h);function u(a,i,t,o){if(u.__super__.constructor.call(this,a),t==null)throw new Error("Missing DTD entity name. "+this.debugInfo(t));if(o==null)throw new Error("Missing DTD entity value. "+this.debugInfo(t));if(this.pe=!!i,this.name=this.stringify.name(t),this.type=y.EntityDeclaration,!A(o))this.value=this.stringify.dtdEntityValue(o),this.internal=!0;else{if(!o.pubID&&!o.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(t));if(o.pubID&&!o.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(t));if(this.internal=!1,o.pubID!=null&&(this.pubID=this.stringify.dtdPubID(o.pubID)),o.sysID!=null&&(this.sysID=this.stringify.dtdSysID(o.sysID)),o.nData!=null&&(this.nData=this.stringify.dtdNData(o.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(t))}}return Object.defineProperty(u.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(u.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(u.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(u.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(u.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(u.prototype,"xmlVersion",{get:function(){return null}}),u.prototype.toString=function(a){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(a))},u}(x)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(k,D,n){"use strict";(function(){var y,p,x,A=function(h,u){for(var a in u)m.call(u,a)&&(h[a]=u[a]);function i(){this.constructor=h}return i.prototype=u.prototype,h.prototype=new i,h.__super__=u.prototype,h},m={}.hasOwnProperty;x=k("./XMLNode"),y=k("./NodeType"),D.exports=p=function(f){A(h,f);function h(u,a,i){if(h.__super__.constructor.call(this,u),a==null)throw new Error("Missing DTD notation name. "+this.debugInfo(a));if(!i.pubID&&!i.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(a));this.name=this.stringify.name(a),this.type=y.NotationDeclaration,i.pubID!=null&&(this.pubID=this.stringify.dtdPubID(i.pubID)),i.sysID!=null&&(this.sysID=this.stringify.dtdSysID(i.sysID))}return Object.defineProperty(h.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(h.prototype,"systemId",{get:function(){return this.sysID}}),h.prototype.toString=function(u){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(u))},h}(x)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(k,D,n){"use strict";(function(){var y,p,x,A,m=function(u,a){for(var i in a)f.call(a,i)&&(u[i]=a[i]);function t(){this.constructor=u}return t.prototype=a.prototype,u.prototype=new t,u.__super__=a.prototype,u},f={}.hasOwnProperty;A=k("./Utility").isObject,x=k("./XMLNode"),y=k("./NodeType"),D.exports=p=function(h){m(u,h);function u(a,i,t,o){var e;u.__super__.constructor.call(this,a),A(i)&&(e=i,i=e.version,t=e.encoding,o=e.standalone),i||(i="1.0"),this.type=y.Declaration,this.version=this.stringify.xmlVersion(i),t!=null&&(this.encoding=this.stringify.xmlEncoding(t)),o!=null&&(this.standalone=this.stringify.xmlStandalone(o))}return u.prototype.toString=function(a){return this.options.writer.declaration(this,this.options.writer.filterOptions(a))},u}(x)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(k,D,n){"use strict";(function(){var y,p,x,A,m,f,h,u,a,i=function(e,l){for(var r in l)t.call(l,r)&&(e[r]=l[r]);function s(){this.constructor=e}return s.prototype=l.prototype,e.prototype=new s,e.__super__=l.prototype,e},t={}.hasOwnProperty;a=k("./Utility").isObject,u=k("./XMLNode"),y=k("./NodeType"),p=k("./XMLDTDAttList"),A=k("./XMLDTDEntity"),x=k("./XMLDTDElement"),m=k("./XMLDTDNotation"),h=k("./XMLNamedNodeMap"),D.exports=f=function(o){i(e,o);function e(l,r,s){var c,d,g,v,b,S;if(e.__super__.constructor.call(this,l),this.type=y.DocType,l.children){for(v=l.children,d=0,g=v.length;d<g;d++)if(c=v[d],c.type===y.Element){this.name=c.name;break}}this.documentObject=l,a(r)&&(b=r,r=b.pubID,s=b.sysID),s==null&&(S=[r,s],s=S[0],r=S[1]),r!=null&&(this.pubID=this.stringify.dtdPubID(r)),s!=null&&(this.sysID=this.stringify.dtdSysID(s))}return Object.defineProperty(e.prototype,"entities",{get:function(){var r,s,c,d,g;for(d={},g=this.children,s=0,c=g.length;s<c;s++)r=g[s],r.type===y.EntityDeclaration&&!r.pe&&(d[r.name]=r);return new h(d)}}),Object.defineProperty(e.prototype,"notations",{get:function(){var r,s,c,d,g;for(d={},g=this.children,s=0,c=g.length;s<c;s++)r=g[s],r.type===y.NotationDeclaration&&(d[r.name]=r);return new h(d)}}),Object.defineProperty(e.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(e.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(e.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),e.prototype.element=function(l,r){var s;return s=new x(this,l,r),this.children.push(s),this},e.prototype.attList=function(l,r,s,c,d){var g;return g=new p(this,l,r,s,c,d),this.children.push(g),this},e.prototype.entity=function(l,r){var s;return s=new A(this,!1,l,r),this.children.push(s),this},e.prototype.pEntity=function(l,r){var s;return s=new A(this,!0,l,r),this.children.push(s),this},e.prototype.notation=function(l,r){var s;return s=new m(this,l,r),this.children.push(s),this},e.prototype.toString=function(l){return this.options.writer.docType(this,this.options.writer.filterOptions(l))},e.prototype.ele=function(l,r){return this.element(l,r)},e.prototype.att=function(l,r,s,c,d){return this.attList(l,r,s,c,d)},e.prototype.ent=function(l,r){return this.entity(l,r)},e.prototype.pent=function(l,r){return this.pEntity(l,r)},e.prototype.not=function(l,r){return this.notation(l,r)},e.prototype.up=function(){return this.root()||this.documentObject},e.prototype.isEqualNode=function(l){return e.__super__.isEqualNode.apply(this,arguments).isEqualNode(l)?l.name!==this.name||l.publicId!==this.publicId?!1:!(l.systemId!==this.systemId):!1},e}(u)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLNamedNodeMap":272,"./XMLNode":273}],268:[function(k,D,n){"use strict";(function(){var y,p,x,A,m,f,h,u,a=function(o,e){for(var l in e)i.call(e,l)&&(o[l]=e[l]);function r(){this.constructor=o}return r.prototype=e.prototype,o.prototype=new r,o.__super__=e.prototype,o},i={}.hasOwnProperty;u=k("./Utility").isPlainObject,x=k("./XMLDOMImplementation"),p=k("./XMLDOMConfiguration"),m=k("./XMLNode"),y=k("./NodeType"),h=k("./XMLStringifier"),f=k("./XMLStringWriter"),D.exports=A=function(t){a(o,t);function o(e){o.__super__.constructor.call(this,null),this.name="#document",this.type=y.Document,this.documentURI=null,this.domConfig=new p,e||(e={}),e.writer||(e.writer=new f),this.options=e,this.stringify=new h(e)}return Object.defineProperty(o.prototype,"implementation",{value:new x}),Object.defineProperty(o.prototype,"doctype",{get:function(){var l,r,s,c;for(c=this.children,r=0,s=c.length;r<s;r++)if(l=c[r],l.type===y.DocType)return l;return null}}),Object.defineProperty(o.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(o.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(o.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(o.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===y.Declaration?this.children[0].encoding:null}}),Object.defineProperty(o.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===y.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(o.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===y.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(o.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(o.prototype,"origin",{get:function(){return null}}),Object.defineProperty(o.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(o.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(o.prototype,"contentType",{get:function(){return null}}),o.prototype.end=function(e){var l;return l={},e?u(e)&&(l=e,e=this.options.writer):e=this.options.writer,e.document(this,e.filterOptions(l))},o.prototype.toString=function(e){return this.options.writer.document(this,this.options.writer.filterOptions(e))},o.prototype.createElement=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createTextNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createComment=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createCDATASection=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createProcessingInstruction=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createAttribute=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createEntityReference=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.importNode=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createElementNS=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createAttributeNS=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementsByTagNameNS=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementById=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.adoptNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.renameNode=function(e,l,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementsByClassName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createEvent=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createNodeIterator=function(e,l,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createTreeWalker=function(e,l,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},o}(m)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(k,D,n){"use strict";(function(){var y,p,x,A,m,f,h,u,a,i,t,o,e,l,r,s,c,d,g,v,b,S,E,C,_={}.hasOwnProperty;C=k("./Utility"),S=C.isObject,b=C.isFunction,E=C.isPlainObject,v=C.getValue,y=k("./NodeType"),o=k("./XMLDocument"),l=k("./XMLElement"),A=k("./XMLCData"),m=k("./XMLComment"),s=k("./XMLRaw"),g=k("./XMLText"),r=k("./XMLProcessingInstruction"),i=k("./XMLDeclaration"),t=k("./XMLDocType"),f=k("./XMLDTDAttList"),u=k("./XMLDTDEntity"),h=k("./XMLDTDElement"),a=k("./XMLDTDNotation"),x=k("./XMLAttribute"),d=k("./XMLStringifier"),c=k("./XMLStringWriter"),p=k("./WriterState"),D.exports=e=function(){function T(w,O,I){var R;this.name="?xml",this.type=y.Document,w||(w={}),R={},w.writer?E(w.writer)&&(R=w.writer,w.writer=new c):w.writer=new c,this.options=w,this.writer=w.writer,this.writerOptions=this.writer.filterOptions(R),this.stringify=new d(w),this.onDataCallback=O||function(){},this.onEndCallback=I||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return T.prototype.createChildNode=function(w){var O,I,R,M,F,P,X,B;switch(w.type){case y.CData:this.cdata(w.value);break;case y.Comment:this.comment(w.value);break;case y.Element:R={},X=w.attribs;for(I in X){if(!_.call(X,I))continue;O=X[I],R[I]=O.value}this.node(w.name,R);break;case y.Dummy:this.dummy();break;case y.Raw:this.raw(w.value);break;case y.Text:this.text(w.value);break;case y.ProcessingInstruction:this.instruction(w.target,w.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+w.constructor.name)}for(B=w.children,F=0,P=B.length;F<P;F++)M=B[F],this.createChildNode(M),M.type===y.Element&&this.up();return this},T.prototype.dummy=function(){return this},T.prototype.node=function(w,O,I){var R;if(w==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(w));return this.openCurrent(),w=v(w),O==null&&(O={}),O=v(O),S(O)||(R=[O,I],I=R[0],O=R[1]),this.currentNode=new l(this,w,O),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,I!=null&&this.text(I),this},T.prototype.element=function(w,O,I){var R,M,F,P,X,B;if(this.currentNode&&this.currentNode.type===y.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(w)||S(w)||b(w))for(P=this.options.noValidation,this.options.noValidation=!0,B=new o(this.options).element("TEMP_ROOT"),B.element(w),this.options.noValidation=P,X=B.children,M=0,F=X.length;M<F;M++)R=X[M],this.createChildNode(R),R.type===y.Element&&this.up();else this.node(w,O,I);return this},T.prototype.attribute=function(w,O){var I,R;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(w));if(w!=null&&(w=v(w)),S(w))for(I in w){if(!_.call(w,I))continue;R=w[I],this.attribute(I,R)}else b(O)&&(O=O.apply()),this.options.keepNullAttributes&&O==null?this.currentNode.attribs[w]=new x(this,w,""):O!=null&&(this.currentNode.attribs[w]=new x(this,w,O));return this},T.prototype.text=function(w){var O;return this.openCurrent(),O=new g(this,w),this.onData(this.writer.text(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.cdata=function(w){var O;return this.openCurrent(),O=new A(this,w),this.onData(this.writer.cdata(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.comment=function(w){var O;return this.openCurrent(),O=new m(this,w),this.onData(this.writer.comment(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.raw=function(w){var O;return this.openCurrent(),O=new s(this,w),this.onData(this.writer.raw(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.instruction=function(w,O){var I,R,M,F,P;if(this.openCurrent(),w!=null&&(w=v(w)),O!=null&&(O=v(O)),Array.isArray(w))for(I=0,F=w.length;I<F;I++)R=w[I],this.instruction(R);else if(S(w))for(R in w){if(!_.call(w,R))continue;M=w[R],this.instruction(R,M)}else b(O)&&(O=O.apply()),P=new r(this,w,O),this.onData(this.writer.processingInstruction(P,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},T.prototype.declaration=function(w,O,I){var R;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return R=new i(this,w,O,I),this.onData(this.writer.declaration(R,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.doctype=function(w,O,I){if(this.openCurrent(),w==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new t(this,O,I),this.currentNode.rootNodeName=w,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},T.prototype.dtdElement=function(w,O){var I;return this.openCurrent(),I=new h(this,w,O),this.onData(this.writer.dtdElement(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.attList=function(w,O,I,R,M){var F;return this.openCurrent(),F=new f(this,w,O,I,R,M),this.onData(this.writer.dtdAttList(F,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.entity=function(w,O){var I;return this.openCurrent(),I=new u(this,!1,w,O),this.onData(this.writer.dtdEntity(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.pEntity=function(w,O){var I;return this.openCurrent(),I=new u(this,!0,w,O),this.onData(this.writer.dtdEntity(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.notation=function(w,O){var I;return this.openCurrent(),I=new a(this,w,O),this.onData(this.writer.dtdNotation(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},T.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},T.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},T.prototype.openNode=function(w){var O,I,R,M;if(!w.isOpen){if(!this.root&&this.currentLevel===0&&w.type===y.Element&&(this.root=w),I="",w.type===y.Element){this.writerOptions.state=p.OpenTag,I=this.writer.indent(w,this.writerOptions,this.currentLevel)+"<"+w.name,M=w.attribs;for(R in M){if(!_.call(M,R))continue;O=M[R],I+=this.writer.attribute(O,this.writerOptions,this.currentLevel)}I+=(w.children?">":"/>")+this.writer.endline(w,this.writerOptions,this.currentLevel),this.writerOptions.state=p.InsideTag}else this.writerOptions.state=p.OpenTag,I=this.writer.indent(w,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+w.rootNodeName,w.pubID&&w.sysID?I+=' PUBLIC "'+w.pubID+'" "'+w.sysID+'"':w.sysID&&(I+=' SYSTEM "'+w.sysID+'"'),w.children?(I+=" [",this.writerOptions.state=p.InsideTag):(this.writerOptions.state=p.CloseTag,I+=">"),I+=this.writer.endline(w,this.writerOptions,this.currentLevel);return this.onData(I,this.currentLevel),w.isOpen=!0}},T.prototype.closeNode=function(w){var O;if(!w.isClosed)return O="",this.writerOptions.state=p.CloseTag,w.type===y.Element?O=this.writer.indent(w,this.writerOptions,this.currentLevel)+"</"+w.name+">"+this.writer.endline(w,this.writerOptions,this.currentLevel):O=this.writer.indent(w,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(w,this.writerOptions,this.currentLevel),this.writerOptions.state=p.None,this.onData(O,this.currentLevel),w.isClosed=!0},T.prototype.onData=function(w,O){return this.documentStarted=!0,this.onDataCallback(w,O+1)},T.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},T.prototype.debugInfo=function(w){return w==null?"":"node: <"+w+">"},T.prototype.ele=function(){return this.element.apply(this,arguments)},T.prototype.nod=function(w,O,I){return this.node(w,O,I)},T.prototype.txt=function(w){return this.text(w)},T.prototype.dat=function(w){return this.cdata(w)},T.prototype.com=function(w){return this.comment(w)},T.prototype.ins=function(w,O){return this.instruction(w,O)},T.prototype.dec=function(w,O,I){return this.declaration(w,O,I)},T.prototype.dtd=function(w,O,I){return this.doctype(w,O,I)},T.prototype.e=function(w,O,I){return this.element(w,O,I)},T.prototype.n=function(w,O,I){return this.node(w,O,I)},T.prototype.t=function(w){return this.text(w)},T.prototype.d=function(w){return this.cdata(w)},T.prototype.c=function(w){return this.comment(w)},T.prototype.r=function(w){return this.raw(w)},T.prototype.i=function(w,O){return this.instruction(w,O)},T.prototype.att=function(){return this.currentNode&&this.currentNode.type===y.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},T.prototype.a=function(){return this.currentNode&&this.currentNode.type===y.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},T.prototype.ent=function(w,O){return this.entity(w,O)},T.prototype.pent=function(w,O){return this.pEntity(w,O)},T.prototype.not=function(w,O){return this.notation(w,O)},T}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLAttribute":254,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDocument":268,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLStringWriter":278,"./XMLStringifier":279,"./XMLText":280}],270:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/create"),p=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,f,h=function(i,t){for(var o in t)u.call(t,o)&&(i[o]=t[o]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;f=k("./XMLNode"),A=k("./NodeType"),D.exports=m=function(a){h(i,a);function i(t){i.__super__.constructor.call(this,t),this.type=A.Dummy}return i.prototype.clone=function(){return(0,p.default)(this)},i.prototype.toString=function(t){return""},i}(f)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/create"),p=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,f,h,u,a,i,t,o,e=function(s,c){for(var d in c)l.call(c,d)&&(s[d]=c[d]);function g(){this.constructor=s}return g.prototype=c.prototype,s.prototype=new g,s.__super__=c.prototype,s},l={}.hasOwnProperty;o=k("./Utility"),t=o.isObject,i=o.isFunction,a=o.getValue,u=k("./XMLNode"),A=k("./NodeType"),m=k("./XMLAttribute"),h=k("./XMLNamedNodeMap"),D.exports=f=function(r){e(s,r);function s(c,d,g){var v,b,S,E;if(s.__super__.constructor.call(this,c),d==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(d),this.type=A.Element,this.attribs={},this.schemaTypeInfo=null,g!=null&&this.attribute(g),c.type===A.Document&&(this.isRoot=!0,this.documentObject=c,c.rootObject=this,c.children)){for(E=c.children,b=0,S=E.length;b<S;b++)if(v=E[b],v.type===A.DocType){v.name=this.name;break}}}return Object.defineProperty(s.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(s.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(s.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(s.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(s.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(s.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(s.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(s.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new h(this.attribs)),this.attributeMap}}),s.prototype.clone=function(){var c,d,g,v;g=(0,p.default)(this),g.isRoot&&(g.documentObject=null),g.attribs={},v=this.attribs;for(d in v){if(!l.call(v,d))continue;c=v[d],g.attribs[d]=c.clone()}return g.children=[],this.children.forEach(function(b){var S;return S=b.clone(),S.parent=g,g.children.push(S)}),g},s.prototype.attribute=function(c,d){var g,v;if(c!=null&&(c=a(c)),t(c))for(g in c){if(!l.call(c,g))continue;v=c[g],this.attribute(g,v)}else i(d)&&(d=d.apply()),this.options.keepNullAttributes&&d==null?this.attribs[c]=new m(this,c,""):d!=null&&(this.attribs[c]=new m(this,c,d));return this},s.prototype.removeAttribute=function(c){var d,g,v;if(c==null)throw new Error("Missing attribute name. "+this.debugInfo());if(c=a(c),Array.isArray(c))for(g=0,v=c.length;g<v;g++)d=c[g],delete this.attribs[d];else delete this.attribs[c];return this},s.prototype.toString=function(c){return this.options.writer.element(this,this.options.writer.filterOptions(c))},s.prototype.att=function(c,d){return this.attribute(c,d)},s.prototype.a=function(c,d){return this.attribute(c,d)},s.prototype.getAttribute=function(c){return this.attribs.hasOwnProperty(c)?this.attribs[c].value:null},s.prototype.setAttribute=function(c,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getAttributeNode=function(c){return this.attribs.hasOwnProperty(c)?this.attribs[c]:null},s.prototype.setAttributeNode=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.removeAttributeNode=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getElementsByTagName=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getAttributeNS=function(c,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.setAttributeNS=function(c,d,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.removeAttributeNS=function(c,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getAttributeNodeNS=function(c,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.setAttributeNodeNS=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getElementsByTagNameNS=function(c,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.hasAttribute=function(c){return this.attribs.hasOwnProperty(c)},s.prototype.hasAttributeNS=function(c,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.setIdAttribute=function(c,d){return this.attribs.hasOwnProperty(c)?this.attribs[c].isId:d},s.prototype.setIdAttributeNS=function(c,d,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.setIdAttributeNode=function(c,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getElementsByTagName=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getElementsByTagNameNS=function(c,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getElementsByClassName=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.isEqualNode=function(c){var d,g,v;if(!s.__super__.isEqualNode.apply(this,arguments).isEqualNode(c))return!1;if(c.namespaceURI!==this.namespaceURI)return!1;if(c.prefix!==this.prefix)return!1;if(c.localName!==this.localName)return!1;if(c.attribs.length!==this.attribs.length)return!1;for(d=g=0,v=this.attribs.length-1;0<=v?g<=v:g>=v;d=0<=v?++g:--g)if(!this.attribs[d].isEqualNode(c.attribs[d]))return!1;return!0},s}(u)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A;D.exports=A=function(){function m(f){this.nodes=f}return Object.defineProperty(m.prototype,"length",{get:function(){return(0,p.default)(this.nodes).length||0}}),m.prototype.clone=function(){return this.nodes=null},m.prototype.getNamedItem=function(f){return this.nodes[f]},m.prototype.setNamedItem=function(f){var h;return h=this.nodes[f.nodeName],this.nodes[f.nodeName]=f,h||null},m.prototype.removeNamedItem=function(f){var h;return h=this.nodes[f],delete this.nodes[f],h||null},m.prototype.item=function(f){return this.nodes[(0,p.default)(this.nodes)[f]]||null},m.prototype.getNamedItemNS=function(f,h){throw new Error("This DOM method is not implemented.")},m.prototype.setNamedItemNS=function(f){throw new Error("This DOM method is not implemented.")},m.prototype.removeNamedItemNS=function(f,h){throw new Error("This DOM method is not implemented.")},m}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(k,D,n){"use strict";(function(){var y,p,x,A,m,f,h,u,a,i,t,o,e,l,r,s,c,d,g,v={}.hasOwnProperty;g=k("./Utility"),d=g.isObject,c=g.isFunction,s=g.isEmpty,r=g.getValue,u=null,x=null,A=null,m=null,f=null,e=null,l=null,o=null,h=null,p=null,t=null,a=null,y=null,D.exports=i=function(){function b(S){this.parent=S,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,u||(u=k("./XMLElement"),x=k("./XMLCData"),A=k("./XMLComment"),m=k("./XMLDeclaration"),f=k("./XMLDocType"),e=k("./XMLRaw"),l=k("./XMLText"),o=k("./XMLProcessingInstruction"),h=k("./XMLDummy"),p=k("./NodeType"),t=k("./XMLNodeList"),a=k("./XMLNamedNodeMap"),y=k("./DocumentPosition"))}return Object.defineProperty(b.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(b.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(b.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(b.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(b.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new t(this.children)),this.childNodeList}}),Object.defineProperty(b.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(b.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(b.prototype,"previousSibling",{get:function(){var E;return E=this.parent.children.indexOf(this),this.parent.children[E-1]||null}}),Object.defineProperty(b.prototype,"nextSibling",{get:function(){var E;return E=this.parent.children.indexOf(this),this.parent.children[E+1]||null}}),Object.defineProperty(b.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(b.prototype,"textContent",{get:function(){var E,C,_,T,w;if(this.nodeType===p.Element||this.nodeType===p.DocumentFragment){for(w="",T=this.children,C=0,_=T.length;C<_;C++)E=T[C],E.textContent&&(w+=E.textContent);return w}else return null},set:function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),b.prototype.setParent=function(S){var E,C,_,T,w;for(this.parent=S,S&&(this.options=S.options,this.stringify=S.stringify),T=this.children,w=[],C=0,_=T.length;C<_;C++)E=T[C],w.push(E.setParent(this));return w},b.prototype.element=function(S,E,C){var _,T,w,O,I,R,M,F,P,X,B;if(R=null,E===null&&C==null&&(P=[{},null],E=P[0],C=P[1]),E==null&&(E={}),E=r(E),d(E)||(X=[E,C],C=X[0],E=X[1]),S!=null&&(S=r(S)),Array.isArray(S))for(w=0,M=S.length;w<M;w++)T=S[w],R=this.element(T);else if(c(S))R=this.element(S.apply());else if(d(S))for(I in S){if(!v.call(S,I))continue;if(B=S[I],c(B)&&(B=B.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&I.indexOf(this.stringify.convertAttKey)===0)R=this.attribute(I.substr(this.stringify.convertAttKey.length),B);else if(!this.options.separateArrayItems&&Array.isArray(B)&&s(B))R=this.dummy();else if(d(B)&&s(B))R=this.element(I);else if(!this.options.keepNullNodes&&B==null)R=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(B))for(O=0,F=B.length;O<F;O++)T=B[O],_={},_[I]=T,R=this.element(_);else d(B)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&I.indexOf(this.stringify.convertTextKey)===0?R=this.element(B):(R=this.element(I),R.element(B)):R=this.element(I,B)}else!this.options.keepNullNodes&&C===null?R=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&S.indexOf(this.stringify.convertTextKey)===0?R=this.text(C):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&S.indexOf(this.stringify.convertCDataKey)===0?R=this.cdata(C):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&S.indexOf(this.stringify.convertCommentKey)===0?R=this.comment(C):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&S.indexOf(this.stringify.convertRawKey)===0?R=this.raw(C):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&S.indexOf(this.stringify.convertPIKey)===0?R=this.instruction(S.substr(this.stringify.convertPIKey.length),C):R=this.node(S,E,C);if(R==null)throw new Error("Could not create any elements with: "+S+". "+this.debugInfo());return R},b.prototype.insertBefore=function(S,E,C){var _,T,w,O,I;if(S!=null?S.type:void 0)return w=S,O=E,w.setParent(this),O?(T=children.indexOf(O),I=children.splice(T),children.push(w),Array.prototype.push.apply(children,I)):children.push(w),w;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(S));return T=this.parent.children.indexOf(this),I=this.parent.children.splice(T),_=this.parent.element(S,E,C),Array.prototype.push.apply(this.parent.children,I),_},b.prototype.insertAfter=function(S,E,C){var _,T,w;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(S));return T=this.parent.children.indexOf(this),w=this.parent.children.splice(T+1),_=this.parent.element(S,E,C),Array.prototype.push.apply(this.parent.children,w),_},b.prototype.remove=function(){var S,E;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return S=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[S,S-S+1].concat(E=[])),this.parent},b.prototype.node=function(S,E,C){var _,T;return S!=null&&(S=r(S)),E||(E={}),E=r(E),d(E)||(T=[E,C],C=T[0],E=T[1]),_=new u(this,S,E),C!=null&&_.text(C),this.children.push(_),_},b.prototype.text=function(S){var E;return d(S)&&this.element(S),E=new l(this,S),this.children.push(E),this},b.prototype.cdata=function(S){var E;return E=new x(this,S),this.children.push(E),this},b.prototype.comment=function(S){var E;return E=new A(this,S),this.children.push(E),this},b.prototype.commentBefore=function(S){var E,C,_;return C=this.parent.children.indexOf(this),_=this.parent.children.splice(C),E=this.parent.comment(S),Array.prototype.push.apply(this.parent.children,_),this},b.prototype.commentAfter=function(S){var E,C,_;return C=this.parent.children.indexOf(this),_=this.parent.children.splice(C+1),E=this.parent.comment(S),Array.prototype.push.apply(this.parent.children,_),this},b.prototype.raw=function(S){var E;return E=new e(this,S),this.children.push(E),this},b.prototype.dummy=function(){var S;return S=new h(this),S},b.prototype.instruction=function(S,E){var C,_,T,w,O;if(S!=null&&(S=r(S)),E!=null&&(E=r(E)),Array.isArray(S))for(w=0,O=S.length;w<O;w++)C=S[w],this.instruction(C);else if(d(S))for(C in S){if(!v.call(S,C))continue;_=S[C],this.instruction(C,_)}else c(E)&&(E=E.apply()),T=new o(this,S,E),this.children.push(T);return this},b.prototype.instructionBefore=function(S,E){var C,_,T;return _=this.parent.children.indexOf(this),T=this.parent.children.splice(_),C=this.parent.instruction(S,E),Array.prototype.push.apply(this.parent.children,T),this},b.prototype.instructionAfter=function(S,E){var C,_,T;return _=this.parent.children.indexOf(this),T=this.parent.children.splice(_+1),C=this.parent.instruction(S,E),Array.prototype.push.apply(this.parent.children,T),this},b.prototype.declaration=function(S,E,C){var _,T;return _=this.document(),T=new m(_,S,E,C),_.children.length===0?_.children.unshift(T):_.children[0].type===p.Declaration?_.children[0]=T:_.children.unshift(T),_.root()||_},b.prototype.dtd=function(S,E){var C,_,T,w,O,I,R,M,F,P;for(_=this.document(),T=new f(_,S,E),F=_.children,w=O=0,R=F.length;O<R;w=++O)if(C=F[w],C.type===p.DocType)return _.children[w]=T,T;for(P=_.children,w=I=0,M=P.length;I<M;w=++I)if(C=P[w],C.isRoot)return _.children.splice(w,0,T),T;return _.children.push(T),T},b.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},b.prototype.root=function(){var S;for(S=this;S;){if(S.type===p.Document)return S.rootObject;if(S.isRoot)return S;S=S.parent}},b.prototype.document=function(){var S;for(S=this;S;){if(S.type===p.Document)return S;S=S.parent}},b.prototype.end=function(S){return this.document().end(S)},b.prototype.prev=function(){var S;if(S=this.parent.children.indexOf(this),S<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[S-1]},b.prototype.next=function(){var S;if(S=this.parent.children.indexOf(this),S===-1||S===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[S+1]},b.prototype.importDocument=function(S){var E;return E=S.root().clone(),E.parent=this,E.isRoot=!1,this.children.push(E),this},b.prototype.debugInfo=function(S){var E,C;return S=S||this.name,S==null&&!((E=this.parent)!=null?E.name:void 0)?"":S==null?"parent: <"+this.parent.name+">":((C=this.parent)!=null?C.name:void 0)?"node: <"+S+">, parent: <"+this.parent.name+">":"node: <"+S+">"},b.prototype.ele=function(S,E,C){return this.element(S,E,C)},b.prototype.nod=function(S,E,C){return this.node(S,E,C)},b.prototype.txt=function(S){return this.text(S)},b.prototype.dat=function(S){return this.cdata(S)},b.prototype.com=function(S){return this.comment(S)},b.prototype.ins=function(S,E){return this.instruction(S,E)},b.prototype.doc=function(){return this.document()},b.prototype.dec=function(S,E,C){return this.declaration(S,E,C)},b.prototype.e=function(S,E,C){return this.element(S,E,C)},b.prototype.n=function(S,E,C){return this.node(S,E,C)},b.prototype.t=function(S){return this.text(S)},b.prototype.d=function(S){return this.cdata(S)},b.prototype.c=function(S){return this.comment(S)},b.prototype.r=function(S){return this.raw(S)},b.prototype.i=function(S,E){return this.instruction(S,E)},b.prototype.u=function(){return this.up()},b.prototype.importXMLBuilder=function(S){return this.importDocument(S)},b.prototype.replaceChild=function(S,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.removeChild=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.appendChild=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.hasChildNodes=function(){return this.children.length!==0},b.prototype.cloneNode=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isSupported=function(S,E){return!0},b.prototype.hasAttributes=function(){return this.attribs.length!==0},b.prototype.compareDocumentPosition=function(S){var E,C;return E=this,E===S?0:this.document()!==S.document()?(C=y.Disconnected|y.ImplementationSpecific,Math.random()<.5?C|=y.Preceding:C|=y.Following,C):E.isAncestor(S)?y.Contains|y.Preceding:E.isDescendant(S)?y.Contains|y.Following:E.isPreceding(S)?y.Preceding:y.Following},b.prototype.isSameNode=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.lookupPrefix=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isDefaultNamespace=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.lookupNamespaceURI=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isEqualNode=function(S){var E,C,_;if(S.nodeType!==this.nodeType)return!1;if(S.children.length!==this.children.length)return!1;for(E=C=0,_=this.children.length-1;0<=_?C<=_:C>=_;E=0<=_?++C:--C)if(!this.children[E].isEqualNode(S.children[E]))return!1;return!0},b.prototype.getFeature=function(S,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.setUserData=function(S,E,C){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getUserData=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.contains=function(S){return S?S===this||this.isDescendant(S):!1},b.prototype.isDescendant=function(S){var E,C,_,T,w;for(w=this.children,_=0,T=w.length;_<T;_++){if(E=w[_],S===E)return!0;if(C=E.isDescendant(S),C)return!0}return!1},b.prototype.isAncestor=function(S){return S.isDescendant(this)},b.prototype.isPreceding=function(S){var E,C;return E=this.treePosition(S),C=this.treePosition(this),E===-1||C===-1?!1:E<C},b.prototype.isFollowing=function(S){var E,C;return E=this.treePosition(S),C=this.treePosition(this),E===-1||C===-1?!1:E>C},b.prototype.treePosition=function(S){var E,C;return C=0,E=!1,this.foreachTreeNode(this.document(),function(_){if(C++,!E&&_===S)return E=!0}),E?C:-1},b.prototype.foreachTreeNode=function(S,E){var C,_,T,w,O;for(S||(S=this.document()),w=S.children,_=0,T=w.length;_<T;_++){if(C=w[_],O=E(C))return O;if(O=this.foreachTreeNode(C,E),O)return O}},b}()}).call(void 0)},{"./DocumentPosition":250,"./NodeType":251,"./Utility":252,"./XMLCData":255,"./XMLComment":257,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLNamedNodeMap":272,"./XMLNodeList":274,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],274:[function(k,D,n){"use strict";(function(){var y;D.exports=y=function(){function p(x){this.nodes=x}return Object.defineProperty(p.prototype,"length",{get:function(){return this.nodes.length||0}}),p.prototype.clone=function(){return this.nodes=null},p.prototype.item=function(x){return this.nodes[x]||null},p}()}).call(void 0)},{}],275:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/create"),p=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,f,h=function(i,t){for(var o in t)u.call(t,o)&&(i[o]=t[o]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;A=k("./NodeType"),m=k("./XMLCharacterData"),D.exports=f=function(a){h(i,a);function i(t,o,e){if(i.__super__.constructor.call(this,t),o==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=A.ProcessingInstruction,this.target=this.stringify.insTarget(o),this.name=this.target,e&&(this.value=this.stringify.insValue(e))}return i.prototype.clone=function(){return(0,p.default)(this)},i.prototype.toString=function(t){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(t))},i.prototype.isEqualNode=function(t){return i.__super__.isEqualNode.apply(this,arguments).isEqualNode(t)?!(t.target!==this.target):!1},i}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/create"),p=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,f,h=function(i,t){for(var o in t)u.call(t,o)&&(i[o]=t[o]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;A=k("./NodeType"),m=k("./XMLNode"),D.exports=f=function(a){h(i,a);function i(t,o){if(i.__super__.constructor.call(this,t),o==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=A.Raw,this.value=this.stringify.raw(o)}return i.prototype.clone=function(){return(0,p.default)(this)},i.prototype.toString=function(t){return this.options.writer.raw(this,this.options.writer.filterOptions(t))},i}(m)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(k,D,n){"use strict";(function(){var y,p,x,A,m=function(u,a){for(var i in a)f.call(a,i)&&(u[i]=a[i]);function t(){this.constructor=u}return t.prototype=a.prototype,u.prototype=new t,u.__super__=a.prototype,u},f={}.hasOwnProperty;y=k("./NodeType"),A=k("./XMLWriterBase"),p=k("./WriterState"),D.exports=x=function(h){m(u,h);function u(a,i){this.stream=a,u.__super__.constructor.call(this,i)}return u.prototype.endline=function(a,i,t){return a.isLastRootNode&&i.state===p.CloseTag?"":u.__super__.endline.call(this,a,i,t)},u.prototype.document=function(a,i){var t,o,e,l,r,s,c,d,g;for(c=a.children,o=e=0,r=c.length;e<r;o=++e)t=c[o],t.isLastRootNode=o===a.children.length-1;for(i=this.filterOptions(i),d=a.children,g=[],l=0,s=d.length;l<s;l++)t=d[l],g.push(this.writeChildNode(t,i,0));return g},u.prototype.attribute=function(a,i,t){return this.stream.write(u.__super__.attribute.call(this,a,i,t))},u.prototype.cdata=function(a,i,t){return this.stream.write(u.__super__.cdata.call(this,a,i,t))},u.prototype.comment=function(a,i,t){return this.stream.write(u.__super__.comment.call(this,a,i,t))},u.prototype.declaration=function(a,i,t){return this.stream.write(u.__super__.declaration.call(this,a,i,t))},u.prototype.docType=function(a,i,t){var o,e,l,r;if(t||(t=0),this.openNode(a,i,t),i.state=p.OpenTag,this.stream.write(this.indent(a,i,t)),this.stream.write("<!DOCTYPE "+a.root().name),a.pubID&&a.sysID?this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"'):a.sysID&&this.stream.write(' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(a,i,t)),i.state=p.InsideTag,r=a.children,e=0,l=r.length;e<l;e++)o=r[e],this.writeChildNode(o,i,t+1);i.state=p.CloseTag,this.stream.write("]")}return i.state=p.CloseTag,this.stream.write(i.spaceBeforeSlash+">"),this.stream.write(this.endline(a,i,t)),i.state=p.None,this.closeNode(a,i,t)},u.prototype.element=function(a,i,t){var o,e,l,r,s,c,d,g,v,b;t||(t=0),this.openNode(a,i,t),i.state=p.OpenTag,this.stream.write(this.indent(a,i,t)+"<"+a.name),v=a.attribs;for(d in v){if(!f.call(v,d))continue;o=v[d],this.attribute(o,i,t)}if(l=a.children.length,r=l===0?null:a.children[0],l===0||a.children.every(function(S){return(S.type===y.Text||S.type===y.Raw)&&S.value===""}))i.allowEmpty?(this.stream.write(">"),i.state=p.CloseTag,this.stream.write("</"+a.name+">")):(i.state=p.CloseTag,this.stream.write(i.spaceBeforeSlash+"/>"));else if(i.pretty&&l===1&&(r.type===y.Text||r.type===y.Raw)&&r.value!=null)this.stream.write(">"),i.state=p.InsideTag,i.suppressPrettyCount++,g=!0,this.writeChildNode(r,i,t+1),i.suppressPrettyCount--,g=!1,i.state=p.CloseTag,this.stream.write("</"+a.name+">");else{for(this.stream.write(">"+this.endline(a,i,t)),i.state=p.InsideTag,b=a.children,s=0,c=b.length;s<c;s++)e=b[s],this.writeChildNode(e,i,t+1);i.state=p.CloseTag,this.stream.write(this.indent(a,i,t)+"</"+a.name+">")}return this.stream.write(this.endline(a,i,t)),i.state=p.None,this.closeNode(a,i,t)},u.prototype.processingInstruction=function(a,i,t){return this.stream.write(u.__super__.processingInstruction.call(this,a,i,t))},u.prototype.raw=function(a,i,t){return this.stream.write(u.__super__.raw.call(this,a,i,t))},u.prototype.text=function(a,i,t){return this.stream.write(u.__super__.text.call(this,a,i,t))},u.prototype.dtdAttList=function(a,i,t){return this.stream.write(u.__super__.dtdAttList.call(this,a,i,t))},u.prototype.dtdElement=function(a,i,t){return this.stream.write(u.__super__.dtdElement.call(this,a,i,t))},u.prototype.dtdEntity=function(a,i,t){return this.stream.write(u.__super__.dtdEntity.call(this,a,i,t))},u.prototype.dtdNotation=function(a,i,t){return this.stream.write(u.__super__.dtdNotation.call(this,a,i,t))},u}(A)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(k,D,n){"use strict";(function(){var y,p,x=function(f,h){for(var u in h)A.call(h,u)&&(f[u]=h[u]);function a(){this.constructor=f}return a.prototype=h.prototype,f.prototype=new a,f.__super__=h.prototype,f},A={}.hasOwnProperty;p=k("./XMLWriterBase"),D.exports=y=function(m){x(f,m);function f(h){f.__super__.constructor.call(this,h)}return f.prototype.document=function(h,u){var a,i,t,o,e;for(u=this.filterOptions(u),o="",e=h.children,i=0,t=e.length;i<t;i++)a=e[i],o+=this.writeChildNode(a,u,0);return u.pretty&&o.slice(-u.newline.length)===u.newline&&(o=o.slice(0,-u.newline.length)),o},f}(p)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(k,D,n){"use strict";(function(){var y,p=function(m,f){return function(){return m.apply(f,arguments)}},x={}.hasOwnProperty;D.exports=y=function(){function A(m){this.assertLegalName=p(this.assertLegalName,this),this.assertLegalChar=p(this.assertLegalChar,this);var f,h,u;m||(m={}),this.options=m,this.options.version||(this.options.version="1.0"),h=m.stringify||{};for(f in h){if(!x.call(h,f))continue;u=h[f],this[f]=u}}return A.prototype.name=function(m){return this.options.noValidation?m:this.assertLegalName(""+m||"")},A.prototype.text=function(m){return this.options.noValidation?m:this.assertLegalChar(this.textEscape(""+m||""))},A.prototype.cdata=function(m){return this.options.noValidation?m:(m=""+m||"",m=m.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(m))},A.prototype.comment=function(m){if(this.options.noValidation)return m;if(m=""+m||"",m.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+m);return this.assertLegalChar(m)},A.prototype.raw=function(m){return this.options.noValidation?m:""+m||""},A.prototype.attValue=function(m){return this.options.noValidation?m:this.assertLegalChar(this.attEscape(m=""+m||""))},A.prototype.insTarget=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.insValue=function(m){if(this.options.noValidation)return m;if(m=""+m||"",m.match(/\?>/))throw new Error("Invalid processing instruction value: "+m);return this.assertLegalChar(m)},A.prototype.xmlVersion=function(m){if(this.options.noValidation)return m;if(m=""+m||"",!m.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+m);return m},A.prototype.xmlEncoding=function(m){if(this.options.noValidation)return m;if(m=""+m||"",!m.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+m);return this.assertLegalChar(m)},A.prototype.xmlStandalone=function(m){return this.options.noValidation?m:m?"yes":"no"},A.prototype.dtdPubID=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.dtdSysID=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.dtdElementValue=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.dtdAttType=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.dtdAttDefault=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.dtdEntityValue=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.dtdNData=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.convertAttKey="@",A.prototype.convertPIKey="?",A.prototype.convertTextKey="#text",A.prototype.convertCDataKey="#cdata",A.prototype.convertCommentKey="#comment",A.prototype.convertRawKey="#raw",A.prototype.assertLegalChar=function(m){var f,h;if(this.options.noValidation)return m;if(f="",this.options.version==="1.0"){if(f=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,h=m.match(f))throw new Error("Invalid character in string: "+m+" at index "+h.index)}else if(this.options.version==="1.1"&&(f=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,h=m.match(f)))throw new Error("Invalid character in string: "+m+" at index "+h.index);return m},A.prototype.assertLegalName=function(m){var f;if(this.options.noValidation)return m;if(this.assertLegalChar(m),f=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!m.match(f))throw new Error("Invalid character in name");return m},A.prototype.textEscape=function(m){var f;return this.options.noValidation?m:(f=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,m.replace(f,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},A.prototype.attEscape=function(m){var f;return this.options.noValidation?m:(f=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,m.replace(f,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},A}()}).call(void 0)},{}],280:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/create"),p=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,f,h=function(i,t){for(var o in t)u.call(t,o)&&(i[o]=t[o]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;A=k("./NodeType"),m=k("./XMLCharacterData"),D.exports=f=function(a){h(i,a);function i(t,o){if(i.__super__.constructor.call(this,t),o==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=A.Text,this.value=this.stringify.text(o)}return Object.defineProperty(i.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(i.prototype,"wholeText",{get:function(){var o,e,l;for(l="",e=this.previousSibling;e;)l=e.data+l,e=e.previousSibling;for(l+=this.data,o=this.nextSibling;o;)l=l+o.data,o=o.nextSibling;return l}}),i.prototype.clone=function(){return(0,p.default)(this)},i.prototype.toString=function(t){return this.options.writer.text(this,this.options.writer.filterOptions(t))},i.prototype.splitText=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.replaceWholeText=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(k,D,n){"use strict";(function(){var y,p,x,A,m,f,h,u,a,i,t,o,e,l,r,s,c,d={}.hasOwnProperty;c=k("./Utility").assign,y=k("./NodeType"),a=k("./XMLDeclaration"),i=k("./XMLDocType"),x=k("./XMLCData"),A=k("./XMLComment"),o=k("./XMLElement"),l=k("./XMLRaw"),r=k("./XMLText"),e=k("./XMLProcessingInstruction"),t=k("./XMLDummy"),m=k("./XMLDTDAttList"),f=k("./XMLDTDElement"),h=k("./XMLDTDEntity"),u=k("./XMLDTDNotation"),p=k("./WriterState"),D.exports=s=function(){function g(v){var b,S,E;v||(v={}),this.options=v,S=v.writer||{};for(b in S){if(!d.call(S,b))continue;E=S[b],this["_"+b]=this[b],this[b]=E}}return g.prototype.filterOptions=function(v){var b,S,E,C,_,T,w,O;return v||(v={}),v=c({},this.options,v),b={writer:this},b.pretty=v.pretty||!1,b.allowEmpty=v.allowEmpty||!1,b.indent=(S=v.indent)!=null?S:" ",b.newline=(E=v.newline)!=null?E:`
|
|
|
`,b.offset=(C=v.offset)!=null?C:0,b.dontPrettyTextNodes=(_=(T=v.dontPrettyTextNodes)!=null?T:v.dontprettytextnodes)!=null?_:0,b.spaceBeforeSlash=(w=(O=v.spaceBeforeSlash)!=null?O:v.spacebeforeslash)!=null?w:"",b.spaceBeforeSlash===!0&&(b.spaceBeforeSlash=" "),b.suppressPrettyCount=0,b.user={},b.state=p.None,b},g.prototype.indent=function(v,b,S){var E;return!b.pretty||b.suppressPrettyCount?"":b.pretty&&(E=(S||0)+b.offset+1,E>0)?new Array(E).join(b.indent):""},g.prototype.endline=function(v,b,S){return!b.pretty||b.suppressPrettyCount?"":b.newline},g.prototype.attribute=function(v,b,S){var E;return this.openAttribute(v,b,S),E=" "+v.name+'="'+v.value+'"',this.closeAttribute(v,b,S),E},g.prototype.cdata=function(v,b,S){var E;return this.openNode(v,b,S),b.state=p.OpenTag,E=this.indent(v,b,S)+"<![CDATA[",b.state=p.InsideTag,E+=v.value,b.state=p.CloseTag,E+="]]>"+this.endline(v,b,S),b.state=p.None,this.closeNode(v,b,S),E},g.prototype.comment=function(v,b,S){var E;return this.openNode(v,b,S),b.state=p.OpenTag,E=this.indent(v,b,S)+"<!-- ",b.state=p.InsideTag,E+=v.value,b.state=p.CloseTag,E+=" -->"+this.endline(v,b,S),b.state=p.None,this.closeNode(v,b,S),E},g.prototype.declaration=function(v,b,S){var E;return this.openNode(v,b,S),b.state=p.OpenTag,E=this.indent(v,b,S)+"<?xml",b.state=p.InsideTag,E+=' version="'+v.version+'"',v.encoding!=null&&(E+=' encoding="'+v.encoding+'"'),v.standalone!=null&&(E+=' standalone="'+v.standalone+'"'),b.state=p.CloseTag,E+=b.spaceBeforeSlash+"?>",E+=this.endline(v,b,S),b.state=p.None,this.closeNode(v,b,S),E},g.prototype.docType=function(v,b,S){var E,C,_,T,w;if(S||(S=0),this.openNode(v,b,S),b.state=p.OpenTag,T=this.indent(v,b,S),T+="<!DOCTYPE "+v.root().name,v.pubID&&v.sysID?T+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.sysID&&(T+=' SYSTEM "'+v.sysID+'"'),v.children.length>0){for(T+=" [",T+=this.endline(v,b,S),b.state=p.InsideTag,w=v.children,C=0,_=w.length;C<_;C++)E=w[C],T+=this.writeChildNode(E,b,S+1);b.state=p.CloseTag,T+="]"}return b.state=p.CloseTag,T+=b.spaceBeforeSlash+">",T+=this.endline(v,b,S),b.state=p.None,this.closeNode(v,b,S),T},g.prototype.element=function(v,b,S){var E,C,_,T,w,O,I,R,M,F,P,X,B,j;S||(S=0),F=!1,P="",this.openNode(v,b,S),b.state=p.OpenTag,P+=this.indent(v,b,S)+"<"+v.name,X=v.attribs;for(M in X){if(!d.call(X,M))continue;E=X[M],P+=this.attribute(E,b,S)}if(_=v.children.length,T=_===0?null:v.children[0],_===0||v.children.every(function(W){return(W.type===y.Text||W.type===y.Raw)&&W.value===""}))b.allowEmpty?(P+=">",b.state=p.CloseTag,P+="</"+v.name+">"+this.endline(v,b,S)):(b.state=p.CloseTag,P+=b.spaceBeforeSlash+"/>"+this.endline(v,b,S));else if(b.pretty&&_===1&&(T.type===y.Text||T.type===y.Raw)&&T.value!=null)P+=">",b.state=p.InsideTag,b.suppressPrettyCount++,F=!0,P+=this.writeChildNode(T,b,S+1),b.suppressPrettyCount--,F=!1,b.state=p.CloseTag,P+="</"+v.name+">"+this.endline(v,b,S);else{if(b.dontPrettyTextNodes){for(B=v.children,w=0,I=B.length;w<I;w++)if(C=B[w],(C.type===y.Text||C.type===y.Raw)&&C.value!=null){b.suppressPrettyCount++,F=!0;break}}for(P+=">"+this.endline(v,b,S),b.state=p.InsideTag,j=v.children,O=0,R=j.length;O<R;O++)C=j[O],P+=this.writeChildNode(C,b,S+1);b.state=p.CloseTag,P+=this.indent(v,b,S)+"</"+v.name+">",F&&b.suppressPrettyCount--,P+=this.endline(v,b,S),b.state=p.None}return this.closeNode(v,b,S),P},g.prototype.writeChildNode=function(v,b,S){switch(v.type){case y.CData:return this.cdata(v,b,S);case y.Comment:return this.comment(v,b,S);case y.Element:return this.element(v,b,S);case y.Raw:return this.raw(v,b,S);case y.Text:return this.text(v,b,S);case y.ProcessingInstruction:return this.processingInstruction(v,b,S);case y.Dummy:return"";case y.Declaration:return this.declaration(v,b,S);case y.DocType:return this.docType(v,b,S);case y.AttributeDeclaration:return this.dtdAttList(v,b,S);case y.ElementDeclaration:return this.dtdElement(v,b,S);case y.EntityDeclaration:return this.dtdEntity(v,b,S);case y.NotationDeclaration:return this.dtdNotation(v,b,S);default:throw new Error("Unknown XML node type: "+v.constructor.name)}},g.prototype.processingInstruction=function(v,b,S){var E;return this.openNode(v,b,S),b.state=p.OpenTag,E=this.indent(v,b,S)+"<?",b.state=p.InsideTag,E+=v.target,v.value&&(E+=" "+v.value),b.state=p.CloseTag,E+=b.spaceBeforeSlash+"?>",E+=this.endline(v,b,S),b.state=p.None,this.closeNode(v,b,S),E},g.prototype.raw=function(v,b,S){var E;return this.openNode(v,b,S),b.state=p.OpenTag,E=this.indent(v,b,S),b.state=p.InsideTag,E+=v.value,b.state=p.CloseTag,E+=this.endline(v,b,S),b.state=p.None,this.closeNode(v,b,S),E},g.prototype.text=function(v,b,S){var E;return this.openNode(v,b,S),b.state=p.OpenTag,E=this.indent(v,b,S),b.state=p.InsideTag,E+=v.value,b.state=p.CloseTag,E+=this.endline(v,b,S),b.state=p.None,this.closeNode(v,b,S),E},g.prototype.dtdAttList=function(v,b,S){var E;return this.openNode(v,b,S),b.state=p.OpenTag,E=this.indent(v,b,S)+"<!ATTLIST",b.state=p.InsideTag,E+=" "+v.elementName+" "+v.attributeName+" "+v.attributeType,v.defaultValueType!=="#DEFAULT"&&(E+=" "+v.defaultValueType),v.defaultValue&&(E+=' "'+v.defaultValue+'"'),b.state=p.CloseTag,E+=b.spaceBeforeSlash+">"+this.endline(v,b,S),b.state=p.None,this.closeNode(v,b,S),E},g.prototype.dtdElement=function(v,b,S){var E;return this.openNode(v,b,S),b.state=p.OpenTag,E=this.indent(v,b,S)+"<!ELEMENT",b.state=p.InsideTag,E+=" "+v.name+" "+v.value,b.state=p.CloseTag,E+=b.spaceBeforeSlash+">"+this.endline(v,b,S),b.state=p.None,this.closeNode(v,b,S),E},g.prototype.dtdEntity=function(v,b,S){var E;return this.openNode(v,b,S),b.state=p.OpenTag,E=this.indent(v,b,S)+"<!ENTITY",b.state=p.InsideTag,v.pe&&(E+=" %"),E+=" "+v.name,v.value?E+=' "'+v.value+'"':(v.pubID&&v.sysID?E+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.sysID&&(E+=' SYSTEM "'+v.sysID+'"'),v.nData&&(E+=" NDATA "+v.nData)),b.state=p.CloseTag,E+=b.spaceBeforeSlash+">"+this.endline(v,b,S),b.state=p.None,this.closeNode(v,b,S),E},g.prototype.dtdNotation=function(v,b,S){var E;return this.openNode(v,b,S),b.state=p.OpenTag,E=this.indent(v,b,S)+"<!NOTATION",b.state=p.InsideTag,E+=" "+v.name,v.pubID&&v.sysID?E+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.pubID?E+=' PUBLIC "'+v.pubID+'"':v.sysID&&(E+=' SYSTEM "'+v.sysID+'"'),b.state=p.CloseTag,E+=b.spaceBeforeSlash+">"+this.endline(v,b,S),b.state=p.None,this.closeNode(v,b,S),E},g.prototype.openNode=function(v,b,S){},g.prototype.closeNode=function(v,b,S){},g.prototype.openAttribute=function(v,b,S){},g.prototype.closeAttribute=function(v,b,S){},g}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],282:[function(k,D,n){"use strict";(function(){var y,p,x,A,m,f,h,u,a,i;i=k("./Utility"),u=i.assign,a=i.isFunction,x=k("./XMLDOMImplementation"),A=k("./XMLDocument"),m=k("./XMLDocumentCB"),h=k("./XMLStringWriter"),f=k("./XMLStreamWriter"),y=k("./NodeType"),p=k("./WriterState"),D.exports.create=function(t,o,e,l){var r,s;if(t==null)throw new Error("Root element needs a name.");return l=u({},o,e,l),r=new A(l),s=r.element(t),l.headless||(r.declaration(l),(l.pubID!=null||l.sysID!=null)&&r.dtd(l)),s},D.exports.begin=function(t,o,e){var l;return a(t)&&(l=[t,o],o=l[0],e=l[1],t={}),o?new m(t,o,e):new A(t)},D.exports.stringWriter=function(t){return new h(t)},D.exports.streamWriter=function(t,o){return new f(t,o)},D.exports.implementation=new x,D.exports.nodeType=y,D.exports.writerState=p}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(k,D,n){D.exports=p;var y=Object.prototype.hasOwnProperty;function p(){for(var x={},A=0;A<arguments.length;A++){var m=arguments[A];for(var f in m)y.call(m,f)&&(x[f]=m[f])}return x}},{}],284:[function(k,D,n){"use strict";var y=k("buffer").Buffer,p=k("./sha"),x=k("./md5"),A={sha1:p,md5:x},m=64,f=y.alloc(m);f.fill(0);function h(i,t,o){y.isBuffer(t)||(t=y.from(t)),y.isBuffer(o)||(o=y.from(o)),t.length>m?t=i(t):t.length<m&&(t=y.concat([t,f],m));for(var e=y.alloc(m),l=y.alloc(m),r=0;r<m;r++)e[r]=t[r]^54,l[r]=t[r]^92;var s=i(y.concat([e,o]));return i(y.concat([l,s]))}function u(i,t){i=i||"sha1";var o=A[i],e=[],l=0;return o||a("algorithm:",i,"is not yet supported"),{update:function(s){return y.isBuffer(s)||(s=y.from(s)),e.push(s),l+=s.length,this},digest:function(s){var c=y.concat(e),d=t?h(o,t,c):o(c);return e=null,s?d.toString(s):d}}}function a(){var i=[].slice.call(arguments).join(" ");throw new Error([i,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}n.createHash=function(i){return u(i)},n.createHmac=function(i,t){return u(i,t)},n.createCredentials=function(){a("sorry,createCredentials is not implemented yet")},n.createCipher=function(){a("sorry,createCipher is not implemented yet")},n.createCipheriv=function(){a("sorry,createCipheriv is not implemented yet")},n.createDecipher=function(){a("sorry,createDecipher is not implemented yet")},n.createDecipheriv=function(){a("sorry,createDecipheriv is not implemented yet")},n.createSign=function(){a("sorry,createSign is not implemented yet")},n.createVerify=function(){a("sorry,createVerify is not implemented yet")},n.createDiffieHellman=function(){a("sorry,createDiffieHellman is not implemented yet")},n.pbkdf2=function(){a("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(k,D,n){"use strict";var y=k("buffer").Buffer,p=4,x=y.alloc(p);x.fill(0);var A=8;function m(u,a){if(u.length%p!==0){var i=u.length+(p-u.length%p);u=y.concat([u,x],i)}for(var t=[],o=a?u.readInt32BE:u.readInt32LE,e=0;e<u.length;e+=p)t.push(o.call(u,e));return t}function f(u,a,i){for(var t=y.alloc(a),o=i?t.writeInt32BE:t.writeInt32LE,e=0;e<u.length;e++)o.call(t,u[e],e*4,!0);return t}function h(u,a,i,t){y.isBuffer(u)||(u=y.from(u));var o=a(m(u,t),u.length*A);return f(o,i,t)}D.exports={hash:h}},{buffer:73}],286:[function(k,D,n){"use strict";var y=k("./helpers");function p(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function x(t,o){t[o>>5]|=128<<o%32,t[(o+64>>>9<<4)+14]=o;for(var e=1732584193,l=-271733879,r=-1732584194,s=271733878,c=0;c<t.length;c+=16){var d=e,g=l,v=r,b=s;e=m(e,l,r,s,t[c+0],7,-680876936),s=m(s,e,l,r,t[c+1],12,-389564586),r=m(r,s,e,l,t[c+2],17,606105819),l=m(l,r,s,e,t[c+3],22,-1044525330),e=m(e,l,r,s,t[c+4],7,-176418897),s=m(s,e,l,r,t[c+5],12,1200080426),r=m(r,s,e,l,t[c+6],17,-1473231341),l=m(l,r,s,e,t[c+7],22,-45705983),e=m(e,l,r,s,t[c+8],7,1770035416),s=m(s,e,l,r,t[c+9],12,-1958414417),r=m(r,s,e,l,t[c+10],17,-42063),l=m(l,r,s,e,t[c+11],22,-1990404162),e=m(e,l,r,s,t[c+12],7,1804603682),s=m(s,e,l,r,t[c+13],12,-40341101),r=m(r,s,e,l,t[c+14],17,-1502002290),l=m(l,r,s,e,t[c+15],22,1236535329),e=f(e,l,r,s,t[c+1],5,-165796510),s=f(s,e,l,r,t[c+6],9,-1069501632),r=f(r,s,e,l,t[c+11],14,643717713),l=f(l,r,s,e,t[c+0],20,-373897302),e=f(e,l,r,s,t[c+5],5,-701558691),s=f(s,e,l,r,t[c+10],9,38016083),r=f(r,s,e,l,t[c+15],14,-660478335),l=f(l,r,s,e,t[c+4],20,-405537848),e=f(e,l,r,s,t[c+9],5,568446438),s=f(s,e,l,r,t[c+14],9,-1019803690),r=f(r,s,e,l,t[c+3],14,-187363961),l=f(l,r,s,e,t[c+8],20,1163531501),e=f(e,l,r,s,t[c+13],5,-1444681467),s=f(s,e,l,r,t[c+2],9,-51403784),r=f(r,s,e,l,t[c+7],14,1735328473),l=f(l,r,s,e,t[c+12],20,-1926607734),e=h(e,l,r,s,t[c+5],4,-378558),s=h(s,e,l,r,t[c+8],11,-2022574463),r=h(r,s,e,l,t[c+11],16,1839030562),l=h(l,r,s,e,t[c+14],23,-35309556),e=h(e,l,r,s,t[c+1],4,-1530992060),s=h(s,e,l,r,t[c+4],11,1272893353),r=h(r,s,e,l,t[c+7],16,-155497632),l=h(l,r,s,e,t[c+10],23,-1094730640),e=h(e,l,r,s,t[c+13],4,681279174),s=h(s,e,l,r,t[c+0],11,-358537222),r=h(r,s,e,l,t[c+3],16,-722521979),l=h(l,r,s,e,t[c+6],23,76029189),e=h(e,l,r,s,t[c+9],4,-640364487),s=h(s,e,l,r,t[c+12],11,-421815835),r=h(r,s,e,l,t[c+15],16,530742520),l=h(l,r,s,e,t[c+2],23,-995338651),e=u(e,l,r,s,t[c+0],6,-198630844),s=u(s,e,l,r,t[c+7],10,1126891415),r=u(r,s,e,l,t[c+14],15,-1416354905),l=u(l,r,s,e,t[c+5],21,-57434055),e=u(e,l,r,s,t[c+12],6,1700485571),s=u(s,e,l,r,t[c+3],10,-1894986606),r=u(r,s,e,l,t[c+10],15,-1051523),l=u(l,r,s,e,t[c+1],21,-2054922799),e=u(e,l,r,s,t[c+8],6,1873313359),s=u(s,e,l,r,t[c+15],10,-30611744),r=u(r,s,e,l,t[c+6],15,-1560198380),l=u(l,r,s,e,t[c+13],21,1309151649),e=u(e,l,r,s,t[c+4],6,-145523070),s=u(s,e,l,r,t[c+11],10,-1120210379),r=u(r,s,e,l,t[c+2],15,718787259),l=u(l,r,s,e,t[c+9],21,-343485551),e=a(e,d),l=a(l,g),r=a(r,v),s=a(s,b)}return Array(e,l,r,s)}function A(t,o,e,l,r,s){return a(i(a(a(o,t),a(l,s)),r),e)}function m(t,o,e,l,r,s,c){return A(o&e|~o&l,t,o,r,s,c)}function f(t,o,e,l,r,s,c){return A(o&l|e&~l,t,o,r,s,c)}function h(t,o,e,l,r,s,c){return A(o^e^l,t,o,r,s,c)}function u(t,o,e,l,r,s,c){return A(e^(o|~l),t,o,r,s,c)}function a(t,o){var e=(t&65535)+(o&65535),l=(t>>16)+(o>>16)+(e>>16);return l<<16|e&65535}function i(t,o){return t<<o|t>>>32-o}D.exports=function(o){return y.hash(o,x,16)}},{"./helpers":285}],287:[function(k,D,n){"use strict";var y=k("./helpers");function p(h,u){h[u>>5]|=128<<24-u%32,h[(u+64>>9<<4)+15]=u;for(var a=Array(80),i=1732584193,t=-271733879,o=-1732584194,e=271733878,l=-1009589776,r=0;r<h.length;r+=16){for(var s=i,c=t,d=o,g=e,v=l,b=0;b<80;b++){b<16?a[b]=h[r+b]:a[b]=f(a[b-3]^a[b-8]^a[b-14]^a[b-16],1);var S=m(m(f(i,5),x(b,t,o,e)),m(m(l,a[b]),A(b)));l=e,e=o,o=f(t,30),t=i,i=S}i=m(i,s),t=m(t,c),o=m(o,d),e=m(e,g),l=m(l,v)}return Array(i,t,o,e,l)}function x(h,u,a,i){return h<20?u&a|~u&i:h<40?u^a^i:h<60?u&a|u&i|a&i:u^a^i}function A(h){return h<20?1518500249:h<40?1859775393:h<60?-1894007588:-899497514}function m(h,u){var a=(h&65535)+(u&65535),i=(h>>16)+(u>>16)+(a>>16);return i<<16|a&65535}function f(h,u){return h<<u|h>>>32-u}D.exports=function(u){return y.hash(u,p,20,!0)}},{"./helpers":285}],288:[function(k,D,n){"use strict";D.exports=function(){return function(){}}},{}],289:[function(k,D,n){(function(y){"use strict";var p=k("babel-runtime/helpers/typeof"),x=A(p);function A(i){return i&&i.__esModule?i:{default:i}}var m=k("stream"),f=m.Stream,h=k("../lib/common/utils/isArray"),u=h.isArray;D.exports.string=function(t){return typeof t=="string"},D.exports.array=u,D.exports.buffer=y.isBuffer;function a(i){return i instanceof f}D.exports.writableStream=function(t){return a(t)&&typeof t._write=="function"&&(0,x.default)(t._writableState)==="object"}}).call(this,{isBuffer:k("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":42,"../node_modules/is-buffer/index.js":197,"babel-runtime/helpers/typeof":67,stream:230}],290:[function(k,D,n){"use strict";n.encodeURIComponent=function(y){try{return encodeURIComponent(y)}catch(p){return y}},n.escape=k("escape-html"),n.timestamp=function(p){if(p){var x=p;return typeof x=="string"&&(x=Number(x)),String(p).length===10&&(x*=1e3),new Date(x)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(k,D,n){(function(y,p){"use strict";var x=k("babel-runtime/core-js/json/stringify"),A=h(x),m=k("babel-runtime/helpers/typeof"),f=h(m);function h(b){return b&&b.__esModule?b:{default:b}}var u=k("util"),a=k("url"),i=k("http"),t=k("https"),o=k("debug")("urllib"),e=k("humanize-ms"),l,r=0,s=Math.pow(2,31)-10,c=/^https?:\/\//i;function d(b,S){return b===void 0?S:b}function g(b,S){return function(E,C,_){if(E)return S(E);b({data:C,status:_.statusCode,headers:_.headers,res:_})}}n.TIMEOUTS=[e("300s"),e("300s")];var v=["json","text"];n.request=function(S,E,C){return arguments.length===2&&typeof E=="function"&&(C=E,E=null),typeof C=="function"?n.requestWithCallback(S,E,C):(l||(l=k("any-promise")),new l(function(_,T){n.requestWithCallback(S,E,g(_,T))}))},n.requestWithCallback=function(S,E,C){if(!S||typeof S!="string"&&(typeof S=="undefined"?"undefined":(0,f.default)(S))!=="object"){var _=u.format("expect request url to be a string or a http request options, but got %j",S);throw new Error(_)}arguments.length===2&&typeof E=="function"&&(C=E,E=null),E=E||{},r>=s&&(r=0);var T=++r;E.requestUrls=E.requestUrls||[];var w={requestId:T,url:S,args:E,ctx:E.ctx};E.emitter&&E.emitter.emit("request",w),E.timeout=E.timeout||n.TIMEOUTS,E.maxRedirects=E.maxRedirects||10,E.streaming=E.streaming||E.customResponse;var O=Date.now(),I;typeof S=="string"?(c.test(S)||(S="http://"+S),I=a.parse(S)):I=S;var R=(E.type||E.method||I.method||"GET").toUpperCase(),M=I.port||80,F=i,P=d(E.agent,n.agent),X=E.fixJSONCtlChars;I.protocol==="https:"&&(F=t,P=d(E.httpsAgent,n.httpsAgent),I.port||(M=443));var B={host:I.hostname||I.host||"localhost",path:I.path||"/",method:R,port:M,agent:P,headers:E.headers||{},lookup:E.lookup};Array.isArray(E.timeout)?B.requestTimeout=E.timeout[E.timeout.length-1]:typeof E.timeout!="undefined"&&(B.requestTimeout=E.timeout);for(var j=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],W=0;W<j.length;W++){var z=j[W];E.hasOwnProperty(z)&&(B[z]=E[z])}B.rejectUnauthorized===!1&&!B.hasOwnProperty("secureOptions")&&(B.secureOptions=k("constants").SSL_OP_NO_TLSv1_2);var V=E.auth||I.auth;V&&(B.auth=V);var Q=E.content||E.data,G=R==="GET"||R==="HEAD"||E.dataAsQueryString;if(!E.content&&(Q&&!(typeof Q=="string"||p.isBuffer(Q))))if(G)Q=E.nestedQuerystring?qs.stringify(Q):querystring.stringify(Q);else{var ee=B.headers["Content-Type"]||B.headers["content-type"];ee||(E.contentType==="json"?ee="application/json":ee="application/x-www-form-urlencoded",B.headers["Content-Type"]=ee),parseContentType(ee).type==="application/json"?Q=(0,A.default)(Q):Q=E.nestedQuerystring?qs.stringify(Q):querystring.stringify(Q)}G&&Q&&(B.path+=(I.query?"&":"?")+Q,Q=null);var ce=0;if(Q){var be=Q.length;p.isBuffer(Q)||(be=p.byteLength(Q)),ce=B.headers["Content-Length"]=be}E.dataType==="json"&&(B.headers.Accept="application/json"),typeof E.beforeRequest=="function"&&E.beforeRequest(B);var le=null,Ie=null,ke=null,Re=!1,Qe=!1,We=0,ot=-1,Oe=!1,oe="",st="",he=null;E.timing&&(he={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function J(){le&&(clearTimeout(le),le=null)}function Y(){Ie&&(clearTimeout(Ie),Ie=null)}function $(Ke,Jt,ct){if(Y(),!C){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),T,y.pid,B.method,S),Ke&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),T,y.pid,Ke.name,Ke.message,Ke.stack);return}var Gt=C;C=null;var dr={};if(ct&&(ot=ct.statusCode,dr=ct.headers),ot===401&&dr["www-authenticate"]&&(!E.headers||!E.headers.Authorization)&&E.digestAuth){var zt=dr["www-authenticate"];if(zt.indexOf("Digest ")>=0)return o("Request#%d %s: got digest auth header WWW-Authenticate: %s",T,S,zt),E.headers=E.headers||{},E.headers.Authorization=digestAuthHeader(B.method,B.path,zt,E.digestAuth),o("Request#%d %s: auth with digest header: %s",T,S,E.headers.Authorization),ct.headers["set-cookie"]&&(E.headers.Cookie=ct.headers["set-cookie"].join(";")),n.requestWithCallback(S,E,Gt)}var kt=Date.now()-O;he&&(he.contentDownload=kt),o("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",kt,We,ot,B.method,B.host,B.path,Qe,he);var Vt={status:ot,statusCode:ot,headers:dr,size:We,aborted:Oe,rt:kt,keepAliveSocket:Qe,data:Jt,requestUrls:E.requestUrls,timing:he,remoteAddress:oe,remotePort:st};if(Ke){var Xe="";P&&typeof P.getCurrentStatus=="function"&&(Xe=", agent status: "+(0,A.default)(P.getCurrentStatus())),Ke.message+=", "+B.method+" "+S+" "+ot+" (connected: "+Re+", keepalive socket: "+Qe+Xe+`)
|
|
|
headers: `+(0,A.default)(dr),Ke.data=Jt,Ke.path=B.path,Ke.status=ot,Ke.headers=dr,Ke.res=Vt}Gt(Ke,Jt,E.streaming?ct:Vt),E.emitter&&(w.url=S,w.socket=At&&At.connection,w.options=B,w.size=ce,E.emitter.emit("response",{requestId:T,error:Ke,ctx:E.ctx,req:w,res:Vt}))}function fe(Ke){var Jt=null;if(E.followRedirect&&statuses.redirect[Ke.statusCode]){E._followRedirectCount=(E._followRedirectCount||0)+1;var ct=Ke.headers.location;if(!ct)Jt=new Error("Got statusCode "+Ke.statusCode+" but cannot resolve next location from headers"),Jt.name="FollowRedirectError";else if(E._followRedirectCount>E.maxRedirects)Jt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+S),Jt.name="MaxRedirectError";else{var Gt=E.formatRedirectUrl?E.formatRedirectUrl(S,ct):a.resolve(S,ct);o("Request#%d %s: `redirected` from %s to %s",T,B.path,S,Gt),Y(),E.headers&&E.headers.Host&&c.test(ct)&&(E.headers.Host=null);var dr=C;return C=null,n.requestWithCallback(Gt,E,dr),{redirect:!0,error:null}}}return{redirect:!1,error:Jt}}!B.headers["User-Agent"]&&!B.headers["user-agent"]&&(B.headers["User-Agent"]=navigator.userAgent),E.gzip&&(!B.headers["Accept-Encoding"]&&!B.headers["accept-encoding"]&&(B.headers["Accept-Encoding"]="gzip"));function we(Ke,Jt,ct){var Gt=Ke.headers["content-encoding"];return ct(null,Jt,Gt)}var Ne=E.writeStream;o("Request#%d %s %s with headers %j, options.path: %s",T,R,S,B.headers,B.path),E.requestUrls.push(S);function Ee(Ke){if(he&&(he.waiting=Date.now()-O),o("Request#%d %s `req response` event emit: status %d, headers: %j",T,S,Ke.statusCode,Ke.headers),E.streaming){var Jt=fe(Ke);if(Jt.redirect){Ke.resume();return}return Jt.error?(Ke.resume(),$(Jt.error,null,Ke)):$(null,null,Ke)}if(Ke.on("close",function(){o("Request#%d %s: `res close` event emit, total size %d",T,S,We)}),Ke.on("error",function(){o("Request#%d %s: `res error` event emit, total size %d",T,S,We)}),Ke.on("aborted",function(){Oe=!0,o("Request#%d %s: `res aborted` event emit, total size %d",T,S,We)}),Ne){var Jt=fe(Ke);if(Jt.redirect){Ke.resume();return}return Jt.error?(Ke.resume(),Ne.end(),$(Jt.error,null,Ke)):(E.consumeWriteStream===!1?Ke.on("end",$.bind(null,null,null,Ke)):isNode010||isNode012?first([[Ne,"close"],[Ke,"aborted"]],function(dr,zt,kt){o("Request#%d %s: writeStream or res %s event emitted",T,S,kt),$(ke||null,null,Ke)}):Ne.on("close",function(){o("Request#%d %s: writeStream close event emitted",T,S),$(ke||null,null,Ke)}),Ke.pipe(Ne))}var ct=[];Ke.on("data",function(Gt){o("Request#%d %s: `res data` event emit, size %d",T,S,Gt.length),We+=Gt.length,ct.push(Gt)}),Ke.on("end",function(){var Gt=p.concat(ct,We);if(o("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",T,S,We,Ke._dumped),ke)return $(ke,Gt,Ke);var dr=fe(Ke);if(dr.error)return $(dr.error,Gt,Ke);if(dr.redirect)return;we(Ke,Gt,function(zt,kt,Vt){if(zt)return $(zt,Gt,Ke);if(!Vt&&v.indexOf(E.dataType)>=0){try{kt=decodeBodyByCharset(kt,Ke)}catch(pe){return o("decodeBodyByCharset error: %s",pe),$(null,kt,Ke)}if(E.dataType==="json")if(We===0)kt=null;else{var Xe=parseJSON(kt,X);Xe.error?zt=Xe.error:kt=Xe.data}}Oe&&o("Request#%d %s: Remote socket was terminated before `response.end()` was called",T,S),$(zt,kt,Ke)})})}var de,me;Array.isArray(E.timeout)?(de=e(E.timeout[0]),me=e(E.timeout[1])):de=me=e(E.timeout),o("ConnectTimeout: %d, ResponseTimeout: %d",de,me);function Le(){o("Connect timer ticking, timeout: %d",de),le=setTimeout(function(){le=null,ot===-1&&(ot=-2);var Ke="Connect timeout for "+de+"ms",Jt="ConnectionTimeoutError";At.socket||(Jt="SocketAssignTimeoutError",Ke+=", working sockets is full"),ke=new Error(Ke),ke.name=Jt,ke.requestId=T,o("ConnectTimeout: Request#%d %s %s: %s, connected: %s",T,S,ke.name,Ke,Re),ht()},de)}function tt(){o("Response timer ticking, timeout: %d",me),Ie=setTimeout(function(){Ie=null;var Ke="Response timeout for "+me+"ms",Jt="ResponseTimeoutError";ke=new Error(Ke),ke.name=Jt,ke.requestId=T,o("ResponseTimeout: Request#%d %s %s: %s, connected: %s",T,S,ke.name,Ke,Re),ht()},me)}var At;B.mode=E.mode?E.mode:"";try{At=F.request(B,Ee)}catch(Ke){return $(Ke)}typeof window=="undefined"?Le():At.on("requestTimeout",function(){ot===-1&&(ot=-2);var Ke="Connect timeout for "+de+"ms",Jt="ConnectionTimeoutError";ke=new Error(Ke),ke.name=Jt,ke.requestId=T,ht()});function ht(){o("Request#%d %s abort, connected: %s",T,S,Re),At.socket||(ke.noSocket=!0,$(ke)),At.abort()}return he&&At.on("finish",function(){he.requestSent=Date.now()-O}),At.once("socket",function(Ke){he&&(he.queuing=Date.now()-O),isNode010&&Ke.socket&&(Ke=Ke.socket);var Jt=Ke.readyState;if(Jt==="opening"){Ke.once("lookup",function(ct,Gt,dr){o("Request#%d %s lookup: %s, %s, %s",T,S,ct,Gt,dr),he&&(he.dnslookup=Date.now()-O),Gt&&(oe=Gt)}),Ke.once("connect",function(){he&&(he.connected=Date.now()-O),J(),tt(),o("Request#%d %s new socket connected",T,S),Re=!0,oe||(oe=Ke.remoteAddress),st=Ke.remotePort});return}o("Request#%d %s reuse socket connected, readyState: %s",T,S,Jt),Re=!0,Qe=!0,oe||(oe=Ke.remoteAddress),st=Ke.remotePort,J(),tt()}),At.on("error",function(Ke){(Ke.name==="Error"||Ke.name==="TypeError")&&(Ke.name=Re?"ResponseError":"RequestError"),Ke.message+=' (req "error")',o("Request#%d %s `req error` event emit, %s: %s",T,S,Ke.name,Ke.message),$(ke||Ke)}),Ne&&Ne.once("error",function(Ke){Ke.message+=' (writeStream "error")',ke=Ke,o("Request#%d %s `writeStream error` event emit, %s: %s",T,S,Ke.name,Ke.message),ht()}),E.stream?(E.stream.pipe(At),E.stream.once("error",function(Ke){Ke.message+=' (stream "error")',ke=Ke,o("Request#%d %s `readStream error` event emit, %s: %s",T,S,Ke.name,Ke.message),ht()})):At.end(Q),At.requestId=T,At}}).call(this,k("_process"),k("buffer").Buffer)},{_process:208,"any-promise":49,"babel-runtime/core-js/json/stringify":53,"babel-runtime/helpers/typeof":67,buffer:73,constants:75,debug:288,http:231,https:193,"humanize-ms":194,url:238,util:243}]},{},[1])(1)})}).call(this,__webpack_require__("yLpj"))},n0Ed:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("zlgR"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},n1HI:function(k,D,n){var y=n("hX1E"),p=y.normalizeRadian,x=Math.PI*2;function A(m,f,h,u,a,i,t,o,e){if(t===0)return!1;var l=t;o-=m,e-=f;var r=Math.sqrt(o*o+e*e);if(r-l>h||r+l<h)return!1;if(Math.abs(u-a)%x<1e-4)return!0;if(i){var s=u;u=p(a),a=p(s)}else u=p(u),a=p(a);u>a&&(a+=x);var c=Math.atan2(e,o);return c<0&&(c+=x),c>=u&&c<=a||c+x>=u&&c+x<=a}D.containStroke=A},n4Lv:function(k,D,n){var y=n("7hqr"),p=y.isDimensionStacked,x=n("bYtY"),A=x.map;function m(u,a,i){var t=u.getBaseAxis(),o=u.getOtherAxis(t),e=f(o,i),l=t.dim,r=o.dim,s=a.mapDimension(r),c=a.mapDimension(l),d=r==="x"||r==="radius"?1:0,g=A(u.dimensions,function(S){return a.mapDimension(S)}),v,b=a.getCalculationInfo("stackResultDimension");return(v|=p(a,g[0]))&&(g[0]=b),(v|=p(a,g[1]))&&(g[1]=b),{dataDimsForPoint:g,valueStart:e,valueAxisDim:r,baseAxisDim:l,stacked:!!v,valueDim:s,baseDim:c,baseDataOffset:d,stackedOverDimension:a.getCalculationInfo("stackedOverDimension")}}function f(u,a){var i=0,t=u.scale.getExtent();return a==="start"?i=t[0]:a==="end"?i=t[1]:t[0]>0?i=t[0]:t[1]<0&&(i=t[1]),i}function h(u,a,i,t){var o=NaN;u.stacked&&(o=i.get(i.getCalculationInfo("stackedOverDimension"),t)),isNaN(o)&&(o=u.valueStart);var e=u.baseDataOffset,l=[];return l[e]=i.get(u.baseDim,t),l[1-e]=o,a.dataToPoint(l)}D.prepareDataCoordInfo=m,D.getStackedOnPoint=h},n6Mw:function(k,D,n){var y=n("SrGk"),p=n("bYtY"),x=n("Fofx");function A(f,h){y.call(this,f,h,"clipPath","__clippath_in_use__")}p.inherits(A,y),A.prototype.update=function(f){var h=this.getSvgElement(f);h&&this.updateDom(h,f.__clipPaths,!1);var u=this.getTextSvgElement(f);u&&this.updateDom(u,f.__clipPaths,!0),this.markUsed(f)},A.prototype.updateDom=function(f,h,u){if(h&&h.length>0){var a=this.getDefs(!0),i=h[0],t,o,e=u?"_textDom":"_dom";i[e]?(o=i[e].getAttribute("id"),t=i[e],a.contains(t)||a.appendChild(t)):(o="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,t=this.createElement("clipPath"),t.setAttribute("id",o),a.appendChild(t),i[e]=t);var l=this.getSvgProxy(i);if(i.transform&&i.parent.invTransform&&!u){var r=Array.prototype.slice.call(i.transform);x.mul(i.transform,i.parent.invTransform,i.transform),l.brush(i),i.transform=r}else l.brush(i);var s=this.getSvgElement(i);t.innerHTML="",t.appendChild(s.cloneNode()),f.setAttribute("clip-path","url(#"+o+")"),h.length>1&&this.updateDom(t,h.slice(1),u)}else f&&f.setAttribute("clip-path","none")},A.prototype.markUsed=function(f){var h=this;f.__clipPaths&&p.each(f.__clipPaths,function(u){u._dom&&y.prototype.markUsed.call(h,u._dom),u._textDom&&y.prototype.markUsed.call(h,u._textDom)})};var m=A;k.exports=m},nCxF:function(k,D,n){var y=n("QBsz"),p=y.min,x=y.max,A=y.scale,m=y.distance,f=y.add,h=y.clone,u=y.sub;function a(i,t,o,e){var l=[],r=[],s=[],c=[],d,g,v,b;if(e){v=[Infinity,Infinity],b=[-Infinity,-Infinity];for(var S=0,E=i.length;S<E;S++)p(v,v,i[S]),x(b,b,i[S]);p(v,v,e[0]),x(b,b,e[1])}for(var S=0,E=i.length;S<E;S++){var C=i[S];if(o)d=i[S?S-1:E-1],g=i[(S+1)%E];else if(S===0||S===E-1){l.push(h(i[S]));continue}else d=i[S-1],g=i[S+1];u(r,g,d),A(r,r,t);var _=m(C,d),T=m(C,g),w=_+T;w!==0&&(_/=w,T/=w),A(s,r,-_),A(c,r,T);var O=f([],C,s),I=f([],C,c);e&&(x(O,O,v),p(O,O,b),x(I,I,v),p(I,I,b)),l.push(O),l.push(I)}return o&&l.push(l.shift()),l}k.exports=a},nKiI:function(k,D,n){var y=n("bYtY"),p=n("mFDi"),x=n("OELB"),A=x.parsePercent,m=x.MAX_SAFE_INTEGER,f=n("+TT/"),h=n("VaxA"),u=Math.max,a=Math.min,i=y.retrieve,t=y.each,o=["itemStyle","borderWidth"],e=["itemStyle","gapWidth"],l=["upperLabel","show"],r=["upperLabel","height"],s={seriesType:"treemap",reset:function(O,I,R,M){var F=R.getWidth(),P=R.getHeight(),X=O.option,B=f.getLayoutRect(O.getBoxLayoutParams(),{width:R.getWidth(),height:R.getHeight()}),j=X.size||[],W=A(i(B.width,j[0]),F),z=A(i(B.height,j[1]),P),V=M&&M.type,Q=["treemapZoomToNode","treemapRootToNode"],G=h.retrieveTargetInfo(M,Q,O),ee=V==="treemapRender"||V==="treemapMove"?M.rootRect:null,ce=O.getViewRoot(),be=h.getPathToRoot(ce);if(V!=="treemapMove"){var le=V==="treemapZoomToNode"?C(O,G,ce,W,z):ee?[ee.width,ee.height]:[W,z],Ie=X.sort;Ie&&Ie!=="asc"&&Ie!=="desc"&&(Ie="desc");var ke={squareRatio:X.squareRatio,sort:Ie,leafDepth:X.leafDepth};ce.hostTree.clearLayouts();var Re={x:0,y:0,width:le[0],height:le[1],area:le[0]*le[1]};ce.setLayout(Re),c(ce,ke,!1,0);var Re=ce.getLayout();t(be,function(We,ot){var Oe=(be[ot+1]||ce).getValue();We.setLayout(y.extend({dataExtent:[Oe,Oe],borderWidth:0,upperHeight:0},Re))})}var Qe=O.getData().tree.root;Qe.setLayout(_(B,ee,G),!0),O.setLayoutInfo(B),T(Qe,new p(-B.x,-B.y,F,P),be,ce,0)}};function c(O,I,R,M){var F,P;if(O.isRemoved())return;var X=O.getLayout();F=X.width,P=X.height;var B=O.getModel(),j=B.get(o),W=B.get(e)/2,z=w(B),V=Math.max(j,z),Q=j-W,G=V-W,B=O.getModel();O.setLayout({borderWidth:j,upperHeight:V,upperLabelHeight:z},!0),F=u(F-2*Q,0),P=u(P-Q-G,0);var ee=F*P,ce=d(O,B,ee,I,R,M);if(!ce.length)return;var be={x:Q,y:G,width:F,height:P},le=a(F,P),Ie=Infinity,ke=[];ke.area=0;for(var Re=0,Qe=ce.length;Re<Qe;){var We=ce[Re];ke.push(We),ke.area+=We.getLayout().area;var ot=S(ke,le,I.squareRatio);ot<=Ie?(Re++,Ie=ot):(ke.area-=ke.pop().getLayout().area,E(ke,le,be,W,!1),le=a(be.width,be.height),ke.length=ke.area=0,Ie=Infinity)}if(ke.length&&E(ke,le,be,W,!0),!R){var Oe=B.get("childrenVisibleMin");Oe!=null&&ee<Oe&&(R=!0)}for(var Re=0,Qe=ce.length;Re<Qe;Re++)c(ce[Re],I,R,M+1)}function d(O,I,R,M,F,P){var X=O.children||[],B=M.sort;B!=="asc"&&B!=="desc"&&(B=null);var j=M.leafDepth!=null&&M.leafDepth<=P;if(F&&!j)return O.viewChildren=[];X=y.filter(X,function(G){return!G.isRemoved()}),v(X,B);var W=b(I,X,B);if(W.sum===0)return O.viewChildren=[];if(W.sum=g(I,R,W.sum,B,X),W.sum===0)return O.viewChildren=[];for(var z=0,V=X.length;z<V;z++){var Q=X[z].getValue()/W.sum*R;X[z].setLayout({area:Q})}return j&&(X.length&&O.setLayout({isLeafRoot:!0},!0),X.length=0),O.viewChildren=X,O.setLayout({dataExtent:W.dataExtent},!0),X}function g(O,I,R,M,F){if(!M)return R;for(var P=O.get("visibleMin"),X=F.length,B=X,j=X-1;j>=0;j--){var W=F[M==="asc"?X-j-1:j].getValue();W/R*I<P&&(B=j,R-=W)}return M==="asc"?F.splice(0,X-B):F.splice(B,X-B),R}function v(O,I){return I&&O.sort(function(R,M){var F=I==="asc"?R.getValue()-M.getValue():M.getValue()-R.getValue();return F===0?I==="asc"?R.dataIndex-M.dataIndex:M.dataIndex-R.dataIndex:F}),O}function b(O,I,R){for(var M=0,F=0,P=I.length;F<P;F++)M+=I[F].getValue();var X=O.get("visualDimension"),B;if(!I||!I.length)B=[NaN,NaN];else if(X==="value"&&R)B=[I[I.length-1].getValue(),I[0].getValue()],R==="asc"&&B.reverse();else{var B=[Infinity,-Infinity];t(I,function(W){var z=W.getValue(X);z<B[0]&&(B[0]=z),z>B[1]&&(B[1]=z)})}return{sum:M,dataExtent:B}}function S(O,I,R){for(var M=0,F=Infinity,P=0,X,B=O.length;P<B;P++)X=O[P].getLayout().area,X&&(X<F&&(F=X),X>M&&(M=X));var j=O.area*O.area,W=I*I*R;return j?u(W*M/j,j/(W*F)):Infinity}function E(O,I,R,M,F){var P=I===R.width?0:1,X=1-P,B=["x","y"],j=["width","height"],W=R[B[P]],z=I?O.area/I:0;(F||z>R[j[X]])&&(z=R[j[X]]);for(var V=0,Q=O.length;V<Q;V++){var G=O[V],ee={},ce=z?G.getLayout().area/z:0,be=ee[j[X]]=u(z-2*M,0),le=R[B[P]]+R[j[P]]-W,Ie=V===Q-1||le<ce?le:ce,ke=ee[j[P]]=u(Ie-2*M,0);ee[B[X]]=R[B[X]]+a(M,be/2),ee[B[P]]=W+a(M,ke/2),W+=Ie,G.setLayout(ee,!0)}R[B[X]]+=z,R[j[X]]-=z}function C(O,I,R,M,F){var P=(I||{}).node,X=[M,F];if(!P||P===R)return X;for(var B,j=M*F,W=j*O.option.zoomToNodeRatio;B=P.parentNode;){for(var z=0,V=B.children,Q=0,G=V.length;Q<G;Q++)z+=V[Q].getValue();var ee=P.getValue();if(ee===0)return X;W*=z/ee;var ce=B.getModel(),be=ce.get(o),le=Math.max(be,w(ce,be));W+=4*be*be+(3*be+le)*Math.pow(W,.5),W>m&&(W=m),P=B}W<j&&(W=j);var Ie=Math.pow(W/j,.5);return[M*Ie,F*Ie]}function _(O,I,R){if(I)return{x:I.x,y:I.y};var M={x:0,y:0};if(!R)return M;var F=R.node,P=F.getLayout();if(!P)return M;for(var X=[P.width/2,P.height/2],B=F;B;){var j=B.getLayout();X[0]+=j.x,X[1]+=j.y,B=B.parentNode}return{x:O.width/2-X[0],y:O.height/2-X[1]}}function T(O,I,R,M,F){var P=O.getLayout(),X=R[F],B=X&&X===O;if(X&&!B||F===R.length&&O!==M)return;O.setLayout({isInView:!0,invisible:!B&&!I.intersect(P),isAboveViewRoot:B},!0);var j=new p(I.x-P.x,I.y-P.y,I.width,I.height);t(O.viewChildren||[],function(W){T(W,j,R,M,F+1)})}function w(O){return O.get(l)?O.get(r):0}k.exports=s},nPnh:function(k,D){var n=Math.round;function y(A,m,f){if(!m)return;var h=m.x1,u=m.x2,a=m.y1,i=m.y2;A.x1=h,A.x2=u,A.y1=a,A.y2=i;var t=f&&f.lineWidth;if(!t)return;n(h*2)===n(u*2)&&(A.x1=A.x2=x(h,t,!0)),n(a*2)===n(i*2)&&(A.y1=A.y2=x(a,t,!0))}function p(A,m,f){if(!m)return;var h=m.x,u=m.y,a=m.width,i=m.height;A.x=h,A.y=u,A.width=a,A.height=i;var t=f&&f.lineWidth;if(!t)return;A.x=x(h,t,!0),A.y=x(u,t,!0),A.width=Math.max(x(h+a,t,!1)-A.x,a===0?0:1),A.height=Math.max(x(u+i,t,!1)-A.y,i===0?0:1)}function x(A,m,f){if(!m)return A;var h=n(A*2);return(h+n(m))%2===0?h/2:(h+(f?1:-1))/2}D.subPixelOptimizeLine=y,D.subPixelOptimizeRect=p,D.subPixelOptimize=x},nRaC:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("0fbx"),A=n.n(x),m=n("OaEy"),f=n("R9oj")},nVfU:function(k,D,n){var y=n("bYtY"),p=n("OELB"),x=p.parsePercent,A=n("7hqr"),m=A.isDimensionStacked,f=n("zM3Q"),h="__ec_stack_",u=.5,a=typeof Float32Array!="undefined"?Float32Array:Array;function i(E){return E.get("stack")||h+E.seriesIndex}function t(E){return E.dim+E.index}function o(E){var C=[],_=E.axis,T="axis0";if(_.type!=="category")return;for(var w=_.getBandWidth(),O=0;O<E.count||0;O++)C.push(y.defaults({bandWidth:w,axisKey:T,stackId:h+O},E));for(var I=s(C),R=[],O=0;O<E.count;O++){var M=I[T][h+O];M.offsetCenter=M.offset+M.width/2,R.push(M)}return R}function e(E,C){var _=[];return C.eachSeriesByType(E,function(T){v(T)&&!b(T)&&_.push(T)}),_}function l(E){var C={};y.each(E,function(M){var F=M.coordinateSystem,P=F.getBaseAxis();if(P.type!=="time"&&P.type!=="value")return;for(var X=M.getData(),B=P.dim+"_"+P.index,j=X.mapDimension(P.dim),W=0,z=X.count();W<z;++W){var V=X.get(j,W);C[B]?C[B].push(V):C[B]=[V]}});var _=[];for(var T in C)if(C.hasOwnProperty(T)){var w=C[T];if(w){w.sort(function(M,F){return M-F});for(var O=null,I=1;I<w.length;++I){var R=w[I]-w[I-1];R>0&&(O=O===null?R:Math.min(O,R))}_[T]=O}}return _}function r(E){var C=l(E),_=[];return y.each(E,function(T){var w=T.coordinateSystem,O=w.getBaseAxis(),I=O.getExtent(),R;if(O.type==="category")R=O.getBandWidth();else if(O.type==="value"||O.type==="time"){var M=O.dim+"_"+O.index,F=C[M],P=Math.abs(I[1]-I[0]),X=O.scale.getExtent(),B=Math.abs(X[1]-X[0]);R=F?P/B*F:P}else{var j=T.getData();R=Math.abs(I[1]-I[0])/j.count()}var W=x(T.get("barWidth"),R),z=x(T.get("barMaxWidth"),R),V=x(T.get("barMinWidth")||1,R),Q=T.get("barGap"),G=T.get("barCategoryGap");_.push({bandWidth:R,barWidth:W,barMaxWidth:z,barMinWidth:V,barGap:Q,barCategoryGap:G,axisKey:t(O),stackId:i(T)})}),s(_)}function s(E){var C={};y.each(E,function(T,w){var O=T.axisKey,I=T.bandWidth,R=C[O]||{bandWidth:I,remainedWidth:I,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},M=R.stacks;C[O]=R;var F=T.stackId;M[F]||R.autoWidthCount++,M[F]=M[F]||{width:0,maxWidth:0};var P=T.barWidth;P&&!M[F].width&&(M[F].width=P,P=Math.min(R.remainedWidth,P),R.remainedWidth-=P);var X=T.barMaxWidth;X&&(M[F].maxWidth=X);var B=T.barMinWidth;B&&(M[F].minWidth=B);var j=T.barGap;j!=null&&(R.gap=j);var W=T.barCategoryGap;W!=null&&(R.categoryGap=W)});var _={};return y.each(C,function(T,w){_[w]={};var O=T.stacks,I=T.bandWidth,R=x(T.categoryGap,I),M=x(T.gap,1),F=T.remainedWidth,P=T.autoWidthCount,X=(F-R)/(P+(P-1)*M);X=Math.max(X,0),y.each(O,function(z){var V=z.maxWidth,Q=z.minWidth;if(z.width){var G=z.width;V&&(G=Math.min(G,V)),Q&&(G=Math.max(G,Q)),z.width=G,F-=G+M*G,P--}else{var G=X;V&&V<G&&(G=Math.min(V,F)),Q&&Q>G&&(G=Q),G!==X&&(z.width=G,F-=G+M*G,P--)}}),X=(F-R)/(P+(P-1)*M),X=Math.max(X,0);var B=0,j;y.each(O,function(z,V){z.width||(z.width=X),j=z,B+=z.width*(1+M)}),j&&(B-=j.width*M);var W=-B/2;y.each(O,function(z,V){_[w][V]=_[w][V]||{bandWidth:I,offset:W,width:z.width},W+=z.width*(1+M)})}),_}function c(E,C,_){if(E&&C){var T=E[t(C)];return T!=null&&_!=null&&(T=T[i(_)]),T}}function d(E,C){var _=e(E,C),T=r(_),w={},O={};y.each(_,function(I){var R=I.getData(),M=I.coordinateSystem,F=M.getBaseAxis(),P=i(I),X=T[t(F)][P],B=X.offset,j=X.width,W=M.getOtherAxis(F),z=I.get("barMinHeight")||0;w[P]=w[P]||[],O[P]=O[P]||[],R.setLayout({bandWidth:X.bandWidth,offset:B,size:j});for(var V=R.mapDimension(W.dim),Q=R.mapDimension(F.dim),G=m(R,V),ee=W.isHorizontal(),ce=S(F,W,G),be=0,le=R.count();be<le;be++){var Ie=R.get(V,be),ke=R.get(Q,be),Re=Ie>=0?"p":"n",Qe=ce;G&&(w[P][ke]||(w[P][ke]={p:ce,n:ce}),Qe=w[P][ke][Re]);var We,ot,Oe,oe;if(ee){var st=M.dataToPoint([Ie,ke]);We=Qe,ot=st[1]+B,Oe=st[0]-ce,oe=j,Math.abs(Oe)<z&&(Oe=(Oe<0?-1:1)*z),isNaN(Oe)||G&&(w[P][ke][Re]+=Oe)}else{var st=M.dataToPoint([ke,Ie]);We=st[0]+B,ot=Qe,Oe=j,oe=st[1]-ce,Math.abs(oe)<z&&(oe=(oe<=0?-1:1)*z),isNaN(oe)||G&&(w[P][ke][Re]+=oe)}R.setItemLayout(be,{x:We,y:ot,width:Oe,height:oe})}},this)}var g={seriesType:"bar",plan:f(),reset:function(E){if(!v(E)||!b(E))return;var C=E.getData(),_=E.coordinateSystem,T=_.grid.getRect(),w=_.getBaseAxis(),O=_.getOtherAxis(w),I=C.mapDimension(O.dim),R=C.mapDimension(w.dim),M=O.isHorizontal(),F=M?0:1,P=c(r([E]),w,E).width;return P>u||(P=u),{progress:X};function X(B,j){for(var W=B.count,z=new a(W*2),V=new a(W*2),Q=new a(W),G,ee=[],ce=[],be=0,le=0;(G=B.next())!=null;)ce[F]=j.get(I,G),ce[1-F]=j.get(R,G),ee=_.dataToPoint(ce,null,ee),V[be]=M?T.x+T.width:ee[0],z[be++]=ee[0],V[be]=M?ee[1]:T.y+T.height,z[be++]=ee[1],Q[le++]=G;j.setLayout({largePoints:z,largeDataIndices:Q,largeBackgroundPoints:V,barWidth:P,valueAxisStart:S(w,O,!1),backgroundStart:M?T.x:T.y,valueAxisHorizontal:M})}}};function v(E){return E.coordinateSystem&&E.coordinateSystem.type==="cartesian2d"}function b(E){return E.pipelineContext&&E.pipelineContext.large}function S(E,C,_){return C.toGlobalCoord(C.dataToCoord(C.type==="log"?1:0))}D.getLayoutOnAxis=o,D.prepareLayoutBarSeries=e,D.makeColumnLayout=r,D.retrieveColumnLayout=c,D.layout=d,D.largeLayout=g},ngQI:function(k,D,n){"use strict";n.d(D,"a",function(){return gu}),n.d(D,"b",function(){return Fs}),n.d(D,"c",function(){return nn});var y=n("q1tI"),p=n.n(y),x=n("dI71"),A=n("wx14"),m=n("ANjH"),f=n("/MKj");function h(Ue,ie){if(Ue.length!==ie.length)return!1;for(var Ce=0;Ce<Ue.length;Ce++)if(Ue[Ce]!==ie[Ce])return!1;return!0}function u(Ue,ie){var Ce=Object(y.useState)(function(){return{inputs:ie,result:Ue()}})[0],et=Object(y.useRef)(!0),yt=Object(y.useRef)(Ce),Ut=et.current||Boolean(ie&&yt.current.inputs&&h(ie,yt.current.inputs)),Qt=Ut?yt.current:{inputs:ie,result:Ue()};return Object(y.useEffect)(function(){et.current=!1,yt.current=Qt},[Qt]),Qt.result}function a(Ue,ie){return u(function(){return Ue},ie)}var i=u,t=a,o=n("9R94"),e=function(ie){var Ce=ie.top,et=ie.right,yt=ie.bottom,Ut=ie.left,Qt=et-Ut,$t=yt-Ce,Hr={top:Ce,right:et,bottom:yt,left:Ut,width:Qt,height:$t,x:Ut,y:Ce,center:{x:(et+Ut)/2,y:(yt+Ce)/2}};return Hr},l=function(ie,Ce){return{top:ie.top-Ce.top,left:ie.left-Ce.left,bottom:ie.bottom+Ce.bottom,right:ie.right+Ce.right}},r=function(ie,Ce){return{top:ie.top+Ce.top,left:ie.left+Ce.left,bottom:ie.bottom-Ce.bottom,right:ie.right-Ce.right}},s=function(ie,Ce){return{top:ie.top+Ce.y,left:ie.left+Ce.x,bottom:ie.bottom+Ce.y,right:ie.right+Ce.x}},c={top:0,right:0,bottom:0,left:0},d=function(ie){var Ce=ie.borderBox,et=ie.margin,yt=et===void 0?c:et,Ut=ie.border,Qt=Ut===void 0?c:Ut,$t=ie.padding,Hr=$t===void 0?c:$t,ln=e(l(Ce,yt)),Ur=e(r(Ce,Qt)),Br=e(r(Ur,Hr));return{marginBox:ln,borderBox:e(Ce),paddingBox:Ur,contentBox:Br,margin:yt,border:Qt,padding:Hr}},g=function(ie){var Ce=ie.slice(0,-2),et=ie.slice(-2);if(et!=="px")return 0;var yt=Number(Ce);return isNaN(yt)&&Object(o.a)(!1),yt},v=function(){return{x:window.pageXOffset,y:window.pageYOffset}},b=function(ie,Ce){var et=ie.borderBox,yt=ie.border,Ut=ie.margin,Qt=ie.padding,$t=s(et,Ce);return d({borderBox:$t,border:yt,margin:Ut,padding:Qt})},S=function(ie,Ce){return Ce===void 0&&(Ce=v()),b(ie,Ce)},E=function(ie,Ce){var et={top:g(Ce.marginTop),right:g(Ce.marginRight),bottom:g(Ce.marginBottom),left:g(Ce.marginLeft)},yt={top:g(Ce.paddingTop),right:g(Ce.paddingRight),bottom:g(Ce.paddingBottom),left:g(Ce.paddingLeft)},Ut={top:g(Ce.borderTopWidth),right:g(Ce.borderRightWidth),bottom:g(Ce.borderBottomWidth),left:g(Ce.borderLeftWidth)};return d({borderBox:ie,margin:et,padding:yt,border:Ut})},C=function(ie){var Ce=ie.getBoundingClientRect(),et=window.getComputedStyle(ie);return E(Ce,et)},_=Number.isNaN||function(ie){return typeof ie=="number"&&ie!==ie};function T(Ue,ie){return Ue===ie?!0:!!(_(Ue)&&_(ie))}function w(Ue,ie){if(Ue.length!==ie.length)return!1;for(var Ce=0;Ce<Ue.length;Ce++)if(!T(Ue[Ce],ie[Ce]))return!1;return!0}function O(Ue,ie){ie===void 0&&(ie=w);var Ce,et=[],yt,Ut=!1;function Qt(){for(var $t=[],Hr=0;Hr<arguments.length;Hr++)$t[Hr]=arguments[Hr];return Ut&&Ce===this&&ie($t,et)||(yt=Ue.apply(this,$t),Ut=!0,Ce=this,et=$t),yt}return Qt}var I=O,R=function(ie){var Ce=[],et=null,yt=function(){for(var Qt=arguments.length,$t=new Array(Qt),Hr=0;Hr<Qt;Hr++)$t[Hr]=arguments[Hr];if(Ce=$t,et)return;et=requestAnimationFrame(function(){et=null,ie.apply(void 0,Ce)})};return yt.cancel=function(){if(!et)return;cancelAnimationFrame(et),et=null},yt},M=R,F=n("i8i4"),P=n.n(F),X=!0,B=/[ \t]{2,}/g,j=/^[ \t]*/gm,W=function(ie){return ie.replace(B," ").replace(j,"").trim()},z=function(ie){return W(`
|
|
|
%creact-beautiful-dnd
|
|
|
|
|
|
%c`+W(ie)+`
|
|
|
|
|
|
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
|
|
|
`)},V=function(ie){return[z(ie),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},Q="__react-beautiful-dnd-disable-dev-warnings";function G(Ue,ie){var Ce;if(X)return;if(typeof window!="undefined"&&window[Q])return;(Ce=console)[Ue].apply(Ce,V(ie))}var ee=G.bind(null,"warn"),ce=G.bind(null,"error");function be(){}function le(Ue,ie){return Object(A.a)({},Ue,{},ie)}function Ie(Ue,ie,Ce){var et=ie.map(function(yt){var Ut=le(Ce,yt.options);return Ue.addEventListener(yt.eventName,yt.fn,Ut),function(){Ue.removeEventListener(yt.eventName,yt.fn,Ut)}});return function(){et.forEach(function(Ut){Ut()})}}var ke=!0,Re="Invariant failed";function Qe(Ue){this.message=Ue}Qe.prototype.toString=function(){return this.message};function We(Ue,ie){if(Ue)return;throw ke?new Qe(Re):new Qe(Re+": "+(ie||""))}var ot=function(Ue){Object(x.a)(ie,Ue);function ie(){for(var et,yt=arguments.length,Ut=new Array(yt),Qt=0;Qt<yt;Qt++)Ut[Qt]=arguments[Qt];return et=Ue.call.apply(Ue,[this].concat(Ut))||this,et.callbacks=null,et.unbind=be,et.onWindowError=function($t){var Hr=et.getCallbacks();Hr.isDragging()&&Hr.tryAbort();var ln=$t.error;ln instanceof Qe&&$t.preventDefault()},et.getCallbacks=function(){if(!et.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return et.callbacks},et.setCallbacks=function($t){et.callbacks=$t},et}var Ce=ie.prototype;return Ce.componentDidMount=function(){this.unbind=Ie(window,[{eventName:"error",fn:this.onWindowError}])},Ce.componentWillUnmount=function(){this.unbind()},Ce.componentDidCatch=function(yt){if(yt instanceof Qe){this.setState({});return}throw yt},Ce.render=function(){return this.props.children(this.setCallbacks)},ie}(p.a.Component),Oe=`
|
|
|
Press space bar to start a drag.
|
|
|
When dragging you can use the arrow keys to move the item around and escape to cancel.
|
|
|
Some screen readers may require you to be in focus mode or to use your pass through key
|
|
|
`,oe=function(ie){return ie+1},st=function(ie){return`
|
|
|
You have lifted an item in position `+oe(ie.source.index)+`
|
|
|
`},he=function(ie,Ce){var et=ie.droppableId===Ce.droppableId,yt=oe(ie.index),Ut=oe(Ce.index);return et?`
|
|
|
You have moved the item from position `+yt+`
|
|
|
to position `+Ut+`
|
|
|
`:`
|
|
|
You have moved the item from position `+yt+`
|
|
|
in list `+ie.droppableId+`
|
|
|
to list `+Ce.droppableId+`
|
|
|
in position `+Ut+`
|
|
|
`},J=function(ie,Ce,et){var yt=Ce.droppableId===et.droppableId;return yt?`
|
|
|
The item `+ie+`
|
|
|
has been combined with `+et.draggableId:`
|
|
|
The item `+ie+`
|
|
|
in list `+Ce.droppableId+`
|
|
|
has been combined with `+et.draggableId+`
|
|
|
in list `+et.droppableId+`
|
|
|
`},Y=function(ie){var Ce=ie.destination;if(Ce)return he(ie.source,Ce);var et=ie.combine;return et?J(ie.draggableId,ie.source,et):"You are over an area that cannot be dropped on"},$=function(ie){return`
|
|
|
The item has returned to its starting position
|
|
|
of `+oe(ie.index)+`
|
|
|
`},fe=function(ie){if(ie.reason==="CANCEL")return`
|
|
|
Movement cancelled.
|
|
|
`+$(ie.source)+`
|
|
|
`;var Ce=ie.destination,et=ie.combine;return Ce?`
|
|
|
You have dropped the item.
|
|
|
`+he(ie.source,Ce)+`
|
|
|
`:et?`
|
|
|
You have dropped the item.
|
|
|
`+J(ie.draggableId,ie.source,et)+`
|
|
|
`:`
|
|
|
The item has been dropped while not over a drop area.
|
|
|
`+$(ie.source)+`
|
|
|
`},we={dragHandleUsageInstructions:Oe,onDragStart:st,onDragUpdate:Y,onDragEnd:fe},Ne={x:0,y:0},Ee=function(ie,Ce){return{x:ie.x+Ce.x,y:ie.y+Ce.y}},de=function(ie,Ce){return{x:ie.x-Ce.x,y:ie.y-Ce.y}},me=function(ie,Ce){return ie.x===Ce.x&&ie.y===Ce.y},Le=function(ie){return{x:ie.x!==0?-ie.x:0,y:ie.y!==0?-ie.y:0}},tt=function(ie,Ce,et){var yt;return et===void 0&&(et=0),yt={},yt[ie]=Ce,yt[ie==="x"?"y":"x"]=et,yt},At=function(ie,Ce){return Math.sqrt(Math.pow(Ce.x-ie.x,2)+Math.pow(Ce.y-ie.y,2))},ht=function(ie,Ce){return Math.min.apply(Math,Ce.map(function(et){return At(ie,et)}))},Ke=function(ie){return function(Ce){return{x:ie(Ce.x),y:ie(Ce.y)}}},Jt=function(ie,Ce){var et=e({top:Math.max(Ce.top,ie.top),right:Math.min(Ce.right,ie.right),bottom:Math.min(Ce.bottom,ie.bottom),left:Math.max(Ce.left,ie.left)});return et.width<=0||et.height<=0?null:et},ct=function(ie,Ce){return{top:ie.top+Ce.y,left:ie.left+Ce.x,bottom:ie.bottom+Ce.y,right:ie.right+Ce.x}},Gt=function(ie){return[{x:ie.left,y:ie.top},{x:ie.right,y:ie.top},{x:ie.left,y:ie.bottom},{x:ie.right,y:ie.bottom}]},dr={top:0,right:0,bottom:0,left:0},zt=function(ie,Ce){return Ce?ct(ie,Ce.scroll.diff.displacement):ie},kt=function(ie,Ce,et){if(et&&et.increasedBy){var yt;return Object(A.a)({},ie,(yt={},yt[Ce.end]=ie[Ce.end]+et.increasedBy[Ce.line],yt))}return ie},Vt=function(ie,Ce){return Ce&&Ce.shouldClipSubject?Jt(Ce.pageMarginBox,ie):e(ie)},Xe=function(ie){var Ce=ie.page,et=ie.withPlaceholder,yt=ie.axis,Ut=ie.frame,Qt=zt(Ce.marginBox,Ut),$t=kt(Qt,yt,et),Hr=Vt($t,Ut);return{page:Ce,withPlaceholder:et,active:Hr}},pe=function(ie,Ce){ie.frame||We(!1);var et=ie.frame,yt=de(Ce,et.scroll.initial),Ut=Le(yt),Qt=Object(A.a)({},et,{scroll:{initial:et.scroll.initial,current:Ce,diff:{value:yt,displacement:Ut},max:et.scroll.max}}),$t=Xe({page:ie.subject.page,withPlaceholder:ie.subject.withPlaceholder,axis:ie.axis,frame:Qt}),Hr=Object(A.a)({},ie,{frame:Qt,subject:$t});return Hr};function te(Ue){return Number.isInteger?Number.isInteger(Ue):typeof Ue=="number"&&isFinite(Ue)&&Math.floor(Ue)===Ue}function $e(Ue){return Object.values?Object.values(Ue):Object.keys(Ue).map(function(ie){return Ue[ie]})}function He(Ue,ie){if(Ue.findIndex)return Ue.findIndex(ie);for(var Ce=0;Ce<Ue.length;Ce++)if(ie(Ue[Ce]))return Ce;return-1}function ae(Ue,ie){if(Ue.find)return Ue.find(ie);var Ce=He(Ue,ie);return Ce!==-1?Ue[Ce]:void 0}function ft(Ue){return Array.prototype.slice.call(Ue)}var Mt=I(function(Ue){return Ue.reduce(function(ie,Ce){return ie[Ce.descriptor.id]=Ce,ie},{})}),mt=I(function(Ue){return Ue.reduce(function(ie,Ce){return ie[Ce.descriptor.id]=Ce,ie},{})}),or=I(function(Ue){return $e(Ue)}),vr=I(function(Ue){return $e(Ue)}),fn=I(function(Ue,ie){var Ce=vr(ie).filter(function(et){return Ue===et.descriptor.droppableId}).sort(function(et,yt){return et.descriptor.index-yt.descriptor.index});return Ce});function sr(Ue){return Ue.at&&Ue.at.type==="REORDER"?Ue.at.destination:null}function Ir(Ue){return Ue.at&&Ue.at.type==="COMBINE"?Ue.at.combine:null}var lr=I(function(Ue,ie){return ie.filter(function(Ce){return Ce.descriptor.id!==Ue.descriptor.id})}),Wt=function(ie){var Ce=ie.isMovingForward,et=ie.draggable,yt=ie.destination,Ut=ie.insideDestination,Qt=ie.previousImpact;if(!yt.isCombineEnabled)return null;var $t=sr(Qt);if(!$t)return null;function Hr(Di){var da={type:"COMBINE",combine:{draggableId:Di,droppableId:yt.descriptor.id}};return Object(A.a)({},Qt,{at:da})}var ln=Qt.displaced.all,Ur=ln.length?ln[0]:null;if(Ce)return Ur?Hr(Ur):null;var Br=lr(et,Ut);if(!Ur){if(!Br.length)return null;var an=Br[Br.length-1];return Hr(an.descriptor.id)}var pn=He(Br,function(Di){return Di.descriptor.id===Ur});pn!==-1||We(!1);var jn=pn-1;if(jn<0)return null;var _i=Br[jn];return Hr(_i.descriptor.id)},xt=function(ie,Ce){return ie.descriptor.droppableId===Ce.descriptor.id},rn={point:Ne,value:0},Dn={invisible:{},visible:{},all:[]},Xn={displaced:Dn,displacedBy:rn,at:null},ri=function(ie,Ce){return function(et){return ie<=et&&et<=Ce}},Ui=function(ie){var Ce=ri(ie.top,ie.bottom),et=ri(ie.left,ie.right);return function(yt){var Ut=Ce(yt.top)&&Ce(yt.bottom)&&et(yt.left)&&et(yt.right);if(Ut)return!0;var Qt=Ce(yt.top)||Ce(yt.bottom),$t=et(yt.left)||et(yt.right),Hr=Qt&&$t;if(Hr)return!0;var ln=yt.top<ie.top&&yt.bottom>ie.bottom,Ur=yt.left<ie.left&&yt.right>ie.right,Br=ln&&Ur;if(Br)return!0;var an=ln&&$t||Ur&&Qt;return an}},Bn=function(ie){var Ce=ri(ie.top,ie.bottom),et=ri(ie.left,ie.right);return function(yt){var Ut=Ce(yt.top)&&Ce(yt.bottom)&&et(yt.left)&&et(yt.right);return Ut}},Jn={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Xt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},_t=function(ie){return function(Ce){var et=ri(Ce.top,Ce.bottom),yt=ri(Ce.left,Ce.right);return function(Ut){return ie===Jn?et(Ut.top)&&et(Ut.bottom):yt(Ut.left)&&yt(Ut.right)}}},Fe=function(ie,Ce){var et=Ce.frame?Ce.frame.scroll.diff.displacement:Ne;return ct(ie,et)},Pe=function(ie,Ce,et){return Ce.subject.active?et(Ce.subject.active)(ie):!1},Be=function(ie,Ce,et){return et(Ce)(ie)},nt=function(ie){var Ce=ie.target,et=ie.destination,yt=ie.viewport,Ut=ie.withDroppableDisplacement,Qt=ie.isVisibleThroughFrameFn,$t=Ut?Fe(Ce,et):Ce;return Pe($t,et,Qt)&&Be($t,yt,Qt)},vt=function(ie){return nt(Object(A.a)({},ie,{isVisibleThroughFrameFn:Ui}))},ar=function(ie){return nt(Object(A.a)({},ie,{isVisibleThroughFrameFn:Bn}))},kr=function(ie){return nt(Object(A.a)({},ie,{isVisibleThroughFrameFn:_t(ie.destination.axis)}))},mn=function(ie,Ce,et){if(typeof et=="boolean")return et;if(!Ce)return!0;var yt=Ce.invisible,Ut=Ce.visible;if(yt[ie])return!1;var Qt=Ut[ie];return Qt?Qt.shouldAnimate:!0};function Zn(Ue,ie){var Ce=Ue.page.marginBox,et={top:ie.point.y,right:0,bottom:0,left:ie.point.x};return e(l(Ce,et))}function ni(Ue){var ie=Ue.afterDragging,Ce=Ue.destination,et=Ue.displacedBy,yt=Ue.viewport,Ut=Ue.forceShouldAnimate,Qt=Ue.last;return ie.reduce(function(Hr,ln){var Ur=Zn(ln,et),Br=ln.descriptor.id;Hr.all.push(Br);var an=vt({target:Ur,destination:Ce,viewport:yt,withDroppableDisplacement:!0});if(!an)return Hr.invisible[ln.descriptor.id]=!0,Hr;var pn=mn(Br,Qt,Ut),jn={draggableId:Br,shouldAnimate:pn};return Hr.visible[Br]=jn,Hr},{all:[],visible:{},invisible:{}})}function ur(Ue,ie){if(!Ue.length)return 0;var Ce=Ue[Ue.length-1].descriptor.index;return ie.inHomeList?Ce:Ce+1}function Nt(Ue){var ie=Ue.insideDestination,Ce=Ue.inHomeList,et=Ue.displacedBy,yt=Ue.destination,Ut=ur(ie,{inHomeList:Ce});return{displaced:Dn,displacedBy:et,at:{type:"REORDER",destination:{droppableId:yt.descriptor.id,index:Ut}}}}function bt(Ue){var ie=Ue.draggable,Ce=Ue.insideDestination,et=Ue.destination,yt=Ue.viewport,Ut=Ue.displacedBy,Qt=Ue.last,$t=Ue.index,Hr=Ue.forceShouldAnimate,ln=xt(ie,et);if($t==null)return Nt({insideDestination:Ce,inHomeList:ln,displacedBy:Ut,destination:et});var Ur=ae(Ce,function(_i){return _i.descriptor.index===$t});if(!Ur)return Nt({insideDestination:Ce,inHomeList:ln,displacedBy:Ut,destination:et});var Br=lr(ie,Ce),an=Ce.indexOf(Ur),pn=Br.slice(an),jn=ni({afterDragging:pn,destination:et,displacedBy:Ut,last:Qt,viewport:yt.frame,forceShouldAnimate:Hr});return{displaced:jn,displacedBy:Ut,at:{type:"REORDER",destination:{droppableId:et.descriptor.id,index:$t}}}}function gr(Ue,ie){return Boolean(ie.effected[Ue])}var Yt=function(ie){var Ce=ie.isMovingForward,et=ie.destination,yt=ie.draggables,Ut=ie.combine,Qt=ie.afterCritical;if(!et.isCombineEnabled)return null;var $t=Ut.draggableId,Hr=yt[$t],ln=Hr.descriptor.index,Ur=gr($t,Qt);return Ur?Ce?ln:ln-1:Ce?ln+1:ln},Pt=function(ie){var Ce=ie.isMovingForward,et=ie.isInHomeList,yt=ie.insideDestination,Ut=ie.location;if(!yt.length)return null;var Qt=Ut.index,$t=Ce?Qt+1:Qt-1,Hr=yt[0].descriptor.index,ln=yt[yt.length-1].descriptor.index,Ur=et?ln:ln+1;return $t<Hr||$t>Ur?null:$t},rr=function(ie){var Ce=ie.isMovingForward,et=ie.isInHomeList,yt=ie.draggable,Ut=ie.draggables,Qt=ie.destination,$t=ie.insideDestination,Hr=ie.previousImpact,ln=ie.viewport,Ur=ie.afterCritical,Br=Hr.at;if(Br||We(!1),Br.type==="REORDER"){var an=Pt({isMovingForward:Ce,isInHomeList:et,location:Br.destination,insideDestination:$t});return an==null?null:bt({draggable:yt,insideDestination:$t,destination:Qt,viewport:ln,last:Hr.displaced,displacedBy:Hr.displacedBy,index:an})}var pn=Yt({isMovingForward:Ce,destination:Qt,displaced:Hr.displaced,draggables:Ut,combine:Br.combine,afterCritical:Ur});return pn==null?null:bt({draggable:yt,insideDestination:$t,destination:Qt,viewport:ln,last:Hr.displaced,displacedBy:Hr.displacedBy,index:pn})},Rt=function(ie){var Ce=ie.displaced,et=ie.afterCritical,yt=ie.combineWith,Ut=ie.displacedBy,Qt=Boolean(Ce.visible[yt]||Ce.invisible[yt]);return gr(yt,et)?Qt?Ne:Le(Ut.point):Qt?Ut.point:Ne},qt=function(ie){var Ce=ie.afterCritical,et=ie.impact,yt=ie.draggables,Ut=Ir(et);Ut||We(!1);var Qt=Ut.draggableId,$t=yt[Qt].page.borderBox.center,Hr=Rt({displaced:et.displaced,afterCritical:Ce,combineWith:Qt,displacedBy:et.displacedBy});return Ee($t,Hr)},Yr=function(ie,Ce){return Ce.margin[ie.start]+Ce.borderBox[ie.size]/2},Mr=function(ie,Ce){return Ce.margin[ie.end]+Ce.borderBox[ie.size]/2},Dr=function(ie,Ce,et){return Ce[ie.crossAxisStart]+et.margin[ie.crossAxisStart]+et.borderBox[ie.crossAxisSize]/2},un=function(ie){var Ce=ie.axis,et=ie.moveRelativeTo,yt=ie.isMoving;return tt(Ce.line,et.marginBox[Ce.end]+Yr(Ce,yt),Dr(Ce,et.marginBox,yt))},wn=function(ie){var Ce=ie.axis,et=ie.moveRelativeTo,yt=ie.isMoving;return tt(Ce.line,et.marginBox[Ce.start]-Mr(Ce,yt),Dr(Ce,et.marginBox,yt))},ai=function(ie){var Ce=ie.axis,et=ie.moveInto,yt=ie.isMoving;return tt(Ce.line,et.contentBox[Ce.start]+Yr(Ce,yt),Dr(Ce,et.contentBox,yt))},ei=function(ie){var Ce=ie.impact,et=ie.draggable,yt=ie.draggables,Ut=ie.droppable,Qt=ie.afterCritical,$t=fn(Ut.descriptor.id,yt),Hr=et.page,ln=Ut.axis;if(!$t.length)return ai({axis:ln,moveInto:Ut.page,isMoving:Hr});var Ur=Ce.displaced,Br=Ce.displacedBy,an=Ur.all[0];if(an){var pn=yt[an];if(gr(an,Qt))return wn({axis:ln,moveRelativeTo:pn.page,isMoving:Hr});var jn=b(pn.page,Br.point);return wn({axis:ln,moveRelativeTo:jn,isMoving:Hr})}var _i=$t[$t.length-1];if(_i.descriptor.id===et.descriptor.id)return Hr.borderBox.center;if(gr(_i.descriptor.id,Qt)){var Di=b(_i.page,Le(Qt.displacedBy.point));return un({axis:ln,moveRelativeTo:Di,isMoving:Hr})}return un({axis:ln,moveRelativeTo:_i.page,isMoving:Hr})},gi=function(ie,Ce){var et=ie.frame;return et?Ee(Ce,et.scroll.diff.displacement):Ce},Ii=function(ie){var Ce=ie.impact,et=ie.draggable,yt=ie.droppable,Ut=ie.draggables,Qt=ie.afterCritical,$t=et.page.borderBox.center,Hr=Ce.at;return yt&&Hr?Hr.type==="REORDER"?ei({impact:Ce,draggable:et,draggables:Ut,droppable:yt,afterCritical:Qt}):qt({impact:Ce,draggables:Ut,afterCritical:Qt}):$t},ki=function(ie){var Ce=Ii(ie),et=ie.droppable,yt=et?gi(et,Ce):Ce;return yt},Qi=function(ie,Ce){var et=de(Ce,ie.scroll.initial),yt=Le(et),Ut=e({top:Ce.y,bottom:Ce.y+ie.frame.height,left:Ce.x,right:Ce.x+ie.frame.width}),Qt={frame:Ut,scroll:{initial:ie.scroll.initial,max:ie.scroll.max,current:Ce,diff:{value:et,displacement:yt}}};return Qt};function it(Ue,ie){return Ue.map(function(Ce){return ie[Ce]})}function Me(Ue,ie){for(var Ce=0;Ce<ie.length;Ce++){var et=ie[Ce].visible[Ue];if(et)return et}return null}var je=function(ie){var Ce=ie.impact,et=ie.viewport,yt=ie.destination,Ut=ie.draggables,Qt=ie.maxScrollChange,$t=Qi(et,Ee(et.scroll.current,Qt)),Hr=yt.frame?pe(yt,Ee(yt.frame.scroll.current,Qt)):yt,ln=Ce.displaced,Ur=ni({afterDragging:it(ln.all,Ut),destination:yt,displacedBy:Ce.displacedBy,viewport:$t.frame,last:ln,forceShouldAnimate:!1}),Br=ni({afterDragging:it(ln.all,Ut),destination:Hr,displacedBy:Ce.displacedBy,viewport:et.frame,last:ln,forceShouldAnimate:!1}),an={},pn={},jn=[ln,Ur,Br];ln.all.forEach(function(Di){var da=Me(Di,jn);if(da){pn[Di]=da;return}an[Di]=!0});var _i=Object(A.a)({},Ce,{displaced:{all:ln.all,invisible:an,visible:pn}});return _i},Ye=function(ie,Ce){return Ee(ie.scroll.diff.displacement,Ce)},rt=function(ie){var Ce=ie.pageBorderBoxCenter,et=ie.draggable,yt=ie.viewport,Ut=Ye(yt,Ce),Qt=de(Ut,et.page.borderBox.center);return Ee(et.client.borderBox.center,Qt)},qe=function(ie){var Ce=ie.draggable,et=ie.destination,yt=ie.newPageBorderBoxCenter,Ut=ie.viewport,Qt=ie.withDroppableDisplacement,$t=ie.onlyOnMainAxis,Hr=$t===void 0?!1:$t,ln=de(yt,Ce.page.borderBox.center),Ur=ct(Ce.page.borderBox,ln),Br={target:Ur,destination:et,withDroppableDisplacement:Qt,viewport:Ut};return Hr?kr(Br):ar(Br)},at=function(ie){var Ce=ie.isMovingForward,et=ie.draggable,yt=ie.destination,Ut=ie.draggables,Qt=ie.previousImpact,$t=ie.viewport,Hr=ie.previousPageBorderBoxCenter,ln=ie.previousClientSelection,Ur=ie.afterCritical;if(!yt.isEnabled)return null;var Br=fn(yt.descriptor.id,Ut),an=xt(et,yt),pn=Wt({isMovingForward:Ce,draggable:et,destination:yt,insideDestination:Br,previousImpact:Qt})||rr({isMovingForward:Ce,isInHomeList:an,draggable:et,draggables:Ut,destination:yt,insideDestination:Br,previousImpact:Qt,viewport:$t,afterCritical:Ur});if(!pn)return null;var jn=ki({impact:pn,draggable:et,droppable:yt,draggables:Ut,afterCritical:Ur}),_i=qe({draggable:et,destination:yt,newPageBorderBoxCenter:jn,viewport:$t.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(_i){var Di=rt({pageBorderBoxCenter:jn,draggable:et,viewport:$t});return{clientSelection:Di,impact:pn,scrollJumpRequest:null}}var da=de(jn,Hr),Ji=je({impact:pn,viewport:$t,destination:yt,draggables:Ut,maxScrollChange:da});return{clientSelection:ln,impact:Ji,scrollJumpRequest:da}},St=function(ie){var Ce=ie.subject.active;return Ce||We(!1),Ce},gt=function(ie){var Ce=ie.isMovingForward,et=ie.pageBorderBoxCenter,yt=ie.source,Ut=ie.droppables,Qt=ie.viewport,$t=yt.subject.active;if(!$t)return null;var Hr=yt.axis,ln=ri($t[Hr.start],$t[Hr.end]),Ur=or(Ut).filter(function(an){return an!==yt}).filter(function(an){return an.isEnabled}).filter(function(an){return Boolean(an.subject.active)}).filter(function(an){return Ui(Qt.frame)(St(an))}).filter(function(an){var pn=St(an);return Ce?$t[Hr.crossAxisEnd]<pn[Hr.crossAxisEnd]:pn[Hr.crossAxisStart]<$t[Hr.crossAxisStart]}).filter(function(an){var pn=St(an),jn=ri(pn[Hr.start],pn[Hr.end]);return ln(pn[Hr.start])||ln(pn[Hr.end])||jn($t[Hr.start])||jn($t[Hr.end])}).sort(function(an,pn){var jn=St(an)[Hr.crossAxisStart],_i=St(pn)[Hr.crossAxisStart];return Ce?jn-_i:_i-jn}).filter(function(an,pn,jn){return St(an)[Hr.crossAxisStart]===St(jn[0])[Hr.crossAxisStart]});if(!Ur.length)return null;if(Ur.length===1)return Ur[0];var Br=Ur.filter(function(an){var pn=ri(St(an)[Hr.start],St(an)[Hr.end]);return pn(et[Hr.line])});return Br.length===1?Br[0]:Br.length>1?Br.sort(function(an,pn){return St(an)[Hr.start]-St(pn)[Hr.start]})[0]:Ur.sort(function(an,pn){var jn=ht(et,Gt(St(an))),_i=ht(et,Gt(St(pn)));return jn!==_i?jn-_i:St(an)[Hr.start]-St(pn)[Hr.start]})[0]},hr=function(ie,Ce){var et=ie.page.borderBox.center;return gr(ie.descriptor.id,Ce)?de(et,Ce.displacedBy.point):et},Qr=function(ie,Ce){var et=ie.page.borderBox;return gr(ie.descriptor.id,Ce)?ct(et,Le(Ce.displacedBy.point)):et},Xr=function(ie){var Ce=ie.pageBorderBoxCenter,et=ie.viewport,yt=ie.destination,Ut=ie.insideDestination,Qt=ie.afterCritical,$t=Ut.filter(function(Hr){return ar({target:Qr(Hr,Qt),destination:yt,viewport:et.frame,withDroppableDisplacement:!0})}).sort(function(Hr,ln){var Ur=At(Ce,gi(yt,hr(Hr,Qt))),Br=At(Ce,gi(yt,hr(ln,Qt)));return Ur<Br?-1:Br<Ur?1:Hr.descriptor.index-ln.descriptor.index});return $t[0]||null},dn=I(function(ie,Ce){var et=Ce[ie.line];return{value:et,point:tt(ie.line,et)}}),mr=function(ie,Ce,et){var yt=ie.axis;if(ie.descriptor.mode==="virtual")return tt(yt.line,Ce[yt.line]);var Ut=ie.subject.page.contentBox[yt.size],Qt=fn(ie.descriptor.id,et),$t=Qt.reduce(function(Ur,Br){return Ur+Br.client.marginBox[yt.size]},0),Hr=$t+Ce[yt.line],ln=Hr-Ut;return ln<=0?null:tt(yt.line,ln)},Kn=function(ie,Ce){return Object(A.a)({},ie,{scroll:Object(A.a)({},ie.scroll,{max:Ce})})},Rr=function(ie,Ce,et){var yt=ie.frame;xt(Ce,ie)&&We(!1),ie.subject.withPlaceholder&&We(!1);var Ut=dn(ie.axis,Ce.displaceBy).point,Qt=mr(ie,Ut,et),$t={placeholderSize:Ut,increasedBy:Qt,oldFrameMaxScroll:ie.frame?ie.frame.scroll.max:null};if(!yt){var Hr=Xe({page:ie.subject.page,withPlaceholder:$t,axis:ie.axis,frame:ie.frame});return Object(A.a)({},ie,{subject:Hr})}var ln=Qt?Ee(yt.scroll.max,Qt):yt.scroll.max,Ur=Kn(yt,ln),Br=Xe({page:ie.subject.page,withPlaceholder:$t,axis:ie.axis,frame:Ur});return Object(A.a)({},ie,{subject:Br,frame:Ur})},Rn=function(ie){var Ce=ie.subject.withPlaceholder;Ce||We(!1);var et=ie.frame;if(!et){var yt=Xe({page:ie.subject.page,axis:ie.axis,frame:null,withPlaceholder:null});return Object(A.a)({},ie,{subject:yt})}var Ut=Ce.oldFrameMaxScroll;Ut||We(!1);var Qt=Kn(et,Ut),$t=Xe({page:ie.subject.page,axis:ie.axis,frame:Qt,withPlaceholder:null});return Object(A.a)({},ie,{subject:$t,frame:Qt})},An=function(ie){var Ce=ie.previousPageBorderBoxCenter,et=ie.moveRelativeTo,yt=ie.insideDestination,Ut=ie.draggable,Qt=ie.draggables,$t=ie.destination,Hr=ie.viewport,ln=ie.afterCritical;if(!et){if(yt.length)return null;var Ur={displaced:Dn,displacedBy:rn,at:{type:"REORDER",destination:{droppableId:$t.descriptor.id,index:0}}},Br=ki({impact:Ur,draggable:Ut,droppable:$t,draggables:Qt,afterCritical:ln}),an=xt(Ut,$t)?$t:Rr($t,Ut,Qt),pn=qe({draggable:Ut,destination:an,newPageBorderBoxCenter:Br,viewport:Hr.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return pn?Ur:null}var jn=Boolean(Ce[$t.axis.line]<=et.page.borderBox.center[$t.axis.line]),_i=function(){var da=et.descriptor.index;return et.descriptor.id===Ut.descriptor.id||jn?da:da+1}(),Di=dn($t.axis,Ut.displaceBy);return bt({draggable:Ut,insideDestination:yt,destination:$t,viewport:Hr,displacedBy:Di,last:Dn,index:_i})},Zr=function(ie){var Ce=ie.isMovingForward,et=ie.previousPageBorderBoxCenter,yt=ie.draggable,Ut=ie.isOver,Qt=ie.draggables,$t=ie.droppables,Hr=ie.viewport,ln=ie.afterCritical,Ur=gt({isMovingForward:Ce,pageBorderBoxCenter:et,source:Ut,droppables:$t,viewport:Hr});if(!Ur)return null;var Br=fn(Ur.descriptor.id,Qt),an=Xr({pageBorderBoxCenter:et,viewport:Hr,destination:Ur,insideDestination:Br,afterCritical:ln}),pn=An({previousPageBorderBoxCenter:et,destination:Ur,draggable:yt,draggables:Qt,moveRelativeTo:an,insideDestination:Br,viewport:Hr,afterCritical:ln});if(!pn)return null;var jn=ki({impact:pn,draggable:yt,droppable:Ur,draggables:Qt,afterCritical:ln}),_i=rt({pageBorderBoxCenter:jn,draggable:yt,viewport:Hr});return{clientSelection:_i,impact:pn,scrollJumpRequest:null}},hi=function(ie){var Ce=ie.at;return Ce?Ce.type==="REORDER"?Ce.destination.droppableId:Ce.combine.droppableId:null},Mi=function(ie,Ce){var et=hi(ie);return et?Ce[et]:null},Zi=function(ie){var Ce=ie.state,et=ie.type,yt=Mi(Ce.impact,Ce.dimensions.droppables),Ut=Boolean(yt),Qt=Ce.dimensions.droppables[Ce.critical.droppable.id],$t=yt||Qt,Hr=$t.axis.direction,ln=Hr==="vertical"&&(et==="MOVE_UP"||et==="MOVE_DOWN")||Hr==="horizontal"&&(et==="MOVE_LEFT"||et==="MOVE_RIGHT");if(ln&&!Ut)return null;var Ur=et==="MOVE_DOWN"||et==="MOVE_RIGHT",Br=Ce.dimensions.draggables[Ce.critical.draggable.id],an=Ce.current.page.borderBoxCenter,pn=Ce.dimensions,jn=pn.draggables,_i=pn.droppables;return ln?at({isMovingForward:Ur,previousPageBorderBoxCenter:an,draggable:Br,destination:$t,draggables:jn,viewport:Ce.viewport,previousClientSelection:Ce.current.client.selection,previousImpact:Ce.impact,afterCritical:Ce.afterCritical}):Zr({isMovingForward:Ur,previousPageBorderBoxCenter:an,draggable:Br,isOver:$t,draggables:jn,droppables:_i,viewport:Ce.viewport,afterCritical:Ce.afterCritical})};function qr(Ue){return Ue.phase==="DRAGGING"||Ue.phase==="COLLECTING"}function xn(Ue){var ie=ri(Ue.top,Ue.bottom),Ce=ri(Ue.left,Ue.right);return function(yt){return ie(yt.y)&&Ce(yt.x)}}function zn(Ue,ie){return Ue.left<ie.right&&Ue.right>ie.left&&Ue.top<ie.bottom&&Ue.bottom>ie.top}function Ht(Ue){var ie=Ue.pageBorderBox,Ce=Ue.draggable,et=Ue.candidates,yt=Ce.page.borderBox.center,Ut=et.map(function(Qt){var $t=Qt.axis,Hr=tt(Qt.axis.line,ie.center[$t.line],Qt.page.borderBox.center[$t.crossAxisLine]);return{id:Qt.descriptor.id,distance:At(yt,Hr)}}).sort(function(Qt,$t){return $t.distance-Qt.distance});return Ut[0]?Ut[0].id:null}function Tt(Ue){var ie=Ue.pageBorderBox,Ce=Ue.draggable,et=Ue.droppables,yt=or(et).filter(function(Ut){if(!Ut.isEnabled)return!1;var Qt=Ut.subject.active;if(!Qt)return!1;if(!zn(ie,Qt))return!1;if(xn(Qt)(ie.center))return!0;var $t=Ut.axis,Hr=Qt.center[$t.crossAxisLine],ln=ie[$t.crossAxisStart],Ur=ie[$t.crossAxisEnd],Br=ri(Qt[$t.crossAxisStart],Qt[$t.crossAxisEnd]),an=Br(ln),pn=Br(Ur);return!an&&!pn?!0:an?ln<Hr:Ur>Hr});return yt.length?yt.length===1?yt[0].descriptor.id:Ht({pageBorderBox:ie,draggable:Ce,candidates:yt}):null}var Dt=function(ie,Ce){return e(ct(ie,Ce))},Bt=function(ie,Ce){var et=ie.frame;return et?Dt(Ce,et.scroll.diff.value):Ce};function jt(Ue){var ie=Ue.displaced,Ce=Ue.id;return Boolean(ie.visible[Ce]||ie.invisible[Ce])}function Ot(Ue){var ie=Ue.draggable,Ce=Ue.closest,et=Ue.inHomeList;return Ce?et&&Ce.descriptor.index>ie.descriptor.index?Ce.descriptor.index-1:Ce.descriptor.index:null}var nr=function(ie){var Ce=ie.pageBorderBoxWithDroppableScroll,et=ie.draggable,yt=ie.destination,Ut=ie.insideDestination,Qt=ie.last,$t=ie.viewport,Hr=ie.afterCritical,ln=yt.axis,Ur=dn(yt.axis,et.displaceBy),Br=Ur.value,an=Ce[ln.start],pn=Ce[ln.end],jn=lr(et,Ut),_i=ae(jn,function(da){var Ji=da.descriptor.id,Qa=da.page.borderBox.center[ln.line],ya=gr(Ji,Hr),fo=jt({displaced:Qt,id:Ji});return ya?fo?pn<=Qa:an<Qa-Br:fo?pn<=Qa+Br:an<Qa}),Di=Ot({draggable:et,closest:_i,inHomeList:xt(et,yt)});return bt({draggable:et,insideDestination:Ut,destination:yt,viewport:$t,last:Qt,displacedBy:Ur,index:Di})},pr=4,Ar=function(ie){var Ce=ie.draggable,et=ie.pageBorderBoxWithDroppableScroll,yt=ie.previousImpact,Ut=ie.destination,Qt=ie.insideDestination,$t=ie.afterCritical;if(!Ut.isCombineEnabled)return null;var Hr=Ut.axis,ln=dn(Ut.axis,Ce.displaceBy),Ur=ln.value,Br=et[Hr.start],an=et[Hr.end],pn=lr(Ce,Qt),jn=ae(pn,function(Di){var da=Di.descriptor.id,Ji=Di.page.borderBox,Qa=Ji[Hr.size],ya=Qa/pr,fo=gr(da,$t),za=jt({displaced:yt.displaced,id:da});return fo?za?an>Ji[Hr.start]+ya&&an<Ji[Hr.end]-ya:Br>Ji[Hr.start]-Ur+ya&&Br<Ji[Hr.end]-Ur-ya:za?an>Ji[Hr.start]+Ur+ya&&an<Ji[Hr.end]+Ur-ya:Br>Ji[Hr.start]+ya&&Br<Ji[Hr.end]-ya});if(!jn)return null;var _i={displacedBy:ln,displaced:yt.displaced,at:{type:"COMBINE",combine:{draggableId:jn.descriptor.id,droppableId:Ut.descriptor.id}}};return _i},Nr=function(ie){var Ce=ie.pageOffset,et=ie.draggable,yt=ie.draggables,Ut=ie.droppables,Qt=ie.previousImpact,$t=ie.viewport,Hr=ie.afterCritical,ln=Dt(et.page.borderBox,Ce),Ur=Tt({pageBorderBox:ln,draggable:et,droppables:Ut});if(!Ur)return Xn;var Br=Ut[Ur],an=fn(Br.descriptor.id,yt),pn=Bt(Br,ln);return Ar({pageBorderBoxWithDroppableScroll:pn,draggable:et,previousImpact:Qt,destination:Br,insideDestination:an,afterCritical:Hr})||nr({pageBorderBoxWithDroppableScroll:pn,draggable:et,destination:Br,insideDestination:an,last:Qt.displaced,viewport:$t,afterCritical:Hr})},Hn=function(ie,Ce){var et;return Object(A.a)({},ie,(et={},et[Ce.descriptor.id]=Ce,et))},Ln=function(ie){var Ce=ie.previousImpact,et=ie.impact,yt=ie.droppables,Ut=hi(Ce),Qt=hi(et);if(!Ut)return yt;if(Ut===Qt)return yt;var $t=yt[Ut];if(!$t.subject.withPlaceholder)return yt;var Hr=Rn($t);return Hn(yt,Hr)},ci=function(ie){var Ce=ie.draggable,et=ie.draggables,yt=ie.droppables,Ut=ie.previousImpact,Qt=ie.impact,$t=Ln({previousImpact:Ut,impact:Qt,droppables:yt}),Hr=hi(Qt);if(!Hr)return $t;var ln=yt[Hr];if(xt(Ce,ln))return $t;if(ln.subject.withPlaceholder)return $t;var Ur=Rr(ln,Ce,et);return Hn($t,Ur)},hn=function(ie){var Ce=ie.state,et=ie.clientSelection,yt=ie.dimensions,Ut=ie.viewport,Qt=ie.impact,$t=ie.scrollJumpRequest,Hr=Ut||Ce.viewport,ln=yt||Ce.dimensions,Ur=et||Ce.current.client.selection,Br=de(Ur,Ce.initial.client.selection),an={offset:Br,selection:Ur,borderBoxCenter:Ee(Ce.initial.client.borderBoxCenter,Br)},pn={selection:Ee(an.selection,Hr.scroll.current),borderBoxCenter:Ee(an.borderBoxCenter,Hr.scroll.current),offset:Ee(an.offset,Hr.scroll.diff.value)},jn={client:an,page:pn};if(Ce.phase==="COLLECTING")return Object(A.a)({phase:"COLLECTING"},Ce,{dimensions:ln,viewport:Hr,current:jn});var _i=ln.draggables[Ce.critical.draggable.id],Di=Qt||Nr({pageOffset:pn.offset,draggable:_i,draggables:ln.draggables,droppables:ln.droppables,previousImpact:Ce.impact,viewport:Hr,afterCritical:Ce.afterCritical}),da=ci({draggable:_i,impact:Di,previousImpact:Ce.impact,draggables:ln.draggables,droppables:ln.droppables}),Ji=Object(A.a)({},Ce,{current:jn,dimensions:{draggables:ln.draggables,droppables:da},impact:Di,viewport:Hr,scrollJumpRequest:$t||null,forceShouldAnimate:$t?!1:null});return Ji};function Fr(Ue,ie){return Ue.map(function(Ce){return ie[Ce]})}var En=function(ie){var Ce=ie.impact,et=ie.viewport,yt=ie.draggables,Ut=ie.destination,Qt=ie.forceShouldAnimate,$t=Ce.displaced,Hr=Fr($t.all,yt),ln=ni({afterDragging:Hr,destination:Ut,displacedBy:Ce.displacedBy,viewport:et.frame,forceShouldAnimate:Qt,last:$t});return Object(A.a)({},Ce,{displaced:ln})},Wn=function(ie){var Ce=ie.impact,et=ie.draggable,yt=ie.droppable,Ut=ie.draggables,Qt=ie.viewport,$t=ie.afterCritical,Hr=ki({impact:Ce,draggable:et,draggables:Ut,droppable:yt,afterCritical:$t});return rt({pageBorderBoxCenter:Hr,draggable:et,viewport:Qt})},Yn=function(ie){var Ce=ie.state,et=ie.dimensions,yt=ie.viewport;Ce.movementMode==="SNAP"||We(!1);var Ut=Ce.impact,Qt=yt||Ce.viewport,$t=et||Ce.dimensions,Hr=$t.draggables,ln=$t.droppables,Ur=Hr[Ce.critical.draggable.id],Br=hi(Ut);Br||We(!1);var an=ln[Br],pn=En({impact:Ut,viewport:Qt,destination:an,draggables:Hr}),jn=Wn({impact:pn,draggable:Ur,droppable:an,draggables:Hr,viewport:Qt,afterCritical:Ce.afterCritical});return hn({impact:pn,clientSelection:jn,state:Ce,dimensions:$t,viewport:Qt})},ii=function(ie){return{index:ie.index,droppableId:ie.droppableId}},xi=function(ie){var Ce=ie.draggable,et=ie.home,yt=ie.draggables,Ut=ie.viewport,Qt=dn(et.axis,Ce.displaceBy),$t=fn(et.descriptor.id,yt),Hr=$t.indexOf(Ce);Hr!==-1||We(!1);var ln=$t.slice(Hr+1),Ur=ln.reduce(function(jn,_i){return jn[_i.descriptor.id]=!0,jn},{}),Br={inVirtualList:et.descriptor.mode==="virtual",displacedBy:Qt,effected:Ur},an=ni({afterDragging:ln,destination:et,displacedBy:Qt,last:null,viewport:Ut.frame,forceShouldAnimate:!1}),pn={displaced:an,displacedBy:Qt,at:{type:"REORDER",destination:ii(Ce.descriptor)}};return{impact:pn,afterCritical:Br}},Ni=function(ie,Ce){return{draggables:ie.draggables,droppables:Hn(ie.droppables,Ce)}},Li=function(ie){},oa=function(ie){},ma=function(ie){var Ce=ie.draggable,et=ie.offset,yt=ie.initialWindowScroll,Ut=b(Ce.client,et),Qt=S(Ut,yt),$t=Object(A.a)({},Ce,{placeholder:Object(A.a)({},Ce.placeholder,{client:Ut}),client:Ut,page:Qt});return $t},ia=function(ie){var Ce=ie.frame;return Ce||We(!1),Ce},ba=function(ie){var Ce=ie.additions,et=ie.updatedDroppables,yt=ie.viewport,Ut=yt.scroll.diff.value;return Ce.map(function(Qt){var $t=Qt.descriptor.droppableId,Hr=et[$t],ln=ia(Hr),Ur=ln.scroll.diff.value,Br=Ee(Ut,Ur),an=ma({draggable:Qt,offset:Br,initialWindowScroll:yt.scroll.initial});return an})},vi=function(ie){var Ce=ie.state,et=ie.published;Li();var yt=et.modified.map(function(ya){var fo=Ce.dimensions.droppables[ya.droppableId],za=pe(fo,ya.scroll);return za}),Ut=Object(A.a)({},Ce.dimensions.droppables,{},Mt(yt)),Qt=mt(ba({additions:et.additions,updatedDroppables:Ut,viewport:Ce.viewport})),$t=Object(A.a)({},Ce.dimensions.draggables,{},Qt);et.removals.forEach(function(ya){delete $t[ya]});var Hr={droppables:Ut,draggables:$t},ln=hi(Ce.impact),Ur=ln?Hr.droppables[ln]:null,Br=Hr.draggables[Ce.critical.draggable.id],an=Hr.droppables[Ce.critical.droppable.id],pn=xi({draggable:Br,home:an,draggables:$t,viewport:Ce.viewport}),jn=pn.impact,_i=pn.afterCritical,Di=Ur&&Ur.isCombineEnabled?Ce.impact:jn,da=Nr({pageOffset:Ce.current.page.offset,draggable:Hr.draggables[Ce.critical.draggable.id],draggables:Hr.draggables,droppables:Hr.droppables,previousImpact:Di,viewport:Ce.viewport,afterCritical:_i});oa();var Ji=Object(A.a)({phase:"DRAGGING"},Ce,{phase:"DRAGGING",impact:da,onLiftImpact:jn,dimensions:Hr,afterCritical:_i,forceShouldAnimate:!1});if(Ce.phase==="COLLECTING")return Ji;var Qa=Object(A.a)({phase:"DROP_PENDING"},Ji,{phase:"DROP_PENDING",reason:Ce.reason,isWaiting:!1});return Qa},On=function(ie){return ie.movementMode==="SNAP"},Fi=function(ie,Ce,et){var yt=Ni(ie.dimensions,Ce);return!On(ie)||et?hn({state:ie,dimensions:yt}):Yn({state:ie,dimensions:yt})};function ha(Ue){return Ue.isDragging&&Ue.movementMode==="SNAP"?Object(A.a)({phase:"DRAGGING"},Ue,{scrollJumpRequest:null}):Ue}var ea={phase:"IDLE",completed:null,shouldFlush:!1},aa=function(ie,Ce){if(ie===void 0&&(ie=ea),Ce.type==="FLUSH")return Object(A.a)({},ea,{shouldFlush:!0});if(Ce.type==="INITIAL_PUBLISH"){ie.phase==="IDLE"||We(!1);var et=Ce.payload,yt=et.critical,Ut=et.clientSelection,Qt=et.viewport,$t=et.dimensions,Hr=et.movementMode,ln=$t.draggables[yt.draggable.id],Ur=$t.droppables[yt.droppable.id],Br={selection:Ut,borderBoxCenter:ln.client.borderBox.center,offset:Ne},an={client:Br,page:{selection:Ee(Br.selection,Qt.scroll.initial),borderBoxCenter:Ee(Br.selection,Qt.scroll.initial),offset:Ee(Br.selection,Qt.scroll.diff.value)}},pn=or($t.droppables).every(function(Ss){return!Ss.isFixedOnPage}),jn=xi({draggable:ln,home:Ur,draggables:$t.draggables,viewport:Qt}),_i=jn.impact,Di=jn.afterCritical,da={phase:"DRAGGING",isDragging:!0,critical:yt,movementMode:Hr,dimensions:$t,initial:an,current:an,isWindowScrollAllowed:pn,impact:_i,afterCritical:Di,onLiftImpact:_i,viewport:Qt,scrollJumpRequest:null,forceShouldAnimate:null};return da}if(Ce.type==="COLLECTION_STARTING"){if(ie.phase==="COLLECTING"||ie.phase==="DROP_PENDING")return ie;ie.phase==="DRAGGING"||We(!1);var Ji=Object(A.a)({phase:"COLLECTING"},ie,{phase:"COLLECTING"});return Ji}if(Ce.type==="PUBLISH_WHILE_DRAGGING")return ie.phase==="COLLECTING"||ie.phase==="DROP_PENDING"||We(!1),vi({state:ie,published:Ce.payload});if(Ce.type==="MOVE"){if(ie.phase==="DROP_PENDING")return ie;qr(ie)||We(!1);var Qa=Ce.payload.client;return me(Qa,ie.current.client.selection)?ie:hn({state:ie,clientSelection:Qa,impact:On(ie)?ie.impact:null})}if(Ce.type==="UPDATE_DROPPABLE_SCROLL"){if(ie.phase==="DROP_PENDING")return ha(ie);if(ie.phase==="COLLECTING")return ha(ie);qr(ie)||We(!1);var ya=Ce.payload,fo=ya.id,za=ya.newScroll,Xo=ie.dimensions.droppables[fo];if(!Xo)return ie;var ls=pe(Xo,za);return Fi(ie,ls,!1)}if(Ce.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(ie.phase==="DROP_PENDING")return ie;qr(ie)||We(!1);var N=Ce.payload,U=N.id,ne=N.isEnabled,se=ie.dimensions.droppables[U];se||We(!1),se.isEnabled!==ne||We(!1);var ge=Object(A.a)({},se,{isEnabled:ne});return Fi(ie,ge,!0)}if(Ce.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(ie.phase==="DROP_PENDING")return ie;qr(ie)||We(!1);var ze=Ce.payload,Ct=ze.id,Zt=ze.isCombineEnabled,yr=ie.dimensions.droppables[Ct];yr||We(!1),yr.isCombineEnabled!==Zt||We(!1);var Tr=Object(A.a)({},yr,{isCombineEnabled:Zt});return Fi(ie,Tr,!0)}if(Ce.type==="MOVE_BY_WINDOW_SCROLL"){if(ie.phase==="DROP_PENDING"||ie.phase==="DROP_ANIMATING")return ie;qr(ie)||We(!1),ie.isWindowScrollAllowed||We(!1);var Pn=Ce.payload.newScroll;if(me(ie.viewport.scroll.current,Pn))return ha(ie);var $n=Qi(ie.viewport,Pn);return On(ie)?Yn({state:ie,viewport:$n}):hn({state:ie,viewport:$n})}if(Ce.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!qr(ie))return ie;var Si=Ce.payload.maxScroll;if(me(Si,ie.viewport.scroll.max))return ie;var Ti=Object(A.a)({},ie.viewport,{scroll:Object(A.a)({},ie.viewport.scroll,{max:Si})});return Object(A.a)({phase:"DRAGGING"},ie,{viewport:Ti})}if(Ce.type==="MOVE_UP"||Ce.type==="MOVE_DOWN"||Ce.type==="MOVE_LEFT"||Ce.type==="MOVE_RIGHT"){if(ie.phase==="COLLECTING"||ie.phase==="DROP_PENDING")return ie;ie.phase==="DRAGGING"||We(!1);var la=Zi({state:ie,type:Ce.type});return la?hn({state:ie,impact:la.impact,clientSelection:la.clientSelection,scrollJumpRequest:la.scrollJumpRequest}):ie}if(Ce.type==="DROP_PENDING"){var Ta=Ce.payload.reason;ie.phase==="COLLECTING"||We(!1);var Wa=Object(A.a)({phase:"DROP_PENDING"},ie,{phase:"DROP_PENDING",isWaiting:!0,reason:Ta});return Wa}if(Ce.type==="DROP_ANIMATE"){var ka=Ce.payload,Na=ka.completed,qa=ka.dropDuration,ho=ka.newHomeClientOffset;ie.phase==="DRAGGING"||ie.phase==="DROP_PENDING"||We(!1);var ns={phase:"DROP_ANIMATING",completed:Na,dropDuration:qa,newHomeClientOffset:ho,dimensions:ie.dimensions};return ns}if(Ce.type==="DROP_COMPLETE"){var Mo=Ce.payload.completed;return{phase:"IDLE",completed:Mo,shouldFlush:!1}}return ie},Or=function(ie){return{type:"BEFORE_INITIAL_CAPTURE",payload:ie}},wr=function(ie){return{type:"LIFT",payload:ie}},Sn=function(ie){return{type:"INITIAL_PUBLISH",payload:ie}},cr=function(ie){return{type:"PUBLISH_WHILE_DRAGGING",payload:ie}},Lr=function(){return{type:"COLLECTION_STARTING",payload:null}},Wr=function(ie){return{type:"UPDATE_DROPPABLE_SCROLL",payload:ie}},on=function(ie){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:ie}},Nn=function(ie){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:ie}},Et=function(ie){return{type:"MOVE",payload:ie}},Cr=function(ie){return{type:"MOVE_BY_WINDOW_SCROLL",payload:ie}},_r=function(ie){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:ie}},$r=function(){return{type:"MOVE_UP",payload:null}},yn=function(){return{type:"MOVE_DOWN",payload:null}},Tn=function(){return{type:"MOVE_RIGHT",payload:null}},vn=function(){return{type:"MOVE_LEFT",payload:null}},Qn=function(){return{type:"FLUSH",payload:null}},Fn=function(ie){return{type:"DROP_ANIMATE",payload:ie}},fi=function(ie){return{type:"DROP_COMPLETE",payload:ie}},Ri=function(ie){return{type:"DROP",payload:ie}},yi=function(ie){return{type:"DROP_PENDING",payload:ie}},Ci=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function Wi(Ue){if(Ue.length<=1)return;for(var ie=Ue.map(function($t){return $t.descriptor.index}),Ce={},et=1;et<ie.length;et++){var yt=ie[et],Ut=ie[et-1];yt!==Ut+1&&(Ce[yt]=!0)}if(!Object.keys(Ce).length)return;var Qt=ie.map(function($t){var Hr=Boolean(Ce[$t]);return Hr?"[\u{1F525}"+$t+"]":""+$t}).join(", ")}function qi(Ue,ie){if(!1)var Ce}var zi=function(ie){return function(Ce){var et=Ce.getState,yt=Ce.dispatch;return function(Ut){return function(Qt){if(Qt.type!=="LIFT"){Ut(Qt);return}var $t=Qt.payload,Hr=$t.id,ln=$t.clientSelection,Ur=$t.movementMode,Br=et();Br.phase==="DROP_ANIMATING"&&yt(fi({completed:Br.completed})),et().phase==="IDLE"||We(!1),yt(Qn()),yt(Or({draggableId:Hr,movementMode:Ur}));var an={shouldPublishImmediately:Ur==="SNAP"},pn={draggableId:Hr,scrollOptions:an},jn=ie.startPublishing(pn),_i=jn.critical,Di=jn.dimensions,da=jn.viewport;qi(_i,Di),yt(Sn({critical:_i,dimensions:Di,clientSelection:ln,movementMode:Ur,viewport:da}))}}}},Ki=function(ie){return function(){return function(Ce){return function(et){et.type==="INITIAL_PUBLISH"&&ie.dragging(),et.type==="DROP_ANIMATE"&&ie.dropping(et.payload.completed.result.reason),(et.type==="FLUSH"||et.type==="DROP_COMPLETE")&&ie.resting(),Ce(et)}}}},ji={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Yi={opacity:{drop:0,combining:.7},scale:{drop:.75}},ca={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Ca=ca.outOfTheWay+"s "+ji.outOfTheWay,ra={fluid:"opacity "+Ca,snap:"transform "+Ca+", opacity "+Ca,drop:function(ie){var Ce=ie+"s "+ji.drop;return"transform "+Ce+", opacity "+Ce},outOfTheWay:"transform "+Ca,placeholder:"height "+Ca+", width "+Ca+", margin "+Ca},Ma=function(ie){return me(ie,Ne)?null:"translate("+ie.x+"px, "+ie.y+"px)"},La={moveTo:Ma,drop:function(ie,Ce){var et=Ma(ie);return et?Ce?et+" scale("+Yi.scale.drop+")":et:null}},va=ca.minDropTime,ga=ca.maxDropTime,Oa=ga-va,Aa=1500,Ga=.6,_a=function(ie){var Ce=ie.current,et=ie.destination,yt=ie.reason,Ut=At(Ce,et);if(Ut<=0)return va;if(Ut>=Aa)return ga;var Qt=Ut/Aa,$t=va+Oa*Qt,Hr=yt==="CANCEL"?$t*Ga:$t;return Number(Hr.toFixed(2))},Va=function(ie){var Ce=ie.impact,et=ie.draggable,yt=ie.dimensions,Ut=ie.viewport,Qt=ie.afterCritical,$t=yt.draggables,Hr=yt.droppables,ln=hi(Ce),Ur=ln?Hr[ln]:null,Br=Hr[et.descriptor.droppableId],an=Wn({impact:Ce,draggable:et,draggables:$t,afterCritical:Qt,droppable:Ur||Br,viewport:Ut}),pn=de(an,et.client.borderBox.center);return pn},Bi=function(ie){var Ce=ie.draggables,et=ie.reason,yt=ie.lastImpact,Ut=ie.home,Qt=ie.viewport,$t=ie.onLiftImpact;if(!yt.at||et!=="DROP"){var Hr=En({draggables:Ce,impact:$t,destination:Ut,viewport:Qt,forceShouldAnimate:!0});return{impact:Hr,didDropInsideDroppable:!1}}if(yt.at.type==="REORDER")return{impact:yt,didDropInsideDroppable:!0};var ln=Object(A.a)({},yt,{displaced:Dn});return{impact:ln,didDropInsideDroppable:!0}},io=function(ie){var Ce=ie.getState,et=ie.dispatch;return function(yt){return function(Ut){if(Ut.type!=="DROP"){yt(Ut);return}var Qt=Ce(),$t=Ut.payload.reason;if(Qt.phase==="COLLECTING"){et(yi({reason:$t}));return}if(Qt.phase==="IDLE")return;var Hr=Qt.phase==="DROP_PENDING"&&Qt.isWaiting;Hr&&We(!1),Qt.phase==="DRAGGING"||Qt.phase==="DROP_PENDING"||We(!1);var ln=Qt.critical,Ur=Qt.dimensions,Br=Ur.draggables[Qt.critical.draggable.id],an=Bi({reason:$t,lastImpact:Qt.impact,afterCritical:Qt.afterCritical,onLiftImpact:Qt.onLiftImpact,home:Qt.dimensions.droppables[Qt.critical.droppable.id],viewport:Qt.viewport,draggables:Qt.dimensions.draggables}),pn=an.impact,jn=an.didDropInsideDroppable,_i=jn?sr(pn):null,Di=jn?Ir(pn):null,da={index:ln.draggable.index,droppableId:ln.droppable.id},Ji={draggableId:Br.descriptor.id,type:Br.descriptor.type,source:da,reason:$t,mode:Qt.movementMode,destination:_i,combine:Di},Qa=Va({impact:pn,draggable:Br,dimensions:Ur,viewport:Qt.viewport,afterCritical:Qt.afterCritical}),ya={critical:Qt.critical,afterCritical:Qt.afterCritical,result:Ji,impact:pn},fo=!me(Qt.current.client.offset,Qa)||Boolean(Ji.combine);if(!fo){et(fi({completed:ya}));return}var za=_a({current:Qt.current.client.offset,destination:Qa,reason:$t}),Xo={newHomeClientOffset:Qa,dropDuration:za,completed:ya};et(Fn(Xo))}}},oo=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Qo(Ue){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(Ce){if(Ce.target!==window&&Ce.target!==window.document)return;Ue()}}}function mo(Ue){var ie=Ue.onWindowScroll;function Ce(){ie(oo())}var et=M(Ce),yt=Qo(et),Ut=be;function Qt(){return Ut!==be}function $t(){Qt()&&We(!1),Ut=Ie(window,[yt])}function Hr(){Qt()||We(!1),et.cancel(),Ut(),Ut=be}return{start:$t,stop:Hr,isActive:Qt}}var To=function(ie){return ie.type==="DROP_COMPLETE"||ie.type==="DROP_ANIMATE"||ie.type==="FLUSH"},ao=function(ie){var Ce=mo({onWindowScroll:function(yt){ie.dispatch(Cr({newScroll:yt}))}});return function(et){return function(yt){!Ce.isActive()&&yt.type==="INITIAL_PUBLISH"&&Ce.start(),Ce.isActive()&&To(yt)&&Ce.stop(),et(yt)}}},So=function(ie){var Ce=!1,et=!1,yt=setTimeout(function(){et=!0}),Ut=function($t){if(Ce)return;if(et)return;Ce=!0,ie($t),clearTimeout(yt)};return Ut.wasCalled=function(){return Ce},Ut},bo=function(){var ie=[],Ce=function(Qt){var $t=He(ie,function(Ur){return Ur.timerId===Qt});$t!==-1||We(!1);var Hr=ie.splice($t,1),ln=Hr[0];ln.callback()},et=function(Qt){var $t=setTimeout(function(){return Ce($t)}),Hr={timerId:$t,callback:Qt};ie.push(Hr)},yt=function(){if(!ie.length)return;var Qt=[].concat(ie);ie.length=0,Qt.forEach(function($t){clearTimeout($t.timerId),$t.callback()})};return{add:et,flush:yt}},to=function(ie,Ce){return ie==null&&Ce==null?!0:ie==null||Ce==null?!1:ie.droppableId===Ce.droppableId&&ie.index===Ce.index},Jo=function(ie,Ce){return ie==null&&Ce==null?!0:ie==null||Ce==null?!1:ie.draggableId===Ce.draggableId&&ie.droppableId===Ce.droppableId},Uo=function(ie,Ce){if(ie===Ce)return!0;var et=ie.draggable.id===Ce.draggable.id&&ie.draggable.droppableId===Ce.draggable.droppableId&&ie.draggable.type===Ce.draggable.type&&ie.draggable.index===Ce.draggable.index,yt=ie.droppable.id===Ce.droppable.id&&ie.droppable.type===Ce.droppable.type;return et&&yt},wo=function(ie,Ce){Li(),Ce(),oa()},ts=function(ie,Ce){return{draggableId:ie.draggable.id,type:ie.droppable.type,source:{droppableId:ie.droppable.id,index:ie.draggable.index},mode:Ce}},Ia=function(ie,Ce,et,yt){if(!ie){et(yt(Ce));return}var Ut=So(et),Qt={announce:Ut};ie(Ce,Qt),Ut.wasCalled()||et(yt(Ce))},Oo=function(ie,Ce){var et=bo(),yt=null,Ut=function(pn,jn){yt&&We(!1),wo("onBeforeCapture",function(){var _i=ie().onBeforeCapture;if(_i){var Di={draggableId:pn,mode:jn};_i(Di)}})},Qt=function(pn,jn){yt&&We(!1),wo("onBeforeDragStart",function(){var _i=ie().onBeforeDragStart;_i&&_i(ts(pn,jn))})},$t=function(pn,jn){yt&&We(!1);var _i=ts(pn,jn);yt={mode:jn,lastCritical:pn,lastLocation:_i.source,lastCombine:null},et.add(function(){wo("onDragStart",function(){return Ia(ie().onDragStart,_i,Ce,we.onDragStart)})})},Hr=function(pn,jn){var _i=sr(jn),Di=Ir(jn);yt||We(!1);var da=!Uo(pn,yt.lastCritical);da&&(yt.lastCritical=pn);var Ji=!to(yt.lastLocation,_i);Ji&&(yt.lastLocation=_i);var Qa=!Jo(yt.lastCombine,Di);if(Qa&&(yt.lastCombine=Di),!da&&!Ji&&!Qa)return;var ya=Object(A.a)({},ts(pn,yt.mode),{combine:Di,destination:_i});et.add(function(){wo("onDragUpdate",function(){return Ia(ie().onDragUpdate,ya,Ce,we.onDragUpdate)})})},ln=function(){yt||We(!1),et.flush()},Ur=function(pn){yt||We(!1),yt=null,wo("onDragEnd",function(){return Ia(ie().onDragEnd,pn,Ce,we.onDragEnd)})},Br=function(){if(!yt)return;var pn=Object(A.a)({},ts(yt.lastCritical,yt.mode),{combine:null,destination:null,reason:"CANCEL"});Ur(pn)};return{beforeCapture:Ut,beforeStart:Qt,start:$t,update:Hr,flush:ln,drop:Ur,abort:Br}},Io=function(ie,Ce){var et=Oo(ie,Ce);return function(yt){return function(Ut){return function(Qt){if(Qt.type==="BEFORE_INITIAL_CAPTURE"){et.beforeCapture(Qt.payload.draggableId,Qt.payload.movementMode);return}if(Qt.type==="INITIAL_PUBLISH"){var $t=Qt.payload.critical;et.beforeStart($t,Qt.payload.movementMode),Ut(Qt),et.start($t,Qt.payload.movementMode);return}if(Qt.type==="DROP_COMPLETE"){var Hr=Qt.payload.completed.result;et.flush(),Ut(Qt),et.drop(Hr);return}if(Ut(Qt),Qt.type==="FLUSH"){et.abort();return}var ln=yt.getState();ln.phase==="DRAGGING"&&et.update(ln.critical,ln.impact)}}}},os=function(ie){return function(Ce){return function(et){if(et.type!=="DROP_ANIMATION_FINISHED"){Ce(et);return}var yt=ie.getState();yt.phase==="DROP_ANIMATING"||We(!1),ie.dispatch(fi({completed:yt.completed}))}}},xo=function(ie){var Ce=null,et=null;function yt(){et&&(cancelAnimationFrame(et),et=null),Ce&&(Ce(),Ce=null)}return function(Ut){return function(Qt){if((Qt.type==="FLUSH"||Qt.type==="DROP_COMPLETE"||Qt.type==="DROP_ANIMATION_FINISHED")&&yt(),Ut(Qt),Qt.type!=="DROP_ANIMATE")return;var $t={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var ln=ie.getState();ln.phase==="DROP_ANIMATING"&&ie.dispatch(Ci())}};et=requestAnimationFrame(function(){et=null,Ce=Ie(window,[$t])})}}},rs=function(ie){return function(){return function(Ce){return function(et){(et.type==="DROP_COMPLETE"||et.type==="FLUSH"||et.type==="DROP_ANIMATE")&&ie.stopPublishing(),Ce(et)}}}},Ho=function(ie){var Ce=!1;return function(){return function(et){return function(yt){if(yt.type==="INITIAL_PUBLISH"){Ce=!0,ie.tryRecordFocus(yt.payload.critical.draggable.id),et(yt),ie.tryRestoreFocusRecorded();return}if(et(yt),!Ce)return;if(yt.type==="FLUSH"){Ce=!1,ie.tryRestoreFocusRecorded();return}if(yt.type==="DROP_COMPLETE"){Ce=!1;var Ut=yt.payload.completed.result;Ut.combine&&ie.tryShiftRecord(Ut.draggableId,Ut.combine.draggableId),ie.tryRestoreFocusRecorded()}}}}},_o=function(ie){return ie.type==="DROP_COMPLETE"||ie.type==="DROP_ANIMATE"||ie.type==="FLUSH"},uo=function(ie){return function(Ce){return function(et){return function(yt){if(_o(yt)){ie.stop(),et(yt);return}if(yt.type==="INITIAL_PUBLISH"){et(yt);var Ut=Ce.getState();Ut.phase==="DRAGGING"||We(!1),ie.start(Ut);return}et(yt),ie.scroll(Ce.getState())}}}},Ha=function(ie){return function(Ce){return function(et){if(Ce(et),et.type!=="PUBLISH_WHILE_DRAGGING")return;var yt=ie.getState();if(yt.phase!=="DROP_PENDING")return;if(yt.isWaiting)return;ie.dispatch(Ri({reason:yt.reason}))}}},pt=m.d,xr=function(ie){var Ce=ie.dimensionMarshal,et=ie.focusMarshal,yt=ie.styleMarshal,Ut=ie.getResponders,Qt=ie.announce,$t=ie.autoScroller;return Object(m.e)(aa,pt(Object(m.a)(Ki(yt),rs(Ce),zi(Ce),io,os,xo,Ha,uo($t),ao,Ho(et),Io(Ut,Qt))))},Jr=function(){return{additions:{},removals:{},modified:{}}};function Vr(Ue){var ie=Ue.registry,Ce=Ue.callbacks,et=Jr(),yt=null,Ut=function(){if(yt)return;Ce.collectionStarting(),yt=requestAnimationFrame(function(){yt=null,Li();var Ur=et,Br=Ur.additions,an=Ur.removals,pn=Ur.modified,jn=Object.keys(Br).map(function(da){return ie.draggable.getById(da).getDimension(Ne)}).sort(function(da,Ji){return da.descriptor.index-Ji.descriptor.index}),_i=Object.keys(pn).map(function(da){var Ji=ie.droppable.getById(da),Qa=Ji.callbacks.getScrollWhileDragging();return{droppableId:da,scroll:Qa}}),Di={additions:jn,removals:Object.keys(an),modified:_i};et=Jr(),oa(),Ce.publish(Di)})},Qt=function(Ur){var Br=Ur.descriptor.id;et.additions[Br]=Ur,et.modified[Ur.descriptor.droppableId]=!0,et.removals[Br]&&delete et.removals[Br],Ut()},$t=function(Ur){var Br=Ur.descriptor;et.removals[Br.id]=!0,et.modified[Br.droppableId]=!0,et.additions[Br.id]&&delete et.additions[Br.id],Ut()},Hr=function(){if(!yt)return;cancelAnimationFrame(yt),yt=null,et=Jr()};return{add:Qt,remove:$t,stop:Hr}}var Vn=function(ie){var Ce=ie.scrollHeight,et=ie.scrollWidth,yt=ie.height,Ut=ie.width,Qt=de({x:et,y:Ce},{x:Ut,y:yt}),$t={x:Math.max(0,Qt.x),y:Math.max(0,Qt.y)};return $t},sn=function(){var ie=document.documentElement;return ie||We(!1),ie},zr=function(){var ie=sn(),Ce=Vn({scrollHeight:ie.scrollHeight,scrollWidth:ie.scrollWidth,width:ie.clientWidth,height:ie.clientHeight});return Ce},qn=function(){var ie=oo(),Ce=zr(),et=ie.y,yt=ie.x,Ut=sn(),Qt=Ut.clientWidth,$t=Ut.clientHeight,Hr=yt+Qt,ln=et+$t,Ur=e({top:et,left:yt,right:Hr,bottom:ln}),Br={frame:Ur,scroll:{initial:ie,current:ie,max:Ce,diff:{value:Ne,displacement:Ne}}};return Br},en=function(ie){var Ce=ie.critical,et=ie.scrollOptions,yt=ie.registry;Li();var Ut=qn(),Qt=Ut.scroll.current,$t=Ce.droppable,Hr=yt.droppable.getAllByType($t.type).map(function(an){return an.callbacks.getDimensionAndWatchScroll(Qt,et)}),ln=yt.draggable.getAllByType(Ce.draggable.type).map(function(an){return an.getDimension(Qt)}),Ur={draggables:mt(ln),droppables:Mt(Hr)};oa();var Br={dimensions:Ur,critical:Ce,viewport:Ut};return Br};function Un(Ue,ie,Ce){if(Ce.descriptor.id===ie.id)return!1;if(Ce.descriptor.type!==ie.type)return!1;var et=Ue.droppable.getById(Ce.descriptor.droppableId);return!(et.descriptor.mode!=="virtual")}var si=function(ie,Ce){var et=null,yt=Vr({callbacks:{publish:Ce.publishWhileDragging,collectionStarting:Ce.collectionStarting},registry:ie}),Ut=function(jn,_i){if(ie.droppable.exists(jn)||We(!1),!et)return;Ce.updateDroppableIsEnabled({id:jn,isEnabled:_i})},Qt=function(jn,_i){if(!et)return;ie.droppable.exists(jn)||We(!1),Ce.updateDroppableIsCombineEnabled({id:jn,isCombineEnabled:_i})},$t=function(jn,_i){if(!et)return;ie.droppable.exists(jn)||We(!1),Ce.updateDroppableScroll({id:jn,newScroll:_i})},Hr=function(jn,_i){if(!et)return;ie.droppable.getById(jn).callbacks.scroll(_i)},ln=function(){if(!et)return;yt.stop();var jn=et.critical.droppable;ie.droppable.getAllByType(jn.type).forEach(function(_i){return _i.callbacks.dragStopped()}),et.unsubscribe(),et=null},Ur=function(jn){et||We(!1);var _i=et.critical.draggable;jn.type==="ADDITION"&&(Un(ie,_i,jn.value)&&yt.add(jn.value)),jn.type==="REMOVAL"&&(Un(ie,_i,jn.value)&&yt.remove(jn.value))},Br=function(jn){et&&We(!1);var _i=ie.draggable.getById(jn.draggableId),Di=ie.droppable.getById(_i.descriptor.droppableId),da={draggable:_i.descriptor,droppable:Di.descriptor},Ji=ie.subscribe(Ur);return et={critical:da,unsubscribe:Ji},en({critical:da,registry:ie,scrollOptions:jn.scrollOptions})},an={updateDroppableIsEnabled:Ut,updateDroppableIsCombineEnabled:Qt,scrollDroppable:Hr,updateDroppableScroll:$t,startPublishing:Br,stopPublishing:ln};return an},ui=function(ie,Ce){return ie.phase==="IDLE"?!0:ie.phase!=="DROP_ANIMATING"||ie.completed.result.draggableId===Ce?!1:ie.completed.result.reason==="DROP"},oi=function(ie){window.scrollBy(ie.x,ie.y)},Ei=I(function(Ue){return or(Ue).filter(function(ie){return ie.isEnabled?!!ie.frame:!1})}),pi=function(ie,Ce){var et=ae(Ei(Ce),function(yt){return yt.frame||We(!1),xn(yt.frame.pageMarginBox)(ie)});return et},Ai=function(ie){var Ce=ie.center,et=ie.destination,yt=ie.droppables;if(et){var Ut=yt[et];return Ut.frame?Ut:null}var Qt=pi(Ce,yt);return Qt},Oi={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(ie){return Math.pow(ie,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},na=function(ie,Ce){var et=ie[Ce.size]*Oi.startFromPercentage,yt=ie[Ce.size]*Oi.maxScrollAtPercentage,Ut={startScrollingFrom:et,maxScrollValueAt:yt};return Ut},Hi=function(ie){var Ce=ie.startOfRange,et=ie.endOfRange,yt=ie.current,Ut=et-Ce;if(Ut===0)return 0;var Qt=yt-Ce,$t=Qt/Ut;return $t},fa=1,Xa=function(ie,Ce){if(ie>Ce.startScrollingFrom)return 0;if(ie<=Ce.maxScrollValueAt)return Oi.maxPixelScroll;if(ie===Ce.startScrollingFrom)return fa;var et=Hi({startOfRange:Ce.maxScrollValueAt,endOfRange:Ce.startScrollingFrom,current:ie}),yt=1-et,Ut=Oi.maxPixelScroll*Oi.ease(yt);return Math.ceil(Ut)},xa=Oi.durationDampening.accelerateAt,wa=Oi.durationDampening.stopDampeningAt,Da=function(ie,Ce){var et=Ce,yt=wa,Ut=Date.now(),Qt=Ut-et;if(Qt>=wa)return ie;if(Qt<xa)return fa;var $t=Hi({startOfRange:xa,endOfRange:yt,current:Qt}),Hr=ie*Oi.ease($t);return Math.ceil(Hr)},ja=function(ie){var Ce=ie.distanceToEdge,et=ie.thresholds,yt=ie.dragStartTime,Ut=ie.shouldUseTimeDampening,Qt=Xa(Ce,et);return Qt===0?0:Ut?Math.max(Da(Qt,yt),fa):Qt},ko=function(ie){var Ce=ie.container,et=ie.distanceToEdges,yt=ie.dragStartTime,Ut=ie.axis,Qt=ie.shouldUseTimeDampening,$t=na(Ce,Ut),Hr=et[Ut.end]<et[Ut.start];return Hr?ja({distanceToEdge:et[Ut.end],thresholds:$t,dragStartTime:yt,shouldUseTimeDampening:Qt}):-1*ja({distanceToEdge:et[Ut.start],thresholds:$t,dragStartTime:yt,shouldUseTimeDampening:Qt})},ro=function(ie){var Ce=ie.container,et=ie.subject,yt=ie.proposedScroll,Ut=et.height>Ce.height,Qt=et.width>Ce.width;return!Qt&&!Ut?yt:Qt&&Ut?null:{x:Qt?0:yt.x,y:Ut?0:yt.y}},pa=Ke(function(Ue){return Ue===0?0:Ue}),Ea=function(ie){var Ce=ie.dragStartTime,et=ie.container,yt=ie.subject,Ut=ie.center,Qt=ie.shouldUseTimeDampening,$t={top:Ut.y-et.top,right:et.right-Ut.x,bottom:et.bottom-Ut.y,left:Ut.x-et.left},Hr=ko({container:et,distanceToEdges:$t,dragStartTime:Ce,axis:Jn,shouldUseTimeDampening:Qt}),ln=ko({container:et,distanceToEdges:$t,dragStartTime:Ce,axis:Xt,shouldUseTimeDampening:Qt}),Ur=pa({x:ln,y:Hr});if(me(Ur,Ne))return null;var Br=ro({container:et,subject:yt,proposedScroll:Ur});return Br?me(Br,Ne)?null:Br:null},Fa=Ke(function(Ue){return Ue===0?0:Ue>0?1:-1}),Ka=function(){var Ue=function(Ce,et){return Ce<0?Ce:Ce>et?Ce-et:0};return function(ie){var Ce=ie.current,et=ie.max,yt=ie.change,Ut=Ee(Ce,yt),Qt={x:Ue(Ut.x,et.x),y:Ue(Ut.y,et.y)};return me(Qt,Ne)?null:Qt}}(),lo=function(ie){var Ce=ie.max,et=ie.current,yt=ie.change,Ut={x:Math.max(et.x,Ce.x),y:Math.max(et.y,Ce.y)},Qt=Fa(yt),$t=Ka({max:Ut,current:et,change:Qt});return $t?Qt.x!==0&&$t.x===0?!0:Qt.y!==0&&$t.y===0:!0},so=function(ie,Ce){return lo({current:ie.scroll.current,max:ie.scroll.max,change:Ce})},Co=function(ie,Ce){if(!so(ie,Ce))return null;var et=ie.scroll.max,yt=ie.scroll.current;return Ka({current:yt,max:et,change:Ce})},Lo=function(ie,Ce){var et=ie.frame;return et?lo({current:et.scroll.current,max:et.scroll.max,change:Ce}):!1},is=function(ie,Ce){var et=ie.frame;return et&&Lo(ie,Ce)?Ka({current:et.scroll.current,max:et.scroll.max,change:Ce}):null},cs=function(ie){var Ce=ie.viewport,et=ie.subject,yt=ie.center,Ut=ie.dragStartTime,Qt=ie.shouldUseTimeDampening,$t=Ea({dragStartTime:Ut,container:Ce.frame,subject:et,center:yt,shouldUseTimeDampening:Qt});return $t&&so(Ce,$t)?$t:null},Rs=function(ie){var Ce=ie.droppable,et=ie.subject,yt=ie.center,Ut=ie.dragStartTime,Qt=ie.shouldUseTimeDampening,$t=Ce.frame;if(!$t)return null;var Hr=Ea({dragStartTime:Ut,container:$t.pageMarginBox,subject:et,center:yt,shouldUseTimeDampening:Qt});return Hr&&Lo(Ce,Hr)?Hr:null},Ko=function(ie){var Ce=ie.state,et=ie.dragStartTime,yt=ie.shouldUseTimeDampening,Ut=ie.scrollWindow,Qt=ie.scrollDroppable,$t=Ce.current.page.borderBoxCenter,Hr=Ce.dimensions.draggables[Ce.critical.draggable.id],ln=Hr.page.marginBox;if(Ce.isWindowScrollAllowed){var Ur=Ce.viewport,Br=cs({dragStartTime:et,viewport:Ur,subject:ln,center:$t,shouldUseTimeDampening:yt});if(Br){Ut(Br);return}}var an=Ai({center:$t,destination:hi(Ce.impact),droppables:Ce.dimensions.droppables});if(!an)return;var pn=Rs({dragStartTime:et,droppable:an,subject:ln,center:$t,shouldUseTimeDampening:yt});pn&&Qt(an.descriptor.id,pn)},as=function(ie){var Ce=ie.scrollWindow,et=ie.scrollDroppable,yt=M(Ce),Ut=M(et),Qt=null,$t=function(Br){Qt||We(!1);var an=Qt,pn=an.shouldUseTimeDampening,jn=an.dragStartTime;Ko({state:Br,scrollWindow:yt,scrollDroppable:Ut,dragStartTime:jn,shouldUseTimeDampening:pn})},Hr=function(Br){Li(),Qt&&We(!1);var an=Date.now(),pn=!1,jn=function(){pn=!0};Ko({state:Br,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:jn,scrollDroppable:jn}),Qt={dragStartTime:an,shouldUseTimeDampening:pn},oa(),pn&&$t(Br)},ln=function(){if(!Qt)return;yt.cancel(),Ut.cancel(),Qt=null};return{start:Hr,stop:ln,scroll:$t}},co=function(ie){var Ce=ie.move,et=ie.scrollDroppable,yt=ie.scrollWindow,Ut=function(Ur,Br){var an=Ee(Ur.current.client.selection,Br);Ce({client:an})},Qt=function(Ur,Br){if(!Lo(Ur,Br))return Br;var an=is(Ur,Br);if(!an)return et(Ur.descriptor.id,Br),null;var pn=de(Br,an);et(Ur.descriptor.id,pn);var jn=de(Br,pn);return jn},$t=function(Ur,Br,an){if(!Ur)return an;if(!so(Br,an))return an;var pn=Co(Br,an);if(!pn)return yt(an),null;var jn=de(an,pn);yt(jn);var _i=de(an,jn);return _i},Hr=function(Ur){var Br=Ur.scrollJumpRequest;if(!Br)return;var an=hi(Ur.impact);an||We(!1);var pn=Qt(Ur.dimensions.droppables[an],Br);if(!pn)return;var jn=Ur.viewport,_i=$t(Ur.isWindowScrollAllowed,jn,pn);if(!_i)return;Ut(Ur,_i)};return Hr},Ao=function(ie){var Ce=ie.scrollDroppable,et=ie.scrollWindow,yt=ie.move,Ut=as({scrollWindow:et,scrollDroppable:Ce}),Qt=co({move:yt,scrollWindow:et,scrollDroppable:Ce}),$t=function(Ur){if(Ur.phase!=="DRAGGING")return;if(Ur.movementMode==="FLUID"){Ut.scroll(Ur);return}if(!Ur.scrollJumpRequest)return;Qt(Ur)},Hr={scroll:$t,start:Ut.start,stop:Ut.stop};return Hr},$a="data-rbd",ss=function(){var Ue=$a+"-drag-handle";return{base:Ue,draggableId:Ue+"-draggable-id",contextId:Ue+"-context-id"}}(),Cs=function(){var Ue=$a+"-draggable";return{base:Ue,contextId:Ue+"-context-id",id:Ue+"-id"}}(),Fo=function(){var Ue=$a+"-droppable";return{base:Ue,contextId:Ue+"-context-id",id:Ue+"-id"}}(),il={contextId:$a+"-scroll-container-context-id"},Eo=function(ie){return function(Ce){return"["+Ce+'="'+ie+'"]'}},zo=function(ie,Ce){return ie.map(function(et){var yt=et.styles[Ce];return yt?et.selector+" { "+yt+" }":""}).join(" ")},Bs="pointer-events: none;",ms=function(ie){var Ce=Eo(ie),et=function(){var Hr=`
|
|
|
cursor: -webkit-grab;
|
|
|
cursor: grab;
|
|
|
`;return{selector:Ce(ss.contextId),styles:{always:`
|
|
|
-webkit-touch-callout: none;
|
|
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
|
touch-action: manipulation;
|
|
|
`,resting:Hr,dragging:Bs,dropAnimating:Hr}}}(),yt=function(){var Hr=`
|
|
|
transition: `+ra.outOfTheWay+`;
|
|
|
`;return{selector:Ce(Cs.contextId),styles:{dragging:Hr,dropAnimating:Hr,userCancel:Hr}}}(),Ut={selector:Ce(Fo.contextId),styles:{always:"overflow-anchor: none;"}},Qt={selector:"body",styles:{dragging:`
|
|
|
cursor: grabbing;
|
|
|
cursor: -webkit-grabbing;
|
|
|
user-select: none;
|
|
|
-webkit-user-select: none;
|
|
|
-moz-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
overflow-anchor: none;
|
|
|
`}},$t=[yt,et,Ut,Qt];return{always:zo($t,"always"),resting:zo($t,"resting"),dragging:zo($t,"dragging"),dropAnimating:zo($t,"dropAnimating"),userCancel:zo($t,"userCancel")}},hs=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?y.useLayoutEffect:y.useEffect,gn=function(){var ie=document.querySelector("head");return ie||We(!1),ie},Ns=function(ie){var Ce=document.createElement("style");return ie&&Ce.setAttribute("nonce",ie),Ce.type="text/css",Ce};function Ll(Ue,ie){var Ce=i(function(){return ms(Ue)},[Ue]),et=Object(y.useRef)(null),yt=Object(y.useRef)(null),Ut=t(I(function(Br){var an=yt.current;an||We(!1),an.textContent=Br}),[]),Qt=t(function(Br){var an=et.current;an||We(!1),an.textContent=Br},[]);hs(function(){!et.current&&!yt.current||We(!1);var Br=Ns(ie),an=Ns(ie);return et.current=Br,yt.current=an,Br.setAttribute($a+"-always",Ue),an.setAttribute($a+"-dynamic",Ue),gn().appendChild(Br),gn().appendChild(an),Qt(Ce.always),Ut(Ce.resting),function(){var pn=function(_i){var Di=_i.current;Di||We(!1),gn().removeChild(Di),_i.current=null};pn(et),pn(yt)}},[ie,Qt,Ut,Ce.always,Ce.resting,Ue]);var $t=t(function(){return Ut(Ce.dragging)},[Ut,Ce.dragging]),Hr=t(function(Br){if(Br==="DROP"){Ut(Ce.dropAnimating);return}Ut(Ce.userCancel)},[Ut,Ce.dropAnimating,Ce.userCancel]),ln=t(function(){if(!yt.current)return;Ut(Ce.resting)},[Ut,Ce.resting]),Ur=i(function(){return{dragging:$t,dropping:Hr,resting:ln}},[$t,Hr,ln]);return Ur}var el=function(ie){return ie&&ie.ownerDocument?ie.ownerDocument.defaultView:window};function Gs(Ue){return Ue instanceof el(Ue).HTMLElement}function ds(Ue,ie){var Ce="["+ss.contextId+'="'+Ue+'"]',et=ft(document.querySelectorAll(Ce));if(!et.length)return null;var yt=ae(et,function(Ut){return Ut.getAttribute(ss.draggableId)===ie});return yt&&Gs(yt)?yt:null}function ks(Ue){var ie=Object(y.useRef)({}),Ce=Object(y.useRef)(null),et=Object(y.useRef)(null),yt=Object(y.useRef)(!1),Ut=t(function(an,pn){var jn={id:an,focus:pn};return ie.current[an]=jn,function(){var Di=ie.current,da=Di[an];da!==jn&&delete Di[an]}},[]),Qt=t(function(an){var pn=ds(Ue,an);pn&&pn!==document.activeElement&&pn.focus()},[Ue]),$t=t(function(an,pn){Ce.current===an&&(Ce.current=pn)},[]),Hr=t(function(){if(et.current)return;if(!yt.current)return;et.current=requestAnimationFrame(function(){et.current=null;var an=Ce.current;an&&Qt(an)})},[Qt]),ln=t(function(an){Ce.current=null;var pn=document.activeElement;if(!pn)return;if(pn.getAttribute(ss.draggableId)!==an)return;Ce.current=an},[]);hs(function(){return yt.current=!0,function(){yt.current=!1;var an=et.current;an&&cancelAnimationFrame(an)}},[]);var Ur=i(function(){return{register:Ut,tryRecordFocus:ln,tryRestoreFocusRecorded:Hr,tryShiftRecord:$t}},[Ut,ln,Hr,$t]);return Ur}function Qs(){var Ue={draggables:{},droppables:{}},ie=[];function Ce(Br){return ie.push(Br),function(){var pn=ie.indexOf(Br);if(pn===-1)return;ie.splice(pn,1)}}function et(Br){ie.length&&ie.forEach(function(an){return an(Br)})}function yt(Br){return Ue.draggables[Br]||null}function Ut(Br){var an=yt(Br);return an||We(!1),an}var Qt={register:function(an){Ue.draggables[an.descriptor.id]=an,et({type:"ADDITION",value:an})},update:function(an,pn){var jn=Ue.draggables[pn.descriptor.id];if(!jn)return;if(jn.uniqueId!==an.uniqueId)return;delete Ue.draggables[pn.descriptor.id],Ue.draggables[an.descriptor.id]=an},unregister:function(an){var pn=an.descriptor.id,jn=yt(pn);if(!jn)return;if(an.uniqueId!==jn.uniqueId)return;delete Ue.draggables[pn],et({type:"REMOVAL",value:an})},getById:Ut,findById:yt,exists:function(an){return Boolean(yt(an))},getAllByType:function(an){return $e(Ue.draggables).filter(function(pn){return pn.descriptor.type===an})}};function $t(Br){return Ue.droppables[Br]||null}function Hr(Br){var an=$t(Br);return an||We(!1),an}var ln={register:function(an){Ue.droppables[an.descriptor.id]=an},unregister:function(an){var pn=$t(an.descriptor.id);if(!pn)return;if(an.uniqueId!==pn.uniqueId)return;delete Ue.droppables[an.descriptor.id]},getById:Hr,findById:$t,exists:function(an){return Boolean($t(an))},getAllByType:function(an){return $e(Ue.droppables).filter(function(pn){return pn.descriptor.type===an})}};function Ur(){Ue.draggables={},Ue.droppables={},ie.length=0}return{draggable:Qt,droppable:ln,subscribe:Ce,clean:Ur}}function tl(){var Ue=i(Qs,[]);return Object(y.useEffect)(function(){return function(){requestAnimationFrame(Ue.clean)}},[Ue]),Ue}var xs=p.a.createContext(null),Us=function(){var ie=document.body;return ie||We(!1),ie},al={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Js=function(ie){return"rbd-announcement-"+ie};function Vo(Ue){var ie=i(function(){return Js(Ue)},[Ue]),Ce=Object(y.useRef)(null);Object(y.useEffect)(function(){var Ut=document.createElement("div");return Ce.current=Ut,Ut.id=ie,Ut.setAttribute("aria-live","assertive"),Ut.setAttribute("aria-atomic","true"),Object(A.a)(Ut.style,al),Us().appendChild(Ut),function(){setTimeout(function(){var Hr=Us();Hr.contains(Ut)&&Hr.removeChild(Ut),Ut===Ce.current&&(Ce.current=null)})}},[ie]);var et=t(function(yt){var Ut=Ce.current;if(Ut){Ut.textContent=yt;return}},[]);return et}var No=0,fs={separator:"::"};function Ds(){No=0}function go(Ue,ie){return ie===void 0&&(ie=fs),i(function(){return""+Ue+ie.separator+No++},[ie.separator,Ue])}function Ft(Ue){var ie=Ue.contextId,Ce=Ue.uniqueId;return"rbd-hidden-text-"+ie+"-"+Ce}function er(Ue){var ie=Ue.contextId,Ce=Ue.text,et=go("hidden-text",{separator:"-"}),yt=i(function(){return Ft({contextId:ie,uniqueId:et})},[et,ie]);return Object(y.useEffect)(function(){var Qt=document.createElement("div");return Qt.id=yt,Qt.textContent=Ce,Qt.style.display="none",Us().appendChild(Qt),function(){var Hr=Us();Hr.contains(Qt)&&Hr.removeChild(Qt)}},[yt,Ce]),yt}var Cn=p.a.createContext(null),di={react:"^16.8.5","react-dom":"^16.8.5"},It=/(\d+)\.(\d+)\.(\d+)/,ue=function(ie){var Ce=It.exec(ie);Ce!=null||We(!1);var et=Number(Ce[1]),yt=Number(Ce[2]),Ut=Number(Ce[3]);return{major:et,minor:yt,patch:Ut,raw:ie}},Se=function(ie,Ce){return Ce.major>ie.major?!0:Ce.major<ie.major?!1:Ce.minor>ie.minor?!0:Ce.minor<ie.minor?!1:Ce.patch>=ie.patch},_e=function(ie,Ce){var et=ue(ie),yt=ue(Ce);if(Se(et,yt))return},Je=`
|
|
|
We expect a html5 doctype: <!doctype html>
|
|
|
This is to ensure consistent browser layout and measurement
|
|
|
|
|
|
More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md
|
|
|
`,Lt=function(ie){var Ce=ie.doctype;if(!Ce)return;Ce.name.toLowerCase()!=="html",Ce.publicId!==""};function tr(Ue){}function Gr(Ue,ie){tr(function(){Object(y.useEffect)(function(){try{Ue()}catch(Ce){ce(`
|
|
|
A setup problem was encountered.
|
|
|
|
|
|
> `+Ce.message+`
|
|
|
`)}},ie)})}function cn(){Gr(function(){_e(di.react,p.a.version),Lt(document)},[])}function _n(Ue){var ie=Object(y.useRef)(Ue);return Object(y.useEffect)(function(){ie.current=Ue}),ie}function li(){var Ue=null;function ie(){return Boolean(Ue)}function Ce(Qt){return Qt===Ue}function et(Qt){Ue&&We(!1);var $t={abandon:Qt};return Ue=$t,$t}function yt(){Ue||We(!1),Ue=null}function Ut(){Ue&&(Ue.abandon(),yt())}return{isClaimed:ie,isActive:Ce,claim:et,release:yt,tryAbandon:Ut}}var wi=9,mi=13,Gi=27,sa=32,Ua=33,no=34,Wo=35,Zo=36,Bo=37,Es=38,As=39,$o=40,Do,vo=(Do={},Do[mi]=!0,Do[wi]=!0,Do),Ms=function(ie){vo[ie.keyCode]&&ie.preventDefault()},rl=function(){var Ue="visibilitychange";if(typeof document=="undefined")return Ue;var ie=[Ue,"ms"+Ue,"webkit"+Ue,"moz"+Ue,"o"+Ue],Ce=ae(ie,function(et){return"on"+et in document});return Ce||Ue}(),gs=0,Ra=5;function dl(Ue,ie){return Math.abs(ie.x-Ue.x)>=Ra||Math.abs(ie.y-Ue.y)>=Ra}var fl={type:"IDLE"};function js(Ue){var ie=Ue.cancel,Ce=Ue.completed,et=Ue.getPhase,yt=Ue.setPhase;return[{eventName:"mousemove",fn:function(Qt){var $t=Qt.button,Hr=Qt.clientX,ln=Qt.clientY;if($t!==gs)return;var Ur={x:Hr,y:ln},Br=et();if(Br.type==="DRAGGING"){Qt.preventDefault(),Br.actions.move(Ur);return}Br.type==="PENDING"||We(!1);var an=Br.point;if(!dl(an,Ur))return;Qt.preventDefault();var pn=Br.actions.fluidLift(Ur);yt({type:"DRAGGING",actions:pn})}},{eventName:"mouseup",fn:function(Qt){var $t=et();if($t.type!=="DRAGGING"){ie();return}Qt.preventDefault(),$t.actions.drop({shouldBlockNextClick:!0}),Ce()}},{eventName:"mousedown",fn:function(Qt){et().type==="DRAGGING"&&Qt.preventDefault(),ie()}},{eventName:"keydown",fn:function(Qt){var $t=et();if($t.type==="PENDING"){ie();return}if(Qt.keyCode===Gi){Qt.preventDefault(),ie();return}Ms(Qt)}},{eventName:"resize",fn:ie},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){et().type==="PENDING"&&ie()}},{eventName:"webkitmouseforcedown",fn:function(Qt){var $t=et();if($t.type!=="IDLE"||We(!1),$t.actions.shouldRespectForcePress()){ie();return}Qt.preventDefault()}},{eventName:rl,fn:ie}]}function _s(Ue){var ie=Object(y.useRef)(fl),Ce=Object(y.useRef)(be),et=i(function(){return{eventName:"mousedown",fn:function(Br){if(Br.defaultPrevented)return;if(Br.button!==gs)return;if(Br.ctrlKey||Br.metaKey||Br.shiftKey||Br.altKey)return;var an=Ue.findClosestDraggableId(Br);if(!an)return;var pn=Ue.tryGetLock(an,Qt,{sourceEvent:Br});if(!pn)return;Br.preventDefault();var jn={x:Br.clientX,y:Br.clientY};Ce.current(),ln(pn,jn)}}},[Ue]),yt=i(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Br){if(Br.defaultPrevented)return;var an=Ue.findClosestDraggableId(Br);if(!an)return;var pn=Ue.findOptionsForDraggable(an);if(!pn)return;if(pn.shouldRespectForcePress)return;if(!Ue.canGetLock(an))return;Br.preventDefault()}}},[Ue]),Ut=t(function(){var Br={passive:!1,capture:!0};Ce.current=Ie(window,[yt,et],Br)},[yt,et]),Qt=t(function(){var Ur=ie.current;if(Ur.type==="IDLE")return;ie.current=fl,Ce.current(),Ut()},[Ut]),$t=t(function(){var Ur=ie.current;Qt(),Ur.type==="DRAGGING"&&Ur.actions.cancel({shouldBlockNextClick:!0}),Ur.type==="PENDING"&&Ur.actions.abort()},[Qt]),Hr=t(function(){var Br={capture:!0,passive:!1},an=js({cancel:$t,completed:Qt,getPhase:function(){return ie.current},setPhase:function(jn){ie.current=jn}});Ce.current=Ie(window,an,Br)},[$t,Qt]),ln=t(function(Br,an){ie.current.type==="IDLE"||We(!1),ie.current={type:"PENDING",point:an,actions:Br},Hr()},[Hr]);hs(function(){return Ut(),function(){Ce.current()}},[Ut])}var Xs;function Ql(){}var Ul=(Xs={},Xs[no]=!0,Xs[Ua]=!0,Xs[Zo]=!0,Xs[Wo]=!0,Xs);function wl(Ue,ie){function Ce(){ie(),Ue.cancel()}function et(){ie(),Ue.drop()}return[{eventName:"keydown",fn:function(Ut){if(Ut.keyCode===Gi){Ut.preventDefault(),Ce();return}if(Ut.keyCode===sa){Ut.preventDefault(),et();return}if(Ut.keyCode===$o){Ut.preventDefault(),Ue.moveDown();return}if(Ut.keyCode===Es){Ut.preventDefault(),Ue.moveUp();return}if(Ut.keyCode===As){Ut.preventDefault(),Ue.moveRight();return}if(Ut.keyCode===Bo){Ut.preventDefault(),Ue.moveLeft();return}if(Ul[Ut.keyCode]){Ut.preventDefault();return}Ms(Ut)}},{eventName:"mousedown",fn:Ce},{eventName:"mouseup",fn:Ce},{eventName:"click",fn:Ce},{eventName:"touchstart",fn:Ce},{eventName:"resize",fn:Ce},{eventName:"wheel",fn:Ce,options:{passive:!0}},{eventName:rl,fn:Ce}]}function Ts(Ue){var ie=Object(y.useRef)(Ql),Ce=i(function(){return{eventName:"keydown",fn:function(Ut){if(Ut.defaultPrevented)return;if(Ut.keyCode!==sa)return;var Qt=Ue.findClosestDraggableId(Ut);if(!Qt)return;var $t=Ue.tryGetLock(Qt,Ur,{sourceEvent:Ut});if(!$t)return;Ut.preventDefault();var Hr=!0,ln=$t.snapLift();ie.current();function Ur(){Hr||We(!1),Hr=!1,ie.current(),et()}ie.current=Ie(window,wl(ln,Ur),{capture:!0,passive:!1})}}},[Ue]),et=t(function(){var Ut={passive:!1,capture:!0};ie.current=Ie(window,[Ce],Ut)},[Ce]);hs(function(){return et(),function(){ie.current()}},[et])}var Ks={type:"IDLE"},Tl=120,pl=.15;function jo(Ue){var ie=Ue.cancel,Ce=Ue.getPhase;return[{eventName:"orientationchange",fn:ie},{eventName:"resize",fn:ie},{eventName:"contextmenu",fn:function(yt){yt.preventDefault()}},{eventName:"keydown",fn:function(yt){if(Ce().type!=="DRAGGING"){ie();return}yt.keyCode===Gi&&yt.preventDefault(),ie()}},{eventName:rl,fn:ie}]}function yo(Ue){var ie=Ue.cancel,Ce=Ue.completed,et=Ue.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Ut){var Qt=et();if(Qt.type!=="DRAGGING"){ie();return}Qt.hasMoved=!0;var $t=Ut.touches[0],Hr=$t.clientX,ln=$t.clientY,Ur={x:Hr,y:ln};Ut.preventDefault(),Qt.actions.move(Ur)}},{eventName:"touchend",fn:function(Ut){var Qt=et();if(Qt.type!=="DRAGGING"){ie();return}Ut.preventDefault(),Qt.actions.drop({shouldBlockNextClick:!0}),Ce()}},{eventName:"touchcancel",fn:function(Ut){if(et().type!=="DRAGGING"){ie();return}Ut.preventDefault(),ie()}},{eventName:"touchforcechange",fn:function(Ut){var Qt=et();Qt.type!=="IDLE"||We(!1);var $t=Ut.touches[0];if(!$t)return;var Hr=$t.force>=pl;if(!Hr)return;var ln=Qt.actions.shouldRespectForcePress();if(Qt.type==="PENDING"){ln&&ie();return}if(ln){if(Qt.hasMoved){Ut.preventDefault();return}ie();return}Ut.preventDefault()}},{eventName:rl,fn:ie}]}function qo(Ue){var ie=Object(y.useRef)(Ks),Ce=Object(y.useRef)(be),et=t(function(){return ie.current},[]),yt=t(function(pn){ie.current=pn},[]),Ut=i(function(){return{eventName:"touchstart",fn:function(pn){if(pn.defaultPrevented)return;var jn=Ue.findClosestDraggableId(pn);if(!jn)return;var _i=Ue.tryGetLock(jn,$t,{sourceEvent:pn});if(!_i)return;var Di=pn.touches[0],da=Di.clientX,Ji=Di.clientY,Qa={x:da,y:Ji};Ce.current(),Br(_i,Qa)}}},[Ue]),Qt=t(function(){var pn={capture:!0,passive:!1};Ce.current=Ie(window,[Ut],pn)},[Ut]),$t=t(function(){var an=ie.current;if(an.type==="IDLE")return;an.type==="PENDING"&&clearTimeout(an.longPressTimerId),yt(Ks),Ce.current(),Qt()},[Qt,yt]),Hr=t(function(){var an=ie.current;$t(),an.type==="DRAGGING"&&an.actions.cancel({shouldBlockNextClick:!0}),an.type==="PENDING"&&an.actions.abort()},[$t]),ln=t(function(){var pn={capture:!0,passive:!1},jn={cancel:Hr,completed:$t,getPhase:et},_i=Ie(window,yo(jn),pn),Di=Ie(window,jo(jn),pn);Ce.current=function(){_i(),Di()}},[Hr,et,$t]),Ur=t(function(){var pn=et();pn.type==="PENDING"||We(!1);var jn=pn.actions.fluidLift(pn.point);yt({type:"DRAGGING",actions:jn,hasMoved:!1})},[et,yt]),Br=t(function(pn,jn){et().type==="IDLE"||We(!1);var _i=setTimeout(Ur,Tl);yt({type:"PENDING",point:jn,actions:pn,longPressTimerId:_i}),ln()},[ln,et,yt,Ur]);hs(function(){return Qt(),function(){Ce.current();var jn=et();jn.type==="PENDING"&&(clearTimeout(jn.longPressTimerId),yt(Ks))}},[et,Qt,yt]),hs(function(){var pn=Ie(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return pn},[])}function ps(Ue){tr(function(){var ie=_n(Ue);Gr(function(){ie.current.length===Ue.length||We(!1)})})}var Os={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function es(Ue,ie){if(ie==null)return!1;var Ce=Boolean(Os[ie.tagName.toLowerCase()]);if(Ce)return!0;var et=ie.getAttribute("contenteditable");return et==="true"||et===""?!0:ie===Ue?!1:es(Ue,ie.parentElement)}function Is(Ue,ie){var Ce=ie.target;return Gs(Ce)?es(Ue,Ce):!1}var Ps=function(ie){return e(ie.getBoundingClientRect()).center};function ml(Ue){return Ue instanceof el(Ue).Element}var Rl=function(){var Ue="matches";if(typeof document=="undefined")return Ue;var ie=[Ue,"msMatchesSelector","webkitMatchesSelector"],Ce=ae(ie,function(et){return et in Element.prototype});return Ce||Ue}();function _l(Ue,ie){return Ue==null?null:Ue[Rl](ie)?Ue:_l(Ue.parentElement,ie)}function Bl(Ue,ie){return Ue.closest?Ue.closest(ie):_l(Ue,ie)}function jl(Ue){return"["+ss.contextId+'="'+Ue+'"]'}function kl(Ue,ie){var Ce=ie.target;if(!ml(Ce))return null;var et=jl(Ue),yt=Bl(Ce,et);return yt&&Gs(yt)?yt:null}function Xl(Ue,ie){var Ce=kl(Ue,ie);return Ce?Ce.getAttribute(ss.draggableId):null}function ol(Ue,ie){var Ce="["+Cs.contextId+'="'+Ue+'"]',et=ft(document.querySelectorAll(Ce)),yt=ae(et,function(Ut){return Ut.getAttribute(Cs.id)===ie});return yt&&Gs(yt)?yt:null}function Ys(Ue){Ue.preventDefault()}function sl(Ue){var ie=Ue.expected,Ce=Ue.phase,et=Ue.isLockActive,yt=Ue.shouldWarn;return et()?!(ie!==Ce):!1}function nl(Ue){var ie=Ue.lockAPI,Ce=Ue.store,et=Ue.registry,yt=Ue.draggableId;if(ie.isClaimed())return!1;var Ut=et.draggable.findById(yt);return Ut&&Ut.options.isEnabled?!!ui(Ce.getState(),yt):!1}function xl(Ue){var ie=Ue.lockAPI,Ce=Ue.contextId,et=Ue.store,yt=Ue.registry,Ut=Ue.draggableId,Qt=Ue.forceSensorStop,$t=Ue.sourceEvent,Hr=nl({lockAPI:ie,store:et,registry:yt,draggableId:Ut});if(!Hr)return null;var ln=yt.draggable.getById(Ut),Ur=ol(Ce,ln.descriptor.id);if(!Ur)return null;if($t&&!ln.options.canDragInteractiveElements&&Is(Ur,$t))return null;var Br=ie.claim(Qt||be),an="PRE_DRAG";function pn(){return ln.options.shouldRespectForcePress}function jn(){return ie.isActive(Br)}function _i(za,Xo){sl({expected:za,phase:an,isLockActive:jn,shouldWarn:!0})&&et.dispatch(Xo())}var Di=_i.bind(null,"DRAGGING");function da(za){function Xo(){ie.release(),an="COMPLETED"}an!=="PRE_DRAG"&&(Xo(),an==="PRE_DRAG"||We(!1)),et.dispatch(wr(za.liftActionArgs)),an="DRAGGING";function ls(N,U){if(U===void 0&&(U={shouldBlockNextClick:!1}),za.cleanup(),U.shouldBlockNextClick){var ne=Ie(window,[{eventName:"click",fn:Ys,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(ne)}Xo(),et.dispatch(Ri({reason:N}))}return Object(A.a)({isActive:function(){return sl({expected:"DRAGGING",phase:an,isLockActive:jn,shouldWarn:!1})},shouldRespectForcePress:pn,drop:function(U){return ls("DROP",U)},cancel:function(U){return ls("CANCEL",U)}},za.actions)}function Ji(za){var Xo=M(function(N){Di(function(){return Et({client:N})})}),ls=da({liftActionArgs:{id:Ut,clientSelection:za,movementMode:"FLUID"},cleanup:function(){return Xo.cancel()},actions:{move:Xo}});return Object(A.a)({},ls,{move:Xo})}function Qa(){var za={moveUp:function(){return Di($r)},moveRight:function(){return Di(Tn)},moveDown:function(){return Di(yn)},moveLeft:function(){return Di(vn)}};return da({liftActionArgs:{id:Ut,clientSelection:Ps(Ur),movementMode:"SNAP"},cleanup:be,actions:za})}function ya(){var za=sl({expected:"PRE_DRAG",phase:an,isLockActive:jn,shouldWarn:!0});za&&ie.release()}var fo={isActive:function(){return sl({expected:"PRE_DRAG",phase:an,isLockActive:jn,shouldWarn:!1})},shouldRespectForcePress:pn,fluidLift:Ji,snapLift:Qa,abort:ya};return fo}var Ml=[_s,Ts,qo];function Wl(Ue){var ie=Ue.contextId,Ce=Ue.store,et=Ue.registry,yt=Ue.customSensors,Ut=Ue.enableDefaultSensors,Qt=[].concat(Ut?Ml:[],yt||[]),$t=Object(y.useState)(function(){return li()})[0],Hr=t(function(Ji,Qa){Ji.isDragging&&!Qa.isDragging&&$t.tryAbandon()},[$t]);hs(function(){var Ji=Ce.getState(),Qa=Ce.subscribe(function(){var ya=Ce.getState();Hr(Ji,ya),Ji=ya});return Qa},[$t,Ce,Hr]),hs(function(){return $t.tryAbandon},[$t.tryAbandon]);var ln=t(function(da){return nl({lockAPI:$t,registry:et,store:Ce,draggableId:da})},[$t,et,Ce]),Ur=t(function(da,Ji,Qa){return xl({lockAPI:$t,registry:et,contextId:ie,store:Ce,draggableId:da,forceSensorStop:Ji,sourceEvent:Qa&&Qa.sourceEvent?Qa.sourceEvent:null})},[ie,$t,et,Ce]),Br=t(function(da){return Xl(ie,da)},[ie]),an=t(function(da){var Ji=et.draggable.findById(da);return Ji?Ji.options:null},[et.draggable]),pn=t(function(){if(!$t.isClaimed())return;$t.tryAbandon(),Ce.getState().phase!=="IDLE"&&Ce.dispatch(Qn())},[$t,Ce]),jn=t($t.isClaimed,[$t]),_i=i(function(){return{canGetLock:ln,tryGetLock:Ur,findClosestDraggableId:Br,findOptionsForDraggable:an,tryReleaseLock:pn,isLockClaimed:jn}},[ln,Ur,Br,an,pn,jn]);ps(Qt);for(var Di=0;Di<Qt.length;Di++)Qt[Di](_i)}var au=function(ie){return{onBeforeCapture:ie.onBeforeCapture,onBeforeDragStart:ie.onBeforeDragStart,onDragStart:ie.onDragStart,onDragEnd:ie.onDragEnd,onDragUpdate:ie.onDragUpdate}};function Nl(Ue){return Ue.current||We(!1),Ue.current}function $l(Ue){var ie=Ue.contextId,Ce=Ue.setCallbacks,et=Ue.sensors,yt=Ue.nonce,Ut=Ue.dragHandleUsageInstructions,Qt=Object(y.useRef)(null);cn();var $t=_n(Ue),Hr=t(function(){return au($t.current)},[$t]),ln=Vo(ie),Ur=er({contextId:ie,text:Ut}),Br=Ll(ie,yt),an=t(function(N){Nl(Qt).dispatch(N)},[]),pn=i(function(){return Object(m.b)({publishWhileDragging:cr,updateDroppableScroll:Wr,updateDroppableIsEnabled:on,updateDroppableIsCombineEnabled:Nn,collectionStarting:Lr},an)},[an]),jn=tl(),_i=i(function(){return si(jn,pn)},[jn,pn]),Di=i(function(){return Ao(Object(A.a)({scrollWindow:oi,scrollDroppable:_i.scrollDroppable},Object(m.b)({move:Et},an)))},[_i.scrollDroppable,an]),da=ks(ie),Ji=i(function(){return xr({announce:ln,autoScroller:Di,dimensionMarshal:_i,focusMarshal:da,getResponders:Hr,styleMarshal:Br})},[ln,Di,_i,da,Hr,Br]);Qt.current=Ji;var Qa=t(function(){var N=Nl(Qt),U=N.getState();U.phase!=="IDLE"&&N.dispatch(Qn())},[]),ya=t(function(){var N=Nl(Qt).getState();return N.isDragging||N.phase==="DROP_ANIMATING"},[]),fo=i(function(){return{isDragging:ya,tryAbort:Qa}},[ya,Qa]);Ce(fo);var za=t(function(N){return ui(Nl(Qt).getState(),N)},[]),Xo=t(function(){return qr(Nl(Qt).getState())},[]),ls=i(function(){return{marshal:_i,focus:da,contextId:ie,canLift:za,isMovementAllowed:Xo,dragHandleUsageInstructionsId:Ur,registry:jn}},[ie,_i,Ur,da,za,Xo,jn]);return Wl({contextId:ie,store:Ji,registry:jn,customSensors:et,enableDefaultSensors:Ue.enableDefaultSensors!==!1}),Object(y.useEffect)(function(){return Qa},[Qa]),p.a.createElement(Cn.Provider,{value:ls},p.a.createElement(f.a,{context:xs,store:Ji},Ue.children))}var tu=0;function Iu(){tu=0}function pu(){return i(function(){return""+tu++},[])}function mu(){Iu(),Ds()}function gu(Ue){var ie=pu(),Ce=Ue.dragHandleUsageInstructions||we.dragHandleUsageInstructions;return p.a.createElement(ot,null,function(et){return p.a.createElement($l,{nonce:Ue.nonce,contextId:ie,setCallbacks:et,dragHandleUsageInstructions:Ce,enableDefaultSensors:Ue.enableDefaultSensors,sensors:Ue.sensors,onBeforeCapture:Ue.onBeforeCapture,onBeforeDragStart:Ue.onBeforeDragStart,onDragStart:Ue.onDragStart,onDragUpdate:Ue.onDragUpdate,onDragEnd:Ue.onDragEnd},Ue.children)})}var ql=function(ie){return function(Ce){return ie===Ce}},Cl=ql("scroll"),ll=ql("auto"),Hl=ql("visible"),Sl=function(ie,Ce){return Ce(ie.overflowX)||Ce(ie.overflowY)},Su=function(ie,Ce){return Ce(ie.overflowX)&&Ce(ie.overflowY)},vu=function(ie){var Ce=window.getComputedStyle(ie),et={overflowX:Ce.overflowX,overflowY:Ce.overflowY};return Sl(et,Cl)||Sl(et,ll)},Au=function(){return!1;var ie,Ce;if(!vu(ie))return!1;var et,yt;if(Su(yt,Hl))return!1},Ol=function Ue(ie){return ie==null?null:ie===document.body?Au()?ie:null:ie===document.documentElement?null:vu(ie)?ie:Ue(ie.parentElement)},cu=function(ie){if(!ie)return;var Ce=Ol(ie.parentElement);if(!Ce)return},du=function(ie){return{x:ie.scrollLeft,y:ie.scrollTop}},Lu=function Ue(ie){if(!ie)return!1;var Ce=window.getComputedStyle(ie);return Ce.position==="fixed"?!0:Ue(ie.parentElement)},zl=function(ie){var Ce=Ol(ie),et=Lu(ie);return{closestScrollable:Ce,isFixedOnPage:et}},ru=function(ie){var Ce=ie.descriptor,et=ie.isEnabled,yt=ie.isCombineEnabled,Ut=ie.isFixedOnPage,Qt=ie.direction,$t=ie.client,Hr=ie.page,ln=ie.closest,Ur=function(){if(!ln)return null;var jn=ln.scrollSize,_i=ln.client,Di=Vn({scrollHeight:jn.scrollHeight,scrollWidth:jn.scrollWidth,height:_i.paddingBox.height,width:_i.paddingBox.width});return{pageMarginBox:ln.page.marginBox,frameClient:_i,scrollSize:jn,shouldClipSubject:ln.shouldClipSubject,scroll:{initial:ln.scroll,current:ln.scroll,max:Di,diff:{value:Ne,displacement:Ne}}}}(),Br=Qt==="vertical"?Jn:Xt,an=Xe({page:Hr,withPlaceholder:null,axis:Br,frame:Ur}),pn={descriptor:Ce,isCombineEnabled:yt,isFixedOnPage:Ut,axis:Br,isEnabled:et,client:$t,page:Hr,frame:Ur,subject:an};return pn},ou=function(ie,Ce){var et=C(ie);if(!Ce)return et;if(ie!==Ce)return et;var yt=et.paddingBox.top-Ce.scrollTop,Ut=et.paddingBox.left-Ce.scrollLeft,Qt=yt+Ce.scrollHeight,$t=Ut+Ce.scrollWidth,Hr={top:yt,right:$t,bottom:Qt,left:Ut},ln=l(Hr,et.border),Ur=d({borderBox:ln,margin:et.margin,border:et.border,padding:et.padding});return Ur},su=function(ie){var Ce=ie.ref,et=ie.descriptor,yt=ie.env,Ut=ie.windowScroll,Qt=ie.direction,$t=ie.isDropDisabled,Hr=ie.isCombineEnabled,ln=ie.shouldClipSubject,Ur=yt.closestScrollable,Br=ou(Ce,Ur),an=S(Br,Ut),pn=function(){if(!Ur)return null;var _i=C(Ur),Di={scrollHeight:Ur.scrollHeight,scrollWidth:Ur.scrollWidth};return{client:_i,page:S(_i,Ut),scroll:du(Ur),scrollSize:Di,shouldClipSubject:ln}}(),jn=ru({descriptor:et,isEnabled:!$t,isCombineEnabled:Hr,isFixedOnPage:yt.isFixedOnPage,direction:Qt,client:Br,page:an,closest:pn});return jn},Jl={passive:!1},Du={passive:!0},Ru=function(ie){return ie.shouldPublishImmediately?Jl:Du};function Zl(Ue){var ie=Object(y.useContext)(Ue);return ie||We(!1),ie}var yu=function(ie){return ie&&ie.env.closestScrollable||null};function xu(Ue){var ie=Object(y.useRef)(null),Ce=Zl(Cn),et=go("droppable"),yt=Ce.registry,Ut=Ce.marshal,Qt=_n(Ue),$t=i(function(){return{id:Ue.droppableId,type:Ue.type,mode:Ue.mode}},[Ue.droppableId,Ue.mode,Ue.type]),Hr=Object(y.useRef)($t),ln=i(function(){return I(function(ya,fo){ie.current||We(!1);var za={x:ya,y:fo};Ut.updateDroppableScroll($t.id,za)})},[$t.id,Ut]),Ur=t(function(){var ya=ie.current;return!ya||!ya.env.closestScrollable?Ne:du(ya.env.closestScrollable)},[]),Br=t(function(){var ya=Ur();ln(ya.x,ya.y)},[Ur,ln]),an=i(function(){return M(Br)},[Br]),pn=t(function(){var ya=ie.current,fo=yu(ya);ya&&fo||We(!1);var za=ya.scrollOptions;if(za.shouldPublishImmediately){Br();return}an()},[an,Br]),jn=t(function(ya,fo){ie.current&&We(!1);var za=Qt.current,Xo=za.getDroppableRef();Xo||We(!1);var ls=zl(Xo),N={ref:Xo,descriptor:$t,env:ls,scrollOptions:fo};ie.current=N;var U=su({ref:Xo,descriptor:$t,env:ls,windowScroll:ya,direction:za.direction,isDropDisabled:za.isDropDisabled,isCombineEnabled:za.isCombineEnabled,shouldClipSubject:!za.ignoreContainerClipping}),ne=ls.closestScrollable;return ne&&(ne.setAttribute(il.contextId,Ce.contextId),ne.addEventListener("scroll",pn,Ru(N.scrollOptions))),U},[Ce.contextId,$t,pn,Qt]),_i=t(function(){var ya=ie.current,fo=yu(ya);return ya&&fo||We(!1),du(fo)},[]),Di=t(function(){var ya=ie.current;ya||We(!1);var fo=yu(ya);if(ie.current=null,!fo)return;an.cancel(),fo.removeAttribute(il.contextId),fo.removeEventListener("scroll",pn,Ru(ya.scrollOptions))},[pn,an]),da=t(function(ya){var fo=ie.current;fo||We(!1);var za=yu(fo);za||We(!1),za.scrollTop+=ya.y,za.scrollLeft+=ya.x},[]),Ji=i(function(){return{getDimensionAndWatchScroll:jn,getScrollWhileDragging:_i,dragStopped:Di,scroll:da}},[Di,jn,_i,da]),Qa=i(function(){return{uniqueId:et,descriptor:$t,callbacks:Ji}},[Ji,$t,et]);hs(function(){return Hr.current=Qa.descriptor,yt.droppable.register(Qa),function(){ie.current&&Di(),yt.droppable.unregister(Qa)}},[Ji,$t,Di,Qa,Ut,yt.droppable]),hs(function(){if(!ie.current)return;Ut.updateDroppableIsEnabled(Hr.current.id,!Ue.isDropDisabled)},[Ue.isDropDisabled,Ut]),hs(function(){if(!ie.current)return;Ut.updateDroppableIsCombineEnabled(Hr.current.id,Ue.isCombineEnabled)},[Ue.isCombineEnabled,Ut])}function bu(){}var hl={width:0,height:0,margin:dr},Dl=function(ie){var Ce=ie.isAnimatingOpenOnMount,et=ie.placeholder,yt=ie.animate;return Ce||yt==="close"?hl:{height:et.client.borderBox.height,width:et.client.borderBox.width,margin:et.client.margin}},nu=function(ie){var Ce=ie.isAnimatingOpenOnMount,et=ie.placeholder,yt=ie.animate,Ut=Dl({isAnimatingOpenOnMount:Ce,placeholder:et,animate:yt});return{display:et.display,boxSizing:"border-box",width:Ut.width,height:Ut.height,marginTop:Ut.margin.top,marginRight:Ut.margin.right,marginBottom:Ut.margin.bottom,marginLeft:Ut.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:yt!=="none"?ra.placeholder:null}};function Nu(Ue){var ie=Object(y.useRef)(null),Ce=t(function(){if(!ie.current)return;clearTimeout(ie.current),ie.current=null},[]),et=Ue.animate,yt=Ue.onTransitionEnd,Ut=Ue.onClose,Qt=Ue.contextId,$t=Object(y.useState)(Ue.animate==="open"),Hr=$t[0],ln=$t[1];Object(y.useEffect)(function(){return Hr?et!=="open"?(Ce(),ln(!1),bu):ie.current?bu:(ie.current=setTimeout(function(){ie.current=null,ln(!1)}),Ce):bu},[et,Hr,Ce]);var Ur=t(function(an){if(an.propertyName!=="height")return;yt(),et==="close"&&Ut()},[et,Ut,yt]),Br=nu({isAnimatingOpenOnMount:Hr,animate:Ue.animate,placeholder:Ue.placeholder});return p.a.createElement(Ue.placeholder.tagName,{style:Br,"data-rbd-placeholder-context-id":Qt,onTransitionEnd:Ur,ref:Ue.innerRef})}var hu=p.a.memo(Nu),fu=p.a.createContext(null);function iu(Ue){Ue&&Gs(Ue)||We(!1)}function ve(Ue){return typeof Ue=="boolean"}function q(Ue,ie){ie.forEach(function(Ce){return Ce(Ue)})}var L=[function(ie){var Ce=ie.props;Ce.droppableId||We(!1),typeof Ce.droppableId=="string"||We(!1)},function(ie){var Ce=ie.props;ve(Ce.isDropDisabled)||We(!1),ve(Ce.isCombineEnabled)||We(!1),ve(Ce.ignoreContainerClipping)||We(!1)},function(ie){var Ce=ie.getDroppableRef;iu(Ce())}],K=[function(ie){var Ce=ie.props,et=ie.getPlaceholderRef;if(!Ce.placeholder)return;var yt=et();if(yt)return}],H=[function(ie){var Ce=ie.props;Ce.renderClone||We(!1)},function(ie){var Ce=ie.getPlaceholderRef;Ce()&&We(!1)}];function Z(Ue){Gr(function(){q(Ue,L),Ue.props.mode==="standard"&&q(Ue,K),Ue.props.mode==="virtual"&&q(Ue,H)})}var re=function(Ue){Object(x.a)(ie,Ue);function ie(){for(var et,yt=arguments.length,Ut=new Array(yt),Qt=0;Qt<yt;Qt++)Ut[Qt]=arguments[Qt];return et=Ue.call.apply(Ue,[this].concat(Ut))||this,et.state={isVisible:Boolean(et.props.on),data:et.props.on,animate:et.props.shouldAnimate&&et.props.on?"open":"none"},et.onClose=function(){if(et.state.animate!=="close")return;et.setState({isVisible:!1})},et}ie.getDerivedStateFromProps=function(yt,Ut){return yt.shouldAnimate?yt.on?{isVisible:!0,data:yt.on,animate:"open"}:Ut.isVisible?{isVisible:!0,data:Ut.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(yt.on),data:yt.on,animate:"none"}};var Ce=ie.prototype;return Ce.render=function(){if(!this.state.isVisible)return null;var yt={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(yt)},ie}(p.a.PureComponent),Ae={dragging:5e3,dropAnimating:4500},Te=function(ie,Ce){return Ce?ra.drop(Ce.duration):ie?ra.snap:ra.fluid},Ge=function(ie,Ce){return ie?Ce?Yi.opacity.drop:Yi.opacity.combining:null},lt=function(ie){return ie.forceShouldAnimate!=null?ie.forceShouldAnimate:ie.mode==="SNAP"};function dt(Ue){var ie=Ue.dimension,Ce=ie.client,et=Ue.offset,yt=Ue.combineWith,Ut=Ue.dropping,Qt=Boolean(yt),$t=lt(Ue),Hr=Boolean(Ut),ln=Hr?La.drop(et,Qt):La.moveTo(et),Ur={position:"fixed",top:Ce.marginBox.top,left:Ce.marginBox.left,boxSizing:"border-box",width:Ce.borderBox.width,height:Ce.borderBox.height,transition:Te($t,Ut),transform:ln,opacity:Ge(Qt,Hr),zIndex:Hr?Ae.dropAnimating:Ae.dragging,pointerEvents:"none"};return Ur}function Kt(Ue){return{transform:La.moveTo(Ue.offset),transition:Ue.shouldAnimateDisplacement?null:"none"}}function Er(Ue){return Ue.type==="DRAGGING"?dt(Ue):Kt(Ue)}function br(Ue,ie,Ce){Ce===void 0&&(Ce=Ne);var et=window.getComputedStyle(ie),yt=ie.getBoundingClientRect(),Ut=E(yt,et),Qt=S(Ut,Ce),$t={client:Ut,tagName:ie.tagName.toLowerCase(),display:et.display},Hr={x:Ut.marginBox.width,y:Ut.marginBox.height},ln={descriptor:Ue,placeholder:$t,displaceBy:Hr,client:Ut,page:Qt};return ln}function jr(Ue){var ie=go("draggable"),Ce=Ue.descriptor,et=Ue.registry,yt=Ue.getDraggableRef,Ut=Ue.canDragInteractiveElements,Qt=Ue.shouldRespectForcePress,$t=Ue.isEnabled,Hr=i(function(){return{canDragInteractiveElements:Ut,shouldRespectForcePress:Qt,isEnabled:$t}},[Ut,$t,Qt]),ln=t(function(pn){var jn=yt();return jn||We(!1),br(Ce,jn,pn)},[Ce,yt]),Ur=i(function(){return{uniqueId:ie,descriptor:Ce,options:Hr,getDimension:ln}},[Ce,ln,Hr,ie]),Br=Object(y.useRef)(Ur),an=Object(y.useRef)(!0);hs(function(){return et.draggable.register(Br.current),function(){return et.draggable.unregister(Br.current)}},[et.draggable]),hs(function(){if(an.current){an.current=!1;return}var pn=Br.current;Br.current=Ur,et.draggable.update(Ur,pn)},[Ur,et.draggable])}function Kr(Ue,ie,Ce){Gr(function(){function et(Ut){return"Draggable[id: "+Ut+"]: "}var yt=Ue.draggableId;if(yt||We(!1),typeof yt=="string"||We(!1),te(Ue.index)||We(!1),Ue.mapped.type==="DRAGGING")return;iu(Ce()),Ue.isEnabled&&(ds(ie,yt)||We(!1))})}function In(Ue){tr(function(){var ie=Object(y.useRef)(Ue);Gr(function(){Ue===ie.current||We(!1)},[Ue])})}function kn(Ue){Ue.preventDefault()}function Gn(Ue){var ie=Object(y.useRef)(null),Ce=t(function(N){ie.current=N},[]),et=t(function(){return ie.current},[]),yt=Zl(Cn),Ut=yt.contextId,Qt=yt.dragHandleUsageInstructionsId,$t=yt.registry,Hr=Zl(fu),ln=Hr.type,Ur=Hr.droppableId,Br=i(function(){return{id:Ue.draggableId,index:Ue.index,type:ln,droppableId:Ur}},[Ue.draggableId,Ue.index,ln,Ur]),an=Ue.children,pn=Ue.draggableId,jn=Ue.isEnabled,_i=Ue.shouldRespectForcePress,Di=Ue.canDragInteractiveElements,da=Ue.isClone,Ji=Ue.mapped,Qa=Ue.dropAnimationFinished;if(Kr(Ue,Ut,et),In(da),!da){var ya=i(function(){return{descriptor:Br,registry:$t,getDraggableRef:et,canDragInteractiveElements:Di,shouldRespectForcePress:_i,isEnabled:jn}},[Br,$t,et,Di,_i,jn]);jr(ya)}var fo=i(function(){return jn?{tabIndex:0,role:"button","aria-describedby":Qt,"data-rbd-drag-handle-draggable-id":pn,"data-rbd-drag-handle-context-id":Ut,draggable:!1,onDragStart:kn}:null},[Ut,Qt,pn,jn]),za=t(function(N){if(Ji.type!=="DRAGGING")return;if(!Ji.dropping)return;if(N.propertyName!=="transform")return;Qa()},[Qa,Ji]),Xo=i(function(){var N=Er(Ji),U=Ji.type==="DRAGGING"&&Ji.dropping?za:null,ne={innerRef:Ce,draggableProps:{"data-rbd-draggable-context-id":Ut,"data-rbd-draggable-id":pn,style:N,onTransitionEnd:U},dragHandleProps:fo};return ne},[Ut,fo,pn,Ji,za,Ce]),ls=i(function(){return{draggableId:Br.id,type:Br.type,source:{index:Br.index,droppableId:Br.droppableId}}},[Br.droppableId,Br.id,Br.index,Br.type]);return an(Xo,Ji.snapshot,ls)}var bi=function(ie,Ce){return ie===Ce},ua=function(ie){var Ce=ie.combine,et=ie.destination;return et?et.droppableId:Ce?Ce.droppableId:null},Xi=function(ie){return ie.combine?ie.combine.draggableId:null},ta=function(ie){return ie.at&&ie.at.type==="COMBINE"?ie.at.combine.draggableId:null};function Pa(){var Ue=I(function(yt,Ut){return{x:yt,y:Ut}}),ie=I(function(yt,Ut,Qt,$t,Hr){return{isDragging:!0,isClone:Ut,isDropAnimating:Boolean(Hr),dropAnimation:Hr,mode:yt,draggingOver:Qt,combineWith:$t,combineTargetFor:null}}),Ce=I(function(yt,Ut,Qt,$t,Hr,ln,Ur){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:Hr,combineWith:ln,mode:Ut,offset:yt,dimension:Qt,forceShouldAnimate:Ur,snapshot:ie(Ut,$t,Hr,ln,null)}}}),et=function(Ut,Qt){if(Ut.isDragging){if(Ut.critical.draggable.id!==Qt.draggableId)return null;var $t=Ut.current.client.offset,Hr=Ut.dimensions.draggables[Qt.draggableId],ln=hi(Ut.impact),Ur=ta(Ut.impact),Br=Ut.forceShouldAnimate;return Ce(Ue($t.x,$t.y),Ut.movementMode,Hr,Qt.isClone,ln,Ur,Br)}if(Ut.phase==="DROP_ANIMATING"){var an=Ut.completed;if(an.result.draggableId!==Qt.draggableId)return null;var pn=Qt.isClone,jn=Ut.dimensions.draggables[Qt.draggableId],_i=an.result,Di=_i.mode,da=ua(_i),Ji=Xi(_i),Qa=Ut.dropDuration,ya={duration:Qa,curve:ji.drop,moveTo:Ut.newHomeClientOffset,opacity:Ji?Yi.opacity.drop:null,scale:Ji?Yi.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Ut.newHomeClientOffset,dimension:jn,dropping:ya,draggingOver:da,combineWith:Ji,mode:Di,forceShouldAnimate:null,snapshot:ie(Di,pn,da,Ji,ya)}}}return null};return et}function Ya(Ue){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:Ue,combineWith:null}}var Ba={mapped:{type:"SECONDARY",offset:Ne,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Ya(null)}};function Sa(){var Ue=I(function(Qt,$t){return{x:Qt,y:$t}}),ie=I(Ya),Ce=I(function(Qt,$t,Hr){return $t===void 0&&($t=null),{mapped:{type:"SECONDARY",offset:Qt,combineTargetFor:$t,shouldAnimateDisplacement:Hr,snapshot:ie($t)}}}),et=function($t){return $t?Ce(Ne,$t,!0):null},yt=function($t,Hr,ln,Ur){var Br=ln.displaced.visible[$t],an=Boolean(Ur.inVirtualList&&Ur.effected[$t]),pn=Ir(ln),jn=pn&&pn.draggableId===$t?Hr:null;if(!Br){if(!an)return et(jn);if(ln.displaced.invisible[$t])return null;var _i=Le(Ur.displacedBy.point),Di=Ue(_i.x,_i.y);return Ce(Di,jn,!0)}if(an)return et(jn);var da=ln.displacedBy.point,Ji=Ue(da.x,da.y);return Ce(Ji,jn,Br.shouldAnimate)},Ut=function($t,Hr){if($t.isDragging)return $t.critical.draggable.id===Hr.draggableId?null:yt(Hr.draggableId,$t.critical.draggable.id,$t.impact,$t.afterCritical);if($t.phase==="DROP_ANIMATING"){var ln=$t.completed;return ln.result.draggableId===Hr.draggableId?null:yt(Hr.draggableId,ln.result.draggableId,ln.impact,ln.afterCritical)}return null};return Ut}var Go=function(){var ie=Pa(),Ce=Sa(),et=function(Ut,Qt){return ie(Ut,Qt)||Ce(Ut,Qt)||Ba};return et},Ls={dropAnimationFinished:Ci},ys=Object(f.c)(Go,Ls,null,{context:xs,pure:!0,areStatePropsEqual:bi})(Gn);function bs(Ue){var ie=Zl(fu),Ce=ie.isUsingCloneFor;return Ce===Ue.draggableId&&!Ue.isClone?null:p.a.createElement(ys,Ue)}function Fs(Ue){var ie=typeof Ue.isDragDisabled=="boolean"?!Ue.isDragDisabled:!0,Ce=Boolean(Ue.disableInteractiveElementBlocking),et=Boolean(Ue.shouldRespectForcePress);return p.a.createElement(bs,Object(A.a)({},Ue,{isClone:!1,isEnabled:ie,canDragInteractiveElements:Ce,shouldRespectForcePress:et}))}function ws(Ue){var ie=Object(y.useContext)(Cn);ie||We(!1);var Ce=ie.contextId,et=ie.isMovementAllowed,yt=Object(y.useRef)(null),Ut=Object(y.useRef)(null),Qt=Ue.children,$t=Ue.droppableId,Hr=Ue.type,ln=Ue.mode,Ur=Ue.direction,Br=Ue.ignoreContainerClipping,an=Ue.isDropDisabled,pn=Ue.isCombineEnabled,jn=Ue.snapshot,_i=Ue.useClone,Di=Ue.updateViewportMaxScroll,da=Ue.getContainerForClone,Ji=t(function(){return yt.current},[]),Qa=t(function(se){yt.current=se},[]),ya=t(function(){return Ut.current},[]),fo=t(function(se){Ut.current=se},[]);Z({props:Ue,getDroppableRef:Ji,getPlaceholderRef:ya});var za=t(function(){et()&&Di({maxScroll:zr()})},[et,Di]);xu({droppableId:$t,type:Hr,mode:ln,direction:Ur,isDropDisabled:an,isCombineEnabled:pn,ignoreContainerClipping:Br,getDroppableRef:Ji});var Xo=p.a.createElement(re,{on:Ue.placeholder,shouldAnimate:Ue.shouldAnimatePlaceholder},function(se){var ge=se.onClose,ze=se.data,Ct=se.animate;return p.a.createElement(hu,{placeholder:ze,onClose:ge,innerRef:fo,animate:Ct,contextId:Ce,onTransitionEnd:za})}),ls=i(function(){return{innerRef:Qa,placeholder:Xo,droppableProps:{"data-rbd-droppable-id":$t,"data-rbd-droppable-context-id":Ce}}},[Ce,$t,Xo,Qa]),N=_i?_i.dragging.draggableId:null,U=i(function(){return{droppableId:$t,type:Hr,isUsingCloneFor:N}},[$t,N,Hr]);function ne(){if(!_i)return null;var se=_i.dragging,ge=_i.render,ze=p.a.createElement(bs,{draggableId:se.draggableId,index:se.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(Ct,Zt){return ge(Ct,Zt,se)});return P.a.createPortal(ze,da())}return p.a.createElement(fu.Provider,{value:U},Qt(ls,jn),ne())}var Ws=function(ie,Ce){return ie===Ce.droppable.type},xe=function(ie,Ce){return Ce.draggables[ie.draggable.id]},Ze=function(){var ie={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},Ce=Object(A.a)({},ie,{shouldAnimatePlaceholder:!1}),et=I(function(Qt){return{draggableId:Qt.id,type:Qt.type,source:{index:Qt.index,droppableId:Qt.droppableId}}}),yt=I(function(Qt,$t,Hr,ln,Ur,Br){var an=Ur.descriptor.id,pn=Ur.descriptor.droppableId===Qt;if(pn){var jn=Br?{render:Br,dragging:et(Ur.descriptor)}:null,_i={isDraggingOver:Hr,draggingOverWith:Hr?an:null,draggingFromThisWith:an,isUsingPlaceholder:!0};return{placeholder:Ur.placeholder,shouldAnimatePlaceholder:!1,snapshot:_i,useClone:jn}}if(!$t)return Ce;if(!ln)return ie;var Di={isDraggingOver:Hr,draggingOverWith:an,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:Ur.placeholder,shouldAnimatePlaceholder:!0,snapshot:Di,useClone:null}}),Ut=function($t,Hr){var ln=Hr.droppableId,Ur=Hr.type,Br=!Hr.isDropDisabled,an=Hr.renderClone;if($t.isDragging){var pn=$t.critical;if(!Ws(Ur,pn))return Ce;var jn=xe(pn,$t.dimensions),_i=hi($t.impact)===ln;return yt(ln,Br,_i,_i,jn,an)}if($t.phase==="DROP_ANIMATING"){var Di=$t.completed;if(!Ws(Ur,Di.critical))return Ce;var da=xe(Di.critical,$t.dimensions);return yt(ln,Br,ua(Di.result)===ln,hi(Di.impact)===ln,da,an)}if($t.phase==="IDLE"&&$t.completed&&!$t.shouldFlush){var Ji=$t.completed;if(!Ws(Ur,Ji.critical))return Ce;var Qa=hi(Ji.impact)===ln,ya=Boolean(Ji.impact.at&&Ji.impact.at.type==="COMBINE"),fo=Ji.critical.droppable.id===ln;return Qa?ya?ie:Ce:fo?ie:Ce}return Ce};return Ut},wt={updateViewportMaxScroll:_r};function ir(){return document.body||We(!1),document.body}var Pr={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:ir},nn=Object(f.c)(Ze,wt,null,{context:xs,pure:!0,areStatePropsEqual:bi})(ws);nn.defaultProps=Pr},ni6a:function(k,D,n){var y=n("pzxd"),p=n("mFDi"),x=n("gut8"),A=x.WILL_BE_RESTORED,m=new p,f=function(){};f.prototype={constructor:f,drawRectText:function(a,i){var t=this.style;i=t.textRect||i,this.__dirty&&y.normalizeTextStyle(t,!0);var o=t.text;if(o!=null&&(o+=""),!y.needDrawText(o,t))return;a.save();var e=this.transform;t.transformText?this.setTransform(a):e&&(m.copy(i),m.applyTransform(e),i=m),y.renderText(this,a,o,t,i,A),a.restore()}};var h=f;k.exports=h},nkfE:function(k,D,n){var y=n("bYtY"),p=n("ca2m"),x=n("bLfw"),A=n("+TT/"),m=A.getLayoutParams,f=A.mergeLayoutParam,h=n("jkPA"),u=["value","category","time","log"];function a(i,t,o,e){y.each(u,function(l){t.extend({type:i+"Axis."+l,mergeDefaultAndTheme:function(r,s){var c=this.layoutMode,d=c?m(r):{},g=s.getTheme();y.merge(r,g.get(l+"Axis")),y.merge(r,this.getDefaultOption()),r.type=o(i,r),c&&f(r,d,c)},optionUpdated:function(){var r=this.option;r.type==="category"&&(this.__ordinalMeta=h.createByAxisModel(this))},getCategories:function(r){var s=this.option;if(s.type==="category")return r?s.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:y.mergeAll([{},p[l+"Axis"],e],!0)})}),x.registerSubTypeDefaulter(i+"Axis",y.curry(o,i))}k.exports=a},noeP:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("UOVi");y.registerAction("dataZoom",function(A,m){var f=x.createLinkedNodesFinder(p.bind(m.eachComponent,m,"dataZoom"),x.eachAxisDim,function(u,a){return u.get(a.axisIndex)}),h=[];m.eachComponent({mainType:"dataZoom",query:A},function(u,a){h.push.apply(h,f(u).nodes)}),p.each(h,function(u,a){u.setRawRange({start:A.start,end:A.end,startValue:A.startValue,endValue:A.endValue})})})},o40c:function(k,D,n){var y=n("IwbS"),p=n("OS9S"),x=n("loD1"),A=n("aKvl"),m=y.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(a,i){var t=i.segs,o=i.curveness;if(i.polyline)for(var e=0;e<t.length;){var l=t[e++];if(l>0){a.moveTo(t[e++],t[e++]);for(var r=1;r<l;r++)a.lineTo(t[e++],t[e++])}}else for(var e=0;e<t.length;){var s=t[e++],c=t[e++],d=t[e++],g=t[e++];if(a.moveTo(s,c),o>0){var v=(s+d)/2-(c-g)*o,b=(c+g)/2-(d-s)*o;a.quadraticCurveTo(v,b,d,g)}else a.lineTo(d,g)}},findDataIndex:function(a,i){var t=this.shape,o=t.segs,e=t.curveness;if(t.polyline)for(var l=0,r=0;r<o.length;){var s=o[r++];if(s>0)for(var c=o[r++],d=o[r++],g=1;g<s;g++){var v=o[r++],b=o[r++];if(x.containStroke(c,d,v,b))return l}l++}else for(var l=0,r=0;r<o.length;){var c=o[r++],d=o[r++],v=o[r++],b=o[r++];if(e>0){var S=(c+v)/2-(d-b)*e,E=(d+b)/2-(v-c)*e;if(A.containStroke(c,d,S,E,v,b))return l}else if(x.containStroke(c,d,v,b))return l;l++}return-1}});function f(){this.group=new y.Group}var h=f.prototype;h.isPersistent=function(){return!this._incremental},h.updateData=function(a){this.group.removeAll();var i=new m({rectHover:!0,cursor:"default"});i.setShape({segs:a.getLayout("linesPoints")}),this._setCommon(i,a),this.group.add(i),this._incremental=null},h.incrementalPrepareUpdate=function(a){this.group.removeAll(),this._clearIncremental(),a.count()>5e5?(this._incremental||(this._incremental=new p({silent:!0})),this.group.add(this._incremental)):this._incremental=null},h.incrementalUpdate=function(a,i){var t=new m;t.setShape({segs:i.getLayout("linesPoints")}),this._setCommon(t,i,!!this._incremental),this._incremental?this._incremental.addDisplayable(t,!0):(t.rectHover=!0,t.cursor="default",t.__startIndex=a.start,this.group.add(t))},h.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},h._setCommon=function(a,i,t){var o=i.hostModel;a.setShape({polyline:o.get("polyline"),curveness:o.get("lineStyle.curveness")}),a.useStyle(o.getModel("lineStyle").getLineStyle()),a.style.strokeNoScale=!0;var e=i.getVisual("color");e&&a.setStyle("stroke",e),a.setStyle("fill"),t||(a.seriesIndex=o.seriesIndex,a.on("mousemove",function(l){a.dataIndex=null;var r=a.findDataIndex(l.offsetX,l.offsetY);r>0&&(a.dataIndex=r+a.__startIndex)}))},h._clearIncremental=function(){var a=this._incremental;a&&a.clearDisplaybles()};var u=f;k.exports=u},oBaM:function(k,D,n){var y=n("T4UG"),p=n("5GtS"),x=n("bYtY"),A=n("7aKB"),m=A.encodeHTML,f=n("xKMd"),h=y.extend({type:"series.radar",dependencies:["radar"],init:function(a){h.superApply(this,"init",arguments),this.legendVisualProvider=new f(x.bind(this.getData,this),x.bind(this.getRawData,this))},getInitialData:function(a,i){return p(this,{generateCoord:"indicator_",generateCoordCount:Infinity})},formatTooltip:function(a){var i=this.getData(),t=this.coordinateSystem,o=t.getIndicatorAxes(),e=this.getData().getName(a);return m(e===""?this.name:e)+"<br/>"+x.map(o,function(l,r){var s=i.get(i.mapDimension(l.dim),a);return m(l.name+" : "+s)}).join("<br />")},getTooltipPosition:function(a){if(a!=null){for(var i=this.getData(),t=this.coordinateSystem,o=i.getValues(x.map(t.dimensions,function(s){return i.mapDimension(s)}),a,!0),e=0,l=o.length;e<l;e++)if(!isNaN(o[e])){var r=t.getIndicatorAxes();return t.coordToPoint(r[e].dataToCoord(o[e]),e)}}},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),u=h;k.exports=u},oE7X:function(k,D,n){var y=n("bLfw");y.registerSubTypeDefaulter("timeline",function(){return"slider"})},oIFs:function(k,D,n){},oRuE:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("OLod"))})(this,function(y){return y.pad.Iso10126={pad:function(x,A){var m=A*4,f=m-x.sigBytes%m;x.concat(y.lib.WordArray.random(f-1)).concat(y.lib.WordArray.create([f<<24],1))},unpad:function(x){var A=x.words[x.sigBytes-1>>>2]&255;x.sigBytes-=A}},y.pad.Iso10126})},oVpE:function(k,D,n){var y=n("bYtY"),p=n("IwbS"),x=n("mFDi"),A=n("6GrX"),m=A.calculateTextPosition,f=p.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(s,c){var d=c.cx,g=c.cy,v=c.width/2,b=c.height/2;s.moveTo(d,g-b),s.lineTo(d+v,g+b),s.lineTo(d-v,g+b),s.closePath()}}),h=p.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(s,c){var d=c.cx,g=c.cy,v=c.width/2,b=c.height/2;s.moveTo(d,g-b),s.lineTo(d+v,g),s.lineTo(d,g+b),s.lineTo(d-v,g),s.closePath()}}),u=p.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(s,c){var d=c.x,g=c.y,v=c.width/5*3,b=Math.max(v,c.height),S=v/2,E=S*S/(b-S),C=g-b+S+E,_=Math.asin(E/S),T=Math.cos(_)*S,w=Math.sin(_),O=Math.cos(_),I=S*.6,R=S*.7;s.moveTo(d-T,C+E),s.arc(d,C,S,Math.PI-_,Math.PI*2+_),s.bezierCurveTo(d+T-w*I,C+E+O*I,d,g-R,d,g),s.bezierCurveTo(d,g-R,d-T+w*I,C+E+O*I,d-T,C+E),s.closePath()}}),a=p.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(s,c){var d=c.height,g=c.width,v=c.x,b=c.y,S=g/3*2;s.moveTo(v,b),s.lineTo(v+S,b+d),s.lineTo(v,b+d/4*3),s.lineTo(v-S,b+d),s.lineTo(v,b),s.closePath()}}),i={line:p.Line,rect:p.Rect,roundRect:p.Rect,square:p.Rect,circle:p.Circle,diamond:h,pin:u,arrow:a,triangle:f},t={line:function(s,c,d,g,v){v.x1=s,v.y1=c+g/2,v.x2=s+d,v.y2=c+g/2},rect:function(s,c,d,g,v){v.x=s,v.y=c,v.width=d,v.height=g},roundRect:function(s,c,d,g,v){v.x=s,v.y=c,v.width=d,v.height=g,v.r=Math.min(d,g)/4},square:function(s,c,d,g,v){var b=Math.min(d,g);v.x=s,v.y=c,v.width=b,v.height=b},circle:function(s,c,d,g,v){v.cx=s+d/2,v.cy=c+g/2,v.r=Math.min(d,g)/2},diamond:function(s,c,d,g,v){v.cx=s+d/2,v.cy=c+g/2,v.width=d,v.height=g},pin:function(s,c,d,g,v){v.x=s+d/2,v.y=c+g/2,v.width=d,v.height=g},arrow:function(s,c,d,g,v){v.x=s+d/2,v.y=c+g/2,v.width=d,v.height=g},triangle:function(s,c,d,g,v){v.cx=s+d/2,v.cy=c+g/2,v.width=d,v.height=g}},o={};y.each(i,function(s,c){o[c]=new s});var e=p.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(s,c,d){var g=m(s,c,d),v=this.shape;return v&&v.symbolType==="pin"&&c.textPosition==="inside"&&(g.y=d.y+d.height*.4),g},buildPath:function(s,c,d){var g=c.symbolType;if(g!=="none"){var v=o[g];v||(g="rect",v=o[g]),t[g](c.x,c.y,c.width,c.height,v.shape),v.buildPath(s,v.shape,d)}}});function l(s,c){if(this.type!=="image"){var d=this.style,g=this.shape;g&&g.symbolType==="line"?d.stroke=s:this.__isEmptyBrush?(d.stroke=s,d.fill=c||"#fff"):(d.fill&&(d.fill=s),d.stroke&&(d.stroke=s)),this.dirty(!1)}}function r(s,c,d,g,v,b,S){var E=s.indexOf("empty")===0;E&&(s=s.substr(5,1).toLowerCase()+s.substr(6));var C;return s.indexOf("image://")===0?C=p.makeImage(s.slice(8),new x(c,d,g,v),S?"center":"cover"):s.indexOf("path://")===0?C=p.makePath(s.slice(7),{},new x(c,d,g,v),S?"center":"cover"):C=new e({shape:{symbolType:s,x:c,y:d,width:g,height:v}}),C.__isEmptyBrush=E,C.setColor=l,C.setColor(b),C}D.createSymbol=r},oY9F:function(k,D,n){var y=n("OlYY"),p=y.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});k.exports=p},or5M:function(k,D,n){var y=n("1hJj"),p=n("QoRX"),x=n("xYSL"),A=1,m=2;function f(h,u,a,i,t,o){var e=a&A,l=h.length,r=u.length;if(l!=r&&!(e&&r>l))return!1;var s=o.get(h),c=o.get(u);if(s&&c)return s==u&&c==h;var d=-1,g=!0,v=a&m?new y:void 0;for(o.set(h,u),o.set(u,h);++d<l;){var b=h[d],S=u[d];if(i)var E=e?i(S,b,d,u,h,o):i(b,S,d,h,u,o);if(E!==void 0){if(E)continue;g=!1;break}if(v){if(!p(u,function(C,_){if(!x(v,_)&&(b===C||t(b,C,a,i,o)))return v.push(_)})){g=!1;break}}else if(!(b===S||t(b,S,a,i,o))){g=!1;break}}return o.delete(h),o.delete(u),g}k.exports=f},osHv:function(k,D,n){(function(y){y(n("VrN/"))})(function(y){"use strict";var p=y.Pos;function x(c,d){return c.line-d.line||c.ch-d.ch}var A="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",m=A+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",f=new RegExp("<(/?)(["+A+"]["+m+"]*)","g");function h(c,d,g,v){this.line=d,this.ch=g,this.cm=c,this.text=c.getLine(d),this.min=v?Math.max(v.from,c.firstLine()):c.firstLine(),this.max=v?Math.min(v.to-1,c.lastLine()):c.lastLine()}function u(c,d){var g=c.cm.getTokenTypeAt(p(c.line,d));return g&&/\btag\b/.test(g)}function a(c){return c.line>=c.max?void 0:(c.ch=0,c.text=c.cm.getLine(++c.line),!0)}function i(c){return c.line<=c.min?void 0:(c.text=c.cm.getLine(--c.line),c.ch=c.text.length,!0)}function t(c){for(;;){var d=c.text.indexOf(">",c.ch);if(d==-1){if(a(c))continue;return}if(!u(c,d+1)){c.ch=d+1;continue}var g=c.text.lastIndexOf("/",d),v=g>-1&&!/\S/.test(c.text.slice(g+1,d));return c.ch=d+1,v?"selfClose":"regular"}}function o(c){for(;;){var d=c.ch?c.text.lastIndexOf("<",c.ch-1):-1;if(d==-1){if(i(c))continue;return}if(!u(c,d+1)){c.ch=d;continue}f.lastIndex=d,c.ch=d;var g=f.exec(c.text);if(g&&g.index==d)return g}}function e(c){for(;;){f.lastIndex=c.ch;var d=f.exec(c.text);if(!d){if(a(c))continue;return}if(!u(c,d.index+1)){c.ch=d.index+1;continue}return c.ch=d.index+d[0].length,d}}function l(c){for(;;){var d=c.ch?c.text.lastIndexOf(">",c.ch-1):-1;if(d==-1){if(i(c))continue;return}if(!u(c,d+1)){c.ch=d;continue}var g=c.text.lastIndexOf("/",d),v=g>-1&&!/\S/.test(c.text.slice(g+1,d));return c.ch=d+1,v?"selfClose":"regular"}}function r(c,d){for(var g=[];;){var v=e(c),b,S=c.line,E=c.ch-(v?v[0].length:0);if(!v||!(b=t(c)))return;if(b=="selfClose")continue;if(v[1]){for(var C=g.length-1;C>=0;--C)if(g[C]==v[2]){g.length=C;break}if(C<0&&(!d||d==v[2]))return{tag:v[2],from:p(S,E),to:p(c.line,c.ch)}}else g.push(v[2])}}function s(c,d){for(var g=[];;){var v=l(c);if(!v)return;if(v=="selfClose"){o(c);continue}var b=c.line,S=c.ch,E=o(c);if(!E)return;if(E[1])g.push(E[2]);else{for(var C=g.length-1;C>=0;--C)if(g[C]==E[2]){g.length=C;break}if(C<0&&(!d||d==E[2]))return{tag:E[2],from:p(c.line,c.ch),to:p(b,S)}}}}y.registerHelper("fold","xml",function(c,d){for(var g=new h(c,d.line,0);;){var v=e(g);if(!v||g.line!=d.line)return;var b=t(g);if(!b)return;if(!v[1]&&b!="selfClose"){var S=p(g.line,g.ch),E=r(g,v[2]);return E&&x(E.from,S)>0?{from:S,to:E.from}:null}}}),y.findMatchingTag=function(c,d,g){var v=new h(c,d.line,d.ch,g);if(v.text.indexOf(">")==-1&&v.text.indexOf("<")==-1)return;var b=t(v),S=b&&p(v.line,v.ch),E=b&&o(v);if(!b||!E||x(v,d)>0)return;var C={from:p(v.line,v.ch),to:S,tag:E[2]};return b=="selfClose"?{open:C,close:null,at:"open"}:E[1]?{open:s(v,E[2]),close:C,at:"close"}:(v=new h(c,S.line,S.ch,g),{open:C,close:r(v,E[2]),at:"open"})},y.findEnclosingTag=function(c,d,g,v){for(var b=new h(c,d.line,d.ch,g);;){var S=s(b,v);if(!S)break;var E=new h(c,d.line,d.ch,g),C=r(E,S.tag);if(C)return{open:S,close:C}}},y.scanForClosingTag=function(c,d,g,v){var b=new h(c,d.line,d.ch,v?{from:0,to:v}:null);return r(b,g)}})},ozfa:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("KxFI"),A=n.n(x)},"p+If":function(k,D,n){var y=n("ProS");n("cpOr"),n("rkZ5");var p=n("ZYIC"),x=n("7ph2");y.registerLayout(p),y.registerVisual(x)},"p/La":function(k,D){var n=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function y(p,x){p==="china"&&x.name==="\u53F0\u6E7E"&&x.geometries.push({type:"polygon",exterior:n[0]})}k.exports=y},p1MT:function(k,D,n){var y=n("Hw7h"),p=n("IwbS"),x=n("6Ic6"),A=n("OELB"),m=A.parsePercent,f=A.round,h=A.linearMap;function u(e,l){var r=e.get("center"),s=l.getWidth(),c=l.getHeight(),d=Math.min(s,c),g=m(r[0],l.getWidth()),v=m(r[1],l.getHeight()),b=m(e.get("radius"),d/2);return{cx:g,cy:v,r:b}}function a(e,l){return l&&(typeof l=="string"?e=l.replace("{value}",e!=null?e:""):typeof l=="function"&&(e=l(e))),e}var i=Math.PI*2,t=x.extend({type:"gauge",render:function(e,l,r){this.group.removeAll();var s=e.get("axisLine.lineStyle.color"),c=u(e,r);this._renderMain(e,l,r,s,c)},dispose:function(){},_renderMain:function(e,l,r,s,c){for(var d=this.group,g=e.getModel("axisLine"),v=g.getModel("lineStyle"),b=e.get("clockwise"),S=-e.get("startAngle")/180*Math.PI,E=-e.get("endAngle")/180*Math.PI,C=(E-S)%i,_=S,T=v.get("width"),w=g.get("show"),O=0;w&&O<s.length;O++){var I=Math.min(Math.max(s[O][0],0),1),E=S+C*I,R=new p.Sector({shape:{startAngle:_,endAngle:E,cx:c.cx,cy:c.cy,clockwise:b,r0:c.r-T,r:c.r},silent:!0});R.setStyle({fill:s[O][1]}),R.setStyle(v.getLineStyle(["color","borderWidth","borderColor"])),d.add(R),_=E}var M=function(P){if(P<=0)return s[0][1];for(var X=0;X<s.length;X++)if(s[X][0]>=P&&(X===0?0:s[X-1][0])<P)return s[X][1];return s[X-1][1]};if(!b){var F=S;S=E,E=F}this._renderTicks(e,l,r,M,c,S,E,b),this._renderPointer(e,l,r,M,c,S,E,b),this._renderTitle(e,l,r,M,c),this._renderDetail(e,l,r,M,c)},_renderTicks:function(e,l,r,s,c,d,g,v){for(var b=this.group,S=c.cx,E=c.cy,C=c.r,_=+e.get("min"),T=+e.get("max"),w=e.getModel("splitLine"),O=e.getModel("axisTick"),I=e.getModel("axisLabel"),R=e.get("splitNumber"),M=O.get("splitNumber"),F=m(w.get("length"),C),P=m(O.get("length"),C),X=d,B=(g-d)/R,j=B/M,W=w.getModel("lineStyle").getLineStyle(),z=O.getModel("lineStyle").getLineStyle(),V=0;V<=R;V++){var Q=Math.cos(X),G=Math.sin(X);if(w.get("show")){var ee=new p.Line({shape:{x1:Q*C+S,y1:G*C+E,x2:Q*(C-F)+S,y2:G*(C-F)+E},style:W,silent:!0});W.stroke==="auto"&&ee.setStyle({stroke:s(V/R)}),b.add(ee)}if(I.get("show")){var ce=a(f(V/R*(T-_)+_),I.get("formatter")),be=I.get("distance"),le=s(V/R);b.add(new p.Text({style:p.setTextStyle({},I,{text:ce,x:Q*(C-F-be)+S,y:G*(C-F-be)+E,textVerticalAlign:G<-.4?"top":G>.4?"bottom":"middle",textAlign:Q<-.4?"left":Q>.4?"right":"center"},{autoColor:le}),silent:!0}))}if(O.get("show")&&V!==R){for(var Ie=0;Ie<=M;Ie++){var Q=Math.cos(X),G=Math.sin(X),ke=new p.Line({shape:{x1:Q*C+S,y1:G*C+E,x2:Q*(C-P)+S,y2:G*(C-P)+E},silent:!0,style:z});z.stroke==="auto"&&ke.setStyle({stroke:s((V+Ie/M)/R)}),b.add(ke),X+=j}X-=j}else X+=B}},_renderPointer:function(e,l,r,s,c,d,g,v){var b=this.group,S=this._data;if(!e.get("pointer.show")){S&&S.eachItemGraphicEl(function(w){b.remove(w)});return}var E=[+e.get("min"),+e.get("max")],C=[d,g],_=e.getData(),T=_.mapDimension("value");_.diff(S).add(function(w){var O=new y({shape:{angle:d}});p.initProps(O,{shape:{angle:h(_.get(T,w),E,C,!0)}},e),b.add(O),_.setItemGraphicEl(w,O)}).update(function(w,O){var I=S.getItemGraphicEl(O);p.updateProps(I,{shape:{angle:h(_.get(T,w),E,C,!0)}},e),b.add(I),_.setItemGraphicEl(w,I)}).remove(function(w){var O=S.getItemGraphicEl(w);b.remove(O)}).execute(),_.eachItemGraphicEl(function(w,O){var I=_.getItemModel(O),R=I.getModel("pointer");w.setShape({x:c.cx,y:c.cy,width:m(R.get("width"),c.r),r:m(R.get("length"),c.r)}),w.useStyle(I.getModel("itemStyle").getItemStyle()),w.style.fill==="auto"&&w.setStyle("fill",s(h(_.get(T,O),E,[0,1],!0))),p.setHoverStyle(w,I.getModel("emphasis.itemStyle").getItemStyle())}),this._data=_},_renderTitle:function(e,l,r,s,c){var d=e.getData(),g=d.mapDimension("value"),v=e.getModel("title");if(v.get("show")){var b=v.get("offsetCenter"),S=c.cx+m(b[0],c.r),E=c.cy+m(b[1],c.r),C=+e.get("min"),_=+e.get("max"),T=e.getData().get(g,0),w=s(h(T,[C,_],[0,1],!0));this.group.add(new p.Text({silent:!0,style:p.setTextStyle({},v,{x:S,y:E,text:d.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:w,forceRich:!0})}))}},_renderDetail:function(e,l,r,s,c){var d=e.getModel("detail"),g=+e.get("min"),v=+e.get("max");if(d.get("show")){var b=d.get("offsetCenter"),S=c.cx+m(b[0],c.r),E=c.cy+m(b[1],c.r),C=m(d.get("width"),c.r),_=m(d.get("height"),c.r),T=e.getData(),w=T.get(T.mapDimension("value"),0),O=s(h(w,[g,v],[0,1],!0));this.group.add(new p.Text({silent:!0,style:p.setTextStyle({},d,{x:S,y:E,text:a(w,d.get("formatter")),textWidth:isNaN(C)?null:C,textHeight:isNaN(_)?null:_,textAlign:"center",textVerticalAlign:"middle"},{autoColor:O,forceRich:!0})}))}}}),o=t;k.exports=o},"p77/":function(k,D,n){},pA7S:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"))})(this,function(y){return function(){var p=y,x=p.lib,A=x.WordArray,m=x.BlockCipher,f=p.algo,h=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],a=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],i=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],t=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],o=f.DES=m.extend({_doReset:function(){for(var c=this._key,d=c.words,g=[],v=0;v<56;v++){var b=h[v]-1;g[v]=d[b>>>5]>>>31-b%32&1}for(var S=this._subKeys=[],E=0;E<16;E++){for(var C=S[E]=[],_=a[E],v=0;v<24;v++)C[v/6|0]|=g[(u[v]-1+_)%28]<<31-v%6,C[4+(v/6|0)]|=g[28+(u[v+24]-1+_)%28]<<31-v%6;C[0]=C[0]<<1|C[0]>>>31;for(var v=1;v<7;v++)C[v]=C[v]>>>(v-1)*4+3;C[7]=C[7]<<5|C[7]>>>27}for(var T=this._invSubKeys=[],v=0;v<16;v++)T[v]=S[15-v]},encryptBlock:function(c,d){this._doCryptBlock(c,d,this._subKeys)},decryptBlock:function(c,d){this._doCryptBlock(c,d,this._invSubKeys)},_doCryptBlock:function(c,d,g){this._lBlock=c[d],this._rBlock=c[d+1],e.call(this,4,252645135),e.call(this,16,65535),l.call(this,2,858993459),l.call(this,8,16711935),e.call(this,1,1431655765);for(var v=0;v<16;v++){for(var b=g[v],S=this._lBlock,E=this._rBlock,C=0,_=0;_<8;_++)C|=i[_][((E^b[_])&t[_])>>>0];this._lBlock=E,this._rBlock=S^C}var T=this._lBlock;this._lBlock=this._rBlock,this._rBlock=T,e.call(this,1,1431655765),l.call(this,8,16711935),l.call(this,2,858993459),e.call(this,16,65535),e.call(this,4,252645135),c[d]=this._lBlock,c[d+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function e(s,c){var d=(this._lBlock>>>s^this._rBlock)&c;this._rBlock^=d,this._lBlock^=d<<s}function l(s,c){var d=(this._rBlock>>>s^this._lBlock)&c;this._lBlock^=d,this._rBlock^=d<<s}p.DES=m._createHelper(o);var r=f.TripleDES=m.extend({_doReset:function(){var c=this._key,d=c.words;if(d.length!==2&&d.length!==4&&d.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var g=d.slice(0,2),v=d.length<4?d.slice(0,2):d.slice(2,4),b=d.length<6?d.slice(0,2):d.slice(4,6);this._des1=o.createEncryptor(A.create(g)),this._des2=o.createEncryptor(A.create(v)),this._des3=o.createEncryptor(A.create(b))},encryptBlock:function(c,d){this._des1.encryptBlock(c,d),this._des2.decryptBlock(c,d),this._des3.encryptBlock(c,d)},decryptBlock:function(c,d){this._des3.decryptBlock(c,d),this._des2.encryptBlock(c,d),this._des1.decryptBlock(c,d)},keySize:192/32,ivSize:64/32,blockSize:64/32});p.TripleDES=m._createHelper(r)}(),y.TripleDES})},pC0b:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("xzDV"),A=n.n(x),m=n("5Dmo")},"pED+":function(k,D,n){},pLH3:function(k,D,n){var y=n("ProS");n("ALo7"),n("TWL2");var p=n("mOdp"),x=n("JLnu"),A=n("0/Rx");y.registerVisual(p("funnel")),y.registerLayout(x),y.registerProcessor(A("funnel"))},pP6R:function(k,D,n){var y=n("ProS"),p="\0_ec_interaction_mutex";function x(h,u,a){var i=f(h);i[u]=a}function A(h,u,a){var i=f(h),t=i[u];t===a&&(i[u]=null)}function m(h,u){return!!f(h)[u]}function f(h){return h[p]||(h[p]={})}y.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),D.take=x,D.release=A,D.isTaken=m},pSRY:function(k,D,n){var y=n("QkVE");function p(x){return y(this,x).has(x)}k.exports=p},pWdF:function(k,D,n){"use strict";n.d(D,"a",function(){return iu});var y=n("oBTY"),p=n("rAM+"),x=n("tJVT"),A=n("tS8v"),m=n("oZsa"),f=n("iZzK");function h(ve){return Function.toString.call(ve).indexOf("[native code]")!==-1}var u=n("cHpt");function a(ve,q,L){return Object(u.a)()?a=Reflect.construct:a=function(H,Z,re){var Ae=[null];Ae.push.apply(Ae,Z);var Te=Function.bind.apply(H,Ae),Ge=new Te;return re&&Object(f.a)(Ge,re.prototype),Ge},a.apply(null,arguments)}function i(ve){var q=typeof Map=="function"?new Map:void 0;return i=function(K){if(K===null||!h(K))return K;if(typeof K!="function")throw new TypeError("Super expression must either be null or a function");if(typeof q!="undefined"){if(q.has(K))return q.get(K);q.set(K,H)}function H(){return a(K,arguments,Object(m.a)(this).constructor)}return H.prototype=Object.create(K.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),Object(f.a)(H,K)},i(ve)}var t=n("w4Tj"),o=n("yKVA"),e=n("879j"),l=n("jrin"),r=n("fWQN"),s=n("mtLc");function c(ve){return ve&&ve.__esModule&&Object.prototype.hasOwnProperty.call(ve,"default")?ve.default:ve}var d={exports:{}};(function(ve,q){(function(L){var K=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,H=/^(?=([^\/?#]*))\1([^]*)$/,Z=/(?:\/|^)\.(?=\/)/g,re=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,Ae={buildAbsoluteURL:function(Ge,lt,dt){if(dt=dt||{},Ge=Ge.trim(),lt=lt.trim(),!lt){if(!dt.alwaysNormalize)return Ge;var Kt=Ae.parseURL(Ge);if(!Kt)throw new Error("Error trying to parse base URL.");return Kt.path=Ae.normalizePath(Kt.path),Ae.buildURLFromParts(Kt)}var Er=Ae.parseURL(lt);if(!Er)throw new Error("Error trying to parse relative URL.");if(Er.scheme)return dt.alwaysNormalize?(Er.path=Ae.normalizePath(Er.path),Ae.buildURLFromParts(Er)):lt;var br=Ae.parseURL(Ge);if(!br)throw new Error("Error trying to parse base URL.");if(!br.netLoc&&br.path&&br.path[0]!=="/"){var jr=H.exec(br.path);br.netLoc=jr[1],br.path=jr[2]}br.netLoc&&!br.path&&(br.path="/");var Kr={scheme:br.scheme,netLoc:Er.netLoc,path:null,params:Er.params,query:Er.query,fragment:Er.fragment};if(!Er.netLoc&&(Kr.netLoc=br.netLoc,Er.path[0]!=="/"))if(!Er.path)Kr.path=br.path,Er.params||(Kr.params=br.params,Er.query||(Kr.query=br.query));else{var In=br.path,kn=In.substring(0,In.lastIndexOf("/")+1)+Er.path;Kr.path=Ae.normalizePath(kn)}return Kr.path===null&&(Kr.path=dt.alwaysNormalize?Ae.normalizePath(Er.path):Er.path),Ae.buildURLFromParts(Kr)},parseURL:function(Ge){var lt=K.exec(Ge);return lt?{scheme:lt[1]||"",netLoc:lt[2]||"",path:lt[3]||"",params:lt[4]||"",query:lt[5]||"",fragment:lt[6]||""}:null},normalizePath:function(Ge){for(Ge=Ge.split("").reverse().join("").replace(Z,"");Ge.length!==(Ge=Ge.replace(re,"")).length;);return Ge.split("").reverse().join("")},buildURLFromParts:function(Ge){return Ge.scheme+Ge.netLoc+Ge.path+Ge.params+Ge.query+Ge.fragment}};ve.exports=Ae})()})(d);var g=d.exports;function v(ve,q){var L=Object.keys(ve);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(ve);q&&(K=K.filter(function(H){return Object.getOwnPropertyDescriptor(ve,H).enumerable})),L.push.apply(L,K)}return L}function b(ve){for(var q=1;q<arguments.length;q++){var L=arguments[q]!=null?arguments[q]:{};q%2?v(Object(L),!0).forEach(function(K){S(ve,K,L[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ve,Object.getOwnPropertyDescriptors(L)):v(Object(L)).forEach(function(K){Object.defineProperty(ve,K,Object.getOwnPropertyDescriptor(L,K))})}return ve}function S(ve,q,L){return q=_(q),q in ve?Object.defineProperty(ve,q,{value:L,enumerable:!0,configurable:!0,writable:!0}):ve[q]=L,ve}function E(){return E=Object.assign?Object.assign.bind():function(ve){for(var q=1;q<arguments.length;q++){var L=arguments[q];for(var K in L)Object.prototype.hasOwnProperty.call(L,K)&&(ve[K]=L[K])}return ve},E.apply(this,arguments)}function C(ve,q){if(typeof ve!="object"||ve===null)return ve;var L=ve[Symbol.toPrimitive];if(L!==void 0){var K=L.call(ve,q||"default");if(typeof K!="object")return K;throw new TypeError("@@toPrimitive must return a primitive value.")}return(q==="string"?String:Number)(ve)}function _(ve){var q=C(ve,"string");return typeof q=="symbol"?q:String(q)}var T=Number.isFinite||function(ve){return typeof ve=="number"&&isFinite(ve)},w=function(ve){return ve.MEDIA_ATTACHING="hlsMediaAttaching",ve.MEDIA_ATTACHED="hlsMediaAttached",ve.MEDIA_DETACHING="hlsMediaDetaching",ve.MEDIA_DETACHED="hlsMediaDetached",ve.BUFFER_RESET="hlsBufferReset",ve.BUFFER_CODECS="hlsBufferCodecs",ve.BUFFER_CREATED="hlsBufferCreated",ve.BUFFER_APPENDING="hlsBufferAppending",ve.BUFFER_APPENDED="hlsBufferAppended",ve.BUFFER_EOS="hlsBufferEos",ve.BUFFER_FLUSHING="hlsBufferFlushing",ve.BUFFER_FLUSHED="hlsBufferFlushed",ve.MANIFEST_LOADING="hlsManifestLoading",ve.MANIFEST_LOADED="hlsManifestLoaded",ve.MANIFEST_PARSED="hlsManifestParsed",ve.LEVEL_SWITCHING="hlsLevelSwitching",ve.LEVEL_SWITCHED="hlsLevelSwitched",ve.LEVEL_LOADING="hlsLevelLoading",ve.LEVEL_LOADED="hlsLevelLoaded",ve.LEVEL_UPDATED="hlsLevelUpdated",ve.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",ve.LEVELS_UPDATED="hlsLevelsUpdated",ve.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",ve.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",ve.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",ve.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",ve.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",ve.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",ve.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",ve.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",ve.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",ve.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",ve.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",ve.CUES_PARSED="hlsCuesParsed",ve.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",ve.INIT_PTS_FOUND="hlsInitPtsFound",ve.FRAG_LOADING="hlsFragLoading",ve.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",ve.FRAG_LOADED="hlsFragLoaded",ve.FRAG_DECRYPTED="hlsFragDecrypted",ve.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",ve.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",ve.FRAG_PARSING_METADATA="hlsFragParsingMetadata",ve.FRAG_PARSED="hlsFragParsed",ve.FRAG_BUFFERED="hlsFragBuffered",ve.FRAG_CHANGED="hlsFragChanged",ve.FPS_DROP="hlsFpsDrop",ve.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",ve.ERROR="hlsError",ve.DESTROYING="hlsDestroying",ve.KEY_LOADING="hlsKeyLoading",ve.KEY_LOADED="hlsKeyLoaded",ve.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",ve.BACK_BUFFER_REACHED="hlsBackBufferReached",ve}({}),O=function(ve){return ve.NETWORK_ERROR="networkError",ve.MEDIA_ERROR="mediaError",ve.KEY_SYSTEM_ERROR="keySystemError",ve.MUX_ERROR="muxError",ve.OTHER_ERROR="otherError",ve}({}),I=function(ve){return ve.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",ve.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",ve.KEY_SYSTEM_NO_SESSION="keySystemNoSession",ve.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",ve.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",ve.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",ve.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",ve.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",ve.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",ve.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",ve.MANIFEST_LOAD_ERROR="manifestLoadError",ve.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",ve.MANIFEST_PARSING_ERROR="manifestParsingError",ve.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",ve.LEVEL_EMPTY_ERROR="levelEmptyError",ve.LEVEL_LOAD_ERROR="levelLoadError",ve.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",ve.LEVEL_PARSING_ERROR="levelParsingError",ve.LEVEL_SWITCH_ERROR="levelSwitchError",ve.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",ve.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",ve.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",ve.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",ve.FRAG_LOAD_ERROR="fragLoadError",ve.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",ve.FRAG_DECRYPT_ERROR="fragDecryptError",ve.FRAG_PARSING_ERROR="fragParsingError",ve.FRAG_GAP="fragGap",ve.REMUX_ALLOC_ERROR="remuxAllocError",ve.KEY_LOAD_ERROR="keyLoadError",ve.KEY_LOAD_TIMEOUT="keyLoadTimeOut",ve.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",ve.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",ve.BUFFER_APPEND_ERROR="bufferAppendError",ve.BUFFER_APPENDING_ERROR="bufferAppendingError",ve.BUFFER_STALLED_ERROR="bufferStalledError",ve.BUFFER_FULL_ERROR="bufferFullError",ve.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",ve.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",ve.INTERNAL_EXCEPTION="internalException",ve.INTERNAL_ABORTED="aborted",ve.UNKNOWN="unknown",ve}({}),R=function(){},M={trace:R,debug:R,log:R,warn:R,info:R,error:R},F=M;function P(ve){var q=self.console[ve];return q?q.bind(self.console,"[".concat(ve,"] >")):R}function X(ve){for(var q=arguments.length,L=new Array(q>1?q-1:0),K=1;K<q;K++)L[K-1]=arguments[K];L.forEach(function(H){F[H]=ve[H]?ve[H].bind(ve):P(H)})}function B(ve,q){if(self.console&&ve===!0||typeof ve=="object"){X(ve,"debug","log","info","warn","error");try{F.log('Debug logs enabled for "'.concat(q,'" in hls.js version ',"1.4.3"))}catch(L){F=M}}else F=M}var j=F,W=/^(\d+)x(\d+)$/,z=/(.+?)=(".*?"|.*?)(?:,|$)/g,V=function(){function ve(q){Object(r.a)(this,ve),typeof q=="string"&&(q=ve.parseAttrList(q));for(var L in q)q.hasOwnProperty(L)&&(L.substring(0,2)==="X-"&&(this.clientAttrs=this.clientAttrs||[],this.clientAttrs.push(L)),this[L]=q[L])}return Object(s.a)(ve,[{key:"decimalInteger",value:function(L){var K=parseInt(this[L],10);return K>Number.MAX_SAFE_INTEGER?Infinity:K}},{key:"hexadecimalInteger",value:function(L){if(this[L]){var K=(this[L]||"0x").slice(2);K=(K.length&1?"0":"")+K;for(var H=new Uint8Array(K.length/2),Z=0;Z<K.length/2;Z++)H[Z]=parseInt(K.slice(Z*2,Z*2+2),16);return H}else return null}},{key:"hexadecimalIntegerAsNumber",value:function(L){var K=parseInt(this[L],16);return K>Number.MAX_SAFE_INTEGER?Infinity:K}},{key:"decimalFloatingPoint",value:function(L){return parseFloat(this[L])}},{key:"optionalFloat",value:function(L,K){var H=this[L];return H?parseFloat(H):K}},{key:"enumeratedString",value:function(L){return this[L]}},{key:"bool",value:function(L){return this[L]==="YES"}},{key:"decimalResolution",value:function(L){var K=W.exec(this[L]);return K===null?void 0:{width:parseInt(K[1],10),height:parseInt(K[2],10)}}}],[{key:"parseAttrList",value:function(L){var K,H={},Z='"';for(z.lastIndex=0;(K=z.exec(L))!==null;){var re=K[2];re.indexOf(Z)===0&&re.lastIndexOf(Z)===re.length-1&&(re=re.slice(1,-1));var Ae=K[1].trim();H[Ae]=re}return H}}]),ve}();function Q(ve){return ve!=="ID"&&ve!=="CLASS"&&ve!=="START-DATE"&&ve!=="DURATION"&&ve!=="END-DATE"&&ve!=="END-ON-NEXT"}function G(ve){return ve==="SCTE35-OUT"||ve==="SCTE35-IN"}var ee=function(){function ve(q,L){if(Object(r.a)(this,ve),this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,L){var K=L.attr;for(var H in K)if(Object.prototype.hasOwnProperty.call(q,H)&&q[H]!==K[H]){j.warn('DATERANGE tag attribute: "'.concat(H,'" does not match for tags with ID: "').concat(q.ID,'"')),this._badValueForSameId=H;break}q=E(new V({}),K,q)}if(this.attr=q,this._startDate=new Date(q["START-DATE"]),"END-DATE"in this.attr){var Z=new Date(this.attr["END-DATE"]);T(Z.getTime())&&(this._endDate=Z)}}return Object(s.a)(ve,[{key:"id",get:function(){return this.attr.ID}},{key:"class",get:function(){return this.attr.CLASS}},{key:"startDate",get:function(){return this._startDate}},{key:"endDate",get:function(){if(this._endDate)return this._endDate;var L=this.duration;return L!==null?new Date(this._startDate.getTime()+L*1e3):null}},{key:"duration",get:function(){if("DURATION"in this.attr){var L=this.attr.decimalFloatingPoint("DURATION");if(T(L))return L}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}},{key:"plannedDuration",get:function(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}},{key:"endOnNext",get:function(){return this.attr.bool("END-ON-NEXT")}},{key:"isValid",get:function(){return!!this.id&&!this._badValueForSameId&&T(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}]),ve}(),ce=Object(s.a)(function ve(){Object(r.a)(this,ve),this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}),be={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"},le=function(){function ve(q){var L;Object(r.a)(this,ve),this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(L={},Object(l.a)(L,be.AUDIO,null),Object(l.a)(L,be.VIDEO,null),Object(l.a)(L,be.AUDIOVIDEO,null),L),this.baseurl=q}return Object(s.a)(ve,[{key:"setByteRange",value:function(L,K){var H=L.split("@",2),Z=[];H.length===1?Z[0]=K?K.byteRangeEndOffset:0:Z[0]=parseInt(H[1]),Z[1]=parseInt(H[0])+Z[0],this._byteRange=Z}},{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=g.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(L){this._url=L}}]),ve}(),Ie=function(ve){Object(o.a)(L,ve);var q=Object(e.a)(L);function L(K,H){var Z;return Object(r.a)(this,L),Z=q.call(this,H),Z._decryptdata=null,Z.rawProgramDateTime=null,Z.programDateTime=null,Z.tagList=[],Z.duration=0,Z.sn=0,Z.levelkeys=void 0,Z.type=void 0,Z.loader=null,Z.keyLoader=null,Z.level=-1,Z.cc=0,Z.startPTS=void 0,Z.endPTS=void 0,Z.startDTS=void 0,Z.endDTS=void 0,Z.start=0,Z.deltaPTS=void 0,Z.maxStartPTS=void 0,Z.minEndPTS=void 0,Z.stats=new ce,Z.urlId=0,Z.data=void 0,Z.bitrateTest=!1,Z.title=null,Z.initSegment=null,Z.endList=void 0,Z.gap=void 0,Z.type=K,Z}return Object(s.a)(L,[{key:"decryptdata",get:function(){var H=this.levelkeys;if(!H&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){var Z=this.levelkeys.identity;if(Z)this._decryptdata=Z.getDecryptData(this.sn);else{var re=Object.keys(this.levelkeys);if(re.length===1)return this._decryptdata=this.levelkeys[re[0]].getDecryptData(this.sn)}}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!T(this.programDateTime))return null;var H=T(this.duration)?this.duration:0;return this.programDateTime+H*1e3}},{key:"encrypted",get:function(){var H;if((H=this._decryptdata)!=null&&H.encrypted)return!0;if(this.levelkeys){var Z=Object.keys(this.levelkeys),re=Z.length;if(re>1||re===1&&this.levelkeys[Z[0]].encrypted)return!0}return!1}},{key:"setKeyFormat",value:function(H){if(this.levelkeys){var Z=this.levelkeys[H];Z&&!this._decryptdata&&(this._decryptdata=Z.getDecryptData(this.sn))}}},{key:"abortRequests",value:function(){var H,Z;(H=this.loader)==null||H.abort(),(Z=this.keyLoader)==null||Z.abort()}},{key:"setElementaryStreamInfo",value:function(H,Z,re,Ae,Te){var Ge=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,lt=this.elementaryStreams,dt=lt[H];if(!dt){lt[H]={startPTS:Z,endPTS:re,startDTS:Ae,endDTS:Te,partial:Ge};return}dt.startPTS=Math.min(dt.startPTS,Z),dt.endPTS=Math.max(dt.endPTS,re),dt.startDTS=Math.min(dt.startDTS,Ae),dt.endDTS=Math.max(dt.endDTS,Te)}},{key:"clearElementaryStreamInfo",value:function(){var H=this.elementaryStreams;H[be.AUDIO]=null,H[be.VIDEO]=null,H[be.AUDIOVIDEO]=null}}]),L}(le),ke=function(ve){Object(o.a)(L,ve);var q=Object(e.a)(L);function L(K,H,Z,re,Ae){var Te;Object(r.a)(this,L),Te=q.call(this,Z),Te.fragOffset=0,Te.duration=0,Te.gap=!1,Te.independent=!1,Te.relurl=void 0,Te.fragment=void 0,Te.index=void 0,Te.stats=new ce,Te.duration=K.decimalFloatingPoint("DURATION"),Te.gap=K.bool("GAP"),Te.independent=K.bool("INDEPENDENT"),Te.relurl=K.enumeratedString("URI"),Te.fragment=H,Te.index=re;var Ge=K.enumeratedString("BYTERANGE");return Ge&&Te.setByteRange(Ge,Ae),Ae&&(Te.fragOffset=Ae.fragOffset+Ae.duration),Te}return Object(s.a)(L,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var H=this.elementaryStreams;return!!(H.audio||H.video||H.audiovideo)}}]),L}(le),Re=10,Qe=function(){function ve(q){Object(r.a)(this,ve),this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=q}return Object(s.a)(ve,[{key:"reloaded",value:function(L){if(!L){this.advanced=!0,this.updated=!0;return}var K=this.lastPartSn-L.lastPartSn,H=this.lastPartIndex-L.lastPartIndex;this.updated=this.endSN!==L.endSN||!!H||!!K,this.advanced=this.endSN>L.endSN||K>0||K===0&&H>0,this.updated||this.advanced?this.misses=Math.floor(L.misses*.6):this.misses=L.misses+1,this.availabilityDelay=L.availabilityDelay}},{key:"hasProgramDateTime",get:function(){return this.fragments.length?T(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||Re}},{key:"drift",get:function(){var L=this.driftEndTime-this.driftStartTime;if(L>0){var K=this.driftEnd-this.driftStart;return K*1e3/L}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var L;return(L=this.partList)!=null&&L.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var L;return(L=this.fragments)!=null&&L.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var L;return(L=this.partList)!=null&&L.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var L;return(L=this.partList)!=null&&L.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),ve}();function We(ve){return Uint8Array.from(atob(ve),function(q){return q.charCodeAt(0)})}function ot(ve){var q=st(ve).subarray(0,16),L=new Uint8Array(16);return L.set(q,16-q.length),L}function Oe(ve){var q=function(K,H,Z){var re=K[H];K[H]=K[Z],K[Z]=re};q(ve,0,3),q(ve,1,2),q(ve,4,5),q(ve,6,7)}function oe(ve){var q=ve.split(":"),L=null;if(q[0]==="data"&&q.length===2){var K=q[1].split(";"),H=K[K.length-1].split(",");if(H.length===2){var Z=H[0]==="base64",re=H[1];Z?(K.splice(-1,1),L=We(re)):L=ot(re)}}return L}function st(ve){return Uint8Array.from(unescape(encodeURIComponent(ve)),function(q){return q.charCodeAt(0)})}var he={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},J={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function Y(ve){switch(ve){case J.FAIRPLAY:return he.FAIRPLAY;case J.PLAYREADY:return he.PLAYREADY;case J.WIDEVINE:return he.WIDEVINE;case J.CLEARKEY:return he.CLEARKEY}}var $={WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function fe(ve){if(ve===$.WIDEVINE)return he.WIDEVINE}function we(ve){switch(ve){case he.FAIRPLAY:return J.FAIRPLAY;case he.PLAYREADY:return J.PLAYREADY;case he.WIDEVINE:return J.WIDEVINE;case he.CLEARKEY:return J.CLEARKEY}}function Ne(ve){var q=ve.drmSystems,L=ve.widevineLicenseUrl,K=q?[he.FAIRPLAY,he.WIDEVINE,he.PLAYREADY,he.CLEARKEY].filter(function(H){return!!q[H]}):[];return!K[he.WIDEVINE]&&L&&K.push(he.WIDEVINE),K}var Ee=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function de(ve,q,L,K){var H;switch(ve){case he.FAIRPLAY:H=["cenc","sinf"];break;case he.WIDEVINE:case he.PLAYREADY:H=["cenc"];break;case he.CLEARKEY:H=["cenc","keyids"];break;default:throw new Error("Unknown key-system: ".concat(ve))}return me(H,q,L,K)}function me(ve,q,L,K){var H={initDataTypes:ve,persistentState:K.persistentState||"not-allowed",distinctiveIdentifier:K.distinctiveIdentifier||"not-allowed",sessionTypes:K.sessionTypes||[K.sessionType||"temporary"],audioCapabilities:q.map(function(Z){return{contentType:'audio/mp4; codecs="'.concat(Z,'"'),robustness:K.audioRobustness||"",encryptionScheme:K.audioEncryptionScheme||null}}),videoCapabilities:L.map(function(Z){return{contentType:'video/mp4; codecs="'.concat(Z,'"'),robustness:K.videoRobustness||"",encryptionScheme:K.videoEncryptionScheme||null}})};return[H]}function Le(ve,q,L){return Uint8Array.prototype.slice?ve.slice(q,L):new Uint8Array(Array.prototype.slice.call(ve,q,L))}var tt=function(q,L){return L+10<=q.length&&(q[L]===73&&q[L+1]===68&&q[L+2]===51&&(q[L+3]<255&&q[L+4]<255&&(q[L+6]<128&&q[L+7]<128&&q[L+8]<128&&q[L+9]<128)))},At=function(q,L){return L+10<=q.length&&(q[L]===51&&q[L+1]===68&&q[L+2]===73&&(q[L+3]<255&&q[L+4]<255&&(q[L+6]<128&&q[L+7]<128&&q[L+8]<128&&q[L+9]<128)))},ht=function(q,L){for(var K=L,H=0;tt(q,L);){H+=10;var Z=Ke(q,L+6);H+=Z,At(q,L+10)&&(H+=10),L+=H}return H>0?q.subarray(K,K+H):void 0},Ke=function(q,L){var K=0;return K=(q[L]&127)<<21,K|=(q[L+1]&127)<<14,K|=(q[L+2]&127)<<7,K|=q[L+3]&127,K},Jt=function(q,L){return tt(q,L)&&Ke(q,L+6)+10<=q.length-L},ct=function(q){for(var L=zt(q),K=0;K<L.length;K++){var H=L[K];if(Gt(H))return te(H)}return},Gt=function(q){return q&&q.key==="PRIV"&&q.info==="com.apple.streaming.transportStreamTimestamp"},dr=function(q){var L=String.fromCharCode(q[0],q[1],q[2],q[3]),K=Ke(q,4),H=10;return{type:L,size:K,data:q.subarray(H,H+K)}},zt=function(q){for(var L=0,K=[];tt(q,L);){var H=Ke(q,L+6);L+=10;for(var Z=L+H;L+8<Z;){var re=dr(q.subarray(L)),Ae=kt(re);Ae&&K.push(Ae),L+=re.size+10}At(q,L)&&(L+=10)}return K},kt=function(q){return q.type==="PRIV"?Vt(q):q.type[0]==="W"?pe(q):Xe(q)},Vt=function(q){if(q.size<2)return;var L=$e(q.data,!0),K=new Uint8Array(q.data.subarray(L.length+1));return{key:q.type,info:L,data:K.buffer}},Xe=function(q){if(q.size<2)return;if(q.type==="TXXX"){var L=1,K=$e(q.data.subarray(L),!0);L+=K.length+1;var H=$e(q.data.subarray(L));return{key:q.type,info:K,data:H}}var Z=$e(q.data.subarray(1));return{key:q.type,data:Z}},pe=function(q){if(q.type==="WXXX"){if(q.size<2)return;var L=1,K=$e(q.data.subarray(L),!0);L+=K.length+1;var H=$e(q.data.subarray(L));return{key:q.type,info:K,data:H}}var Z=$e(q.data);return{key:q.type,data:Z}},te=function(q){if(q.data.byteLength===8){var L=new Uint8Array(q.data),K=L[3]&1,H=(L[4]<<23)+(L[5]<<15)+(L[6]<<7)+L[7];return H/=45,K&&(H+=4772185884e-2),Math.round(H)}return},$e=function(q){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,K=ae();if(K){var H=K.decode(q);if(L){var Z=H.indexOf("\0");return Z!==-1?H.substring(0,Z):H}return H.replace(/\0/g,"")}for(var re=q.length,Ae,Te,Ge,lt="",dt=0;dt<re;){if(Ae=q[dt++],Ae===0&&L)return lt;if(Ae===0||Ae===3)continue;switch(Ae>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:lt+=String.fromCharCode(Ae);break;case 12:case 13:Te=q[dt++],lt+=String.fromCharCode((Ae&31)<<6|Te&63);break;case 14:Te=q[dt++],Ge=q[dt++],lt+=String.fromCharCode((Ae&15)<<12|(Te&63)<<6|(Ge&63)<<0);break}}return lt},He;function ae(){return!He&&typeof self.TextDecoder!="undefined"&&(He=new self.TextDecoder("utf-8")),He}var ft={hexDump:function(q){for(var L="",K=0;K<q.length;K++){var H=q[K].toString(16);H.length<2&&(H="0"+H),L+=H}return L}},Mt=Math.pow(2,32)-1,mt=[].push,or={video:1,audio:2,id3:3,text:4};function vr(ve){return String.fromCharCode.apply(null,ve)}function fn(ve,q){var L=ve[q]<<8|ve[q+1];return L<0?65536+L:L}function sr(ve,q){var L=Ir(ve,q);return L<0?4294967296+L:L}function Ir(ve,q){return ve[q]<<24|ve[q+1]<<16|ve[q+2]<<8|ve[q+3]}function lr(ve,q,L){ve[q]=L>>24,ve[q+1]=L>>16&255,ve[q+2]=L>>8&255,ve[q+3]=L&255}function Wt(ve,q){var L=[];if(!q.length)return L;for(var K=ve.byteLength,H=0;H<K;){var Z=sr(ve,H),re=vr(ve.subarray(H+4,H+8)),Ae=Z>1?H+Z:K;if(re===q[0])if(q.length===1)L.push(ve.subarray(H+8,Ae));else{var Te=Wt(ve.subarray(H+8,Ae),q.slice(1));Te.length&&mt.apply(L,Te)}H=Ae}return L}function xt(ve){var q=[],L=ve[0],K=8,H=sr(ve,K);K+=4;var Z=0,re=0;L===0?K+=8:K+=16,K+=2;var Ae=ve.length+re,Te=fn(ve,K);K+=2;for(var Ge=0;Ge<Te;Ge++){var lt=K,dt=sr(ve,lt);lt+=4;var Kt=dt&2147483647,Er=(dt&2147483648)>>>31;if(Er===1)return j.warn("SIDX has hierarchical references (not supported)"),null;var br=sr(ve,lt);lt+=4,q.push({referenceSize:Kt,subsegmentDuration:br,info:{duration:br/H,start:Ae,end:Ae+Kt-1}}),Ae+=Kt,lt+=4,K=lt}return{earliestPresentationTime:Z,timescale:H,version:L,referencesCount:Te,references:q}}function rn(ve){for(var q=[],L=Wt(ve,["moov","trak"]),K=0;K<L.length;K++){var H=L[K],Z=Wt(H,["tkhd"])[0];if(Z){var re=Z[0],Ae=re===0?12:20,Te=sr(Z,Ae),Ge=Wt(H,["mdia","mdhd"])[0];if(Ge){re=Ge[0],Ae=re===0?12:20;var lt=sr(Ge,Ae),dt=Wt(H,["mdia","hdlr"])[0];if(dt){var Kt=vr(dt.subarray(8,12)),Er={soun:be.AUDIO,vide:be.VIDEO}[Kt];if(Er){var br=Wt(H,["mdia","minf","stbl","stsd"])[0],jr=void 0;br&&(jr=vr(br.subarray(12,16))),q[Te]={timescale:lt,type:Er},q[Er]={timescale:lt,id:Te,codec:jr}}}}}}var Kr=Wt(ve,["moov","mvex","trex"]);return Kr.forEach(function(In){var kn=sr(In,4),Gn=q[kn];Gn&&(Gn.default={duration:sr(In,12),flags:sr(In,20)})}),q}function Dn(ve,q){if(!ve||!q)return ve;var L=q.keyId;if(L&&q.isCommonEncryption){var K=Wt(ve,["moov","trak"]);K.forEach(function(H){var Z=Wt(H,["mdia","minf","stbl","stsd"])[0],re=Z.subarray(8),Ae=Wt(re,["enca"]),Te=Ae.length>0;Te||(Ae=Wt(re,["encv"])),Ae.forEach(function(Ge){var lt=Te?Ge.subarray(28):Ge.subarray(78),dt=Wt(lt,["sinf"]);dt.forEach(function(Kt){var Er=Xn(Kt);if(Er){var br=Er.subarray(8,24);br.some(function(jr){return jr!==0})||(j.log("[eme] Patching keyId in 'enc".concat(Te?"a":"v",">sinf>>tenc' box: ").concat(ft.hexDump(br)," -> ").concat(ft.hexDump(L))),Er.set(L,8))}})})})}return ve}function Xn(ve){var q=Wt(ve,["schm"])[0];if(q){var L=vr(q.subarray(4,8));if(L==="cbcs"||L==="cenc")return Wt(ve,["schi","tenc"])[0]}return j.error("[eme] missing 'schm' box"),null}function ri(ve,q){return Wt(q,["moof","traf"]).reduce(function(L,K){var H=Wt(K,["tfdt"])[0],Z=H[0],re=Wt(K,["tfhd"]).reduce(function(Ae,Te){var Ge=sr(Te,4),lt=ve[Ge];if(lt){var dt=sr(H,4);if(Z===1){if(dt===Mt)return j.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),Ae;dt*=Mt+1,dt+=sr(H,8)}var Kt=lt.timescale||9e4,Er=dt/Kt;if(isFinite(Er)&&(Ae===null||Er<Ae))return Er}return Ae},null);return re!==null&&isFinite(re)&&(L===null||re<L)?re:L},null)}function Ui(ve,q){for(var L=0,K=0,H=0,Z=Wt(ve,["moof","traf"]),re=0;re<Z.length;re++){var Ae=Z[re],Te=Wt(Ae,["tfhd"])[0],Ge=sr(Te,4),lt=q[Ge];if(!lt)continue;var dt=lt.default,Kt=sr(Te,0)|(dt==null?void 0:dt.flags),Er=dt==null?void 0:dt.duration;Kt&8&&(Kt&2?Er=sr(Te,12):Er=sr(Te,8));for(var br=lt.timescale||9e4,jr=Wt(Ae,["trun"]),Kr=0;Kr<jr.length;Kr++){if(L=Bn(jr[Kr]),!L&&Er){var In=sr(jr[Kr],4);L=Er*In}lt.type===be.VIDEO?K+=L/br:lt.type===be.AUDIO&&(H+=L/br)}}if(K===0&&H===0){for(var kn=0,Gn=Wt(ve,["sidx"]),bi=0;bi<Gn.length;bi++){var ua=xt(Gn[bi]);ua!=null&&ua.references&&(kn+=ua.references.reduce(function(Xi,ta){return Xi+ta.info.duration||0},0))}return kn}return K||H}function Bn(ve){var q=sr(ve,0),L=8;q&1&&(L+=4),q&4&&(L+=4);for(var K=0,H=sr(ve,4),Z=0;Z<H;Z++){if(q&256){var re=sr(ve,L);K+=re,L+=4}q&512&&(L+=4),q&1024&&(L+=4),q&2048&&(L+=4)}return K}function Jn(ve,q,L){Wt(q,["moof","traf"]).forEach(function(K){Wt(K,["tfhd"]).forEach(function(H){var Z=sr(H,4),re=ve[Z];if(!re)return;var Ae=re.timescale||9e4;Wt(K,["tfdt"]).forEach(function(Te){var Ge=Te[0],lt=sr(Te,4);if(Ge===0)lt-=L*Ae,lt=Math.max(lt,0),lr(Te,4,lt);else{lt*=Math.pow(2,32),lt+=sr(Te,8),lt-=L*Ae,lt=Math.max(lt,0);var dt=Math.floor(lt/(Mt+1)),Kt=Math.floor(lt%(Mt+1));lr(Te,4,dt),lr(Te,8,Kt)}})})})}function Xt(ve){var q={valid:null,remainder:null},L=Wt(ve,["moof"]);if(L){if(L.length<2)return q.remainder=ve,q}else return q;var K=L[L.length-1];return q.valid=Le(ve,0,K.byteOffset-8),q.remainder=Le(ve,K.byteOffset-8),q}function _t(ve,q){var L=new Uint8Array(ve.length+q.length);return L.set(ve),L.set(q,ve.length),L}function Fe(ve,q){var L=[],K=q.samples,H=q.timescale,Z=q.id,re=!1,Ae=Wt(K,["moof"]);return Ae.map(function(Te){var Ge=Te.byteOffset-8,lt=Wt(Te,["traf"]);lt.map(function(dt){var Kt=Wt(dt,["tfdt"]).map(function(Er){var br=Er[0],jr=sr(Er,4);return br===1&&(jr*=Math.pow(2,32),jr+=sr(Er,8)),jr/H})[0];return Kt!==void 0&&(ve=Kt),Wt(dt,["tfhd"]).map(function(Er){var br=sr(Er,4),jr=sr(Er,0)&16777215,Kr=(jr&1)!==0,In=(jr&2)!==0,kn=(jr&8)!==0,Gn=0,bi=(jr&16)!==0,ua=0,Xi=(jr&32)!==0,ta=8;br===Z&&(Kr&&(ta+=8),In&&(ta+=4),kn&&(Gn=sr(Er,ta),ta+=4),bi&&(ua=sr(Er,ta),ta+=4),Xi&&(ta+=4),q.type==="video"&&(re=Pe(q.codec)),Wt(dt,["trun"]).map(function(Pa){var Ya=Pa[0],Ba=sr(Pa,0)&16777215,Sa=(Ba&1)!==0,Go=0,Ls=(Ba&4)!==0,ys=(Ba&256)!==0,bs=0,Fs=(Ba&512)!==0,ws=0,Ws=(Ba&1024)!==0,xe=(Ba&2048)!==0,Ze=0,wt=sr(Pa,4),ir=8;Sa&&(Go=sr(Pa,ir),ir+=4),Ls&&(ir+=4);for(var Pr=Go+Ge,nn=0;nn<wt;nn++){if(ys?(bs=sr(Pa,ir),ir+=4):bs=Gn,Fs?(ws=sr(Pa,ir),ir+=4):ws=ua,Ws&&(ir+=4),xe&&(Ya===0?Ze=sr(Pa,ir):Ze=Ir(Pa,ir),ir+=4),q.type===be.VIDEO)for(var Ue=0;Ue<ws;){var ie=sr(K,Pr);if(Pr+=4,Be(re,K[Pr])){var Ce=K.subarray(Pr,Pr+ie);nt(Ce,re?2:1,ve+Ze/H,L)}Pr+=ie,Ue+=ie+4}ve+=bs/H}}))})})}),L}function Pe(ve){if(!ve)return!1;var q=ve.indexOf("."),L=q<0?ve:ve.substring(0,q);return L==="hvc1"||L==="hev1"||L==="dvh1"||L==="dvhe"}function Be(ve,q){if(ve){var L=q>>1&63;return L===39||L===40}else{var K=q&31;return K===6}}function nt(ve,q,L,K){var H=vt(ve),Z=0;Z+=q;for(var re=0,Ae=0,Te=!1,Ge=0;Z<H.length;){re=0;do{if(Z>=H.length)break;Ge=H[Z++],re+=Ge}while(Ge===255);Ae=0;do{if(Z>=H.length)break;Ge=H[Z++],Ae+=Ge}while(Ge===255);var lt=H.length-Z;if(!Te&&re===4&&Z<H.length){Te=!0;var dt=H[Z++];if(dt===181){var Kt=fn(H,Z);if(Z+=2,Kt===49){var Er=sr(H,Z);if(Z+=4,Er===1195456820){var br=H[Z++];if(br===3){var jr=H[Z++],Kr=31&jr,In=64&jr,kn=In?2+Kr*3:0,Gn=new Uint8Array(kn);if(In){Gn[0]=jr;for(var bi=1;bi<kn;bi++)Gn[bi]=H[Z++]}K.push({type:br,payloadType:re,pts:L,bytes:Gn})}}}}}else if(re===5&&Ae<lt){if(Te=!0,Ae>16){for(var ua=[],Xi=0;Xi<16;Xi++){var ta=H[Z++].toString(16);ua.push(ta.length==1?"0"+ta:ta),(Xi===3||Xi===5||Xi===7||Xi===9)&&ua.push("-")}for(var Pa=Ae-16,Ya=new Uint8Array(Pa),Ba=0;Ba<Pa;Ba++)Ya[Ba]=H[Z++];K.push({payloadType:re,pts:L,uuid:ua.join(""),userData:$e(Ya),userDataBytes:Ya})}}else if(Ae<lt)Z+=Ae;else if(Ae>lt)break}}function vt(ve){for(var q=ve.byteLength,L=[],K=1;K<q-2;)ve[K]===0&&ve[K+1]===0&&ve[K+2]===3?(L.push(K+2),K+=2):K++;if(L.length===0)return ve;var H=q-L.length,Z=new Uint8Array(H),re=0;for(K=0;K<H;re++,K++)re===L[0]&&(re++,L.shift()),Z[K]=ve[re];return Z}function ar(ve){var q=ve[0],L="",K="",H=0,Z=0,re=0,Ae=0,Te=0,Ge=0;if(q===0){for(;vr(ve.subarray(Ge,Ge+1))!=="\0";)L+=vr(ve.subarray(Ge,Ge+1)),Ge+=1;for(L+=vr(ve.subarray(Ge,Ge+1)),Ge+=1;vr(ve.subarray(Ge,Ge+1))!=="\0";)K+=vr(ve.subarray(Ge,Ge+1)),Ge+=1;K+=vr(ve.subarray(Ge,Ge+1)),Ge+=1,H=sr(ve,12),Z=sr(ve,16),Ae=sr(ve,20),Te=sr(ve,24),Ge=28}else if(q===1){Ge+=4,H=sr(ve,Ge),Ge+=4;var lt=sr(ve,Ge);Ge+=4;var dt=sr(ve,Ge);for(Ge+=4,re=Math.pow(2,32)*lt+dt,Number.isSafeInteger(re)||(re=Number.MAX_SAFE_INTEGER,j.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),Ae=sr(ve,Ge),Ge+=4,Te=sr(ve,Ge),Ge+=4;vr(ve.subarray(Ge,Ge+1))!=="\0";)L+=vr(ve.subarray(Ge,Ge+1)),Ge+=1;for(L+=vr(ve.subarray(Ge,Ge+1)),Ge+=1;vr(ve.subarray(Ge,Ge+1))!=="\0";)K+=vr(ve.subarray(Ge,Ge+1)),Ge+=1;K+=vr(ve.subarray(Ge,Ge+1)),Ge+=1}var Kt=ve.subarray(Ge,ve.byteLength);return{schemeIdUri:L,value:K,timeScale:H,presentationTime:re,presentationTimeDelta:Z,eventDuration:Ae,id:Te,payload:Kt}}function kr(ve){for(var q=arguments.length,L=new Array(q>1?q-1:0),K=1;K<q;K++)L[K-1]=arguments[K];for(var H=L.length,Z=8,re=H;re--;)Z+=L[re].byteLength;var Ae=new Uint8Array(Z);for(Ae[0]=Z>>24&255,Ae[1]=Z>>16&255,Ae[2]=Z>>8&255,Ae[3]=Z&255,Ae.set(ve,4),re=0,Z=8;re<H;re++)Ae.set(L[re],Z),Z+=L[re].byteLength;return Ae}function mn(ve,q,L){if(ve.byteLength!==16)throw new RangeError("Invalid system id");var K,H;if(q){K=1,H=new Uint8Array(q.length*16);for(var Z=0;Z<q.length;Z++){var re=q[Z];if(re.byteLength!==16)throw new RangeError("Invalid key");H.set(re,Z*16)}}else K=0,H=new Uint8Array;var Ae;K>0?(Ae=new Uint8Array(4),q.length>0&&new DataView(Ae.buffer).setUint32(0,q.length,!1)):Ae=new Uint8Array;var Te=new Uint8Array(4);return L&&L.byteLength>0&&new DataView(Te.buffer).setUint32(0,L.byteLength,!1),kr([112,115,115,104],new Uint8Array([K,0,0,0]),ve,Ae,H,Te,L||new Uint8Array)}function Zn(ve){if(!(ve instanceof ArrayBuffer)||ve.byteLength<32)return null;var q={version:0,systemId:"",kids:null,data:null},L=new DataView(ve),K=L.getUint32(0);if(ve.byteLength!==K&&K>44)return null;var H=L.getUint32(4);if(H!==1886614376)return null;if(q.version=L.getUint32(8)>>>24,q.version>1)return null;q.systemId=ft.hexDump(new Uint8Array(ve,12,16));var Z=L.getUint32(28);if(q.version===0){if(K-32<Z)return null;q.data=new Uint8Array(ve,32,Z)}else if(q.version===1){q.kids=[];for(var re=0;re<Z;re++)q.kids.push(new Uint8Array(ve,32+re*16,16))}return q}var ni={},ur=function(){function ve(q,L,K){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1],Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;Object(r.a)(this,ve),this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=q,this.uri=L,this.keyFormat=K,this.keyFormatVersions=H,this.iv=Z,this.encrypted=q?q!=="NONE":!1,this.isCommonEncryption=this.encrypted&&q!=="AES-128"}return Object(s.a)(ve,[{key:"isSupported",value:function(){if(this.method){if(this.method==="AES-128"||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case J.FAIRPLAY:case J.WIDEVINE:case J.PLAYREADY:case J.CLEARKEY:return["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}},{key:"getDecryptData",value:function(L){if(!this.encrypted||!this.uri)return null;if(this.method==="AES-128"&&this.uri&&!this.iv){typeof L!="number"&&(this.method==="AES-128"&&!this.iv&&j.warn('missing IV for initialization segment with method="'.concat(this.method,'" - compliance issue')),L=0);var K=Nt(L),H=new ve(this.method,this.uri,"identity",this.keyFormatVersions,K);return H}var Z=oe(this.uri);if(Z)switch(this.keyFormat){case J.WIDEVINE:this.pssh=Z,Z.length>=22&&(this.keyId=Z.subarray(Z.length-22,Z.length-6));break;case J.PLAYREADY:{var re=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=mn(re,null,Z);var Ae=new Uint16Array(Z.buffer,Z.byteOffset,Z.byteLength/2),Te=String.fromCharCode.apply(null,Array.from(Ae)),Ge=Te.substring(Te.indexOf("<"),Te.length),lt=new DOMParser,dt=lt.parseFromString(Ge,"text/xml"),Kt=dt.getElementsByTagName("KID")[0];if(Kt){var Er=Kt.childNodes[0]?Kt.childNodes[0].nodeValue:Kt.getAttribute("VALUE");if(Er){var br=We(Er).subarray(0,16);Oe(br),this.keyId=br}}break}default:{var jr=Z.subarray(0,16);if(jr.length!==16){var Kr=new Uint8Array(16);Kr.set(jr,16-jr.length),jr=Kr}this.keyId=jr;break}}if(!this.keyId||this.keyId.byteLength!==16){var In=ni[this.uri];if(!In){var kn=Object.keys(ni).length%Number.MAX_SAFE_INTEGER;In=new Uint8Array(16);var Gn=new DataView(In.buffer,12,4);Gn.setUint32(0,kn),ni[this.uri]=In}this.keyId=In}return this}}],[{key:"clearKeyUriToKeyIdMap",value:function(){ni={}}}]),ve}();function Nt(ve){for(var q=new Uint8Array(16),L=12;L<16;L++)q[L]=ve>>8*(15-L)&255;return q}var bt=/\{\$([a-zA-Z0-9-_]+)\}/g;function gr(ve){return bt.test(ve)}function Yt(ve,q,L){if(ve.variableList!==null||ve.hasVariableRefs)for(var K=L.length;K--;){var H=L[K],Z=q[H];Z&&(q[H]=Pt(ve,Z))}}function Pt(ve,q){if(ve.variableList!==null||ve.hasVariableRefs){var L=ve.variableList;return q.replace(bt,function(K){var H=K.substring(2,K.length-1),Z=L==null?void 0:L[H];return Z===void 0?(ve.playlistParsingError||(ve.playlistParsingError=new Error('Missing preceding EXT-X-DEFINE tag for Variable Reference: "'.concat(H,'"'))),K):Z})}return q}function rr(ve,q,L){var K=ve.variableList;K||(ve.variableList=K={});var H,Z;if("QUERYPARAM"in q){H=q.QUERYPARAM;try{var re=new self.URL(L).searchParams;if(re.has(H))Z=re.get(H);else throw new Error('"'.concat(H,'" does not match any query parameter in URI: "').concat(L,'"'))}catch(Ae){ve.playlistParsingError||(ve.playlistParsingError=new Error("EXT-X-DEFINE QUERYPARAM: ".concat(Ae.message)))}}else H=q.NAME,Z=q.VALUE;H in K?ve.playlistParsingError||(ve.playlistParsingError=new Error('EXT-X-DEFINE duplicate Variable Name declarations: "'.concat(H,'"'))):K[H]=Z||""}function Rt(ve,q,L){var K=q.IMPORT;if(L&&K in L){var H=ve.variableList;H||(ve.variableList=H={}),H[K]=L[K]}else ve.playlistParsingError||(ve.playlistParsingError=new Error('EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "'.concat(K,'"')))}function qt(){return typeof self=="undefined"?void 0:self.MediaSource||self.WebKitMediaSource}var Yr={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,av01:!0,drac:!0,dva1:!0,dvav:!0,dvh1:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0},text:{stpp:!0,wvtt:!0}},Mr=qt();function Dr(ve,q){var L=Yr[q];return!!L&&L[ve.slice(0,4)]===!0}function un(ve,q){var L;return(L=Mr==null?void 0:Mr.isTypeSupported("".concat(q||"video",'/mp4;codecs="').concat(ve,'"')))!=null?L:!1}var wn=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,ai=/#EXT-X-MEDIA:(.*)/g,ei=/^#EXT(?:INF|-X-TARGETDURATION):/m,gi=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),Ii=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),ki=function(){function ve(){Object(r.a)(this,ve)}return Object(s.a)(ve,null,[{key:"findGroup",value:function(L,K){for(var H=0;H<L.length;H++){var Z=L[H];if(Z.id===K)return Z}}},{key:"convertAVC1ToAVCOTI",value:function(L){var K=L.split(".");if(K.length>2){var H=K.shift()+".";return H+=parseInt(K.shift()).toString(16),H+=("000"+parseInt(K.shift()).toString(16)).slice(-4),H}return L}},{key:"resolve",value:function(L,K){return g.buildAbsoluteURL(K,L,{alwaysNormalize:!0})}},{key:"isMediaPlaylist",value:function(L){return ei.test(L)}},{key:"parseMasterPlaylist",value:function(L,K){var H=gr(L),Z={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:H},re=[];wn.lastIndex=0;for(var Ae;(Ae=wn.exec(L))!=null;)if(Ae[1]){var Te,Ge=new V(Ae[1]);Yt(Z,Ge,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);var lt=Pt(Z,Ae[2]),dt={attrs:Ge,bitrate:Ge.decimalInteger("AVERAGE-BANDWIDTH")||Ge.decimalInteger("BANDWIDTH"),name:Ge.NAME,url:ve.resolve(lt,K)},Kt=Ge.decimalResolution("RESOLUTION");Kt&&(dt.width=Kt.width,dt.height=Kt.height),Me((Ge.CODECS||"").split(/[ ,]+/).filter(function(ua){return ua}),dt),dt.videoCodec&&dt.videoCodec.indexOf("avc1")!==-1&&(dt.videoCodec=ve.convertAVC1ToAVCOTI(dt.videoCodec)),(Te=dt.unknownCodecs)!=null&&Te.length||re.push(dt),Z.levels.push(dt)}else if(Ae[3]){var Er=Ae[3],br=Ae[4];switch(Er){case"SESSION-DATA":{var jr=new V(br);Yt(Z,jr,["DATA-ID","LANGUAGE","VALUE","URI"]);var Kr=jr["DATA-ID"];Kr&&(Z.sessionData===null&&(Z.sessionData={}),Z.sessionData[Kr]=jr);break}case"SESSION-KEY":{var In=Qi(br,K,Z);In.encrypted&&In.isSupported()?(Z.sessionKeys===null&&(Z.sessionKeys=[]),Z.sessionKeys.push(In)):j.warn('[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "'.concat(br,'"'));break}case"DEFINE":{{var kn=new V(br);Yt(Z,kn,["NAME","VALUE","QUERYPARAM"]),rr(Z,kn,K)}break}case"CONTENT-STEERING":{var Gn=new V(br);Yt(Z,Gn,["SERVER-URI","PATHWAY-ID"]),Z.contentSteering={uri:ve.resolve(Gn["SERVER-URI"],K),pathwayId:Gn["PATHWAY-ID"]||"."};break}case"START":{Z.startTimeOffset=it(br);break}}}var bi=re.length>0&&re.length<Z.levels.length;return Z.levels=bi?re:Z.levels,Z.levels.length===0&&(Z.playlistParsingError=new Error("no levels found in manifest")),Z}},{key:"parseMasterPlaylistMedia",value:function(L,K,H){var Z,re={},Ae=H.levels,Te={AUDIO:Ae.map(function(Kr){return{id:Kr.attrs.AUDIO,audioCodec:Kr.audioCodec}}),SUBTITLES:Ae.map(function(Kr){return{id:Kr.attrs.SUBTITLES,textCodec:Kr.textCodec}}),"CLOSED-CAPTIONS":[]},Ge=0;for(ai.lastIndex=0;(Z=ai.exec(L))!==null;){var lt=new V(Z[1]),dt=lt.TYPE;if(dt){var Kt=Te[dt],Er=re[dt]||[];re[dt]=Er,Yt(H,lt,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);var br={attrs:lt,bitrate:0,id:Ge++,groupId:lt["GROUP-ID"]||"",instreamId:lt["INSTREAM-ID"],name:lt.NAME||lt.LANGUAGE||"",type:dt,default:lt.bool("DEFAULT"),autoselect:lt.bool("AUTOSELECT"),forced:lt.bool("FORCED"),lang:lt.LANGUAGE,url:lt.URI?ve.resolve(lt.URI,K):""};if(Kt!=null&&Kt.length){var jr=ve.findGroup(Kt,br.groupId)||Kt[0];je(br,jr,"audioCodec"),je(br,jr,"textCodec")}Er.push(br)}}return re}},{key:"parseLevelPlaylist",value:function(L,K,H,Z,re,Ae){var Te=new Qe(K),Ge=Te.fragments,lt=null,dt=0,Kt=0,Er=0,br=0,jr=null,Kr=new Ie(Z,K),In,kn,Gn,bi=-1,ua=!1;for(gi.lastIndex=0,Te.m3u8=L,Te.hasVariableRefs=gr(L);(In=gi.exec(L))!==null;){ua&&(ua=!1,Kr=new Ie(Z,K),Kr.start=Er,Kr.sn=dt,Kr.cc=br,Kr.level=H,lt&&(Kr.initSegment=lt,Kr.rawProgramDateTime=lt.rawProgramDateTime,lt.rawProgramDateTime=null));var Xi=In[1];if(Xi){Kr.duration=parseFloat(Xi);var ta=(" "+In[2]).slice(1);Kr.title=ta||null,Kr.tagList.push(ta?["INF",Xi,ta]:["INF",Xi])}else if(In[3]){if(T(Kr.duration)){Kr.start=Er,Gn&&at(Kr,Gn,Te),Kr.sn=dt,Kr.level=H,Kr.cc=br,Kr.urlId=re,Ge.push(Kr);var Pa=(" "+In[3]).slice(1);Kr.relurl=Pt(Te,Pa),rt(Kr,jr),jr=Kr,Er+=Kr.duration,dt++,Kt=0,ua=!0}}else if(In[4]){var Ya=(" "+In[4]).slice(1);jr?Kr.setByteRange(Ya,jr):Kr.setByteRange(Ya)}else if(In[5])Kr.rawProgramDateTime=(" "+In[5]).slice(1),Kr.tagList.push(["PROGRAM-DATE-TIME",Kr.rawProgramDateTime]),bi===-1&&(bi=Ge.length);else{if(In=In[0].match(Ii),!In){j.warn("No matches on slow regex match for level playlist!");continue}for(kn=1;kn<In.length&&!(typeof In[kn]!="undefined");kn++);var Ba=(" "+In[kn]).slice(1),Sa=(" "+In[kn+1]).slice(1),Go=In[kn+2]?(" "+In[kn+2]).slice(1):"";switch(Ba){case"PLAYLIST-TYPE":Te.type=Sa.toUpperCase();break;case"MEDIA-SEQUENCE":dt=Te.startSN=parseInt(Sa);break;case"SKIP":{var Ls=new V(Sa);Yt(Te,Ls,["RECENTLY-REMOVED-DATERANGES"]);var ys=Ls.decimalInteger("SKIPPED-SEGMENTS");if(T(ys)){Te.skippedSegments=ys;for(var bs=ys;bs--;)Ge.unshift(null);dt+=ys}var Fs=Ls.enumeratedString("RECENTLY-REMOVED-DATERANGES");Fs&&(Te.recentlyRemovedDateranges=Fs.split(" "));break}case"TARGETDURATION":Te.targetduration=Math.max(parseInt(Sa),1);break;case"VERSION":Te.version=parseInt(Sa);break;case"EXTM3U":break;case"ENDLIST":Te.live=!1;break;case"#":(Sa||Go)&&Kr.tagList.push(Go?[Sa,Go]:[Sa]);break;case"DISCONTINUITY":br++,Kr.tagList.push(["DIS"]);break;case"GAP":Kr.gap=!0,Kr.tagList.push([Ba]);break;case"BITRATE":Kr.tagList.push([Ba,Sa]);break;case"DATERANGE":{var ws=new V(Sa);Yt(Te,ws,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),Yt(Te,ws,ws.clientAttrs);var Ws=new ee(ws,Te.dateRanges[ws.ID]);Ws.isValid||Te.skippedSegments?Te.dateRanges[Ws.id]=Ws:j.warn('Ignoring invalid DATERANGE tag: "'.concat(Sa,'"')),Kr.tagList.push(["EXT-X-DATERANGE",Sa]);break}case"DEFINE":{{var xe=new V(Sa);Yt(Te,xe,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in xe?Rt(Te,xe,Ae):rr(Te,xe,K)}break}case"DISCONTINUITY-SEQUENCE":br=parseInt(Sa);break;case"KEY":{var Ze=Qi(Sa,K,Te);if(Ze.isSupported()){if(Ze.method==="NONE"){Gn=void 0;break}Gn||(Gn={}),Gn[Ze.keyFormat]&&(Gn=E({},Gn)),Gn[Ze.keyFormat]=Ze}else j.warn('[Keys] Ignoring invalid EXT-X-KEY tag: "'.concat(Sa,'"'));break}case"START":Te.startTimeOffset=it(Sa);break;case"MAP":{var wt=new V(Sa);if(Yt(Te,wt,["BYTERANGE","URI"]),Kr.duration){var ir=new Ie(Z,K);qe(ir,wt,H,Gn),lt=ir,Kr.initSegment=lt,lt.rawProgramDateTime&&!Kr.rawProgramDateTime&&(Kr.rawProgramDateTime=lt.rawProgramDateTime)}else qe(Kr,wt,H,Gn),lt=Kr,ua=!0;break}case"SERVER-CONTROL":{var Pr=new V(Sa);Te.canBlockReload=Pr.bool("CAN-BLOCK-RELOAD"),Te.canSkipUntil=Pr.optionalFloat("CAN-SKIP-UNTIL",0),Te.canSkipDateRanges=Te.canSkipUntil>0&&Pr.bool("CAN-SKIP-DATERANGES"),Te.partHoldBack=Pr.optionalFloat("PART-HOLD-BACK",0),Te.holdBack=Pr.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var nn=new V(Sa);Te.partTarget=nn.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ue=Te.partList;Ue||(Ue=Te.partList=[]);var ie=Kt>0?Ue[Ue.length-1]:void 0,Ce=Kt++,et=new V(Sa);Yt(Te,et,["BYTERANGE","URI"]);var yt=new ke(et,Kr,K,Ce,ie);Ue.push(yt),Kr.duration+=yt.duration;break}case"PRELOAD-HINT":{var Ut=new V(Sa);Yt(Te,Ut,["URI"]),Te.preloadHint=Ut;break}case"RENDITION-REPORT":{var Qt=new V(Sa);Yt(Te,Qt,["URI"]),Te.renditionReports=Te.renditionReports||[],Te.renditionReports.push(Qt);break}default:j.warn("line parsed but not handled: ".concat(In));break}}}jr&&!jr.relurl?(Ge.pop(),Er-=jr.duration,Te.partList&&(Te.fragmentHint=jr)):Te.partList&&(rt(Kr,jr),Kr.cc=br,Te.fragmentHint=Kr,Gn&&at(Kr,Gn,Te));var $t=Ge.length,Hr=Ge[0],ln=Ge[$t-1];if(Er+=Te.skippedSegments*Te.targetduration,Er>0&&$t&&ln){Te.averagetargetduration=Er/$t;var Ur=ln.sn;Te.endSN=Ur!=="initSegment"?Ur:0,Te.live||(ln.endList=!0),Hr&&(Te.startCC=Hr.cc)}else Te.endSN=0,Te.startCC=0;return Te.fragmentHint&&(Er+=Te.fragmentHint.duration),Te.totalduration=Er,Te.endCC=br,bi>0&&Ye(Ge,bi),Te}}]),ve}();function Qi(ve,q,L){var K,H,Z=new V(ve);Yt(L,Z,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);var re=(K=Z.METHOD)!=null?K:"",Ae=Z.URI,Te=Z.hexadecimalInteger("IV"),Ge=Z.KEYFORMATVERSIONS,lt=(H=Z.KEYFORMAT)!=null?H:"identity";Ae&&Z.IV&&!Te&&j.error("Invalid IV: ".concat(Z.IV));var dt=Ae?ki.resolve(Ae,q):"",Kt=(Ge||"1").split("/").map(Number).filter(Number.isFinite);return new ur(re,dt,lt,Kt,Te)}function it(ve){var q=new V(ve),L=q.decimalFloatingPoint("TIME-OFFSET");return T(L)?L:null}function Me(ve,q){["video","audio","text"].forEach(function(L){var K=ve.filter(function(Z){return Dr(Z,L)});if(K.length){var H=K.filter(function(Z){return Z.lastIndexOf("avc1",0)===0||Z.lastIndexOf("mp4a",0)===0});q["".concat(L,"Codec")]=H.length>0?H[0]:K[0],ve=ve.filter(function(Z){return K.indexOf(Z)===-1})}}),q.unknownCodecs=ve}function je(ve,q,L){var K=q[L];K&&(ve[L]=K)}function Ye(ve,q){for(var L=ve[q],K=q;K--;){var H=ve[K];if(!H)return;H.programDateTime=L.programDateTime-H.duration*1e3,L=H}}function rt(ve,q){ve.rawProgramDateTime?ve.programDateTime=Date.parse(ve.rawProgramDateTime):q!=null&&q.programDateTime&&(ve.programDateTime=q.endProgramDateTime),T(ve.programDateTime)||(ve.programDateTime=null,ve.rawProgramDateTime=null)}function qe(ve,q,L,K){ve.relurl=q.URI,q.BYTERANGE&&ve.setByteRange(q.BYTERANGE),ve.level=L,ve.sn="initSegment",K&&(ve.levelkeys=K),ve.initSegment=null}function at(ve,q,L){ve.levelkeys=q;var K=L.encryptedFragments;(!K.length||K[K.length-1].levelkeys!==q)&&Object.keys(q).some(function(H){return q[H].isCommonEncryption})&&K.push(ve)}var St={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},gt={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function hr(ve){var q=ve.type;switch(q){case St.AUDIO_TRACK:return gt.AUDIO;case St.SUBTITLE_TRACK:return gt.SUBTITLE;default:return gt.MAIN}}function Qr(ve,q){var L=ve.url;return(L===void 0||L.indexOf("data:")===0)&&(L=q.url),L}var Xr=function(){function ve(q){Object(r.a)(this,ve),this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=q,this.registerListeners()}return Object(s.a)(ve,[{key:"startLoad",value:function(L){}},{key:"stopLoad",value:function(){this.destroyInternalLoaders()}},{key:"registerListeners",value:function(){var L=this.hls;L.on(w.MANIFEST_LOADING,this.onManifestLoading,this),L.on(w.LEVEL_LOADING,this.onLevelLoading,this),L.on(w.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),L.on(w.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.LEVEL_LOADING,this.onLevelLoading,this),L.off(w.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),L.off(w.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}},{key:"createInternalLoader",value:function(L){var K=this.hls.config,H=K.pLoader,Z=K.loader,re=H||Z,Ae=new re(K);return this.loaders[L.type]=Ae,Ae}},{key:"getInternalLoader",value:function(L){return this.loaders[L.type]}},{key:"resetInternalLoader",value:function(L){this.loaders[L]&&delete this.loaders[L]}},{key:"destroyInternalLoaders",value:function(){for(var L in this.loaders){var K=this.loaders[L];K&&K.destroy(),this.resetInternalLoader(L)}}},{key:"destroy",value:function(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}},{key:"onManifestLoading",value:function(L,K){var H=K.url;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:St.MANIFEST,url:H,deliveryDirectives:null})}},{key:"onLevelLoading",value:function(L,K){var H=K.id,Z=K.level,re=K.url,Ae=K.deliveryDirectives;this.load({id:H,level:Z,responseType:"text",type:St.LEVEL,url:re,deliveryDirectives:Ae})}},{key:"onAudioTrackLoading",value:function(L,K){var H=K.id,Z=K.groupId,re=K.url,Ae=K.deliveryDirectives;this.load({id:H,groupId:Z,level:null,responseType:"text",type:St.AUDIO_TRACK,url:re,deliveryDirectives:Ae})}},{key:"onSubtitleTrackLoading",value:function(L,K){var H=K.id,Z=K.groupId,re=K.url,Ae=K.deliveryDirectives;this.load({id:H,groupId:Z,level:null,responseType:"text",type:St.SUBTITLE_TRACK,url:re,deliveryDirectives:Ae})}},{key:"load",value:function(L){var K=this,H,Z=this.hls.config,re=this.getInternalLoader(L);if(re){var Ae=re.context;if(Ae&&Ae.url===L.url){j.trace("[playlist-loader]: playlist request ongoing");return}j.log("[playlist-loader]: aborting previous loader for type: ".concat(L.type)),re.abort()}var Te;if(L.type===St.MANIFEST?Te=Z.manifestLoadPolicy.default:Te=E({},Z.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),re=this.createInternalLoader(L),(H=L.deliveryDirectives)!=null&&H.part){var Ge;if(L.type===St.LEVEL&&L.level!==null?Ge=this.hls.levels[L.level].details:L.type===St.AUDIO_TRACK&&L.id!==null?Ge=this.hls.audioTracks[L.id].details:L.type===St.SUBTITLE_TRACK&&L.id!==null&&(Ge=this.hls.subtitleTracks[L.id].details),Ge){var lt=Ge.partTarget,dt=Ge.targetduration;if(lt&&dt){var Kt=Math.max(lt*3,dt*.8)*1e3;Te=E({},Te,{maxTimeToFirstByteMs:Math.min(Kt,Te.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(Kt,Te.maxTimeToFirstByteMs)})}}}var Er=Te.errorRetry||Te.timeoutRetry||{},br={loadPolicy:Te,timeout:Te.maxLoadTimeMs,maxRetry:Er.maxNumRetry||0,retryDelay:Er.retryDelayMs||0,maxRetryDelay:Er.maxRetryDelayMs||0},jr={onSuccess:function(In,kn,Gn,bi){var ua=K.getInternalLoader(Gn);K.resetInternalLoader(Gn.type);var Xi=In.data;if(Xi.indexOf("#EXTM3U")!==0){K.handleManifestParsingError(In,Gn,new Error("no EXTM3U delimiter"),bi||null,kn);return}kn.parsing.start=performance.now(),ki.isMediaPlaylist(Xi)?K.handleTrackOrLevelPlaylist(In,kn,Gn,bi||null,ua):K.handleMasterPlaylist(In,kn,Gn,bi)},onError:function(In,kn,Gn,bi){K.handleNetworkError(kn,Gn,!1,In,bi)},onTimeout:function(In,kn,Gn){K.handleNetworkError(kn,Gn,!0,void 0,In)}};re.load(L,br,jr)}},{key:"handleMasterPlaylist",value:function(L,K,H,Z){var re=this.hls,Ae=L.data,Te=Qr(L,H),Ge=ki.parseMasterPlaylist(Ae,Te);if(Ge.playlistParsingError){this.handleManifestParsingError(L,H,Ge.playlistParsingError,Z,K);return}var lt=Ge.contentSteering,dt=Ge.levels,Kt=Ge.sessionData,Er=Ge.sessionKeys,br=Ge.startTimeOffset,jr=Ge.variableList;this.variableList=jr;var Kr=ki.parseMasterPlaylistMedia(Ae,Te,Ge),In=Kr.AUDIO,kn=In===void 0?[]:In,Gn=Kr.SUBTITLES,bi=Kr["CLOSED-CAPTIONS"];if(kn.length){var ua=kn.some(function(Xi){return!Xi.url});!ua&&dt[0].audioCodec&&!dt[0].attrs.AUDIO&&(j.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),kn.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new V({}),bitrate:0,url:""}))}re.trigger(w.MANIFEST_LOADED,{levels:dt,audioTracks:kn,subtitles:Gn,captions:bi,contentSteering:lt,url:Te,stats:K,networkDetails:Z,sessionData:Kt,sessionKeys:Er,startTimeOffset:br,variableList:jr})}},{key:"handleTrackOrLevelPlaylist",value:function(L,K,H,Z,re){var Ae=this.hls,Te=H.id,Ge=H.level,lt=H.type,dt=Qr(L,H),Kt=T(Te)?Te:0,Er=T(Ge)?Ge:Kt,br=hr(H),jr=ki.parseLevelPlaylist(L.data,dt,Er,br,Kt,this.variableList);if(lt===St.MANIFEST){var Kr={attrs:new V({}),bitrate:0,details:jr,name:"",url:dt};Ae.trigger(w.MANIFEST_LOADED,{levels:[Kr],audioTracks:[],url:dt,stats:K,networkDetails:Z,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}K.parsing.end=performance.now(),H.levelDetails=jr,this.handlePlaylistLoaded(jr,L,K,H,Z,re)}},{key:"handleManifestParsingError",value:function(L,K,H,Z,re){this.hls.trigger(w.ERROR,{type:O.NETWORK_ERROR,details:I.MANIFEST_PARSING_ERROR,fatal:K.type===St.MANIFEST,url:L.url,err:H,error:H,reason:H.message,response:L,context:K,networkDetails:Z,stats:re})}},{key:"handleNetworkError",value:function(L,K){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Z=arguments.length>3?arguments[3]:void 0,re=arguments.length>4?arguments[4]:void 0,Ae="A network ".concat(H?"timeout":"error"+(Z?" (status "+Z.code+")":"")," occurred while loading ").concat(L.type);L.type===St.LEVEL?Ae+=": ".concat(L.level," id: ").concat(L.id):(L.type===St.AUDIO_TRACK||L.type===St.SUBTITLE_TRACK)&&(Ae+=" id: ".concat(L.id,' group-id: "').concat(L.groupId,'"'));var Te=new Error(Ae);j.warn("[playlist-loader]: ".concat(Ae));var Ge=I.UNKNOWN,lt=!1,dt=this.getInternalLoader(L);switch(L.type){case St.MANIFEST:Ge=H?I.MANIFEST_LOAD_TIMEOUT:I.MANIFEST_LOAD_ERROR,lt=!0;break;case St.LEVEL:Ge=H?I.LEVEL_LOAD_TIMEOUT:I.LEVEL_LOAD_ERROR,lt=!1;break;case St.AUDIO_TRACK:Ge=H?I.AUDIO_TRACK_LOAD_TIMEOUT:I.AUDIO_TRACK_LOAD_ERROR,lt=!1;break;case St.SUBTITLE_TRACK:Ge=H?I.SUBTITLE_TRACK_LOAD_TIMEOUT:I.SUBTITLE_LOAD_ERROR,lt=!1;break}dt&&this.resetInternalLoader(L.type);var Kt={type:O.NETWORK_ERROR,details:Ge,fatal:lt,url:L.url,loader:dt,context:L,error:Te,networkDetails:K,stats:re};if(Z){var Er=(K==null?void 0:K.url)||L.url;Kt.response=b({url:Er,data:void 0},Z)}this.hls.trigger(w.ERROR,Kt)}},{key:"handlePlaylistLoaded",value:function(L,K,H,Z,re,Ae){var Te=this.hls,Ge=Z.type,lt=Z.level,dt=Z.id,Kt=Z.groupId,Er=Z.deliveryDirectives,br=Qr(K,Z),jr=hr(Z),Kr=typeof Z.level=="number"&&jr===gt.MAIN?lt:void 0;if(!L.fragments.length){var In=new Error("No Segments found in Playlist");Te.trigger(w.ERROR,{type:O.NETWORK_ERROR,details:I.LEVEL_EMPTY_ERROR,fatal:!1,url:br,error:In,reason:In.message,response:K,context:Z,level:Kr,parent:jr,networkDetails:re,stats:H});return}L.targetduration||(L.playlistParsingError=new Error("Missing Target Duration"));var kn=L.playlistParsingError;if(kn){Te.trigger(w.ERROR,{type:O.NETWORK_ERROR,details:I.LEVEL_PARSING_ERROR,fatal:!1,url:br,error:kn,reason:kn.message,response:K,context:Z,level:Kr,parent:jr,networkDetails:re,stats:H});return}L.live&&Ae&&(Ae.getCacheAge&&(L.ageHeader=Ae.getCacheAge()||0),(!Ae.getCacheAge||isNaN(L.ageHeader))&&(L.ageHeader=0));switch(Ge){case St.MANIFEST:case St.LEVEL:Te.trigger(w.LEVEL_LOADED,{details:L,level:Kr||0,id:dt||0,stats:H,networkDetails:re,deliveryDirectives:Er});break;case St.AUDIO_TRACK:Te.trigger(w.AUDIO_TRACK_LOADED,{details:L,id:dt||0,groupId:Kt||"",stats:H,networkDetails:re,deliveryDirectives:Er});break;case St.SUBTITLE_TRACK:Te.trigger(w.SUBTITLE_TRACK_LOADED,{details:L,id:dt||0,groupId:Kt||"",stats:H,networkDetails:re,deliveryDirectives:Er});break}}}]),ve}();function dn(ve,q){var L;try{L=new Event("addtrack")}catch(K){L=document.createEvent("Event"),L.initEvent("addtrack",!1,!1)}L.track=ve,q.dispatchEvent(L)}function mr(ve,q){var L=ve.mode;if(L==="disabled"&&(ve.mode="hidden"),ve.cues&&!ve.cues.getCueById(q.id))try{if(ve.addCue(q),!ve.cues.getCueById(q.id))throw new Error("addCue is failed for: ".concat(q))}catch(H){j.debug("[texttrack-utils]: ".concat(H));var K=new self.TextTrackCue(q.startTime,q.endTime,q.text);K.id=q.id,ve.addCue(K)}L==="disabled"&&(ve.mode=L)}function Kn(ve){var q=ve.mode;if(q==="disabled"&&(ve.mode="hidden"),ve.cues)for(var L=ve.cues.length;L--;)ve.removeCue(ve.cues[L]);q==="disabled"&&(ve.mode=q)}function Rr(ve,q,L,K){var H=ve.mode;if(H==="disabled"&&(ve.mode="hidden"),ve.cues&&ve.cues.length>0)for(var Z=An(ve.cues,q,L),re=0;re<Z.length;re++)(!K||K(Z[re]))&&ve.removeCue(Z[re]);H==="disabled"&&(ve.mode=H)}function Rn(ve,q){if(q<ve[0].startTime)return 0;var L=ve.length-1;if(q>ve[L].endTime)return-1;for(var K=0,H=L;K<=H;){var Z=Math.floor((H+K)/2);if(q<ve[Z].startTime)H=Z-1;else if(q>ve[Z].startTime&&K<L)K=Z+1;else return Z}return ve[K].startTime-q<q-ve[H].startTime?K:H}function An(ve,q,L){var K=[],H=Rn(ve,q);if(H>-1)for(var Z=H,re=ve.length;Z<re;Z++){var Ae=ve[Z];if(Ae.startTime>=q&&Ae.endTime<=L)K.push(Ae);else if(Ae.startTime>L)return K}return K}var Zr={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"},hi=.25;function Mi(){return typeof self=="undefined"?void 0:self.WebKitDataCue||self.VTTCue||self.TextTrackCue}var Zi=function(){var ve=Mi();try{new ve(0,Number.POSITIVE_INFINITY,"")}catch(q){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY}();function qr(ve,q){return ve.getTime()/1e3-q}function xn(ve){return Uint8Array.from(ve.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}var zn=function(){function ve(q){Object(r.a)(this,ve),this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=q,this._registerListeners()}return Object(s.a)(ve,[{key:"destroy",value:function(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null}},{key:"_registerListeners",value:function(){var L=this.hls;L.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),L.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),L.on(w.MANIFEST_LOADING,this.onManifestLoading,this),L.on(w.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),L.on(w.BUFFER_FLUSHING,this.onBufferFlushing,this),L.on(w.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"_unregisterListeners",value:function(){var L=this.hls;L.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),L.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),L.off(w.BUFFER_FLUSHING,this.onBufferFlushing,this),L.off(w.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"onMediaAttached",value:function(L,K){this.media=K.media}},{key:"onMediaDetaching",value:function(){if(!this.id3Track)return;Kn(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={}}},{key:"onManifestLoading",value:function(){this.dateRangeCuesAppended={}}},{key:"createTrack",value:function(L){var K=this.getID3Track(L.textTracks);return K.mode="hidden",K}},{key:"getID3Track",value:function(L){if(!this.media)return;for(var K=0;K<L.length;K++){var H=L[K];if(H.kind==="metadata"&&H.label==="id3")return dn(H,this.media),H}return this.media.addTextTrack("metadata","id3")}},{key:"onFragParsingMetadata",value:function(L,K){if(!this.media)return;var H=this.hls.config,Z=H.enableEmsgMetadataCues,re=H.enableID3MetadataCues;if(!Z&&!re)return;var Ae=K.samples;this.id3Track||(this.id3Track=this.createTrack(this.media));for(var Te=Mi(),Ge=0;Ge<Ae.length;Ge++){var lt=Ae[Ge].type;if(lt===Zr.emsg&&!Z||!re)continue;var dt=zt(Ae[Ge].data);if(dt){var Kt=Ae[Ge].pts,Er=Kt+Ae[Ge].duration;Er>Zi&&(Er=Zi);var br=Er-Kt;br<=0&&(Er=Kt+hi);for(var jr=0;jr<dt.length;jr++){var Kr=dt[jr];if(!Gt(Kr)){this.updateId3CueEnds(Kt);var In=new Te(Kt,Er,"");In.value=Kr,lt&&(In.type=lt),this.id3Track.addCue(In)}}}}}},{key:"updateId3CueEnds",value:function(L){var K,H=(K=this.id3Track)==null?void 0:K.cues;if(H)for(var Z=H.length;Z--;){var re=H[Z];re.startTime<L&&re.endTime===Zi&&(re.endTime=L)}}},{key:"onBufferFlushing",value:function(L,K){var H=K.startOffset,Z=K.endOffset,re=K.type,Ae=this.id3Track,Te=this.hls;if(!Te)return;var Ge=Te.config,lt=Ge.enableEmsgMetadataCues,dt=Ge.enableID3MetadataCues;if(Ae&&(lt||dt)){var Kt;re==="audio"?Kt=function(br){return br.type===Zr.audioId3&&dt}:re==="video"?Kt=function(br){return br.type===Zr.emsg&<}:Kt=function(br){return br.type===Zr.audioId3&&dt||br.type===Zr.emsg&<},Rr(Ae,H,Z,Kt)}}},{key:"onLevelUpdated",value:function(L,K){var H=this,Z=K.details;if(!this.media||!Z.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;var re=this.dateRangeCuesAppended,Ae=this.id3Track,Te=Z.dateRanges,Ge=Object.keys(Te);if(Ae)for(var lt=Object.keys(re).filter(function(kn){return!Ge.includes(kn)}),dt=function(){var Gn=lt[Kt];Object.keys(re[Gn].cues).forEach(function(bi){Ae.removeCue(re[Gn].cues[bi])}),delete re[Gn]},Kt=lt.length;Kt--;)dt();var Er=Z.fragments[Z.fragments.length-1];if(Ge.length===0||!T(Er==null?void 0:Er.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));for(var br=Er.programDateTime/1e3-Er.start,jr=Mi(),Kr=function(){var Gn=Ge[In],bi=Te[Gn],ua=re[Gn],Xi=(ua==null?void 0:ua.cues)||{},ta=(ua==null?void 0:ua.durationKnown)||!1,Pa=qr(bi.startDate,br),Ya=Zi,Ba=bi.endDate;if(Ba)Ya=qr(Ba,br),ta=!0;else if(bi.endOnNext&&!ta){var Sa=Ge.reduce(function(ws,Ws){var xe=Te[Ws];return xe.class===bi.class&&xe.id!==Ws&&xe.startDate>bi.startDate&&ws.push(xe),ws},[]).sort(function(ws,Ws){return ws.startDate.getTime()-Ws.startDate.getTime()})[0];Sa&&(Ya=qr(Sa.startDate,br),ta=!0)}for(var Go=Object.keys(bi.attr),Ls=0;Ls<Go.length;Ls++){var ys=Go[Ls];if(!Q(ys))continue;var bs=Xi[ys];if(bs)ta&&!ua.durationKnown&&(bs.endTime=Ya);else{var Fs=bi.attr[ys];bs=new jr(Pa,Ya,""),G(ys)&&(Fs=xn(Fs)),bs.value={key:ys,data:Fs},bs.type=Zr.dateRange,bs.id=Gn,H.id3Track.addCue(bs),Xi[ys]=bs}}re[Gn]={cues:Xi,dateRange:bi,durationKnown:ta}},In=0;In<Ge.length;In++)Kr()}}]),ve}(),Ht=function(){function ve(q){var L=this;Object(r.a)(this,ve),this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=function(){return L.timeupdate()},this.hls=q,this.config=q.config,this.registerListeners()}return Object(s.a)(ve,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var L=this.config,K=this.levelDetails;return L.liveMaxLatencyDuration!==void 0?L.liveMaxLatencyDuration:K?L.liveMaxLatencyDurationCount*K.targetduration:0}},{key:"targetLatency",get:function(){var L=this.levelDetails;if(L===null)return null;var K=L.holdBack,H=L.partHoldBack,Z=L.targetduration,re=this.config,Ae=re.liveSyncDuration,Te=re.liveSyncDurationCount,Ge=re.lowLatencyMode,lt=this.hls.userConfig,dt=Ge&&H||K;(lt.liveSyncDuration||lt.liveSyncDurationCount||dt===0)&&(dt=Ae!==void 0?Ae:Te*Z);var Kt=Z,Er=1;return dt+Math.min(this.stallCount*Er,Kt)}},{key:"liveSyncPosition",get:function(){var L=this.estimateLiveEdge(),K=this.targetLatency,H=this.levelDetails;if(L===null||K===null||H===null)return null;var Z=H.edge,re=L-K-this.edgeStalled,Ae=Z-H.totalduration,Te=Z-(this.config.lowLatencyMode&&H.partTarget||H.targetduration);return Math.min(Math.max(Ae,re),Te)}},{key:"drift",get:function(){var L=this.levelDetails;return L===null?1:L.drift}},{key:"edgeStalled",get:function(){var L=this.levelDetails;if(L===null)return 0;var K=(this.config.lowLatencyMode&&L.partTarget||L.targetduration)*3;return Math.max(L.age-K,0)}},{key:"forwardBufferLength",get:function(){var L=this.media,K=this.levelDetails;if(!L||!K)return 0;var H=L.buffered.length;return(H?L.buffered.end(H-1):K.edge)-this.currentTime}},{key:"destroy",value:function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null}},{key:"registerListeners",value:function(){this.hls.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(w.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(w.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(w.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){this.hls.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(w.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(w.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(w.ERROR,this.onError,this)}},{key:"onMediaAttached",value:function(L,K){this.media=K.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)}},{key:"onMediaDetaching",value:function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)}},{key:"onManifestLoading",value:function(){this.levelDetails=null,this._latency=null,this.stallCount=0}},{key:"onLevelUpdated",value:function(L,K){var H=K.details;this.levelDetails=H,H.advanced&&this.timeupdate(),!H.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)}},{key:"onError",value:function(L,K){var H;if(K.details!==I.BUFFER_STALLED_ERROR)return;this.stallCount++,(H=this.levelDetails)!=null&&H.live&&j.warn("[playback-rate-controller]: Stall detected, adjusting target latency")}},{key:"timeupdate",value:function(){var L=this.media,K=this.levelDetails;if(!L||!K)return;this.currentTime=L.currentTime;var H=this.computeLatency();if(H===null)return;this._latency=H;var Z=this.config,re=Z.lowLatencyMode,Ae=Z.maxLiveSyncPlaybackRate;if(!re||Ae===1)return;var Te=this.targetLatency;if(Te===null)return;var Ge=H-Te,lt=Math.min(this.maxLatency,Te+K.targetduration),dt=Ge<lt;if(K.live&&dt&&Ge>.05&&this.forwardBufferLength>1){var Kt=Math.min(2,Math.max(1,Ae)),Er=Math.round(2/(1+Math.exp(-.75*Ge-this.edgeStalled))*20)/20;L.playbackRate=Math.min(Kt,Math.max(1,Er))}else L.playbackRate!==1&&L.playbackRate!==0&&(L.playbackRate=1)}},{key:"estimateLiveEdge",value:function(){var L=this.levelDetails;return L===null?null:L.edge+L.age}},{key:"computeLatency",value:function(){var L=this.estimateLiveEdge();return L===null?null:L-this.currentTime}}]),ve}(),Tt=["NONE","TYPE-0","TYPE-1",null],Dt={No:"",Yes:"YES",v2:"v2"};function Bt(ve,q){var L=ve.canSkipUntil,K=ve.canSkipDateRanges,H=ve.endSN,Z=q!==void 0?q-H:0;return L&&Z<L?K?Dt.v2:Dt.Yes:Dt.No}var jt=function(){function ve(q,L,K){Object(r.a)(this,ve),this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=q,this.part=L,this.skip=K}return Object(s.a)(ve,[{key:"addDirectives",value:function(L){var K=new self.URL(L);return this.msn!==void 0&&K.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&K.searchParams.set("_HLS_part",this.part.toString()),this.skip&&K.searchParams.set("_HLS_skip",this.skip),K.href}}]),ve}(),Ot=function(){function ve(q){Object(r.a)(this,ve),this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.unknownCodecs=void 0,this.audioGroupIds=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.textGroupIds=void 0,this.url=void 0,this._urlId=0,this.url=[q.url],this._attrs=[q.attrs],this.bitrate=q.bitrate,q.details&&(this.details=q.details),this.id=q.id||0,this.name=q.name,this.width=q.width||0,this.height=q.height||0,this.audioCodec=q.audioCodec,this.videoCodec=q.videoCodec,this.unknownCodecs=q.unknownCodecs,this.codecSet=[q.videoCodec,q.audioCodec].filter(function(L){return L}).join(",").replace(/\.[^.,]+/g,"")}return Object(s.a)(ve,[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"attrs",get:function(){return this._attrs[this._urlId]}},{key:"pathwayId",get:function(){return this.attrs["PATHWAY-ID"]||"."}},{key:"uri",get:function(){return this.url[this._urlId]||""}},{key:"urlId",get:function(){return this._urlId},set:function(L){var K=L%this.url.length;this._urlId!==K&&(this.fragmentError=0,this.loadError=0,this.details=void 0,this._urlId=K)}},{key:"audioGroupId",get:function(){var L;return(L=this.audioGroupIds)==null?void 0:L[this.urlId]}},{key:"textGroupId",get:function(){var L;return(L=this.textGroupIds)==null?void 0:L[this.urlId]}},{key:"addFallback",value:function(L){this.url.push(L.url),this._attrs.push(L.attrs)}}]),ve}();function nr(ve,q){var L=q.startPTS;if(T(L)){var K=0,H;q.sn>ve.sn?(K=L-ve.start,H=ve):(K=ve.start-L,H=q),H.duration!==K&&(H.duration=K)}else if(q.sn>ve.sn){var Z=ve.cc===q.cc;Z&&ve.minEndPTS?q.start=ve.start+(ve.minEndPTS-ve.start):q.start=ve.start+ve.duration}else q.start=Math.max(ve.start-q.duration,0)}function pr(ve,q,L,K,H,Z){var re=K-L;re<=0&&(j.warn("Fragment should have a positive duration",q),K=L+q.duration,Z=H+q.duration);var Ae=L,Te=K,Ge=q.startPTS,lt=q.endPTS;if(T(Ge)){var dt=Math.abs(Ge-L);T(q.deltaPTS)?q.deltaPTS=Math.max(dt,q.deltaPTS):q.deltaPTS=dt,Ae=Math.max(L,Ge),L=Math.min(L,Ge),H=Math.min(H,q.startDTS),Te=Math.min(K,lt),K=Math.max(K,lt),Z=Math.max(Z,q.endDTS)}var Kt=L-q.start;q.start!==0&&(q.start=L),q.duration=K-q.start,q.startPTS=L,q.maxStartPTS=Ae,q.startDTS=H,q.endPTS=K,q.minEndPTS=Te,q.endDTS=Z;var Er=q.sn;if(!ve||Er<ve.startSN||Er>ve.endSN)return 0;var br,jr=Er-ve.startSN,Kr=ve.fragments;for(Kr[jr]=q,br=jr;br>0;br--)nr(Kr[br],Kr[br-1]);for(br=jr;br<Kr.length-1;br++)nr(Kr[br],Kr[br+1]);return ve.fragmentHint&&nr(Kr[Kr.length-1],ve.fragmentHint),ve.PTSKnown=ve.alignedSliding=!0,Kt}function Ar(ve,q){for(var L=null,K=ve.fragments,H=K.length-1;H>=0;H--){var Z=K[H].initSegment;if(Z){L=Z;break}}ve.fragmentHint&&delete ve.fragmentHint.endPTS;var re=0,Ae;if(Ln(ve,q,function(br,jr){br.relurl&&(re=br.cc-jr.cc),T(br.startPTS)&&T(br.endPTS)&&(jr.start=jr.startPTS=br.startPTS,jr.startDTS=br.startDTS,jr.maxStartPTS=br.maxStartPTS,jr.endPTS=br.endPTS,jr.endDTS=br.endDTS,jr.minEndPTS=br.minEndPTS,jr.duration=br.endPTS-br.startPTS,jr.duration&&(Ae=jr),q.PTSKnown=q.alignedSliding=!0),jr.elementaryStreams=br.elementaryStreams,jr.loader=br.loader,jr.stats=br.stats,jr.urlId=br.urlId,br.initSegment&&(jr.initSegment=br.initSegment,L=br.initSegment)}),L){var Te=q.fragmentHint?q.fragments.concat(q.fragmentHint):q.fragments;Te.forEach(function(br){var jr;(!br.initSegment||br.initSegment.relurl===((jr=L)==null?void 0:jr.relurl))&&(br.initSegment=L)})}if(q.skippedSegments)if(q.deltaUpdateFailed=q.fragments.some(function(br){return!br}),q.deltaUpdateFailed){j.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var Ge=q.skippedSegments;Ge--;)q.fragments.shift();q.startSN=q.fragments[0].sn,q.startCC=q.fragments[0].cc}else q.canSkipDateRanges&&(q.dateRanges=Nr(ve.dateRanges,q.dateRanges,q.recentlyRemovedDateranges));var lt=q.fragments;if(re){j.warn("discontinuity sliding from playlist, take drift into account");for(var dt=0;dt<lt.length;dt++)lt[dt].cc+=re}q.skippedSegments&&(q.startCC=q.fragments[0].cc),Hn(ve.partList,q.partList,function(br,jr){jr.elementaryStreams=br.elementaryStreams,jr.stats=br.stats}),Ae?pr(q,Ae,Ae.startPTS,Ae.endPTS,Ae.startDTS,Ae.endDTS):ci(ve,q),lt.length&&(q.totalduration=q.edge-lt[0].start),q.driftStartTime=ve.driftStartTime,q.driftStart=ve.driftStart;var Kt=q.advancedDateTime;if(q.advanced&&Kt){var Er=q.edge;q.driftStart||(q.driftStartTime=Kt,q.driftStart=Er),q.driftEndTime=Kt,q.driftEnd=Er}else q.driftEndTime=ve.driftEndTime,q.driftEnd=ve.driftEnd,q.advancedDateTime=ve.advancedDateTime}function Nr(ve,q,L){var K=E({},ve);return L&&L.forEach(function(H){delete K[H]}),Object.keys(q).forEach(function(H){var Z=new ee(q[H].attr,K[H]);Z.isValid?K[H]=Z:j.warn('Ignoring invalid Playlist Delta Update DATERANGE tag: "'.concat(JSON.stringify(q[H].attr),'"'))}),K}function Hn(ve,q,L){if(ve&&q)for(var K=0,H=0,Z=ve.length;H<=Z;H++){var re=ve[H],Ae=q[H+K];re&&Ae&&re.index===Ae.index&&re.fragment.sn===Ae.fragment.sn?L(re,Ae):K--}}function Ln(ve,q,L){for(var K=q.skippedSegments,H=Math.max(ve.startSN,q.startSN)-q.startSN,Z=(ve.fragmentHint?1:0)+(K?q.endSN:Math.min(ve.endSN,q.endSN))-q.startSN,re=q.startSN-ve.startSN,Ae=q.fragmentHint?q.fragments.concat(q.fragmentHint):q.fragments,Te=ve.fragmentHint?ve.fragments.concat(ve.fragmentHint):ve.fragments,Ge=H;Ge<=Z;Ge++){var lt=Te[re+Ge],dt=Ae[Ge];K&&!dt&&Ge<K&&(dt=q.fragments[Ge]=lt),lt&&dt&&L(lt,dt)}}function ci(ve,q){var L=q.startSN+q.skippedSegments-ve.startSN,K=ve.fragments;if(L<0||L>=K.length)return;hn(q,K[L].start)}function hn(ve,q){if(q){for(var L=ve.fragments,K=ve.skippedSegments;K<L.length;K++)L[K].start+=q;ve.fragmentHint&&(ve.fragmentHint.start+=q)}}function Fr(ve){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Infinity,L=1e3*ve.targetduration;if(ve.updated){var K=ve.fragments,H=4;if(K.length&&L*H>q){var Z=K[K.length-1].duration*1e3;Z<L&&(L=Z)}}else L/=2;return Math.round(L)}function En(ve,q,L){if(!(ve!=null&&ve.details))return null;var K=ve.details,H=K.fragments[q-K.startSN];return H||(H=K.fragmentHint,H&&H.sn===q?H:q<K.startSN&&L&&L.sn===q?L:null)}function Wn(ve,q,L){var K;return ve!=null&&ve.details?Yn((K=ve.details)==null?void 0:K.partList,q,L):null}function Yn(ve,q,L){if(ve)for(var K=ve.length;K--;){var H=ve[K];if(H.index===L&&H.fragment.sn===q)return H}return null}function ii(ve){switch(ve.details){case I.FRAG_LOAD_TIMEOUT:case I.KEY_LOAD_TIMEOUT:case I.LEVEL_LOAD_TIMEOUT:case I.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function xi(ve,q){var L=ii(q);return ve.default["".concat(L?"timeout":"error","Retry")]}function Ni(ve,q){var L=ve.backoff==="linear"?1:Math.pow(2,q);return Math.min(L*ve.retryDelayMs,ve.maxRetryDelayMs)}function Li(ve){return b(b({},ve),{errorRetry:null,timeoutRetry:null})}function oa(ve,q,L,K){return!!ve&&q<ve.maxNumRetry&&(ma(K)||!!L)}function ma(ve){return ve===0&&navigator.onLine===!1||!!ve&&(ve<400||ve>499)}var ia={search:function(q,L){for(var K=0,H=q.length-1,Z=null,re=null;K<=H;){Z=(K+H)/2|0,re=q[Z];var Ae=L(re);if(Ae>0)K=Z+1;else if(Ae<0)H=Z-1;else return re}return null}};function ba(ve,q,L){if(q===null||!Array.isArray(ve)||!ve.length||!T(q))return null;var K=ve[0].programDateTime;if(q<(K||0))return null;var H=ve[ve.length-1].endProgramDateTime;if(q>=(H||0))return null;L=L||0;for(var Z=0;Z<ve.length;++Z){var re=ve[Z];if(Fi(q,L,re))return re}return null}function vi(ve,q){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,H=null;if(ve?H=q[ve.sn-q[0].sn+1]||null:L===0&&q[0].start===0&&(H=q[0]),H&&On(L,K,H)===0)return H;var Z=ia.search(q,On.bind(null,L,K));return Z&&(Z!==ve||!H)?Z:H}function On(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,L=arguments.length>2?arguments[2]:void 0;if(L.start<=ve&&L.start+L.duration>ve)return 0;var K=Math.min(q,L.duration+(L.deltaPTS?L.deltaPTS:0));return L.start+L.duration-K<=ve?1:L.start-K>ve&&L.start?-1:0}function Fi(ve,q,L){var K=Math.min(q,L.duration+(L.deltaPTS?L.deltaPTS:0))*1e3,H=L.endProgramDateTime||0;return H-K>ve}function ha(ve,q){return ia.search(ve,function(L){return L.cc<q?1:L.cc>q?-1:0})}var ea=3e5,aa={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},Or={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4},wr=function(){function ve(q){Object(r.a)(this,ve),this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=q,this.log=j.log.bind(j,"[info]:"),this.warn=j.warn.bind(j,"[warning]:"),this.error=j.error.bind(j,"[error]:"),this.registerListeners()}return Object(s.a)(ve,[{key:"registerListeners",value:function(){var L=this.hls;L.on(w.ERROR,this.onError,this),L.on(w.MANIFEST_LOADING,this.onManifestLoading,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;if(!L)return;L.off(w.ERROR,this.onError,this),L.off(w.ERROR,this.onErrorOut,this),L.off(w.MANIFEST_LOADING,this.onManifestLoading,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}},{key:"startLoad",value:function(L){this.playlistError=0}},{key:"stopLoad",value:function(){}},{key:"getVariantLevelIndex",value:function(L){return(L==null?void 0:L.type)===gt.MAIN?L.level:this.hls.loadLevel}},{key:"onManifestLoading",value:function(){this.playlistError=0,this.penalizedRenditions={}}},{key:"onError",value:function(L,K){var H;if(K.fatal)return;var Z=this.hls,re=K.context;switch(K.details){case I.FRAG_LOAD_ERROR:case I.FRAG_LOAD_TIMEOUT:case I.KEY_LOAD_ERROR:case I.KEY_LOAD_TIMEOUT:K.errorAction=this.getFragRetryOrSwitchAction(K);return;case I.FRAG_GAP:case I.FRAG_PARSING_ERROR:case I.FRAG_DECRYPT_ERROR:{K.errorAction=this.getFragRetryOrSwitchAction(K),K.errorAction.action=aa.SendAlternateToPenaltyBox;return}case I.LEVEL_EMPTY_ERROR:case I.LEVEL_PARSING_ERROR:{var Ae,Te,Ge=K.parent===gt.MAIN?K.level:Z.loadLevel;K.details===I.LEVEL_EMPTY_ERROR&&!!((Ae=K.context)!=null&&(Te=Ae.levelDetails)!=null&&Te.live)?K.errorAction=this.getPlaylistRetryOrSwitchAction(K,Ge):(K.levelRetry=!1,K.errorAction=this.getLevelSwitchAction(K,Ge))}return;case I.LEVEL_LOAD_ERROR:case I.LEVEL_LOAD_TIMEOUT:typeof(re==null?void 0:re.level)=="number"&&(K.errorAction=this.getPlaylistRetryOrSwitchAction(K,re.level));return;case I.AUDIO_TRACK_LOAD_ERROR:case I.AUDIO_TRACK_LOAD_TIMEOUT:case I.SUBTITLE_LOAD_ERROR:case I.SUBTITLE_TRACK_LOAD_TIMEOUT:if(re){var lt=Z.levels[Z.loadLevel];if(lt&&(re.type===St.AUDIO_TRACK&&re.groupId===lt.audioGroupId||re.type===St.SUBTITLE_TRACK&&re.groupId===lt.textGroupId)){K.errorAction=this.getPlaylistRetryOrSwitchAction(K,Z.loadLevel),K.errorAction.action=aa.SendAlternateToPenaltyBox,K.errorAction.flags=Or.MoveAllAlternatesMatchingHost;return}}return;case I.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{var dt=Z.levels[Z.loadLevel],Kt=dt==null?void 0:dt.attrs["HDCP-LEVEL"];Kt&&(K.errorAction={action:aa.SendAlternateToPenaltyBox,flags:Or.MoveAllAlternatesMatchingHDCP,hdcpLevel:Kt})}return;case I.BUFFER_ADD_CODEC_ERROR:case I.REMUX_ALLOC_ERROR:K.errorAction=this.getLevelSwitchAction(K,(H=K.level)!=null?H:Z.loadLevel);return;case I.INTERNAL_EXCEPTION:case I.BUFFER_APPENDING_ERROR:case I.BUFFER_APPEND_ERROR:case I.BUFFER_FULL_ERROR:case I.LEVEL_SWITCH_ERROR:case I.BUFFER_STALLED_ERROR:case I.BUFFER_SEEK_OVER_HOLE:case I.BUFFER_NUDGE_ON_STALL:K.errorAction={action:aa.DoNothing,flags:Or.None};return}if(K.type===O.KEY_SYSTEM_ERROR){var Er=this.getVariantLevelIndex(K.frag);K.levelRetry=!1,K.errorAction=this.getLevelSwitchAction(K,Er);return}}},{key:"getPlaylistRetryOrSwitchAction",value:function(L,K){var H,Z=this.hls,re=xi(Z.config.playlistLoadPolicy,L),Ae=this.playlistError++,Te=(H=L.response)==null?void 0:H.code,Ge=oa(re,Ae,ii(L),Te);if(Ge)return{action:aa.RetryRequest,flags:Or.None,retryConfig:re,retryCount:Ae};var lt=this.getLevelSwitchAction(L,K);return re&&(lt.retryConfig=re,lt.retryCount=Ae),lt}},{key:"getFragRetryOrSwitchAction",value:function(L){var K=this.hls,H=this.getVariantLevelIndex(L.frag),Z=K.levels[H],re=K.config,Ae=re.fragLoadPolicy,Te=re.keyLoadPolicy,Ge=xi(L.details.startsWith("key")?Te:Ae,L),lt=K.levels.reduce(function(jr,Kr){return jr+Kr.fragmentError},0);if(Z){var dt;L.details!==I.FRAG_GAP&&Z.fragmentError++;var Kt=(dt=L.response)==null?void 0:dt.code,Er=oa(Ge,lt,ii(L),Kt);if(Er)return{action:aa.RetryRequest,flags:Or.None,retryConfig:Ge,retryCount:lt}}var br=this.getLevelSwitchAction(L,H);return Ge&&(br.retryConfig=Ge,br.retryCount=lt),br}},{key:"getLevelSwitchAction",value:function(L,K){var H=this.hls;K==null&&(K=H.loadLevel);var Z=this.hls.levels[K];if(Z&&(Z.loadError++,H.autoLevelEnabled)){for(var re,Ae,Te=-1,Ge=H.levels,lt=(re=L.frag)==null?void 0:re.type,dt=(Ae=L.context)!=null?Ae:{},Kt=dt.type,Er=dt.groupId,br=Ge.length;br--;){var jr=(br+H.loadLevel)%Ge.length;if(jr!==H.loadLevel&&Ge[jr].loadError===0){var Kr=Ge[jr];if(L.details===I.FRAG_GAP&&L.frag){var In=Ge[jr].details;if(In){var kn=vi(L.frag,In.fragments,L.frag.start);if(kn!=null&&kn.gap)continue}}else{if(Kt===St.AUDIO_TRACK&&Er===Kr.audioGroupId||Kt===St.SUBTITLE_TRACK&&Er===Kr.textGroupId)continue;if(lt===gt.AUDIO&&Z.audioGroupId===Kr.audioGroupId||lt===gt.SUBTITLE&&Z.textGroupId===Kr.textGroupId)continue}Te=jr;break}}if(Te>-1&&H.loadLevel!==Te)return L.levelRetry=!0,{action:aa.SendAlternateToPenaltyBox,flags:Or.None,nextAutoLevel:Te}}return{action:aa.SendAlternateToPenaltyBox,flags:Or.MoveAllAlternatesMatchingHost}}},{key:"onErrorOut",value:function(L,K){var H;switch((H=K.errorAction)==null?void 0:H.action){case aa.DoNothing:break;case aa.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(K),!K.errorAction.resolved&&K.details!==I.FRAG_GAP&&(K.fatal=!0);break}if(K.fatal){this.hls.stopLoad();return}}},{key:"sendAlternateToPenaltyBox",value:function(L){var K=this.hls,H=L.errorAction;if(!H)return;var Z=H.flags,re=H.hdcpLevel,Ae=H.nextAutoLevel;switch(Z){case Or.None:this.switchLevel(L,Ae);break;case Or.MoveAllAlternatesMatchingHost:H.resolved||(H.resolved=this.redundantFailover(L));break;case Or.MoveAllAlternatesMatchingHDCP:re&&(K.maxHdcpLevel=Tt[Tt.indexOf(re)-1],H.resolved=!0),this.warn('Restricting playback to HDCP-LEVEL of "'.concat(K.maxHdcpLevel,'" or lower'));break}H.resolved||this.switchLevel(L,Ae)}},{key:"switchLevel",value:function(L,K){K!==void 0&&L.errorAction&&(this.warn("switching to level ".concat(K," after ").concat(L.details)),this.hls.nextAutoLevel=K,L.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel)}},{key:"redundantFailover",value:function(L){var K=this,H=this.hls,Z=this.penalizedRenditions,re=L.parent===gt.MAIN?L.level:H.loadLevel,Ae=H.levels[re],Te=Ae.url.length,Ge=L.frag?L.frag.urlId:Ae.urlId;Ae.urlId===Ge&&(!L.frag||Ae.details)&&this.penalizeRendition(Ae,L);for(var lt=function(){var br=(Ge+dt)%Te,jr=Z[br];if(!jr||Sn(jr,L,Z[Ge]))return K.warn("Switching to Redundant Stream ".concat(br+1,"/").concat(Te,': "').concat(Ae.url[br],'" after ').concat(L.details)),K.playlistError=0,H.levels.forEach(function(Kr){Kr.urlId=br}),H.nextLoadLevel=re,{v:!0}},dt=1;dt<Te;dt++){var Kt=lt();if(typeof Kt=="object")return Kt.v}return!1}},{key:"penalizeRendition",value:function(L,K){var H=this.penalizedRenditions,Z=H[L.urlId]||{lastErrorPerfMs:0,errors:[],details:void 0};Z.lastErrorPerfMs=performance.now(),Z.errors.push(K),Z.details=L.details,H[L.urlId]=Z}}]),ve}();function Sn(ve,q,L){if(performance.now()-ve.lastErrorPerfMs>ea)return!0;var K=ve.details;if(q.details===I.FRAG_GAP&&K&&q.frag){var H=q.frag.start,Z=vi(null,K.fragments,H);if(Z&&!Z.gap)return!0}if(L&&ve.errors.length<L.errors.length){var re=ve.errors[ve.errors.length-1];if(K&&re.frag&&q.frag&&Math.abs(re.frag.start-q.frag.start)>K.targetduration*3)return!0}return!1}var cr=function(){function ve(q,L){Object(r.a)(this,ve),this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=j.log.bind(j,"".concat(L,":")),this.warn=j.warn.bind(j,"".concat(L,":")),this.hls=q}return Object(s.a)(ve,[{key:"destroy",value:function(){this.clearTimer(),this.hls=this.log=this.warn=null}},{key:"clearTimer",value:function(){clearTimeout(this.timer),this.timer=-1}},{key:"startLoad",value:function(){this.canLoad=!0,this.requestScheduled=-1,this.loadPlaylist()}},{key:"stopLoad",value:function(){this.canLoad=!1,this.clearTimer()}},{key:"switchParams",value:function(L,K){var H=K==null?void 0:K.renditionReports;if(H){for(var Z=-1,re=0;re<H.length;re++){var Ae=H[re],Te=void 0;try{Te=new self.URL(Ae.URI,K.url).href}catch(Er){j.warn("Could not construct new URL for Rendition Report: ".concat(Er)),Te=Ae.URI||""}if(Te===L){Z=re;break}else Te===L.substring(0,Te.length)&&(Z=re)}if(Z!==-1){var Ge=H[Z],lt=parseInt(Ge["LAST-MSN"])||(K==null?void 0:K.lastPartSn),dt=parseInt(Ge["LAST-PART"])||(K==null?void 0:K.lastPartIndex);if(this.hls.config.lowLatencyMode){var Kt=Math.min(K.age-K.partTarget,K.targetduration);dt>=0&&Kt>K.partTarget&&(dt+=1)}return new jt(lt,dt>=0?dt:void 0,Dt.No)}}}},{key:"loadPlaylist",value:function(L){this.requestScheduled===-1&&(this.requestScheduled=self.performance.now())}},{key:"shouldLoadPlaylist",value:function(L){return this.canLoad&&!!L&&!!L.url&&(!L.details||L.details.live)}},{key:"shouldReloadPlaylist",value:function(L){return this.timer===-1&&this.requestScheduled===-1&&this.shouldLoadPlaylist(L)}},{key:"playlistLoaded",value:function(L,K,H){var Z=this,re=K.details,Ae=K.stats,Te=self.performance.now(),Ge=Ae.loading.first?Math.max(0,Te-Ae.loading.first):0;if(re.advancedDateTime=Date.now()-Ge,re.live||H!=null&&H.live){if(re.reloaded(H),H&&this.log("live playlist ".concat(L," ").concat(re.advanced?"REFRESHED "+re.lastPartSn+"-"+re.lastPartIndex:"MISSED")),H&&re.fragments.length>0&&Ar(H,re),!this.canLoad||!re.live)return;var lt,dt=void 0,Kt=void 0;if(re.canBlockReload&&re.endSN&&re.advanced){var Er=this.hls.config.lowLatencyMode,br=re.lastPartSn,jr=re.endSN,Kr=re.lastPartIndex,In=Kr!==-1,kn=br===jr,Gn=Er?0:Kr;In?(dt=kn?jr+1:br,Kt=kn?Gn:Kr+1):dt=jr+1;var bi=re.age,ua=bi+re.ageHeader,Xi=Math.min(ua-re.partTarget,re.targetduration*1.5);if(Xi>0){if(H&&Xi>H.tuneInGoal)this.warn("CDN Tune-in goal increased from: ".concat(H.tuneInGoal," to: ").concat(Xi," with playlist age: ").concat(re.age)),Xi=0;else{var ta=Math.floor(Xi/re.targetduration);if(dt+=ta,Kt!==void 0){var Pa=Math.round(Xi%re.targetduration/re.partTarget);Kt+=Pa}this.log("CDN Tune-in age: ".concat(re.ageHeader,"s last advanced ").concat(bi.toFixed(2),"s goal: ").concat(Xi," skip sn ").concat(ta," to part ").concat(Kt))}re.tuneInGoal=Xi}if(lt=this.getDeliveryDirectives(re,K.deliveryDirectives,dt,Kt),Er||!kn){this.loadPlaylist(lt);return}}else re.canBlockReload&&(lt=this.getDeliveryDirectives(re,K.deliveryDirectives,dt,Kt));var Ya=this.hls.mainForwardBufferInfo,Ba=Ya?Ya.end-Ya.len:0,Sa=(re.edge-Ba)*1e3,Go=Fr(re,Sa);re.updated&&Te>this.requestScheduled+Go&&(this.requestScheduled=Ae.loading.start),dt!==void 0&&re.canBlockReload?this.requestScheduled=Ae.loading.first+Go-(re.partTarget*1e3||1e3):this.requestScheduled===-1||this.requestScheduled+Go<Te?this.requestScheduled=Te:this.requestScheduled-Te<=0&&(this.requestScheduled+=Go);var Ls=this.requestScheduled-Te;Ls=Math.max(0,Ls),this.log("reload live playlist ".concat(L," in ").concat(Math.round(Ls)," ms")),this.timer=self.setTimeout(function(){return Z.loadPlaylist(lt)},Ls)}else this.clearTimer()}},{key:"getDeliveryDirectives",value:function(L,K,H,Z){var re=Bt(L,H);return K!=null&&K.skip&&L.deltaUpdateFailed&&(H=K.msn,Z=K.part,re=Dt.No),new jt(H,Z,re)}},{key:"checkRetry",value:function(L){var K=this,H=L.details,Z=ii(L),re=L.errorAction,Ae=re||{},Te=Ae.action,Ge=Ae.retryCount,lt=Ge===void 0?0:Ge,dt=Ae.retryConfig,Kt=!!re&&!!dt&&(Te===aa.RetryRequest||!re.resolved&&Te===aa.SendAlternateToPenaltyBox);if(Kt){var Er;if(this.requestScheduled=-1,Z&&(Er=L.context)!=null&&Er.deliveryDirectives)this.warn("Retrying playlist loading ".concat(lt+1,"/").concat(dt.maxNumRetry,' after "').concat(H,'" without delivery-directives')),this.loadPlaylist();else{var br=Ni(dt,lt);this.timer=self.setTimeout(function(){return K.loadPlaylist()},br),this.warn("Retrying playlist loading ".concat(lt+1,"/").concat(dt.maxNumRetry,' after "').concat(H,'" in ').concat(br,"ms"))}L.levelRetry=!0,re.resolved=!0}return Kt}}]),ve}(),Lr,Wr=function(ve){Object(o.a)(L,ve);var q=Object(e.a)(L);function L(K,H){var Z;return Object(r.a)(this,L),Z=q.call(this,K,"[level-controller]"),Z._levels=[],Z._firstLevel=-1,Z._startLevel=void 0,Z.currentLevel=null,Z.currentLevelIndex=-1,Z.manualLevelIndex=-1,Z.steering=void 0,Z.onParsedComplete=void 0,Z.steering=H,Z._registerListeners(),Z}return Object(s.a)(L,[{key:"_registerListeners",value:function(){var H=this.hls;H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.MANIFEST_LOADED,this.onManifestLoaded,this),H.on(w.LEVEL_LOADED,this.onLevelLoaded,this),H.on(w.LEVELS_UPDATED,this.onLevelsUpdated,this),H.on(w.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.on(w.FRAG_LOADED,this.onFragLoaded,this),H.on(w.ERROR,this.onError,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.MANIFEST_LOADED,this.onManifestLoaded,this),H.off(w.LEVEL_LOADED,this.onLevelLoaded,this),H.off(w.LEVELS_UPDATED,this.onLevelsUpdated,this),H.off(w.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.off(w.FRAG_LOADED,this.onFragLoaded,this),H.off(w.ERROR,this.onError,this)}},{key:"destroy",value:function(){this._unregisterListeners(),this.steering=null,this.resetLevels(),Object(t.a)(Object(m.a)(L.prototype),"destroy",this).call(this)}},{key:"startLoad",value:function(){var H=this._levels;H.forEach(function(Z){Z.loadError=0,Z.fragmentError=0}),Object(t.a)(Object(m.a)(L.prototype),"startLoad",this).call(this)}},{key:"resetLevels",value:function(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[]}},{key:"onManifestLoading",value:function(H,Z){this.resetLevels()}},{key:"onManifestLoaded",value:function(H,Z){var re=[],Ae={},Te;Z.levels.forEach(function(Ge){var lt,dt=Ge.attrs;((lt=Ge.audioCodec)==null?void 0:lt.indexOf("mp4a.40.34"))!==-1&&(Lr||(Lr=/chrome|firefox/i.test(navigator.userAgent)),Lr&&(Ge.audioCodec=void 0));var Kt=dt.AUDIO,Er=dt.CODECS,br=dt["FRAME-RATE"],jr=dt["PATHWAY-ID"],Kr=dt.RESOLUTION,In=dt.SUBTITLES,kn="".concat(jr||".","-"),Gn="".concat(kn).concat(Ge.bitrate,"-").concat(Kr,"-").concat(br,"-").concat(Er);Te=Ae[Gn],Te?Te.addFallback(Ge):(Te=new Ot(Ge),Ae[Gn]=Te,re.push(Te)),on(Te,"audio",Kt),on(Te,"text",In)}),this.filterAndSortMediaOptions(re,Z)}},{key:"filterAndSortMediaOptions",value:function(H,Z){var re=this,Ae=[],Te=[],Ge=!1,lt=!1,dt=!1,Kt=H.filter(function(Gn){var bi=Gn.audioCodec,ua=Gn.videoCodec,Xi=Gn.width,ta=Gn.height,Pa=Gn.unknownCodecs;return Ge||(Ge=!!(Xi&&ta)),lt||(lt=!!ua),dt||(dt=!!bi),!(Pa!=null&&Pa.length)&&(!bi||un(bi,"audio"))&&(!ua||un(ua,"video"))});if((Ge||lt)&&dt&&(Kt=Kt.filter(function(Gn){var bi=Gn.videoCodec,ua=Gn.width,Xi=Gn.height;return!!bi||!!(ua&&Xi)})),Kt.length===0){Promise.resolve().then(function(){if(re.hls){var Gn=new Error("no level with compatible codecs found in manifest");re.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:Z.url,error:Gn,reason:Gn.message})}});return}Z.audioTracks&&(Ae=Z.audioTracks.filter(function(Gn){return!Gn.audioCodec||un(Gn.audioCodec,"audio")}),Nn(Ae)),Z.subtitles&&(Te=Z.subtitles,Nn(Te));var Er=Kt.slice(0);Kt.sort(function(Gn,bi){return Gn.attrs["HDCP-LEVEL"]!==bi.attrs["HDCP-LEVEL"]?(Gn.attrs["HDCP-LEVEL"]||"")>(bi.attrs["HDCP-LEVEL"]||"")?1:-1:Gn.bitrate!==bi.bitrate?Gn.bitrate-bi.bitrate:Gn.attrs["FRAME-RATE"]!==bi.attrs["FRAME-RATE"]?Gn.attrs.decimalFloatingPoint("FRAME-RATE")-bi.attrs.decimalFloatingPoint("FRAME-RATE"):Gn.attrs.SCORE!==bi.attrs.SCORE?Gn.attrs.decimalFloatingPoint("SCORE")-bi.attrs.decimalFloatingPoint("SCORE"):Ge&&Gn.height!==bi.height?Gn.height-bi.height:0});var br=Er[0];if(this.steering&&(Kt=this.steering.filterParsedLevels(Kt),Kt.length!==Er.length)){for(var jr=0;jr<Er.length;jr++)if(Er[jr].pathwayId===Kt[0].pathwayId){br=Er[jr];break}}this._levels=Kt;for(var Kr=0;Kr<Kt.length;Kr++)if(Kt[Kr]===br){this._firstLevel=Kr,this.log("manifest loaded, ".concat(Kt.length," level(s) found, first bitrate: ").concat(br.bitrate));break}var In=dt&&!lt,kn={levels:Kt,audioTracks:Ae,subtitleTracks:Te,sessionData:Z.sessionData,sessionKeys:Z.sessionKeys,firstLevel:this._firstLevel,stats:Z.stats,audio:dt,video:lt,altAudio:!In&&Ae.some(function(Gn){return!!Gn.url})};this.hls.trigger(w.MANIFEST_PARSED,kn),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}},{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(H){var Z=this._levels;if(Z.length===0)return;if(H<0||H>=Z.length){var re=new Error("invalid level idx"),Ae=H<0;if(this.hls.trigger(w.ERROR,{type:O.OTHER_ERROR,details:I.LEVEL_SWITCH_ERROR,level:H,fatal:Ae,error:re,reason:re.message}),Ae)return;H=Math.min(H,Z.length-1)}var Te=this.currentLevelIndex,Ge=this.currentLevel,lt=Ge?Ge.attrs["PATHWAY-ID"]:void 0,dt=Z[H],Kt=dt.attrs["PATHWAY-ID"];if(this.currentLevelIndex=H,this.currentLevel=dt,Te===H&&dt.details&&Ge&<===Kt)return;this.log("Switching to level ".concat(H).concat(Kt?" with Pathway "+Kt:""," from level ").concat(Te).concat(lt?" with Pathway "+lt:""));var Er=E({},dt,{level:H,maxBitrate:dt.maxBitrate,attrs:dt.attrs,uri:dt.uri,urlId:dt.urlId});delete Er._attrs,delete Er._urlId,this.hls.trigger(w.LEVEL_SWITCHING,Er);var br=dt.details;if(!br||br.live){var jr=this.switchParams(dt.uri,Ge==null?void 0:Ge.details);this.loadPlaylist(jr)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(H){this.manualLevelIndex=H,this._startLevel===void 0&&(this._startLevel=H),H!==-1&&(this.level=H)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(H){this._firstLevel=H}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var H=this.hls.config.startLevel;return H!==void 0?H:this._firstLevel}else return this._startLevel},set:function(H){this._startLevel=H}},{key:"onError",value:function(H,Z){if(Z.fatal||!Z.context)return;Z.context.type===St.LEVEL&&Z.context.level===this.level&&this.checkRetry(Z)}},{key:"onFragLoaded",value:function(H,Z){var re=Z.frag;if(re!==void 0&&re.type===gt.MAIN){var Ae=this._levels[re.level];Ae!==void 0&&(Ae.loadError=0)}}},{key:"onLevelLoaded",value:function(H,Z){var re,Ae=Z.level,Te=Z.details,Ge=this._levels[Ae];if(!Ge){var lt;this.warn("Invalid level index ".concat(Ae)),(lt=Z.deliveryDirectives)!=null&<.skip&&(Te.deltaUpdateFailed=!0);return}Ae===this.currentLevelIndex?(Ge.fragmentError===0&&(Ge.loadError=0),this.playlistLoaded(Ae,Z,Ge.details)):(re=Z.deliveryDirectives)!=null&&re.skip&&(Te.deltaUpdateFailed=!0)}},{key:"onAudioTrackSwitched",value:function(H,Z){var re=this.currentLevel;if(!re)return;var Ae=this.hls.audioTracks[Z.id].groupId;if(re.audioGroupIds&&re.audioGroupId!==Ae){for(var Te=-1,Ge=0;Ge<re.audioGroupIds.length;Ge++)if(re.audioGroupIds[Ge]===Ae){Te=Ge;break}Te!==-1&&Te!==re.urlId&&(re.urlId=Te,this.canLoad&&this.startLoad())}}},{key:"loadPlaylist",value:function(H){Object(t.a)(Object(m.a)(L.prototype),"loadPlaylist",this).call(this);var Z=this.currentLevelIndex,re=this.currentLevel;if(re&&this.shouldLoadPlaylist(re)){var Ae=re.urlId,Te=re.uri;if(H)try{Te=H.addDirectives(Te)}catch(lt){this.warn("Could not construct new URL with HLS Delivery Directives: ".concat(lt))}var Ge=re.attrs["PATHWAY-ID"];this.log("Loading level index ".concat(Z).concat((H==null?void 0:H.msn)!==void 0?" at sn "+H.msn+" part "+H.part:""," with").concat(Ge?" Pathway "+Ge:""," URI ").concat(Ae+1,"/").concat(re.url.length," ").concat(Te)),this.clearTimer(),this.hls.trigger(w.LEVEL_LOADING,{url:Te,level:Z,id:Ae,deliveryDirectives:H||null})}}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(H){this.level=H,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=H)}},{key:"removeLevel",value:function(H,Z){var re=this,Ae=function(lt,dt){return dt!==Z},Te=this._levels.filter(function(Ge,lt){return lt!==H?!0:Ge.url.length>1&&Z!==void 0?(Ge.url=Ge.url.filter(Ae),Ge.audioGroupIds&&(Ge.audioGroupIds=Ge.audioGroupIds.filter(Ae)),Ge.textGroupIds&&(Ge.textGroupIds=Ge.textGroupIds.filter(Ae)),Ge.urlId=0,!0):(re.steering&&re.steering.removeLevel(Ge),!1)});this.hls.trigger(w.LEVELS_UPDATED,{levels:Te})}},{key:"onLevelsUpdated",value:function(H,Z){var re=Z.levels;re.forEach(function(Ae,Te){var Ge=Ae.details;Ge!=null&&Ge.fragments&&Ge.fragments.forEach(function(lt){lt.level=Te})}),this._levels=re}}]),L}(cr);function on(ve,q,L){if(!L)return;q==="audio"?(ve.audioGroupIds||(ve.audioGroupIds=[]),ve.audioGroupIds[ve.url.length-1]=L):q==="text"&&(ve.textGroupIds||(ve.textGroupIds=[]),ve.textGroupIds[ve.url.length-1]=L)}function Nn(ve){var q={};ve.forEach(function(L){var K=L.groupId||"";L.id=q[K]=q[K]||0,q[K]++})}var Et={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"},Cr=function(){function ve(q){Object(r.a)(this,ve),this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=q,this._registerListeners()}return Object(s.a)(ve,[{key:"_registerListeners",value:function(){var L=this.hls;L.on(w.BUFFER_APPENDED,this.onBufferAppended,this),L.on(w.FRAG_BUFFERED,this.onFragBuffered,this),L.on(w.FRAG_LOADED,this.onFragLoaded,this)}},{key:"_unregisterListeners",value:function(){var L=this.hls;L.off(w.BUFFER_APPENDED,this.onBufferAppended,this),L.off(w.FRAG_BUFFERED,this.onFragBuffered,this),L.off(w.FRAG_LOADED,this.onFragLoaded,this)}},{key:"destroy",value:function(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}},{key:"getAppendedFrag",value:function(L,K){var H=this.activePartLists[K];if(H)for(var Z=H.length;Z--;){var re=H[Z];if(!re)break;var Ae=re.end;if(re.start<=L&&Ae!==null&&L<=Ae)return re}return this.getBufferedFrag(L,K)}},{key:"getBufferedFrag",value:function(L,K){for(var H=this.fragments,Z=Object.keys(H),re=Z.length;re--;){var Ae=H[Z[re]];if((Ae==null?void 0:Ae.body.type)===K&&Ae.buffered){var Te=Ae.body;if(Te.start<=L&&L<=Te.end)return Te}}return null}},{key:"detectEvictedFragments",value:function(L,K,H,Z){var re=this;this.timeRanges&&(this.timeRanges[L]=K);var Ae=(Z==null?void 0:Z.fragment.sn)||-1;Object.keys(this.fragments).forEach(function(Te){var Ge=re.fragments[Te];if(!Ge)return;if(Ae>=Ge.body.sn)return;if(!Ge.buffered&&!Ge.loaded){Ge.body.type===H&&re.removeFragment(Ge.body);return}var lt=Ge.range[L];if(!lt)return;lt.time.some(function(dt){var Kt=!re.isTimeBuffered(dt.startPTS,dt.endPTS,K);return Kt&&re.removeFragment(Ge.body),Kt})})}},{key:"detectPartialFragments",value:function(L){var K=this,H=this.timeRanges,Z=L.frag,re=L.part;if(!H||Z.sn==="initSegment")return;var Ae=$r(Z),Te=this.fragments[Ae];if(!Te)return;var Ge=!Z.relurl;Object.keys(H).forEach(function(lt){var dt=Z.elementaryStreams[lt];if(!dt)return;var Kt=H[lt],Er=Ge||dt.partial===!0;Te.range[lt]=K.getBufferedTimes(Z,re,Er,Kt)}),Te.loaded=null,Object.keys(Te.range).length?(Te.buffered=!0,Te.body.endList&&(this.endListFragments[Te.body.type]=Te),_r(Te)||this.removeParts(Z.sn-1,Z.type)):this.removeFragment(Te.body)}},{key:"removeParts",value:function(L,K){var H=this.activePartLists[K];if(!H)return;this.activePartLists[K]=H.filter(function(Z){return Z.fragment.sn>=L})}},{key:"fragBuffered",value:function(L,K){var H=$r(L),Z=this.fragments[H];!Z&&K&&(Z=this.fragments[H]={body:L,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},L.gap&&(this.hasGaps=!0)),Z&&(Z.loaded=null,Z.buffered=!0)}},{key:"getBufferedTimes",value:function(L,K,H,Z){for(var re={time:[],partial:H},Ae=L.start,Te=L.end,Ge=L.minEndPTS||Te,lt=L.maxStartPTS||Ae,dt=0;dt<Z.length;dt++){var Kt=Z.start(dt)-this.bufferPadding,Er=Z.end(dt)+this.bufferPadding;if(lt>=Kt&&Ge<=Er){re.time.push({startPTS:Math.max(Ae,Z.start(dt)),endPTS:Math.min(Te,Z.end(dt))});break}else if(Ae<Er&&Te>Kt)re.partial=!0,re.time.push({startPTS:Math.max(Ae,Z.start(dt)),endPTS:Math.min(Te,Z.end(dt))});else if(Te<=Kt)break}return re}},{key:"getPartialFragment",value:function(L){var K=null,H,Z,re,Ae=0,Te=this.bufferPadding,Ge=this.fragments;return Object.keys(Ge).forEach(function(lt){var dt=Ge[lt];if(!dt)return;_r(dt)&&(Z=dt.body.start-Te,re=dt.body.end+Te,L>=Z&&L<=re&&(H=Math.min(L-Z,re-L),Ae<=H&&(K=dt.body,Ae=H)))}),K}},{key:"isEndListAppended",value:function(L){var K=this.endListFragments[L];return K!==void 0&&(K.buffered||_r(K))}},{key:"getState",value:function(L){var K=$r(L),H=this.fragments[K];return H?H.buffered?_r(H)?Et.PARTIAL:Et.OK:Et.APPENDING:Et.NOT_LOADED}},{key:"isTimeBuffered",value:function(L,K,H){for(var Z,re,Ae=0;Ae<H.length;Ae++){if(Z=H.start(Ae)-this.bufferPadding,re=H.end(Ae)+this.bufferPadding,L>=Z&&K<=re)return!0;if(K<=Z)return!1}return!1}},{key:"onFragLoaded",value:function(L,K){var H=K.frag,Z=K.part;if(H.sn==="initSegment"||H.bitrateTest)return;var re=Z?null:K,Ae=$r(H);this.fragments[Ae]={body:H,appendedPTS:null,loaded:re,buffered:!1,range:Object.create(null)}}},{key:"onBufferAppended",value:function(L,K){var H=this,Z=K.frag,re=K.part,Ae=K.timeRanges;if(Z.sn==="initSegment")return;var Te=Z.type;if(re){var Ge=this.activePartLists[Te];Ge||(this.activePartLists[Te]=Ge=[]),Ge.push(re)}this.timeRanges=Ae,Object.keys(Ae).forEach(function(lt){var dt=Ae[lt];H.detectEvictedFragments(lt,dt,Te,re)})}},{key:"onFragBuffered",value:function(L,K){this.detectPartialFragments(K)}},{key:"hasFragment",value:function(L){var K=$r(L);return!!this.fragments[K]}},{key:"hasParts",value:function(L){var K;return!!((K=this.activePartLists[L])!=null&&K.length)}},{key:"removeFragmentsInRange",value:function(L,K,H,Z,re){var Ae=this;if(Z&&!this.hasGaps)return;Object.keys(this.fragments).forEach(function(Te){var Ge=Ae.fragments[Te];if(!Ge)return;var lt=Ge.body;if(lt.type!==H||Z&&!lt.gap)return;lt.start<K&<.end>L&&(Ge.buffered||re)&&Ae.removeFragment(lt)})}},{key:"removeFragment",value:function(L){var K=$r(L);L.stats.loaded=0,L.clearElementaryStreamInfo();var H=this.activePartLists[L.type];if(H){var Z=L.sn;this.activePartLists[L.type]=H.filter(function(re){return re.fragment.sn!==Z})}delete this.fragments[K],L.endList&&delete this.endListFragments[L.type]}},{key:"removeAllFragments",value:function(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1}}]),ve}();function _r(ve){var q,L,K;return ve.buffered&&(ve.body.gap||((q=ve.range.video)==null?void 0:q.partial)||((L=ve.range.audio)==null?void 0:L.partial)||((K=ve.range.audiovideo)==null?void 0:K.partial))}function $r(ve){return"".concat(ve.type,"_").concat(ve.level,"_").concat(ve.urlId,"_").concat(ve.sn)}var yn=Math.pow(2,17),Tn=function(){function ve(q){Object(r.a)(this,ve),this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=q}return Object(s.a)(ve,[{key:"destroy",value:function(){this.loader&&(this.loader.destroy(),this.loader=null)}},{key:"abort",value:function(){this.loader&&this.loader.abort()}},{key:"load",value:function(L,K){var H=this,Z=L.url;if(!Z)return Promise.reject(new Fn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_ERROR,fatal:!1,frag:L,error:new Error("Fragment does not have a ".concat(Z?"part list":"url")),networkDetails:null}));this.abort();var re=this.config,Ae=re.fLoader,Te=re.loader;return new Promise(function(Ge,lt){if(H.loader&&H.loader.destroy(),L.gap){lt(Qn(L));return}var dt=H.loader=L.loader=Ae?new Ae(re):new Te(re),Kt=vn(L),Er=Li(re.fragLoadPolicy.default),br={loadPolicy:Er,timeout:Er.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:L.sn==="initSegment"?Infinity:yn};L.stats=dt.stats,dt.load(Kt,br,{onSuccess:function(Kr,In,kn,Gn){H.resetLoader(L,dt);var bi=Kr.data;kn.resetIV&&L.decryptdata&&(L.decryptdata.iv=new Uint8Array(bi.slice(0,16)),bi=bi.slice(16)),Ge({frag:L,part:null,payload:bi,networkDetails:Gn})},onError:function(Kr,In,kn,Gn){H.resetLoader(L,dt),lt(new Fn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_ERROR,fatal:!1,frag:L,response:b({url:Z,data:void 0},Kr),error:new Error("HTTP Error ".concat(Kr.code," ").concat(Kr.text)),networkDetails:kn,stats:Gn}))},onAbort:function(Kr,In,kn){H.resetLoader(L,dt),lt(new Fn({type:O.NETWORK_ERROR,details:I.INTERNAL_ABORTED,fatal:!1,frag:L,error:new Error("Aborted"),networkDetails:kn,stats:Kr}))},onTimeout:function(Kr,In,kn){H.resetLoader(L,dt),lt(new Fn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_TIMEOUT,fatal:!1,frag:L,error:new Error("Timeout after ".concat(br.timeout,"ms")),networkDetails:kn,stats:Kr}))},onProgress:function(Kr,In,kn,Gn){K&&K({frag:L,part:null,payload:kn,networkDetails:Gn})}})})}},{key:"loadPart",value:function(L,K,H){var Z=this;this.abort();var re=this.config,Ae=re.fLoader,Te=re.loader;return new Promise(function(Ge,lt){if(Z.loader&&Z.loader.destroy(),L.gap||K.gap){lt(Qn(L,K));return}var dt=Z.loader=L.loader=Ae?new Ae(re):new Te(re),Kt=vn(L,K),Er=Li(re.fragLoadPolicy.default),br={loadPolicy:Er,timeout:Er.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:yn};K.stats=dt.stats,dt.load(Kt,br,{onSuccess:function(Kr,In,kn,Gn){Z.resetLoader(L,dt),Z.updateStatsFromPart(L,K);var bi={frag:L,part:K,payload:Kr.data,networkDetails:Gn};H(bi),Ge(bi)},onError:function(Kr,In,kn,Gn){Z.resetLoader(L,dt),lt(new Fn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_ERROR,fatal:!1,frag:L,part:K,response:b({url:Kt.url,data:void 0},Kr),error:new Error("HTTP Error ".concat(Kr.code," ").concat(Kr.text)),networkDetails:kn,stats:Gn}))},onAbort:function(Kr,In,kn){L.stats.aborted=K.stats.aborted,Z.resetLoader(L,dt),lt(new Fn({type:O.NETWORK_ERROR,details:I.INTERNAL_ABORTED,fatal:!1,frag:L,part:K,error:new Error("Aborted"),networkDetails:kn,stats:Kr}))},onTimeout:function(Kr,In,kn){Z.resetLoader(L,dt),lt(new Fn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_TIMEOUT,fatal:!1,frag:L,part:K,error:new Error("Timeout after ".concat(br.timeout,"ms")),networkDetails:kn,stats:Kr}))}})})}},{key:"updateStatsFromPart",value:function(L,K){var H=L.stats,Z=K.stats,re=Z.total;if(H.loaded+=Z.loaded,re){var Ae=Math.round(L.duration/K.duration),Te=Math.min(Math.round(H.loaded/re),Ae),Ge=Ae-Te,lt=Ge*Math.round(H.loaded/Te);H.total=H.loaded+lt}else H.total=Math.max(H.loaded,H.total);var dt=H.loading,Kt=Z.loading;dt.start?dt.first+=Kt.first-Kt.start:(dt.start=Kt.start,dt.first=Kt.first),dt.end=Kt.end}},{key:"resetLoader",value:function(L,K){L.loader=null,this.loader===K&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),K.destroy()}}]),ve}();function vn(ve){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,L=q||ve,K={frag:ve,part:q,responseType:"arraybuffer",url:L.url,headers:{},rangeStart:0,rangeEnd:0},H=L.byteRangeStartOffset,Z=L.byteRangeEndOffset;if(T(H)&&T(Z)){var re,Ae=H,Te=Z;if(ve.sn==="initSegment"&&((re=ve.decryptdata)==null?void 0:re.method)==="AES-128"){var Ge=Z-H;Ge%16&&(Te=Z+(16-Ge%16)),H!==0&&(K.resetIV=!0,Ae=H-16)}K.rangeStart=Ae,K.rangeEnd=Te}return K}function Qn(ve,q){var L=new Error("GAP ".concat(ve.gap?"tag":"attribute"," found")),K={type:O.MEDIA_ERROR,details:I.FRAG_GAP,fatal:!1,frag:ve,error:L,networkDetails:null};return q&&(K.part=q),(q||ve).stats.aborted=!0,new Fn(K)}var Fn=function(ve){Object(o.a)(L,ve);var q=Object(e.a)(L);function L(K){var H;return Object(r.a)(this,L),H=q.call(this,K.error.message),H.data=void 0,H.data=K,H}return Object(s.a)(L)}(i(Error)),fi=function(){function ve(q){Object(r.a)(this,ve),this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=q}return Object(s.a)(ve,[{key:"abort",value:function(L){for(var K in this.keyUriToKeyInfo){var H=this.keyUriToKeyInfo[K].loader;if(H){if(L&&L!==H.context.frag.type)return;H.abort()}}}},{key:"detach",value:function(){for(var L in this.keyUriToKeyInfo){var K=this.keyUriToKeyInfo[L];(K.mediaKeySessionContext||K.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[L]}}},{key:"destroy",value:function(){this.detach();for(var L in this.keyUriToKeyInfo){var K=this.keyUriToKeyInfo[L].loader;K&&K.destroy()}this.keyUriToKeyInfo={}}},{key:"createKeyLoadError",value:function(L){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I.KEY_LOAD_ERROR,H=arguments.length>2?arguments[2]:void 0,Z=arguments.length>3?arguments[3]:void 0,re=arguments.length>4?arguments[4]:void 0;return new Fn({type:O.NETWORK_ERROR,details:K,fatal:!1,frag:L,response:re,error:H,networkDetails:Z})}},{key:"loadClear",value:function(L,K){var H=this;if(this.emeController&&this.config.emeEnabled)for(var Z=L.sn,re=L.cc,Ae=function(){var dt=K[Te];if(re<=dt.cc&&(Z==="initSegment"||dt.sn==="initSegment"||Z<dt.sn))return H.emeController.selectKeySystemFormat(dt).then(function(Kt){dt.setKeyFormat(Kt)}),"break"},Te=0;Te<K.length;Te++){var Ge=Ae();if(Ge==="break")break}}},{key:"load",value:function(L){var K=this;return!L.decryptdata&&L.encrypted&&this.emeController?this.emeController.selectKeySystemFormat(L).then(function(H){return K.loadInternal(L,H)}):this.loadInternal(L)}},{key:"loadInternal",value:function(L,K){var H,Z;K&&L.setKeyFormat(K);var re=L.decryptdata;if(!re){var Ae=new Error(K?"Expected frag.decryptdata to be defined after setting format ".concat(K):"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(L,I.KEY_LOAD_ERROR,Ae))}var Te=re.uri;if(!Te)return Promise.reject(this.createKeyLoadError(L,I.KEY_LOAD_ERROR,new Error('Invalid key URI: "'.concat(Te,'"'))));var Ge=this.keyUriToKeyInfo[Te];if((H=Ge)!=null&&H.decryptdata.key)return re.key=Ge.decryptdata.key,Promise.resolve({frag:L,keyInfo:Ge});if((Z=Ge)!=null&&Z.keyLoadPromise){var lt;switch((lt=Ge.mediaKeySessionContext)==null?void 0:lt.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return Ge.keyLoadPromise.then(function(dt){return re.key=dt.keyInfo.decryptdata.key,{frag:L,keyInfo:Ge}})}}Ge=this.keyUriToKeyInfo[Te]={decryptdata:re,keyLoadPromise:null,loader:null,mediaKeySessionContext:null};switch(re.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return re.keyFormat==="identity"?this.loadKeyHTTP(Ge,L):this.loadKeyEME(Ge,L);case"AES-128":return this.loadKeyHTTP(Ge,L);default:return Promise.reject(this.createKeyLoadError(L,I.KEY_LOAD_ERROR,new Error('Key supplied with unsupported METHOD: "'.concat(re.method,'"'))))}}},{key:"loadKeyEME",value:function(L,K){var H={frag:K,keyInfo:L};if(this.emeController&&this.config.emeEnabled){var Z=this.emeController.loadKey(H);if(Z)return(L.keyLoadPromise=Z.then(function(re){return L.mediaKeySessionContext=re,H})).catch(function(re){throw L.keyLoadPromise=null,re})}return Promise.resolve(H)}},{key:"loadKeyHTTP",value:function(L,K){var H=this,Z=this.config,re=Z.loader,Ae=new re(Z);return K.keyLoader=L.loader=Ae,L.keyLoadPromise=new Promise(function(Te,Ge){var lt={keyInfo:L,frag:K,responseType:"arraybuffer",url:L.decryptdata.uri},dt=Z.keyLoadPolicy.default,Kt={loadPolicy:dt,timeout:dt.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Er={onSuccess:function(jr,Kr,In,kn){var Gn=In.frag,bi=In.keyInfo,ua=In.url;if(!Gn.decryptdata||bi!==H.keyUriToKeyInfo[ua])return Ge(H.createKeyLoadError(Gn,I.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),kn));bi.decryptdata.key=Gn.decryptdata.key=new Uint8Array(jr.data),Gn.keyLoader=null,bi.loader=null,Te({frag:Gn,keyInfo:bi})},onError:function(jr,Kr,In,kn){H.resetLoader(Kr),Ge(H.createKeyLoadError(K,I.KEY_LOAD_ERROR,new Error("HTTP Error ".concat(jr.code," loading key ").concat(jr.text)),In,b({url:lt.url,data:void 0},jr)))},onTimeout:function(jr,Kr,In){H.resetLoader(Kr),Ge(H.createKeyLoadError(K,I.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),In))},onAbort:function(jr,Kr,In){H.resetLoader(Kr),Ge(H.createKeyLoadError(K,I.INTERNAL_ABORTED,new Error("key loading aborted"),In))}};Ae.load(lt,Kt,Er)})}},{key:"resetLoader",value:function(L){var K=L.frag,H=L.keyInfo,Z=L.url,re=H.loader;K.keyLoader===re&&(K.keyLoader=null,H.loader=null),delete this.keyUriToKeyInfo[Z],re&&re.destroy()}}]),ve}(),Ri=function(){function ve(){Object(r.a)(this,ve),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}return Object(s.a)(ve,[{key:"destroy",value:function(){this.onHandlerDestroying(),this.onHandlerDestroyed()}},{key:"onHandlerDestroying",value:function(){this.clearNextTick(),this.clearInterval()}},{key:"onHandlerDestroyed",value:function(){}},{key:"hasInterval",value:function(){return!!this._tickInterval}},{key:"hasNextTick",value:function(){return!!this._tickTimer}},{key:"setInterval",value:function(L){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,L),!0)}},{key:"clearInterval",value:function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}},{key:"clearNextTick",value:function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}},{key:"tick",value:function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}},{key:"tickImmediate",value:function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}},{key:"doTick",value:function(){}}]),ve}(),yi={length:0,start:function(){return 0},end:function(){return 0}},Ci=function(){function ve(){Object(r.a)(this,ve)}return Object(s.a)(ve,null,[{key:"isBuffered",value:function(L,K){try{if(L){for(var H=ve.getBuffered(L),Z=0;Z<H.length;Z++)if(K>=H.start(Z)&&K<=H.end(Z))return!0}}catch(re){}return!1}},{key:"bufferInfo",value:function(L,K,H){try{if(L){var Z=ve.getBuffered(L),re=[],Ae;for(Ae=0;Ae<Z.length;Ae++)re.push({start:Z.start(Ae),end:Z.end(Ae)});return this.bufferedInfo(re,K,H)}}catch(Te){}return{len:0,start:K,end:K,nextStart:void 0}}},{key:"bufferedInfo",value:function(L,K,H){K=Math.max(0,K),L.sort(function(Kr,In){var kn=Kr.start-In.start;return kn||In.end-Kr.end});var Z=[];if(H)for(var re=0;re<L.length;re++){var Ae=Z.length;if(Ae){var Te=Z[Ae-1].end;L[re].start-Te<H?L[re].end>Te&&(Z[Ae-1].end=L[re].end):Z.push(L[re])}else Z.push(L[re])}else Z=L;for(var Ge=0,lt,dt=K,Kt=K,Er=0;Er<Z.length;Er++){var br=Z[Er].start,jr=Z[Er].end;if(K+H>=br&&K<jr)dt=br,Kt=jr,Ge=Kt-K;else if(K+H<br){lt=br;break}}return{len:Ge,start:dt||0,end:Kt||0,nextStart:lt}}},{key:"getBuffered",value:function(L){try{return L.buffered}catch(K){return j.log("failed to get media.buffered",K),yi}}}]),ve}(),Wi=Object(s.a)(function ve(q,L,K){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,re=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;Object(r.a)(this,ve),this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=qi(),this.buffering={audio:qi(),video:qi(),audiovideo:qi()},this.level=q,this.sn=L,this.id=K,this.size=H,this.part=Z,this.partial=re});function qi(){return{start:0,executeStart:0,executeEnd:0,end:0}}function zi(ve,q){for(var L=null,K=0,H=ve.length;K<H;K++){var Z=ve[K];if(Z&&Z.cc===q){L=Z;break}}return L}function Ki(ve,q,L){return!!(q.details&&(L.endCC>L.startCC||ve&&ve.cc<L.startCC))}function ji(ve,q){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,K=ve.fragments,H=q.fragments;if(!H.length||!K.length){j.log("No fragments to align");return}var Z=zi(K,H[0].cc);if(!Z||Z&&!Z.startPTS){j.log("No frag in previous level to align on");return}return Z}function Yi(ve,q){if(ve){var L=ve.start+q;ve.start=ve.startPTS=L,ve.endPTS=L+ve.duration}}function ca(ve,q){for(var L=q.fragments,K=0,H=L.length;K<H;K++)Yi(L[K],ve);q.fragmentHint&&Yi(q.fragmentHint,ve),q.alignedSliding=!0}function Ca(ve,q,L){if(!q)return;ra(ve,L,q),!L.alignedSliding&&q.details&&Ma(L,q.details),!L.alignedSliding&&q.details&&!L.skippedSegments&&ci(q.details,L)}function ra(ve,q,L){if(Ki(ve,L,q)){var K=ji(L.details,q);K&&T(K.start)&&(j.log("Adjusting PTS using last level due to CC increase within current level ".concat(q.url)),ca(K.start,q))}}function Ma(ve,q){if(!q.fragments.length||!ve.hasProgramDateTime||!q.hasProgramDateTime)return;var L=q.fragments[0].programDateTime,K=ve.fragments[0].programDateTime,H=(K-L)/1e3+q.fragments[0].start;H&&T(H)&&(j.log("Adjusting PTS using programDateTime delta ".concat(K-L,"ms, sliding:").concat(H.toFixed(3)," ").concat(ve.url," ")),ca(H,ve))}function La(ve,q){if(!ve.hasProgramDateTime||!q.hasProgramDateTime)return;var L=ve.fragments,K=q.fragments;if(!L.length||!K.length)return;var H=Math.round(K.length/2)-1,Z=K[H],re=zi(L,Z.cc)||L[Math.round(L.length/2)-1],Ae=Z.programDateTime,Te=re.programDateTime;if(Ae===null||Te===null)return;var Ge=(Te-Ae)/1e3-(re.start-Z.start);ca(Ge,ve)}var va=function(){function ve(q,L){Object(r.a)(this,ve),this.subtle=void 0,this.aesIV=void 0,this.subtle=q,this.aesIV=L}return Object(s.a)(ve,[{key:"decrypt",value:function(L,K){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},K,L)}}]),ve}(),ga=function(){function ve(q,L){Object(r.a)(this,ve),this.subtle=void 0,this.key=void 0,this.subtle=q,this.key=L}return Object(s.a)(ve,[{key:"expandKey",value:function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])}}]),ve}();function Oa(ve){var q=ve.byteLength,L=q&&new DataView(ve.buffer).getUint8(q-1);return L?Le(ve,0,q-L):ve}var Aa=function(){function ve(){Object(r.a)(this,ve),this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}return Object(s.a)(ve,[{key:"uint8ArrayToUint32Array_",value:function(L){for(var K=new DataView(L),H=new Uint32Array(4),Z=0;Z<4;Z++)H[Z]=K.getUint32(Z*4);return H}},{key:"initTable",value:function(){var L=this.sBox,K=this.invSBox,H=this.subMix,Z=H[0],re=H[1],Ae=H[2],Te=H[3],Ge=this.invSubMix,lt=Ge[0],dt=Ge[1],Kt=Ge[2],Er=Ge[3],br=new Uint32Array(256),jr=0,Kr=0,In=0;for(In=0;In<256;In++)In<128?br[In]=In<<1:br[In]=In<<1^283;for(In=0;In<256;In++){var kn=Kr^Kr<<1^Kr<<2^Kr<<3^Kr<<4;kn=kn>>>8^kn&255^99,L[jr]=kn,K[kn]=jr;var Gn=br[jr],bi=br[Gn],ua=br[bi],Xi=br[kn]*257^kn*16843008;Z[jr]=Xi<<24|Xi>>>8,re[jr]=Xi<<16|Xi>>>16,Ae[jr]=Xi<<8|Xi>>>24,Te[jr]=Xi,Xi=ua*16843009^bi*65537^Gn*257^jr*16843008,lt[kn]=Xi<<24|Xi>>>8,dt[kn]=Xi<<16|Xi>>>16,Kt[kn]=Xi<<8|Xi>>>24,Er[kn]=Xi,jr?(jr=Gn^br[br[br[ua^Gn]]],Kr^=br[br[Kr]]):jr=Kr=1}}},{key:"expandKey",value:function(L){for(var K=this.uint8ArrayToUint32Array_(L),H=!0,Z=0;Z<K.length&&H;)H=K[Z]===this.key[Z],Z++;if(H)return;this.key=K;var re=this.keySize=K.length;if(re!==4&&re!==6&&re!==8)throw new Error("Invalid aes key size="+re);var Ae=this.ksRows=(re+6+1)*4,Te,Ge,lt=this.keySchedule=new Uint32Array(Ae),dt=this.invKeySchedule=new Uint32Array(Ae),Kt=this.sBox,Er=this.rcon,br=this.invSubMix,jr=br[0],Kr=br[1],In=br[2],kn=br[3],Gn,bi;for(Te=0;Te<Ae;Te++){if(Te<re){Gn=lt[Te]=K[Te];continue}bi=Gn,Te%re===0?(bi=bi<<8|bi>>>24,bi=Kt[bi>>>24]<<24|Kt[bi>>>16&255]<<16|Kt[bi>>>8&255]<<8|Kt[bi&255],bi^=Er[Te/re|0]<<24):re>6&&Te%re===4&&(bi=Kt[bi>>>24]<<24|Kt[bi>>>16&255]<<16|Kt[bi>>>8&255]<<8|Kt[bi&255]),lt[Te]=Gn=(lt[Te-re]^bi)>>>0}for(Ge=0;Ge<Ae;Ge++)Te=Ae-Ge,Ge&3?bi=lt[Te]:bi=lt[Te-4],Ge<4||Te<=4?dt[Ge]=bi:dt[Ge]=jr[Kt[bi>>>24]]^Kr[Kt[bi>>>16&255]]^In[Kt[bi>>>8&255]]^kn[Kt[bi&255]],dt[Ge]=dt[Ge]>>>0}},{key:"networkToHostOrderSwap",value:function(L){return L<<24|(L&65280)<<8|(L&16711680)>>8|L>>>24}},{key:"decrypt",value:function(L,K,H){for(var Z=this.keySize+6,re=this.invKeySchedule,Ae=this.invSBox,Te=this.invSubMix,Ge=Te[0],lt=Te[1],dt=Te[2],Kt=Te[3],Er=this.uint8ArrayToUint32Array_(H),br=Er[0],jr=Er[1],Kr=Er[2],In=Er[3],kn=new Int32Array(L),Gn=new Int32Array(kn.length),bi,ua,Xi,ta,Pa,Ya,Ba,Sa,Go,Ls,ys,bs,Fs,ws,Ws=this.networkToHostOrderSwap;K<kn.length;){for(Go=Ws(kn[K]),Ls=Ws(kn[K+1]),ys=Ws(kn[K+2]),bs=Ws(kn[K+3]),Pa=Go^re[0],Ya=bs^re[1],Ba=ys^re[2],Sa=Ls^re[3],Fs=4,ws=1;ws<Z;ws++)bi=Ge[Pa>>>24]^lt[Ya>>16&255]^dt[Ba>>8&255]^Kt[Sa&255]^re[Fs],ua=Ge[Ya>>>24]^lt[Ba>>16&255]^dt[Sa>>8&255]^Kt[Pa&255]^re[Fs+1],Xi=Ge[Ba>>>24]^lt[Sa>>16&255]^dt[Pa>>8&255]^Kt[Ya&255]^re[Fs+2],ta=Ge[Sa>>>24]^lt[Pa>>16&255]^dt[Ya>>8&255]^Kt[Ba&255]^re[Fs+3],Pa=bi,Ya=ua,Ba=Xi,Sa=ta,Fs=Fs+4;bi=Ae[Pa>>>24]<<24^Ae[Ya>>16&255]<<16^Ae[Ba>>8&255]<<8^Ae[Sa&255]^re[Fs],ua=Ae[Ya>>>24]<<24^Ae[Ba>>16&255]<<16^Ae[Sa>>8&255]<<8^Ae[Pa&255]^re[Fs+1],Xi=Ae[Ba>>>24]<<24^Ae[Sa>>16&255]<<16^Ae[Pa>>8&255]<<8^Ae[Ya&255]^re[Fs+2],ta=Ae[Sa>>>24]<<24^Ae[Pa>>16&255]<<16^Ae[Ya>>8&255]<<8^Ae[Ba&255]^re[Fs+3],Gn[K]=Ws(bi^br),Gn[K+1]=Ws(ta^jr),Gn[K+2]=Ws(Xi^Kr),Gn[K+3]=Ws(ua^In),br=Go,jr=Ls,Kr=ys,In=bs,K=K+4}return Gn.buffer}}]),ve}(),Ga=16,_a=function(){function ve(q){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=L.removePKCS7Padding,H=K===void 0?!0:K;if(Object(r.a)(this,ve),this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.useSoftware=q.enableSoftwareAES,this.removePKCS7Padding=H,H)try{var Z=self.crypto;Z&&(this.subtle=Z.subtle||Z.webkitSubtle)}catch(re){}this.subtle===null&&(this.useSoftware=!0)}return Object(s.a)(ve,[{key:"destroy",value:function(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}},{key:"isSync",value:function(){return this.useSoftware}},{key:"flush",value:function(){var L=this.currentResult,K=this.remainderData;if(!L||K)return this.reset(),null;var H=new Uint8Array(L);return this.reset(),this.removePKCS7Padding?Oa(H):H}},{key:"reset",value:function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}},{key:"decrypt",value:function(L,K,H){var Z=this;return this.useSoftware?new Promise(function(re,Ae){Z.softwareDecrypt(new Uint8Array(L),K,H);var Te=Z.flush();Te?re(Te.buffer):Ae(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(L),K,H)}},{key:"softwareDecrypt",value:function(L,K,H){var Z=this.currentIV,re=this.currentResult,Ae=this.remainderData;this.logOnce("JS AES decrypt"),Ae&&(L=_t(Ae,L),this.remainderData=null);var Te=this.getValidChunk(L);if(!Te.length)return null;Z&&(H=Z);var Ge=this.softwareDecrypter;Ge||(Ge=this.softwareDecrypter=new Aa),Ge.expandKey(K);var lt=re;return this.currentResult=Ge.decrypt(Te.buffer,0,H),this.currentIV=Le(Te,-16).buffer,lt||null}},{key:"webCryptoDecrypt",value:function(L,K,H){var Z=this,re=this.subtle;return(this.key!==K||!this.fastAesKey)&&(this.key=K,this.fastAesKey=new ga(re,K)),this.fastAesKey.expandKey().then(function(Ae){if(!re)return Promise.reject(new Error("web crypto not initialized"));Z.logOnce("WebCrypto AES decrypt");var Te=new va(re,new Uint8Array(H));return Te.decrypt(L.buffer,Ae)}).catch(function(Ae){return j.warn("[decrypter]: WebCrypto Error, disable WebCrypto API, ".concat(Ae.name,": ").concat(Ae.message)),Z.onWebCryptoError(L,K,H)})}},{key:"onWebCryptoError",value:function(L,K,H){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(L,K,H);var Z=this.flush();if(Z)return Z.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")}},{key:"getValidChunk",value:function(L){var K=L,H=L.length-L.length%Ga;return H!==L.length&&(K=Le(L,0,H),this.remainderData=Le(L,H)),K}},{key:"logOnce",value:function(L){if(!this.logEnabled)return;j.log("[decrypter]: ".concat(L)),this.logEnabled=!1}}]),ve}(),Va={toString:function(q){for(var L="",K=q.length,H=0;H<K;H++)L+="[".concat(q.start(H).toFixed(3),"-").concat(q.end(H).toFixed(3),"]");return L}},Bi={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"},io=function(ve){Object(o.a)(L,ve);var q=Object(e.a)(L);function L(K,H,Z,re,Ae){var Te;return Object(r.a)(this,L),Te=q.call(this),Te.hls=void 0,Te.fragPrevious=null,Te.fragCurrent=null,Te.fragmentTracker=void 0,Te.transmuxer=null,Te._state=Bi.STOPPED,Te.playlistType=void 0,Te.media=null,Te.mediaBuffer=null,Te.config=void 0,Te.bitrateTest=!1,Te.lastCurrentTime=0,Te.nextLoadPosition=0,Te.startPosition=0,Te.startTimeOffset=null,Te.loadedmetadata=!1,Te.retryDate=0,Te.levels=null,Te.fragmentLoader=void 0,Te.keyLoader=void 0,Te.levelLastLoaded=null,Te.startFragRequested=!1,Te.decrypter=void 0,Te.initPTS=[],Te.onvseeking=null,Te.onvended=null,Te.logPrefix="",Te.log=void 0,Te.warn=void 0,Te.playlistType=Ae,Te.logPrefix=re,Te.log=j.log.bind(j,"".concat(re,":")),Te.warn=j.warn.bind(j,"".concat(re,":")),Te.hls=K,Te.fragmentLoader=new Tn(K.config),Te.keyLoader=Z,Te.fragmentTracker=H,Te.config=K.config,Te.decrypter=new _a(K.config),K.on(w.MANIFEST_LOADED,Te.onManifestLoaded,Object(A.a)(Te)),Te}return Object(s.a)(L,[{key:"doTick",value:function(){this.onTickEnd()}},{key:"onTickEnd",value:function(){}},{key:"startLoad",value:function(H){}},{key:"stopLoad",value:function(){this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);var H=this.fragCurrent;H!=null&&H.loader&&(H.abortRequests(),this.fragmentTracker.removeFragment(H)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=Bi.STOPPED}},{key:"_streamEnded",value:function(H,Z){if(Z.live||H.nextStart||!H.end||!this.media)return!1;var re=Z.partList;if(re!=null&&re.length){var Ae=re[re.length-1],Te=Ci.isBuffered(this.media,Ae.start+Ae.duration/2);return Te}var Ge=Z.fragments[Z.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(Ge)}},{key:"getLevelDetails",value:function(){if(this.levels&&this.levelLastLoaded!==null){var H;return(H=this.levels[this.levelLastLoaded])==null?void 0:H.details}}},{key:"onMediaAttached",value:function(H,Z){var re=this.media=this.mediaBuffer=Z.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),re.addEventListener("seeking",this.onvseeking),re.addEventListener("ended",this.onvended);var Ae=this.config;this.levels&&Ae.autoStartLoad&&this.state===Bi.STOPPED&&this.startLoad(Ae.startPosition)}},{key:"onMediaDetaching",value:function(){var H=this.media;H!=null&&H.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),H&&this.onvseeking&&this.onvended&&(H.removeEventListener("seeking",this.onvseeking),H.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.keyLoader&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}},{key:"onMediaSeeking",value:function(){var H=this.config,Z=this.fragCurrent,re=this.media,Ae=this.mediaBuffer,Te=this.state,Ge=re?re.currentTime:0,lt=Ci.bufferInfo(Ae||re,Ge,H.maxBufferHole);if(this.log("media seeking to ".concat(T(Ge)?Ge.toFixed(3):Ge,", state: ").concat(Te)),this.state===Bi.ENDED)this.resetLoadingState();else if(Z){var dt=H.maxFragLookUpTolerance,Kt=Z.start-dt,Er=Z.start+Z.duration+dt;if(!lt.len||Er<lt.start||Kt>lt.end){var br=Ge>Er;(Ge<Kt||br)&&(br&&Z.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),Z.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}re&&(this.fragmentTracker.removeFragmentsInRange(Ge,Infinity,this.playlistType,!0),this.lastCurrentTime=Ge),!this.loadedmetadata&&!lt.len&&(this.nextLoadPosition=this.startPosition=Ge),this.tickImmediate()}},{key:"onMediaEnded",value:function(){this.startPosition=this.lastCurrentTime=0}},{key:"onManifestLoaded",value:function(H,Z){this.startTimeOffset=Z.startTimeOffset,this.initPTS=[]}},{key:"onHandlerDestroying",value:function(){this.stopLoad(),Object(t.a)(Object(m.a)(L.prototype),"onHandlerDestroying",this).call(this)}},{key:"onHandlerDestroyed",value:function(){this.state=Bi.STOPPED,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,Object(t.a)(Object(m.a)(L.prototype),"onHandlerDestroyed",this).call(this)}},{key:"loadFragment",value:function(H,Z,re){this._loadFragForPlayback(H,Z,re)}},{key:"_loadFragForPlayback",value:function(H,Z,re){var Ae=this,Te=function(lt){if(Ae.fragContextChanged(H)){Ae.warn("Fragment ".concat(H.sn).concat(lt.part?" p: "+lt.part.index:""," of level ").concat(H.level," was dropped during download.")),Ae.fragmentTracker.removeFragment(H);return}H.stats.chunkCount++,Ae._handleFragmentLoadProgress(lt)};this._doFragLoad(H,Z,re,Te).then(function(Ge){if(!Ge)return;var lt=Ae.state;if(Ae.fragContextChanged(H)){(lt===Bi.FRAG_LOADING||!Ae.fragCurrent&<===Bi.PARSING)&&(Ae.fragmentTracker.removeFragment(H),Ae.state=Bi.IDLE);return}"payload"in Ge&&(Ae.log("Loaded fragment ".concat(H.sn," of level ").concat(H.level)),Ae.hls.trigger(w.FRAG_LOADED,Ge)),Ae._handleFragmentLoadComplete(Ge)}).catch(function(Ge){if(Ae.state===Bi.STOPPED||Ae.state===Bi.ERROR)return;Ae.warn(Ge),Ae.resetFragmentLoading(H)})}},{key:"clearTrackerIfNeeded",value:function(H){var Z,re=this.fragmentTracker,Ae=re.getState(H);if(Ae===Et.APPENDING){var Te=H.type,Ge=this.getFwdBufferInfo(this.mediaBuffer,Te),lt=Math.max(H.duration,Ge?Ge.len:this.config.maxBufferLength);this.reduceMaxBufferLength(lt)&&re.removeFragment(H)}else((Z=this.mediaBuffer)==null?void 0:Z.buffered.length)===0?re.removeAllFragments():re.hasParts(H.type)&&(re.detectPartialFragments({frag:H,part:null,stats:H.stats,id:H.type}),re.getState(H)===Et.PARTIAL&&re.removeFragment(H))}},{key:"flushMainBuffer",value:function(H,Z){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!(H-Z))return;var Ae={startOffset:H,endOffset:Z,type:re};this.hls.trigger(w.BUFFER_FLUSHING,Ae)}},{key:"_loadInitSegment",value:function(H,Z){var re=this;this._doFragLoad(H,Z).then(function(Ae){if(!Ae||re.fragContextChanged(H)||!re.levels)throw new Error("init load aborted");return Ae}).then(function(Ae){var Te=re.hls,Ge=Ae.payload,lt=H.decryptdata;if(Ge&&Ge.byteLength>0&<&<.key&<.iv&<.method==="AES-128"){var dt=self.performance.now();return re.decrypter.decrypt(new Uint8Array(Ge),lt.key.buffer,lt.iv.buffer).catch(function(Kt){throw Te.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_DECRYPT_ERROR,fatal:!1,error:Kt,reason:Kt.message,frag:H}),Kt}).then(function(Kt){var Er=self.performance.now();return Te.trigger(w.FRAG_DECRYPTED,{frag:H,payload:Kt,stats:{tstart:dt,tdecrypt:Er}}),Ae.payload=Kt,Ae})}return Ae}).then(function(Ae){var Te=re.fragCurrent,Ge=re.hls,lt=re.levels;if(!lt)throw new Error("init load aborted, missing levels");var dt=H.stats;re.state=Bi.IDLE,Z.fragmentError=0,H.data=new Uint8Array(Ae.payload),dt.parsing.start=dt.buffering.start=self.performance.now(),dt.parsing.end=dt.buffering.end=self.performance.now(),Ae.frag===Te&&Ge.trigger(w.FRAG_BUFFERED,{stats:dt,frag:Te,part:null,id:H.type}),re.tick()}).catch(function(Ae){if(re.state===Bi.STOPPED||re.state===Bi.ERROR)return;re.warn(Ae),re.resetFragmentLoading(H)})}},{key:"fragContextChanged",value:function(H){var Z=this.fragCurrent;return!H||!Z||H.level!==Z.level||H.sn!==Z.sn||H.urlId!==Z.urlId}},{key:"fragBufferedComplete",value:function(H,Z){var re,Ae,Te,Ge,lt=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log("Buffered ".concat(H.type," sn: ").concat(H.sn).concat(Z?" part: "+Z.index:""," of ").concat(this.playlistType===gt.MAIN?"level":"track"," ").concat(H.level," (frag:[").concat(((re=H.startPTS)!=null?re:NaN).toFixed(3),"-").concat(((Ae=H.endPTS)!=null?Ae:NaN).toFixed(3),"] > buffer:").concat(lt?Va.toString(Ci.getBuffered(lt)):"(detached)",")")),this.state=Bi.IDLE,!lt)return;!this.loadedmetadata&&H.type==gt.MAIN&<.buffered.length&&((Te=this.fragCurrent)==null?void 0:Te.sn)===((Ge=this.fragPrevious)==null?void 0:Ge.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick()}},{key:"seekToStartPos",value:function(){}},{key:"_handleFragmentLoadComplete",value:function(H){var Z=this.transmuxer;if(!Z)return;var re=H.frag,Ae=H.part,Te=H.partsLoaded,Ge=!Te||Te.length===0||Te.some(function(dt){return!dt}),lt=new Wi(re.level,re.sn,re.stats.chunkCount+1,0,Ae?Ae.index:-1,!Ge);Z.flush(lt)}},{key:"_handleFragmentLoadProgress",value:function(H){}},{key:"_doFragLoad",value:function(H,Z){var re=this,Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Te=arguments.length>3?arguments[3]:void 0,Ge,lt=Z==null?void 0:Z.details;if(!this.levels||!lt)throw new Error("frag load aborted, missing level".concat(lt?"":" detail","s"));var dt=null;if(H.encrypted&&!((Ge=H.decryptdata)!=null&&Ge.key)?(this.log("Loading key for ".concat(H.sn," of [").concat(lt.startSN,"-").concat(lt.endSN,"], ").concat(this.logPrefix==="[stream-controller]"?"level":"track"," ").concat(H.level)),this.state=Bi.KEY_LOADING,this.fragCurrent=H,dt=this.keyLoader.load(H).then(function(kn){if(!re.fragContextChanged(kn.frag))return re.hls.trigger(w.KEY_LOADED,kn),re.state===Bi.KEY_LOADING&&(re.state=Bi.IDLE),kn}),this.hls.trigger(w.KEY_LOADING,{frag:H}),this.fragCurrent===null&&(dt=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!H.encrypted&<.encryptedFragments.length&&this.keyLoader.loadClear(H,lt.encryptedFragments),Ae=Math.max(H.start,Ae||0),this.config.lowLatencyMode&&H.sn!=="initSegment"){var Kt=lt.partList;if(Kt&&Te){Ae>H.end&<.fragmentHint&&(H=lt.fragmentHint);var Er=this.getNextPart(Kt,H,Ae);if(Er>-1){var br=Kt[Er];this.log("Loading part sn: ".concat(H.sn," p: ").concat(br.index," cc: ").concat(H.cc," of playlist [").concat(lt.startSN,"-").concat(lt.endSN,"] parts [0-").concat(Er,"-").concat(Kt.length-1,"] ").concat(this.logPrefix==="[stream-controller]"?"level":"track",": ").concat(H.level,", target: ").concat(parseFloat(Ae.toFixed(3)))),this.nextLoadPosition=br.start+br.duration,this.state=Bi.FRAG_LOADING;var jr;return dt?jr=dt.then(function(kn){return!kn||re.fragContextChanged(kn.frag)?null:re.doFragPartsLoad(H,br,Z,Te)}).catch(function(kn){return re.handleFragLoadError(kn)}):jr=this.doFragPartsLoad(H,br,Z,Te).catch(function(kn){return re.handleFragLoadError(kn)}),this.hls.trigger(w.FRAG_LOADING,{frag:H,part:br,targetBufferTime:Ae}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):jr}else if(!H.url||this.loadedEndOfParts(Kt,Ae))return Promise.resolve(null)}}this.log("Loading fragment ".concat(H.sn," cc: ").concat(H.cc," ").concat(lt?"of ["+lt.startSN+"-"+lt.endSN+"] ":"").concat(this.logPrefix==="[stream-controller]"?"level":"track",": ").concat(H.level,", target: ").concat(parseFloat(Ae.toFixed(3)))),T(H.sn)&&!this.bitrateTest&&(this.nextLoadPosition=H.start+H.duration),this.state=Bi.FRAG_LOADING;var Kr=this.config.progressive,In;return Kr&&dt?In=dt.then(function(kn){return!kn||re.fragContextChanged(kn==null?void 0:kn.frag)?null:re.fragmentLoader.load(H,Te)}).catch(function(kn){return re.handleFragLoadError(kn)}):In=Promise.all([this.fragmentLoader.load(H,Kr?Te:void 0),dt]).then(function(kn){var Gn=Object(x.a)(kn,1),bi=Gn[0];return!Kr&&bi&&Te&&Te(bi),bi}).catch(function(kn){return re.handleFragLoadError(kn)}),this.hls.trigger(w.FRAG_LOADING,{frag:H,targetBufferTime:Ae}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):In}},{key:"doFragPartsLoad",value:function(H,Z,re,Ae){var Te=this;return new Promise(function(Ge,lt){var dt,Kt=[],Er=(dt=re.details)==null?void 0:dt.partList,br=function jr(Kr){Te.fragmentLoader.loadPart(H,Kr,Ae).then(function(In){Kt[Kr.index]=In;var kn=In.part;Te.hls.trigger(w.FRAG_LOADED,In);var Gn=Wn(re,H.sn,Kr.index+1)||Yn(Er,H.sn,Kr.index+1);if(Gn)jr(Gn);else return Ge({frag:H,part:kn,partsLoaded:Kt})}).catch(lt)};br(Z)})}},{key:"handleFragLoadError",value:function(H){if("data"in H){var Z=H.data;H.data&&Z.details===I.INTERNAL_ABORTED?this.handleFragLoadAborted(Z.frag,Z.part):this.hls.trigger(w.ERROR,Z)}else this.hls.trigger(w.ERROR,{type:O.OTHER_ERROR,details:I.INTERNAL_EXCEPTION,err:H,error:H,fatal:!0});return null}},{key:"_handleTransmuxerFlush",value:function(H){var Z=this.getCurrentContext(H);if(!Z||this.state!==Bi.PARSING){!this.fragCurrent&&this.state!==Bi.STOPPED&&this.state!==Bi.ERROR&&(this.state=Bi.IDLE);return}var re=Z.frag,Ae=Z.part,Te=Z.level,Ge=self.performance.now();re.stats.parsing.end=Ge,Ae&&(Ae.stats.parsing.end=Ge),this.updateLevelTiming(re,Ae,Te,H.partial)}},{key:"getCurrentContext",value:function(H){var Z=this.levels,re=this.fragCurrent,Ae=H.level,Te=H.sn,Ge=H.part;if(!(Z!=null&&Z[Ae]))return this.warn("Levels object was unset while buffering fragment ".concat(Te," of level ").concat(Ae,". The current chunk will not be buffered.")),null;var lt=Z[Ae],dt=Ge>-1?Wn(lt,Te,Ge):null,Kt=dt?dt.fragment:En(lt,Te,re);return Kt?(re&&re!==Kt&&(Kt.stats=re.stats),{frag:Kt,part:dt,level:lt}):null}},{key:"bufferFragmentData",value:function(H,Z,re,Ae){var Te;if(!H||this.state!==Bi.PARSING)return;var Ge=H.data1,lt=H.data2,dt=Ge;if(Ge&<&&(dt=_t(Ge,lt)),!((Te=dt)!=null&&Te.length))return;var Kt={type:H.type,frag:Z,part:re,chunkMeta:Ae,parent:Z.type,data:dt};this.hls.trigger(w.BUFFER_APPENDING,Kt),H.dropped&&H.independent&&!re&&this.flushBufferGap(Z)}},{key:"flushBufferGap",value:function(H){var Z=this.media;if(!Z)return;if(!Ci.isBuffered(Z,Z.currentTime)){this.flushMainBuffer(0,H.start);return}var re=Z.currentTime,Ae=Ci.bufferInfo(Z,re,0),Te=H.duration,Ge=Math.min(this.config.maxFragLookUpTolerance*2,Te*.25),lt=Math.max(Math.min(H.start-Ge,Ae.end-Ge),re+Ge);H.start-lt>Ge&&this.flushMainBuffer(lt,H.start)}},{key:"getFwdBufferInfo",value:function(H,Z){var re=this.getLoadPosition();return T(re)?this.getFwdBufferInfoAtPos(H,re,Z):null}},{key:"getFwdBufferInfoAtPos",value:function(H,Z,re){var Ae=this.config.maxBufferHole,Te=Ci.bufferInfo(H,Z,Ae);if(Te.len===0&&Te.nextStart!==void 0){var Ge=this.fragmentTracker.getBufferedFrag(Z,re);if(Ge&&Te.nextStart<Ge.end)return Ci.bufferInfo(H,Z,Math.max(Te.nextStart,Ae))}return Te}},{key:"getMaxBufferLength",value:function(H){var Z=this.config,re;return H?re=Math.max(8*Z.maxBufferSize/H,Z.maxBufferLength):re=Z.maxBufferLength,Math.min(re,Z.maxMaxBufferLength)}},{key:"reduceMaxBufferLength",value:function(H){var Z=this.config,re=H||Z.maxBufferLength;return Z.maxMaxBufferLength>=re?(Z.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to ".concat(Z.maxMaxBufferLength,"s")),!0):!1}},{key:"getAppendedFrag",value:function(H){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gt.MAIN,re=this.fragmentTracker.getAppendedFrag(H,gt.MAIN);return re&&"fragment"in re?re.fragment:re}},{key:"getNextFragment",value:function(H,Z){var re=Z.fragments,Ae=re.length;if(!Ae)return null;var Te=this.config,Ge=re[0].start,lt;if(Z.live){var dt=Te.initialLiveManifestSize;if(Ae<dt)return this.warn("Not enough fragments to start playback (have: ".concat(Ae,", need: ").concat(dt,")")),null;!Z.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(lt=this.getInitialLiveFragment(Z,re),this.startPosition=lt?this.hls.liveSyncPosition||lt.start:H)}else H<=Ge&&(lt=re[0]);if(!lt){var Kt=Te.lowLatencyMode?Z.partEnd:Z.fragmentEnd;lt=this.getFragmentAtPosition(H,Kt,Z)}return this.mapToInitFragWhenRequired(lt)}},{key:"isLoopLoading",value:function(H,Z){var re=this.fragmentTracker.getState(H);return(re===Et.OK||re===Et.PARTIAL&&!!H.gap)&&this.nextLoadPosition>Z}},{key:"getNextFragmentLoopLoading",value:function(H,Z,re,Ae,Te){var Ge=H.gap,lt=this.getNextFragment(this.nextLoadPosition,Z);if(lt===null)return lt;if(H=lt,Ge&&H&&!H.gap&&re.nextStart){var dt=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,re.nextStart,Ae);if(dt!==null&&re.len+dt.len>=Te)return this.log('buffer full after gaps in "'.concat(Ae,'" playlist starting at sn: ').concat(H.sn)),null}return H}},{key:"mapToInitFragWhenRequired",value:function(H){return H!=null&&H.initSegment&&!(H!=null&&H.initSegment.data)&&!this.bitrateTest?H.initSegment:H}},{key:"getNextPart",value:function(H,Z,re){for(var Ae=-1,Te=!1,Ge=!0,lt=0,dt=H.length;lt<dt;lt++){var Kt=H[lt];if(Ge=Ge&&!Kt.independent,Ae>-1&&re<Kt.start)break;var Er=Kt.loaded;Er?Ae=-1:(Te||Kt.independent||Ge)&&Kt.fragment===Z&&(Ae=lt),Te=Er}return Ae}},{key:"loadedEndOfParts",value:function(H,Z){var re=H[H.length-1];return re&&Z>re.start&&re.loaded}},{key:"getInitialLiveFragment",value:function(H,Z){var re=this.fragPrevious,Ae=null;if(re){if(H.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: ".concat(re.programDateTime)),Ae=ba(Z,re.endProgramDateTime,this.config.maxFragLookUpTolerance)),!Ae){var Te=re.sn+1;if(Te>=H.startSN&&Te<=H.endSN){var Ge=Z[Te-H.startSN];re.cc===Ge.cc&&(Ae=Ge,this.log("Live playlist, switching playlist, load frag with next SN: ".concat(Ae.sn)))}Ae||(Ae=ha(Z,re.cc),Ae&&this.log("Live playlist, switching playlist, load frag with same CC: ".concat(Ae.sn)))}}else{var lt=this.hls.liveSyncPosition;lt!==null&&(Ae=this.getFragmentAtPosition(lt,this.bitrateTest?H.fragmentEnd:H.edge,H))}return Ae}},{key:"getFragmentAtPosition",value:function(H,Z,re){var Ae=this.config,Te=this.fragPrevious,Ge=re.fragments,lt=re.endSN,dt=re.fragmentHint,Kt=Ae.maxFragLookUpTolerance,Er=re.partList,br=!!(Ae.lowLatencyMode&&Er!=null&&Er.length&&dt);br&&dt&&!this.bitrateTest&&(Ge=Ge.concat(dt),lt=dt.sn);var jr;if(H<Z){var Kr=H>Z-Kt?0:Kt;jr=vi(Te,Ge,H,Kr)}else jr=Ge[Ge.length-1];if(jr){var In=jr.sn-re.startSN,kn=this.fragmentTracker.getState(jr);if((kn===Et.OK||kn===Et.PARTIAL&&jr.gap)&&(Te=jr),Te&&jr.sn===Te.sn&&(!br||Er[0].fragment.sn>jr.sn)){var Gn=Te&&jr.level===Te.level;if(Gn){var bi=Ge[In+1];jr.sn<lt&&this.fragmentTracker.getState(bi)!==Et.OK?jr=bi:jr=null}}}return jr}},{key:"synchronizeToLiveEdge",value:function(H){var Z=this.config,re=this.media;if(!re)return;var Ae=this.hls.liveSyncPosition,Te=re.currentTime,Ge=H.fragments[0].start,lt=H.edge,dt=Te>=Ge-Z.maxFragLookUpTolerance&&Te<=lt;if(Ae!==null&&re.duration>Ae&&(Te<Ae||!dt)){var Kt=Z.liveMaxLatencyDuration!==void 0?Z.liveMaxLatencyDuration:Z.liveMaxLatencyDurationCount*H.targetduration;(!dt&&re.readyState<4||Te<lt-Kt)&&(this.loadedmetadata||(this.nextLoadPosition=Ae),re.readyState&&(this.warn("Playback: ".concat(Te.toFixed(3)," is located too far from the end of live sliding playlist: ").concat(lt,", reset currentTime to : ").concat(Ae.toFixed(3))),re.currentTime=Ae))}}},{key:"alignPlaylists",value:function(H,Z){var re=this.levels,Ae=this.levelLastLoaded,Te=this.fragPrevious,Ge=Ae!==null?re[Ae]:null,lt=H.fragments.length;if(!lt)return this.warn("No fragments in live playlist"),0;var dt=H.fragments[0].start,Kt=!Z,Er=H.alignedSliding&&T(dt);if(Kt||!Er&&!dt){Ca(Te,Ge,H);var br=H.fragments[0].start;return this.log("Live playlist sliding: ".concat(br.toFixed(2)," start-sn: ").concat(Z?Z.startSN:"na","->").concat(H.startSN," prev-sn: ").concat(Te?Te.sn:"na"," fragments: ").concat(lt)),br}return dt}},{key:"waitForCdnTuneIn",value:function(H){var Z=3;return H.live&&H.canBlockReload&&H.partTarget&&H.tuneInGoal>Math.max(H.partHoldBack,H.partTarget*Z)}},{key:"setStartPosition",value:function(H,Z){var re=this.startPosition;if(re<Z&&(re=-1),re===-1||this.lastCurrentTime===-1){var Ae=this.startTimeOffset!==null,Te=Ae?this.startTimeOffset:H.startTimeOffset;Te!==null&&T(Te)?(re=Z+Te,Te<0&&(re+=H.totalduration),re=Math.min(Math.max(Z,re),Z+H.totalduration),this.log("Start time offset ".concat(Te," found in ").concat(Ae?"multivariant":"media"," playlist, adjust startPosition to ").concat(re)),this.startPosition=re):H.live?re=this.hls.liveSyncPosition||Z:this.startPosition=re=0,this.lastCurrentTime=re}this.nextLoadPosition=re}},{key:"getLoadPosition",value:function(){var H=this.media,Z=0;return this.loadedmetadata&&H?Z=H.currentTime:this.nextLoadPosition&&(Z=this.nextLoadPosition),Z}},{key:"handleFragLoadAborted",value:function(H,Z){this.transmuxer&&H.sn!=="initSegment"&&H.stats.aborted&&(this.warn("Fragment ".concat(H.sn).concat(Z?" part "+Z.index:""," of level ").concat(H.level," was aborted")),this.resetFragmentLoading(H))}},{key:"resetFragmentLoading",value:function(H){(!this.fragCurrent||!this.fragContextChanged(H)&&this.state!==Bi.FRAG_LOADING_WAITING_RETRY)&&(this.state=Bi.IDLE)}},{key:"onFragmentOrKeyLoadError",value:function(H,Z){if(Z.chunkMeta&&!Z.frag){var re=this.getCurrentContext(Z.chunkMeta);re&&(Z.frag=re.frag)}var Ae=Z.frag;if(!Ae||Ae.type!==H||!this.levels)return;if(this.fragContextChanged(Ae)){var Te;this.warn("Frag load error must match current frag to retry ".concat(Ae.url," > ").concat((Te=this.fragCurrent)==null?void 0:Te.url));return}var Ge=Z.details===I.FRAG_GAP;Ge&&this.fragmentTracker.fragBuffered(Ae,!0);var lt=Z.errorAction,dt=lt||{},Kt=dt.action,Er=dt.retryCount,br=Er===void 0?0:Er,jr=dt.retryConfig;if(lt&&Kt===aa.RetryRequest&&jr){this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition);var Kr=Ni(jr,br);this.warn("Fragment ".concat(Ae.sn," of ").concat(H," ").concat(Ae.level," errored with ").concat(Z.details,", retrying loading ").concat(br+1,"/").concat(jr.maxNumRetry," in ").concat(Kr,"ms")),lt.resolved=!0,this.retryDate=self.performance.now()+Kr,this.state=Bi.FRAG_LOADING_WAITING_RETRY}else jr&<?(this.resetFragmentErrors(H),br<jr.maxNumRetry?Ge||(lt.resolved=!0):j.warn("".concat(Z.details," reached or exceeded max retry (").concat(br,")"))):this.state=Bi.ERROR;this.tickImmediate()}},{key:"reduceLengthAndFlushBuffer",value:function(H){if(this.state===Bi.PARSING||this.state===Bi.PARSED){var Z=H.parent,re=this.getFwdBufferInfo(this.mediaBuffer,Z),Ae=re&&re.len>.5;Ae&&this.reduceMaxBufferLength(re.len);var Te=!Ae;return Te&&this.warn("Buffer full error while media.currentTime is not buffered, flush ".concat(Z," buffer")),H.frag&&(this.fragmentTracker.removeFragment(H.frag),this.nextLoadPosition=H.frag.start),this.resetLoadingState(),Te}return!1}},{key:"resetFragmentErrors",value:function(H){H===gt.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==Bi.STOPPED&&(this.state=Bi.IDLE)}},{key:"afterBufferFlushed",value:function(H,Z,re){if(!H)return;var Ae=Ci.getBuffered(H);this.fragmentTracker.detectEvictedFragments(Z,Ae,re),this.state===Bi.ENDED&&this.resetLoadingState()}},{key:"resetLoadingState",value:function(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=Bi.IDLE}},{key:"resetStartWhenNotLoaded",value:function(H){if(!this.loadedmetadata){this.startFragRequested=!1;var Z=this.levels?this.levels[H].details:null;Z!=null&&Z.live?(this.startPosition=-1,this.setStartPosition(Z,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}},{key:"resetWhenMissingContext",value:function(H){this.warn("The loading context changed while buffering fragment ".concat(H.sn," of level ").concat(H.level,". This chunk will not be buffered.")),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(H.level),this.resetLoadingState()}},{key:"removeUnbufferedFrags",value:function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.fragmentTracker.removeFragmentsInRange(H,Infinity,this.playlistType,!1,!0)}},{key:"updateLevelTiming",value:function(H,Z,re,Ae){var Te=this,Ge,lt=re.details;if(!lt){this.warn("level.details undefined");return}var dt=Object.keys(H.elementaryStreams).reduce(function(Er,br){var jr=H.elementaryStreams[br];if(jr){var Kr=jr.endPTS-jr.startPTS;if(Kr<=0)return Te.warn("Could not parse fragment ".concat(H.sn," ").concat(br," duration reliably (").concat(Kr,")")),Er||!1;var In=Ae?0:pr(lt,H,jr.startPTS,jr.endPTS,jr.startDTS,jr.endDTS);return Te.hls.trigger(w.LEVEL_PTS_UPDATED,{details:lt,level:re,drift:In,type:br,frag:H,start:jr.startPTS,end:jr.endPTS}),!0}return Er},!1);if(dt)re.fragmentError=0;else if(((Ge=this.transmuxer)==null?void 0:Ge.error)===null){var Kt=new Error("Found no media in fragment ".concat(H.sn," of level ").concat(re.id," resetting transmuxer to fallback to playlist timing"));if(this.warn(Kt.message),this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!1,error:Kt,frag:H,reason:"Found no media in msn ".concat(H.sn,' of level "').concat(re.url,'"')}),!this.hls)return;this.resetTransmuxer()}this.state=Bi.PARSED,this.hls.trigger(w.FRAG_PARSED,{frag:H,part:Z})}},{key:"resetTransmuxer",value:function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)}},{key:"recoverWorkerError",value:function(H){H.event==="demuxerWorker"&&(this.resetTransmuxer(),this.resetLoadingState())}},{key:"state",get:function(){return this._state},set:function(H){var Z=this._state;Z!==H&&(this._state=H,this.log("".concat(Z,"->").concat(H)))}}]),L}(Ri);function oo(){return self.SourceBuffer||self.WebKitSourceBuffer}function Qo(){var ve=qt();if(!ve)return!1;var q=oo(),L=ve&&typeof ve.isTypeSupported=="function"&&ve.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),K=!q||q.prototype&&typeof q.prototype.appendBuffer=="function"&&typeof q.prototype.remove=="function";return!!L&&!!K}function mo(){var ve,q=oo();return typeof(q==null||(ve=q.prototype)==null?void 0:ve.changeType)=="function"}function To(){return typeof __HLS_WORKER_BUNDLE__=="function"}function ao(){var ve=new self.Blob(["var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(".concat(__HLS_WORKER_BUNDLE__.toString(),")(true);")],{type:"text/javascript"}),q=self.URL.createObjectURL(ve),L=new self.Worker(q);return{worker:L,objectURL:q}}function So(ve){var q=new self.URL(ve,self.location.href).href,L=new self.Worker(q);return{worker:L,scriptURL:q}}function bo(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:9e4;return{type:ve,id:-1,pid:-1,inputTimeScale:q,sequenceNumber:-1,samples:[],dropped:0}}var to=function(){function ve(){Object(r.a)(this,ve),this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}return Object(s.a)(ve,[{key:"resetInitSegment",value:function(L,K,H,Z){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}},{key:"resetTimeStamp",value:function(L){this.initPTS=L,this.resetContiguity()}},{key:"resetContiguity",value:function(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}},{key:"canParse",value:function(L,K){return!1}},{key:"appendFrame",value:function(L,K,H){}},{key:"demux",value:function(L,K){this.cachedData&&(L=_t(this.cachedData,L),this.cachedData=null);var H=ht(L,0),Z=H?H.length:0,re,Ae=this._audioTrack,Te=this._id3Track,Ge=H?ct(H):void 0,lt=L.length;for((this.basePTS===null||this.frameIndex===0&&T(Ge))&&(this.basePTS=Jo(Ge,K,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),H&&H.length>0&&Te.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:H,type:Zr.audioId3,duration:Number.POSITIVE_INFINITY});Z<lt;){if(this.canParse(L,Z)){var dt=this.appendFrame(Ae,L,Z);dt?(this.frameIndex++,this.lastPTS=dt.sample.pts,Z+=dt.length,re=Z):Z=lt}else Jt(L,Z)?(H=ht(L,Z),Te.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:H,type:Zr.audioId3,duration:Number.POSITIVE_INFINITY}),Z+=H.length,re=Z):Z++;if(Z===lt&&re!==lt){var Kt=Le(L,re);this.cachedData?this.cachedData=_t(this.cachedData,Kt):this.cachedData=Kt}}return{audioTrack:Ae,videoTrack:bo(),id3Track:Te,textTrack:bo()}}},{key:"demuxSampleAes",value:function(L,K,H){return Promise.reject(new Error("[".concat(this,"] This demuxer does not support Sample-AES decryption")))}},{key:"flush",value:function(L){var K=this.cachedData;return K&&(this.cachedData=null,this.demux(K,0)),{audioTrack:this._audioTrack,videoTrack:bo(),id3Track:this._id3Track,textTrack:bo()}}},{key:"destroy",value:function(){}}]),ve}(),Jo=function(q,L,K){if(T(q))return q*90;var H=K?K.baseTime*9e4/K.timescale:0;return L*9e4+H};function Uo(ve,q,L,K){var H,Z,re,Ae,Te=navigator.userAgent.toLowerCase(),Ge=K,lt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];H=((q[L+2]&192)>>>6)+1;var dt=(q[L+2]&60)>>>2;if(dt>lt.length-1){ve.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:".concat(dt)});return}return re=(q[L+2]&1)<<2,re|=(q[L+3]&192)>>>6,j.log("manifest codec:".concat(K,", ADTS type:").concat(H,", samplingIndex:").concat(dt)),/firefox/i.test(Te)?dt>=6?(H=5,Ae=new Array(4),Z=dt-3):(H=2,Ae=new Array(2),Z=dt):Te.indexOf("android")!==-1?(H=2,Ae=new Array(2),Z=dt):(H=5,Ae=new Array(4),K&&(K.indexOf("mp4a.40.29")!==-1||K.indexOf("mp4a.40.5")!==-1)||!K&&dt>=6?Z=dt-3:((K&&K.indexOf("mp4a.40.2")!==-1&&(dt>=6&&re===1||/vivaldi/i.test(Te))||!K&&re===1)&&(H=2,Ae=new Array(2)),Z=dt)),Ae[0]=H<<3,Ae[0]|=(dt&14)>>1,Ae[1]|=(dt&1)<<7,Ae[1]|=re<<3,H===5&&(Ae[1]|=(Z&14)>>1,Ae[2]=(Z&1)<<7,Ae[2]|=2<<2,Ae[3]=0),{config:Ae,samplerate:lt[dt],channelCount:re,codec:"mp4a.40."+H,manifestCodec:Ge}}function wo(ve,q){return ve[q]===255&&(ve[q+1]&246)===240}function ts(ve,q){return ve[q+1]&1?7:9}function Ia(ve,q){return(ve[q+3]&3)<<11|ve[q+4]<<3|(ve[q+5]&224)>>>5}function Oo(ve,q){return q+5<ve.length}function Io(ve,q){return q+1<ve.length&&wo(ve,q)}function os(ve,q){return Oo(ve,q)&&wo(ve,q)&&Ia(ve,q)<=ve.length-q}function xo(ve,q){if(Io(ve,q)){var L=ts(ve,q);if(q+L>=ve.length)return!1;var K=Ia(ve,q);if(K<=L)return!1;var H=q+K;return H===ve.length||Io(ve,H)}return!1}function rs(ve,q,L,K,H){if(!ve.samplerate){var Z=Uo(q,L,K,H);if(!Z)return;ve.config=Z.config,ve.samplerate=Z.samplerate,ve.channelCount=Z.channelCount,ve.codec=Z.codec,ve.manifestCodec=Z.manifestCodec,j.log("parsed codec:".concat(ve.codec,", rate:").concat(Z.samplerate,", channels:").concat(Z.channelCount))}}function Ho(ve){return 1024*9e4/ve}function _o(ve,q){var L=ts(ve,q);if(q+L<=ve.length){var K=Ia(ve,q)-L;if(K>0)return{headerLength:L,frameLength:K}}}function uo(ve,q,L,K,H){var Z=Ho(ve.samplerate),re=K+H*Z,Ae=_o(q,L),Te;if(Ae){var Ge=Ae.frameLength,lt=Ae.headerLength,dt=lt+Ge,Kt=Math.max(0,L+dt-q.length);Kt?(Te=new Uint8Array(dt-lt),Te.set(q.subarray(L+lt,q.length),0)):Te=q.subarray(L+lt,L+dt);var Er={unit:Te,pts:re};return Kt||ve.samples.push(Er),{sample:Er,length:dt,missing:Kt}}var br=q.length-L;Te=new Uint8Array(br),Te.set(q.subarray(L,q.length),0);var jr={unit:Te,pts:re};return{sample:jr,length:br,missing:-1}}var Ha=function(ve){Object(o.a)(L,ve);var q=Object(e.a)(L);function L(K,H){var Z;return Object(r.a)(this,L),Z=q.call(this),Z.observer=void 0,Z.config=void 0,Z.observer=K,Z.config=H,Z}return Object(s.a)(L,[{key:"resetInitSegment",value:function(H,Z,re,Ae){Object(t.a)(Object(m.a)(L.prototype),"resetInitSegment",this).call(this,H,Z,re,Ae),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:Z,duration:Ae,inputTimeScale:9e4,dropped:0}}},{key:"canParse",value:function(H,Z){return os(H,Z)}},{key:"appendFrame",value:function(H,Z,re){rs(H,this.observer,Z,re,H.manifestCodec);var Ae=uo(H,Z,re,this.basePTS,this.frameIndex);if(Ae&&Ae.missing===0)return Ae}}],[{key:"probe",value:function(H){if(!H)return!1;for(var Z=ht(H,0)||[],re=Z.length,Ae=H.length;re<Ae;re++)if(xo(H,re))return j.log("ADTS sync word found !"),!0;return!1}}]),L}(to),pt=/\/emsg[-/]ID3/i,xr=function(){function ve(q,L){Object(r.a)(this,ve),this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=L}return Object(s.a)(ve,[{key:"resetTimeStamp",value:function(){}},{key:"resetInitSegment",value:function(L,K,H,Z){var re=this.videoTrack=bo("video",1),Ae=this.audioTrack=bo("audio",1),Te=this.txtTrack=bo("text",1);if(this.id3Track=bo("id3",1),this.timeOffset=0,!(L!=null&&L.byteLength))return;var Ge=rn(L);if(Ge.video){var lt=Ge.video,dt=lt.id,Kt=lt.timescale,Er=lt.codec;re.id=dt,re.timescale=Te.timescale=Kt,re.codec=Er}if(Ge.audio){var br=Ge.audio,jr=br.id,Kr=br.timescale,In=br.codec;Ae.id=jr,Ae.timescale=Kr,Ae.codec=In}Te.id=or.text,re.sampleDuration=0,re.duration=Ae.duration=Z}},{key:"resetContiguity",value:function(){this.remainderData=null}},{key:"demux",value:function(L,K){this.timeOffset=K;var H=L,Z=this.videoTrack,re=this.txtTrack;if(this.config.progressive){this.remainderData&&(H=_t(this.remainderData,L));var Ae=Xt(H);this.remainderData=Ae.remainder,Z.samples=Ae.valid||new Uint8Array}else Z.samples=H;var Te=this.extractID3Track(Z,K);return re.samples=Fe(K,Z),{videoTrack:Z,audioTrack:this.audioTrack,id3Track:Te,textTrack:this.txtTrack}}},{key:"flush",value:function(){var L=this.timeOffset,K=this.videoTrack,H=this.txtTrack;K.samples=this.remainderData||new Uint8Array,this.remainderData=null;var Z=this.extractID3Track(K,this.timeOffset);return H.samples=Fe(L,K),{videoTrack:K,audioTrack:bo(),id3Track:Z,textTrack:bo()}}},{key:"extractID3Track",value:function(L,K){var H=this.id3Track;if(L.samples.length){var Z=Wt(L.samples,["emsg"]);Z&&Z.forEach(function(re){var Ae=ar(re);if(pt.test(Ae.schemeIdUri)){var Te=T(Ae.presentationTime)?Ae.presentationTime/Ae.timeScale:K+Ae.presentationTimeDelta/Ae.timeScale,Ge=Ae.eventDuration===4294967295?Number.POSITIVE_INFINITY:Ae.eventDuration/Ae.timeScale;Ge<=.001&&(Ge=Number.POSITIVE_INFINITY);var lt=Ae.payload;H.samples.push({data:lt,len:lt.byteLength,dts:Te,pts:Te,type:Zr.emsg,duration:Ge})}})}return H}},{key:"demuxSampleAes",value:function(L,K,H){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}},{key:"destroy",value:function(){}}],[{key:"probe",value:function(L){return L=L.length>16384?L.subarray(0,16384):L,Wt(L,["moof"]).length>0}}]),ve}(),Jr=null,Vr=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],Vn=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],sn=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],zr=[0,1,1,4];function qn(ve,q,L,K,H){if(L+24>q.length)return;var Z=en(q,L);if(Z&&L+Z.frameLength<=q.length){var re=Z.samplesPerFrame*9e4/Z.sampleRate,Ae=K+H*re,Te={unit:q.subarray(L,L+Z.frameLength),pts:Ae,dts:Ae};return ve.config=[],ve.channelCount=Z.channelCount,ve.samplerate=Z.sampleRate,ve.samples.push(Te),{sample:Te,length:Z.frameLength,missing:0}}}function en(ve,q){var L=ve[q+1]>>3&3,K=ve[q+1]>>1&3,H=ve[q+2]>>4&15,Z=ve[q+2]>>2&3;if(L!==1&&H!==0&&H!==15&&Z!==3){var re=ve[q+2]>>1&1,Ae=ve[q+3]>>6,Te=L===3?3-K:K===3?3:4,Ge=Vr[Te*14+H-1]*1e3,lt=L===3?0:L===2?1:2,dt=Vn[lt*3+Z],Kt=Ae===3?1:2,Er=sn[L][K],br=zr[K],jr=Er*8*br,Kr=Math.floor(Er*Ge/dt+re)*br;if(Jr===null){var In=navigator.userAgent||"",kn=In.match(/Chrome\/(\d+)/i);Jr=kn?parseInt(kn[1]):0}var Gn=!!Jr&&Jr<=87;return Gn&&K===2&&Ge>=224e3&&Ae===0&&(ve[q+3]=ve[q+3]|128),{sampleRate:dt,channelCount:Kt,frameLength:Kr,samplesPerFrame:jr}}}function Un(ve,q){return ve[q]===255&&(ve[q+1]&224)===224&&(ve[q+1]&6)!==0}function si(ve,q){return q+1<ve.length&&Un(ve,q)}function ui(ve,q){var L=4;return Un(ve,q)&&L<=ve.length-q}function oi(ve,q){if(q+1<ve.length&&Un(ve,q)){var L=4,K=en(ve,q),H=L;K!=null&&K.frameLength&&(H=K.frameLength);var Z=q+H;return Z===ve.length||si(ve,Z)}return!1}var Ei=function(){function ve(q){Object(r.a)(this,ve),this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=q,this.bytesAvailable=q.byteLength,this.word=0,this.bitsAvailable=0}return Object(s.a)(ve,[{key:"loadWord",value:function(){var L=this.data,K=this.bytesAvailable,H=L.byteLength-K,Z=new Uint8Array(4),re=Math.min(4,K);if(re===0)throw new Error("no bytes available");Z.set(L.subarray(H,H+re)),this.word=new DataView(Z.buffer).getUint32(0),this.bitsAvailable=re*8,this.bytesAvailable-=re}},{key:"skipBits",value:function(L){var K;L=Math.min(L,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>L?(this.word<<=L,this.bitsAvailable-=L):(L-=this.bitsAvailable,K=L>>3,L-=K<<3,this.bytesAvailable-=K,this.loadWord(),this.word<<=L,this.bitsAvailable-=L)}},{key:"readBits",value:function(L){var K=Math.min(this.bitsAvailable,L),H=this.word>>>32-K;if(L>32&&j.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=K,this.bitsAvailable>0)this.word<<=K;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return K=L-K,K>0&&this.bitsAvailable?H<<K|this.readBits(K):H}},{key:"skipLZ",value:function(){var L;for(L=0;L<this.bitsAvailable;++L)if((this.word&2147483648>>>L)!==0)return this.word<<=L,this.bitsAvailable-=L,L;return this.loadWord(),L+this.skipLZ()}},{key:"skipUEG",value:function(){this.skipBits(1+this.skipLZ())}},{key:"skipEG",value:function(){this.skipBits(1+this.skipLZ())}},{key:"readUEG",value:function(){var L=this.skipLZ();return this.readBits(L+1)-1}},{key:"readEG",value:function(){var L=this.readUEG();return 1&L?1+L>>>1:-1*(L>>>1)}},{key:"readBoolean",value:function(){return this.readBits(1)===1}},{key:"readUByte",value:function(){return this.readBits(8)}},{key:"readUShort",value:function(){return this.readBits(16)}},{key:"readUInt",value:function(){return this.readBits(32)}},{key:"skipScalingList",value:function(L){for(var K=8,H=8,Z,re=0;re<L;re++)H!==0&&(Z=this.readEG(),H=(K+Z+256)%256),K=H===0?K:H}},{key:"readSPS",value:function(){var L=0,K=0,H=0,Z=0,re,Ae,Te,Ge=this.readUByte.bind(this),lt=this.readBits.bind(this),dt=this.readUEG.bind(this),Kt=this.readBoolean.bind(this),Er=this.skipBits.bind(this),br=this.skipEG.bind(this),jr=this.skipUEG.bind(this),Kr=this.skipScalingList.bind(this);Ge();var In=Ge();if(lt(5),Er(3),Ge(),jr(),In===100||In===110||In===122||In===244||In===44||In===83||In===86||In===118||In===128){var kn=dt();if(kn===3&&Er(1),jr(),jr(),Er(1),Kt())for(Ae=kn!==3?8:12,Te=0;Te<Ae;Te++)Kt()&&(Te<6?Kr(16):Kr(64))}jr();var Gn=dt();if(Gn===0)dt();else if(Gn===1)for(Er(1),br(),br(),re=dt(),Te=0;Te<re;Te++)br();jr(),Er(1);var bi=dt(),ua=dt(),Xi=lt(1);Xi===0&&Er(1),Er(1),Kt()&&(L=dt(),K=dt(),H=dt(),Z=dt());var ta=[1,1];if(Kt()&&Kt()){var Pa=Ge();switch(Pa){case 1:ta=[1,1];break;case 2:ta=[12,11];break;case 3:ta=[10,11];break;case 4:ta=[16,11];break;case 5:ta=[40,33];break;case 6:ta=[24,11];break;case 7:ta=[20,11];break;case 8:ta=[32,11];break;case 9:ta=[80,33];break;case 10:ta=[18,11];break;case 11:ta=[15,11];break;case 12:ta=[64,33];break;case 13:ta=[160,99];break;case 14:ta=[4,3];break;case 15:ta=[3,2];break;case 16:ta=[2,1];break;case 255:{ta=[Ge()<<8|Ge(),Ge()<<8|Ge()];break}}}return{width:Math.ceil((bi+1)*16-L*2-K*2),height:(2-Xi)*(ua+1)*16-(Xi?2:4)*(H+Z),pixelRatio:ta}}},{key:"readSliceType",value:function(){return this.readUByte(),this.readUEG(),this.readUEG()}}]),ve}(),pi=function(){function ve(q,L,K){Object(r.a)(this,ve),this.keyData=void 0,this.decrypter=void 0,this.keyData=K,this.decrypter=new _a(L,{removePKCS7Padding:!1})}return Object(s.a)(ve,[{key:"decryptBuffer",value:function(L){return this.decrypter.decrypt(L,this.keyData.key.buffer,this.keyData.iv.buffer)}},{key:"decryptAacSample",value:function(L,K,H){var Z=this,re=L[K].unit;if(re.length<=16)return;var Ae=re.subarray(16,re.length-re.length%16),Te=Ae.buffer.slice(Ae.byteOffset,Ae.byteOffset+Ae.length);this.decryptBuffer(Te).then(function(Ge){var lt=new Uint8Array(Ge);re.set(lt,16),Z.decrypter.isSync()||Z.decryptAacSamples(L,K+1,H)})}},{key:"decryptAacSamples",value:function(L,K,H){for(;;K++){if(K>=L.length){H();return}if(L[K].unit.length<32)continue;if(this.decryptAacSample(L,K,H),!this.decrypter.isSync())return}}},{key:"getAvcEncryptedData",value:function(L){for(var K=Math.floor((L.length-48)/160)*16+16,H=new Int8Array(K),Z=0,re=32;re<L.length-16;re+=160,Z+=16)H.set(L.subarray(re,re+16),Z);return H}},{key:"getAvcDecryptedUnit",value:function(L,K){for(var H=new Uint8Array(K),Z=0,re=32;re<L.length-16;re+=160,Z+=16)L.set(H.subarray(Z,Z+16),re);return L}},{key:"decryptAvcSample",value:function(L,K,H,Z,re){var Ae=this,Te=vt(re.data),Ge=this.getAvcEncryptedData(Te);this.decryptBuffer(Ge.buffer).then(function(lt){re.data=Ae.getAvcDecryptedUnit(Te,lt),Ae.decrypter.isSync()||Ae.decryptAvcSamples(L,K,H+1,Z)})}},{key:"decryptAvcSamples",value:function(L,K,H,Z){if(L instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;K++,H=0){if(K>=L.length){Z();return}for(var re=L[K].units;!(H>=re.length);H++){var Ae=re[H];if(Ae.data.length<=48||Ae.type!==1&&Ae.type!==5)continue;if(this.decryptAvcSample(L,K,H,Z,Ae),!this.decrypter.isSync())return}}}}]),ve}(),Ai=188,Oi=function(){function ve(q,L,K){Object(r.a)(this,ve),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=q,this.config=L,this.typeSupported=K}return Object(s.a)(ve,[{key:"resetInitSegment",value:function(L,K,H,Z){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=ve.createTrack("video"),this._audioTrack=ve.createTrack("audio",Z),this._id3Track=ve.createTrack("id3"),this._txtTrack=ve.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.audioCodec=K,this.videoCodec=H,this._duration=Z}},{key:"resetTimeStamp",value:function(){}},{key:"resetContiguity",value:function(){var L=this._audioTrack,K=this._avcTrack,H=this._id3Track;L&&(L.pesData=null),K&&(K.pesData=null),H&&(H.pesData=null),this.aacOverFlow=null,this.avcSample=null,this.remainderData=null}},{key:"demux",value:function(L,K){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;H||(this.sampleAes=null);var re,Ae=this._avcTrack,Te=this._audioTrack,Ge=this._id3Track,lt=this._txtTrack,dt=Ae.pid,Kt=Ae.pesData,Er=Te.pid,br=Ge.pid,jr=Te.pesData,Kr=Ge.pesData,In=null,kn=this.pmtParsed,Gn=this._pmtId,bi=L.length;if(this.remainderData&&(L=_t(this.remainderData,L),bi=L.length,this.remainderData=null),bi<Ai&&!Z)return this.remainderData=L,{audioTrack:Te,videoTrack:Ae,id3Track:Ge,textTrack:lt};var ua=Math.max(0,ve.syncOffset(L));bi-=(bi-ua)%Ai,bi<L.byteLength&&!Z&&(this.remainderData=new Uint8Array(L.buffer,bi,L.buffer.byteLength-bi));for(var Xi=0,ta=ua;ta<bi;ta+=Ai)if(L[ta]===71){var Pa=!!(L[ta+1]&64),Ya=Hi(L,ta),Ba=(L[ta+3]&48)>>4,Sa=void 0;if(Ba>1){if(Sa=ta+5+L[ta+4],Sa===ta+Ai)continue}else Sa=ta+4;switch(Ya){case dt:Pa&&(Kt&&(re=xa(Kt))&&this.parseAVCPES(Ae,lt,re,!1),Kt={data:[],size:0}),Kt&&(Kt.data.push(L.subarray(Sa,ta+Ai)),Kt.size+=ta+Ai-Sa);break;case Er:if(Pa){if(jr&&(re=xa(jr)))switch(Te.segmentCodec){case"aac":this.parseAACPES(Te,re);break;case"mp3":this.parseMPEGPES(Te,re);break}jr={data:[],size:0}}jr&&(jr.data.push(L.subarray(Sa,ta+Ai)),jr.size+=ta+Ai-Sa);break;case br:Pa&&(Kr&&(re=xa(Kr))&&this.parseID3PES(Ge,re),Kr={data:[],size:0}),Kr&&(Kr.data.push(L.subarray(Sa,ta+Ai)),Kr.size+=ta+Ai-Sa);break;case 0:Pa&&(Sa+=L[Sa]+1),Gn=this._pmtId=fa(L,Sa);break;case Gn:{Pa&&(Sa+=L[Sa]+1);var Go=Xa(L,Sa,this.typeSupported,H);dt=Go.avc,dt>0&&(Ae.pid=dt),Er=Go.audio,Er>0&&(Te.pid=Er,Te.segmentCodec=Go.segmentCodec),br=Go.id3,br>0&&(Ge.pid=br),In!==null&&!kn&&(j.warn("MPEG-TS PMT found at ".concat(ta," after unknown PID '").concat(In,"'. Backtracking to sync byte @").concat(ua," to parse all TS packets.")),In=null,ta=ua-188),kn=this.pmtParsed=!0;break}case 17:case 8191:break;default:In=Ya;break}}else Xi++;if(Xi>0){var Ls=new Error("Found ".concat(Xi," TS packet/s that do not start with 0x47"));this.observer.emit(w.ERROR,w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!1,error:Ls,reason:Ls.message})}Ae.pesData=Kt,Te.pesData=jr,Ge.pesData=Kr;var ys={audioTrack:Te,videoTrack:Ae,id3Track:Ge,textTrack:lt};return Z&&this.extractRemainingSamples(ys),ys}},{key:"flush",value:function(){var L=this.remainderData;this.remainderData=null;var K;return L?K=this.demux(L,-1,!1,!0):K={videoTrack:this._avcTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(K),this.sampleAes?this.decrypt(K,this.sampleAes):K}},{key:"extractRemainingSamples",value:function(L){var K=L.audioTrack,H=L.videoTrack,Z=L.id3Track,re=L.textTrack,Ae=H.pesData,Te=K.pesData,Ge=Z.pesData,lt;if(Ae&&(lt=xa(Ae))?(this.parseAVCPES(H,re,lt,!0),H.pesData=null):H.pesData=Ae,Te&&(lt=xa(Te))){switch(K.segmentCodec){case"aac":this.parseAACPES(K,lt);break;case"mp3":this.parseMPEGPES(K,lt);break}K.pesData=null}else Te!=null&&Te.size&&j.log("last AAC PES packet truncated,might overlap between fragments"),K.pesData=Te;Ge&&(lt=xa(Ge))?(this.parseID3PES(Z,lt),Z.pesData=null):Z.pesData=Ge}},{key:"demuxSampleAes",value:function(L,K,H){var Z=this.demux(L,H,!0,!this.config.progressive),re=this.sampleAes=new pi(this.observer,this.config,K);return this.decrypt(Z,re)}},{key:"decrypt",value:function(L,K){return new Promise(function(H){var Z=L.audioTrack,re=L.videoTrack;Z.samples&&Z.segmentCodec==="aac"?K.decryptAacSamples(Z.samples,0,function(){re.samples?K.decryptAvcSamples(re.samples,0,0,function(){H(L)}):H(L)}):re.samples&&K.decryptAvcSamples(re.samples,0,0,function(){H(L)})})}},{key:"destroy",value:function(){this._duration=0}},{key:"parseAVCPES",value:function(L,K,H,Z){var re=this,Ae=this.parseAVCNALu(L,H.data),Te=this.avcSample,Ge,lt=!1;H.data=null,Te&&Ae.length&&!L.audFound&&(wa(Te,L),Te=this.avcSample=na(!1,H.pts,H.dts,"")),Ae.forEach(function(dt){switch(dt.type){case 1:{Ge=!0,Te||(Te=re.avcSample=na(!0,H.pts,H.dts,"")),Te.frame=!0;var Kt=dt.data;if(lt&&Kt.length>4){var Er=new Ei(Kt).readSliceType();(Er===2||Er===4||Er===7||Er===9)&&(Te.key=!0)}break}case 5:Ge=!0,Te||(Te=re.avcSample=na(!0,H.pts,H.dts,"")),Te.key=!0,Te.frame=!0;break;case 6:{Ge=!0,nt(dt.data,1,H.pts,K.samples);break}case 7:if(Ge=!0,lt=!0,!L.sps){var br=dt.data,jr=new Ei(br),Kr=jr.readSPS();L.width=Kr.width,L.height=Kr.height,L.pixelRatio=Kr.pixelRatio,L.sps=[br],L.duration=re._duration;for(var In=br.subarray(1,4),kn="avc1.",Gn=0;Gn<3;Gn++){var bi=In[Gn].toString(16);bi.length<2&&(bi="0"+bi),kn+=bi}L.codec=kn}break;case 8:Ge=!0,L.pps||(L.pps=[dt.data]);break;case 9:Ge=!1,L.audFound=!0,Te&&wa(Te,L),Te=re.avcSample=na(!1,H.pts,H.dts,"");break;case 12:Ge=!0;break;default:Ge=!1,Te&&(Te.debug+="unknown NAL "+dt.type+" ");break}if(Te&&Ge){var ua=Te.units;ua.push(dt)}}),Z&&Te&&(wa(Te,L),this.avcSample=null)}},{key:"getLastNalUnit",value:function(L){var K,H=this.avcSample,Z;if((!H||H.units.length===0)&&(H=L[L.length-1]),(K=H)!=null&&K.units){var re=H.units;Z=re[re.length-1]}return Z}},{key:"parseAVCNALu",value:function(L,K){var H=K.byteLength,Z=L.naluState||0,re=Z,Ae=[],Te=0,Ge,lt,dt,Kt=-1,Er=0;for(Z===-1&&(Kt=0,Er=K[0]&31,Z=0,Te=1);Te<H;){if(Ge=K[Te++],!Z){Z=Ge?0:1;continue}if(Z===1){Z=Ge?0:2;continue}if(!Ge)Z=3;else if(Ge===1){if(Kt>=0){var br={data:K.subarray(Kt,Te-Z-1),type:Er};Ae.push(br)}else{var jr=this.getLastNalUnit(L.samples);if(jr&&(re&&Te<=4-re&&(jr.state&&(jr.data=jr.data.subarray(0,jr.data.byteLength-re))),lt=Te-Z-1,lt>0)){var Kr=new Uint8Array(jr.data.byteLength+lt);Kr.set(jr.data,0),Kr.set(K.subarray(0,lt),jr.data.byteLength),jr.data=Kr,jr.state=0}}Te<H?(dt=K[Te]&31,Kt=Te,Er=dt,Z=0):Z=-1}else Z=0}if(Kt>=0&&Z>=0){var In={data:K.subarray(Kt,H),type:Er,state:Z};Ae.push(In)}if(Ae.length===0){var kn=this.getLastNalUnit(L.samples);if(kn){var Gn=new Uint8Array(kn.data.byteLength+K.byteLength);Gn.set(kn.data,0),Gn.set(K,kn.data.byteLength),kn.data=Gn}}return L.naluState=Z,Ae}},{key:"parseAACPES",value:function(L,K){var H=0,Z=this.aacOverFlow,re=K.data;if(Z){this.aacOverFlow=null;var Ae=Z.missing,Te=Z.sample.unit.byteLength;if(Ae===-1){var Ge=new Uint8Array(Te+re.byteLength);Ge.set(Z.sample.unit,0),Ge.set(re,Te),re=Ge}else{var lt=Te-Ae;Z.sample.unit.set(re.subarray(0,Ae),lt),L.samples.push(Z.sample),H=Z.missing}}var dt,Kt;for(dt=H,Kt=re.length;dt<Kt-1&&!Io(re,dt);dt++);if(dt!==H){var Er,br=dt<Kt-1;br?Er="AAC PES did not start with ADTS header,offset:".concat(dt):Er="No ADTS header found in AAC PES";var jr=new Error(Er);if(j.warn("parsing error: ".concat(Er)),this.observer.emit(w.ERROR,w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!1,levelRetry:br,error:jr,reason:Er}),!br)return}rs(L,this.observer,re,dt,this.audioCodec);var Kr;if(K.pts!==void 0)Kr=K.pts;else if(Z){var In=Ho(L.samplerate);Kr=Z.sample.pts+In}else{j.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var kn=0,Gn;dt<Kt;)if(Gn=uo(L,re,dt,Kr,kn),dt+=Gn.length,Gn.missing){this.aacOverFlow=Gn;break}else for(kn++;dt<Kt-1&&!Io(re,dt);dt++);}},{key:"parseMPEGPES",value:function(L,K){var H=K.data,Z=H.length,re=0,Ae=0,Te=K.pts;if(Te===void 0){j.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;Ae<Z;)if(si(H,Ae)){var Ge=qn(L,H,Ae,Te,re);if(Ge)Ae+=Ge.length,re++;else break}else Ae++}},{key:"parseID3PES",value:function(L,K){if(K.pts===void 0){j.warn("[tsdemuxer]: ID3 PES unknown PTS");return}var H=E({},K,{type:this._avcTrack?Zr.emsg:Zr.audioId3,duration:Number.POSITIVE_INFINITY});L.samples.push(H)}}],[{key:"probe",value:function(L){var K=ve.syncOffset(L);return K>0&&j.warn("MPEG2-TS detected but first sync word found @ offset ".concat(K)),K!==-1}},{key:"syncOffset",value:function(L){for(var K=L.length,H=Math.min(Ai*5,L.length-Ai)+1,Z=0;Z<H;){for(var re=!1,Ae=Z;Ae<K&&L[Ae]===71;Ae+=Ai)if(!re&&Hi(L,Ae)===0&&(re=!0),re&&Ae+Ai>H)return Z;Z++}return-1}},{key:"createTrack",value:function(L,K){return{container:L==="video"||L==="audio"?"video/mp2t":void 0,type:L,id:or[L],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:L==="audio"?K:void 0}}}]),ve}();function na(ve,q,L,K){return{key:ve,frame:!1,pts:q,dts:L,units:[],debug:K,length:0}}function Hi(ve,q){return((ve[q+1]&31)<<8)+ve[q+2]}function fa(ve,q){return(ve[q+10]&31)<<8|ve[q+11]}function Xa(ve,q,L,K){var H={audio:-1,avc:-1,id3:-1,segmentCodec:"aac"},Z=(ve[q+1]&15)<<8|ve[q+2],re=q+3+Z-4,Ae=(ve[q+10]&15)<<8|ve[q+11];for(q+=12+Ae;q<re;){var Te=Hi(ve,q);switch(ve[q]){case 207:if(!K){j.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:H.audio===-1&&(H.audio=Te);break;case 21:H.id3===-1&&(H.id3=Te);break;case 219:if(!K){j.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:H.avc===-1&&(H.avc=Te);break;case 3:case 4:L.mpeg!==!0&&L.mp3!==!0?j.log("MPEG audio found, not supported in this browser"):H.audio===-1&&(H.audio=Te,H.segmentCodec="mp3");break;case 36:j.warn("Unsupported HEVC stream type found");break}q+=((ve[q+3]&15)<<8|ve[q+4])+5}return H}function xa(ve){var q=0,L,K,H,Z,re,Ae=ve.data;if(!ve||ve.size===0)return null;for(;Ae[0].length<19&&Ae.length>1;){var Te=new Uint8Array(Ae[0].length+Ae[1].length);Te.set(Ae[0]),Te.set(Ae[1],Ae[0].length),Ae[0]=Te,Ae.splice(1,1)}L=Ae[0];var Ge=(L[0]<<16)+(L[1]<<8)+L[2];if(Ge===1){if(K=(L[4]<<8)+L[5],K&&K>ve.size-6)return null;var lt=L[7];lt&192&&(Z=(L[9]&14)*536870912+(L[10]&255)*4194304+(L[11]&254)*16384+(L[12]&255)*128+(L[13]&254)/2,lt&64?(re=(L[14]&14)*536870912+(L[15]&255)*4194304+(L[16]&254)*16384+(L[17]&255)*128+(L[18]&254)/2,Z-re>60*9e4&&(j.warn("".concat(Math.round((Z-re)/9e4),"s delta between PTS and DTS, align them")),Z=re)):re=Z),H=L[8];var dt=H+9;if(ve.size<=dt)return null;ve.size-=dt;for(var Kt=new Uint8Array(ve.size),Er=0,br=Ae.length;Er<br;Er++){L=Ae[Er];var jr=L.byteLength;if(dt)if(dt>jr){dt-=jr;continue}else L=L.subarray(dt),jr-=dt,dt=0;Kt.set(L,q),q+=jr}return K&&(K-=H+3),{data:Kt,pts:Z,dts:re,len:K}}return null}function wa(ve,q){if(ve.units.length&&ve.frame){if(ve.pts===void 0){var L=q.samples,K=L.length;if(K){var H=L[K-1];ve.pts=H.pts,ve.dts=H.dts}else{q.dropped++;return}}q.samples.push(ve)}ve.debug.length&&j.log(ve.pts+"/"+ve.dts+":"+ve.debug)}var Da=function(ve){Object(o.a)(L,ve);var q=Object(e.a)(L);function L(){return Object(r.a)(this,L),q.apply(this,arguments)}return Object(s.a)(L,[{key:"resetInitSegment",value:function(H,Z,re,Ae){Object(t.a)(Object(m.a)(L.prototype),"resetInitSegment",this).call(this,H,Z,re,Ae),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:Z,duration:Ae,inputTimeScale:9e4,dropped:0}}},{key:"canParse",value:function(H,Z){return ui(H,Z)}},{key:"appendFrame",value:function(H,Z,re){return this.basePTS===null?void 0:qn(H,Z,re,this.basePTS,this.frameIndex)}}],[{key:"probe",value:function(H){if(!H)return!1;for(var Z=ht(H,0)||[],re=Z.length,Ae=H.length;re<Ae;re++)if(oi(H,re))return j.log("MPEG Audio sync word found !"),!0;return!1}}]),L}(to),ja=function(){function ve(){Object(r.a)(this,ve)}return Object(s.a)(ve,null,[{key:"getSilentFrame",value:function(L,K){switch(L){case"mp4a.40.2":if(K===1)return new Uint8Array([0,200,0,128,35,128]);if(K===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(K===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(K===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(K===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(K===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(K===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(K===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(K===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return}}]),ve}(),ko=Math.pow(2,32)-1,ro=function(){function ve(){Object(r.a)(this,ve)}return Object(s.a)(ve,null,[{key:"init",value:function(){ve.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var L;for(L in ve.types)ve.types.hasOwnProperty(L)&&(ve.types[L]=[L.charCodeAt(0),L.charCodeAt(1),L.charCodeAt(2),L.charCodeAt(3)]);var K=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),H=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);ve.HDLR_TYPES={video:K,audio:H};var Z=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),re=new Uint8Array([0,0,0,0,0,0,0,0]);ve.STTS=ve.STSC=ve.STCO=re,ve.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),ve.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),ve.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),ve.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var Ae=new Uint8Array([105,115,111,109]),Te=new Uint8Array([97,118,99,49]),Ge=new Uint8Array([0,0,0,1]);ve.FTYP=ve.box(ve.types.ftyp,Ae,Ge,Ae,Te),ve.DINF=ve.box(ve.types.dinf,ve.box(ve.types.dref,Z))}},{key:"box",value:function(L){for(var K=8,H=arguments.length,Z=new Array(H>1?H-1:0),re=1;re<H;re++)Z[re-1]=arguments[re];for(var Ae=Z.length,Te=Ae;Ae--;)K+=Z[Ae].byteLength;var Ge=new Uint8Array(K);for(Ge[0]=K>>24&255,Ge[1]=K>>16&255,Ge[2]=K>>8&255,Ge[3]=K&255,Ge.set(L,4),Ae=0,K=8;Ae<Te;Ae++)Ge.set(Z[Ae],K),K+=Z[Ae].byteLength;return Ge}},{key:"hdlr",value:function(L){return ve.box(ve.types.hdlr,ve.HDLR_TYPES[L])}},{key:"mdat",value:function(L){return ve.box(ve.types.mdat,L)}},{key:"mdhd",value:function(L,K){K*=L;var H=Math.floor(K/(ko+1)),Z=Math.floor(K%(ko+1));return ve.box(ve.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,L>>24&255,L>>16&255,L>>8&255,L&255,H>>24,H>>16&255,H>>8&255,H&255,Z>>24,Z>>16&255,Z>>8&255,Z&255,85,196,0,0]))}},{key:"mdia",value:function(L){return ve.box(ve.types.mdia,ve.mdhd(L.timescale,L.duration),ve.hdlr(L.type),ve.minf(L))}},{key:"mfhd",value:function(L){return ve.box(ve.types.mfhd,new Uint8Array([0,0,0,0,L>>24,L>>16&255,L>>8&255,L&255]))}},{key:"minf",value:function(L){return L.type==="audio"?ve.box(ve.types.minf,ve.box(ve.types.smhd,ve.SMHD),ve.DINF,ve.stbl(L)):ve.box(ve.types.minf,ve.box(ve.types.vmhd,ve.VMHD),ve.DINF,ve.stbl(L))}},{key:"moof",value:function(L,K,H){return ve.box(ve.types.moof,ve.mfhd(L),ve.traf(H,K))}},{key:"moov",value:function(L){for(var K=L.length,H=[];K--;)H[K]=ve.trak(L[K]);return ve.box.apply(null,[ve.types.moov,ve.mvhd(L[0].timescale,L[0].duration)].concat(H).concat(ve.mvex(L)))}},{key:"mvex",value:function(L){for(var K=L.length,H=[];K--;)H[K]=ve.trex(L[K]);return ve.box.apply(null,[ve.types.mvex].concat(H))}},{key:"mvhd",value:function(L,K){K*=L;var H=Math.floor(K/(ko+1)),Z=Math.floor(K%(ko+1)),re=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,L>>24&255,L>>16&255,L>>8&255,L&255,H>>24,H>>16&255,H>>8&255,H&255,Z>>24,Z>>16&255,Z>>8&255,Z&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return ve.box(ve.types.mvhd,re)}},{key:"sdtp",value:function(L){var K=L.samples||[],H=new Uint8Array(4+K.length),Z,re;for(Z=0;Z<K.length;Z++)re=K[Z].flags,H[Z+4]=re.dependsOn<<4|re.isDependedOn<<2|re.hasRedundancy;return ve.box(ve.types.sdtp,H)}},{key:"stbl",value:function(L){return ve.box(ve.types.stbl,ve.stsd(L),ve.box(ve.types.stts,ve.STTS),ve.box(ve.types.stsc,ve.STSC),ve.box(ve.types.stsz,ve.STSZ),ve.box(ve.types.stco,ve.STCO))}},{key:"avc1",value:function(L){var K=[],H=[],Z,re,Ae;for(Z=0;Z<L.sps.length;Z++)re=L.sps[Z],Ae=re.byteLength,K.push(Ae>>>8&255),K.push(Ae&255),K=K.concat(Array.prototype.slice.call(re));for(Z=0;Z<L.pps.length;Z++)re=L.pps[Z],Ae=re.byteLength,H.push(Ae>>>8&255),H.push(Ae&255),H=H.concat(Array.prototype.slice.call(re));var Te=ve.box(ve.types.avcC,new Uint8Array([1,K[3],K[4],K[5],252|3,224|L.sps.length].concat(K).concat([L.pps.length]).concat(H))),Ge=L.width,lt=L.height,dt=L.pixelRatio[0],Kt=L.pixelRatio[1];return ve.box(ve.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,Ge>>8&255,Ge&255,lt>>8&255,lt&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),Te,ve.box(ve.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),ve.box(ve.types.pasp,new Uint8Array([dt>>24,dt>>16&255,dt>>8&255,dt&255,Kt>>24,Kt>>16&255,Kt>>8&255,Kt&255])))}},{key:"esds",value:function(L){var K=L.config.length;return new Uint8Array([0,0,0,0,3,23+K,0,1,0,4,15+K,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([K]).concat(L.config).concat([6,1,2]))}},{key:"mp4a",value:function(L){var K=L.samplerate;return ve.box(ve.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,L.channelCount,0,16,0,0,0,0,K>>8&255,K&255,0,0]),ve.box(ve.types.esds,ve.esds(L)))}},{key:"mp3",value:function(L){var K=L.samplerate;return ve.box(ve.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,L.channelCount,0,16,0,0,0,0,K>>8&255,K&255,0,0]))}},{key:"stsd",value:function(L){return L.type==="audio"?L.segmentCodec==="mp3"&&L.codec==="mp3"?ve.box(ve.types.stsd,ve.STSD,ve.mp3(L)):ve.box(ve.types.stsd,ve.STSD,ve.mp4a(L)):ve.box(ve.types.stsd,ve.STSD,ve.avc1(L))}},{key:"tkhd",value:function(L){var K=L.id,H=L.duration*L.timescale,Z=L.width,re=L.height,Ae=Math.floor(H/(ko+1)),Te=Math.floor(H%(ko+1));return ve.box(ve.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,K>>24&255,K>>16&255,K>>8&255,K&255,0,0,0,0,Ae>>24,Ae>>16&255,Ae>>8&255,Ae&255,Te>>24,Te>>16&255,Te>>8&255,Te&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,Z>>8&255,Z&255,0,0,re>>8&255,re&255,0,0]))}},{key:"traf",value:function(L,K){var H=ve.sdtp(L),Z=L.id,re=Math.floor(K/(ko+1)),Ae=Math.floor(K%(ko+1));return ve.box(ve.types.traf,ve.box(ve.types.tfhd,new Uint8Array([0,0,0,0,Z>>24,Z>>16&255,Z>>8&255,Z&255])),ve.box(ve.types.tfdt,new Uint8Array([1,0,0,0,re>>24,re>>16&255,re>>8&255,re&255,Ae>>24,Ae>>16&255,Ae>>8&255,Ae&255])),ve.trun(L,H.length+16+20+8+16+8+8),H)}},{key:"trak",value:function(L){return L.duration=L.duration||4294967295,ve.box(ve.types.trak,ve.tkhd(L),ve.mdia(L))}},{key:"trex",value:function(L){var K=L.id;return ve.box(ve.types.trex,new Uint8Array([0,0,0,0,K>>24,K>>16&255,K>>8&255,K&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}},{key:"trun",value:function(L,K){var H=L.samples||[],Z=H.length,re=12+16*Z,Ae=new Uint8Array(re),Te,Ge,lt,dt,Kt,Er;for(K+=8+re,Ae.set([L.type==="video"?1:0,0,15,1,Z>>>24&255,Z>>>16&255,Z>>>8&255,Z&255,K>>>24&255,K>>>16&255,K>>>8&255,K&255],0),Te=0;Te<Z;Te++)Ge=H[Te],lt=Ge.duration,dt=Ge.size,Kt=Ge.flags,Er=Ge.cts,Ae.set([lt>>>24&255,lt>>>16&255,lt>>>8&255,lt&255,dt>>>24&255,dt>>>16&255,dt>>>8&255,dt&255,Kt.isLeading<<2|Kt.dependsOn,Kt.isDependedOn<<6|Kt.hasRedundancy<<4|Kt.paddingValue<<1|Kt.isNonSync,Kt.degradPrio&240<<8,Kt.degradPrio&15,Er>>>24&255,Er>>>16&255,Er>>>8&255,Er&255],12+16*Te);return ve.box(ve.types.trun,Ae)}},{key:"initSegment",value:function(L){ve.types||ve.init();var K=ve.moov(L),H=new Uint8Array(ve.FTYP.byteLength+K.byteLength);return H.set(ve.FTYP),H.set(K,ve.FTYP.byteLength),H}}]),ve}();ro.types=void 0,ro.HDLR_TYPES=void 0,ro.STTS=void 0,ro.STSC=void 0,ro.STCO=void 0,ro.STSZ=void 0,ro.VMHD=void 0,ro.SMHD=void 0,ro.STSD=void 0,ro.FTYP=void 0,ro.DINF=void 0;var pa=9e4;function Ea(ve,q){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,H=ve*q*L;return K?Math.round(H):H}function Fa(ve,q){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Ea(ve,q,1/L,K)}function Ka(ve){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Ea(ve,1e3,1/pa,q)}function lo(ve){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Ea(ve,pa,1/q)}var so=10*1e3,Co=1024,Lo=1152,is=null,cs=null,Rs=function(){function ve(q,L,K){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";if(Object(r.a)(this,ve),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.observer=q,this.config=L,this.typeSupported=K,this.ISGenerated=!1,is===null){var Z=navigator.userAgent||"",re=Z.match(/Chrome\/(\d+)/i);is=re?parseInt(re[1]):0}if(cs===null){var Ae=navigator.userAgent.match(/Safari\/(\d+)/i);cs=Ae?parseInt(Ae[1]):0}}return Object(s.a)(ve,[{key:"destroy",value:function(){}},{key:"resetTimeStamp",value:function(L){j.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=L}},{key:"resetNextTimestamp",value:function(){j.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}},{key:"resetInitSegment",value:function(){j.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1}},{key:"getVideoStartPts",value:function(L){var K=!1,H=L.reduce(function(Z,re){var Ae=re.pts-Z;return Ae<-4294967296?(K=!0,Ko(Z,re.pts)):Ae>0?Z:re.pts},L[0].pts);return K&&j.debug("PTS rollover detected"),H}},{key:"remux",value:function(L,K,H,Z,re,Ae,Te,Ge){var lt,dt,Kt,Er,br,jr,Kr=re,In=re,kn=L.pid>-1,Gn=K.pid>-1,bi=K.samples.length,ua=L.samples.length>0,Xi=Te&&bi>0||bi>1,ta=(!kn||ua)&&(!Gn||Xi)||this.ISGenerated||Te;if(ta){this.ISGenerated||(Kt=this.generateIS(L,K,re,Ae));var Pa=this.isVideoContiguous,Ya=-1,Ba;if(Xi&&(Ya=as(K.samples),!Pa&&this.config.forceKeyFrameOnDiscontinuity))if(jr=!0,Ya>0){j.warn("[mp4-remuxer]: Dropped ".concat(Ya," out of ").concat(bi," video samples due to a missing keyframe"));var Sa=this.getVideoStartPts(K.samples);K.samples=K.samples.slice(Ya),K.dropped+=Ya,In+=(K.samples[0].pts-Sa)/K.inputTimeScale,Ba=In}else Ya===-1&&(j.warn("[mp4-remuxer]: No keyframe found out of ".concat(bi," video samples")),jr=!1);if(this.ISGenerated){if(ua&&Xi){var Go=this.getVideoStartPts(K.samples),Ls=Ko(L.samples[0].pts,Go)-Go,ys=Ls/K.inputTimeScale;Kr+=Math.max(0,ys),In+=Math.max(0,-ys)}if(ua){if(L.samplerate||(j.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),Kt=this.generateIS(L,K,re,Ae)),dt=this.remuxAudio(L,Kr,this.isAudioContiguous,Ae,Gn||Xi||Ge===gt.AUDIO?In:void 0),Xi){var bs=dt?dt.endPTS-dt.startPTS:0;K.inputTimeScale||(j.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),Kt=this.generateIS(L,K,re,Ae)),lt=this.remuxVideo(K,In,Pa,bs)}}else Xi&&(lt=this.remuxVideo(K,In,Pa,0));lt&&(lt.firstKeyFrame=Ya,lt.independent=Ya!==-1,lt.firstKeyFramePTS=Ba)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(H.samples.length&&(br=co(H,re,this._initPTS,this._initDTS)),Z.samples.length&&(Er=Ao(Z,re,this._initPTS))),{audio:dt,video:lt,initSegment:Kt,independent:jr,text:Er,id3:br}}},{key:"generateIS",value:function(L,K,H,Z){var re=L.samples,Ae=K.samples,Te=this.typeSupported,Ge={},lt=this._initPTS,dt=!lt||Z,Kt="audio/mp4",Er,br,jr;if(dt&&(Er=br=Infinity),L.config&&re.length){L.timescale=L.samplerate;switch(L.segmentCodec){case"mp3":Te.mpeg?(Kt="audio/mpeg",L.codec=""):Te.mp3&&(L.codec="mp3");break}Ge.audio={id:"audio",container:Kt,codec:L.codec,initSegment:L.segmentCodec==="mp3"&&Te.mpeg?new Uint8Array(0):ro.initSegment([L]),metadata:{channelCount:L.channelCount}},dt&&(jr=L.inputTimeScale,!lt||jr!==lt.timescale?Er=br=re[0].pts-Math.round(jr*H):dt=!1)}if(K.sps&&K.pps&&Ae.length&&(K.timescale=K.inputTimeScale,Ge.video={id:"main",container:"video/mp4",codec:K.codec,initSegment:ro.initSegment([K]),metadata:{width:K.width,height:K.height}},dt))if(jr=K.inputTimeScale,!lt||jr!==lt.timescale){var Kr=this.getVideoStartPts(Ae),In=Math.round(jr*H);br=Math.min(br,Ko(Ae[0].dts,Kr)-In),Er=Math.min(Er,Kr-In)}else dt=!1;if(Object.keys(Ge).length)return this.ISGenerated=!0,dt?(this._initPTS={baseTime:Er,timescale:jr},this._initDTS={baseTime:br,timescale:jr}):Er=jr=void 0,{tracks:Ge,initPTS:Er,timescale:jr}}},{key:"remuxVideo",value:function(L,K,H,Z){var re=L.inputTimeScale,Ae=L.samples,Te=[],Ge=Ae.length,lt=this._initPTS,dt=this.nextAvcDts,Kt=8,Er=this.videoSampleDuration,br,jr,Kr=Number.POSITIVE_INFINITY,In=Number.NEGATIVE_INFINITY,kn=!1;if(!H||dt===null){var Gn=K*re,bi=Ae[0].pts-Ko(Ae[0].dts,Ae[0].pts);dt=Gn-bi}for(var ua=lt.baseTime*re/lt.timescale,Xi=0;Xi<Ge;Xi++){var ta=Ae[Xi];ta.pts=Ko(ta.pts-ua,dt),ta.dts=Ko(ta.dts-ua,dt),ta.dts<Ae[Xi>0?Xi-1:Xi].dts&&(kn=!0)}kn&&Ae.sort(function(ze,Ct){var Zt=ze.dts-Ct.dts,yr=ze.pts-Ct.pts;return Zt||yr}),br=Ae[0].dts,jr=Ae[Ae.length-1].dts;var Pa=jr-br,Ya=Pa?Math.round(Pa/(Ge-1)):Er||L.inputTimeScale/30;if(H){var Ba=br-dt,Sa=Ba>Ya,Go=Ba<-1;if((Sa||Go)&&(Sa?j.warn("AVC: ".concat(Ka(Ba,!0)," ms (").concat(Ba,"dts) hole between fragments detected, filling it")):j.warn("AVC: ".concat(Ka(-Ba,!0)," ms (").concat(Ba,"dts) overlapping between fragments detected")),!Go||dt>Ae[0].pts)){br=dt;var Ls=Ae[0].pts-Ba;Ae[0].dts=br,Ae[0].pts=Ls,j.log("Video: First PTS/DTS adjusted: ".concat(Ka(Ls,!0),"/").concat(Ka(br,!0),", delta: ").concat(Ka(Ba,!0)," ms"))}}br=Math.max(0,br);for(var ys=0,bs=0,Fs=0;Fs<Ge;Fs++){for(var ws=Ae[Fs],Ws=ws.units,xe=Ws.length,Ze=0,wt=0;wt<xe;wt++)Ze+=Ws[wt].data.length;bs+=Ze,ys+=xe,ws.length=Ze,ws.dts=Math.max(ws.dts,br),Kr=Math.min(ws.pts,Kr),In=Math.max(ws.pts,In)}jr=Ae[Ge-1].dts;var ir=bs+4*ys+8,Pr;try{Pr=new Uint8Array(ir)}catch(ze){this.observer.emit(w.ERROR,w.ERROR,{type:O.MUX_ERROR,details:I.REMUX_ALLOC_ERROR,fatal:!1,error:ze,bytes:ir,reason:"fail allocating video mdat ".concat(ir)});return}var nn=new DataView(Pr.buffer);nn.setUint32(0,ir),Pr.set(ro.types.mdat,4);for(var Ue=!1,ie=Number.POSITIVE_INFINITY,Ce=Number.POSITIVE_INFINITY,et=Number.NEGATIVE_INFINITY,yt=Number.NEGATIVE_INFINITY,Ut=0;Ut<Ge;Ut++){for(var Qt=Ae[Ut],$t=Qt.units,Hr=0,ln=0,Ur=$t.length;ln<Ur;ln++){var Br=$t[ln],an=Br.data,pn=Br.data.byteLength;nn.setUint32(Kt,pn),Kt+=4,Pr.set(an,Kt),Kt+=pn,Hr+=4+pn}var jn=void 0;if(Ut<Ge-1)Er=Ae[Ut+1].dts-Qt.dts,jn=Ae[Ut+1].pts-Qt.pts;else{var _i=this.config,Di=Ut>0?Qt.dts-Ae[Ut-1].dts:Ya;if(jn=Ut>0?Qt.pts-Ae[Ut-1].pts:Ya,_i.stretchShortVideoTrack&&this.nextAudioPts!==null){var da=Math.floor(_i.maxBufferHole*re),Ji=(Z?Kr+Z*re:this.nextAudioPts)-Qt.pts;Ji>da?(Er=Ji-Di,Er<0?Er=Di:Ue=!0,j.log("[mp4-remuxer]: It is approximately ".concat(Ji/90," ms to the next segment; using duration ").concat(Er/90," ms for the last video frame."))):Er=Di}else Er=Di}var Qa=Math.round(Qt.pts-Qt.dts);ie=Math.min(ie,Er),et=Math.max(et,Er),Ce=Math.min(Ce,jn),yt=Math.max(yt,jn),Te.push(new $a(Qt.key,Er,Hr,Qa))}if(Te.length){if(is){if(is<70){var ya=Te[0].flags;ya.dependsOn=2,ya.isNonSync=0}}else if(cs&&(yt-Ce<et-ie&&Ya/et<.025&&Te[0].cts===0)){j.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");for(var fo=br,za=0,Xo=Te.length;za<Xo;za++){var ls=fo+Te[za].duration,N=fo+Te[za].cts;if(za<Xo-1){var U=ls+Te[za+1].cts;Te[za].duration=U-N}else Te[za].duration=za?Te[za-1].duration:Ya;Te[za].cts=0,fo=ls}}}Er=Ue||!Er?Ya:Er,this.nextAvcDts=dt=jr+Er,this.videoSampleDuration=Er,this.isVideoContiguous=!0;var ne=ro.moof(L.sequenceNumber++,br,E({},L,{samples:Te})),se="video",ge={data1:ne,data2:Pr,startPTS:Kr/re,endPTS:(In+Er)/re,startDTS:br/re,endDTS:dt/re,type:se,hasAudio:!1,hasVideo:!0,nb:Te.length,dropped:L.dropped};return L.samples=[],L.dropped=0,ge}},{key:"remuxAudio",value:function(L,K,H,Z,re){var Ae=L.inputTimeScale,Te=L.samplerate?L.samplerate:Ae,Ge=Ae/Te,lt=L.segmentCodec==="aac"?Co:Lo,dt=lt*Ge,Kt=this._initPTS,Er=L.segmentCodec==="mp3"&&this.typeSupported.mpeg,br=[],jr=re!==void 0,Kr=L.samples,In=Er?0:8,kn=this.nextAudioPts||-1,Gn=K*Ae,bi=Kt.baseTime*Ae/Kt.timescale;if(this.isAudioContiguous=H=H||Kr.length&&kn>0&&(Z&&Math.abs(Gn-kn)<9e3||Math.abs(Ko(Kr[0].pts-bi,Gn)-kn)<20*dt),Kr.forEach(function(Br){Br.pts=Ko(Br.pts-bi,Gn)}),!H||kn<0){if(Kr=Kr.filter(function(Br){return Br.pts>=0}),!Kr.length)return;re===0?kn=0:Z&&!jr?kn=Math.max(0,Gn):kn=Kr[0].pts}if(L.segmentCodec==="aac")for(var ua=this.config.maxAudioFramesDrift,Xi=0,ta=kn;Xi<Kr.length;Xi++){var Pa=Kr[Xi],Ya=Pa.pts,Ba=Ya-ta,Sa=Math.abs(1e3*Ba/Ae);if(Ba<=-ua*dt&&jr)Xi===0&&(j.warn("Audio frame @ ".concat((Ya/Ae).toFixed(3),"s overlaps nextAudioPts by ").concat(Math.round(1e3*Ba/Ae)," ms.")),this.nextAudioPts=kn=ta=Ya);else if(Ba>=ua*dt&&Sa<so&&jr){var Go=Math.round(Ba/dt);ta=Ya-Go*dt,ta<0&&(Go--,ta+=dt),Xi===0&&(this.nextAudioPts=kn=ta),j.warn("[mp4-remuxer]: Injecting ".concat(Go," audio frame @ ").concat((ta/Ae).toFixed(3),"s due to ").concat(Math.round(1e3*Ba/Ae)," ms gap."));for(var Ls=0;Ls<Go;Ls++){var ys=Math.max(ta,0),bs=ja.getSilentFrame(L.manifestCodec||L.codec,L.channelCount);bs||(j.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),bs=Pa.unit.subarray()),Kr.splice(Xi,0,{unit:bs,pts:ys}),ta+=dt,Xi++}}Pa.pts=ta,ta+=dt}for(var Fs=null,ws=null,Ws,xe=0,Ze=Kr.length;Ze--;)xe+=Kr[Ze].unit.byteLength;for(var wt=0,ir=Kr.length;wt<ir;wt++){var Pr=Kr[wt],nn=Pr.unit,Ue=Pr.pts;if(ws!==null){var ie=br[wt-1];ie.duration=Math.round((Ue-ws)/Ge)}else if(H&&L.segmentCodec==="aac"&&(Ue=kn),Fs=Ue,xe>0){xe+=In;try{Ws=new Uint8Array(xe)}catch(Br){this.observer.emit(w.ERROR,w.ERROR,{type:O.MUX_ERROR,details:I.REMUX_ALLOC_ERROR,fatal:!1,error:Br,bytes:xe,reason:"fail allocating audio mdat ".concat(xe)});return}if(!Er){var Ce=new DataView(Ws.buffer);Ce.setUint32(0,xe),Ws.set(ro.types.mdat,4)}}else return;Ws.set(nn,In);var et=nn.byteLength;In+=et,br.push(new $a(!0,lt,et,0)),ws=Ue}var yt=br.length;if(!yt)return;var Ut=br[br.length-1];this.nextAudioPts=kn=ws+Ge*Ut.duration;var Qt=Er?new Uint8Array(0):ro.moof(L.sequenceNumber++,Fs/Ge,E({},L,{samples:br}));L.samples=[];var $t=Fs/Ae,Hr=kn/Ae,ln="audio",Ur={data1:Qt,data2:Ws,startPTS:$t,endPTS:Hr,startDTS:$t,endDTS:Hr,type:ln,hasAudio:!0,hasVideo:!1,nb:yt};return this.isAudioContiguous=!0,Ur}},{key:"remuxEmptyAudio",value:function(L,K,H,Z){var re=L.inputTimeScale,Ae=L.samplerate?L.samplerate:re,Te=re/Ae,Ge=this.nextAudioPts,lt=this._initDTS,dt=lt.baseTime*9e4/lt.timescale,Kt=(Ge!==null?Ge:Z.startDTS*re)+dt,Er=Z.endDTS*re+dt,br=Te*Co,jr=Math.ceil((Er-Kt)/br),Kr=ja.getSilentFrame(L.manifestCodec||L.codec,L.channelCount);if(j.warn("[mp4-remuxer]: remux empty Audio"),!Kr){j.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var In=[],kn=0;kn<jr;kn++){var Gn=Kt+kn*br;In.push({unit:Kr,pts:Gn,dts:Gn})}return L.samples=In,this.remuxAudio(L,K,H,!1)}}]),ve}();function Ko(ve,q){var L;if(q===null)return ve;for(q<ve?L=-8589934592:L=8589934592;Math.abs(ve-q)>4294967296;)ve+=L;return ve}function as(ve){for(var q=0;q<ve.length;q++)if(ve[q].key)return q;return-1}function co(ve,q,L,K){var H=ve.samples.length;if(!H)return;for(var Z=ve.inputTimeScale,re=0;re<H;re++){var Ae=ve.samples[re];Ae.pts=Ko(Ae.pts-L.baseTime*9e4/L.timescale,q*Z)/Z,Ae.dts=Ko(Ae.dts-K.baseTime*9e4/K.timescale,q*Z)/Z}var Te=ve.samples;return ve.samples=[],{samples:Te}}function Ao(ve,q,L){var K=ve.samples.length;if(!K)return;for(var H=ve.inputTimeScale,Z=0;Z<K;Z++){var re=ve.samples[Z];re.pts=Ko(re.pts-L.baseTime*9e4/L.timescale,q*H)/H}ve.samples.sort(function(Te,Ge){return Te.pts-Ge.pts});var Ae=ve.samples;return ve.samples=[],{samples:Ae}}var $a=Object(s.a)(function ve(q,L,K,H){Object(r.a)(this,ve),this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=L,this.size=K,this.cts=H,this.flags=new ss(q)}),ss=Object(s.a)(function ve(q){Object(r.a)(this,ve),this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=q?2:1,this.isNonSync=q?0:1}),Cs=function(){function ve(){Object(r.a)(this,ve),this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null}return Object(s.a)(ve,[{key:"destroy",value:function(){}},{key:"resetTimeStamp",value:function(L){this.initPTS=L,this.lastEndTime=null}},{key:"resetNextTimestamp",value:function(){this.lastEndTime=null}},{key:"resetInitSegment",value:function(L,K,H,Z){this.audioCodec=K,this.videoCodec=H,this.generateInitSegment(Dn(L,Z)),this.emitInitSegment=!0}},{key:"generateInitSegment",value:function(L){var K=this.audioCodec,H=this.videoCodec;if(!(L!=null&&L.byteLength)){this.initTracks=void 0,this.initData=void 0;return}var Z=this.initData=rn(L);K||(K=il(Z.audio,be.AUDIO)),H||(H=il(Z.video,be.VIDEO));var re={};Z.audio&&Z.video?re.audiovideo={container:"video/mp4",codec:K+","+H,initSegment:L,id:"main"}:Z.audio?re.audio={container:"audio/mp4",codec:K,initSegment:L,id:"audio"}:Z.video?re.video={container:"video/mp4",codec:H,initSegment:L,id:"main"}:j.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=re}},{key:"remux",value:function(L,K,H,Z,re,Ae){var Te,Ge,lt=this.initPTS,dt=this.lastEndTime,Kt={audio:void 0,video:void 0,text:Z,id3:H,initSegment:void 0};T(dt)||(dt=this.lastEndTime=re||0);var Er=K.samples;if(!(Er!=null&&Er.length))return Kt;var br={initPTS:void 0,timescale:1},jr=this.initData;if((Te=jr)!=null&&Te.length||(this.generateInitSegment(Er),jr=this.initData),!((Ge=jr)!=null&&Ge.length))return j.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),Kt;this.emitInitSegment&&(br.tracks=this.initTracks,this.emitInitSegment=!1);var Kr=Ui(Er,jr),In=ri(jr,Er),kn=In===null?re:In;(Fo(lt,kn,re,Kr)||br.timescale!==lt.timescale&&Ae)&&(br.initPTS=kn-re,lt&<.timescale===1&&j.warn("Adjusting initPTS by ".concat(br.initPTS-lt.baseTime)),this.initPTS=lt={baseTime:br.initPTS,timescale:1});var Gn=L?kn-lt.baseTime/lt.timescale:dt,bi=Gn+Kr;Jn(jr,Er,lt.baseTime/lt.timescale),Kr>0?this.lastEndTime=bi:(j.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var ua=!!jr.audio,Xi=!!jr.video,ta="";ua&&(ta+="audio"),Xi&&(ta+="video");var Pa={data1:Er,startPTS:Gn,startDTS:Gn,endPTS:bi,endDTS:bi,type:ta,hasAudio:ua,hasVideo:Xi,nb:1,dropped:0};return Kt.audio=Pa.type==="audio"?Pa:void 0,Kt.video=Pa.type!=="audio"?Pa:void 0,Kt.initSegment=br,Kt.id3=co(H,re,lt,lt),Z.samples.length&&(Kt.text=Ao(Z,re,lt)),Kt}}]),ve}();function Fo(ve,q,L,K){if(ve===null)return!0;var H=Math.max(K,1),Z=q-ve.baseTime/ve.timescale;return Math.abs(Z-L)>H}function il(ve,q){var L=ve==null?void 0:ve.codec;return L&&L.length>4?L:L==="hvc1"||L==="hev1"?"hvc1.1.6.L120.90":L==="av01"?"av01.0.04M.08":L==="avc1"||q===be.VIDEO?"avc1.42e01e":"mp4a.40.5"}var Eo;try{Eo=self.performance.now.bind(self.performance)}catch(ve){j.debug("Unable to use Performance API on this environment"),Eo=typeof self!="undefined"&&self.Date.now}var zo=[{demux:xr,remux:Cs},{demux:Oi,remux:Rs},{demux:Ha,remux:Rs},{demux:Da,remux:Rs}],Bs=function(){function ve(q,L,K,H,Z){Object(r.a)(this,ve),this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=q,this.typeSupported=L,this.config=K,this.vendor=H,this.id=Z}return Object(s.a)(ve,[{key:"configure",value:function(L){this.transmuxConfig=L,this.decrypter&&this.decrypter.reset()}},{key:"push",value:function(L,K,H,Z){var re=this,Ae=H.transmuxing;Ae.executeStart=Eo();var Te=new Uint8Array(L),Ge=this.currentTransmuxState,lt=this.transmuxConfig;Z&&(this.currentTransmuxState=Z);var dt=Z||Ge,Kt=dt.contiguous,Er=dt.discontinuity,br=dt.trackSwitch,jr=dt.accurateTimeOffset,Kr=dt.timeOffset,In=dt.initSegmentChange,kn=lt.audioCodec,Gn=lt.videoCodec,bi=lt.defaultInitPts,ua=lt.duration,Xi=lt.initSegmentData,ta=ms(Te,K);if(ta&&ta.method==="AES-128"){var Pa=this.getDecrypter();if(Pa.isSync()){var Ya=Pa.softwareDecrypt(Te,ta.key.buffer,ta.iv.buffer),Ba=H.part>-1;if(Ba&&(Ya=Pa.flush()),!Ya)return Ae.executeEnd=Eo(),hs(H);Te=new Uint8Array(Ya)}else return this.decryptionPromise=Pa.webCryptoDecrypt(Te,ta.key.buffer,ta.iv.buffer).then(function(bs){var Fs=re.push(bs,null,H);return re.decryptionPromise=null,Fs}),this.decryptionPromise}var Sa=this.needsProbing(Er,br);if(Sa){var Go=this.configureTransmuxer(Te);if(Go)return j.warn("[transmuxer] ".concat(Go.message)),this.observer.emit(w.ERROR,w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!1,error:Go,reason:Go.message}),Ae.executeEnd=Eo(),hs(H)}(Er||br||In||Sa)&&this.resetInitSegment(Xi,kn,Gn,ua,K),(Er||In||Sa)&&this.resetInitialTimestamp(bi),Kt||this.resetContiguity();var Ls=this.transmux(Te,ta,Kr,jr,H),ys=this.currentTransmuxState;return ys.contiguous=!0,ys.discontinuity=!1,ys.trackSwitch=!1,Ae.executeEnd=Eo(),Ls}},{key:"flush",value:function(L){var K=this,H=L.transmuxing;H.executeStart=Eo();var Z=this.decrypter,re=this.currentTransmuxState,Ae=this.decryptionPromise;if(Ae)return Ae.then(function(){return K.flush(L)});var Te=[],Ge=re.timeOffset;if(Z){var lt=Z.flush();lt&&Te.push(this.push(lt,null,L))}var dt=this.demuxer,Kt=this.remuxer;if(!dt||!Kt)return H.executeEnd=Eo(),[hs(L)];var Er=dt.flush(Ge);return gn(Er)?Er.then(function(br){return K.flushRemux(Te,br,L),Te}):(this.flushRemux(Te,Er,L),Te)}},{key:"flushRemux",value:function(L,K,H){var Z=K.audioTrack,re=K.videoTrack,Ae=K.id3Track,Te=K.textTrack,Ge=this.currentTransmuxState,lt=Ge.accurateTimeOffset,dt=Ge.timeOffset;j.log("[transmuxer.ts]: Flushed fragment ".concat(H.sn).concat(H.part>-1?" p: "+H.part:""," of level ").concat(H.level));var Kt=this.remuxer.remux(Z,re,Ae,Te,dt,lt,!0,this.id);L.push({remuxResult:Kt,chunkMeta:H}),H.transmuxing.executeEnd=Eo()}},{key:"resetInitialTimestamp",value:function(L){var K=this.demuxer,H=this.remuxer;if(!K||!H)return;K.resetTimeStamp(L),H.resetTimeStamp(L)}},{key:"resetContiguity",value:function(){var L=this.demuxer,K=this.remuxer;if(!L||!K)return;L.resetContiguity(),K.resetNextTimestamp()}},{key:"resetInitSegment",value:function(L,K,H,Z,re){var Ae=this.demuxer,Te=this.remuxer;if(!Ae||!Te)return;Ae.resetInitSegment(L,K,H,Z),Te.resetInitSegment(L,K,H,re)}},{key:"destroy",value:function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}},{key:"transmux",value:function(L,K,H,Z,re){var Ae;return K&&K.method==="SAMPLE-AES"?Ae=this.transmuxSampleAes(L,K,H,Z,re):Ae=this.transmuxUnencrypted(L,H,Z,re),Ae}},{key:"transmuxUnencrypted",value:function(L,K,H,Z){var re=this.demuxer.demux(L,K,!1,!this.config.progressive),Ae=re.audioTrack,Te=re.videoTrack,Ge=re.id3Track,lt=re.textTrack,dt=this.remuxer.remux(Ae,Te,Ge,lt,K,H,!1,this.id);return{remuxResult:dt,chunkMeta:Z}}},{key:"transmuxSampleAes",value:function(L,K,H,Z,re){var Ae=this;return this.demuxer.demuxSampleAes(L,K,H).then(function(Te){var Ge=Ae.remuxer.remux(Te.audioTrack,Te.videoTrack,Te.id3Track,Te.textTrack,H,Z,!1,Ae.id);return{remuxResult:Ge,chunkMeta:re}})}},{key:"configureTransmuxer",value:function(L){for(var K=this.config,H=this.observer,Z=this.typeSupported,re=this.vendor,Ae,Te=0,Ge=zo.length;Te<Ge;Te++)if(zo[Te].demux.probe(L)){Ae=zo[Te];break}if(!Ae)return new Error("Failed to find demuxer by probing fragment data");var lt=this.demuxer,dt=this.remuxer,Kt=Ae.remux,Er=Ae.demux;(!dt||!(dt instanceof Kt))&&(this.remuxer=new Kt(H,K,Z,re)),(!lt||!(lt instanceof Er))&&(this.demuxer=new Er(H,K,Z),this.probe=Er.probe)}},{key:"needsProbing",value:function(L,K){return!this.demuxer||!this.remuxer||L||K}},{key:"getDecrypter",value:function(){var L=this.decrypter;return L||(L=this.decrypter=new _a(this.config)),L}}]),ve}();function ms(ve,q){var L=null;return ve.byteLength>0&&q!=null&&q.key!=null&&q.iv!==null&&q.method!=null&&(L=q),L}var hs=function(q){return{remuxResult:{},chunkMeta:q}};function gn(ve){return"then"in ve&&ve.then instanceof Function}var Ns=Object(s.a)(function ve(q,L,K,H,Z){Object(r.a)(this,ve),this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=q,this.videoCodec=L,this.initSegmentData=K,this.duration=H,this.defaultInitPts=Z||null}),Ll=Object(s.a)(function ve(q,L,K,H,Z,re){Object(r.a)(this,ve),this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=q,this.contiguous=L,this.accurateTimeOffset=K,this.trackSwitch=H,this.timeOffset=Z,this.initSegmentChange=re}),el={exports:{}};(function(ve){var q=Object.prototype.hasOwnProperty,L="~";function K(){}Object.create&&(K.prototype=Object.create(null),new K().__proto__||(L=!1));function H(Te,Ge,lt){this.fn=Te,this.context=Ge,this.once=lt||!1}function Z(Te,Ge,lt,dt,Kt){if(typeof lt!="function")throw new TypeError("The listener must be a function");var Er=new H(lt,dt||Te,Kt),br=L?L+Ge:Ge;return Te._events[br]?Te._events[br].fn?Te._events[br]=[Te._events[br],Er]:Te._events[br].push(Er):(Te._events[br]=Er,Te._eventsCount++),Te}function re(Te,Ge){--Te._eventsCount===0?Te._events=new K:delete Te._events[Ge]}function Ae(){this._events=new K,this._eventsCount=0}Ae.prototype.eventNames=function(){var Ge=[],lt,dt;if(this._eventsCount===0)return Ge;for(dt in lt=this._events)q.call(lt,dt)&&Ge.push(L?dt.slice(1):dt);return Object.getOwnPropertySymbols?Ge.concat(Object.getOwnPropertySymbols(lt)):Ge},Ae.prototype.listeners=function(Ge){var lt=L?L+Ge:Ge,dt=this._events[lt];if(!dt)return[];if(dt.fn)return[dt.fn];for(var Kt=0,Er=dt.length,br=new Array(Er);Kt<Er;Kt++)br[Kt]=dt[Kt].fn;return br},Ae.prototype.listenerCount=function(Ge){var lt=L?L+Ge:Ge,dt=this._events[lt];return dt?dt.fn?1:dt.length:0},Ae.prototype.emit=function(Ge,lt,dt,Kt,Er,br){var jr=L?L+Ge:Ge;if(!this._events[jr])return!1;var Kr=this._events[jr],In=arguments.length,kn,Gn;if(Kr.fn){Kr.once&&this.removeListener(Ge,Kr.fn,void 0,!0);switch(In){case 1:return Kr.fn.call(Kr.context),!0;case 2:return Kr.fn.call(Kr.context,lt),!0;case 3:return Kr.fn.call(Kr.context,lt,dt),!0;case 4:return Kr.fn.call(Kr.context,lt,dt,Kt),!0;case 5:return Kr.fn.call(Kr.context,lt,dt,Kt,Er),!0;case 6:return Kr.fn.call(Kr.context,lt,dt,Kt,Er,br),!0}for(Gn=1,kn=new Array(In-1);Gn<In;Gn++)kn[Gn-1]=arguments[Gn];Kr.fn.apply(Kr.context,kn)}else{var bi=Kr.length,ua;for(Gn=0;Gn<bi;Gn++){Kr[Gn].once&&this.removeListener(Ge,Kr[Gn].fn,void 0,!0);switch(In){case 1:Kr[Gn].fn.call(Kr[Gn].context);break;case 2:Kr[Gn].fn.call(Kr[Gn].context,lt);break;case 3:Kr[Gn].fn.call(Kr[Gn].context,lt,dt);break;case 4:Kr[Gn].fn.call(Kr[Gn].context,lt,dt,Kt);break;default:if(!kn)for(ua=1,kn=new Array(In-1);ua<In;ua++)kn[ua-1]=arguments[ua];Kr[Gn].fn.apply(Kr[Gn].context,kn)}}}return!0},Ae.prototype.on=function(Ge,lt,dt){return Z(this,Ge,lt,dt,!1)},Ae.prototype.once=function(Ge,lt,dt){return Z(this,Ge,lt,dt,!0)},Ae.prototype.removeListener=function(Ge,lt,dt,Kt){var Er=L?L+Ge:Ge;if(!this._events[Er])return this;if(!lt)return re(this,Er),this;var br=this._events[Er];if(br.fn)br.fn===lt&&(!Kt||br.once)&&(!dt||br.context===dt)&&re(this,Er);else{for(var jr=0,Kr=[],In=br.length;jr<In;jr++)(br[jr].fn!==lt||Kt&&!br[jr].once||dt&&br[jr].context!==dt)&&Kr.push(br[jr]);Kr.length?this._events[Er]=Kr.length===1?Kr[0]:Kr:re(this,Er)}return this},Ae.prototype.removeAllListeners=function(Ge){var lt;return Ge?(lt=L?L+Ge:Ge,this._events[lt]&&re(this,lt)):(this._events=new K,this._eventsCount=0),this},Ae.prototype.off=Ae.prototype.removeListener,Ae.prototype.addListener=Ae.prototype.on,Ae.prefixed=L,Ae.EventEmitter=Ae,ve.exports=Ae})(el);var Gs=el.exports,ds=c(Gs),ks=qt()||{isTypeSupported:function(){return!1}},Qs=function(){function ve(q,L,K,H){var Z=this;Object(r.a)(this,ve),this.error=null,this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0;var re=q.config;this.hls=q,this.id=L,this.useWorker=!!re.enableWorker,this.onTransmuxComplete=K,this.onFlush=H;var Ae=function(Er,br){br=br||{},br.frag=Z.frag,br.id=Z.id,Er===w.ERROR&&(Z.error=br.error),Z.hls.trigger(Er,br)};this.observer=new ds,this.observer.on(w.FRAG_DECRYPTED,Ae),this.observer.on(w.ERROR,Ae);var Te={mp4:ks.isTypeSupported("video/mp4"),mpeg:ks.isTypeSupported("audio/mpeg"),mp3:ks.isTypeSupported('audio/mp4; codecs="mp3"')},Ge=navigator.vendor;if(this.useWorker&&typeof Worker!="undefined"){var lt=re.workerPath||To();if(lt){try{re.workerPath?(j.log("loading Web Worker ".concat(re.workerPath,' for "').concat(L,'"')),this.workerContext=So(re.workerPath)):(j.log('injecting Web Worker for "'.concat(L,'"')),this.workerContext=ao()),this.onwmsg=function(Kt){return Z.onWorkerMessage(Kt)};var dt=this.workerContext.worker;dt.addEventListener("message",this.onwmsg),dt.onerror=function(Kt){var Er=new Error("".concat(Kt.message," (").concat(Kt.filename,":").concat(Kt.lineno,")"));re.enableWorker=!1,j.warn('Error in "'.concat(L,'" Web Worker, fallback to inline')),Z.hls.trigger(w.ERROR,{type:O.OTHER_ERROR,details:I.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:Er})},dt.postMessage({cmd:"init",typeSupported:Te,vendor:Ge,id:L,config:JSON.stringify(re)})}catch(Kt){j.warn('Error setting up "'.concat(L,'" Web Worker, fallback to inline'),Kt),this.resetWorker(),this.error=null,this.transmuxer=new Bs(this.observer,Te,re,Ge,L)}return}}this.transmuxer=new Bs(this.observer,Te,re,Ge,L)}return Object(s.a)(ve,[{key:"resetWorker",value:function(){if(this.workerContext){var L=this.workerContext,K=L.worker,H=L.objectURL;H&&self.URL.revokeObjectURL(H),K.removeEventListener("message",this.onwmsg),K.onerror=null,K.terminate(),this.workerContext=null}}},{key:"destroy",value:function(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else{var L=this.transmuxer;L&&(L.destroy(),this.transmuxer=null)}var K=this.observer;K&&K.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null}},{key:"push",value:function(L,K,H,Z,re,Ae,Te,Ge,lt,dt){var Kt=this,Er,br;lt.transmuxing.start=self.performance.now();var jr=this.transmuxer,Kr=Ae?Ae.start:re.start,In=re.decryptdata,kn=this.frag,Gn=!(kn&&re.cc===kn.cc),bi=!(kn&<.level===kn.level),ua=kn?lt.sn-kn.sn:-1,Xi=this.part?lt.part-this.part.index:-1,ta=ua===0&<.id>1&<.id===(kn==null?void 0:kn.stats.chunkCount),Pa=!bi&&(ua===1||ua===0&&(Xi===1||ta&&Xi<=0)),Ya=self.performance.now();(bi||ua||re.stats.parsing.start===0)&&(re.stats.parsing.start=Ya),Ae&&(Xi||!Pa)&&(Ae.stats.parsing.start=Ya);var Ba=!(kn&&((Er=re.initSegment)==null?void 0:Er.url)===((br=kn.initSegment)==null?void 0:br.url)),Sa=new Ll(Gn,Pa,Ge,bi,Kr,Ba);if(!Pa||Gn||Ba){j.log("[transmuxer-interface, ".concat(re.type,"]: Starting new transmux session for sn: ").concat(lt.sn," p: ").concat(lt.part," level: ").concat(lt.level," id: ").concat(lt.id,`
|
|
|
discontinuity: `).concat(Gn,`
|
|
|
trackSwitch: `).concat(bi,`
|
|
|
contiguous: `).concat(Pa,`
|
|
|
accurateTimeOffset: `).concat(Ge,`
|
|
|
timeOffset: `).concat(Kr,`
|
|
|
initSegmentChange: `).concat(Ba));var Go=new Ns(H,Z,K,Te,dt);this.configureTransmuxer(Go)}if(this.frag=re,this.part=Ae,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:L,decryptdata:In,chunkMeta:lt,state:Sa},L instanceof ArrayBuffer?[L]:[]);else if(jr){var Ls=jr.push(L,In,lt,Sa);gn(Ls)?(jr.async=!0,Ls.then(function(ys){Kt.handleTransmuxComplete(ys)}).catch(function(ys){Kt.transmuxerError(ys,lt,"transmuxer-interface push error")})):(jr.async=!1,this.handleTransmuxComplete(Ls))}}},{key:"flush",value:function(L){var K=this;L.transmuxing.start=self.performance.now();var H=this.transmuxer;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:L});else if(H){var Z=H.flush(L),re=gn(Z);re||H.async?(gn(Z)||(Z=Promise.resolve(Z)),Z.then(function(Ae){K.handleFlushResult(Ae,L)}).catch(function(Ae){K.transmuxerError(Ae,L,"transmuxer-interface flush error")})):this.handleFlushResult(Z,L)}}},{key:"transmuxerError",value:function(L,K,H){if(!this.hls)return;this.error=L,this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,chunkMeta:K,fatal:!1,error:L,err:L,reason:H})}},{key:"handleFlushResult",value:function(L,K){var H=this;L.forEach(function(Z){H.handleTransmuxComplete(Z)}),this.onFlush(K)}},{key:"onWorkerMessage",value:function(L){var K=L.data,H=this.hls;switch(K.event){case"init":{var Z,re=(Z=this.workerContext)==null?void 0:Z.objectURL;re&&self.URL.revokeObjectURL(re);break}case"transmuxComplete":{this.handleTransmuxComplete(K.data);break}case"flush":{this.onFlush(K.data);break}case"workerLog":j[K.data.logType]&&j[K.data.logType](K.data.message);break;default:{K.data=K.data||{},K.data.frag=this.frag,K.data.id=this.id,H.trigger(K.event,K.data);break}}}},{key:"configureTransmuxer",value:function(L){var K=this.transmuxer;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:L}):K&&K.configure(L)}},{key:"handleTransmuxComplete",value:function(L){L.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(L)}}]),ve}(),tl=250,xs=2,Us=.1,al=.05,Js=function(){function ve(q,L,K,H){Object(r.a)(this,ve),this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=q,this.media=L,this.fragmentTracker=K,this.hls=H}return Object(s.a)(ve,[{key:"destroy",value:function(){this.media=null,this.hls=this.fragmentTracker=null}},{key:"poll",value:function(L,K){var H=this.config,Z=this.media,re=this.stalled;if(Z===null)return;var Ae=Z.currentTime,Te=Z.seeking,Ge=this.seeking&&!Te,lt=!this.seeking&&Te;if(this.seeking=Te,Ae!==L){if(this.moved=!0,re!==null){if(this.stallReported){var dt=self.performance.now()-re;j.warn("playback not stuck anymore @".concat(Ae,", after ").concat(Math.round(dt),"ms")),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if(lt||Ge){this.stalled=null;return}if(Z.paused&&!Te||Z.ended||Z.playbackRate===0||!Ci.getBuffered(Z).length)return;var Kt=Ci.bufferInfo(Z,Ae,0),Er=Kt.len>0,br=Kt.nextStart||0;if(!Er&&!br)return;if(Te){var jr=Kt.len>xs,Kr=!br||K&&K.start<=Ae||br-Ae>xs&&!this.fragmentTracker.getPartialFragment(Ae);if(jr||Kr)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var In,kn=Math.max(br,Kt.start||0)-Ae,Gn=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,bi=Gn==null||(In=Gn.details)==null?void 0:In.live,ua=bi?Gn.details.targetduration*2:xs,Xi=this.fragmentTracker.getPartialFragment(Ae);if(kn>0&&(kn<=ua||Xi)){this._trySkipBufferHole(Xi);return}}var ta=self.performance.now();if(re===null){this.stalled=ta;return}var Pa=ta-re;if(!Te&&Pa>=tl&&(this._reportStall(Kt),!this.media))return;var Ya=Ci.bufferInfo(Z,Ae,H.maxBufferHole);this._tryFixBufferStall(Ya,Pa)}},{key:"_tryFixBufferStall",value:function(L,K){var H=this.config,Z=this.fragmentTracker,re=this.media;if(re===null)return;var Ae=re.currentTime,Te=Z.getPartialFragment(Ae);if(Te){var Ge=this._trySkipBufferHole(Te);if(Ge||!this.media)return}(L.len>H.maxBufferHole||L.nextStart&&L.nextStart-Ae<H.maxBufferHole)&&K>H.highBufferWatchdogPeriod*1e3&&(j.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}},{key:"_reportStall",value:function(L){var K=this.hls,H=this.media,Z=this.stallReported;if(!Z&&H){this.stallReported=!0;var re=new Error("Playback stalling at @".concat(H.currentTime," due to low buffer (").concat(JSON.stringify(L),")"));j.warn(re.message),K.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_STALLED_ERROR,fatal:!1,error:re,buffer:L.len})}}},{key:"_trySkipBufferHole",value:function(L){var K=this.config,H=this.hls,Z=this.media;if(Z===null)return 0;var re=Z.currentTime,Ae=Ci.bufferInfo(Z,re,0),Te=re<Ae.start?Ae.start:Ae.nextStart;if(Te){var Ge=Ae.len<=K.maxBufferHole,lt=Ae.len>0&&Ae.len<1&&Z.readyState<3,dt=Te-re;if(dt>0&&(Ge||lt)){if(dt>K.maxBufferHole){var Kt=this.fragmentTracker,Er=!1;if(re===0){var br=Kt.getAppendedFrag(0,gt.MAIN);br&&Te<br.end&&(Er=!0)}if(!Er){var jr=L||Kt.getAppendedFrag(re,gt.MAIN);if(jr){for(var Kr=!1,In=jr.end;In<Te;){var kn=Kt.getPartialFragment(In);if(kn)In+=kn.duration;else{Kr=!0;break}}if(Kr)return 0}}}var Gn=Math.max(Te+al,re+Us);if(j.warn("skipping hole, adjusting currentTime from ".concat(re," to ").concat(Gn)),this.moved=!0,this.stalled=null,Z.currentTime=Gn,L&&!L.gap){var bi=new Error("fragment loaded with buffer holes, seeking from ".concat(re," to ").concat(Gn));H.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:bi,reason:bi.message,frag:L})}return Gn}}return 0}},{key:"_tryNudgeBuffer",value:function(){var L=this.config,K=this.hls,H=this.media,Z=this.nudgeRetry;if(H===null)return;var re=H.currentTime;if(this.nudgeRetry++,Z<L.nudgeMaxRetry){var Ae=re+(Z+1)*L.nudgeOffset,Te=new Error("Nudging 'currentTime' from ".concat(re," to ").concat(Ae));j.warn(Te.message),H.currentTime=Ae,K.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_NUDGE_ON_STALL,error:Te,fatal:!1})}else{var Ge=new Error("Playhead still not moving while enough data buffered @".concat(re," after ").concat(L.nudgeMaxRetry," nudges"));j.error(Ge.message),K.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_STALLED_ERROR,error:Ge,fatal:!0})}}}]),ve}(),Vo=100,No=function(ve){Object(o.a)(L,ve);var q=Object(e.a)(L);function L(K,H,Z){var re;return Object(r.a)(this,L),re=q.call(this,K,H,Z,"[stream-controller]",gt.MAIN),re.audioCodecSwap=!1,re.gapController=null,re.level=-1,re._forceStartLoad=!1,re.altAudio=!1,re.audioOnly=!1,re.fragPlaying=null,re.onvplaying=null,re.onvseeked=null,re.fragLastKbps=0,re.couldBacktrack=!1,re.backtrackFragment=null,re.audioCodecSwitch=!1,re.videoBuffer=null,re._registerListeners(),re}return Object(s.a)(L,[{key:"_registerListeners",value:function(){var H=this.hls;H.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.MANIFEST_PARSED,this.onManifestParsed,this),H.on(w.LEVEL_LOADING,this.onLevelLoading,this),H.on(w.LEVEL_LOADED,this.onLevelLoaded,this),H.on(w.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),H.on(w.ERROR,this.onError,this),H.on(w.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.on(w.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.on(w.BUFFER_CREATED,this.onBufferCreated,this),H.on(w.BUFFER_FLUSHED,this.onBufferFlushed,this),H.on(w.LEVELS_UPDATED,this.onLevelsUpdated,this),H.on(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.MANIFEST_PARSED,this.onManifestParsed,this),H.off(w.LEVEL_LOADED,this.onLevelLoaded,this),H.off(w.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),H.off(w.ERROR,this.onError,this),H.off(w.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.off(w.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.off(w.BUFFER_CREATED,this.onBufferCreated,this),H.off(w.BUFFER_FLUSHED,this.onBufferFlushed,this),H.off(w.LEVELS_UPDATED,this.onLevelsUpdated,this),H.off(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"onHandlerDestroying",value:function(){this._unregisterListeners(),this.onMediaDetaching()}},{key:"startLoad",value:function(H){if(this.levels){var Z=this.lastCurrentTime,re=this.hls;if(this.stopLoad(),this.setInterval(Vo),this.level=-1,!this.startFragRequested){var Ae=re.startLevel;Ae===-1&&(re.config.testBandwidth&&this.levels.length>1?(Ae=0,this.bitrateTest=!0):Ae=re.nextAutoLevel),this.level=re.nextLoadLevel=Ae,this.loadedmetadata=!1}Z>0&&H===-1&&(this.log("Override startPosition with lastCurrentTime @".concat(Z.toFixed(3))),H=Z),this.state=Bi.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=H,this.tick()}else this._forceStartLoad=!0,this.state=Bi.STOPPED}},{key:"stopLoad",value:function(){this._forceStartLoad=!1,Object(t.a)(Object(m.a)(L.prototype),"stopLoad",this).call(this)}},{key:"doTick",value:function(){switch(this.state){case Bi.WAITING_LEVEL:{var H,Z=this.levels,re=this.level,Ae=Z==null||(H=Z[re])==null?void 0:H.details;if(Ae&&(!Ae.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(Ae))break;this.state=Bi.IDLE;break}break}case Bi.FRAG_LOADING_WAITING_RETRY:{var Te,Ge=self.performance.now(),lt=this.retryDate;(!lt||Ge>=lt||(Te=this.media)!=null&&Te.seeking)&&(this.resetStartWhenNotLoaded(this.level),this.state=Bi.IDLE)}break}this.state===Bi.IDLE&&this.doTickIdle(),this.onTickEnd()}},{key:"onTickEnd",value:function(){Object(t.a)(Object(m.a)(L.prototype),"onTickEnd",this).call(this),this.checkBuffer(),this.checkFragmentChanged()}},{key:"doTickIdle",value:function(){var H=this.hls,Z=this.levelLastLoaded,re=this.levels,Ae=this.media,Te=H.config,Ge=H.nextLoadLevel;if(Z===null||!Ae&&(this.startFragRequested||!Te.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!(re!=null&&re[Ge]))return;var lt=re[Ge],dt=this.getMainFwdBufferInfo();if(dt===null)return;var Kt=this.getLevelDetails();if(Kt&&this._streamEnded(dt,Kt)){var Er={};this.altAudio&&(Er.type="video"),this.hls.trigger(w.BUFFER_EOS,Er),this.state=Bi.ENDED;return}H.loadLevel!==Ge&&H.manualLevel===-1&&this.log("Adapting to level ".concat(Ge," from level ").concat(this.level)),this.level=H.nextLoadLevel=Ge;var br=lt.details;if(!br||this.state===Bi.WAITING_LEVEL||br.live&&this.levelLastLoaded!==Ge){this.level=Ge,this.state=Bi.WAITING_LEVEL;return}var jr=dt.len,Kr=this.getMaxBufferLength(lt.maxBitrate);if(jr>=Kr)return;this.backtrackFragment&&this.backtrackFragment.start>dt.end&&(this.backtrackFragment=null);var In=this.backtrackFragment?this.backtrackFragment.start:dt.end,kn=this.getNextFragment(In,br);if(this.couldBacktrack&&!this.fragPrevious&&kn&&kn.sn!=="initSegment"&&this.fragmentTracker.getState(kn)!==Et.OK){var Gn,bi=((Gn=this.backtrackFragment)!=null?Gn:kn).sn,ua=bi-br.startSN,Xi=br.fragments[ua-1];Xi&&kn.cc===Xi.cc&&(kn=Xi,this.fragmentTracker.removeFragment(Xi))}else this.backtrackFragment&&dt.len&&(this.backtrackFragment=null);if(kn&&this.isLoopLoading(kn,In)){var ta=kn.gap;if(!ta){var Pa=this.audioOnly&&!this.altAudio?be.AUDIO:be.VIDEO,Ya=(Pa===be.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Ya&&this.afterBufferFlushed(Ya,Pa,gt.MAIN)}kn=this.getNextFragmentLoopLoading(kn,br,dt,gt.MAIN,Kr)}if(!kn)return;kn.initSegment&&!kn.initSegment.data&&!this.bitrateTest&&(kn=kn.initSegment),this.loadFragment(kn,lt,In)}},{key:"loadFragment",value:function(H,Z,re){var Ae=this.fragmentTracker.getState(H);this.fragCurrent=H,Ae===Et.NOT_LOADED||Ae===Et.PARTIAL?H.sn==="initSegment"?this._loadInitSegment(H,Z):this.bitrateTest?(this.log("Fragment ".concat(H.sn," of level ").concat(H.level," is being downloaded to test bitrate and will not be buffered")),this._loadBitrateTestFrag(H,Z)):(this.startFragRequested=!0,Object(t.a)(Object(m.a)(L.prototype),"loadFragment",this).call(this,H,Z,re)):this.clearTrackerIfNeeded(H)}},{key:"getBufferedFrag",value:function(H){return this.fragmentTracker.getBufferedFrag(H,gt.MAIN)}},{key:"followingBufferedFrag",value:function(H){return H?this.getBufferedFrag(H.end+.5):null}},{key:"immediateLevelSwitch",value:function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}},{key:"nextLevelSwitch",value:function(){var H=this.levels,Z=this.media;if(Z!=null&&Z.readyState){var re,Ae=this.getAppendedFrag(Z.currentTime);Ae&&Ae.start>1&&this.flushMainBuffer(0,Ae.start-1);var Te=this.getLevelDetails();if(Te!=null&&Te.live){var Ge=this.getMainFwdBufferInfo();if(!Ge||Ge.len<Te.targetduration*2)return}if(!Z.paused&&H){var lt=this.hls.nextLoadLevel,dt=H[lt],Kt=this.fragLastKbps;Kt&&this.fragCurrent?re=this.fragCurrent.duration*dt.maxBitrate/(1e3*Kt)+1:re=0}else re=0;var Er=this.getBufferedFrag(Z.currentTime+re);if(Er){var br=this.followingBufferedFrag(Er);if(br){this.abortCurrentFrag();var jr=br.maxStartPTS?br.maxStartPTS:br.start,Kr=br.duration,In=Math.max(Er.end,jr+Math.min(Math.max(Kr-this.config.maxFragLookUpTolerance,Kr*.5),Kr*.75));this.flushMainBuffer(In,Number.POSITIVE_INFINITY)}}}}},{key:"abortCurrentFrag",value:function(){var H=this.fragCurrent;this.fragCurrent=null,this.backtrackFragment=null,H&&(H.abortRequests(),this.fragmentTracker.removeFragment(H));switch(this.state){case Bi.KEY_LOADING:case Bi.FRAG_LOADING:case Bi.FRAG_LOADING_WAITING_RETRY:case Bi.PARSING:case Bi.PARSED:this.state=Bi.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}},{key:"flushMainBuffer",value:function(H,Z){Object(t.a)(Object(m.a)(L.prototype),"flushMainBuffer",this).call(this,H,Z,this.altAudio?"video":null)}},{key:"onMediaAttached",value:function(H,Z){Object(t.a)(Object(m.a)(L.prototype),"onMediaAttached",this).call(this,H,Z);var re=Z.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),re.addEventListener("playing",this.onvplaying),re.addEventListener("seeked",this.onvseeked),this.gapController=new Js(this.config,re,this.fragmentTracker,this.hls)}},{key:"onMediaDetaching",value:function(){var H=this.media;H&&this.onvplaying&&this.onvseeked&&(H.removeEventListener("playing",this.onvplaying),H.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),Object(t.a)(Object(m.a)(L.prototype),"onMediaDetaching",this).call(this)}},{key:"onMediaPlaying",value:function(){this.tick()}},{key:"onMediaSeeked",value:function(){var H=this.media,Z=H?H.currentTime:null;T(Z)&&this.log("Media seeked to ".concat(Z.toFixed(3)));var re=this.getMainFwdBufferInfo();if(re===null||re.len===0){this.warn('Main forward buffer length on "seeked" event '.concat(re?re.len:"empty",")"));return}this.tick()}},{key:"onManifestLoading",value:function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(w.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=0,this.levels=this.fragPlaying=this.backtrackFragment=null,this.altAudio=this.audioOnly=!1}},{key:"onManifestParsed",value:function(H,Z){var re=!1,Ae=!1,Te;Z.levels.forEach(function(Ge){Te=Ge.audioCodec,Te&&(Te.indexOf("mp4a.40.2")!==-1&&(re=!0),Te.indexOf("mp4a.40.5")!==-1&&(Ae=!0))}),this.audioCodecSwitch=re&&Ae&&!mo(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=Z.levels,this.startFragRequested=!1}},{key:"onLevelLoading",value:function(H,Z){var re=this.levels;if(!re||this.state!==Bi.IDLE)return;var Ae=re[Z.level];(!Ae.details||Ae.details.live&&this.levelLastLoaded!==Z.level||this.waitForCdnTuneIn(Ae.details))&&(this.state=Bi.WAITING_LEVEL)}},{key:"onLevelLoaded",value:function(H,Z){var re,Ae=this.levels,Te=Z.level,Ge=Z.details,lt=Ge.totalduration;if(!Ae){this.warn("Levels were reset while loading level ".concat(Te));return}this.log("Level ".concat(Te," loaded [").concat(Ge.startSN,",").concat(Ge.endSN,"]").concat(Ge.lastPartSn?"[part-".concat(Ge.lastPartSn,"-").concat(Ge.lastPartIndex,"]"):"",", cc [").concat(Ge.startCC,", ").concat(Ge.endCC,"] duration:").concat(lt));var dt=Ae[Te],Kt=this.fragCurrent;Kt&&(this.state===Bi.FRAG_LOADING||this.state===Bi.FRAG_LOADING_WAITING_RETRY)&&((Kt.level!==Z.level||Kt.urlId!==dt.urlId)&&Kt.loader&&this.abortCurrentFrag());var Er=0;if(Ge.live||(re=dt.details)!=null&&re.live){if(Ge.fragments[0]||(Ge.deltaUpdateFailed=!0),Ge.deltaUpdateFailed)return;Er=this.alignPlaylists(Ge,dt.details)}if(dt.details=Ge,this.levelLastLoaded=Te,this.hls.trigger(w.LEVEL_UPDATED,{details:Ge,level:Te}),this.state===Bi.WAITING_LEVEL){if(this.waitForCdnTuneIn(Ge))return;this.state=Bi.IDLE}this.startFragRequested?Ge.live&&this.synchronizeToLiveEdge(Ge):this.setStartPosition(Ge,Er),this.tick()}},{key:"_handleFragmentLoadProgress",value:function(H){var Z,re=H.frag,Ae=H.part,Te=H.payload,Ge=this.levels;if(!Ge){this.warn("Levels were reset while fragment load was in progress. Fragment ".concat(re.sn," of level ").concat(re.level," will not be buffered"));return}var lt=Ge[re.level],dt=lt.details;if(!dt){this.warn("Dropping fragment ".concat(re.sn," of level ").concat(re.level," after level details were reset")),this.fragmentTracker.removeFragment(re);return}var Kt=lt.videoCodec,Er=dt.PTSKnown||!dt.live,br=(Z=re.initSegment)==null?void 0:Z.data,jr=this._getAudioCodec(lt),Kr=this.transmuxer=this.transmuxer||new Qs(this.hls,gt.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),In=Ae?Ae.index:-1,kn=In!==-1,Gn=new Wi(re.level,re.sn,re.stats.chunkCount,Te.byteLength,In,kn),bi=this.initPTS[re.cc];Kr.push(Te,br,jr,Kt,re,Ae,dt.totalduration,Er,Gn,bi)}},{key:"onAudioTrackSwitching",value:function(H,Z){var re=this.altAudio,Ae=!!Z.url;if(!Ae){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var Te=this.fragCurrent;Te&&(this.log("Switching to main audio track, cancel main fragment load"),Te.abortRequests(),this.fragmentTracker.removeFragment(Te)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var Ge=this.hls;re&&(Ge.trigger(w.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),Ge.trigger(w.AUDIO_TRACK_SWITCHED,Z)}}},{key:"onAudioTrackSwitched",value:function(H,Z){var re=Z.id,Ae=!!this.hls.audioTracks[re].url;if(Ae){var Te=this.videoBuffer;Te&&this.mediaBuffer!==Te&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=Te)}this.altAudio=Ae,this.tick()}},{key:"onBufferCreated",value:function(H,Z){var re=Z.tracks,Ae,Te,Ge=!1;for(var lt in re){var dt=re[lt];if(dt.id==="main"){if(Te=lt,Ae=dt,lt==="video"){var Kt=re[lt];Kt&&(this.videoBuffer=Kt.buffer)}}else Ge=!0}Ge&&Ae?(this.log("Alternate track found, use ".concat(Te,".buffered to schedule main fragment loading")),this.mediaBuffer=Ae.buffer):this.mediaBuffer=this.media}},{key:"onFragBuffered",value:function(H,Z){var re=Z.frag,Ae=Z.part;if(re&&re.type!==gt.MAIN)return;if(this.fragContextChanged(re)){this.warn("Fragment ".concat(re.sn).concat(Ae?" p: "+Ae.index:""," of level ").concat(re.level," finished buffering, but was aborted. state: ").concat(this.state)),this.state===Bi.PARSED&&(this.state=Bi.IDLE);return}var Te=Ae?Ae.stats:re.stats;this.fragLastKbps=Math.round(8*Te.total/(Te.buffering.end-Te.loading.first)),re.sn!=="initSegment"&&(this.fragPrevious=re),this.fragBufferedComplete(re,Ae)}},{key:"onError",value:function(H,Z){var re;if(Z.fatal){this.state=Bi.ERROR;return}switch(Z.details){case I.FRAG_GAP:case I.FRAG_PARSING_ERROR:case I.FRAG_DECRYPT_ERROR:case I.FRAG_LOAD_ERROR:case I.FRAG_LOAD_TIMEOUT:case I.KEY_LOAD_ERROR:case I.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(gt.MAIN,Z);break;case I.LEVEL_LOAD_ERROR:case I.LEVEL_LOAD_TIMEOUT:case I.LEVEL_PARSING_ERROR:!Z.levelRetry&&this.state===Bi.WAITING_LEVEL&&((re=Z.context)==null?void 0:re.type)===St.LEVEL&&(this.state=Bi.IDLE);break;case I.BUFFER_FULL_ERROR:if(!Z.parent||Z.parent!=="main")return;this.reduceLengthAndFlushBuffer(Z)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case I.INTERNAL_EXCEPTION:this.recoverWorkerError(Z);break}}},{key:"checkBuffer",value:function(){var H=this.media,Z=this.gapController;if(!H||!Z||!H.readyState)return;if(this.loadedmetadata||!Ci.getBuffered(H).length){var re=this.state!==Bi.IDLE?this.fragCurrent:null;Z.poll(this.lastCurrentTime,re)}this.lastCurrentTime=H.currentTime}},{key:"onFragLoadEmergencyAborted",value:function(){this.state=Bi.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}},{key:"onBufferFlushed",value:function(H,Z){var re=Z.type;if(re!==be.AUDIO||this.audioOnly&&!this.altAudio){var Ae=(re===be.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(Ae,re,gt.MAIN)}}},{key:"onLevelsUpdated",value:function(H,Z){this.levels=Z.levels}},{key:"swapAudioCodec",value:function(){this.audioCodecSwap=!this.audioCodecSwap}},{key:"seekToStartPos",value:function(){var H=this.media;if(!H)return;var Z=H.currentTime,re=this.startPosition;if(re>=0&&Z<re){if(H.seeking){this.log("could not seek to ".concat(re,", already seeking at ").concat(Z));return}var Ae=Ci.getBuffered(H),Te=Ae.length?Ae.start(0):0,Ge=Te-re;Ge>0&&(Ge<this.config.maxBufferHole||Ge<this.config.maxFragLookUpTolerance)&&(this.log("adjusting start position by ".concat(Ge," to match buffer start")),re+=Ge,this.startPosition=re),this.log("seek to target start position ".concat(re," from current time ").concat(Z)),H.currentTime=re}}},{key:"_getAudioCodec",value:function(H){var Z=this.config.defaultAudioCodec||H.audioCodec;return this.audioCodecSwap&&Z&&(this.log("Swapping audio codec"),Z.indexOf("mp4a.40.5")!==-1?Z="mp4a.40.2":Z="mp4a.40.5"),Z}},{key:"_loadBitrateTestFrag",value:function(H,Z){var re=this;H.bitrateTest=!0,this._doFragLoad(H,Z).then(function(Ae){var Te=re.hls;if(!Ae||re.fragContextChanged(H))return;Z.fragmentError=0,re.state=Bi.IDLE,re.startFragRequested=!1,re.bitrateTest=!1;var Ge=H.stats;Ge.parsing.start=Ge.parsing.end=Ge.buffering.start=Ge.buffering.end=self.performance.now(),Te.trigger(w.FRAG_LOADED,Ae),H.bitrateTest=!1})}},{key:"_handleTransmuxComplete",value:function(H){var Z,re="main",Ae=this.hls,Te=H.remuxResult,Ge=H.chunkMeta,lt=this.getCurrentContext(Ge);if(!lt){this.resetWhenMissingContext(Ge);return}var dt=lt.frag,Kt=lt.part,Er=lt.level,br=Te.video,jr=Te.text,Kr=Te.id3,In=Te.initSegment,kn=Er.details,Gn=this.altAudio?void 0:Te.audio;if(this.fragContextChanged(dt)){this.fragmentTracker.removeFragment(dt);return}if(this.state=Bi.PARSING,In){if(In!=null&&In.tracks){var bi=dt.initSegment||dt;this._bufferInitSegment(Er,In.tracks,bi,Ge),Ae.trigger(w.FRAG_PARSING_INIT_SEGMENT,{frag:bi,id:re,tracks:In.tracks})}var ua=In.initPTS,Xi=In.timescale;T(ua)&&(this.initPTS[dt.cc]={baseTime:ua,timescale:Xi},Ae.trigger(w.INIT_PTS_FOUND,{frag:dt,id:re,initPTS:ua,timescale:Xi}))}if(br&&Te.independent!==!1){if(kn){var ta=br.startPTS,Pa=br.endPTS,Ya=br.startDTS,Ba=br.endDTS;if(Kt)Kt.elementaryStreams[br.type]={startPTS:ta,endPTS:Pa,startDTS:Ya,endDTS:Ba};else if(br.firstKeyFrame&&br.independent&&Ge.id===1&&(this.couldBacktrack=!0),br.dropped&&br.independent){var Sa=this.getMainFwdBufferInfo(),Go=(Sa?Sa.end:this.getLoadPosition())+this.config.maxBufferHole,Ls=br.firstKeyFramePTS?br.firstKeyFramePTS:ta;if(Go<Ls-this.config.maxBufferHole){this.backtrack(dt);return}dt.setElementaryStreamInfo(br.type,dt.start,Pa,dt.start,Ba,!0)}dt.setElementaryStreamInfo(br.type,ta,Pa,Ya,Ba),this.backtrackFragment&&(this.backtrackFragment=dt),this.bufferFragmentData(br,dt,Kt,Ge)}}else if(Te.independent===!1){this.backtrack(dt);return}if(Gn){var ys=Gn.startPTS,bs=Gn.endPTS,Fs=Gn.startDTS,ws=Gn.endDTS;Kt&&(Kt.elementaryStreams[be.AUDIO]={startPTS:ys,endPTS:bs,startDTS:Fs,endDTS:ws}),dt.setElementaryStreamInfo(be.AUDIO,ys,bs,Fs,ws),this.bufferFragmentData(Gn,dt,Kt,Ge)}if(kn&&Kr!=null&&(Z=Kr.samples)!=null&&Z.length){var Ws={id:re,frag:dt,details:kn,samples:Kr.samples};Ae.trigger(w.FRAG_PARSING_METADATA,Ws)}if(kn&&jr){var xe={id:re,frag:dt,details:kn,samples:jr.samples};Ae.trigger(w.FRAG_PARSING_USERDATA,xe)}}},{key:"_bufferInitSegment",value:function(H,Z,re,Ae){var Te=this;if(this.state!==Bi.PARSING)return;this.audioOnly=!!Z.audio&&!Z.video,this.altAudio&&!this.audioOnly&&delete Z.audio;var Ge=Z.audio,lt=Z.video,dt=Z.audiovideo;if(Ge){var Kt=H.audioCodec,Er=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(Kt&&(Kt.indexOf("mp4a.40.5")!==-1?Kt="mp4a.40.2":Kt="mp4a.40.5"),Ge.metadata.channelCount!==1&&Er.indexOf("firefox")===-1&&(Kt="mp4a.40.5")),Er.indexOf("android")!==-1&&Ge.container!=="audio/mpeg"&&(Kt="mp4a.40.2",this.log("Android: force audio codec to ".concat(Kt))),H.audioCodec&&H.audioCodec!==Kt&&this.log('Swapping manifest audio codec "'.concat(H.audioCodec,'" for "').concat(Kt,'"')),Ge.levelCodec=Kt,Ge.id="main",this.log("Init audio buffer, container:".concat(Ge.container,", codecs[selected/level/parsed]=[").concat(Kt||"","/").concat(H.audioCodec||"","/").concat(Ge.codec,"]"))}lt&&(lt.levelCodec=H.videoCodec,lt.id="main",this.log("Init video buffer, container:".concat(lt.container,", codecs[level/parsed]=[").concat(H.videoCodec||"","/").concat(lt.codec,"]"))),dt&&this.log("Init audiovideo buffer, container:".concat(dt.container,", codecs[level/parsed]=[").concat(H.attrs.CODECS||"","/").concat(dt.codec,"]")),this.hls.trigger(w.BUFFER_CODECS,Z),Object.keys(Z).forEach(function(br){var jr=Z[br],Kr=jr.initSegment;Kr!=null&&Kr.byteLength&&Te.hls.trigger(w.BUFFER_APPENDING,{type:br,data:Kr,frag:re,part:null,chunkMeta:Ae,parent:re.type})}),this.tick()}},{key:"getMainFwdBufferInfo",value:function(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,gt.MAIN)}},{key:"backtrack",value:function(H){this.couldBacktrack=!0,this.backtrackFragment=H,this.resetTransmuxer(),this.flushBufferGap(H),this.fragmentTracker.removeFragment(H),this.fragPrevious=null,this.nextLoadPosition=H.start,this.state=Bi.IDLE}},{key:"checkFragmentChanged",value:function(){var H=this.media,Z=null;if(H&&H.readyState>1&&H.seeking===!1){var re=H.currentTime;if(Ci.isBuffered(H,re)?Z=this.getAppendedFrag(re):Ci.isBuffered(H,re+.1)&&(Z=this.getAppendedFrag(re+.1)),Z){this.backtrackFragment=null;var Ae=this.fragPlaying,Te=Z.level;(!Ae||Z.sn!==Ae.sn||Ae.level!==Te||Z.urlId!==Ae.urlId)&&(this.fragPlaying=Z,this.hls.trigger(w.FRAG_CHANGED,{frag:Z}),(!Ae||Ae.level!==Te)&&this.hls.trigger(w.LEVEL_SWITCHED,{level:Te}))}}}},{key:"nextLevel",get:function(){var H=this.nextBufferedFrag;return H?H.level:-1}},{key:"currentFrag",get:function(){var H=this.media;return H?this.fragPlaying||this.getAppendedFrag(H.currentTime):null}},{key:"currentProgramDateTime",get:function(){var H=this.media;if(H){var Z=H.currentTime,re=this.currentFrag;if(re&&T(Z)&&T(re.programDateTime)){var Ae=re.programDateTime+(Z-re.start)*1e3;return new Date(Ae)}}return null}},{key:"currentLevel",get:function(){var H=this.currentFrag;return H?H.level:-1}},{key:"nextBufferedFrag",get:function(){var H=this.currentFrag;return H?this.followingBufferedFrag(H):null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),L}(io),fs=function(){function ve(q){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Object(r.a)(this,ve),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=q,this.alpha_=q?Math.exp(Math.log(.5)/q):0,this.estimate_=L,this.totalWeight_=K}return Object(s.a)(ve,[{key:"sample",value:function(L,K){var H=Math.pow(this.alpha_,L);this.estimate_=K*(1-H)+H*this.estimate_,this.totalWeight_+=L}},{key:"getTotalWeight",value:function(){return this.totalWeight_}},{key:"getEstimate",value:function(){if(this.alpha_){var L=1-Math.pow(this.alpha_,this.totalWeight_);if(L)return this.estimate_/L}return this.estimate_}}]),ve}(),Ds=function(){function ve(q,L,K){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:100;Object(r.a)(this,ve),this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=K,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new fs(q),this.fast_=new fs(L),this.defaultTTFB_=H,this.ttfb_=new fs(q)}return Object(s.a)(ve,[{key:"update",value:function(L,K){var H=this.slow_,Z=this.fast_,re=this.ttfb_;H.halfLife!==L&&(this.slow_=new fs(L,H.getEstimate(),H.getTotalWeight())),Z.halfLife!==K&&(this.fast_=new fs(K,Z.getEstimate(),Z.getTotalWeight())),re.halfLife!==L&&(this.ttfb_=new fs(L,re.getEstimate(),re.getTotalWeight()))}},{key:"sample",value:function(L,K){L=Math.max(L,this.minDelayMs_);var H=8*K,Z=L/1e3,re=H/Z;this.fast_.sample(Z,re),this.slow_.sample(Z,re)}},{key:"sampleTTFB",value:function(L){var K=L/1e3,H=Math.sqrt(2)*Math.exp(-Math.pow(K,2)/2);this.ttfb_.sample(H,Math.max(L,5))}},{key:"canEstimate",value:function(){return this.fast_.getTotalWeight()>=this.minWeight_}},{key:"getEstimate",value:function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}},{key:"getEstimateTTFB",value:function(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}},{key:"destroy",value:function(){}}]),ve}(),go=function(){function ve(q){Object(r.a)(this,ve),this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=0,this._nextAutoLevel=-1,this.timer=-1,this.onCheck=this._abandonRulesCheck.bind(this),this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this.hls=q;var L=q.config;this.bwEstimator=new Ds(L.abrEwmaSlowVoD,L.abrEwmaFastVoD,L.abrEwmaDefaultEstimate),this.registerListeners()}return Object(s.a)(ve,[{key:"registerListeners",value:function(){var L=this.hls;L.on(w.FRAG_LOADING,this.onFragLoading,this),L.on(w.FRAG_LOADED,this.onFragLoaded,this),L.on(w.FRAG_BUFFERED,this.onFragBuffered,this),L.on(w.LEVEL_SWITCHING,this.onLevelSwitching,this),L.on(w.LEVEL_LOADED,this.onLevelLoaded,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(w.FRAG_LOADING,this.onFragLoading,this),L.off(w.FRAG_LOADED,this.onFragLoaded,this),L.off(w.FRAG_BUFFERED,this.onFragBuffered,this),L.off(w.LEVEL_SWITCHING,this.onLevelSwitching,this),L.off(w.LEVEL_LOADED,this.onLevelLoaded,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null}},{key:"onFragLoading",value:function(L,K){var H,Z=K.frag;if(this.ignoreFragment(Z))return;this.fragCurrent=Z,this.partCurrent=(H=K.part)!=null?H:null,this.clearTimer(),this.timer=self.setInterval(this.onCheck,100)}},{key:"onLevelSwitching",value:function(L,K){this.clearTimer()}},{key:"getTimeToLoadFrag",value:function(L,K,H,Z){var re=L+H/K,Ae=Z?this.lastLevelLoadSec:0;return re+Ae}},{key:"onLevelLoaded",value:function(L,K){var H=this.hls.config,Z=K.stats,re=Z.total,Ae=Z.bwEstimate;T(re)&&T(Ae)&&(this.lastLevelLoadSec=8*re/Ae),K.details.live?this.bwEstimator.update(H.abrEwmaSlowLive,H.abrEwmaFastLive):this.bwEstimator.update(H.abrEwmaSlowVoD,H.abrEwmaFastVoD)}},{key:"_abandonRulesCheck",value:function(){var L=this.fragCurrent,K=this.partCurrent,H=this.hls,Z=H.autoLevelEnabled,re=H.media;if(!L||!re)return;var Ae=performance.now(),Te=K?K.stats:L.stats,Ge=K?K.duration:L.duration,lt=Ae-Te.loading.start;if(Te.aborted||Te.loaded&&Te.loaded===Te.total||L.level===0){this.clearTimer(),this._nextAutoLevel=-1;return}if(!Z||re.paused||!re.playbackRate||!re.readyState)return;var dt=H.mainForwardBufferInfo;if(dt===null)return;var Kt=this.bwEstimator.getEstimateTTFB(),Er=Math.abs(re.playbackRate);if(lt<=Math.max(Kt,1e3*(Ge/(Er*2))))return;var br=dt.len/Er;if(br>=2*Ge/Er)return;var jr=Te.loading.first?Te.loading.first-Te.loading.start:-1,Kr=Te.loaded&&jr>-1,In=this.bwEstimator.getEstimate(),kn=H.levels,Gn=H.minAutoLevel,bi=kn[L.level],ua=Te.total||Math.max(Te.loaded,Math.round(Ge*bi.maxBitrate/8)),Xi=lt-jr;Xi<1&&Kr&&(Xi=Math.min(lt,Te.loaded*8/In));var ta=Kr?Te.loaded*1e3/Xi:0,Pa=ta?(ua-Te.loaded)/ta:ua*8/In+Kt/1e3;if(Pa<=br)return;var Ya=ta?ta*8:In,Ba=Number.POSITIVE_INFINITY,Sa;for(Sa=L.level-1;Sa>Gn;Sa--){var Go=kn[Sa].maxBitrate;if(Ba=this.getTimeToLoadFrag(Kt/1e3,Ya,Ge*Go,!kn[Sa].details),Ba<br)break}if(Ba>=Pa)return;if(Ba>Ge*10)return;H.nextLoadLevel=Sa,Kr?this.bwEstimator.sample(lt-Math.min(Kt,jr),Te.loaded):this.bwEstimator.sampleTTFB(lt),this.clearTimer(),j.warn("[abr] Fragment ".concat(L.sn).concat(K?" part "+K.index:""," of level ").concat(L.level,` is loading too slowly;
|
|
|
Time to underbuffer: `).concat(br.toFixed(3),` s
|
|
|
Estimated load time for current fragment: `).concat(Pa.toFixed(3),` s
|
|
|
Estimated load time for down switch fragment: `).concat(Ba.toFixed(3),` s
|
|
|
TTFB estimate: `).concat(jr,`
|
|
|
Current BW estimate: `).concat(T(In)?(In/1024).toFixed(3):"Unknown",` Kb/s
|
|
|
New BW estimate: `).concat((this.bwEstimator.getEstimate()/1024).toFixed(3),` Kb/s
|
|
|
Aborting and switching to level `).concat(Sa)),L.loader&&(this.fragCurrent=this.partCurrent=null,L.abortRequests()),H.trigger(w.FRAG_LOAD_EMERGENCY_ABORTED,{frag:L,part:K,stats:Te})}},{key:"onFragLoaded",value:function(L,K){var H=K.frag,Z=K.part,re=Z?Z.stats:H.stats;if(H.type===gt.MAIN&&this.bwEstimator.sampleTTFB(re.loading.first-re.loading.start),this.ignoreFragment(H))return;if(this.clearTimer(),this.lastLoadedFragLevel=H.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var Ae=Z?Z.duration:H.duration,Te=this.hls.levels[H.level],Ge=(Te.loaded?Te.loaded.bytes:0)+re.loaded,lt=(Te.loaded?Te.loaded.duration:0)+Ae;Te.loaded={bytes:Ge,duration:lt},Te.realBitrate=Math.round(8*Ge/lt)}if(H.bitrateTest){var dt={stats:re,frag:H,part:Z,id:H.type};this.onFragBuffered(w.FRAG_BUFFERED,dt),H.bitrateTest=!1}}},{key:"onFragBuffered",value:function(L,K){var H=K.frag,Z=K.part,re=Z!=null&&Z.stats.loaded?Z.stats:H.stats;if(re.aborted)return;if(this.ignoreFragment(H))return;var Ae=re.parsing.end-re.loading.start-Math.min(re.loading.first-re.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(Ae,re.loaded),re.bwEstimate=this.bwEstimator.getEstimate(),H.bitrateTest?this.bitrateTestDelay=Ae/1e3:this.bitrateTestDelay=0}},{key:"ignoreFragment",value:function(L){return L.type!==gt.MAIN||L.sn==="initSegment"}},{key:"clearTimer",value:function(){self.clearInterval(this.timer)}},{key:"nextAutoLevel",get:function(){var L=this._nextAutoLevel,K=this.bwEstimator;if(L!==-1&&!K.canEstimate())return L;var H=this.getNextABRAutoLevel();if(L!==-1){var Z=this.hls.levels;if(Z.length>Math.max(L,H)&&Z[L].loadError<=Z[H].loadError)return L}return L!==-1&&(H=Math.min(L,H)),H},set:function(L){this._nextAutoLevel=L}},{key:"getNextABRAutoLevel",value:function(){var L=this.fragCurrent,K=this.partCurrent,H=this.hls,Z=H.maxAutoLevel,re=H.config,Ae=H.minAutoLevel,Te=H.media,Ge=K?K.duration:L?L.duration:0,lt=Te&&Te.playbackRate!==0?Math.abs(Te.playbackRate):1,dt=this.bwEstimator?this.bwEstimator.getEstimate():re.abrEwmaDefaultEstimate,Kt=H.mainForwardBufferInfo,Er=(Kt?Kt.len:0)/lt,br=this.findBestLevel(dt,Ae,Z,Er,re.abrBandWidthFactor,re.abrBandWidthUpFactor);if(br>=0)return br;j.trace("[abr] ".concat(Er?"rebuffering expected":"buffer is empty",", finding optimal quality level"));var jr=Ge?Math.min(Ge,re.maxStarvationDelay):re.maxStarvationDelay,Kr=re.abrBandWidthFactor,In=re.abrBandWidthUpFactor;if(!Er){var kn=this.bitrateTestDelay;if(kn){var Gn=Ge?Math.min(Ge,re.maxLoadingDelay):re.maxLoadingDelay;jr=Gn-kn,j.trace("[abr] bitrate test took ".concat(Math.round(1e3*kn),"ms, set first fragment max fetchDuration to ").concat(Math.round(1e3*jr)," ms")),Kr=In=1}}return br=this.findBestLevel(dt,Ae,Z,Er+jr,Kr,In),Math.max(br,0)}},{key:"findBestLevel",value:function(L,K,H,Z,re,Ae){for(var Te,Ge=this.fragCurrent,lt=this.partCurrent,dt=this.lastLoadedFragLevel,Kt=this.hls.levels,Er=Kt[dt],br=!!(Er!=null&&(Te=Er.details)!=null&&Te.live),jr=Er==null?void 0:Er.codecSet,Kr=lt?lt.duration:Ge?Ge.duration:0,In=this.bwEstimator.getEstimateTTFB()/1e3,kn=K,Gn=-1,bi=H;bi>=K;bi--){var ua=Kt[bi];if(!ua||jr&&ua.codecSet!==jr){ua&&(kn=Math.min(bi,kn),Gn=Math.max(bi,Gn));continue}Gn!==-1&&j.trace("[abr] Skipped level(s) ".concat(kn,"-").concat(Gn,' with CODECS:"').concat(Kt[Gn].attrs.CODECS,'"; not compatible with "').concat(Er.attrs.CODECS,'"'));var Xi=ua.details,ta=(lt?Xi==null?void 0:Xi.partTarget:Xi==null?void 0:Xi.averagetargetduration)||Kr,Pa=void 0;bi<=dt?Pa=re*L:Pa=Ae*L;var Ya=Kt[bi].maxBitrate,Ba=this.getTimeToLoadFrag(In,Pa,Ya*ta,Xi===void 0);if(j.trace("[abr] level:".concat(bi," adjustedbw-bitrate:").concat(Math.round(Pa-Ya)," avgDuration:").concat(ta.toFixed(1)," maxFetchDuration:").concat(Z.toFixed(1)," fetchDuration:").concat(Ba.toFixed(1))),Pa>Ya&&(Ba===0||!T(Ba)||br&&!this.bitrateTestDelay||Ba<Z))return bi}return-1}}]),ve}(),Ft=function(){function ve(){Object(r.a)(this,ve),this.chunks=[],this.dataLength=0}return Object(s.a)(ve,[{key:"push",value:function(L){this.chunks.push(L),this.dataLength+=L.length}},{key:"flush",value:function(){var L=this.chunks,K=this.dataLength,H;if(L.length)L.length===1?H=L[0]:H=er(L,K);else return new Uint8Array(0);return this.reset(),H}},{key:"reset",value:function(){this.chunks.length=0,this.dataLength=0}}]),ve}();function er(ve,q){for(var L=new Uint8Array(q),K=0,H=0;H<ve.length;H++){var Z=ve[H];L.set(Z,K),K+=Z.length}return L}var Cn=100,di=function(ve){Object(o.a)(L,ve);var q=Object(e.a)(L);function L(K,H,Z){var re;return Object(r.a)(this,L),re=q.call(this,K,H,Z,"[audio-stream-controller]",gt.AUDIO),re.videoBuffer=null,re.videoTrackCC=-1,re.waitingVideoCC=-1,re.bufferedTrack=null,re.switchingTrack=null,re.trackId=-1,re.waitingData=null,re.mainDetails=null,re.bufferFlushed=!1,re.cachedTrackLoadedData=null,re._registerListeners(),re}return Object(s.a)(L,[{key:"onHandlerDestroying",value:function(){this._unregisterListeners(),this.mainDetails=null,this.bufferedTrack=null,this.switchingTrack=null}},{key:"_registerListeners",value:function(){var H=this.hls;H.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.LEVEL_LOADED,this.onLevelLoaded,this),H.on(w.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),H.on(w.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.on(w.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.on(w.ERROR,this.onError,this),H.on(w.BUFFER_RESET,this.onBufferReset,this),H.on(w.BUFFER_CREATED,this.onBufferCreated,this),H.on(w.BUFFER_FLUSHED,this.onBufferFlushed,this),H.on(w.INIT_PTS_FOUND,this.onInitPtsFound,this),H.on(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.LEVEL_LOADED,this.onLevelLoaded,this),H.off(w.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),H.off(w.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.off(w.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.off(w.ERROR,this.onError,this),H.off(w.BUFFER_RESET,this.onBufferReset,this),H.off(w.BUFFER_CREATED,this.onBufferCreated,this),H.off(w.BUFFER_FLUSHED,this.onBufferFlushed,this),H.off(w.INIT_PTS_FOUND,this.onInitPtsFound,this),H.off(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"onInitPtsFound",value:function(H,Z){var re=Z.frag,Ae=Z.id,Te=Z.initPTS,Ge=Z.timescale;if(Ae==="main"){var lt=re.cc;this.initPTS[re.cc]={baseTime:Te,timescale:Ge},this.log("InitPTS for cc: ".concat(lt," found from main: ").concat(Te)),this.videoTrackCC=lt,this.state===Bi.WAITING_INIT_PTS&&this.tick()}}},{key:"startLoad",value:function(H){if(!this.levels){this.startPosition=H,this.state=Bi.STOPPED;return}var Z=this.lastCurrentTime;this.stopLoad(),this.setInterval(Cn),Z>0&&H===-1?(this.log("Override startPosition with lastCurrentTime @".concat(Z.toFixed(3))),H=Z,this.state=Bi.IDLE):(this.loadedmetadata=!1,this.state=Bi.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=H,this.tick()}},{key:"doTick",value:function(){switch(this.state){case Bi.IDLE:this.doTickIdle();break;case Bi.WAITING_TRACK:{var H,Z=this.levels,re=this.trackId,Ae=Z==null||(H=Z[re])==null?void 0:H.details;if(Ae){if(this.waitForCdnTuneIn(Ae))break;this.state=Bi.WAITING_INIT_PTS}break}case Bi.FRAG_LOADING_WAITING_RETRY:{var Te,Ge=performance.now(),lt=this.retryDate;(!lt||Ge>=lt||(Te=this.media)!=null&&Te.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded(this.trackId),this.state=Bi.IDLE);break}case Bi.WAITING_INIT_PTS:{var dt=this.waitingData;if(dt){var Kt=dt.frag,Er=dt.part,br=dt.cache,jr=dt.complete;if(this.initPTS[Kt.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=Bi.FRAG_LOADING;var Kr=br.flush(),In={frag:Kt,part:Er,payload:Kr,networkDetails:null};this._handleFragmentLoadProgress(In),jr&&Object(t.a)(Object(m.a)(L.prototype),"_handleFragmentLoadComplete",this).call(this,In)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log("Waiting fragment cc (".concat(Kt.cc,") cancelled because video is at cc ").concat(this.videoTrackCC)),this.clearWaitingFragment();else{var kn=this.getLoadPosition(),Gn=Ci.bufferInfo(this.mediaBuffer,kn,this.config.maxBufferHole),bi=On(Gn.end,this.config.maxFragLookUpTolerance,Kt);bi<0&&(this.log("Waiting fragment cc (".concat(Kt.cc,") @ ").concat(Kt.start," cancelled because another fragment at ").concat(Gn.end," is needed")),this.clearWaitingFragment())}}else this.state=Bi.IDLE}}this.onTickEnd()}},{key:"clearWaitingFragment",value:function(){var H=this.waitingData;H&&(this.fragmentTracker.removeFragment(H.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=Bi.IDLE)}},{key:"resetLoadingState",value:function(){this.clearWaitingFragment(),Object(t.a)(Object(m.a)(L.prototype),"resetLoadingState",this).call(this)}},{key:"onTickEnd",value:function(){var H=this.media;if(!(H!=null&&H.readyState))return;this.lastCurrentTime=H.currentTime}},{key:"doTickIdle",value:function(){var H=this.hls,Z=this.levels,re=this.media,Ae=this.trackId,Te=H.config;if(!(Z!=null&&Z[Ae]))return;if(!re&&(this.startFragRequested||!Te.startFragPrefetch))return;var Ge=Z[Ae],lt=Ge.details;if(!lt||lt.live&&this.levelLastLoaded!==Ae||this.waitForCdnTuneIn(lt)){this.state=Bi.WAITING_TRACK;return}var dt=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&dt&&(this.bufferFlushed=!1,this.afterBufferFlushed(dt,be.AUDIO,gt.AUDIO));var Kt=this.getFwdBufferInfo(dt,gt.AUDIO);if(Kt===null)return;var Er=this.bufferedTrack,br=this.switchingTrack;if(!br&&this._streamEnded(Kt,lt)){H.trigger(w.BUFFER_EOS,{type:"audio"}),this.state=Bi.ENDED;return}var jr=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,gt.MAIN),Kr=Kt.len,In=this.getMaxBufferLength(jr==null?void 0:jr.len);if(Kr>=In&&!br)return;var kn=lt.fragments,Gn=kn[0].start,bi=Kt.end;if(br&&re){var ua=this.getLoadPosition();Er&&br.attrs!==Er.attrs&&(bi=ua),lt.PTSKnown&&ua<Gn&&((Kt.end>Gn||Kt.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),re.currentTime=Gn+.05))}var Xi=this.getNextFragment(bi,lt),ta=!1;if(Xi&&this.isLoopLoading(Xi,bi)&&(ta=!!Xi.gap,Xi=this.getNextFragmentLoopLoading(Xi,lt,Kt,gt.MAIN,In)),!Xi){this.bufferFlushed=!0;return}var Pa=jr&&Xi.start>jr.end+lt.targetduration;if(Pa||!(jr!=null&&jr.len)&&Kt.len){var Ya=this.getAppendedFrag(Xi.start,gt.MAIN);if(Ya===null)return;if(ta||(ta=!!Ya.gap||!!Pa&&jr.len===0),Pa&&!ta||ta&&Kt.nextStart&&Kt.nextStart<Ya.end)return}this.loadFragment(Xi,Ge,bi)}},{key:"getMaxBufferLength",value:function(H){var Z=Object(t.a)(Object(m.a)(L.prototype),"getMaxBufferLength",this).call(this);return H?Math.min(Math.max(Z,H),this.config.maxMaxBufferLength):Z}},{key:"onMediaDetaching",value:function(){this.videoBuffer=null,Object(t.a)(Object(m.a)(L.prototype),"onMediaDetaching",this).call(this)}},{key:"onAudioTracksUpdated",value:function(H,Z){var re=Z.audioTracks;this.resetTransmuxer(),this.levels=re.map(function(Ae){return new Ot(Ae)})}},{key:"onAudioTrackSwitching",value:function(H,Z){var re=!!Z.url;this.trackId=Z.id;var Ae=this.fragCurrent;Ae&&(Ae.abortRequests(),this.removeUnbufferedFrags(Ae.start)),this.resetLoadingState(),re?this.setInterval(Cn):this.resetTransmuxer(),re?(this.switchingTrack=Z,this.state=Bi.IDLE):(this.switchingTrack=null,this.bufferedTrack=Z,this.state=Bi.STOPPED),this.tick()}},{key:"onManifestLoading",value:function(){this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1,this.levels=this.mainDetails=this.waitingData=this.bufferedTrack=this.cachedTrackLoadedData=this.switchingTrack=null,this.startFragRequested=!1,this.trackId=this.videoTrackCC=this.waitingVideoCC=-1}},{key:"onLevelLoaded",value:function(H,Z){this.mainDetails=Z.details,this.cachedTrackLoadedData!==null&&(this.hls.trigger(w.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)}},{key:"onAudioTrackLoaded",value:function(H,Z){var re;if(this.mainDetails==null){this.cachedTrackLoadedData=Z;return}var Ae=this.levels,Te=Z.details,Ge=Z.id;if(!Ae){this.warn("Audio tracks were reset while loading level ".concat(Ge));return}this.log("Track ".concat(Ge," loaded [").concat(Te.startSN,",").concat(Te.endSN,"]").concat(Te.lastPartSn?"[part-".concat(Te.lastPartSn,"-").concat(Te.lastPartIndex,"]"):"",",duration:").concat(Te.totalduration));var lt=Ae[Ge],dt=0;if(Te.live||(re=lt.details)!=null&&re.live){var Kt=this.mainDetails;if(Te.fragments[0]||(Te.deltaUpdateFailed=!0),Te.deltaUpdateFailed||!Kt)return;!lt.details&&Te.hasProgramDateTime&&Kt.hasProgramDateTime?(La(Te,Kt),dt=Te.fragments[0].start):dt=this.alignPlaylists(Te,lt.details)}lt.details=Te,this.levelLastLoaded=Ge,!this.startFragRequested&&(this.mainDetails||!Te.live)&&this.setStartPosition(lt.details,dt),this.state===Bi.WAITING_TRACK&&!this.waitForCdnTuneIn(Te)&&(this.state=Bi.IDLE),this.tick()}},{key:"_handleFragmentLoadProgress",value:function(H){var Z,re=H.frag,Ae=H.part,Te=H.payload,Ge=this.config,lt=this.trackId,dt=this.levels;if(!dt){this.warn("Audio tracks were reset while fragment load was in progress. Fragment ".concat(re.sn," of level ").concat(re.level," will not be buffered"));return}var Kt=dt[lt];if(!Kt){this.warn("Audio track is undefined on fragment load progress");return}var Er=Kt.details;if(!Er){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(re.start);return}var br=Ge.defaultAudioCodec||Kt.audioCodec||"mp4a.40.2",jr=this.transmuxer;jr||(jr=this.transmuxer=new Qs(this.hls,gt.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var Kr=this.initPTS[re.cc],In=(Z=re.initSegment)==null?void 0:Z.data;if(Kr!==void 0){var kn=!1,Gn=Ae?Ae.index:-1,bi=Gn!==-1,ua=new Wi(re.level,re.sn,re.stats.chunkCount,Te.byteLength,Gn,bi);jr.push(Te,In,br,"",re,Ae,Er.totalduration,kn,ua,Kr)}else{this.log("Unknown video PTS for cc ".concat(re.cc,", waiting for video PTS before demuxing audio frag ").concat(re.sn," of [").concat(Er.startSN," ,").concat(Er.endSN,"],track ").concat(lt));var Xi=this.waitingData=this.waitingData||{frag:re,part:Ae,cache:new Ft,complete:!1},ta=Xi.cache;ta.push(new Uint8Array(Te)),this.waitingVideoCC=this.videoTrackCC,this.state=Bi.WAITING_INIT_PTS}}},{key:"_handleFragmentLoadComplete",value:function(H){if(this.waitingData){this.waitingData.complete=!0;return}Object(t.a)(Object(m.a)(L.prototype),"_handleFragmentLoadComplete",this).call(this,H)}},{key:"onBufferReset",value:function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1}},{key:"onBufferCreated",value:function(H,Z){var re=Z.tracks.audio;re&&(this.mediaBuffer=re.buffer||null),Z.tracks.video&&(this.videoBuffer=Z.tracks.video.buffer||null)}},{key:"onFragBuffered",value:function(H,Z){var re=Z.frag,Ae=Z.part;if(re.type!==gt.AUDIO){if(!this.loadedmetadata&&re.type===gt.MAIN){var Te;(Te=this.videoBuffer||this.media)!=null&&Te.buffered.length&&(this.loadedmetadata=!0)}return}if(this.fragContextChanged(re)){this.warn("Fragment ".concat(re.sn).concat(Ae?" p: "+Ae.index:""," of level ").concat(re.level," finished buffering, but was aborted. state: ").concat(this.state,", audioSwitch: ").concat(this.switchingTrack?this.switchingTrack.name:"false"));return}if(re.sn!=="initSegment"){this.fragPrevious=re;var Ge=this.switchingTrack;Ge&&(this.bufferedTrack=Ge,this.switchingTrack=null,this.hls.trigger(w.AUDIO_TRACK_SWITCHED,b({},Ge)))}this.fragBufferedComplete(re,Ae)}},{key:"onError",value:function(H,Z){var re;if(Z.fatal){this.state=Bi.ERROR;return}switch(Z.details){case I.FRAG_GAP:case I.FRAG_PARSING_ERROR:case I.FRAG_DECRYPT_ERROR:case I.FRAG_LOAD_ERROR:case I.FRAG_LOAD_TIMEOUT:case I.KEY_LOAD_ERROR:case I.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(gt.AUDIO,Z);break;case I.AUDIO_TRACK_LOAD_ERROR:case I.AUDIO_TRACK_LOAD_TIMEOUT:case I.LEVEL_PARSING_ERROR:!Z.levelRetry&&this.state===Bi.WAITING_TRACK&&((re=Z.context)==null?void 0:re.type)===St.AUDIO_TRACK&&(this.state=Bi.IDLE);break;case I.BUFFER_FULL_ERROR:if(!Z.parent||Z.parent!=="audio")return;this.reduceLengthAndFlushBuffer(Z)&&(this.bufferedTrack=null,Object(t.a)(Object(m.a)(L.prototype),"flushMainBuffer",this).call(this,0,Number.POSITIVE_INFINITY,"audio"));break;case I.INTERNAL_EXCEPTION:this.recoverWorkerError(Z);break}}},{key:"onBufferFlushed",value:function(H,Z){var re=Z.type;re===be.AUDIO&&(this.bufferFlushed=!0,this.state===Bi.ENDED&&(this.state=Bi.IDLE))}},{key:"_handleTransmuxComplete",value:function(H){var Z,re="audio",Ae=this.hls,Te=H.remuxResult,Ge=H.chunkMeta,lt=this.getCurrentContext(Ge);if(!lt){this.resetWhenMissingContext(Ge);return}var dt=lt.frag,Kt=lt.part,Er=lt.level,br=Er.details,jr=Te.audio,Kr=Te.text,In=Te.id3,kn=Te.initSegment;if(this.fragContextChanged(dt)||!br){this.fragmentTracker.removeFragment(dt);return}if(this.state=Bi.PARSING,this.switchingTrack&&jr&&this.completeAudioSwitch(this.switchingTrack),kn!=null&&kn.tracks){var Gn=dt.initSegment||dt;this._bufferInitSegment(kn.tracks,Gn,Ge),Ae.trigger(w.FRAG_PARSING_INIT_SEGMENT,{frag:Gn,id:re,tracks:kn.tracks})}if(jr){var bi=jr.startPTS,ua=jr.endPTS,Xi=jr.startDTS,ta=jr.endDTS;Kt&&(Kt.elementaryStreams[be.AUDIO]={startPTS:bi,endPTS:ua,startDTS:Xi,endDTS:ta}),dt.setElementaryStreamInfo(be.AUDIO,bi,ua,Xi,ta),this.bufferFragmentData(jr,dt,Kt,Ge)}if(In!=null&&(Z=In.samples)!=null&&Z.length){var Pa=E({id:re,frag:dt,details:br},In);Ae.trigger(w.FRAG_PARSING_METADATA,Pa)}if(Kr){var Ya=E({id:re,frag:dt,details:br},Kr);Ae.trigger(w.FRAG_PARSING_USERDATA,Ya)}}},{key:"_bufferInitSegment",value:function(H,Z,re){if(this.state!==Bi.PARSING)return;H.video&&delete H.video;var Ae=H.audio;if(!Ae)return;Ae.levelCodec=Ae.codec,Ae.id="audio",this.log("Init audio buffer, container:".concat(Ae.container,", codecs[parsed]=[").concat(Ae.codec,"]")),this.hls.trigger(w.BUFFER_CODECS,H);var Te=Ae.initSegment;if(Te!=null&&Te.byteLength){var Ge={type:"audio",frag:Z,part:null,chunkMeta:re,parent:Z.type,data:Te};this.hls.trigger(w.BUFFER_APPENDING,Ge)}this.tick()}},{key:"loadFragment",value:function(H,Z,re){var Ae=this.fragmentTracker.getState(H);if(this.fragCurrent=H,this.switchingTrack||Ae===Et.NOT_LOADED||Ae===Et.PARTIAL){var Te;H.sn==="initSegment"?this._loadInitSegment(H,Z):(Te=Z.details)!=null&&Te.live&&!this.initPTS[H.cc]?(this.log("Waiting for video PTS in continuity counter ".concat(H.cc," of live stream before loading audio fragment ").concat(H.sn," of level ").concat(this.trackId)),this.state=Bi.WAITING_INIT_PTS):(this.startFragRequested=!0,Object(t.a)(Object(m.a)(L.prototype),"loadFragment",this).call(this,H,Z,re))}else this.clearTrackerIfNeeded(H)}},{key:"completeAudioSwitch",value:function(H){var Z=this.hls,re=this.media,Ae=this.bufferedTrack,Te=Ae==null?void 0:Ae.attrs,Ge=H.attrs;re&&Te&&(Te.CHANNELS!==Ge.CHANNELS||Te.NAME!==Ge.NAME||Te.LANGUAGE!==Ge.LANGUAGE)&&(this.log("Switching audio track : flushing all audio"),Object(t.a)(Object(m.a)(L.prototype),"flushMainBuffer",this).call(this,0,Number.POSITIVE_INFINITY,"audio")),this.bufferedTrack=H,this.switchingTrack=null,Z.trigger(w.AUDIO_TRACK_SWITCHED,b({},H))}}]),L}(io),It=function(ve){Object(o.a)(L,ve);var q=Object(e.a)(L);function L(K){var H;return Object(r.a)(this,L),H=q.call(this,K,"[audio-track-controller]"),H.tracks=[],H.groupId=null,H.tracksInGroup=[],H.trackId=-1,H.currentTrack=null,H.selectDefaultTrack=!0,H.registerListeners(),H}return Object(s.a)(L,[{key:"registerListeners",value:function(){var H=this.hls;H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.MANIFEST_PARSED,this.onManifestParsed,this),H.on(w.LEVEL_LOADING,this.onLevelLoading,this),H.on(w.LEVEL_SWITCHING,this.onLevelSwitching,this),H.on(w.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.on(w.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var H=this.hls;H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.MANIFEST_PARSED,this.onManifestParsed,this),H.off(w.LEVEL_LOADING,this.onLevelLoading,this),H.off(w.LEVEL_SWITCHING,this.onLevelSwitching,this),H.off(w.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.off(w.ERROR,this.onError,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,Object(t.a)(Object(m.a)(L.prototype),"destroy",this).call(this)}},{key:"onManifestLoading",value:function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}},{key:"onManifestParsed",value:function(H,Z){this.tracks=Z.audioTracks||[]}},{key:"onAudioTrackLoaded",value:function(H,Z){var re=Z.id,Ae=Z.groupId,Te=Z.details,Ge=this.tracksInGroup[re];if(!Ge||Ge.groupId!==Ae){this.warn("Track with id:".concat(re," and group:").concat(Ae," not found in active group ").concat(Ge.groupId));return}var lt=Ge.details;Ge.details=Z.details,this.log("audio-track ".concat(re,' "').concat(Ge.name,'" lang:').concat(Ge.lang," group:").concat(Ae," loaded [").concat(Te.startSN,"-").concat(Te.endSN,"]")),re===this.trackId&&this.playlistLoaded(re,Z,lt)}},{key:"onLevelLoading",value:function(H,Z){this.switchLevel(Z.level)}},{key:"onLevelSwitching",value:function(H,Z){this.switchLevel(Z.level)}},{key:"switchLevel",value:function(H){var Z=this.hls.levels[H];if(!(Z!=null&&Z.audioGroupIds))return;var re=Z.audioGroupIds[Z.urlId];if(this.groupId!==re){this.groupId=re||null;var Ae=this.tracks.filter(function(Ge){return!re||Ge.groupId===re});this.selectDefaultTrack&&!Ae.some(function(Ge){return Ge.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=Ae;var Te={audioTracks:Ae};this.log("Updating audio tracks, ".concat(Ae.length," track(s) found in group:").concat(re)),this.hls.trigger(w.AUDIO_TRACKS_UPDATED,Te),this.selectInitialTrack()}else this.shouldReloadPlaylist(this.currentTrack)&&this.setAudioTrack(this.trackId)}},{key:"onError",value:function(H,Z){if(Z.fatal||!Z.context)return;Z.context.type===St.AUDIO_TRACK&&Z.context.id===this.trackId&&Z.context.groupId===this.groupId&&(this.requestScheduled=-1,this.checkRetry(Z))}},{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(H){this.selectDefaultTrack=!1,this.setAudioTrack(H)}},{key:"setAudioTrack",value:function(H){var Z=this.tracksInGroup;if(H<0||H>=Z.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var re=this.currentTrack;Z[this.trackId];var Ae=Z[H],Te=Ae.groupId,Ge=Ae.name;if(this.log("Switching to audio-track ".concat(H,' "').concat(Ge,'" lang:').concat(Ae.lang," group:").concat(Te)),this.trackId=H,this.currentTrack=Ae,this.selectDefaultTrack=!1,this.hls.trigger(w.AUDIO_TRACK_SWITCHING,b({},Ae)),Ae.details&&!Ae.details.live)return;var lt=this.switchParams(Ae.url,re==null?void 0:re.details);this.loadPlaylist(lt)}},{key:"selectInitialTrack",value:function(){var H=this.tracksInGroup,Z=this.findTrackId(this.currentTrack)|this.findTrackId(null);if(Z!==-1)this.setAudioTrack(Z);else{var re=new Error("No track found for running audio group-ID: ".concat(this.groupId," track count: ").concat(H.length));this.warn(re.message),this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:re})}}},{key:"findTrackId",value:function(H){for(var Z=this.tracksInGroup,re=0;re<Z.length;re++){var Ae=Z[re];if(!this.selectDefaultTrack||Ae.default){if(!H||H.attrs["STABLE-RENDITION-ID"]!==void 0&&H.attrs["STABLE-RENDITION-ID"]===Ae.attrs["STABLE-RENDITION-ID"])return Ae.id;if(H.name===Ae.name&&H.lang===Ae.lang)return Ae.id}}return-1}},{key:"loadPlaylist",value:function(H){Object(t.a)(Object(m.a)(L.prototype),"loadPlaylist",this).call(this);var Z=this.tracksInGroup[this.trackId];if(this.shouldLoadPlaylist(Z)){var re=Z.id,Ae=Z.groupId,Te=Z.url;if(H)try{Te=H.addDirectives(Te)}catch(Ge){this.warn("Could not construct new URL with HLS Delivery Directives: ".concat(Ge))}this.log("loading audio-track playlist ".concat(re,' "').concat(Z.name,'" lang:').concat(Z.lang," group:").concat(Ae)),this.clearTimer(),this.hls.trigger(w.AUDIO_TRACK_LOADING,{url:Te,id:re,groupId:Ae,deliveryDirectives:H||null})}}}]),L}(cr);function ue(ve,q){if(ve.length!==q.length)return!1;for(var L=0;L<ve.length;L++)if(!Se(ve[L].attrs,q[L].attrs))return!1;return!0}function Se(ve,q){var L=ve["STABLE-RENDITION-ID"];return L?L===q["STABLE-RENDITION-ID"]:!["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED"].some(function(K){return ve[K]!==q[K]})}var _e=500,Je=function(ve){Object(o.a)(L,ve);var q=Object(e.a)(L);function L(K,H,Z){var re;return Object(r.a)(this,L),re=q.call(this,K,H,Z,"[subtitle-stream-controller]",gt.SUBTITLE),re.levels=[],re.currentTrackId=-1,re.tracksBuffered=[],re.mainDetails=null,re._registerListeners(),re}return Object(s.a)(L,[{key:"onHandlerDestroying",value:function(){this._unregisterListeners(),this.mainDetails=null}},{key:"_registerListeners",value:function(){var H=this.hls;H.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.LEVEL_LOADED,this.onLevelLoaded,this),H.on(w.ERROR,this.onError,this),H.on(w.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),H.on(w.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),H.on(w.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.on(w.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),H.on(w.BUFFER_FLUSHING,this.onBufferFlushing,this),H.on(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.LEVEL_LOADED,this.onLevelLoaded,this),H.off(w.ERROR,this.onError,this),H.off(w.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),H.off(w.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),H.off(w.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.off(w.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),H.off(w.BUFFER_FLUSHING,this.onBufferFlushing,this),H.off(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"startLoad",value:function(H){this.stopLoad(),this.state=Bi.IDLE,this.setInterval(_e),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=H,this.tick()}},{key:"onManifestLoading",value:function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()}},{key:"onMediaDetaching",value:function(){this.tracksBuffered=[],Object(t.a)(Object(m.a)(L.prototype),"onMediaDetaching",this).call(this)}},{key:"onLevelLoaded",value:function(H,Z){this.mainDetails=Z.details}},{key:"onSubtitleFragProcessed",value:function(H,Z){var re=Z.frag,Ae=Z.success;if(this.fragPrevious=re,this.state=Bi.IDLE,!Ae)return;var Te=this.tracksBuffered[this.currentTrackId];if(!Te)return;for(var Ge,lt=re.start,dt=0;dt<Te.length;dt++)if(lt>=Te[dt].start&<<=Te[dt].end){Ge=Te[dt];break}var Kt=re.start+re.duration;Ge?Ge.end=Kt:(Ge={start:lt,end:Kt},Te.push(Ge)),this.fragmentTracker.fragBuffered(re)}},{key:"onBufferFlushing",value:function(H,Z){var re=Z.startOffset,Ae=Z.endOffset;if(re===0&&Ae!==Number.POSITIVE_INFINITY){var Te=this.currentTrackId,Ge=this.levels;if(!Ge.length||!Ge[Te]||!Ge[Te].details)return;var lt=Ge[Te].details,dt=lt.targetduration,Kt=Ae-dt;if(Kt<=0)return;Z.endOffsetSubtitles=Math.max(0,Kt),this.tracksBuffered.forEach(function(Er){for(var br=0;br<Er.length;){if(Er[br].end<=Kt){Er.shift();continue}else if(Er[br].start<Kt)Er[br].start=Kt;else break;br++}}),this.fragmentTracker.removeFragmentsInRange(re,Kt,gt.SUBTITLE)}}},{key:"onFragBuffered",value:function(H,Z){if(!this.loadedmetadata&&Z.frag.type===gt.MAIN){var re;(re=this.media)!=null&&re.buffered.length&&(this.loadedmetadata=!0)}}},{key:"onError",value:function(H,Z){var re=Z.frag;(re==null?void 0:re.type)===gt.SUBTITLE&&(this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Bi.STOPPED&&(this.state=Bi.IDLE))}},{key:"onSubtitleTracksUpdated",value:function(H,Z){var re=this,Ae=Z.subtitleTracks;if(ue(this.levels,Ae)){this.levels=Ae.map(function(Te){return new Ot(Te)});return}this.tracksBuffered=[],this.levels=Ae.map(function(Te){var Ge=new Ot(Te);return re.tracksBuffered[Ge.id]=[],Ge}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,gt.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}},{key:"onSubtitleTrackSwitch",value:function(H,Z){if(this.currentTrackId=Z.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var re=this.levels[this.currentTrackId];re!=null&&re.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,re&&this.setInterval(_e)}},{key:"onSubtitleTrackLoaded",value:function(H,Z){var re,Ae=Z.details,Te=Z.id,Ge=this.currentTrackId,lt=this.levels;if(!lt.length)return;var dt=lt[Ge];if(Te>=lt.length||Te!==Ge||!dt)return;this.mediaBuffer=this.mediaBufferTimeRanges;var Kt=0;if(Ae.live||(re=dt.details)!=null&&re.live){var Er=this.mainDetails;if(Ae.deltaUpdateFailed||!Er)return;var br=Er.fragments[0];dt.details?(Kt=this.alignPlaylists(Ae,dt.details),Kt===0&&br&&(Kt=br.start,hn(Ae,Kt))):Ae.hasProgramDateTime&&Er.hasProgramDateTime?(La(Ae,Er),Kt=Ae.fragments[0].start):br&&(Kt=br.start,hn(Ae,Kt))}if(dt.details=Ae,this.levelLastLoaded=Te,!this.startFragRequested&&(this.mainDetails||!Ae.live)&&this.setStartPosition(dt.details,Kt),this.tick(),Ae.live&&!this.fragCurrent&&this.media&&this.state===Bi.IDLE){var jr=vi(null,Ae.fragments,this.media.currentTime,0);jr||(this.warn("Subtitle playlist not aligned with playback"),dt.details=void 0)}}},{key:"_handleFragmentLoadComplete",value:function(H){var Z=this,re=H.frag,Ae=H.payload,Te=re.decryptdata,Ge=this.hls;if(this.fragContextChanged(re))return;if(Ae&&Ae.byteLength>0&&Te&&Te.key&&Te.iv&&Te.method==="AES-128"){var lt=performance.now();this.decrypter.decrypt(new Uint8Array(Ae),Te.key.buffer,Te.iv.buffer).catch(function(dt){throw Ge.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_DECRYPT_ERROR,fatal:!1,error:dt,reason:dt.message,frag:re}),dt}).then(function(dt){var Kt=performance.now();Ge.trigger(w.FRAG_DECRYPTED,{frag:re,payload:dt,stats:{tstart:lt,tdecrypt:Kt}})}).catch(function(dt){Z.warn("".concat(dt.name,": ").concat(dt.message)),Z.state=Bi.IDLE})}}},{key:"doTick",value:function(){if(!this.media){this.state=Bi.IDLE;return}if(this.state===Bi.IDLE){var H=this.currentTrackId,Z=this.levels,re=Z[H];if(!Z.length||!re||!re.details)return;var Ae=re.details,Te=Ae.targetduration,Ge=this.config,lt=this.getLoadPosition(),dt=Ci.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],lt-Te,Ge.maxBufferHole),Kt=dt.end,Er=dt.len,br=this.getFwdBufferInfo(this.media,gt.MAIN),jr=this.getMaxBufferLength(br==null?void 0:br.len)+Te;if(Er>jr)return;var Kr=Ae.fragments,In=Kr.length,kn=Ae.edge,Gn=null,bi=this.fragPrevious;if(Kt<kn){var ua=Ge.maxFragLookUpTolerance;Gn=vi(bi,Kr,Math.max(Kr[0].start,Kt),ua),!Gn&&bi&&bi.start<Kr[0].start&&(Gn=Kr[0])}else Gn=Kr[In-1];if(!Gn)return;Gn=this.mapToInitFragWhenRequired(Gn),this.fragmentTracker.getState(Gn)===Et.NOT_LOADED&&this.loadFragment(Gn,re,Kt)}}},{key:"getMaxBufferLength",value:function(H){var Z=Object(t.a)(Object(m.a)(L.prototype),"getMaxBufferLength",this).call(this);return H?Math.max(Z,H):Z}},{key:"loadFragment",value:function(H,Z,re){this.fragCurrent=H,H.sn==="initSegment"?this._loadInitSegment(H,Z):(this.startFragRequested=!0,Object(t.a)(Object(m.a)(L.prototype),"loadFragment",this).call(this,H,Z,re))}},{key:"mediaBufferTimeRanges",get:function(){return new Lt(this.tracksBuffered[this.currentTrackId]||[])}}]),L}(io),Lt=Object(s.a)(function ve(q){Object(r.a)(this,ve),this.buffered=void 0;var L=function(H,Z,re){if(Z=Z>>>0,Z>re-1)throw new DOMException("Failed to execute '".concat(H,"' on 'TimeRanges': The index provided (").concat(Z,") is greater than the maximum bound (").concat(re,")"));return q[Z][H]};this.buffered={get length(){return q.length},end:function(H){return L("end",H,q.length)},start:function(H){return L("start",H,q.length)}}}),tr=function(ve){Object(o.a)(L,ve);var q=Object(e.a)(L);function L(K){var H;return Object(r.a)(this,L),H=q.call(this,K,"[subtitle-track-controller]"),H.media=null,H.tracks=[],H.groupId=null,H.tracksInGroup=[],H.trackId=-1,H.selectDefaultTrack=!0,H.queuedDefaultTrack=-1,H.trackChangeListener=function(){return H.onTextTracksChanged()},H.asyncPollTrackChange=function(){return H.pollTrackChange(0)},H.useTextTrackPolling=!1,H.subtitlePollingInterval=-1,H._subtitleDisplay=!0,H.registerListeners(),H}return Object(s.a)(L,[{key:"destroy",value:function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,Object(t.a)(Object(m.a)(L.prototype),"destroy",this).call(this)}},{key:"subtitleDisplay",get:function(){return this._subtitleDisplay},set:function(H){this._subtitleDisplay=H,this.trackId>-1&&this.toggleTrackModes(this.trackId)}},{key:"registerListeners",value:function(){var H=this.hls;H.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.MANIFEST_PARSED,this.onManifestParsed,this),H.on(w.LEVEL_LOADING,this.onLevelLoading,this),H.on(w.LEVEL_SWITCHING,this.onLevelSwitching,this),H.on(w.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.on(w.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var H=this.hls;H.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.MANIFEST_PARSED,this.onManifestParsed,this),H.off(w.LEVEL_LOADING,this.onLevelLoading,this),H.off(w.LEVEL_SWITCHING,this.onLevelSwitching,this),H.off(w.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.off(w.ERROR,this.onError,this)}},{key:"onMediaAttached",value:function(H,Z){if(this.media=Z.media,!this.media)return;this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)}},{key:"pollTrackChange",value:function(H){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,H)}},{key:"onMediaDetaching",value:function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var H=Gr(this.media.textTracks);H.forEach(function(Z){Kn(Z)}),this.subtitleTrack=-1,this.media=null}},{key:"onManifestLoading",value:function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0}},{key:"onManifestParsed",value:function(H,Z){this.tracks=Z.subtitleTracks}},{key:"onSubtitleTrackLoaded",value:function(H,Z){var re=Z.id,Ae=Z.details,Te=this.trackId,Ge=this.tracksInGroup[Te];if(!Ge){this.warn("Invalid subtitle track id ".concat(re));return}var lt=Ge.details;Ge.details=Z.details,this.log("subtitle track ".concat(re," loaded [").concat(Ae.startSN,"-").concat(Ae.endSN,"]")),re===this.trackId&&this.playlistLoaded(re,Z,lt)}},{key:"onLevelLoading",value:function(H,Z){this.switchLevel(Z.level)}},{key:"onLevelSwitching",value:function(H,Z){this.switchLevel(Z.level)}},{key:"switchLevel",value:function(H){var Z=this.hls.levels[H];if(!(Z!=null&&Z.textGroupIds))return;var re=Z.textGroupIds[Z.urlId],Ae=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;if(this.groupId!==re){var Te=this.tracks.filter(function(dt){return!re||dt.groupId===re});this.tracksInGroup=Te;var Ge=this.findTrackId(Ae==null?void 0:Ae.name)||this.findTrackId();this.groupId=re||null;var lt={subtitleTracks:Te};this.log("Updating subtitle tracks, ".concat(Te.length,' track(s) found in "').concat(re,'" group-id')),this.hls.trigger(w.SUBTITLE_TRACKS_UPDATED,lt),Ge!==-1&&this.setSubtitleTrack(Ge,Ae)}else this.shouldReloadPlaylist(Ae)&&this.setSubtitleTrack(this.trackId,Ae)}},{key:"findTrackId",value:function(H){for(var Z=this.tracksInGroup,re=0;re<Z.length;re++){var Ae=Z[re];if((!this.selectDefaultTrack||Ae.default)&&(!H||H===Ae.name))return Ae.id}return-1}},{key:"onError",value:function(H,Z){if(Z.fatal||!Z.context)return;Z.context.type===St.SUBTITLE_TRACK&&Z.context.id===this.trackId&&Z.context.groupId===this.groupId&&this.checkRetry(Z)}},{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(H){this.selectDefaultTrack=!1;var Z=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(H,Z)}},{key:"loadPlaylist",value:function(H){Object(t.a)(Object(m.a)(L.prototype),"loadPlaylist",this).call(this);var Z=this.tracksInGroup[this.trackId];if(this.shouldLoadPlaylist(Z)){var re=Z.id,Ae=Z.groupId,Te=Z.url;if(H)try{Te=H.addDirectives(Te)}catch(Ge){this.warn("Could not construct new URL with HLS Delivery Directives: ".concat(Ge))}this.log("Loading subtitle playlist for id ".concat(re)),this.hls.trigger(w.SUBTITLE_TRACK_LOADING,{url:Te,id:re,groupId:Ae,deliveryDirectives:H||null})}}},{key:"toggleTrackModes",value:function(H){var Z=this,re=this.media,Ae=this.trackId;if(!re)return;var Te=Gr(re.textTracks),Ge=Te.filter(function(Kt){return Kt.groupId===Z.groupId});if(H===-1)[].slice.call(Te).forEach(function(Kt){Kt.mode="disabled"});else{var lt=Ge[Ae];lt&&(lt.mode="disabled")}var dt=Ge[H];dt&&(dt.mode=this.subtitleDisplay?"showing":"hidden")}},{key:"setSubtitleTrack",value:function(H,Z){var re,Ae=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=H;return}if(this.trackId!==H&&this.toggleTrackModes(H),this.trackId===H&&(H===-1||(re=Ae[H])!=null&&re.details)||H<-1||H>=Ae.length)return;this.clearTimer();var Te=Ae[H];if(this.log("Switching to subtitle-track ".concat(H)+(Te?' "'.concat(Te.name,'" lang:').concat(Te.lang," group:").concat(Te.groupId):"")),this.trackId=H,Te){var Ge=Te.id,lt=Te.groupId,dt=lt===void 0?"":lt,Kt=Te.name,Er=Te.type,br=Te.url;this.hls.trigger(w.SUBTITLE_TRACK_SWITCH,{id:Ge,groupId:dt,name:Kt,type:Er,url:br});var jr=this.switchParams(Te.url,Z==null?void 0:Z.details);this.loadPlaylist(jr)}else this.hls.trigger(w.SUBTITLE_TRACK_SWITCH,{id:H})}},{key:"onTextTracksChanged",value:function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var H=-1,Z=Gr(this.media.textTracks),re=0;re<Z.length;re++)if(Z[re].mode==="hidden")H=re;else if(Z[re].mode==="showing"){H=re;break}this.subtitleTrack!==H&&(this.subtitleTrack=H)}}]),L}(cr);function Gr(ve){for(var q=[],L=0;L<ve.length;L++){var K=ve[L];(K.kind==="subtitles"||K.kind==="captions")&&K.label&&q.push(ve[L])}return q}var cn=function(){function ve(q){Object(r.a)(this,ve),this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=q}return Object(s.a)(ve,[{key:"append",value:function(L,K){var H=this.queues[K];H.push(L),H.length===1&&this.buffers[K]&&this.executeNext(K)}},{key:"insertAbort",value:function(L,K){var H=this.queues[K];H.unshift(L),this.executeNext(K)}},{key:"appendBlocker",value:function(L){var K,H=new Promise(function(re){K=re}),Z={execute:K,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(Z,L),H}},{key:"executeNext",value:function(L){var K=this.buffers,H=this.queues,Z=K[L],re=H[L];if(re.length){var Ae=re[0];try{Ae.execute()}catch(Te){j.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),Ae.onError(Te),Z!=null&&Z.updating||(re.shift(),this.executeNext(L))}}}},{key:"shiftAndExecuteNext",value:function(L){this.queues[L].shift(),this.executeNext(L)}},{key:"current",value:function(L){return this.queues[L][0]}}]),ve}(),_n=qt(),li=/([ha]vc.)(?:\.[^.,]+)+/,wi=function(){function ve(q){var L=this;Object(r.a)(this,ve),this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var K=L.media,H=L.mediaSource;j.log("[buffer-controller]: Media source opened"),K&&(K.removeEventListener("emptied",L._onMediaEmptied),L.updateMediaElementDuration(),L.hls.trigger(w.MEDIA_ATTACHED,{media:K})),H&&H.removeEventListener("sourceopen",L._onMediaSourceOpen),L.checkPendingTracks()},this._onMediaSourceClose=function(){j.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){j.log("[buffer-controller]: Media source ended")},this._onMediaEmptied=function(){var K=L.media,H=L._objectUrl;K&&K.src!==H&&j.error("Media element src was set while attaching MediaSource (".concat(H," > ").concat(K.src,")"))},this.hls=q,this._initSourceBuffer(),this.registerListeners()}return Object(s.a)(ve,[{key:"hasSourceTypes",value:function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0}},{key:"destroy",value:function(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null}},{key:"registerListeners",value:function(){var L=this.hls;L.on(w.MEDIA_ATTACHING,this.onMediaAttaching,this),L.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),L.on(w.MANIFEST_LOADING,this.onManifestLoading,this),L.on(w.MANIFEST_PARSED,this.onManifestParsed,this),L.on(w.BUFFER_RESET,this.onBufferReset,this),L.on(w.BUFFER_APPENDING,this.onBufferAppending,this),L.on(w.BUFFER_CODECS,this.onBufferCodecs,this),L.on(w.BUFFER_EOS,this.onBufferEos,this),L.on(w.BUFFER_FLUSHING,this.onBufferFlushing,this),L.on(w.LEVEL_UPDATED,this.onLevelUpdated,this),L.on(w.FRAG_PARSED,this.onFragParsed,this),L.on(w.FRAG_CHANGED,this.onFragChanged,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(w.MEDIA_ATTACHING,this.onMediaAttaching,this),L.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.MANIFEST_PARSED,this.onManifestParsed,this),L.off(w.BUFFER_RESET,this.onBufferReset,this),L.off(w.BUFFER_APPENDING,this.onBufferAppending,this),L.off(w.BUFFER_CODECS,this.onBufferCodecs,this),L.off(w.BUFFER_EOS,this.onBufferEos,this),L.off(w.BUFFER_FLUSHING,this.onBufferFlushing,this),L.off(w.LEVEL_UPDATED,this.onLevelUpdated,this),L.off(w.FRAG_PARSED,this.onFragParsed,this),L.off(w.FRAG_CHANGED,this.onFragChanged,this)}},{key:"_initSourceBuffer",value:function(){this.sourceBuffer={},this.operationQueue=new cn(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.lastMpegAudioChunk=null}},{key:"onManifestLoading",value:function(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null}},{key:"onManifestParsed",value:function(L,K){var H=2;(K.audio&&!K.video||!K.altAudio||!1)&&(H=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=H,j.log("".concat(this.bufferCodecEventsExpected," bufferCodec event(s) expected"))}},{key:"onMediaAttaching",value:function(L,K){var H=this.media=K.media;if(H&&_n){var Z=this.mediaSource=new _n;Z.addEventListener("sourceopen",this._onMediaSourceOpen),Z.addEventListener("sourceended",this._onMediaSourceEnded),Z.addEventListener("sourceclose",this._onMediaSourceClose),H.src=self.URL.createObjectURL(Z),this._objectUrl=H.src,H.addEventListener("emptied",this._onMediaEmptied)}}},{key:"onMediaDetaching",value:function(){var L=this.media,K=this.mediaSource,H=this._objectUrl;if(K){if(j.log("[buffer-controller]: media source detaching"),K.readyState==="open")try{K.endOfStream()}catch(Z){j.warn("[buffer-controller]: onMediaDetaching: ".concat(Z.message," while calling endOfStream"))}this.onBufferReset(),K.removeEventListener("sourceopen",this._onMediaSourceOpen),K.removeEventListener("sourceended",this._onMediaSourceEnded),K.removeEventListener("sourceclose",this._onMediaSourceClose),L&&(L.removeEventListener("emptied",this._onMediaEmptied),H&&self.URL.revokeObjectURL(H),L.src===H?(L.removeAttribute("src"),L.load()):j.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(w.MEDIA_DETACHED,void 0)}},{key:"onBufferReset",value:function(){var L=this;this.getSourceBufferTypes().forEach(function(K){var H=L.sourceBuffer[K];try{H&&(L.removeBufferListeners(K),L.mediaSource&&L.mediaSource.removeSourceBuffer(H),L.sourceBuffer[K]=void 0)}catch(Z){j.warn("[buffer-controller]: Failed to reset the ".concat(K," buffer"),Z)}}),this._initSourceBuffer()}},{key:"onBufferCodecs",value:function(L,K){var H=this,Z=this.getSourceBufferTypes().length;if(Object.keys(K).forEach(function(re){if(Z){var Ae=H.tracks[re];if(Ae&&typeof Ae.buffer.changeType=="function"){var Te=K[re],Ge=Te.id,lt=Te.codec,dt=Te.levelCodec,Kt=Te.container,Er=Te.metadata,br=(Ae.levelCodec||Ae.codec).replace(li,"$1"),jr=(dt||lt).replace(li,"$1");if(br!==jr){var Kr="".concat(Kt,";codecs=").concat(dt||lt);H.appendChangeType(re,Kr),j.log("[buffer-controller]: switching codec ".concat(br," to ").concat(jr)),H.tracks[re]={buffer:Ae.buffer,codec:lt,container:Kt,levelCodec:dt,metadata:Er,id:Ge}}}}else H.pendingTracks[re]=K[re]}),Z)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()}},{key:"appendChangeType",value:function(L,K){var H=this,Z=this.operationQueue,re={execute:function(){var Te=H.sourceBuffer[L];Te&&(j.log("[buffer-controller]: changing ".concat(L," sourceBuffer type to ").concat(K)),Te.changeType(K)),Z.shiftAndExecuteNext(L)},onStart:function(){},onComplete:function(){},onError:function(Te){j.warn("[buffer-controller]: Failed to change ".concat(L," SourceBuffer type"),Te)}};Z.append(re,L)}},{key:"onBufferAppending",value:function(L,K){var H=this,Z=this.hls,re=this.operationQueue,Ae=this.tracks,Te=K.data,Ge=K.type,lt=K.frag,dt=K.part,Kt=K.chunkMeta,Er=Kt.buffering[Ge],br=self.performance.now();Er.start=br;var jr=lt.stats.buffering,Kr=dt?dt.stats.buffering:null;jr.start===0&&(jr.start=br),Kr&&Kr.start===0&&(Kr.start=br);var In=Ae.audio,kn=!1;Ge==="audio"&&(In==null?void 0:In.container)==="audio/mpeg"&&(kn=!this.lastMpegAudioChunk||Kt.id===1||this.lastMpegAudioChunk.sn!==Kt.sn,this.lastMpegAudioChunk=Kt);var Gn=lt.start,bi={execute:function(){if(Er.executeStart=self.performance.now(),kn){var Xi=H.sourceBuffer[Ge];if(Xi){var ta=Gn-Xi.timestampOffset;Math.abs(ta)>=.1&&(j.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to ".concat(Gn," (delta: ").concat(ta,") sn: ").concat(lt.sn,")")),Xi.timestampOffset=Gn)}}H.appendExecutor(Te,Ge)},onStart:function(){},onComplete:function(){var Xi=self.performance.now();Er.executeEnd=Er.end=Xi,jr.first===0&&(jr.first=Xi),Kr&&Kr.first===0&&(Kr.first=Xi);var ta=H.sourceBuffer,Pa={};for(var Ya in ta)Pa[Ya]=Ci.getBuffered(ta[Ya]);H.appendError=0,H.hls.trigger(w.BUFFER_APPENDED,{type:Ge,frag:lt,part:dt,chunkMeta:Kt,parent:lt.type,timeRanges:Pa})},onError:function(Xi){j.error("[buffer-controller]: Error encountered while trying to append to the ".concat(Ge," SourceBuffer"),Xi);var ta={type:O.MEDIA_ERROR,parent:lt.type,details:I.BUFFER_APPEND_ERROR,frag:lt,part:dt,chunkMeta:Kt,error:Xi,err:Xi,fatal:!1};Xi.code===DOMException.QUOTA_EXCEEDED_ERR?ta.details=I.BUFFER_FULL_ERROR:(H.appendError++,ta.details=I.BUFFER_APPEND_ERROR,H.appendError>Z.config.appendErrorMaxRetry&&(j.error("[buffer-controller]: Failed ".concat(Z.config.appendErrorMaxRetry," times to append segment in sourceBuffer")),ta.fatal=!0)),Z.trigger(w.ERROR,ta)}};re.append(bi,Ge)}},{key:"onBufferFlushing",value:function(L,K){var H=this,Z=this.operationQueue,re=function(Te){return{execute:H.removeExecutor.bind(H,Te,K.startOffset,K.endOffset),onStart:function(){},onComplete:function(){H.hls.trigger(w.BUFFER_FLUSHED,{type:Te})},onError:function(lt){j.warn("[buffer-controller]: Failed to remove from ".concat(Te," SourceBuffer"),lt)}}};K.type?Z.append(re(K.type),K.type):this.getSourceBufferTypes().forEach(function(Ae){Z.append(re(Ae),Ae)})}},{key:"onFragParsed",value:function(L,K){var H=this,Z=K.frag,re=K.part,Ae=[],Te=re?re.elementaryStreams:Z.elementaryStreams;Te[be.AUDIOVIDEO]?Ae.push("audiovideo"):(Te[be.AUDIO]&&Ae.push("audio"),Te[be.VIDEO]&&Ae.push("video"));var Ge=function(){var dt=self.performance.now();Z.stats.buffering.end=dt,re&&(re.stats.buffering.end=dt);var Kt=re?re.stats:Z.stats;H.hls.trigger(w.FRAG_BUFFERED,{frag:Z,part:re,stats:Kt,id:Z.type})};Ae.length===0&&j.warn("Fragments must have at least one ElementaryStreamType set. type: ".concat(Z.type," level: ").concat(Z.level," sn: ").concat(Z.sn)),this.blockBuffers(Ge,Ae)}},{key:"onFragChanged",value:function(L,K){this.flushBackBuffer()}},{key:"onBufferEos",value:function(L,K){var H=this,Z=this.getSourceBufferTypes().reduce(function(re,Ae){var Te=H.sourceBuffer[Ae];return Te&&(!K.type||K.type===Ae)&&(Te.ending=!0,Te.ended||(Te.ended=!0,j.log("[buffer-controller]: ".concat(Ae," sourceBuffer now EOS")))),re&&!!(!Te||Te.ended)},!0);Z&&(j.log("[buffer-controller]: Queueing mediaSource.endOfStream()"),this.blockBuffers(function(){H.getSourceBufferTypes().forEach(function(Ae){var Te=H.sourceBuffer[Ae];Te&&(Te.ending=!1)});var re=H.mediaSource;if(!re||re.readyState!=="open"){re&&j.info("[buffer-controller]: Could not call mediaSource.endOfStream(). mediaSource.readyState: ".concat(re.readyState));return}j.log("[buffer-controller]: Calling mediaSource.endOfStream()"),re.endOfStream()}))}},{key:"onLevelUpdated",value:function(L,K){var H=K.details;if(!H.fragments.length)return;this.details=H,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()}},{key:"flushBackBuffer",value:function(){var L=this.hls,K=this.details,H=this.media,Z=this.sourceBuffer;if(!H||K===null)return;var re=this.getSourceBufferTypes();if(!re.length)return;var Ae=K.live&&L.config.liveBackBufferLength!==null?L.config.liveBackBufferLength:L.config.backBufferLength;if(!T(Ae)||Ae<0)return;var Te=H.currentTime,Ge=K.levelTargetDuration,lt=Math.max(Ae,Ge),dt=Math.floor(Te/Ge)*Ge-lt;re.forEach(function(Kt){var Er=Z[Kt];if(Er){var br=Ci.getBuffered(Er);if(br.length>0&&dt>br.start(0)){if(L.trigger(w.BACK_BUFFER_REACHED,{bufferEnd:dt}),K.live)L.trigger(w.LIVE_BACK_BUFFER_REACHED,{bufferEnd:dt});else if(Er.ended&&br.end(br.length-1)-Te<Ge*2){j.info("[buffer-controller]: Cannot flush ".concat(Kt," back buffer while SourceBuffer is in ended state"));return}L.trigger(w.BUFFER_FLUSHING,{startOffset:0,endOffset:dt,type:Kt})}}})}},{key:"updateMediaElementDuration",value:function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var L=this.details,K=this.hls,H=this.media,Z=this.mediaSource,re=L.fragments[0].start+L.totalduration,Ae=H.duration,Te=T(Z.duration)?Z.duration:0;L.live&&K.config.liveDurationInfinity?(j.log("[buffer-controller]: Media Source duration is set to Infinity"),Z.duration=Infinity,this.updateSeekableRange(L)):(re>Te&&re>Ae||!T(Ae))&&(j.log("[buffer-controller]: Updating Media Source duration to ".concat(re.toFixed(3))),Z.duration=re)}},{key:"updateSeekableRange",value:function(L){var K=this.mediaSource,H=L.fragments,Z=H.length;if(Z&&L.live&&K!=null&&K.setLiveSeekableRange){var re=Math.max(0,H[0].start),Ae=Math.max(re,re+L.totalduration);K.setLiveSeekableRange(re,Ae)}}},{key:"checkPendingTracks",value:function(){var L=this.bufferCodecEventsExpected,K=this.operationQueue,H=this.pendingTracks,Z=Object.keys(H).length;if(Z&&!L||Z===2){this.createSourceBuffers(H),this.pendingTracks={};var re=this.getSourceBufferTypes();if(re.length)this.hls.trigger(w.BUFFER_CREATED,{tracks:this.tracks}),re.forEach(function(Te){K.executeNext(Te)});else{var Ae=new Error("could not create source buffer for media codec(s)");this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:Ae,reason:Ae.message})}}}},{key:"createSourceBuffers",value:function(L){var K=this.sourceBuffer,H=this.mediaSource;if(!H)throw Error("createSourceBuffers called when mediaSource was null");for(var Z in L)if(!K[Z]){var re=L[Z];if(!re)throw Error("source buffer exists for track ".concat(Z,", however track does not"));var Ae=re.levelCodec||re.codec,Te="".concat(re.container,";codecs=").concat(Ae);j.log("[buffer-controller]: creating sourceBuffer(".concat(Te,")"));try{var Ge=K[Z]=H.addSourceBuffer(Te),lt=Z;this.addBufferListener(lt,"updatestart",this._onSBUpdateStart),this.addBufferListener(lt,"updateend",this._onSBUpdateEnd),this.addBufferListener(lt,"error",this._onSBUpdateError),this.tracks[Z]={buffer:Ge,codec:Ae,container:re.container,levelCodec:re.levelCodec,metadata:re.metadata,id:re.id}}catch(dt){j.error("[buffer-controller]: error while trying to add sourceBuffer: ".concat(dt.message)),this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:dt,mimeType:Te})}}}},{key:"_onSBUpdateStart",value:function(L){var K=this.operationQueue,H=K.current(L);H.onStart()}},{key:"_onSBUpdateEnd",value:function(L){var K=this.operationQueue,H=K.current(L);H.onComplete(),K.shiftAndExecuteNext(L)}},{key:"_onSBUpdateError",value:function(L,K){var H=new Error("".concat(L," SourceBuffer error"));j.error("[buffer-controller]: ".concat(H),K),this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_APPENDING_ERROR,error:H,fatal:!1});var Z=this.operationQueue.current(L);Z&&Z.onError(K)}},{key:"removeExecutor",value:function(L,K,H){var Z=this.media,re=this.mediaSource,Ae=this.operationQueue,Te=this.sourceBuffer,Ge=Te[L];if(!Z||!re||!Ge){j.warn("[buffer-controller]: Attempting to remove from the ".concat(L," SourceBuffer, but it does not exist")),Ae.shiftAndExecuteNext(L);return}var lt=T(Z.duration)?Z.duration:Infinity,dt=T(re.duration)?re.duration:Infinity,Kt=Math.max(0,K),Er=Math.min(H,lt,dt);Er>Kt&&!Ge.ending?(Ge.ended=!1,j.log("[buffer-controller]: Removing [".concat(Kt,",").concat(Er,"] from the ").concat(L," SourceBuffer")),Ge.remove(Kt,Er)):Ae.shiftAndExecuteNext(L)}},{key:"appendExecutor",value:function(L,K){var H=this.operationQueue,Z=this.sourceBuffer,re=Z[K];if(!re){j.warn("[buffer-controller]: Attempting to append to the ".concat(K," SourceBuffer, but it does not exist")),H.shiftAndExecuteNext(K);return}re.ended=!1,re.appendBuffer(L)}},{key:"blockBuffers",value:function(L){var K=this,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getSourceBufferTypes();if(!H.length){j.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(L);return}var Z=this.operationQueue,re=H.map(function(Ae){return Z.appendBlocker(Ae)});Promise.all(re).then(function(){L(),H.forEach(function(Ae){var Te=K.sourceBuffer[Ae];Te!=null&&Te.updating||Z.shiftAndExecuteNext(Ae)})})}},{key:"getSourceBufferTypes",value:function(){return Object.keys(this.sourceBuffer)}},{key:"addBufferListener",value:function(L,K,H){var Z=this.sourceBuffer[L];if(!Z)return;var re=H.bind(this,L);this.listeners[L].push({event:K,listener:re}),Z.addEventListener(K,re)}},{key:"removeBufferListeners",value:function(L){var K=this.sourceBuffer[L];if(!K)return;this.listeners[L].forEach(function(H){K.removeEventListener(H.event,H.listener)})}}]),ve}(),mi={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},Gi=function(q){var L=q;return mi.hasOwnProperty(q)&&(L=mi[q]),String.fromCharCode(L)},sa=15,Ua=100,no={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Wo={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Zo={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Bo={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Es=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],As=function(){function ve(){Object(r.a)(this,ve),this.time=null,this.verboseLevel=0}return Object(s.a)(ve,[{key:"log",value:function(L,K){if(this.verboseLevel>=L){var H=typeof K=="function"?K():K;j.log("".concat(this.time," [").concat(L,"] ").concat(H))}}}]),ve}(),$o=function(q){for(var L=[],K=0;K<q.length;K++)L.push(q[K].toString(16));return L},Do=function(){function ve(q,L,K,H,Z){Object(r.a)(this,ve),this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=q||"white",this.underline=L||!1,this.italics=K||!1,this.background=H||"black",this.flash=Z||!1}return Object(s.a)(ve,[{key:"reset",value:function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}},{key:"setStyles",value:function(L){for(var K=["foreground","underline","italics","background","flash"],H=0;H<K.length;H++){var Z=K[H];L.hasOwnProperty(Z)&&(this[Z]=L[Z])}}},{key:"isDefault",value:function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash}},{key:"equals",value:function(L){return this.foreground===L.foreground&&this.underline===L.underline&&this.italics===L.italics&&this.background===L.background&&this.flash===L.flash}},{key:"copy",value:function(L){this.foreground=L.foreground,this.underline=L.underline,this.italics=L.italics,this.background=L.background,this.flash=L.flash}},{key:"toString",value:function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}]),ve}(),vo=function(){function ve(q,L,K,H,Z,re){Object(r.a)(this,ve),this.uchar=void 0,this.penState=void 0,this.uchar=q||" ",this.penState=new Do(L,K,H,Z,re)}return Object(s.a)(ve,[{key:"reset",value:function(){this.uchar=" ",this.penState.reset()}},{key:"setChar",value:function(L,K){this.uchar=L,this.penState.copy(K)}},{key:"setPenState",value:function(L){this.penState.copy(L)}},{key:"equals",value:function(L){return this.uchar===L.uchar&&this.penState.equals(L.penState)}},{key:"copy",value:function(L){this.uchar=L.uchar,this.penState.copy(L.penState)}},{key:"isEmpty",value:function(){return this.uchar===" "&&this.penState.isDefault()}}]),ve}(),Ms=function(){function ve(q){Object(r.a)(this,ve),this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var L=0;L<Ua;L++)this.chars.push(new vo);this.logger=q,this.pos=0,this.currPenState=new Do}return Object(s.a)(ve,[{key:"equals",value:function(L){for(var K=!0,H=0;H<Ua;H++)if(!this.chars[H].equals(L.chars[H])){K=!1;break}return K}},{key:"copy",value:function(L){for(var K=0;K<Ua;K++)this.chars[K].copy(L.chars[K])}},{key:"isEmpty",value:function(){for(var L=!0,K=0;K<Ua;K++)if(!this.chars[K].isEmpty()){L=!1;break}return L}},{key:"setCursor",value:function(L){this.pos!==L&&(this.pos=L),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>Ua&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Ua)}},{key:"moveCursor",value:function(L){var K=this.pos+L;if(L>1)for(var H=this.pos+1;H<K+1;H++)this.chars[H].setPenState(this.currPenState);this.setCursor(K)}},{key:"backSpace",value:function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}},{key:"insertChar",value:function(L){var K=this;L>=144&&this.backSpace();var H=Gi(L);if(this.pos>=Ua){this.logger.log(0,function(){return"Cannot insert "+L.toString(16)+" ("+H+") at position "+K.pos+". Skipping it!"});return}this.chars[this.pos].setChar(H,this.currPenState),this.moveCursor(1)}},{key:"clearFromPos",value:function(L){var K;for(K=L;K<Ua;K++)this.chars[K].reset()}},{key:"clear",value:function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}},{key:"clearToEndOfRow",value:function(){this.clearFromPos(this.pos)}},{key:"getTextString",value:function(){for(var L=[],K=!0,H=0;H<Ua;H++){var Z=this.chars[H].uchar;Z!==" "&&(K=!1),L.push(Z)}return K?"":L.join("")}},{key:"setPenStyles",value:function(L){this.currPenState.setStyles(L);var K=this.chars[this.pos];K.setPenState(this.currPenState)}}]),ve}(),rl=function(){function ve(q){Object(r.a)(this,ve),this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var L=0;L<sa;L++)this.rows.push(new Ms(q));this.logger=q,this.currRow=sa-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}return Object(s.a)(ve,[{key:"reset",value:function(){for(var L=0;L<sa;L++)this.rows[L].clear();this.currRow=sa-1}},{key:"equals",value:function(L){for(var K=!0,H=0;H<sa;H++)if(!this.rows[H].equals(L.rows[H])){K=!1;break}return K}},{key:"copy",value:function(L){for(var K=0;K<sa;K++)this.rows[K].copy(L.rows[K])}},{key:"isEmpty",value:function(){for(var L=!0,K=0;K<sa;K++)if(!this.rows[K].isEmpty()){L=!1;break}return L}},{key:"backSpace",value:function(){var L=this.rows[this.currRow];L.backSpace()}},{key:"clearToEndOfRow",value:function(){var L=this.rows[this.currRow];L.clearToEndOfRow()}},{key:"insertChar",value:function(L){var K=this.rows[this.currRow];K.insertChar(L)}},{key:"setPen",value:function(L){var K=this.rows[this.currRow];K.setPenStyles(L)}},{key:"moveCursor",value:function(L){var K=this.rows[this.currRow];K.moveCursor(L)}},{key:"setCursor",value:function(L){this.logger.log(2,"setCursor: "+L);var K=this.rows[this.currRow];K.setCursor(L)}},{key:"setPAC",value:function(L){this.logger.log(2,function(){return"pacData = "+JSON.stringify(L)});var K=L.row-1;if(this.nrRollUpRows&&K<this.nrRollUpRows-1&&(K=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==K){for(var H=0;H<sa;H++)this.rows[H].clear();var Z=this.currRow+1-this.nrRollUpRows,re=this.lastOutputScreen;if(re){var Ae=re.rows[Z].cueStartTime,Te=this.logger.time;if(Ae&&Te!==null&&Ae<Te)for(var Ge=0;Ge<this.nrRollUpRows;Ge++)this.rows[K-this.nrRollUpRows+Ge+1].copy(re.rows[Z+Ge])}}this.currRow=K;var lt=this.rows[this.currRow];if(L.indent!==null){var dt=L.indent,Kt=Math.max(dt-1,0);lt.setCursor(L.indent),L.color=lt.chars[Kt].penState.foreground}var Er={foreground:L.color,underline:L.underline,italics:L.italics,background:"black",flash:!1};this.setPen(Er)}},{key:"setBkgData",value:function(L){this.logger.log(2,function(){return"bkgData = "+JSON.stringify(L)}),this.backSpace(),this.setPen(L),this.insertChar(32)}},{key:"setRollUpRows",value:function(L){this.nrRollUpRows=L}},{key:"rollUp",value:function(){var L=this;if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,function(){return L.getDisplayText()});var K=this.currRow+1-this.nrRollUpRows,H=this.rows.splice(K,1)[0];H.clear(),this.rows.splice(this.currRow,0,H),this.logger.log(2,"Rolling up")}},{key:"getDisplayText",value:function(L){L=L||!1;for(var K=[],H="",Z=-1,re=0;re<sa;re++){var Ae=this.rows[re].getTextString();Ae&&(Z=re+1,L?K.push("Row "+Z+": '"+Ae+"'"):K.push(Ae.trim()))}return K.length>0&&(L?H="["+K.join(" | ")+"]":H=K.join(`
|
|
|
`)),H}},{key:"getTextAndFormat",value:function(){return this.rows}}]),ve}(),gs=function(){function ve(q,L,K){Object(r.a)(this,ve),this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=q,this.outputFilter=L,this.mode=null,this.verbose=0,this.displayedMemory=new rl(K),this.nonDisplayedMemory=new rl(K),this.lastOutputScreen=new rl(K),this.currRollUpRow=this.displayedMemory.rows[sa-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=K}return Object(s.a)(ve,[{key:"reset",value:function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[sa-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}},{key:"getHandler",value:function(){return this.outputFilter}},{key:"setHandler",value:function(L){this.outputFilter=L}},{key:"setPAC",value:function(L){this.writeScreen.setPAC(L)}},{key:"setBkgData",value:function(L){this.writeScreen.setBkgData(L)}},{key:"setMode",value:function(L){if(L===this.mode)return;this.mode=L,this.logger.log(2,function(){return"MODE="+L}),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=L}},{key:"insertChars",value:function(L){for(var K=this,H=0;H<L.length;H++)this.writeScreen.insertChar(L[H]);var Z=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,function(){return Z+": "+K.writeScreen.getDisplayText(!0)}),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,function(){return"DISPLAYED: "+K.displayedMemory.getDisplayText(!0)}),this.outputDataUpdate())}},{key:"ccRCL",value:function(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}},{key:"ccBS",value:function(){if(this.logger.log(2,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()}},{key:"ccAOF",value:function(){}},{key:"ccAON",value:function(){}},{key:"ccDER",value:function(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}},{key:"ccRU",value:function(L){this.logger.log(2,"RU("+L+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(L)}},{key:"ccFON",value:function(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}},{key:"ccRDC",value:function(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}},{key:"ccTR",value:function(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}},{key:"ccRTD",value:function(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}},{key:"ccEDM",value:function(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}},{key:"ccCR",value:function(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}},{key:"ccENM",value:function(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}},{key:"ccEOC",value:function(){var L=this;if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var K=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=K,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,function(){return"DISP: "+L.displayedMemory.getDisplayText()})}this.outputDataUpdate(!0)}},{key:"ccTO",value:function(L){this.logger.log(2,"TO("+L+") - Tab Offset"),this.writeScreen.moveCursor(L)}},{key:"ccMIDROW",value:function(L){var K={flash:!1};if(K.underline=L%2===1,K.italics=L>=46,K.italics)K.foreground="white";else{var H=Math.floor(L/2)-16,Z=["white","green","blue","cyan","red","yellow","magenta"];K.foreground=Z[H]}this.logger.log(2,"MIDROW: "+JSON.stringify(K)),this.writeScreen.setPen(K)}},{key:"outputDataUpdate",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,K=this.logger.time;if(K===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=K:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,K,this.lastOutputScreen),L&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:K),this.lastOutputScreen.copy(this.displayedMemory))}},{key:"cueSplitAtTime",value:function(L){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,L,this.displayedMemory),this.cueStartTime=L))}}]),ve}(),Ra=function(){function ve(q,L,K){Object(r.a)(this,ve),this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var H=new As;this.channels=[null,new gs(q,L,H),new gs(q+1,K,H)],this.cmdHistory=js(),this.logger=H}return Object(s.a)(ve,[{key:"getHandler",value:function(L){return this.channels[L].getHandler()}},{key:"setHandler",value:function(L,K){this.channels[L].setHandler(K)}},{key:"addData",value:function(L,K){var H,Z,re,Ae=!1;this.logger.time=L;for(var Te=0;Te<K.length;Te+=2){if(Z=K[Te]&127,re=K[Te+1]&127,Z===0&&re===0)continue;if(this.logger.log(3,"["+$o([K[Te],K[Te+1]])+"] -> ("+$o([Z,re])+")"),H=this.parseCmd(Z,re),H||(H=this.parseMidrow(Z,re)),H||(H=this.parsePAC(Z,re)),H||(H=this.parseBackgroundAttributes(Z,re)),!H&&(Ae=this.parseChars(Z,re),Ae)){var Ge=this.currentChannel;if(Ge&&Ge>0){var lt=this.channels[Ge];lt.insertChars(Ae)}else this.logger.log(2,"No channel found yet. TEXT-MODE?")}!H&&!Ae&&this.logger.log(2,"Couldn't parse cleaned data "+$o([Z,re])+" orig: "+$o([K[Te],K[Te+1]]))}}},{key:"parseCmd",value:function(L,K){var H=this.cmdHistory,Z=(L===20||L===28||L===21||L===29)&&K>=32&&K<=47,re=(L===23||L===31)&&K>=33&&K<=35;if(!(Z||re))return!1;if(fl(L,K,H))return dl(null,null,H),this.logger.log(3,"Repeated command ("+$o([L,K])+") is dropped"),!0;var Ae=L===20||L===21||L===23?1:2,Te=this.channels[Ae];return L===20||L===21||L===28||L===29?K===32?Te.ccRCL():K===33?Te.ccBS():K===34?Te.ccAOF():K===35?Te.ccAON():K===36?Te.ccDER():K===37?Te.ccRU(2):K===38?Te.ccRU(3):K===39?Te.ccRU(4):K===40?Te.ccFON():K===41?Te.ccRDC():K===42?Te.ccTR():K===43?Te.ccRTD():K===44?Te.ccEDM():K===45?Te.ccCR():K===46?Te.ccENM():K===47&&Te.ccEOC():Te.ccTO(K-32),dl(L,K,H),this.currentChannel=Ae,!0}},{key:"parseMidrow",value:function(L,K){var H=0;if((L===17||L===25)&&K>=32&&K<=47){if(L===17?H=1:H=2,H!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;var Z=this.channels[H];return Z?(Z.ccMIDROW(K),this.logger.log(3,"MIDROW ("+$o([L,K])+")"),!0):!1}return!1}},{key:"parsePAC",value:function(L,K){var H,Z=this.cmdHistory,re=(L>=17&&L<=23||L>=25&&L<=31)&&K>=64&&K<=127,Ae=(L===16||L===24)&&K>=64&&K<=95;if(!(re||Ae))return!1;if(fl(L,K,Z))return dl(null,null,Z),!0;var Te=L<=23?1:2;K>=64&&K<=95?H=Te===1?no[L]:Zo[L]:H=Te===1?Wo[L]:Bo[L];var Ge=this.channels[Te];return Ge?(Ge.setPAC(this.interpretPAC(H,K)),dl(L,K,Z),this.currentChannel=Te,!0):!1}},{key:"interpretPAC",value:function(L,K){var H,Z={color:null,italics:!1,indent:null,underline:!1,row:L};return K>95?H=K-96:H=K-64,Z.underline=(H&1)===1,H<=13?Z.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(H/2)]:H<=15?(Z.italics=!0,Z.color="white"):Z.indent=Math.floor((H-16)/2)*4,Z}},{key:"parseChars",value:function(L,K){var H,Z=null,re=null;if(L>=25?(H=2,re=L-8):(H=1,re=L),re>=17&&re<=19){var Ae;re===17?Ae=K+80:re===18?Ae=K+112:Ae=K+144,this.logger.log(2,"Special char '"+Gi(Ae)+"' in channel "+H),Z=[Ae]}else L>=32&&L<=127&&(Z=K===0?[L]:[L,K]);if(Z){var Te=$o(Z);this.logger.log(3,"Char codes = "+Te.join(",")),dl(L,K,this.cmdHistory)}return Z}},{key:"parseBackgroundAttributes",value:function(L,K){var H=(L===16||L===24)&&K>=32&&K<=47,Z=(L===23||L===31)&&K>=45&&K<=47;if(!(H||Z))return!1;var re,Ae={};L===16||L===24?(re=Math.floor((K-32)/2),Ae.background=Es[re],K%2===1&&(Ae.background=Ae.background+"_semi")):K===45?Ae.background="transparent":(Ae.foreground="black",K===47&&(Ae.underline=!0));var Te=L<=23?1:2,Ge=this.channels[Te];return Ge.setBkgData(Ae),dl(L,K,this.cmdHistory),!0}},{key:"reset",value:function(){for(var L=0;L<Object.keys(this.channels).length;L++){var K=this.channels[L];K&&K.reset()}this.cmdHistory=js()}},{key:"cueSplitAtTime",value:function(L){for(var K=0;K<this.channels.length;K++){var H=this.channels[K];H&&H.cueSplitAtTime(L)}}}]),ve}();function dl(ve,q,L){L.a=ve,L.b=q}function fl(ve,q,L){return L.a===ve&&L.b===q}function js(){return{a:null,b:null}}var _s=function(){function ve(q,L){Object(r.a)(this,ve),this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=q,this.trackName=L}return Object(s.a)(ve,[{key:"dispatchCue",value:function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null}},{key:"newCue",value:function(L,K,H){(this.startTime===null||this.startTime>L)&&(this.startTime=L),this.endTime=K,this.screen=H,this.timelineController.createCaptionsTrack(this.trackName)}},{key:"reset",value:function(){this.cueRanges=[],this.startTime=null}}]),ve}(),Xs=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var ve=["","lr","rl"],q=["start","middle","end","left","right"];function L(Ae,Te){if(typeof Te!="string")return!1;if(!Array.isArray(Ae))return!1;var Ge=Te.toLowerCase();return~Ae.indexOf(Ge)?Ge:!1}function K(Ae){return L(ve,Ae)}function H(Ae){return L(q,Ae)}function Z(Ae){for(var Te=arguments.length,Ge=new Array(Te>1?Te-1:0),lt=1;lt<Te;lt++)Ge[lt-1]=arguments[lt];for(var dt=1;dt<arguments.length;dt++){var Kt=arguments[dt];for(var Er in Kt)Ae[Er]=Kt[Er]}return Ae}function re(Ae,Te,Ge){var lt=this,dt={enumerable:!0};lt.hasBeenReset=!1;var Kt="",Er=!1,br=Ae,jr=Te,Kr=Ge,In=null,kn="",Gn=!0,bi="auto",ua="start",Xi=50,ta="middle",Pa=50,Ya="middle";Object.defineProperty(lt,"id",Z({},dt,{get:function(){return Kt},set:function(Sa){Kt=""+Sa}})),Object.defineProperty(lt,"pauseOnExit",Z({},dt,{get:function(){return Er},set:function(Sa){Er=!!Sa}})),Object.defineProperty(lt,"startTime",Z({},dt,{get:function(){return br},set:function(Sa){if(typeof Sa!="number")throw new TypeError("Start time must be set to a number.");br=Sa,this.hasBeenReset=!0}})),Object.defineProperty(lt,"endTime",Z({},dt,{get:function(){return jr},set:function(Sa){if(typeof Sa!="number")throw new TypeError("End time must be set to a number.");jr=Sa,this.hasBeenReset=!0}})),Object.defineProperty(lt,"text",Z({},dt,{get:function(){return Kr},set:function(Sa){Kr=""+Sa,this.hasBeenReset=!0}})),Object.defineProperty(lt,"region",Z({},dt,{get:function(){return In},set:function(Sa){In=Sa,this.hasBeenReset=!0}})),Object.defineProperty(lt,"vertical",Z({},dt,{get:function(){return kn},set:function(Sa){var Go=K(Sa);if(Go===!1)throw new SyntaxError("An invalid or illegal string was specified.");kn=Go,this.hasBeenReset=!0}})),Object.defineProperty(lt,"snapToLines",Z({},dt,{get:function(){return Gn},set:function(Sa){Gn=!!Sa,this.hasBeenReset=!0}})),Object.defineProperty(lt,"line",Z({},dt,{get:function(){return bi},set:function(Sa){if(typeof Sa!="number"&&Sa!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");bi=Sa,this.hasBeenReset=!0}})),Object.defineProperty(lt,"lineAlign",Z({},dt,{get:function(){return ua},set:function(Sa){var Go=H(Sa);if(!Go)throw new SyntaxError("An invalid or illegal string was specified.");ua=Go,this.hasBeenReset=!0}})),Object.defineProperty(lt,"position",Z({},dt,{get:function(){return Xi},set:function(Sa){if(Sa<0||Sa>100)throw new Error("Position must be between 0 and 100.");Xi=Sa,this.hasBeenReset=!0}})),Object.defineProperty(lt,"positionAlign",Z({},dt,{get:function(){return ta},set:function(Sa){var Go=H(Sa);if(!Go)throw new SyntaxError("An invalid or illegal string was specified.");ta=Go,this.hasBeenReset=!0}})),Object.defineProperty(lt,"size",Z({},dt,{get:function(){return Pa},set:function(Sa){if(Sa<0||Sa>100)throw new Error("Size must be between 0 and 100.");Pa=Sa,this.hasBeenReset=!0}})),Object.defineProperty(lt,"align",Z({},dt,{get:function(){return Ya},set:function(Sa){var Go=H(Sa);if(!Go)throw new SyntaxError("An invalid or illegal string was specified.");Ya=Go,this.hasBeenReset=!0}})),lt.displayState=void 0}return re.prototype.getCueAsHTML=function(){var Ae=self.WebVTT;return Ae.convertCueToDOMTree(self,this.text)},re}(),Ql=function(){function ve(){Object(r.a)(this,ve)}return Object(s.a)(ve,[{key:"decode",value:function(L,K){if(!L)return"";if(typeof L!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(L))}}]),ve}();function Ul(ve){function q(K,H,Z,re){return(K|0)*3600+(H|0)*60+(Z|0)+parseFloat(re||0)}var L=ve.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return L?parseFloat(L[2])>59?q(L[2],L[3],0,L[4]):q(L[1],L[2],L[3],L[4]):null}var wl=function(){function ve(){Object(r.a)(this,ve),this.values=Object.create(null)}return Object(s.a)(ve,[{key:"set",value:function(L,K){!this.get(L)&&K!==""&&(this.values[L]=K)}},{key:"get",value:function(L,K,H){return H?this.has(L)?this.values[L]:K[H]:this.has(L)?this.values[L]:K}},{key:"has",value:function(L){return L in this.values}},{key:"alt",value:function(L,K,H){for(var Z=0;Z<H.length;++Z)if(K===H[Z]){this.set(L,K);break}}},{key:"integer",value:function(L,K){/^-?\d+$/.test(K)&&this.set(L,parseInt(K,10))}},{key:"percent",value:function(L,K){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(K)){var H=parseFloat(K);if(H>=0&&H<=100)return this.set(L,H),!0}return!1}}]),ve}();function Ts(ve,q,L,K){var H=K?ve.split(K):[ve];for(var Z in H){if(typeof H[Z]!="string")continue;var re=H[Z].split(L);if(re.length!==2)continue;var Ae=re[0],Te=re[1];q(Ae,Te)}}var Ks=new Xs(0,0,""),Tl=Ks.align==="middle"?"middle":"center";function pl(ve,q,L){var K=ve;function H(){var Ae=Ul(ve);if(Ae===null)throw new Error("Malformed timestamp: "+K);return ve=ve.replace(/^[^\sa-zA-Z-]+/,""),Ae}function Z(Ae,Te){var Ge=new wl;Ts(Ae,function(Kt,Er){var br;switch(Kt){case"region":for(var jr=L.length-1;jr>=0;jr--)if(L[jr].id===Er){Ge.set(Kt,L[jr].region);break}break;case"vertical":Ge.alt(Kt,Er,["rl","lr"]);break;case"line":br=Er.split(","),Ge.integer(Kt,br[0]),Ge.percent(Kt,br[0])&&Ge.set("snapToLines",!1),Ge.alt(Kt,br[0],["auto"]),br.length===2&&Ge.alt("lineAlign",br[1],["start",Tl,"end"]);break;case"position":br=Er.split(","),Ge.percent(Kt,br[0]),br.length===2&&Ge.alt("positionAlign",br[1],["start",Tl,"end","line-left","line-right","auto"]);break;case"size":Ge.percent(Kt,Er);break;case"align":Ge.alt(Kt,Er,["start",Tl,"end","left","right"]);break}},/:/,/\s/),Te.region=Ge.get("region",null),Te.vertical=Ge.get("vertical","");var lt=Ge.get("line","auto");lt==="auto"&&Ks.line===-1&&(lt=-1),Te.line=lt,Te.lineAlign=Ge.get("lineAlign","start"),Te.snapToLines=Ge.get("snapToLines",!0),Te.size=Ge.get("size",100),Te.align=Ge.get("align",Tl);var dt=Ge.get("position","auto");dt==="auto"&&Ks.position===50&&(dt=Te.align==="start"||Te.align==="left"?0:Te.align==="end"||Te.align==="right"?100:50),Te.position=dt}function re(){ve=ve.replace(/^\s+/,"")}if(re(),q.startTime=H(),re(),ve.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+K);ve=ve.slice(3),re(),q.endTime=H(),re(),Z(ve,q)}function jo(ve){return ve.replace(/<br(?: \/)?>/gi,`
|
|
|
`)}var yo=function(){function ve(){Object(r.a)(this,ve),this.state="INITIAL",this.buffer="",this.decoder=new Ql,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}return Object(s.a)(ve,[{key:"parse",value:function(L){var K=this;L&&(K.buffer+=K.decoder.decode(L,{stream:!0}));function H(){var lt=K.buffer,dt=0;for(lt=jo(lt);dt<lt.length&<[dt]!=="\r"&<[dt]!==`
|
|
|
`;)++dt;var Kt=lt.slice(0,dt);return lt[dt]==="\r"&&++dt,lt[dt]===`
|
|
|
`&&++dt,K.buffer=lt.slice(dt),Kt}function Z(lt){Ts(lt,function(dt,Kt){},/:/)}try{var re="";if(K.state==="INITIAL"){if(!/\r\n|\n/.test(K.buffer))return this;re=H();var Ae=re.match(/^()?WEBVTT([ \t].*)?$/);if(!(Ae!=null&&Ae[0]))throw new Error("Malformed WebVTT signature.");K.state="HEADER"}for(var Te=!1;K.buffer;){if(!/\r\n|\n/.test(K.buffer))return this;Te?Te=!1:re=H();switch(K.state){case"HEADER":/:/.test(re)?Z(re):re||(K.state="ID");continue;case"NOTE":re||(K.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(re)){K.state="NOTE";break}if(!re)continue;if(K.cue=new Xs(0,0,""),K.state="CUE",re.indexOf("-->")===-1){K.cue.id=re;continue}case"CUE":if(!K.cue){K.state="BADCUE";continue}try{pl(re,K.cue,K.regionList)}catch(lt){K.cue=null,K.state="BADCUE";continue}K.state="CUETEXT";continue;case"CUETEXT":{var Ge=re.indexOf("-->")!==-1;if(!re||Ge&&(Te=!0)){K.oncue&&K.cue&&K.oncue(K.cue),K.cue=null,K.state="ID";continue}if(K.cue===null)continue;K.cue.text&&(K.cue.text+=`
|
|
|
`),K.cue.text+=re}continue;case"BADCUE":re||(K.state="ID")}}}catch(lt){K.state==="CUETEXT"&&K.cue&&K.oncue&&K.oncue(K.cue),K.cue=null,K.state=K.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this}},{key:"flush",value:function(){var L=this;try{if((L.cue||L.state==="HEADER")&&(L.buffer+=`
|
|
|
|
|
|
`,L.parse()),L.state==="INITIAL"||L.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(K){L.onparsingerror&&L.onparsingerror(K)}return L.onflush&&L.onflush(),this}}]),ve}(),qo=/\r\n|\n\r|\n|\r/g,ps=function(q,L){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return q.slice(K,K+L.length)===L},Os=function(q){var L=parseInt(q.slice(-3)),K=parseInt(q.slice(-6,-4)),H=parseInt(q.slice(-9,-7)),Z=q.length>9?parseInt(q.substring(0,q.indexOf(":"))):0;if(!T(L)||!T(K)||!T(H)||!T(Z))throw Error("Malformed X-TIMESTAMP-MAP: Local:".concat(q));return L+=1e3*K,L+=60*1e3*H,L+=60*60*1e3*Z,L},es=function(q){for(var L=5381,K=q.length;K;)L=L*33^q.charCodeAt(--K);return(L>>>0).toString()};function Is(ve,q,L){return es(ve.toString())+es(q.toString())+es(L)}var Ps=function(q,L,K){var H=q[L],Z=q[H.prevCC];if(!Z||!Z.new&&H.new){q.ccOffset=q.presentationOffset=H.start,H.new=!1;return}for(;(re=Z)!=null&&re.new;){var re;q.ccOffset+=H.start-Z.start,H.new=!1,H=Z,Z=q[H.prevCC]}q.presentationOffset=K};function ml(ve,q,L,K,H,Z,re){var Ae=new yo,Te=$e(new Uint8Array(ve)).trim().replace(qo,`
|
|
|
`).split(`
|
|
|
`),Ge=[],lt=lo(q.baseTime,q.timescale),dt="00:00.000",Kt=0,Er=0,br,jr=!0;Ae.oncue=function(Kr){var In=L[K],kn=L.ccOffset,Gn=(Kt-lt)/9e4;In!=null&&In.new&&(Er!==void 0?kn=L.ccOffset=In.start:Ps(L,K,Gn)),Gn&&(kn=Gn-L.presentationOffset);var bi=Kr.endTime-Kr.startTime,ua=Ko((Kr.startTime+kn-Er)*9e4,H*9e4)/9e4;Kr.startTime=Math.max(ua,0),Kr.endTime=Math.max(ua+bi,0);var Xi=Kr.text.trim();Kr.text=decodeURIComponent(encodeURIComponent(Xi)),Kr.id||(Kr.id=Is(Kr.startTime,Kr.endTime,Xi)),Kr.endTime>0&&Ge.push(Kr)},Ae.onparsingerror=function(Kr){br=Kr},Ae.onflush=function(){if(br){re(br);return}Z(Ge)},Te.forEach(function(Kr){if(jr)if(ps(Kr,"X-TIMESTAMP-MAP=")){jr=!1,Kr.slice(16).split(",").forEach(function(In){ps(In,"LOCAL:")?dt=In.slice(6):ps(In,"MPEGTS:")&&(Kt=parseInt(In.slice(7)))});try{Er=Os(dt)/1e3}catch(In){br=In}return}else Kr===""&&(jr=!1);Ae.parse(Kr+`
|
|
|
`)}),Ae.flush()}var Rl="stpp.ttml.im1t",_l=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Bl=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,jl={left:"start",center:"center",right:"end",start:"start",end:"end"};function kl(ve,q,L,K){var H=Wt(new Uint8Array(ve),["mdat"]);if(H.length===0){K(new Error("Could not parse IMSC1 mdat"));return}var Z=H.map(function(Ae){return $e(Ae)}),re=Fa(q.baseTime,1,q.timescale);try{Z.forEach(function(Ae){return L(Xl(Ae,re))})}catch(Ae){K(Ae)}}function Xl(ve,q){var L=new DOMParser,K=L.parseFromString(ve,"text/xml"),H=K.getElementsByTagName("tt")[0];if(!H)throw new Error("Invalid ttml");var Z={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},re=Object.keys(Z).reduce(function(dt,Kt){return dt[Kt]=H.getAttribute("ttp:".concat(Kt))||Z[Kt],dt},{}),Ae=H.getAttribute("xml:space")!=="preserve",Te=Ys(ol(H,"styling","style")),Ge=Ys(ol(H,"layout","region")),lt=ol(H,"body","[begin]");return[].map.call(lt,function(dt){var Kt=sl(dt,Ae);if(!Kt||!dt.hasAttribute("begin"))return null;var Er=Wl(dt.getAttribute("begin"),re),br=Wl(dt.getAttribute("dur"),re),jr=Wl(dt.getAttribute("end"),re);if(Er===null)throw Ml(dt);if(jr===null){if(br===null)throw Ml(dt);jr=Er+br}var Kr=new Xs(Er-q,jr-q,Kt);Kr.id=Is(Kr.startTime,Kr.endTime,Kr.text);var In=Ge[dt.getAttribute("region")],kn=Te[dt.getAttribute("style")],Gn=nl(In,kn,Te),bi=Gn.textAlign;if(bi){var ua=jl[bi];ua&&(Kr.lineAlign=ua),Kr.align=bi}return E(Kr,Gn),Kr}).filter(function(dt){return dt!==null})}function ol(ve,q,L){var K=ve.getElementsByTagName(q)[0];return K?[].slice.call(K.querySelectorAll(L)):[]}function Ys(ve){return ve.reduce(function(q,L){var K=L.getAttribute("xml:id");return K&&(q[K]=L),q},{})}function sl(ve,q){return[].slice.call(ve.childNodes).reduce(function(L,K,H){var Z;return K.nodeName==="br"&&H?L+`
|
|
|
`:(Z=K.childNodes)!=null&&Z.length?sl(K,q):q?L+K.textContent.trim().replace(/\s+/g," "):L+K.textContent},"")}function nl(ve,q,L){var K="http://www.w3.org/ns/ttml#styling",H=null,Z=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],re=ve!=null&&ve.hasAttribute("style")?ve.getAttribute("style"):null;return re&&L.hasOwnProperty(re)&&(H=L[re]),Z.reduce(function(Ae,Te){var Ge=xl(q,K,Te)||xl(ve,K,Te)||xl(H,K,Te);return Ge&&(Ae[Te]=Ge),Ae},{})}function xl(ve,q,L){return ve&&ve.hasAttributeNS(q,L)?ve.getAttributeNS(q,L):null}function Ml(ve){return new Error("Could not parse ttml timestamp ".concat(ve))}function Wl(ve,q){if(!ve)return null;var L=Ul(ve);return L===null&&(_l.test(ve)?L=au(ve,q):Bl.test(ve)&&(L=Nl(ve,q))),L}function au(ve,q){var L=_l.exec(ve),K=(L[4]|0)+(L[5]|0)/q.subFrameRate;return(L[1]|0)*3600+(L[2]|0)*60+(L[3]|0)+K/q.frameRate}function Nl(ve,q){var L=Bl.exec(ve),K=Number(L[1]),H=L[2];switch(H){case"h":return K*3600;case"m":return K*60;case"ms":return K*1e3;case"f":return K/q.frameRate;case"t":return K/q.tickRate}return K}var $l=function(){function ve(q){if(Object(r.a)(this,ve),this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=pu(),this.captionsProperties=void 0,this.hls=q,this.config=q.config,this.Cues=q.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},this.config.enableCEA708Captions){var L=new _s(this,"textTrack1"),K=new _s(this,"textTrack2"),H=new _s(this,"textTrack3"),Z=new _s(this,"textTrack4");this.cea608Parser1=new Ra(1,L,K),this.cea608Parser2=new Ra(3,H,Z)}q.on(w.MEDIA_ATTACHING,this.onMediaAttaching,this),q.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),q.on(w.MANIFEST_LOADING,this.onManifestLoading,this),q.on(w.MANIFEST_LOADED,this.onManifestLoaded,this),q.on(w.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),q.on(w.FRAG_LOADING,this.onFragLoading,this),q.on(w.FRAG_LOADED,this.onFragLoaded,this),q.on(w.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),q.on(w.FRAG_DECRYPTED,this.onFragDecrypted,this),q.on(w.INIT_PTS_FOUND,this.onInitPtsFound,this),q.on(w.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),q.on(w.BUFFER_FLUSHING,this.onBufferFlushing,this)}return Object(s.a)(ve,[{key:"destroy",value:function(){var L=this.hls;L.off(w.MEDIA_ATTACHING,this.onMediaAttaching,this),L.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.MANIFEST_LOADED,this.onManifestLoaded,this),L.off(w.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),L.off(w.FRAG_LOADING,this.onFragLoading,this),L.off(w.FRAG_LOADED,this.onFragLoaded,this),L.off(w.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),L.off(w.FRAG_DECRYPTED,this.onFragDecrypted,this),L.off(w.INIT_PTS_FOUND,this.onInitPtsFound,this),L.off(w.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),L.off(w.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null}},{key:"addCues",value:function(L,K,H,Z,re){for(var Ae=!1,Te=re.length;Te--;){var Ge=re[Te],lt=Iu(Ge[0],Ge[1],K,H);if(lt>=0&&(Ge[0]=Math.min(Ge[0],K),Ge[1]=Math.max(Ge[1],H),Ae=!0,lt/(H-K)>.5))return}if(Ae||re.push([K,H]),this.config.renderTextTracksNatively){var dt=this.captionsTracks[L];this.Cues.newCue(dt,K,H,Z)}else{var Kt=this.Cues.newCue(null,K,H,Z);this.hls.trigger(w.CUES_PARSED,{type:"captions",cues:Kt,track:L})}}},{key:"onInitPtsFound",value:function(L,K){var H=this,Z=K.frag,re=K.id,Ae=K.initPTS,Te=K.timescale,Ge=this.unparsedVttFrags;re==="main"&&(this.initPTS[Z.cc]={baseTime:Ae,timescale:Te}),Ge.length&&(this.unparsedVttFrags=[],Ge.forEach(function(lt){H.onFragLoaded(w.FRAG_LOADED,lt)}))}},{key:"getExistingTrack",value:function(L){var K=this.media;if(K)for(var H=0;H<K.textTracks.length;H++){var Z=K.textTracks[H];if(Z[L])return Z}return null}},{key:"createCaptionsTrack",value:function(L){this.config.renderTextTracksNatively?this.createNativeTrack(L):this.createNonNativeTrack(L)}},{key:"createNativeTrack",value:function(L){if(this.captionsTracks[L])return;var K=this.captionsProperties,H=this.captionsTracks,Z=this.media,re=K[L],Ae=re.label,Te=re.languageCode,Ge=this.getExistingTrack(L);if(Ge)H[L]=Ge,Kn(H[L]),dn(H[L],Z);else{var lt=this.createTextTrack("captions",Ae,Te);lt&&(lt[L]=!0,H[L]=lt)}}},{key:"createNonNativeTrack",value:function(L){if(this.nonNativeCaptionsTracks[L])return;var K=this.captionsProperties[L];if(!K)return;var H=K.label,Z={_id:L,label:H,kind:"captions",default:K.media?!!K.media.default:!1,closedCaptions:K.media};this.nonNativeCaptionsTracks[L]=Z,this.hls.trigger(w.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[Z]})}},{key:"createTextTrack",value:function(L,K,H){var Z=this.media;return Z?Z.addTextTrack(L,K,H):void 0}},{key:"onMediaAttaching",value:function(L,K){this.media=K.media,this._cleanTracks()}},{key:"onMediaDetaching",value:function(){var L=this.captionsTracks;Object.keys(L).forEach(function(K){Kn(L[K]),delete L[K]}),this.nonNativeCaptionsTracks={}}},{key:"onManifestLoading",value:function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=pu(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=this.unparsedVttFrags||[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}},{key:"_cleanTracks",value:function(){var L=this.media;if(!L)return;var K=L.textTracks;if(K)for(var H=0;H<K.length;H++)Kn(K[H])}},{key:"onSubtitleTracksUpdated",value:function(L,K){var H=this,Z=K.subtitleTracks||[],re=Z.some(function(lt){return lt.textCodec===Rl});if(this.config.enableWebVTT||re&&this.config.enableIMSC1){var Ae=ue(this.tracks,Z);if(Ae){this.tracks=Z;return}if(this.textTracks=[],this.tracks=Z,this.config.renderTextTracksNatively){var Te=this.media?this.media.textTracks:null;this.tracks.forEach(function(lt,dt){var Kt;if(Te&&dt<Te.length){for(var Er=null,br=0;br<Te.length;br++)if(tu(Te[br],lt)){Er=Te[br];break}Er&&(Kt=Er)}if(Kt)Kn(Kt);else{var jr=H._captionsOrSubtitlesFromCharacteristics(lt);Kt=H.createTextTrack(jr,lt.name,lt.lang),Kt&&(Kt.mode="disabled")}Kt&&(Kt.groupId=lt.groupId,H.textTracks.push(Kt))})}else if(this.tracks.length){var Ge=this.tracks.map(function(lt){return{label:lt.name,kind:lt.type.toLowerCase(),default:lt.default,subtitleTrack:lt}});this.hls.trigger(w.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:Ge})}}}},{key:"_captionsOrSubtitlesFromCharacteristics",value:function(L){if(L.attrs.CHARACTERISTICS){var K=/transcribes-spoken-dialog/gi.test(L.attrs.CHARACTERISTICS),H=/describes-music-and-sound/gi.test(L.attrs.CHARACTERISTICS);if(K&&H)return"captions"}return"subtitles"}},{key:"onManifestLoaded",value:function(L,K){var H=this;this.config.enableCEA708Captions&&K.captions&&K.captions.forEach(function(Z){var re=/(?:CC|SERVICE)([1-4])/.exec(Z.instreamId);if(!re)return;var Ae="textTrack".concat(re[1]),Te=H.captionsProperties[Ae];if(!Te)return;Te.label=Z.name,Z.lang&&(Te.languageCode=Z.lang),Te.media=Z})}},{key:"closedCaptionsForLevel",value:function(L){var K=this.hls.levels[L.level];return K==null?void 0:K.attrs["CLOSED-CAPTIONS"]}},{key:"onFragLoading",value:function(L,K){var H=this.cea608Parser1,Z=this.cea608Parser2,re=this.lastSn,Ae=this.lastPartIndex;if(!this.enabled||!(H&&Z))return;if(K.frag.type===gt.MAIN){var Te,Ge,lt=K.frag.sn,dt=(Te=K==null||(Ge=K.part)==null?void 0:Ge.index)!=null?Te:-1;lt===re+1||lt===re&&dt===Ae+1||(H.reset(),Z.reset()),this.lastSn=lt,this.lastPartIndex=dt}}},{key:"onFragLoaded",value:function(L,K){var H=K.frag,Z=K.payload,re=this.initPTS,Ae=this.unparsedVttFrags;if(H.type===gt.SUBTITLE)if(Z.byteLength){if(!re[H.cc]){Ae.push(K),re.length&&this.hls.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:H,error:new Error("Missing initial subtitle PTS")});return}var Te=H.decryptdata,Ge="stats"in K;if(Te==null||!Te.encrypted||Ge){var lt=this.tracks[H.level],dt=this.vttCCs;dt[H.cc]||(dt[H.cc]={start:H.start,prevCC:this.prevCC,new:!0},this.prevCC=H.cc),lt&<.textCodec===Rl?this._parseIMSC1(H,Z):this._parseVTTs(H,Z,dt)}}else this.hls.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:H,error:new Error("Empty subtitle payload")})}},{key:"_parseIMSC1",value:function(L,K){var H=this,Z=this.hls;kl(K,this.initPTS[L.cc],function(re){H._appendCues(re,L.level),Z.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:L})},function(re){j.log("Failed to parse IMSC1: ".concat(re)),Z.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:L,error:re})})}},{key:"_parseVTTs",value:function(L,K,H){var Z=this,re,Ae=this.hls,Te=(re=L.initSegment)!=null&&re.data?_t(L.initSegment.data,new Uint8Array(K)):K;ml(Te,this.initPTS[L.cc],H,L.cc,L.start,function(Ge){Z._appendCues(Ge,L.level),Ae.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:L})},function(Ge){Z._fallbackToIMSC1(L,K),j.log("Failed to parse VTT cue: ".concat(Ge)),Ae.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:L,error:Ge})})}},{key:"_fallbackToIMSC1",value:function(L,K){var H=this,Z=this.tracks[L.level];Z.textCodec||kl(K,this.initPTS[L.cc],function(){Z.textCodec=Rl,H._parseIMSC1(L,K)},function(){Z.textCodec="wvtt"})}},{key:"_appendCues",value:function(L,K){var H=this.hls;if(this.config.renderTextTracksNatively){var Z=this.textTracks[K];if(!Z||Z.mode==="disabled")return;L.forEach(function(Te){return mr(Z,Te)})}else{var re=this.tracks[K];if(!re)return;var Ae=re.default?"default":"subtitles"+K;H.trigger(w.CUES_PARSED,{type:"subtitles",cues:L,track:Ae})}}},{key:"onFragDecrypted",value:function(L,K){var H=K.frag;if(H.type===gt.SUBTITLE){if(!this.initPTS[H.cc]){this.unparsedVttFrags.push(K);return}this.onFragLoaded(w.FRAG_LOADED,K)}}},{key:"onSubtitleTracksCleared",value:function(){this.tracks=[],this.captionsTracks={}}},{key:"onFragParsingUserdata",value:function(L,K){var H=this.cea608Parser1,Z=this.cea608Parser2;if(!this.enabled||!(H&&Z))return;var re=K.frag,Ae=K.samples;if(re.type===gt.MAIN&&this.closedCaptionsForLevel(re)==="NONE")return;for(var Te=0;Te<Ae.length;Te++){var Ge=Ae[Te].bytes;if(Ge){var lt=this.extractCea608Data(Ge);H.addData(Ae[Te].pts,lt[0]),Z.addData(Ae[Te].pts,lt[1])}}}},{key:"onBufferFlushing",value:function(L,K){var H=K.startOffset,Z=K.endOffset,re=K.endOffsetSubtitles,Ae=K.type,Te=this.media;if(!Te||Te.currentTime<Z)return;if(!Ae||Ae==="video"){var Ge=this.captionsTracks;Object.keys(Ge).forEach(function(dt){return Rr(Ge[dt],H,Z)})}if(this.config.renderTextTracksNatively&&(H===0&&re!==void 0)){var lt=this.textTracks;Object.keys(lt).forEach(function(dt){return Rr(lt[dt],H,re)})}}},{key:"extractCea608Data",value:function(L){for(var K=[[],[]],H=L[0]&31,Z=2,re=0;re<H;re++){var Ae=L[Z++],Te=127&L[Z++],Ge=127&L[Z++];if(Te===0&&Ge===0)continue;var lt=(4&Ae)!==0;if(lt){var dt=3&Ae;(dt===0||dt===1)&&(K[dt].push(Te),K[dt].push(Ge))}}return K}}]),ve}();function tu(ve,q){return!!ve&&ve.label===q.name&&!(ve.textTrack1||ve.textTrack2)}function Iu(ve,q,L,K){return Math.min(q,K)-Math.max(ve,L)}function pu(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}var mu=function(){function ve(q){Object(r.a)(this,ve),this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=q,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}return Object(s.a)(ve,[{key:"setStreamController",value:function(L){this.streamController=L}},{key:"destroy",value:function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}},{key:"registerListeners",value:function(){var L=this.hls;L.on(w.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),L.on(w.MEDIA_ATTACHING,this.onMediaAttaching,this),L.on(w.MANIFEST_PARSED,this.onManifestParsed,this),L.on(w.BUFFER_CODECS,this.onBufferCodecs,this),L.on(w.MEDIA_DETACHING,this.onMediaDetaching,this)}},{key:"unregisterListener",value:function(){var L=this.hls;L.off(w.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),L.off(w.MEDIA_ATTACHING,this.onMediaAttaching,this),L.off(w.MANIFEST_PARSED,this.onManifestParsed,this),L.off(w.BUFFER_CODECS,this.onBufferCodecs,this),L.off(w.MEDIA_DETACHING,this.onMediaDetaching,this)}},{key:"onFpsDropLevelCapping",value:function(L,K){var H=this.hls.levels[K.droppedLevel];this.isLevelAllowed(H)&&this.restrictedLevels.push({bitrate:H.bitrate,height:H.height,width:H.width})}},{key:"onMediaAttaching",value:function(L,K){this.media=K.media instanceof HTMLVideoElement?K.media:null,this.clientRect=null}},{key:"onManifestParsed",value:function(L,K){var H=this.hls;this.restrictedLevels=[],this.firstLevel=K.firstLevel,H.config.capLevelToPlayerSize&&K.video&&this.startCapping()}},{key:"onBufferCodecs",value:function(L,K){var H=this.hls;H.config.capLevelToPlayerSize&&K.video&&this.startCapping()}},{key:"onMediaDetaching",value:function(){this.stopCapping()}},{key:"detectPlayerSize",value:function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var L=this.hls.levels;if(L.length){var K=this.hls;K.autoLevelCapping=this.getMaxLevel(L.length-1),K.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=K.autoLevelCapping}}}},{key:"getMaxLevel",value:function(L){var K=this,H=this.hls.levels;if(!H.length)return-1;var Z=H.filter(function(re,Ae){return K.isLevelAllowed(re)&&Ae<=L});return this.clientRect=null,ve.getMaxLevelByMediaSize(Z,this.mediaWidth,this.mediaHeight)}},{key:"startCapping",value:function(){if(this.timer)return;this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize()}},{key:"stopCapping",value:function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}},{key:"getDimensions",value:function(){if(this.clientRect)return this.clientRect;var L=this.media,K={width:0,height:0};if(L){var H=L.getBoundingClientRect();K.width=H.width,K.height=H.height,!K.width&&!K.height&&(K.width=H.right-H.left||L.width||0,K.height=H.bottom-H.top||L.height||0)}return this.clientRect=K,K}},{key:"mediaWidth",get:function(){return this.getDimensions().width*this.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*this.contentScaleFactor}},{key:"contentScaleFactor",get:function(){var L=1;if(!this.hls.config.ignoreDevicePixelRatio)try{L=self.devicePixelRatio}catch(K){}return L}},{key:"isLevelAllowed",value:function(L){var K=this.restrictedLevels;return!K.some(function(H){return L.bitrate===H.bitrate&&L.width===H.width&&L.height===H.height})}}],[{key:"getMaxLevelByMediaSize",value:function(L,K,H){if(!(L!=null&&L.length))return-1;for(var Z=function(lt,dt){return dt?lt.width!==dt.width||lt.height!==dt.height:!0},re=L.length-1,Ae=0;Ae<L.length;Ae+=1){var Te=L[Ae];if((Te.width>=K||Te.height>=H)&&Z(Te,L[Ae+1])){re=Ae;break}}return re}}]),ve}(),gu=function(){function ve(q){Object(r.a)(this,ve),this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=q,this.registerListeners()}return Object(s.a)(ve,[{key:"setStreamController",value:function(L){this.streamController=L}},{key:"registerListeners",value:function(){this.hls.on(w.MEDIA_ATTACHING,this.onMediaAttaching,this)}},{key:"unregisterListeners",value:function(){this.hls.off(w.MEDIA_ATTACHING,this.onMediaAttaching,this)}},{key:"destroy",value:function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}},{key:"onMediaAttaching",value:function(L,K){var H=this.hls.config;if(H.capLevelOnFPSDrop){var Z=K.media instanceof self.HTMLVideoElement?K.media:null;this.media=Z,Z&&typeof Z.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),H.fpsDroppedMonitoringPeriod)}}},{key:"checkFPS",value:function(L,K,H){var Z=performance.now();if(K){if(this.lastTime){var re=Z-this.lastTime,Ae=H-this.lastDroppedFrames,Te=K-this.lastDecodedFrames,Ge=1e3*Ae/re,lt=this.hls;if(lt.trigger(w.FPS_DROP,{currentDropped:Ae,currentDecoded:Te,totalDroppedFrames:H}),Ge>0&&Ae>lt.config.fpsDroppedMonitoringThreshold*Te){var dt=lt.currentLevel;j.warn("drop FPS ratio greater than max allowed value for currentLevel: "+dt),dt>0&&(lt.autoLevelCapping===-1||lt.autoLevelCapping>=dt)&&(dt=dt-1,lt.trigger(w.FPS_DROP_LEVEL_CAPPING,{level:dt,droppedLevel:lt.currentLevel}),lt.autoLevelCapping=dt,this.streamController.nextLevelSwitch())}}this.lastTime=Z,this.lastDroppedFrames=H,this.lastDecodedFrames=K}}},{key:"checkFPSInterval",value:function(){var L=this.media;if(L)if(this.isVideoPlaybackQualityAvailable){var K=L.getVideoPlaybackQuality();this.checkFPS(L,K.totalVideoFrames,K.droppedVideoFrames)}else this.checkFPS(L,L.webkitDecodedFrameCount,L.webkitDroppedFrameCount)}}]),ve}(),ql="[eme]",Cl=function(){function ve(q){Object(r.a)(this,ve),this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=ve.CDMCleanupPromise?[ve.CDMCleanupPromise]:[],this.onMediaEncrypted=this._onMediaEncrypted.bind(this),this.onWaitingForKey=this._onWaitingForKey.bind(this),this.debug=j.debug.bind(j,ql),this.log=j.log.bind(j,ql),this.warn=j.warn.bind(j,ql),this.error=j.error.bind(j,ql),this.hls=q,this.config=q.config,this.registerListeners()}return Object(s.a)(ve,[{key:"destroy",value:function(){this.unregisterListeners(),this.onMediaDetached();var L=this.config;L.requestMediaKeySystemAccessFunc=null,L.licenseXhrSetup=L.licenseResponseCallback=void 0,L.drmSystems=L.drmSystemOptions={},this.hls=this.onMediaEncrypted=this.onWaitingForKey=this.keyIdToKeySessionPromise=null,this.config=null}},{key:"registerListeners",value:function(){this.hls.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(w.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(w.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(w.MANIFEST_LOADED,this.onManifestLoaded,this)}},{key:"unregisterListeners",value:function(){this.hls.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(w.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(w.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(w.MANIFEST_LOADED,this.onManifestLoaded,this)}},{key:"getLicenseServerUrl",value:function(L){var K=this.config,H=K.drmSystems,Z=K.widevineLicenseUrl,re=H[L];if(re)return re.licenseUrl;if(L===he.WIDEVINE&&Z)return Z;throw new Error('no license server URL configured for key-system "'.concat(L,'"'))}},{key:"getServerCertificateUrl",value:function(L){var K=this.config.drmSystems,H=K[L];if(H)return H.serverCertificateUrl;this.log('No Server Certificate in config.drmSystems["'.concat(L,'"]'))}},{key:"attemptKeySystemAccess",value:function(L){var K=this,H=this.hls.levels,Z=function(Ge,lt,dt){return!!Ge&&dt.indexOf(Ge)===lt},re=H.map(function(Te){return Te.audioCodec}).filter(Z),Ae=H.map(function(Te){return Te.videoCodec}).filter(Z);return re.length+Ae.length===0&&Ae.push("avc1.42e01e"),new Promise(function(Te,Ge){var lt=function dt(Kt){var Er=Kt.shift();K.getMediaKeysPromise(Er,re,Ae).then(function(br){return Te({keySystem:Er,mediaKeys:br})}).catch(function(br){Kt.length?dt(Kt):br instanceof ll?Ge(br):Ge(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_NO_ACCESS,error:br,fatal:!0},br.message))})};lt(L)})}},{key:"requestMediaKeySystemAccess",value:function(L,K){var H=this.config.requestMediaKeySystemAccessFunc;if(!(typeof H=="function")){var Z="Configured requestMediaKeySystemAccess is not a function ".concat(H);return Ee===null&&self.location.protocol==="http:"&&(Z="navigator.requestMediaKeySystemAccess is not available over insecure protocol ".concat(location.protocol)),Promise.reject(new Error(Z))}return H(L,K)}},{key:"getMediaKeysPromise",value:function(L,K,H){var Z=this,re=de(L,K,H,this.config.drmSystemOptions),Ae=this.keySystemAccessPromises[L],Te=Ae==null?void 0:Ae.keySystemAccess;if(!Te){this.log('Requesting encrypted media "'.concat(L,'" key-system access with config: ').concat(JSON.stringify(re))),Te=this.requestMediaKeySystemAccess(L,re);var Ge=this.keySystemAccessPromises[L]={keySystemAccess:Te};return Te.catch(function(lt){Z.log('Failed to obtain access to key-system "'.concat(L,'": ').concat(lt))}),Te.then(function(lt){Z.log('Access for key-system "'.concat(lt.keySystem,'" obtained'));var dt=Z.fetchServerCertificate(L);return Z.log('Create media-keys for "'.concat(L,'"')),Ge.mediaKeys=lt.createMediaKeys().then(function(Kt){return Z.log('Media-keys created for "'.concat(L,'"')),dt.then(function(Er){return Er?Z.setMediaKeysServerCertificate(Kt,L,Er):Kt})}),Ge.mediaKeys.catch(function(Kt){Z.error('Failed to create media-keys for "'.concat(L,'"}: ').concat(Kt))}),Ge.mediaKeys})}return Te.then(function(){return Ae.mediaKeys})}},{key:"createMediaKeySessionContext",value:function(L){var K=L.decryptdata,H=L.keySystem,Z=L.mediaKeys;this.log('Creating key-system session "'.concat(H,'" keyId: ').concat(ft.hexDump(K.keyId||[])));var re=Z.createSession(),Ae={decryptdata:K,keySystem:H,mediaKeys:Z,mediaKeysSession:re,keyStatus:"status-pending"};return this.mediaKeySessions.push(Ae),Ae}},{key:"renewKeySession",value:function(L){var K=L.decryptdata;if(K.pssh){var H=this.createMediaKeySessionContext(L),Z=this.getKeyIdString(K),re="cenc";this.keyIdToKeySessionPromise[Z]=this.generateRequestWithPreferredKeySession(H,re,K.pssh,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(L)}},{key:"getKeyIdString",value:function(L){if(!L)throw new Error("Could not read keyId of undefined decryptdata");if(L.keyId===null)throw new Error("keyId is null");return ft.hexDump(L.keyId)}},{key:"updateKeySession",value:function(L,K){var H,Z=L.mediaKeysSession;return this.log('Updating key-session "'.concat(Z.sessionId,'" for keyID ').concat(ft.hexDump(((H=L.decryptdata)==null?void 0:H.keyId)||[]),`
|
|
|
} (data length: `).concat(K&&K.byteLength,")")),Z.update(K)}},{key:"selectKeySystemFormat",value:function(L){var K=Object.keys(L.levelkeys||{});return this.keyFormatPromise||(this.log("Selecting key-system from fragment (sn: ".concat(L.sn," ").concat(L.type,": ").concat(L.level,") key formats ").concat(K.join(", "))),this.keyFormatPromise=this.getKeyFormatPromise(K)),this.keyFormatPromise}},{key:"getKeyFormatPromise",value:function(L){var K=this;return new Promise(function(H,Z){var re=Ne(K.config),Ae=L.map(Y).filter(function(Te){return!!Te&&re.indexOf(Te)!==-1});return K.getKeySystemSelectionPromise(Ae).then(function(Te){var Ge=Te.keySystem,lt=we(Ge);lt?H(lt):Z(new Error('Unable to find format for key-system "'.concat(Ge,'"')))}).catch(Z)})}},{key:"loadKey",value:function(L){var K=this,H=L.keyInfo.decryptdata,Z=this.getKeyIdString(H),re="(keyId: ".concat(Z,' format: "').concat(H.keyFormat,'" method: ').concat(H.method," uri: ").concat(H.uri,")");this.log("Starting session for key ".concat(re));var Ae=this.keyIdToKeySessionPromise[Z];return Ae||(Ae=this.keyIdToKeySessionPromise[Z]=this.getKeySystemForKeyPromise(H).then(function(Te){var Ge=Te.keySystem,lt=Te.mediaKeys;return K.throwIfDestroyed(),K.log("Handle encrypted media sn: ".concat(L.frag.sn," ").concat(L.frag.type,": ").concat(L.frag.level," using key ").concat(re)),K.attemptSetMediaKeys(Ge,lt).then(function(){K.throwIfDestroyed();var dt=K.createMediaKeySessionContext({keySystem:Ge,mediaKeys:lt,decryptdata:H}),Kt="cenc";return K.generateRequestWithPreferredKeySession(dt,Kt,H.pssh,"playlist-key")})}),Ae.catch(function(Te){return K.handleError(Te)})),Ae}},{key:"throwIfDestroyed",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Invalid state";if(!this.hls)throw new Error("invalid state")}},{key:"handleError",value:function(L){if(!this.hls)return;this.error(L.message),L instanceof ll?this.hls.trigger(w.ERROR,L.data):this.hls.trigger(w.ERROR,{type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_NO_KEYS,error:L,fatal:!0})}},{key:"getKeySystemForKeyPromise",value:function(L){var K=this.getKeyIdString(L),H=this.keyIdToKeySessionPromise[K];if(!H){var Z=Y(L.keyFormat),re=Z?[Z]:Ne(this.config);return this.attemptKeySystemAccess(re)}return H}},{key:"getKeySystemSelectionPromise",value:function(L){if(L.length||(L=Ne(this.config)),L.length===0)throw new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},"Missing key-system license configuration options ".concat(JSON.stringify({drmSystems:this.config.drmSystems})));return this.attemptKeySystemAccess(L)}},{key:"_onMediaEncrypted",value:function(L){var K=this,H=L.initDataType,Z=L.initData;if(this.debug('"'.concat(L.type,'" event: init data type: "').concat(H,'"')),Z===null)return;var re,Ae;if(H==="sinf"&&this.config.drmSystems[he.FAIRPLAY]){var Te=vr(new Uint8Array(Z));try{var Ge=We(JSON.parse(Te).sinf),lt=Xn(new Uint8Array(Ge));if(!lt)return;re=lt.subarray(8,24),Ae=he.FAIRPLAY}catch(Gn){this.warn('Failed to parse sinf "encrypted" event message initData');return}}else{var dt=Zn(Z);if(dt===null)return;dt.version===0&&dt.systemId===$.WIDEVINE&&dt.data&&(re=dt.data.subarray(8,24)),Ae=fe(dt.systemId)}if(!Ae||!re)return;for(var Kt=ft.hexDump(re),Er=this.keyIdToKeySessionPromise,br=this.mediaKeySessions,jr=Er[Kt],Kr=function(){var bi=br[In],ua=bi.decryptdata;if(ua.pssh||!ua.keyId)return"continue";var Xi=ft.hexDump(ua.keyId);if(Kt===Xi||ua.uri.replace(/-/g,"").indexOf(Kt)!==-1)return jr=Er[Xi],delete Er[Xi],ua.pssh=new Uint8Array(Z),ua.keyId=re,jr=Er[Kt]=jr.then(function(){return K.generateRequestWithPreferredKeySession(bi,H,Z,"encrypted-event-key-match")}),"break"},In=0;In<br.length;In++){var kn=Kr();if(kn==="continue")continue;if(kn==="break")break}jr||(jr=Er[Kt]=this.getKeySystemSelectionPromise([Ae]).then(function(Gn){var bi=Gn.keySystem,ua=Gn.mediaKeys,Xi;K.throwIfDestroyed();var ta=new ur("ISO-23001-7",Kt,(Xi=we(bi))!=null?Xi:"");return ta.pssh=new Uint8Array(Z),ta.keyId=re,K.attemptSetMediaKeys(bi,ua).then(function(){K.throwIfDestroyed();var Pa=K.createMediaKeySessionContext({decryptdata:ta,keySystem:bi,mediaKeys:ua});return K.generateRequestWithPreferredKeySession(Pa,H,Z,"encrypted-event-no-match")})})),jr.catch(function(Gn){return K.handleError(Gn)})}},{key:"_onWaitingForKey",value:function(L){this.log('"'.concat(L.type,'" event'))}},{key:"attemptSetMediaKeys",value:function(L,K){var H=this,Z=this.setMediaKeysQueue.slice();this.log('Setting media-keys for "'.concat(L,'"'));var re=Promise.all(Z).then(function(){if(!H.media)throw new Error("Attempted to set mediaKeys without media element attached");return H.media.setMediaKeys(K)});return this.setMediaKeysQueue.push(re),re.then(function(){H.log('Media-keys set for "'.concat(L,'"')),Z.push(re),H.setMediaKeysQueue=H.setMediaKeysQueue.filter(function(Ae){return Z.indexOf(Ae)===-1})})}},{key:"generateRequestWithPreferredKeySession",value:function(L,K,H,Z){var re=this,Ae,Te,Ge=(Ae=this.config.drmSystems)==null||(Te=Ae[L.keySystem])==null?void 0:Te.generateRequest;if(Ge)try{var lt=Ge.call(this.hls,K,H,L);if(!lt)throw new Error("Invalid response from configured generateRequest filter");K=lt.initDataType,H=L.decryptdata.pssh=lt.initData?new Uint8Array(lt.initData):null}catch(jr){var dt;if(this.warn(jr.message),(dt=this.hls)!=null&&dt.config.debug)throw jr}if(H===null)return this.log('Skipping key-session request for "'.concat(Z,'" (no initData)')),Promise.resolve(L);var Kt=this.getKeyIdString(L.decryptdata);this.log('Generating key-session request for "'.concat(Z,'": ').concat(Kt," (init data type: ").concat(K," length: ").concat(H?H.byteLength:null,")"));var Er=new ds;L.mediaKeysSession.onmessage=function(jr){var Kr=L.mediaKeysSession;if(!Kr){Er.emit("error",new Error("invalid state"));return}var In=jr.messageType,kn=jr.message;re.log('"'.concat(In,'" message event for session "').concat(Kr.sessionId,'" message size: ').concat(kn.byteLength)),In==="license-request"||In==="license-renewal"?re.renewLicense(L,kn).catch(function(Gn){re.handleError(Gn),Er.emit("error",Gn)}):In==="license-release"?L.keySystem===he.FAIRPLAY&&(re.updateKeySession(L,st("acknowledged")),re.removeSession(L)):re.warn('unhandled media key message type "'.concat(In,'"'))},L.mediaKeysSession.onkeystatuseschange=function(jr){var Kr=L.mediaKeysSession;if(!Kr){Er.emit("error",new Error("invalid state"));return}re.onKeyStatusChange(L);var In=L.keyStatus;Er.emit("keyStatus",In),In==="expired"&&(re.warn("".concat(L.keySystem," expired for key ").concat(Kt)),re.renewKeySession(L))};var br=new Promise(function(jr,Kr){Er.on("error",Kr),Er.on("keyStatus",function(In){In.startsWith("usable")?jr():In==="output-restricted"?Kr(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):In==="internal-error"?Kr(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},'key status changed to "'.concat(In,'"'))):In==="expired"?Kr(new Error("key expired while generating request")):re.warn('unhandled key status change "'.concat(In,'"'))})});return L.mediaKeysSession.generateRequest(K,H).then(function(){var jr;re.log('Request generated for key-session "'.concat((jr=L.mediaKeysSession)==null?void 0:jr.sessionId,'" keyId: ').concat(Kt))}).catch(function(jr){throw new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_NO_SESSION,error:jr,fatal:!1},"Error generating key-session request: ".concat(jr))}).then(function(){return br}).catch(function(jr){throw Er.removeAllListeners(),re.removeSession(L),jr}).then(function(){return Er.removeAllListeners(),L})}},{key:"onKeyStatusChange",value:function(L){var K=this;L.mediaKeysSession.keyStatuses.forEach(function(H,Z){K.log('key status change "'.concat(H,'" for keyStatuses keyId: ').concat(ft.hexDump("buffer"in Z?new Uint8Array(Z.buffer,Z.byteOffset,Z.byteLength):new Uint8Array(Z))," session keyId: ").concat(ft.hexDump(new Uint8Array(L.decryptdata.keyId||[]))," uri: ").concat(L.decryptdata.uri)),L.keyStatus=H})}},{key:"fetchServerCertificate",value:function(L){var K=this.config,H=K.loader,Z=new H(K),re=this.getServerCertificateUrl(L);return re?(this.log('Fetching serverCertificate for "'.concat(L,'"')),new Promise(function(Ae,Te){var Ge={responseType:"arraybuffer",url:re},lt=K.certLoadPolicy.default,dt={loadPolicy:lt,timeout:lt.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Kt={onSuccess:function(br,jr,Kr,In){Ae(br.data)},onError:function(br,jr,Kr,In){Te(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:Kr,response:b({url:Ge.url,data:void 0},br)},'"'.concat(L,'" certificate request failed (').concat(re,"). Status: ").concat(br.code," (").concat(br.text,")")))},onTimeout:function(br,jr,Kr){Te(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:Kr,response:{url:Ge.url,data:void 0}},'"'.concat(L,'" certificate request timed out (').concat(re,")")))},onAbort:function(br,jr,Kr){Te(new Error("aborted"))}};Z.load(Ge,dt,Kt)})):Promise.resolve()}},{key:"setMediaKeysServerCertificate",value:function(L,K,H){var Z=this;return new Promise(function(re,Ae){L.setServerCertificate(H).then(function(Te){Z.log("setServerCertificate ".concat(Te?"success":"not supported by CDM"," (").concat(H==null?void 0:H.byteLength,') on "').concat(K,'"')),re(L)}).catch(function(Te){Ae(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:Te,fatal:!0},Te.message))})})}},{key:"renewLicense",value:function(L,K){var H=this;return this.requestLicense(L,new Uint8Array(K)).then(function(Z){return H.updateKeySession(L,new Uint8Array(Z)).catch(function(re){throw new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:re,fatal:!0},re.message)})})}},{key:"setupLicenseXHR",value:function(L,K,H,Z){var re=this,Ae=this.config.licenseXhrSetup;return Ae?Promise.resolve().then(function(){if(!H.decryptdata)throw new Error("Key removed");return Ae.call(re.hls,L,K,H,Z)}).catch(function(Te){if(!H.decryptdata)throw Te;return L.open("POST",K,!0),Ae.call(re.hls,L,K,H,Z)}).then(function(Te){L.readyState||L.open("POST",K,!0);var Ge=Te||Z;return{xhr:L,licenseChallenge:Ge}}):(L.open("POST",K,!0),Promise.resolve({xhr:L,licenseChallenge:Z}))}},{key:"requestLicense",value:function(L,K){var H=this,Z=this.config.keyLoadPolicy.default;return new Promise(function(re,Ae){var Te=H.getLicenseServerUrl(L.keySystem);H.log("Sending license request to URL: ".concat(Te));var Ge=new XMLHttpRequest;Ge.responseType="arraybuffer",Ge.onreadystatechange=function(){if(!H.hls||!L.mediaKeysSession)return Ae(new Error("invalid state"));if(Ge.readyState===4)if(Ge.status===200){H._requestLicenseFailureCount=0;var lt=Ge.response;H.log("License received ".concat(lt instanceof ArrayBuffer?lt.byteLength:lt));var dt=H.config.licenseResponseCallback;if(dt)try{lt=dt.call(H.hls,Ge,Te,L)}catch(jr){H.error(jr)}re(lt)}else{var Kt=Z.errorRetry,Er=Kt?Kt.maxNumRetry:0;if(H._requestLicenseFailureCount++,H._requestLicenseFailureCount>Er||Ge.status>=400&&Ge.status<500)Ae(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:Ge,response:{url:Te,data:void 0,code:Ge.status,text:Ge.statusText}},"License Request XHR failed (".concat(Te,"). Status: ").concat(Ge.status," (").concat(Ge.statusText,")")));else{var br=Er-H._requestLicenseFailureCount+1;H.warn("Retrying license request, ".concat(br," attempts left")),H.requestLicense(L,K).then(re,Ae)}}},L.licenseXhr&&L.licenseXhr.readyState!==XMLHttpRequest.DONE&&L.licenseXhr.abort(),L.licenseXhr=Ge,H.setupLicenseXHR(Ge,Te,L,K).then(function(lt){var dt=lt.xhr,Kt=lt.licenseChallenge;dt.send(Kt)})})}},{key:"onMediaAttached",value:function(L,K){if(!this.config.emeEnabled)return;var H=K.media;this.media=H,H.addEventListener("encrypted",this.onMediaEncrypted),H.addEventListener("waitingforkey",this.onWaitingForKey)}},{key:"onMediaDetached",value:function(){var L=this,K=this.media,H=this.mediaKeySessions;K&&(K.removeEventListener("encrypted",this.onMediaEncrypted),K.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},ur.clearKeyUriToKeyIdMap();var Z=H.length;ve.CDMCleanupPromise=Promise.all(H.map(function(re){return L.removeSession(re)}).concat(K==null?void 0:K.setMediaKeys(null).catch(function(re){L.log("Could not clear media keys: ".concat(re,". media.src: ").concat(K==null?void 0:K.src))}))).then(function(){Z&&(L.log("finished closing key sessions and clearing media keys"),H.length=0)}).catch(function(re){L.log("Could not close sessions and clear media keys: ".concat(re,". media.src: ").concat(K==null?void 0:K.src))})}},{key:"onManifestLoading",value:function(){this.keyFormatPromise=null}},{key:"onManifestLoaded",value:function(L,K){var H=K.sessionKeys;if(!H||!this.config.emeEnabled)return;if(!this.keyFormatPromise){var Z=H.reduce(function(re,Ae){return re.indexOf(Ae.keyFormat)===-1&&re.push(Ae.keyFormat),re},[]);this.log("Selecting key-system from session-keys ".concat(Z.join(", "))),this.keyFormatPromise=this.getKeyFormatPromise(Z)}}},{key:"removeSession",value:function(L){var K=this,H=L.mediaKeysSession,Z=L.licenseXhr;if(H){this.log("Remove licenses and keys and close session ".concat(H.sessionId)),H.onmessage=null,H.onkeystatuseschange=null,Z&&Z.readyState!==XMLHttpRequest.DONE&&Z.abort(),L.mediaKeysSession=L.decryptdata=L.licenseXhr=void 0;var re=this.mediaKeySessions.indexOf(L);return re>-1&&this.mediaKeySessions.splice(re,1),H.remove().catch(function(Ae){K.log("Could not remove session: ".concat(Ae))}).then(function(){return H.close()}).catch(function(Ae){K.log("Could not close session: ".concat(Ae))})}}}]),ve}();Cl.CDMCleanupPromise=void 0;var ll=function(ve){Object(o.a)(L,ve);var q=Object(e.a)(L);function L(K,H){var Z;return Object(r.a)(this,L),Z=q.call(this,H),Z.data=void 0,K.error||(K.error=new Error(H)),Z.data=K,K.err=K.error,Z}return Object(s.a)(L)}(i(Error)),Hl=1,Sl={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},Su="h",vu=function(){function ve(q){var L=this;Object(r.a)(this,ve),this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){L.initialized&&(L.starved=!0),L.buffering=!0},this.onPlaying=function(){L.initialized||(L.initialized=!0),L.buffering=!1},this.applyPlaylistData=function(Z){try{L.apply(Z,{ot:Sl.MANIFEST,su:!L.initialized})}catch(re){j.warn("Could not generate manifest CMCD data.",re)}},this.applyFragmentData=function(Z){try{var re=Z.frag,Ae=L.hls.levels[re.level],Te=L.getObjectType(re),Ge={d:re.duration*1e3,ot:Te};(Te===Sl.VIDEO||Te===Sl.AUDIO||Te==Sl.MUXED)&&(Ge.br=Ae.bitrate/1e3,Ge.tb=L.getTopBandwidth(Te)/1e3,Ge.bl=L.getBufferLength(Te)),L.apply(Z,Ge)}catch(lt){j.warn("Could not generate segment CMCD data.",lt)}},this.hls=q;var K=this.config=q.config,H=K.cmcd;H!=null&&(K.pLoader=this.createPlaylistLoader(),K.fLoader=this.createFragmentLoader(),this.sid=H.sessionId||ve.uuid(),this.cid=H.contentId,this.useHeaders=H.useHeaders===!0,this.registerListeners())}return Object(s.a)(ve,[{key:"registerListeners",value:function(){var L=this.hls;L.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),L.on(w.MEDIA_DETACHED,this.onMediaDetached,this),L.on(w.BUFFER_CREATED,this.onBufferCreated,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),L.off(w.MEDIA_DETACHED,this.onMediaDetached,this),L.off(w.BUFFER_CREATED,this.onBufferCreated,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null}},{key:"onMediaAttached",value:function(L,K){this.media=K.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}},{key:"onMediaDetached",value:function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null}},{key:"onBufferCreated",value:function(L,K){var H,Z;this.audioBuffer=(H=K.tracks.audio)==null?void 0:H.buffer,this.videoBuffer=(Z=K.tracks.video)==null?void 0:Z.buffer}},{key:"createData",value:function(){var L;return{v:Hl,sf:Su,sid:this.sid,cid:this.cid,pr:(L=this.media)==null?void 0:L.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}},{key:"apply",value:function(L){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E(K,this.createData());var H=K.ot===Sl.INIT||K.ot===Sl.VIDEO||K.ot===Sl.MUXED;if(this.starved&&H&&(K.bs=!0,K.su=!0,this.starved=!1),K.su==null&&(K.su=this.buffering),this.useHeaders){var Z=ve.toHeaders(K);if(!Object.keys(Z).length)return;L.headers||(L.headers={}),E(L.headers,Z)}else{var re=ve.toQuery(K);if(!re)return;L.url=ve.appendQueryToUri(L.url,re)}}},{key:"getObjectType",value:function(L){var K=L.type;return K==="subtitle"?Sl.TIMED_TEXT:L.sn==="initSegment"?Sl.INIT:K==="audio"?Sl.AUDIO:K==="main"?this.hls.audioTracks.length?Sl.VIDEO:Sl.MUXED:void 0}},{key:"getTopBandwidth",value:function(L){var K=0,H,Z=this.hls;if(L===Sl.AUDIO)H=Z.audioTracks;else{var re=Z.maxAutoLevel,Ae=re>-1?re+1:Z.levels.length;H=Z.levels.slice(0,Ae)}var Te=Object(p.a)(H),Ge;try{for(Te.s();!(Ge=Te.n()).done;){var lt=Ge.value;lt.bitrate>K&&(K=lt.bitrate)}}catch(dt){Te.e(dt)}finally{Te.f()}return K>0?K:NaN}},{key:"getBufferLength",value:function(L){var K=this.hls.media,H=L===Sl.AUDIO?this.audioBuffer:this.videoBuffer;if(!H||!K)return NaN;var Z=Ci.bufferInfo(H,K.currentTime,this.config.maxBufferHole);return Z.len*1e3}},{key:"createPlaylistLoader",value:function(){var L=this.config.pLoader,K=this.applyPlaylistData,H=L||this.config.loader;return function(){function Z(re){Object(r.a)(this,Z),this.loader=void 0,this.loader=new H(re)}return Object(s.a)(Z,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}},{key:"destroy",value:function(){this.loader.destroy()}},{key:"abort",value:function(){this.loader.abort()}},{key:"load",value:function(Ae,Te,Ge){K(Ae),this.loader.load(Ae,Te,Ge)}}]),Z}()}},{key:"createFragmentLoader",value:function(){var L=this.config.fLoader,K=this.applyFragmentData,H=L||this.config.loader;return function(){function Z(re){Object(r.a)(this,Z),this.loader=void 0,this.loader=new H(re)}return Object(s.a)(Z,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}},{key:"destroy",value:function(){this.loader.destroy()}},{key:"abort",value:function(){this.loader.abort()}},{key:"load",value:function(Ae,Te,Ge){K(Ae),this.loader.load(Ae,Te,Ge)}}]),Z}()}}],[{key:"uuid",value:function(){var L=URL.createObjectURL(new Blob),K=L.toString();return URL.revokeObjectURL(L),K.slice(K.lastIndexOf("/")+1)}},{key:"serialize",value:function(L){var K=[],H=function(kn){return!Number.isNaN(kn)&&kn!=null&&kn!==""&&kn!==!1},Z=function(kn){return Math.round(kn)},re=function(kn){return Z(kn/100)*100},Ae=function(kn){return encodeURIComponent(kn)},Te={br:Z,d:Z,bl:re,dl:re,mtp:re,nor:Ae,rtp:re,tb:Z},Ge=Object.keys(L||{}).sort(),lt=Object(p.a)(Ge),dt;try{for(lt.s();!(dt=lt.n()).done;){var Kt=dt.value,Er=L[Kt];if(!H(Er))continue;if(Kt==="v"&&Er===1)continue;if(Kt=="pr"&&Er===1)continue;var br=Te[Kt];br&&(Er=br(Er));var jr=typeof Er,Kr=void 0;Kt==="ot"||Kt==="sf"||Kt==="st"?Kr="".concat(Kt,"=").concat(Er):jr==="boolean"?Kr=Kt:jr==="number"?Kr="".concat(Kt,"=").concat(Er):Kr="".concat(Kt,"=").concat(JSON.stringify(Er)),K.push(Kr)}}catch(In){lt.e(In)}finally{lt.f()}return K.join(",")}},{key:"toHeaders",value:function(L){for(var K=Object.keys(L),H={},Z=["Object","Request","Session","Status"],re=[{},{},{},{}],Ae={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},Te=0,Ge=K;Te<Ge.length;Te++){var lt=Ge[Te],dt=Ae[lt]!=null?Ae[lt]:1;re[dt][lt]=L[lt]}for(var Kt=0;Kt<re.length;Kt++){var Er=ve.serialize(re[Kt]);Er&&(H["CMCD-".concat(Z[Kt])]=Er)}return H}},{key:"toQuery",value:function(L){return"CMCD=".concat(encodeURIComponent(ve.serialize(L)))}},{key:"appendQueryToUri",value:function(L,K){if(!K)return L;var H=L.includes("?")?"&":"?";return"".concat(L).concat(H).concat(K)}}]),ve}(),Au=3e5,Ol=function(){function ve(q){Object(r.a)(this,ve),this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=q,this.log=j.log.bind(j,"[content-steering]:"),this.registerListeners()}return Object(s.a)(ve,[{key:"registerListeners",value:function(){var L=this.hls;L.on(w.MANIFEST_LOADING,this.onManifestLoading,this),L.on(w.MANIFEST_LOADED,this.onManifestLoaded,this),L.on(w.MANIFEST_PARSED,this.onManifestParsed,this),L.on(w.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;if(!L)return;L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.MANIFEST_LOADED,this.onManifestLoaded,this),L.off(w.MANIFEST_PARSED,this.onManifestParsed,this),L.off(w.ERROR,this.onError,this)}},{key:"startLoad",value:function(){if(this.started=!0,self.clearTimeout(this.reloadTimer),this.enabled&&this.uri)if(this.updated){var L=Math.max(this.timeToLoad*1e3-(performance.now()-this.updated),0);this.scheduleRefresh(this.uri,L)}else this.loadSteeringManifest(this.uri)}},{key:"stopLoad",value:function(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),self.clearTimeout(this.reloadTimer)}},{key:"destroy",value:function(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}},{key:"removeLevel",value:function(L){var K=this.levels;K&&(this.levels=K.filter(function(H){return H!==L}))}},{key:"onManifestLoading",value:function(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}},{key:"onManifestLoaded",value:function(L,K){var H=K.contentSteering;if(H===null)return;this.pathwayId=H.pathwayId,this.uri=H.uri,this.started&&this.startLoad()}},{key:"onManifestParsed",value:function(L,K){this.audioTracks=K.audioTracks,this.subtitleTracks=K.subtitleTracks}},{key:"onError",value:function(L,K){var H=K.errorAction;if((H==null?void 0:H.action)===aa.SendAlternateToPenaltyBox&&H.flags===Or.MoveAllAlternatesMatchingHost){var Z=this.pathwayPriority,re=this.pathwayId;this.penalizedPathways[re]||(this.penalizedPathways[re]=performance.now()),!Z&&this.levels&&(Z=this.levels.reduce(function(Ae,Te){return Ae.indexOf(Te.pathwayId)===-1&&Ae.push(Te.pathwayId),Ae},[])),Z&&Z.length>1&&(this.updatePathwayPriority(Z),H.resolved=this.pathwayId!==re)}}},{key:"filterParsedLevels",value:function(L){this.levels=L;var K=this.getLevelsForPathway(this.pathwayId);if(K.length===0){var H=L[0].pathwayId;this.log("No levels found in Pathway ".concat(this.pathwayId,'. Setting initial Pathway to "').concat(H,'"')),K=this.getLevelsForPathway(H),this.pathwayId=H}return K.length!==L.length?(this.log("Found ".concat(K.length,"/").concat(L.length,' levels in Pathway "').concat(this.pathwayId,'"')),K):L}},{key:"getLevelsForPathway",value:function(L){return this.levels===null?[]:this.levels.filter(function(K){return L===K.pathwayId})}},{key:"updatePathwayPriority",value:function(L){this.pathwayPriority=L;var K,H=this.penalizedPathways,Z=performance.now();Object.keys(H).forEach(function(dt){Z-H[dt]>Au&&delete H[dt]});for(var re=0;re<L.length;re++){var Ae=L[re];if(H[Ae])continue;if(Ae===this.pathwayId)return;var Te=this.hls.nextLoadLevel,Ge=this.hls.levels[Te];if(K=this.getLevelsForPathway(Ae),K.length>0){this.log('Setting Pathway to "'.concat(Ae,'"')),this.pathwayId=Ae,this.hls.trigger(w.LEVELS_UPDATED,{levels:K});var lt=this.hls.levels[Te];Ge&<&&this.levels&&(lt.attrs["STABLE-VARIANT-ID"]!==Ge.attrs["STABLE-VARIANT-ID"]&<.bitrate!==Ge.bitrate&&this.log("Unstable Pathways change from bitrate ".concat(Ge.bitrate," to ").concat(lt.bitrate)),this.hls.nextLoadLevel=Te);break}}}},{key:"clonePathways",value:function(L){var K=this,H=this.levels;if(!H)return;var Z={},re={};L.forEach(function(Ae){var Te=Ae.ID,Ge=Ae["BASE-ID"],lt=Ae["URI-REPLACEMENT"];if(H.some(function(Kt){return Kt.pathwayId===Te}))return;var dt=K.getLevelsForPathway(Ge).map(function(Kt){var Er=E({},Kt);Er.details=void 0,Er.url=du(Kt.uri,Kt.attrs["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",lt);var br=new V(Kt.attrs);br["PATHWAY-ID"]=Te;var jr=br.AUDIO&&"".concat(br.AUDIO,"_clone_").concat(Te),Kr=br.SUBTITLES&&"".concat(br.SUBTITLES,"_clone_").concat(Te);jr&&(Z[br.AUDIO]=jr,br.AUDIO=jr),Kr&&(re[br.SUBTITLES]=Kr,br.SUBTITLES=Kr),Er.attrs=br;var In=new Ot(Er);return on(In,"audio",jr),on(In,"text",Kr),In});H.push.apply(H,Object(y.a)(dt)),cu(K.audioTracks,Z,lt,Te),cu(K.subtitleTracks,re,lt,Te)})}},{key:"loadSteeringManifest",value:function(L){var K=this,H=this.hls.config,Z=H.loader;this.loader&&this.loader.destroy(),this.loader=new Z(H);var re;try{re=new self.URL(L)}catch(Er){this.enabled=!1,this.log("Failed to parse Steering Manifest URI: ".concat(L));return}if(re.protocol!=="data:"){var Ae=(this.hls.bandwidthEstimate||H.abrEwmaDefaultEstimate)|0;re.searchParams.set("_HLS_pathway",this.pathwayId),re.searchParams.set("_HLS_throughput",""+Ae)}var Te={responseType:"json",url:re.href},Ge=H.steeringManifestLoadPolicy.default,lt=Ge.errorRetry||Ge.timeoutRetry||{},dt={loadPolicy:Ge,timeout:Ge.maxLoadTimeMs,maxRetry:lt.maxNumRetry||0,retryDelay:lt.retryDelayMs||0,maxRetryDelay:lt.maxRetryDelayMs||0},Kt={onSuccess:function(br,jr,Kr,In){K.log('Loaded steering manifest: "'.concat(re,'"'));var kn=br.data;if(kn.VERSION!==1){K.log("Steering VERSION ".concat(kn.VERSION," not supported!"));return}K.updated=performance.now(),K.timeToLoad=kn.TTL;var Gn=kn["RELOAD-URI"],bi=kn["PATHWAY-CLONES"],ua=kn["PATHWAY-PRIORITY"];if(Gn)try{K.uri=new self.URL(Gn,re).href}catch(Xi){K.enabled=!1,K.log("Failed to parse Steering Manifest RELOAD-URI: ".concat(Gn));return}K.scheduleRefresh(K.uri||Kr.url),bi&&K.clonePathways(bi),ua&&K.updatePathwayPriority(ua)},onError:function(br,jr,Kr,In){if(K.log("Error loading steering manifest: ".concat(br.code," ").concat(br.text," (").concat(jr.url,")")),K.stopLoad(),br.code===410){K.enabled=!1,K.log("Steering manifest ".concat(jr.url," no longer available"));return}var kn=K.timeToLoad*1e3;if(br.code===429){var Gn=K.loader;if(typeof(Gn==null?void 0:Gn.getResponseHeader)=="function"){var bi=Gn.getResponseHeader("Retry-After");bi&&(kn=parseFloat(bi)*1e3)}K.log("Steering manifest ".concat(jr.url," rate limited"));return}K.scheduleRefresh(K.uri||jr.url,kn)},onTimeout:function(br,jr,Kr){K.log("Timeout loading steering manifest (".concat(jr.url,")")),K.scheduleRefresh(K.uri||jr.url)}};this.log("Requesting steering manifest: ".concat(re)),this.loader.load(Te,dt,Kt)}},{key:"scheduleRefresh",value:function(L){var K=this,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.timeToLoad*1e3;self.clearTimeout(this.reloadTimer),this.reloadTimer=self.setTimeout(function(){K.loadSteeringManifest(L)},H)}}]),ve}();function cu(ve,q,L,K){if(!ve)return;Object.keys(q).forEach(function(H){var Z=ve.filter(function(re){return re.groupId===H}).map(function(re){var Ae=E({},re);return Ae.details=void 0,Ae.attrs=new V(Ae.attrs),Ae.url=Ae.attrs.URI=du(re.url,re.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",L),Ae.groupId=Ae.attrs["GROUP-ID"]=q[H],Ae.attrs["PATHWAY-ID"]=K,Ae});ve.push.apply(ve,Object(y.a)(Z))})}function du(ve,q,L,K){var H=K.HOST,Z=K.PARAMS,re=K[L],Ae;q&&(Ae=re==null?void 0:re[q],Ae&&(ve=Ae));var Te=new self.URL(ve);return H&&!Ae&&(Te.host=H),Z&&Object.keys(Z).sort().forEach(function(Ge){Ge&&Te.searchParams.set(Ge,Z[Ge])}),Te.href}var Lu=/^age:\s*[\d.]+\s*$/im,zl=function(){function ve(q){Object(r.a)(this,ve),this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=q&&q.xhrSetup||null,this.stats=new ce,this.retryDelay=0}return Object(s.a)(ve,[{key:"destroy",value:function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null}},{key:"abortInternal",value:function(){var L=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),L&&(L.onreadystatechange=null,L.onprogress=null,L.readyState!==4&&(this.stats.aborted=!0,L.abort()))}},{key:"abort",value:function(){var L;this.abortInternal(),(L=this.callbacks)!=null&&L.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}},{key:"load",value:function(L,K,H){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=L,this.config=K,this.callbacks=H,this.loadInternal()}},{key:"loadInternal",value:function(){var L=this,K=this.config,H=this.context;if(!K)return;var Z=this.loader=new self.XMLHttpRequest,re=this.stats;re.loading.first=0,re.loaded=0;var Ae=this.xhrSetup;Ae?Promise.resolve().then(function(){return L.stats.aborted?void 0:Ae(Z,H.url)}).catch(function(Te){return Z.open("GET",H.url,!0),Ae(Z,H.url)}).then(function(){if(L.stats.aborted)return;L.openAndSendXhr(Z,H,K)}).catch(function(Te){L.callbacks.onError({code:Z.status,text:Te.message},H,Z,re);return}):this.openAndSendXhr(Z,H,K)}},{key:"openAndSendXhr",value:function(L,K,H){L.readyState||L.open("GET",K.url,!0);var Z=this.context.headers,re=H.loadPolicy,Ae=re.maxTimeToFirstByteMs,Te=re.maxLoadTimeMs;if(Z)for(var Ge in Z)L.setRequestHeader(Ge,Z[Ge]);K.rangeEnd&&L.setRequestHeader("Range","bytes="+K.rangeStart+"-"+(K.rangeEnd-1)),L.onreadystatechange=this.readystatechange.bind(this),L.onprogress=this.loadprogress.bind(this),L.responseType=K.responseType,self.clearTimeout(this.requestTimeout),H.timeout=Ae&&T(Ae)?Ae:Te,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),H.timeout),L.send()}},{key:"readystatechange",value:function(){var L=this.context,K=this.loader,H=this.stats;if(!L||!K)return;var Z=K.readyState,re=this.config;if(H.aborted)return;if(Z>=2&&(H.loading.first===0&&(H.loading.first=Math.max(self.performance.now(),H.loading.start),re.timeout!==re.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),re.timeout=re.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),re.loadPolicy.maxLoadTimeMs-(H.loading.first-H.loading.start)))),Z===4)){self.clearTimeout(this.requestTimeout),K.onreadystatechange=null,K.onprogress=null;var Ae=K.status,Te=K.responseType!=="text";if(Ae>=200&&Ae<300&&(Te&&K.response||K.responseText!==null)){H.loading.end=Math.max(self.performance.now(),H.loading.first);var Ge=Te?K.response:K.responseText,lt=K.responseType==="arraybuffer"?Ge.byteLength:Ge.length;if(H.loaded=H.total=lt,H.bwEstimate=H.total*8e3/(H.loading.end-H.loading.first),!this.callbacks)return;var dt=this.callbacks.onProgress;if(dt&&dt(H,L,Ge,K),!this.callbacks)return;var Kt={url:K.responseURL,data:Ge,code:Ae};this.callbacks.onSuccess(Kt,H,L,K)}else{var Er=re.loadPolicy.errorRetry,br=H.retry;oa(Er,br,!1,Ae)?this.retry(Er):(j.error("".concat(Ae," while loading ").concat(L.url)),this.callbacks.onError({code:Ae,text:K.statusText},L,K,H))}}}},{key:"loadtimeout",value:function(){var L,K=(L=this.config)==null?void 0:L.loadPolicy.timeoutRetry,H=this.stats.retry;if(oa(K,H,!0))this.retry(K);else{j.warn("timeout while loading ".concat(this.context.url));var Z=this.callbacks;Z&&(this.abortInternal(),Z.onTimeout(this.stats,this.context,this.loader))}}},{key:"retry",value:function(L){var K=this.context,H=this.stats;this.retryDelay=Ni(L,H.retry),H.retry++,j.warn("".concat(status?"HTTP Status "+status:"Timeout"," while loading ").concat(K.url,", retrying ").concat(H.retry,"/").concat(L.maxNumRetry," in ").concat(this.retryDelay,"ms")),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}},{key:"loadprogress",value:function(L){var K=this.stats;K.loaded=L.loaded,L.lengthComputable&&(K.total=L.total)}},{key:"getCacheAge",value:function(){var L=null;if(this.loader&&Lu.test(this.loader.getAllResponseHeaders())){var K=this.loader.getResponseHeader("age");L=K?parseFloat(K):null}return L}},{key:"getResponseHeader",value:function(L){return this.loader&&new RegExp("^".concat(L,":\\s*[\\d.]+\\s*$"),"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(L):null}}]),ve}();function ru(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(ve){}return!1}var ou=/(\d+)-(\d+)\/(\d+)/,su=function(){function ve(q){Object(r.a)(this,ve),this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=void 0,this.response=void 0,this.controller=void 0,this.context=void 0,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=q.fetchSetup||Zl,this.controller=new self.AbortController,this.stats=new ce}return Object(s.a)(ve,[{key:"destroy",value:function(){this.loader=this.callbacks=null,this.abortInternal()}},{key:"abortInternal",value:function(){var L=this.response;L!=null&&L.ok||(this.stats.aborted=!0,this.controller.abort())}},{key:"abort",value:function(){var L;this.abortInternal(),(L=this.callbacks)!=null&&L.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}},{key:"load",value:function(L,K,H){var Z=this,re=this.stats;if(re.loading.start)throw new Error("Loader can only be used once.");re.loading.start=self.performance.now();var Ae=Jl(L,this.controller.signal),Te=H.onProgress,Ge=L.responseType==="arraybuffer",lt=Ge?"byteLength":"length",dt=K.loadPolicy,Kt=dt.maxTimeToFirstByteMs,Er=dt.maxLoadTimeMs;this.context=L,this.config=K,this.callbacks=H,this.request=this.fetchSetup(L,Ae),self.clearTimeout(this.requestTimeout),K.timeout=Kt&&T(Kt)?Kt:Er,this.requestTimeout=self.setTimeout(function(){Z.abortInternal(),H.onTimeout(re,L,Z.response)},K.timeout),self.fetch(this.request).then(function(br){Z.response=Z.loader=br;var jr=Math.max(self.performance.now(),re.loading.start);if(self.clearTimeout(Z.requestTimeout),K.timeout=Er,Z.requestTimeout=self.setTimeout(function(){Z.abortInternal(),H.onTimeout(re,L,Z.response)},Er-(jr-re.loading.start)),!br.ok){var Kr=br.status,In=br.statusText;throw new yu(In||"fetch, bad network response",Kr,br)}return re.loading.first=jr,re.total=Ru(br.headers)||re.total,Te&&T(K.highWaterMark)?Z.loadProgressively(br,re,L,K.highWaterMark,Te):Ge?br.arrayBuffer():L.responseType==="json"?br.json():br.text()}).then(function(br){var jr=Z.response;self.clearTimeout(Z.requestTimeout),re.loading.end=Math.max(self.performance.now(),re.loading.first);var Kr=br[lt];Kr&&(re.loaded=re.total=Kr);var In={url:jr.url,data:br,code:jr.status};Te&&!T(K.highWaterMark)&&Te(re,L,br,jr),H.onSuccess(In,re,L,jr)}).catch(function(br){if(self.clearTimeout(Z.requestTimeout),re.aborted)return;var jr=br&&br.code||0,Kr=br?br.message:null;H.onError({code:jr,text:Kr},L,br?br.details:null,re)})}},{key:"getCacheAge",value:function(){var L=null;if(this.response){var K=this.response.headers.get("age");L=K?parseFloat(K):null}return L}},{key:"getResponseHeader",value:function(L){return this.response?this.response.headers.get(L):null}},{key:"loadProgressively",value:function(L,K,H){var Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,re=arguments.length>4?arguments[4]:void 0,Ae=new Ft,Te=L.body.getReader(),Ge=function lt(){return Te.read().then(function(dt){if(dt.done)return Ae.dataLength&&re(K,H,Ae.flush(),L),Promise.resolve(new ArrayBuffer(0));var Kt=dt.value,Er=Kt.length;return K.loaded+=Er,Er<Z||Ae.dataLength?(Ae.push(Kt),Ae.dataLength>=Z&&re(K,H,Ae.flush(),L)):re(K,H,Kt,L),lt()}).catch(function(){return Promise.reject()})};return Ge()}}]),ve}();function Jl(ve,q){var L={method:"GET",mode:"cors",credentials:"same-origin",signal:q,headers:new self.Headers(E({},ve.headers))};return ve.rangeEnd&&L.headers.set("Range","bytes="+ve.rangeStart+"-"+String(ve.rangeEnd-1)),L}function Du(ve){var q=ou.exec(ve);if(q)return parseInt(q[2])-parseInt(q[1])+1}function Ru(ve){var q=ve.get("Content-Range");if(q){var L=Du(q);if(T(L))return L}var K=ve.get("Content-Length");if(K)return parseInt(K)}function Zl(ve,q){return new self.Request(ve.url,q)}var yu=function(ve){Object(o.a)(L,ve);var q=Object(e.a)(L);function L(K,H,Z){var re;return Object(r.a)(this,L),re=q.call(this,K),re.code=void 0,re.details=void 0,re.code=H,re.details=Z,re}return Object(s.a)(L)}(i(Error)),xu=/\s/,bu={newCue:function(q,L,K,H){for(var Z=[],re,Ae,Te,Ge,lt,dt=self.VTTCue||self.TextTrackCue,Kt=0;Kt<H.rows.length;Kt++)if(re=H.rows[Kt],Te=!0,Ge=0,lt="",!re.isEmpty()){for(var Er,br=0;br<re.chars.length;br++)xu.test(re.chars[br].uchar)&&Te?Ge++:(lt+=re.chars[br].uchar,Te=!1);re.cueStartTime=L,L===K&&(K+=1e-4),Ge>=16?Ge--:Ge++;var jr=jo(lt.trim()),Kr=Is(L,K,jr);q!=null&&(Er=q.cues)!=null&&Er.getCueById(Kr)||(Ae=new dt(L,K,jr),Ae.id=Kr,Ae.line=Kt+1,Ae.align="left",Ae.position=10+Math.min(80,Math.floor(Ge*8/32)*10),Z.push(Ae))}return q&&Z.length&&(Z.sort(function(In,kn){return In.line==="auto"||kn.line==="auto"?0:In.line>8&&kn.line>8?kn.line-In.line:In.line-kn.line}),Z.forEach(function(In){return mr(q,In)})),Z}},hl={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},Dl=b(b({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:Infinity,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:Infinity,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:zl,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:go,bufferController:wi,capLevelController:mu,errorController:wr,fpsController:gu,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:Ee,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,certLoadPolicy:{default:hl},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:Infinity,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},nu()),{},{subtitleStreamController:Je,subtitleTrackController:tr,timelineController:$l,audioStreamController:di,audioTrackController:It,emeController:Cl,cmcdController:vu,contentSteeringController:Ol});function nu(){return{cueHandler:bu,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function Nu(ve,q){if((q.liveSyncDurationCount||q.liveMaxLatencyDurationCount)&&(q.liveSyncDuration||q.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(q.liveMaxLatencyDurationCount!==void 0&&(q.liveSyncDurationCount===void 0||q.liveMaxLatencyDurationCount<=q.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(q.liveMaxLatencyDuration!==void 0&&(q.liveSyncDuration===void 0||q.liveMaxLatencyDuration<=q.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');var L=hu(ve),K=["manifest","level","frag"],H=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return K.forEach(function(Z){var re="".concat(Z==="level"?"playlist":Z,"LoadPolicy"),Ae=q[re]===void 0,Te=[];H.forEach(function(Ge){var lt="".concat(Z,"Loading").concat(Ge),dt=q[lt];if(dt!==void 0&&Ae){Te.push(lt);var Kt=L[re].default;q[re]={default:Kt};switch(Ge){case"TimeOut":Kt.maxLoadTimeMs=dt,Kt.maxTimeToFirstByteMs=dt;break;case"MaxRetry":Kt.errorRetry.maxNumRetry=dt,Kt.timeoutRetry.maxNumRetry=dt;break;case"RetryDelay":Kt.errorRetry.retryDelayMs=dt,Kt.timeoutRetry.retryDelayMs=dt;break;case"MaxRetryTimeout":Kt.errorRetry.maxRetryDelayMs=dt,Kt.timeoutRetry.maxRetryDelayMs=dt;break}}}),Te.length&&j.warn('hls.js config: "'.concat(Te.join('", "'),'" setting(s) are deprecated, use "').concat(re,'": ').concat(JSON.stringify(q[re])))}),b(b({},L),q)}function hu(ve){return ve&&typeof ve=="object"?Array.isArray(ve)?ve.map(hu):Object.keys(ve).reduce(function(q,L){return q[L]=hu(ve[L]),q},{}):ve}function fu(ve){var q=ve.loader;if(q!==su&&q!==zl)j.log("[config]: Custom loader detected, cannot enable progressive streaming"),ve.progressive=!1;else{var L=ru();L&&(ve.loader=su,ve.progressive=!0,ve.enableSoftwareAES=!0,j.log("[config]: Progressive streaming enabled, using FetchLoader"))}}var iu=function(){function ve(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Object(r.a)(this,ve),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new ds,this._autoLevelCapping=void 0,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,B(q.debug||!1,"Hls instance");var L=this.config=Nu(ve.DefaultConfig,q);this.userConfig=q,this._autoLevelCapping=-1,L.progressive&&fu(L);var K=L.abrController,H=L.bufferController,Z=L.capLevelController,re=L.errorController,Ae=L.fpsController,Te=new re(this),Ge=this.abrController=new K(this),lt=this.bufferController=new H(this),dt=this.capLevelController=new Z(this),Kt=new Ae(this),Er=new Xr(this),br=new zn(this),jr=L.contentSteeringController,Kr=jr?new jr(this):null,In=this.levelController=new Wr(this,Kr),kn=new Cr(this),Gn=new fi(this.config),bi=this.streamController=new No(this,kn,Gn);dt.setStreamController(bi),Kt.setStreamController(bi);var ua=[Er,In,bi];Kr&&ua.splice(1,0,Kr),this.networkControllers=ua;var Xi=[Ge,lt,dt,Kt,br,kn];this.audioTrackController=this.createController(L.audioTrackController,ua);var ta=L.audioStreamController;ta&&ua.push(new ta(this,kn,Gn)),this.subtitleTrackController=this.createController(L.subtitleTrackController,ua);var Pa=L.subtitleStreamController;Pa&&ua.push(new Pa(this,kn,Gn)),this.createController(L.timelineController,Xi),Gn.emeController=this.emeController=this.createController(L.emeController,Xi),this.cmcdController=this.createController(L.cmcdController,Xi),this.latencyController=this.createController(Ht,Xi),this.coreComponents=Xi,ua.push(Te);var Ya=Te.onErrorOut;typeof Ya=="function"&&this.on(w.ERROR,Ya,Te)}return Object(s.a)(ve,[{key:"createController",value:function(L,K){if(L){var H=new L(this);return K&&K.push(H),H}return null}},{key:"on",value:function(L,K){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this;this._emitter.on(L,K,H)}},{key:"once",value:function(L,K){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this;this._emitter.once(L,K,H)}},{key:"removeAllListeners",value:function(L){this._emitter.removeAllListeners(L)}},{key:"off",value:function(L,K){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this,Z=arguments.length>3?arguments[3]:void 0;this._emitter.off(L,K,H,Z)}},{key:"listeners",value:function(L){return this._emitter.listeners(L)}},{key:"emit",value:function(L,K,H){return this._emitter.emit(L,K,H)}},{key:"trigger",value:function(L,K){if(this.config.debug)return this.emit(L,L,K);try{return this.emit(L,L,K)}catch(H){j.error("An internal error happened while handling event "+L+'. Error message: "'+H.message+'". Here is a stacktrace:',H),this.trigger(w.ERROR,{type:O.OTHER_ERROR,details:I.INTERNAL_EXCEPTION,fatal:!1,event:L,error:H})}return!1}},{key:"listenerCount",value:function(L){return this._emitter.listenerCount(L)}},{key:"destroy",value:function(){j.log("destroy"),this.trigger(w.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(K){return K.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(K){return K.destroy()}),this.coreComponents.length=0;var L=this.config;L.xhrSetup=L.fetchSetup=void 0,this.userConfig=null}},{key:"attachMedia",value:function(L){j.log("attachMedia"),this._media=L,this.trigger(w.MEDIA_ATTACHING,{media:L})}},{key:"detachMedia",value:function(){j.log("detachMedia"),this.trigger(w.MEDIA_DETACHING,void 0),this._media=null}},{key:"loadSource",value:function(L){this.stopLoad();var K=this.media,H=this.url,Z=this.url=g.buildAbsoluteURL(self.location.href,L,{alwaysNormalize:!0});j.log("loadSource:".concat(Z)),K&&H&&(H!==Z||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(K)),this.trigger(w.MANIFEST_LOADING,{url:L})}},{key:"startLoad",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;j.log("startLoad(".concat(L,")")),this.networkControllers.forEach(function(K){K.startLoad(L)})}},{key:"stopLoad",value:function(){j.log("stopLoad"),this.networkControllers.forEach(function(L){L.stopLoad()})}},{key:"swapAudioCodec",value:function(){j.log("swapAudioCodec"),this.streamController.swapAudioCodec()}},{key:"recoverMediaError",value:function(){j.log("recoverMediaError");var L=this._media;this.detachMedia(),L&&this.attachMedia(L)}},{key:"removeLevel",value:function(L){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.levelController.removeLevel(L,K)}},{key:"levels",get:function(){var L=this.levelController.levels;return L||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(L){j.log("set currentLevel:".concat(L)),this.loadLevel=L,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(L){j.log("set nextLevel:".concat(L)),this.levelController.manualLevel=L,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(L){j.log("set loadLevel:".concat(L)),this.levelController.manualLevel=L}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(L){this.levelController.nextLoadLevel=L}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(L){j.log("set firstLevel:".concat(L)),this.levelController.firstLevel=L}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(L){j.log("set startLevel:".concat(L)),L!==-1&&(L=Math.max(L,this.minAutoLevel)),this.levelController.startLevel=L}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(L){var K=!!L;K!==this.config.capLevelToPlayerSize&&(K?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=K)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(L){this._autoLevelCapping!==L&&(j.log("set autoLevelCapping:".concat(L)),this._autoLevelCapping=L)}},{key:"bandwidthEstimate",get:function(){var L=this.abrController.bwEstimator;return L?L.getEstimate():NaN}},{key:"ttfbEstimate",get:function(){var L=this.abrController.bwEstimator;return L?L.getEstimateTTFB():NaN}},{key:"maxHdcpLevel",get:function(){return this._maxHdcpLevel},set:function(L){Tt.indexOf(L)>-1&&(this._maxHdcpLevel=L)}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var L=this.levels,K=this.config.minAutoBitrate;if(!L)return 0;for(var H=L.length,Z=0;Z<H;Z++)if(L[Z].maxBitrate>=K)return Z;return 0}},{key:"maxAutoLevel",get:function(){var L=this.levels,K=this.autoLevelCapping,H=this.maxHdcpLevel,Z;if(K===-1&&L&&L.length?Z=L.length-1:Z=K,H)for(var re=Z;re--;){var Ae=L[re].attrs["HDCP-LEVEL"];if(Ae&&Ae<=H)return re}return Z}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(L){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,L)}},{key:"playingDate",get:function(){return this.streamController.currentProgramDateTime}},{key:"mainForwardBufferInfo",get:function(){return this.streamController.getMainFwdBufferInfo()}},{key:"audioTracks",get:function(){var L=this.audioTrackController;return L?L.audioTracks:[]}},{key:"audioTrack",get:function(){var L=this.audioTrackController;return L?L.audioTrack:-1},set:function(L){var K=this.audioTrackController;K&&(K.audioTrack=L)}},{key:"subtitleTracks",get:function(){var L=this.subtitleTrackController;return L?L.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var L=this.subtitleTrackController;return L?L.subtitleTrack:-1},set:function(L){var K=this.subtitleTrackController;K&&(K.subtitleTrack=L)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var L=this.subtitleTrackController;return L?L.subtitleDisplay:!1},set:function(L){var K=this.subtitleTrackController;K&&(K.subtitleDisplay=L)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(L){this.config.lowLatencyMode=L}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.4.3"}},{key:"isSupported",value:function(){return Qo()}},{key:"Events",get:function(){return w}},{key:"ErrorTypes",get:function(){return O}},{key:"ErrorDetails",get:function(){return I}},{key:"DefaultConfig",get:function(){return ve.defaultConfig?ve.defaultConfig:Dl},set:function(L){ve.defaultConfig=L}}]),ve}();iu.defaultConfig=void 0},pl8g:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("E/ki")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="ClockCircleOutlined";var i=A.forwardRef(a);D.default=i},pmaE:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("IwbS"),A=n("DEFe"),m="__seriesMapHighDown",f="__seriesMapCallKey",h=y.extendChartView({type:"map",render:function(i,t,o,e){if(e&&e.type==="mapToggleSelect"&&e.from===this.uid)return;var l=this.group;if(l.removeAll(),i.getHostGeoModel())return;if(e&&e.type==="geoRoam"&&e.componentType==="series"&&e.seriesId===i.id){var r=this._mapDraw;r&&l.add(r.group)}else if(i.needsDrawMap){var r=this._mapDraw||new A(o,!0);l.add(r.group),r.draw(i,t,o,this,e),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;i.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(i,t,o)},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(i,t,o){var e=i.originalData,l=this.group;e.each(e.mapDimension("value"),function(r,s){if(isNaN(r))return;var c=e.getItemLayout(s);if(!c||!c.point)return;var d=c.point,g=c.offset,v=new x.Circle({style:{fill:i.getData().getVisual("color")},shape:{cx:d[0]+g*9,cy:d[1],r:3},silent:!0,z2:8+(g?0:x.Z2_EMPHASIS_LIFT+1)});if(!g){var b=i.mainSeries.getData(),S=e.getName(s),E=b.indexOfName(S),C=e.getItemModel(s),_=C.getModel("label"),T=C.getModel("emphasis.label"),w=b.getItemGraphicEl(E),O=p.retrieve2(i.getFormattedLabel(E,"normal"),S),I=p.retrieve2(i.getFormattedLabel(E,"emphasis"),O),R=w[m],M=Math.random();if(!R){R=w[m]={};var F=p.curry(u,!0),P=p.curry(u,!1);w.on("mouseover",F).on("mouseout",P).on("emphasis",F).on("normal",P)}w[f]=M,p.extend(R,{recordVersion:M,circle:v,labelModel:_,hoverLabelModel:T,emphasisText:I,normalText:O}),a(R,!1)}l.add(v)})}});function u(i){var t=this[m];t&&t.recordVersion===this[f]&&a(t,i)}function a(i,t){var o=i.circle,e=i.labelModel,l=i.hoverLabelModel,r=i.emphasisText,s=i.normalText;t?(o.style.extendFrom(x.setTextStyle({},l,{text:l.get("show")?r:null},{isRectText:!0,useInsideStyle:!1},!0)),o.__mapOriginalZ2=o.z2,o.z2+=x.Z2_EMPHASIS_LIFT):(x.setTextStyle(o.style,e,{text:e.get("show")?s:null,textPosition:e.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),o.dirty(!1),o.__mapOriginalZ2!=null&&(o.z2=o.__mapOriginalZ2,o.__mapOriginalZ2=null))}k.exports=h},pwpV:function(k,D,n){},pzxd:function(k,D,n){var y=n("bYtY"),p=y.retrieve2,x=y.retrieve3,A=y.each,m=y.normalizeCssArray,f=y.isString,h=y.isObject,u=n("6GrX"),a=n("VpOo"),i=n("Xnb7"),t=n("fW2E"),o=n("gut8"),e=o.ContextCachedBy,l=o.WILL_BE_RESTORED,r=u.DEFAULT_FONT,s={left:1,right:1,center:1},c={top:1,bottom:1,middle:1},d=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],g={},v={};function b(V){return S(V),A(V.rich,S),V}function S(V){if(V){V.font=u.makeFont(V);var Q=V.textAlign;Q==="middle"&&(Q="center"),V.textAlign=Q==null||s[Q]?Q:"left";var G=V.textVerticalAlign||V.textBaseline;G==="center"&&(G="middle"),V.textVerticalAlign=G==null||c[G]?G:"top";var ee=V.textPadding;ee&&(V.textPadding=m(V.textPadding))}}function E(V,Q,G,ee,ce,be){ee.rich?_(V,Q,G,ee,ce,be):C(V,Q,G,ee,ce,be)}function C(V,Q,G,ee,ce,be){"use strict";var le=I(ee),Ie,ke=!1,Re=Q.__attrCachedBy===e.PLAIN_TEXT;be!==l?(be&&(Ie=be.style,ke=!le&&Re&&Ie),Q.__attrCachedBy=le?e.NONE:e.PLAIN_TEXT):Re&&(Q.__attrCachedBy=e.NONE);var Qe=ee.font||r;(!ke||Qe!==(Ie.font||r))&&(Q.font=Qe);var We=V.__computedFont;V.__styleFont!==Qe&&(V.__styleFont=Qe,We=V.__computedFont=Q.font);var ot=ee.textPadding,Oe=ee.textLineHeight,oe=V.__textCotentBlock;(!oe||V.__dirtyText)&&(oe=V.__textCotentBlock=u.parsePlainText(G,We,ot,Oe,ee.truncate));var st=oe.outerHeight,he=oe.lines,J=oe.lineHeight,Y=F(v,V,ee,ce),$=Y.baseX,fe=Y.baseY,we=Y.textAlign||"left",Ne=Y.textVerticalAlign;w(Q,ee,ce,$,fe);var Ee=u.adjustTextY(fe,st,Ne),de=$,me=Ee;if(le||ot){var Le=u.getWidth(G,We),tt=Le;ot&&(tt+=ot[1]+ot[3]);var At=u.adjustTextX($,tt,we);le&&R(V,Q,ee,At,Ee,tt,st),ot&&(de=W($,we,ot),me+=ot[0])}Q.textAlign=we,Q.textBaseline="middle",Q.globalAlpha=ee.opacity||1;for(var ht=0;ht<d.length;ht++){var Ke=d[ht],Jt=Ke[0],ct=Ke[1],Gt=ee[Jt];(!ke||Gt!==Ie[Jt])&&(Q[ct]=t(Q,ct,Gt||Ke[2]))}me+=J/2;var dr=ee.textStrokeWidth,zt=ke?Ie.textStrokeWidth:null,kt=!ke||dr!==zt,Vt=!ke||kt||ee.textStroke!==Ie.textStroke,Xe=X(ee.textStroke,dr),pe=B(ee.textFill);if(Xe&&(kt&&(Q.lineWidth=dr),Vt&&(Q.strokeStyle=Xe)),pe&&((!ke||ee.textFill!==Ie.textFill)&&(Q.fillStyle=pe)),he.length===1)Xe&&Q.strokeText(he[0],de,me),pe&&Q.fillText(he[0],de,me);else for(var ht=0;ht<he.length;ht++)Xe&&Q.strokeText(he[ht],de,me),pe&&Q.fillText(he[ht],de,me),me+=J}function _(V,Q,G,ee,ce,be){be!==l&&(Q.__attrCachedBy=e.NONE);var le=V.__textCotentBlock;(!le||V.__dirtyText)&&(le=V.__textCotentBlock=u.parseRichText(G,ee)),T(V,Q,le,ee,ce)}function T(V,Q,G,ee,ce){var be=G.width,le=G.outerWidth,Ie=G.outerHeight,ke=ee.textPadding,Re=F(v,V,ee,ce),Qe=Re.baseX,We=Re.baseY,ot=Re.textAlign,Oe=Re.textVerticalAlign;w(Q,ee,ce,Qe,We);var oe=u.adjustTextX(Qe,le,ot),st=u.adjustTextY(We,Ie,Oe),he=oe,J=st;ke&&(he+=ke[3],J+=ke[0]);var Y=he+be;I(ee)&&R(V,Q,ee,oe,st,le,Ie);for(var $=0;$<G.lines.length;$++){for(var fe=G.lines[$],we=fe.tokens,Ne=we.length,Ee=fe.lineHeight,de=fe.width,me=0,Le=he,tt=Y,At=Ne-1,ht;me<Ne&&(ht=we[me],!ht.textAlign||ht.textAlign==="left");)O(V,Q,ht,ee,Ee,J,Le,"left"),de-=ht.width,Le+=ht.width,me++;for(;At>=0&&(ht=we[At],ht.textAlign==="right");)O(V,Q,ht,ee,Ee,J,tt,"right"),de-=ht.width,tt-=ht.width,At--;for(Le+=(be-(Le-he)-(Y-tt)-de)/2;me<=At;)ht=we[me],O(V,Q,ht,ee,Ee,J,Le+ht.width/2,"center"),Le+=ht.width,me++;J+=Ee}}function w(V,Q,G,ee,ce){if(G&&Q.textRotation){var be=Q.textOrigin;be==="center"?(ee=G.width/2+G.x,ce=G.height/2+G.y):be&&(ee=be[0]+G.x,ce=be[1]+G.y),V.translate(ee,ce),V.rotate(-Q.textRotation),V.translate(-ee,-ce)}}function O(V,Q,G,ee,ce,be,le,Ie){var ke=ee.rich[G.styleName]||{};ke.text=G.text;var Re=G.textVerticalAlign,Qe=be+ce/2;Re==="top"?Qe=be+G.height/2:Re==="bottom"&&(Qe=be+ce-G.height/2),!G.isLineHolder&&I(ke)&&R(V,Q,ke,Ie==="right"?le-G.width:Ie==="center"?le-G.width/2:le,Qe-G.height/2,G.width,G.height);var We=G.textPadding;We&&(le=W(le,Ie,We),Qe-=G.height/2-We[2]-G.textHeight/2),P(Q,"shadowBlur",x(ke.textShadowBlur,ee.textShadowBlur,0)),P(Q,"shadowColor",ke.textShadowColor||ee.textShadowColor||"transparent"),P(Q,"shadowOffsetX",x(ke.textShadowOffsetX,ee.textShadowOffsetX,0)),P(Q,"shadowOffsetY",x(ke.textShadowOffsetY,ee.textShadowOffsetY,0)),P(Q,"textAlign",Ie),P(Q,"textBaseline","middle"),P(Q,"font",G.font||r);var ot=X(ke.textStroke||ee.textStroke,oe),Oe=B(ke.textFill||ee.textFill),oe=p(ke.textStrokeWidth,ee.textStrokeWidth);ot&&(P(Q,"lineWidth",oe),P(Q,"strokeStyle",ot),Q.strokeText(G.text,le,Qe)),Oe&&(P(Q,"fillStyle",Oe),Q.fillText(G.text,le,Qe))}function I(V){return!!(V.textBackgroundColor||V.textBorderWidth&&V.textBorderColor)}function R(V,Q,G,ee,ce,be,le){var Ie=G.textBackgroundColor,ke=G.textBorderWidth,Re=G.textBorderColor,Qe=f(Ie);if(P(Q,"shadowBlur",G.textBoxShadowBlur||0),P(Q,"shadowColor",G.textBoxShadowColor||"transparent"),P(Q,"shadowOffsetX",G.textBoxShadowOffsetX||0),P(Q,"shadowOffsetY",G.textBoxShadowOffsetY||0),Qe||ke&&Re){Q.beginPath();var We=G.textBorderRadius;We?a.buildPath(Q,{x:ee,y:ce,width:be,height:le,r:We}):Q.rect(ee,ce,be,le),Q.closePath()}if(Qe)if(P(Q,"fillStyle",Ie),G.fillOpacity!=null){var ot=Q.globalAlpha;Q.globalAlpha=G.fillOpacity*G.opacity,Q.fill(),Q.globalAlpha=ot}else Q.fill();else if(h(Ie)){var Oe=Ie.image;Oe=i.createOrUpdateImage(Oe,null,V,M,Ie),Oe&&i.isImageReady(Oe)&&Q.drawImage(Oe,ee,ce,be,le)}if(ke&&Re)if(P(Q,"lineWidth",ke),P(Q,"strokeStyle",Re),G.strokeOpacity!=null){var ot=Q.globalAlpha;Q.globalAlpha=G.strokeOpacity*G.opacity,Q.stroke(),Q.globalAlpha=ot}else Q.stroke()}function M(V,Q){Q.image=V}function F(V,Q,G,ee){var ce=G.x||0,be=G.y||0,le=G.textAlign,Ie=G.textVerticalAlign;if(ee){var ke=G.textPosition;if(ke instanceof Array)ce=ee.x+j(ke[0],ee.width),be=ee.y+j(ke[1],ee.height);else{var Re=Q&&Q.calculateTextPosition?Q.calculateTextPosition(g,G,ee):u.calculateTextPosition(g,G,ee);ce=Re.x,be=Re.y,le=le||Re.textAlign,Ie=Ie||Re.textVerticalAlign}var Qe=G.textOffset;Qe&&(ce+=Qe[0],be+=Qe[1])}return V=V||{},V.baseX=ce,V.baseY=be,V.textAlign=le,V.textVerticalAlign=Ie,V}function P(V,Q,G){return V[Q]=t(V,Q,G),V[Q]}function X(V,Q){return V==null||Q<=0||V==="transparent"||V==="none"?null:V.image||V.colorStops?"#000":V}function B(V){return V==null||V==="none"?null:V.image||V.colorStops?"#000":V}function j(V,Q){return typeof V=="string"?V.lastIndexOf("%")>=0?parseFloat(V)/100*Q:parseFloat(V):V}function W(V,Q,G){return Q==="right"?V-G[1]:Q==="center"?V+G[3]/2-G[1]/2:V+G[3]}function z(V,Q){return V!=null&&(V||Q.textBackgroundColor||Q.textBorderWidth&&Q.textBorderColor||Q.textPadding)}D.normalizeTextStyle=b,D.renderText=E,D.getBoxPosition=F,D.getStroke=X,D.getFill=B,D.parsePercent=j,D.needDrawText=z},"q/+u":function(k,D,n){var y=n("ProS"),p=n("9wZj"),x=n("yWXo"),A=n("h8O9");y.extendChartView({type:"scatter",render:function(m,f,h){var u=m.getData(),a=this._updateSymbolDraw(u,m);a.updateData(u,{clipShape:this._getClipShape(m)}),this._finished=!0},incrementalPrepareRender:function(m,f,h){var u=m.getData(),a=this._updateSymbolDraw(u,m);a.incrementalPrepareUpdate(u),this._finished=!1},incrementalRender:function(m,f,h){this._symbolDraw.incrementalUpdate(m,f.getData(),{clipShape:this._getClipShape(f)}),this._finished=m.end===f.getData().count()},updateTransform:function(m,f,h){var u=m.getData();if(this.group.dirty(),!this._finished||u.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var a=A().reset(m);a.progress&&a.progress({start:0,end:u.count()},u),this._symbolDraw.updateLayout(u)},_getClipShape:function(m){var f=m.coordinateSystem,h=f&&f.getArea&&f.getArea();return m.get("clip",!0)?h:null},_updateSymbolDraw:function(m,f){var h=this._symbolDraw,u=f.pipelineContext,a=u.large;return(!h||a!==this._isLargeDraw)&&(h&&h.remove(),h=this._symbolDraw=a?new x:new p,this._isLargeDraw=a,this.group.removeAll()),this.group.add(h.group),h},remove:function(m,f){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},q3GZ:function(k,D){var n=["lineStyle","normal","opacity"],y={seriesType:"parallel",reset:function(p,x,A){var m=p.getModel("itemStyle"),f=p.getModel("lineStyle"),h=x.get("color"),u=f.get("color")||m.get("color")||h[p.seriesIndex%h.length],a=p.get("inactiveOpacity"),i=p.get("activeOpacity"),t=p.getModel("lineStyle").getLineStyle(),o=p.coordinateSystem,e=p.getData(),l={normal:t.opacity,active:i,inactive:a};e.setVisual("color",u);function r(s,c){o.eachActiveState(c,function(d,g){var v=l[d];if(d==="normal"&&c.hasItemOption){var b=c.getItemModel(g).get(n,!0);b!=null&&(v=b)}c.setItemVisual(g,"opacity",v)},s.start,s.end)}return{progress:r}}};k.exports=y},q3R3:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("s2MQ")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="EyeInvisibleOutlined";var i=A.forwardRef(a);D.default=i},q4HE:function(k,D){var n="\\ud800-\\udfff",y="\\u0300-\\u036f",p="\\ufe20-\\ufe2f",x="\\u20d0-\\u20ff",A=y+p+x,m="\\ufe0e\\ufe0f",f="["+n+"]",h="["+A+"]",u="\\ud83c[\\udffb-\\udfff]",a="(?:"+h+"|"+u+")",i="[^"+n+"]",t="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",e="\\u200d",l=a+"?",r="["+m+"]?",s="(?:"+e+"(?:"+[i,t,o].join("|")+")"+r+l+")*",c=r+l+s,d="(?:"+[i+h+"?",h,t,o,f].join("|")+")",g=RegExp(u+"(?="+u+")|"+d+c,"g");function v(b){for(var S=g.lastIndex=0;g.test(b);)++S;return S}k.exports=v},q7KB:function(k,D,n){},qBft:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("OLod"))})(this,function(y){return y.pad.AnsiX923={pad:function(x,A){var m=x.sigBytes,f=A*4,h=f-m%f,u=m+h-1;x.clamp(),x.words[u>>>2]|=h<<24-u%4*8,x.sigBytes+=h},unpad:function(x){var A=x.words[x.sigBytes-1>>>2]&255;x.sigBytes-=A}},y.pad.Ansix923})},qD15:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("tVnJ"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},qH13:function(k,D,n){var y=n("ItGF"),p=n("QBsz"),x=p.applyTransform,A=n("mFDi"),m=n("Qe9p"),f=n("6GrX"),h=n("pzxd"),u=n("ni6a"),a=n("Gev7"),i=n("Dagg"),t=n("dqUG"),o=n("y+Vt"),e=n("IMiH"),l=n("QuXc"),r=n("06Qe"),s=e.CMD,c=Math.round,d=Math.sqrt,g=Math.abs,v=Math.cos,b=Math.sin,S=Math.max;if(!y.canvasSupported){var E=",",C="progid:DXImageTransform.Microsoft",_=21600,T=_/2,w=1e5,O=1e3,I=function(fe){fe.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",fe.coordsize=_+","+_,fe.coordorigin="0,0"},R=function(fe){return String(fe).replace(/&/g,"&").replace(/"/g,""")},M=function(fe,we,Ne){return"rgb("+[fe,we,Ne].join(",")+")"},F=function(fe,we){we&&fe&&we.parentNode!==fe&&fe.appendChild(we)},P=function(fe,we){we&&fe&&we.parentNode===fe&&fe.removeChild(we)},X=function(fe,we,Ne){return(parseFloat(fe)||0)*w+(parseFloat(we)||0)*O+Ne},B=h.parsePercent,j=function(fe,we,Ne){var Ee=m.parse(we);Ne=+Ne,isNaN(Ne)&&(Ne=1),Ee&&(fe.color=M(Ee[0],Ee[1],Ee[2]),fe.opacity=Ne*Ee[3])},W=function(fe){var we=m.parse(fe);return[M(we[0],we[1],we[2]),we[3]]},z=function(fe,we,Ne){var Ee=we.fill;if(Ee!=null)if(Ee instanceof l){var de,me=0,Le=[0,0],tt=0,At=1,ht=Ne.getBoundingRect(),Ke=ht.width,Jt=ht.height;if(Ee.type==="linear"){de="gradient";var ct=Ne.transform,Gt=[Ee.x*Ke,Ee.y*Jt],dr=[Ee.x2*Ke,Ee.y2*Jt];ct&&(x(Gt,Gt,ct),x(dr,dr,ct));var zt=dr[0]-Gt[0],kt=dr[1]-Gt[1];me=Math.atan2(zt,kt)*180/Math.PI,me<0&&(me+=360),me<1e-6&&(me=0)}else{de="gradientradial";var Gt=[Ee.x*Ke,Ee.y*Jt],ct=Ne.transform,Vt=Ne.scale,Xe=Ke,pe=Jt;Le=[(Gt[0]-ht.x)/Xe,(Gt[1]-ht.y)/pe],ct&&x(Gt,Gt,ct),Xe/=Vt[0]*_,pe/=Vt[1]*_;var te=S(Xe,pe);tt=2*0/te,At=2*Ee.r/te-tt}var $e=Ee.colorStops.slice();$e.sort(function(lr,Wt){return lr.offset-Wt.offset});for(var He=$e.length,ae=[],ft=[],Mt=0;Mt<He;Mt++){var mt=$e[Mt],or=W(mt.color);ft.push(mt.offset*At+tt+" "+or[0]),(Mt===0||Mt===He-1)&&ae.push(or)}if(He>=2){var vr=ae[0][0],fn=ae[1][0],sr=ae[0][1]*we.opacity,Ir=ae[1][1]*we.opacity;fe.type=de,fe.method="none",fe.focus="100%",fe.angle=me,fe.color=vr,fe.color2=fn,fe.colors=ft.join(","),fe.opacity=Ir,fe.opacity2=sr}de==="radial"&&(fe.focusposition=Le.join(","))}else j(fe,Ee,we.opacity)},V=function(fe,we){we.lineDash&&(fe.dashstyle=we.lineDash.join(" ")),we.stroke!=null&&!(we.stroke instanceof l)&&j(fe,we.stroke,we.opacity)},Q=function(fe,we,Ne,Ee){var de=we==="fill",me=fe.getElementsByTagName(we)[0];Ne[we]!=null&&Ne[we]!=="none"&&(de||!de&&Ne.lineWidth)?(fe[de?"filled":"stroked"]="true",Ne[we]instanceof l&&P(fe,me),me||(me=r.createNode(we)),de?z(me,Ne,Ee):V(me,Ne),F(fe,me)):(fe[de?"filled":"stroked"]="false",P(fe,me))},G=[[],[],[]],ee=function(fe,we){var Ne=s.M,Ee=s.C,de=s.L,me=s.A,Le=s.Q,tt=[],At,ht,Ke,Jt,ct,Gt,dr=fe.data,zt=fe.len();for(Jt=0;Jt<zt;){Ke=dr[Jt++],ht="",At=0;switch(Ke){case Ne:ht=" m ",At=1,ct=dr[Jt++],Gt=dr[Jt++],G[0][0]=ct,G[0][1]=Gt;break;case de:ht=" l ",At=1,ct=dr[Jt++],Gt=dr[Jt++],G[0][0]=ct,G[0][1]=Gt;break;case Le:case Ee:ht=" c ",At=3;var kt=dr[Jt++],Vt=dr[Jt++],Xe=dr[Jt++],pe=dr[Jt++],te,$e;Ke===Le?(te=Xe,$e=pe,Xe=(Xe+2*kt)/3,pe=(pe+2*Vt)/3,kt=(ct+2*kt)/3,Vt=(Gt+2*Vt)/3):(te=dr[Jt++],$e=dr[Jt++]),G[0][0]=kt,G[0][1]=Vt,G[1][0]=Xe,G[1][1]=pe,G[2][0]=te,G[2][1]=$e,ct=te,Gt=$e;break;case me:var He=0,ae=0,ft=1,Mt=1,mt=0;we&&(He=we[4],ae=we[5],ft=d(we[0]*we[0]+we[1]*we[1]),Mt=d(we[2]*we[2]+we[3]*we[3]),mt=Math.atan2(-we[1]/Mt,we[0]/ft));var or=dr[Jt++],vr=dr[Jt++],fn=dr[Jt++],sr=dr[Jt++],Ir=dr[Jt++]+mt,lr=dr[Jt++]+Ir+mt;Jt++;var Wt=dr[Jt++],xt=or+v(Ir)*fn,rn=vr+b(Ir)*sr,kt=or+v(lr)*fn,Vt=vr+b(lr)*sr,Dn=Wt?" wa ":" at ";Math.abs(xt-kt)<1e-4&&(Math.abs(lr-Ir)>.01?Wt&&(xt+=270/_):Math.abs(rn-vr)<1e-4?Wt&&xt<or||!Wt&&xt>or?Vt-=270/_:Vt+=270/_:Wt&&rn<vr||!Wt&&rn>vr?kt+=270/_:kt-=270/_),tt.push(Dn,c(((or-fn)*ft+He)*_-T),E,c(((vr-sr)*Mt+ae)*_-T),E,c(((or+fn)*ft+He)*_-T),E,c(((vr+sr)*Mt+ae)*_-T),E,c((xt*ft+He)*_-T),E,c((rn*Mt+ae)*_-T),E,c((kt*ft+He)*_-T),E,c((Vt*Mt+ae)*_-T)),ct=kt,Gt=Vt;break;case s.R:var Xn=G[0],ri=G[1];Xn[0]=dr[Jt++],Xn[1]=dr[Jt++],ri[0]=Xn[0]+dr[Jt++],ri[1]=Xn[1]+dr[Jt++],we&&(x(Xn,Xn,we),x(ri,ri,we)),Xn[0]=c(Xn[0]*_-T),ri[0]=c(ri[0]*_-T),Xn[1]=c(Xn[1]*_-T),ri[1]=c(ri[1]*_-T),tt.push(" m ",Xn[0],E,Xn[1]," l ",ri[0],E,Xn[1]," l ",ri[0],E,ri[1]," l ",Xn[0],E,ri[1]);break;case s.Z:tt.push(" x ")}if(At>0){tt.push(ht);for(var Ui=0;Ui<At;Ui++){var Bn=G[Ui];we&&x(Bn,Bn,we),tt.push(c(Bn[0]*_-T),E,c(Bn[1]*_-T),Ui<At-1?E:"")}}}return tt.join("")};o.prototype.brushVML=function($){var fe=this.style,we=this._vmlEl;we||(we=r.createNode("shape"),I(we),this._vmlEl=we),Q(we,"fill",fe,this),Q(we,"stroke",fe,this);var Ne=this.transform,Ee=Ne!=null,de=we.getElementsByTagName("stroke")[0];if(de){var me=fe.lineWidth;if(Ee&&!fe.strokeNoScale){var Le=Ne[0]*Ne[3]-Ne[1]*Ne[2];me*=d(g(Le))}de.weight=me+"px"}var tt=this.path||(this.path=new e);this.__dirtyPath&&(tt.beginPath(),tt.subPixelOptimize=!1,this.buildPath(tt,this.shape),tt.toStatic(),this.__dirtyPath=!1),we.path=ee(tt,this.transform),we.style.zIndex=X(this.zlevel,this.z,this.z2),F($,we),fe.text!=null?this.drawRectText($,this.getBoundingRect()):this.removeRectText($)},o.prototype.onRemove=function($){P($,this._vmlEl),this.removeRectText($)},o.prototype.onAdd=function($){F($,this._vmlEl),this.appendRectText($)};var ce=function(fe){return typeof fe=="object"&&fe.tagName&&fe.tagName.toUpperCase()==="IMG"};i.prototype.brushVML=function($){var fe=this.style,we=fe.image,Ne,Ee;if(ce(we)){var de=we.src;if(de===this._imageSrc)Ne=this._imageWidth,Ee=this._imageHeight;else{var me=we.runtimeStyle,Le=me.width,tt=me.height;me.width="auto",me.height="auto",Ne=we.width,Ee=we.height,me.width=Le,me.height=tt,this._imageSrc=de,this._imageWidth=Ne,this._imageHeight=Ee}we=de}else we===this._imageSrc&&(Ne=this._imageWidth,Ee=this._imageHeight);if(!we)return;var At=fe.x||0,ht=fe.y||0,Ke=fe.width,Jt=fe.height,ct=fe.sWidth,Gt=fe.sHeight,dr=fe.sx||0,zt=fe.sy||0,kt=ct&&Gt,Vt=this._vmlEl;Vt||(Vt=r.doc.createElement("div"),I(Vt),this._vmlEl=Vt);var Xe=Vt.style,pe=!1,te,$e=1,He=1;if(this.transform&&(te=this.transform,$e=d(te[0]*te[0]+te[1]*te[1]),He=d(te[2]*te[2]+te[3]*te[3]),pe=te[1]||te[2]),pe){var ae=[At,ht],ft=[At+Ke,ht],Mt=[At,ht+Jt],mt=[At+Ke,ht+Jt];x(ae,ae,te),x(ft,ft,te),x(Mt,Mt,te),x(mt,mt,te);var or=S(ae[0],ft[0],Mt[0],mt[0]),vr=S(ae[1],ft[1],Mt[1],mt[1]),fn=[];fn.push("M11=",te[0]/$e,E,"M12=",te[2]/He,E,"M21=",te[1]/$e,E,"M22=",te[3]/He,E,"Dx=",c(At*$e+te[4]),E,"Dy=",c(ht*He+te[5])),Xe.padding="0 "+c(or)+"px "+c(vr)+"px 0",Xe.filter=C+".Matrix("+fn.join("")+", SizingMethod=clip)"}else te&&(At=At*$e+te[4],ht=ht*He+te[5]),Xe.filter="",Xe.left=c(At)+"px",Xe.top=c(ht)+"px";var sr=this._imageEl,Ir=this._cropEl;sr||(sr=r.doc.createElement("div"),this._imageEl=sr);var lr=sr.style;if(kt){if(Ne&&Ee)lr.width=c($e*Ne*Ke/ct)+"px",lr.height=c(He*Ee*Jt/Gt)+"px";else{var Wt=new Image,xt=this;Wt.onload=function(){Wt.onload=null,Ne=Wt.width,Ee=Wt.height,lr.width=c($e*Ne*Ke/ct)+"px",lr.height=c(He*Ee*Jt/Gt)+"px",xt._imageWidth=Ne,xt._imageHeight=Ee,xt._imageSrc=we},Wt.src=we}Ir||(Ir=r.doc.createElement("div"),Ir.style.overflow="hidden",this._cropEl=Ir);var rn=Ir.style;rn.width=c((Ke+dr*Ke/ct)*$e),rn.height=c((Jt+zt*Jt/Gt)*He),rn.filter=C+".Matrix(Dx="+-dr*Ke/ct*$e+",Dy="+-zt*Jt/Gt*He+")",Ir.parentNode||Vt.appendChild(Ir),sr.parentNode!==Ir&&Ir.appendChild(sr)}else lr.width=c($e*Ke)+"px",lr.height=c(He*Jt)+"px",Vt.appendChild(sr),Ir&&Ir.parentNode&&(Vt.removeChild(Ir),this._cropEl=null);var Dn="",Xn=fe.opacity;Xn<1&&(Dn+=".Alpha(opacity="+c(Xn*100)+") "),Dn+=C+".AlphaImageLoader(src="+we+", SizingMethod=scale)",lr.filter=Dn,Vt.style.zIndex=X(this.zlevel,this.z,this.z2),F($,Vt),fe.text!=null&&this.drawRectText($,this.getBoundingRect())},i.prototype.onRemove=function($){P($,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText($)},i.prototype.onAdd=function($){F($,this._vmlEl),this.appendRectText($)};var be="normal",le={},Ie=0,ke=100,Re=document.createElement("div"),Qe=function(fe){var we=le[fe];if(!we){Ie>ke&&(Ie=0,le={});var Ne=Re.style,Ee;try{Ne.font=fe,Ee=Ne.fontFamily.split(",")[0]}catch(de){}we={style:Ne.fontStyle||be,variant:Ne.fontVariant||be,weight:Ne.fontWeight||be,size:parseFloat(Ne.fontSize||12)|0,family:Ee||"Microsoft YaHei"},le[fe]=we,Ie++}return we},We;f.$override("measureText",function($,fe){var we=r.doc;We||(We=we.createElement("div"),We.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",r.doc.body.appendChild(We));try{We.style.font=fe}catch(Ne){}return We.innerHTML="",We.appendChild(we.createTextNode($)),{width:We.offsetWidth}});for(var ot=new A,Oe=function(fe,we,Ne,Ee){var de=this.style;this.__dirty&&h.normalizeTextStyle(de,!0);var me=de.text;if(me!=null&&(me+=""),!me)return;if(de.rich){var Le=f.parseRichText(me,de);me=[];for(var tt=0;tt<Le.lines.length;tt++){for(var At=Le.lines[tt].tokens,ht=[],Ke=0;Ke<At.length;Ke++)ht.push(At[Ke].text);me.push(ht.join(""))}me=me.join(`
|
|
|
`)}var Jt,ct,Gt=de.textAlign,dr=de.textVerticalAlign,zt=Qe(de.font),kt=zt.style+" "+zt.variant+" "+zt.weight+" "+zt.size+'px "'+zt.family+'"';Ne=Ne||f.getBoundingRect(me,kt,Gt,dr,de.textPadding,de.textLineHeight);var Vt=this.transform;if(Vt&&!Ee&&(ot.copy(we),ot.applyTransform(Vt),we=ot),Ee)Jt=we.x,ct=we.y;else{var Xe=de.textPosition;if(Xe instanceof Array)Jt=we.x+B(Xe[0],we.width),ct=we.y+B(Xe[1],we.height),Gt=Gt||"left";else{var pe=this.calculateTextPosition?this.calculateTextPosition({},de,we):f.calculateTextPosition({},de,we);Jt=pe.x,ct=pe.y,Gt=Gt||pe.textAlign,dr=dr||pe.textVerticalAlign}}Jt=f.adjustTextX(Jt,Ne.width,Gt),ct=f.adjustTextY(ct,Ne.height,dr),ct+=Ne.height/2;var te=r.createNode,$e=this._textVmlEl,He,ae,ft;$e?(ft=$e.firstChild,He=ft.nextSibling,ae=He.nextSibling):($e=te("line"),He=te("path"),ae=te("textpath"),ft=te("skew"),ae.style["v-text-align"]="left",I($e),He.textpathok=!0,ae.on=!0,$e.from="0 0",$e.to="1000 0.05",F($e,ft),F($e,He),F($e,ae),this._textVmlEl=$e);var Mt=[Jt,ct],mt=$e.style;Vt&&Ee?(x(Mt,Mt,Vt),ft.on=!0,ft.matrix=Vt[0].toFixed(3)+E+Vt[2].toFixed(3)+E+Vt[1].toFixed(3)+E+Vt[3].toFixed(3)+",0,0",ft.offset=(c(Mt[0])||0)+","+(c(Mt[1])||0),ft.origin="0 0",mt.left="0px",mt.top="0px"):(ft.on=!1,mt.left=c(Jt)+"px",mt.top=c(ct)+"px"),ae.string=R(me);try{ae.style.font=kt}catch(or){}Q($e,"fill",{fill:de.textFill,opacity:de.opacity},this),Q($e,"stroke",{stroke:de.textStroke,opacity:de.opacity,lineDash:de.lineDash||null},this),$e.style.zIndex=X(this.zlevel,this.z,this.z2),F(fe,$e)},oe=function(fe){P(fe,this._textVmlEl),this._textVmlEl=null},st=function(fe){F(fe,this._textVmlEl)},he=[u,a,i,o,t],J=0;J<he.length;J++){var Y=he[J].prototype;Y.drawRectText=Oe,Y.removeRectText=oe,Y.appendRectText=st}t.prototype.brushVML=function($){var fe=this.style;fe.text!=null?this.drawRectText($,{x:fe.x||0,y:fe.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText($)},t.prototype.onRemove=function($){this.removeRectText($)},t.prototype.onAdd=function($){this.appendRectText($)}}},qJCg:function(k,D,n){var y=n("BlVb"),p=n("mFDi"),x=n("IwbS"),A=x.linePolygonIntersect,m={lineX:f(0),lineY:f(1),rect:{point:function(a,i,t){return a&&t.boundingRect.contain(a[0],a[1])},rect:function(a,i,t){return a&&t.boundingRect.intersect(a)}},polygon:{point:function(a,i,t){return a&&t.boundingRect.contain(a[0],a[1])&&y.contain(t.range,a[0],a[1])},rect:function(a,i,t){var o=t.range;if(!a||o.length<=1)return!1;var e=a.x,l=a.y,r=a.width,s=a.height,c=o[0];if(y.contain(o,e,l)||y.contain(o,e+r,l)||y.contain(o,e,l+s)||y.contain(o,e+r,l+s)||p.create(a).contain(c[0],c[1])||A(e,l,e+r,l,o)||A(e,l,e,l+s,o)||A(e+r,l,e+r,l+s,o)||A(e,l+s,e+r,l+s,o))return!0}}};function f(a){var i=["x","y"],t=["width","height"];return{point:function(o,e,l){if(o){var r=l.range,s=o[a];return h(s,r)}},rect:function(o,e,l){if(o){var r=l.range,s=[o[i[a]],o[i[a]]+o[t[a]]];return s[1]<s[0]&&s.reverse(),h(s[0],r)||h(s[1],r)||h(r[0],s)||h(r[1],s)}}}}function h(a,i){return i[0]<=a&&a<=i[1]}var u=m;k.exports=u},qM6L:function(k,D,n){(function(y,p){k.exports=D=p(n("Ib8C"))})(this,function(y){return function(){var p=y,x=p.lib,A=x.WordArray,m=p.enc,f=m.Utf16=m.Utf16BE={stringify:function(a){for(var i=a.words,t=a.sigBytes,o=[],e=0;e<t;e+=2){var l=i[e>>>2]>>>16-e%4*8&65535;o.push(String.fromCharCode(l))}return o.join("")},parse:function(a){for(var i=a.length,t=[],o=0;o<i;o++)t[o>>>1]|=a.charCodeAt(o)<<16-o%2*16;return A.create(t,i*2)}};m.Utf16LE={stringify:function(a){for(var i=a.words,t=a.sigBytes,o=[],e=0;e<t;e+=2){var l=h(i[e>>>2]>>>16-e%4*8&65535);o.push(String.fromCharCode(l))}return o.join("")},parse:function(a){for(var i=a.length,t=[],o=0;o<i;o++)t[o>>>1]|=h(a.charCodeAt(o)<<16-o%2*16);return A.create(t,i*2)}};function h(u){return u<<8&4278255360|u>>>8&16711935}}(),y.enc.Utf16})},qMZE:function(k,D,n){var y=n("JEkh"),p=y.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});k.exports=p},qOx5:function(k,D,n){"use strict";n.d(D,"a",function(){return f});var y=n("Kwbf");function p(h,u){var a=new Set;return h.forEach(function(i){u.has(i)||a.add(i)}),a}function x(h){var u=h||{},a=u.disabled,i=u.disableCheckbox,t=u.checkable;return!!(a||i)||t===!1}function A(h,u,a,i){for(var t=new Set(h),o=new Set,e=0;e<=a;e+=1){var l=u.get(e)||new Set;l.forEach(function(d){var g=d.key,v=d.node,b=d.children,S=b===void 0?[]:b;t.has(g)&&!i(v)&&S.filter(function(E){return!i(E.node)}).forEach(function(E){t.add(E.key)})})}for(var r=new Set,s=a;s>=0;s-=1){var c=u.get(s)||new Set;c.forEach(function(d){var g=d.parent,v=d.node;if(i(v)||!d.parent||r.has(d.parent.key))return;if(i(d.parent.node)){r.add(g.key);return}var b=!0,S=!1;(g.children||[]).filter(function(E){return!i(E.node)}).forEach(function(E){var C=E.key,_=t.has(C);b&&!_&&(b=!1),!S&&(_||o.has(C))&&(S=!0)}),b&&t.add(g.key),S&&o.add(g.key),r.add(g.key)})}return{checkedKeys:Array.from(t),halfCheckedKeys:Array.from(p(o,t))}}function m(h,u,a,i,t){for(var o=new Set(h),e=new Set(u),l=0;l<=i;l+=1){var r=a.get(l)||new Set;r.forEach(function(g){var v=g.key,b=g.node,S=g.children,E=S===void 0?[]:S;!o.has(v)&&!e.has(v)&&!t(b)&&E.filter(function(C){return!t(C.node)}).forEach(function(C){o.delete(C.key)})})}e=new Set;for(var s=new Set,c=i;c>=0;c-=1){var d=a.get(c)||new Set;d.forEach(function(g){var v=g.parent,b=g.node;if(t(b)||!g.parent||s.has(g.parent.key))return;if(t(g.parent.node)){s.add(v.key);return}var S=!0,E=!1;(v.children||[]).filter(function(C){return!t(C.node)}).forEach(function(C){var _=C.key,T=o.has(_);S&&!T&&(S=!1),!E&&(T||e.has(_))&&(E=!0)}),S||o.delete(v.key),E&&e.add(v.key),s.add(v.key)})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(p(e,o))}}function f(h,u,a,i){var t=[],o;i?o=i:o=x;var e=new Set(h.filter(function(c){var d=!!a[c];return d||t.push(c),d})),l=new Map,r=0;Object.keys(a).forEach(function(c){var d=a[c],g=d.level,v=l.get(g);v||(v=new Set,l.set(g,v)),v.add(d),r=Math.max(r,g)}),Object(y.a)(!t.length,"Tree missing follow keys: ".concat(t.slice(0,100).map(function(c){return"'".concat(c,"'")}).join(", ")));var s;return u===!0?s=A(e,l,r,o):s=m(e,u.halfCheckedKeys,l,r,o),s}},qWt2:function(k,D,n){var y=n("ProS"),p=y.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});k.exports=p},qZFw:function(k,D,n){var y=n("bYtY"),p=n("6GrX"),x=n("hM6l"),A=n("4NO4"),m=A.makeInner,f=m();function h(a,i){i=i||[0,360],x.call(this,"angle",a,i),this.type="category"}h.prototype={constructor:h,pointToData:function(a,i){return this.polar.pointToData(a,i)[this.dim==="radius"?0:1]},dataToAngle:x.prototype.dataToCoord,angleToData:x.prototype.coordToData,calculateCategoryInterval:function(){var a=this,i=a.getLabelModel(),t=a.scale,o=t.getExtent(),e=t.count();if(o[1]-o[0]<1)return 0;var l=o[0],r=a.dataToCoord(l+1)-a.dataToCoord(l),s=Math.abs(r),c=p.getBoundingRect(l,i.getFont(),"center","top"),d=Math.max(c.height,7),g=d/s;isNaN(g)&&(g=Infinity);var v=Math.max(0,Math.floor(g)),b=f(a.model),S=b.lastAutoInterval,E=b.lastTickCount;return S!=null&&E!=null&&Math.abs(S-v)<=1&&Math.abs(E-e)<=1&&S>v?v=S:(b.lastTickCount=e,b.lastAutoInterval=v),v}},y.inherits(h,x);var u=h;k.exports=u},qZTm:function(k,D,n){var y=n("fR/l"),p=n("MvSz"),x=n("7GkX");function A(m){return y(m,x,p)}k.exports=A},qgGe:function(k,D,n){var y=n("bYtY"),p=n("T4UG"),x=n("Bsck"),A=n("VaxA"),m=A.wrapTreePathInfo,f=p.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(u,a){var i={name:u.name,children:u.data};h(i);var t=u.levels||[],o={};return o.levels=t,x.createTree(i,this,o).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(u){var a=p.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(u);return a.treePathInfo=m(i,this),a},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(u){u?this._viewRoot=u:u=this._viewRoot;var a=this.getRawData().tree.root;(!u||u!==a&&!a.contains(u))&&(this._viewRoot=a)}});function h(u){var a=0;y.each(u.children,function(t){h(t);var o=t.value;y.isArray(o)&&(o=o[0]),a+=o});var i=u.value;y.isArray(i)&&(i=i[0]),(i==null||isNaN(i))&&(i=a),i<0&&(i=0),y.isArray(u.value)?u.value[0]=i:u.value=i}k.exports=f},qj72:function(k,D,n){var y=n("bYtY");function p(A,m){return m=m||[0,0],y.map(["x","y"],function(f,h){var u=this.getAxis(f),a=m[h],i=A[h]/2;return u.type==="category"?u.getBandWidth():Math.abs(u.dataToCoord(a-i)-u.dataToCoord(a+i))},this)}function x(A){var m=A.grid.getRect();return{coordSys:{type:"cartesian2d",x:m.x,y:m.y,width:m.width,height:m.height},api:{coord:function(f){return A.dataToPoint(f)},size:y.bind(p,A)}}}k.exports=x},"qt/9":function(k,D,n){var y=n("ProS"),p=n("bYtY");n("Wqna"),n("1tlw"),n("Mylv");var x=n("nVfU"),A=x.layout,m=n("f5Yq");n("Ae16"),y.registerLayout(p.curry(A,"pictorialBar")),y.registerVisual(m("pictorialBar","roundRect"))},qu8F:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("OLod"))})(this,function(y){/** @preserve
|
|
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
|
* derived from CryptoJS.mode.CTR
|
|
|
* Jan Hruby jhruby.web@gmail.com
|
|
|
*/return y.mode.CTRGladman=function(){var p=y.lib.BlockCipherMode.extend();function x(f){if((f>>24&255)===255){var h=f>>16&255,u=f>>8&255,a=f&255;h===255?(h=0,u===255?(u=0,a===255?a=0:++a):++u):++h,f=0,f+=h<<16,f+=u<<8,f+=a}else f+=1<<24;return f}function A(f){return(f[0]=x(f[0]))===0&&(f[1]=x(f[1])),f}var m=p.Encryptor=p.extend({processBlock:function(h,u){var a=this._cipher,i=a.blockSize,t=this._iv,o=this._counter;t&&(o=this._counter=t.slice(0),this._iv=void 0),A(o);var e=o.slice(0);a.encryptBlock(e,0);for(var l=0;l<i;l++)h[u+l]^=e[l]}});return p.Decryptor=m,p}(),y.mode.CTRGladman})},quyA:function(k,D){var n="\\ud800-\\udfff",y="\\u0300-\\u036f",p="\\ufe20-\\ufe2f",x="\\u20d0-\\u20ff",A=y+p+x,m="\\ufe0e\\ufe0f",f="\\u200d",h=RegExp("["+f+n+A+m+"]");function u(a){return h.test(a)}k.exports=u},qwVE:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("K4ya"),A=n("XxSj"),m=y.PRIORITY.VISUAL.COMPONENT;y.registerVisual(m,{createOnAllSeries:!0,reset:function(h,u){var a=[];return u.eachComponent("visualMap",function(i){var t=h.pipelineContext;if(!i.isTargetSeries(h)||t&&t.large)return;a.push(x.incrementalApplyVisual(i.stateList,i.targetVisuals,p.bind(i.getValueState,i),i.getDataDimension(h.getData())))}),a}}),y.registerVisual(m,{createOnAllSeries:!0,reset:function(h,u){var a=h.getData(),i=[];u.eachComponent("visualMap",function(t){if(t.isTargetSeries(h)){var o=t.getVisualMeta(p.bind(f,null,h,t))||{stops:[],outerColors:[]},e=t.getDataDimension(a),l=a.getDimensionInfo(e);l!=null&&(o.dimension=l.index,i.push(o))}}),h.getData().setVisual("visualMeta",i)}});function f(h,u,a,i){for(var t=u.targetVisuals[i],o=A.prepareVisualTypes(t),e={color:h.getData().getVisual("color")},l=0,r=o.length;l<r;l++){var s=o[l],c=t[s==="opacity"?"__alphaForOpacity":s];c&&c.applyVisual(a,d,g)}return e.color;function d(v){return e[v]}function g(v,b){e[v]=b}}},r6Bn:function(k,D,n){var y=n("bYtY"),p=n("ItGF"),x=n("4fz+"),A=n("BPZU");function m(u,a){return u.zlevel===a.zlevel?u.z===a.z?u.z2-a.z2:u.z-a.z:u.zlevel-a.zlevel}var f=function(){this._roots=[],this._displayList=[],this._displayListLen=0};f.prototype={constructor:f,traverse:function(a,i){for(var t=0;t<this._roots.length;t++)this._roots[t].traverse(a,i)},getDisplayList:function(a,i){return i=i||!1,a&&this.updateDisplayList(i),this._displayList},updateDisplayList:function(a){this._displayListLen=0;for(var i=this._roots,t=this._displayList,o=0,e=i.length;o<e;o++)this._updateAndAddDisplayable(i[o],null,a);t.length=this._displayListLen,p.canvasSupported&&A(t,m)},_updateAndAddDisplayable:function(a,i,t){if(a.ignore&&!t)return;a.beforeUpdate(),a.__dirty&&a.update(),a.afterUpdate();var o=a.clipPath;if(o){i?i=i.slice():i=[];for(var e=o,l=a;e;)e.parent=l,e.updateTransform(),i.push(e),l=e,e=e.clipPath}if(a.isGroup){for(var r=a._children,s=0;s<r.length;s++){var c=r[s];a.__dirty&&(c.__dirty=!0),this._updateAndAddDisplayable(c,i,t)}a.__dirty=!1}else a.__clipPaths=i,this._displayList[this._displayListLen++]=a},addRoot:function(a){if(a.__storage===this)return;a instanceof x&&a.addChildrenToStorage(this),this.addToStorage(a),this._roots.push(a)},delRoot:function(a){if(a==null){for(var i=0;i<this._roots.length;i++){var t=this._roots[i];t instanceof x&&t.delChildrenFromStorage(this)}this._roots=[],this._displayList=[],this._displayListLen=0;return}if(a instanceof Array){for(var i=0,o=a.length;i<o;i++)this.delRoot(a[i]);return}var e=y.indexOf(this._roots,a);e>=0&&(this.delFromStorage(a),this._roots.splice(e,1),a instanceof x&&a.delChildrenFromStorage(this))},addToStorage:function(a){return a&&(a.__storage=this,a.dirty(!1)),this},delFromStorage:function(a){return a&&(a.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:m};var h=f;k.exports=h},r9UT:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("2oIt")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="UpOutlined";var i=A.forwardRef(a);D.default=i},rA99:function(k,D,n){var y=n("y+Vt"),p=n("QBsz"),x=n("Sj9i"),A=x.quadraticSubdivide,m=x.cubicSubdivide,f=x.quadraticAt,h=x.cubicAt,u=x.quadraticDerivativeAt,a=x.cubicDerivativeAt,i=[];function t(e,l,r){var s=e.cpx2,c=e.cpy2;return s===null||c===null?[(r?a:h)(e.x1,e.cpx1,e.cpx2,e.x2,l),(r?a:h)(e.y1,e.cpy1,e.cpy2,e.y2,l)]:[(r?u:f)(e.x1,e.cpx1,e.x2,l),(r?u:f)(e.y1,e.cpy1,e.y2,l)]}var o=y.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(l,r){var s=r.x1,c=r.y1,d=r.x2,g=r.y2,v=r.cpx1,b=r.cpy1,S=r.cpx2,E=r.cpy2,C=r.percent;if(C===0)return;l.moveTo(s,c),S==null||E==null?(C<1&&(A(s,v,d,C,i),v=i[1],d=i[2],A(c,b,g,C,i),b=i[1],g=i[2]),l.quadraticCurveTo(v,b,d,g)):(C<1&&(m(s,v,S,d,C,i),v=i[1],S=i[2],d=i[3],m(c,b,E,g,C,i),b=i[1],E=i[2],g=i[3]),l.bezierCurveTo(v,b,S,E,d,g))},pointAt:function(l){return t(this.shape,l,!1)},tangentAt:function(l){var r=t(this.shape,l,!0);return p.normalize(r,r)}});k.exports=o},"rAM+":function(k,D,n){"use strict";n.d(D,"a",function(){return p});var y=n("Qw5x");function p(x,A){var m;if(typeof Symbol=="undefined"||x[Symbol.iterator]==null){if(Array.isArray(x)||(m=Object(y.a)(x))||A&&x&&typeof x.length=="number"){m&&(x=m);var f=0,h=function(){};return{s:h,n:function(){return f>=x.length?{done:!0}:{done:!1,value:x[f++]}},e:function(o){throw o},f:h}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,a=!1,i;return{s:function(){m=x[Symbol.iterator]()},n:function(){var o=m.next();return u=o.done,o},e:function(o){a=!0,i=o},f:function(){try{!u&&m.return!=null&&m.return()}finally{if(a)throw i}}}}},rBdH:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("5yev")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="RedoOutlined";var i=A.forwardRef(a);D.default=i},rEGp:function(k,D){function n(y){var p=-1,x=Array(y.size);return y.forEach(function(A){x[++p]=A}),x}k.exports=n},rHrb:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.CopyToClipboard=void 0;var y=x(n("q1tI")),p=x(n("+QRC"));function x(g){return g&&g.__esModule?g:{default:g}}function A(g){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?A=function(b){return typeof b}:A=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},A(g)}function m(g,v){var b=Object.keys(g);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(g);v&&(S=S.filter(function(E){return Object.getOwnPropertyDescriptor(g,E).enumerable})),b.push.apply(b,S)}return b}function f(g){for(var v=1;v<arguments.length;v++){var b=arguments[v]!=null?arguments[v]:{};v%2?m(b,!0).forEach(function(S){c(g,S,b[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(b)):m(b).forEach(function(S){Object.defineProperty(g,S,Object.getOwnPropertyDescriptor(b,S))})}return g}function h(g,v){if(g==null)return{};var b=u(g,v),S,E;if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(g);for(E=0;E<C.length;E++){if(S=C[E],v.indexOf(S)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(g,S))continue;b[S]=g[S]}}return b}function u(g,v){if(g==null)return{};var b={},S=Object.keys(g),E,C;for(C=0;C<S.length;C++){if(E=S[C],v.indexOf(E)>=0)continue;b[E]=g[E]}return b}function a(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}function i(g,v){for(var b=0;b<v.length;b++){var S=v[b];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(g,S.key,S)}}function t(g,v,b){return v&&i(g.prototype,v),b&&i(g,b),g}function o(g,v){return v&&(A(v)==="object"||typeof v=="function")?v:l(g)}function e(g){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(b){return b.__proto__||Object.getPrototypeOf(b)},e(g)}function l(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function r(g,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(v&&v.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),v&&s(g,v)}function s(g,v){return s=Object.setPrototypeOf||function(S,E){return S.__proto__=E,S},s(g,v)}function c(g,v,b){return v in g?Object.defineProperty(g,v,{value:b,enumerable:!0,configurable:!0,writable:!0}):g[v]=b,g}var d=function(g){r(v,g);function v(){var b,S;a(this,v);for(var E=arguments.length,C=new Array(E),_=0;_<E;_++)C[_]=arguments[_];return S=o(this,(b=e(v)).call.apply(b,[this].concat(C))),c(l(S),"onClick",function(T){var w=S.props,O=w.text,I=w.onCopy,R=w.children,M=w.options,F=y.default.Children.only(R),P=(0,p.default)(O,M);I&&I(O,P),F&&F.props&&typeof F.props.onClick=="function"&&F.props.onClick(T)}),S}return t(v,[{key:"render",value:function(){var S=this.props,E=S.text,C=S.onCopy,_=S.options,T=S.children,w=h(S,["text","onCopy","options","children"]),O=y.default.Children.only(T);return y.default.cloneElement(O,f({},w,{onClick:this.onClick}))}}]),v}(y.default.PureComponent);D.CopyToClipboard=d,c(d,"defaultProps",{onCopy:void 0,options:void 0})},rLCj:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="ReloadOutlined";var h=D.a=p.forwardRef(f)},rUJ1:function(k,D){var n=/[&<>"']/,y=/[&<>"']/g,p=/[<>"']|&(?!#?\w+;)/,x=/[<>"']|&(?!#?\w+;)/g,A={"&":"&","<":"<",">":">",'"':""","'":"'"},m=function(T){return A[T]};function f(_,T){if(T){if(n.test(_))return _.replace(y,m)}else if(p.test(_))return _.replace(x,m);return _}var h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function u(_){return _.replace(h,function(T,w){return w=w.toLowerCase(),w==="colon"?":":w.charAt(0)==="#"?w.charAt(1)==="x"?String.fromCharCode(parseInt(w.substring(2),16)):String.fromCharCode(+w.substring(1)):""})}var a=/(^|[^\[])\^/g;function i(_,T){_=_.source||_,T=T||"";var w={replace:function(I,R){return R=R.source||R,R=R.replace(a,"$1"),_=_.replace(I,R),w},getRegex:function(){return new RegExp(_,T)}};return w}var t=/[^\w:]/g,o=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function e(_,T,w){if(_){var O;try{O=decodeURIComponent(u(w)).replace(t,"").toLowerCase()}catch(I){return null}if(O.indexOf("javascript:")===0||O.indexOf("vbscript:")===0||O.indexOf("data:")===0)return null}T&&!o.test(w)&&(w=d(T,w));try{w=encodeURI(w).replace(/%25/g,"%")}catch(I){return null}return w}var l={},r=/^[^:]+:\/*[^/]*$/,s=/^([^:]+:)[\s\S]*$/,c=/^([^:]+:\/*[^/]*)[\s\S]*$/;function d(_,T){l[" "+_]||(r.test(_)?l[" "+_]=_+"/":l[" "+_]=S(_,"/",!0)),_=l[" "+_];var w=_.indexOf(":")===-1;return T.substring(0,2)==="//"?w?T:_.replace(s,"$1")+T:T.charAt(0)==="/"?w?T:_.replace(c,"$1")+T:_+T}var g={exec:function(){}};function v(_){for(var T=1,w,O;T<arguments.length;T++){w=arguments[T];for(O in w)Object.prototype.hasOwnProperty.call(w,O)&&(_[O]=w[O])}return _}function b(_,T){var w=_.replace(/\|/g,function(R,M,F){for(var P=!1,X=M;--X>=0&&F[X]==="\\";)P=!P;return P?"|":" |"}),O=w.split(/ \|/),I=0;if(O.length>T)O.splice(T);else for(;O.length<T;)O.push("");for(;I<O.length;I++)O[I]=O[I].trim().replace(/\\\|/g,"|");return O}function S(_,T,w){var O=_.length;if(O===0)return"";for(var I=0;I<O;){var R=_.charAt(O-I-1);if(R===T&&!w)I++;else if(R!==T&&w)I++;else break}return _.substr(0,O-I)}function E(_,T){if(_.indexOf(T[1])===-1)return-1;for(var w=_.length,O=0,I=0;I<w;I++)if(_[I]==="\\")I++;else if(_[I]===T[0])O++;else if(_[I]===T[1]&&(O--,O<0))return I;return-1}function C(_){_&&_.sanitize&&!_.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}k.exports={escape:f,unescape:u,edit:i,cleanUrl:e,resolveUrl:d,noopTest:g,merge:v,splitCells:b,rtrim:S,findClosingBracket:E,checkSanitizeDeprecation:C}},rYzl:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("JgUQ")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="FileOutlined";var i=A.forwardRef(a);D.default=i},rdUC:function(k,D,n){var y=n("MFOe"),p=y.Global;k.exports={name:"localStorage",read:A,write:m,each:f,remove:h,clearAll:u};function x(){return p.localStorage}function A(a){return x().getItem(a)}function m(a,i){return x().setItem(a,i)}function f(a){for(var i=x().length-1;i>=0;i--){var t=x().key(i);a(A(t),t)}}function h(a){return x().removeItem(a)}function u(){return x().clear()}},rdor:function(k,D,n){var y=n("lOQZ"),p=y.circularLayout;function x(A){A.eachSeriesByType("graph",function(m){m.get("layout")==="circular"&&p(m,"symbolSize")})}k.exports=x},rfSb:function(k,D,n){var y=n("T4UG"),p=n("sdST"),x=n("L0Ub"),A=x.getDimensionTypeByAxis,m=n("YXkt"),f=n("bYtY"),h=n("4NO4"),u=h.groupData,a=n("7aKB"),i=a.encodeHTML,t=n("xKMd"),o=2,e=y.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(r){e.superApply(this,"init",arguments),this.legendVisualProvider=new t(f.bind(this.getData,this),f.bind(this.getRawData,this))},fixData:function(r){var s=r.length,c=u(r,function(F){return F[2]}),d=[];c.buckets.each(function(F,P){d.push({name:P,dataList:F})});for(var g=d.length,v=-1,b=-1,S=0;S<g;++S){var E=d[S].dataList.length;E>v&&(v=E,b=S)}for(var C=0;C<g;++C){if(C===b)continue;for(var _=d[C].name,T=0;T<v;++T){for(var w=d[b].dataList[T][0],O=d[C].dataList.length,I=-1,R=0;R<O;++R){var M=d[C].dataList[R][0];if(M===w){I=R;break}}I===-1&&(r[s]=[],r[s][0]=w,r[s][1]=0,r[s][2]=_,s++)}}return r},getInitialData:function(r,s){for(var c=s.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],d=c.get("type"),g=f.filter(r.data,function(w){return w[2]!==void 0}),v=this.fixData(g||[]),b=[],S=this.nameMap=f.createHashMap(),E=0,C=0;C<v.length;++C)b.push(v[C][o]),S.get(v[C][o])||(S.set(v[C][o],E),E++);var _=p(v,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:A(d)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),T=new m(_,this);return T.initData(v),T},getLayerSeries:function(){for(var r=this.getData(),s=r.count(),c=[],d=0;d<s;++d)c[d]=d;var g=r.mapDimension("single"),v=u(c,function(S){return r.get("name",S)}),b=[];return v.buckets.each(function(S,E){S.sort(function(C,_){return r.get(g,C)-r.get(g,_)}),b.push({name:E,indices:S})}),b},getAxisTooltipData:function(r,s,c){f.isArray(r)||(r=r?[r]:[]);for(var d=this.getData(),g=this.getLayerSeries(),v=[],b=g.length,S,E=0;E<b;++E){for(var C=Number.MAX_VALUE,_=-1,T=g[E].indices.length,w=0;w<T;++w){var O=d.get(r[0],g[E].indices[w]),I=Math.abs(O-s);I<=C&&(S=O,C=I,_=g[E].indices[w])}v.push(_)}return{dataIndices:v,nestestValue:S}},formatTooltip:function(r){var s=this.getData(),c=s.getName(r),d=s.get(s.mapDimension("value"),r);return(isNaN(d)||d==null)&&(d="-"),i(c+" : "+d)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",color:"#000",fontSize:11},emphasis:{label:{show:!0}}}}),l=e;k.exports=l},rkZ5:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),A=n("c8qY"),m=n("D9ME"),f=n("fls0"),h=n("RSch"),u=n("akwb"),a=n("o40c"),i=n("ZYIC"),t=n("sK/D"),o=t.createClipPath,e=x.extendChartView({type:"lines",init:function(){},render:function(l,r,s){var c=l.getData(),d=this._updateLineDraw(c,l),g=l.get("zlevel"),v=l.get("effect.trailLength"),b=s.getZr(),S=b.painter.getType()==="svg";S||b.painter.getLayer(g).clear(!0),this._lastZlevel!=null&&!S&&b.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(l)&&v&&(S||b.configLayer(g,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(v/10+.9,1),0)})),d.updateData(c);var E=l.get("clip",!0)&&o(l.coordinateSystem,!1,l);E?this.group.setClipPath(E):this.group.removeClipPath(),this._lastZlevel=g,this._finished=!0},incrementalPrepareRender:function(l,r,s){var c=l.getData(),d=this._updateLineDraw(c,l);d.incrementalPrepareUpdate(c),this._clearLayer(s),this._finished=!1},incrementalRender:function(l,r,s){this._lineDraw.incrementalUpdate(l,r.getData()),this._finished=l.end===r.getData().count()},updateTransform:function(l,r,s){var c=l.getData(),d=l.pipelineContext;if(!this._finished||d.large||d.progressiveRender)return{update:!0};var g=i.reset(l);g.progress&&g.progress({start:0,end:c.count()},c),this._lineDraw.updateLayout(),this._clearLayer(s)},_updateLineDraw:function(l,r){var s=this._lineDraw,c=this._showEffect(r),d=!!r.get("polyline"),g=r.pipelineContext,v=g.large;return(!s||c!==this._hasEffet||d!==this._isPolyline||v!==this._isLargeDraw)&&(s&&s.remove(),s=this._lineDraw=v?new a:new A(d?c?u:h:c?m:f),this._hasEffet=c,this._isPolyline=d,this._isLargeDraw=v,this.group.removeAll()),this.group.add(s.group),s},_showEffect:function(l){return!!l.get("effect.show")},_clearLayer:function(l){var r=l.getZr(),s=r.painter.getType()==="svg";!s&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(l,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},dispose:function(){}});k.exports=e},rmlV:function(k,D,n){var y=n("y+Vt"),p=y.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(A,m){var f=.5522848,h=m.cx,u=m.cy,a=m.rx,i=m.ry,t=a*f,o=i*f;A.moveTo(h-a,u),A.bezierCurveTo(h-a,u-o,h-t,u-i,h,u-i),A.bezierCurveTo(h+t,u-i,h+a,u-o,h+a,u),A.bezierCurveTo(h+a,u+o,h+t,u+i,h,u+i),A.bezierCurveTo(h-t,u+i,h-a,u+o,h-a,u),A.closePath()}});k.exports=p},rnVJ:function(k,D,n){var y=n("bYtY"),p=["rect","polygon","keep","clear"];function x(m,f){var h=m&&m.brush;if(y.isArray(h)||(h=h?[h]:[]),!h.length)return;var u=[];y.each(h,function(e){var l=e.hasOwnProperty("toolbox")?e.toolbox:[];l instanceof Array&&(u=u.concat(l))});var a=m&&m.toolbox;y.isArray(a)&&(a=a[0]),a||(a={feature:{}},m.toolbox=[a]);var i=a.feature||(a.feature={}),t=i.brush||(i.brush={}),o=t.type||(t.type=[]);o.push.apply(o,u),A(o),f&&!o.length&&o.push.apply(o,p)}function A(m){var f={};y.each(m,function(h){f[h]=1}),m.length=0,y.each(f,function(h,u){m.push(u)})}k.exports=x},rwxt:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=n("GdRQ");function p(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}function x(h,u){for(var a=0;a<u.length;a++){var i=u[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(h,i.key,i)}}function A(h,u,a){return u&&x(h.prototype,u),a&&x(h,a),h}var m=!y.supportsCursorURIs||y.isTouchDevice,f=function(){function h(){p(this,h),this._target=null,this._canvas=document.createElement("canvas"),m&&(this._canvas.style.position="fixed",this._canvas.style.zIndex="65535",this._canvas.style.pointerEvents="none",this._canvas.style.visibility="hidden"),this._position={x:0,y:0},this._hotSpot={x:0,y:0},this._eventHandlers={mouseover:this._handleMouseOver.bind(this),mouseleave:this._handleMouseLeave.bind(this),mousemove:this._handleMouseMove.bind(this),mouseup:this._handleMouseUp.bind(this)}}return A(h,[{key:"attach",value:function(a){if(this._target&&this.detach(),this._target=a,m){document.body.appendChild(this._canvas);var i={capture:!0,passive:!0};this._target.addEventListener("mouseover",this._eventHandlers.mouseover,i),this._target.addEventListener("mouseleave",this._eventHandlers.mouseleave,i),this._target.addEventListener("mousemove",this._eventHandlers.mousemove,i),this._target.addEventListener("mouseup",this._eventHandlers.mouseup,i)}this.clear()}},{key:"detach",value:function(){if(!this._target)return;if(m){var a={capture:!0,passive:!0};this._target.removeEventListener("mouseover",this._eventHandlers.mouseover,a),this._target.removeEventListener("mouseleave",this._eventHandlers.mouseleave,a),this._target.removeEventListener("mousemove",this._eventHandlers.mousemove,a),this._target.removeEventListener("mouseup",this._eventHandlers.mouseup,a),document.body.removeChild(this._canvas)}this._target=null}},{key:"change",value:function(a,i,t,o,e){if(o===0||e===0){this.clear();return}this._position.x=this._position.x+this._hotSpot.x-i,this._position.y=this._position.y+this._hotSpot.y-t,this._hotSpot.x=i,this._hotSpot.y=t;var l=this._canvas.getContext("2d");this._canvas.width=o,this._canvas.height=e;var r;try{r=new ImageData(new Uint8ClampedArray(a),o,e)}catch(c){r=l.createImageData(o,e),r.data.set(new Uint8ClampedArray(a))}if(l.clearRect(0,0,o,e),l.putImageData(r,0,0),m)this._updatePosition();else{var s=this._canvas.toDataURL();this._target.style.cursor="url("+s+")"+i+" "+t+", default"}}},{key:"clear",value:function(){this._target.style.cursor="none",this._canvas.width=0,this._canvas.height=0,this._position.x=this._position.x+this._hotSpot.x,this._position.y=this._position.y+this._hotSpot.y,this._hotSpot.x=0,this._hotSpot.y=0}},{key:"move",value:function(a,i){if(!m)return;window.visualViewport?(this._position.x=a+window.visualViewport.offsetLeft,this._position.y=i+window.visualViewport.offsetTop):(this._position.x=a,this._position.y=i),this._updatePosition();var t=document.elementFromPoint(a,i);this._updateVisibility(t)}},{key:"_handleMouseOver",value:function(a){this._handleMouseMove(a)}},{key:"_handleMouseLeave",value:function(a){this._updateVisibility(a.relatedTarget)}},{key:"_handleMouseMove",value:function(a){this._updateVisibility(a.target),this._position.x=a.clientX-this._hotSpot.x,this._position.y=a.clientY-this._hotSpot.y,this._updatePosition()}},{key:"_handleMouseUp",value:function(a){var i=this,t=document.elementFromPoint(a.clientX,a.clientY);this._updateVisibility(t),this._captureIsActive()&&window.setTimeout(function(){if(!i._target)return;t=document.elementFromPoint(a.clientX,a.clientY),i._updateVisibility(t)},0)}},{key:"_showCursor",value:function(){this._canvas.style.visibility==="hidden"&&(this._canvas.style.visibility="")}},{key:"_hideCursor",value:function(){this._canvas.style.visibility!=="hidden"&&(this._canvas.style.visibility="hidden")}},{key:"_shouldShowCursor",value:function(a){return a?a===this._target?!0:this._target.contains(a)?!(window.getComputedStyle(a).cursor!=="none"):!1:!1}},{key:"_updateVisibility",value:function(a){this._captureIsActive()&&(a=document.captureElement),this._shouldShowCursor(a)?this._showCursor():this._hideCursor()}},{key:"_updatePosition",value:function(){this._canvas.style.left=this._position.x+"px",this._canvas.style.top=this._position.y+"px"}},{key:"_captureIsActive",value:function(){return document.captureElement&&document.documentElement.contains(document.captureElement)}}]),h}();D.default=f},rySg:function(k,D,n){n("SMc4"),n("8nMs")},s2MQ:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};D.default=y},s2lz:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("IwbS"),A=n("gPAo"),m=n("VaxA"),f=n("9hCq"),h=n("SgGq"),u=n("mFDi"),a=n("Fofx"),i=n("5s0K"),t=n("KCsZ"),o=n("7aKB"),e=o.windowOpen,l=p.bind,r=x.Group,s=x.Rect,c=p.each,d=3,g=["label"],v=["emphasis","label"],b=["upperLabel"],S=["emphasis","upperLabel"],E=10,C=1,_=2,T=t([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),w=function(F){var P=T(F);return P.stroke=P.fill=P.lineWidth=null,P},O=y.extendChartView({type:"treemap",init:function(F,P){this._containerGroup,this._storage=I(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(F,P,X,B){var j=P.findComponents({mainType:"series",subType:"treemap",query:B});if(p.indexOf(j,F)<0)return;this.seriesModel=F,this.api=X,this.ecModel=P;var W=["treemapZoomToNode","treemapRootToNode"],z=m.retrieveTargetInfo(B,W,F),V=B&&B.type,Q=F.layoutInfo,G=!this._oldTree,ee=this._storage,ce=V==="treemapRootToNode"&&z&&ee?{rootNodeGroup:ee.nodeGroup[z.node.getRawIndex()],direction:B.direction}:null,be=this._giveContainerGroup(Q),le=this._doRender(be,F,ce);!G&&(!V||V==="treemapZoomToNode"||V==="treemapRootToNode")?this._doAnimation(be,le,F,ce):le.renderFinally(),this._resetController(X),this._renderBreadcrumb(F,X,z)},_giveContainerGroup:function(F){var P=this._containerGroup;return P||(P=this._containerGroup=new r,this._initEvents(P),this.group.add(P)),P.attr("position",[F.x,F.y]),P},_doRender:function(F,P,X){var B=P.getData().tree,j=this._oldTree,W=I(),z=I(),V=this._storage,Q=[],G=p.curry(R,P,z,V,X,W,Q);ce(B.root?[B.root]:[],j&&j.root?[j.root]:[],F,B===j||!j,0);var ee=be(V);return this._oldTree=B,this._storage=z,{lastsForAnimation:W,willDeleteEls:ee,renderFinally:le};function ce(Ie,ke,Re,Qe,We){Qe?(ke=Ie,c(Ie,function(oe,st){!oe.isRemoved()&&Oe(st,st)})):new A(ke,Ie,ot,ot).add(Oe).update(Oe).remove(p.curry(Oe,null)).execute();function ot(oe){return oe.getId()}function Oe(oe,st){var he=oe!=null?Ie[oe]:null,J=st!=null?ke[st]:null,Y=G(he,J,Re,We);Y&&ce(he&&he.viewChildren||[],J&&J.viewChildren||[],Y,Qe,We+1)}}function be(Ie){var ke=I();return Ie&&c(Ie,function(Re,Qe){var We=ke[Qe];c(Re,function(ot){ot&&(We.push(ot),ot.__tmWillDelete=1)})}),ke}function le(){c(ee,function(Ie){c(Ie,function(ke){ke.parent&&ke.parent.remove(ke)})}),c(Q,function(Ie){Ie.invisible=!0,Ie.dirty()})}},_doAnimation:function(F,P,X,B){if(!X.get("animation"))return;var j=X.get("animationDurationUpdate"),W=X.get("animationEasing"),z=i.createWrap();c(P.willDeleteEls,function(V,Q){c(V,function(G,ee){if(G.invisible)return;var ce=G.parent,be;if(B&&B.direction==="drillDown")be=ce===B.rootNodeGroup?{shape:{x:0,y:0,width:ce.__tmNodeWidth,height:ce.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var le=0,Ie=0;ce.__tmWillDelete||(le=ce.__tmNodeWidth/2,Ie=ce.__tmNodeHeight/2),be=Q==="nodeGroup"?{position:[le,Ie],style:{opacity:0}}:{shape:{x:le,y:Ie,width:0,height:0},style:{opacity:0}}}be&&z.add(G,be,j,W)})}),c(this._storage,function(V,Q){c(V,function(G,ee){var ce=P.lastsForAnimation[Q][ee],be={};if(!ce)return;Q==="nodeGroup"?ce.old&&(be.position=G.position.slice(),G.attr("position",ce.old)):(ce.old&&(be.shape=p.extend({},G.shape),G.setShape(ce.old)),ce.fadein?(G.setStyle("opacity",0),be.style={opacity:1}):G.style.opacity!==1&&(be.style={opacity:1})),z.add(G,be,j,W)})},this),this._state="animating",z.done(l(function(){this._state="ready",P.renderFinally()},this)).start()},_resetController:function(F){var P=this._controller;P||(P=this._controller=new h(F.getZr()),P.enable(this.seriesModel.get("roam")),P.on("pan",l(this._onPan,this)),P.on("zoom",l(this._onZoom,this)));var X=new u(0,0,F.getWidth(),F.getHeight());P.setPointerChecker(function(B,j,W){return X.contain(j,W)})},_clearController:function(){var F=this._controller;F&&(F.dispose(),F=null)},_onPan:function(F){if(this._state!=="animating"&&(Math.abs(F.dx)>d||Math.abs(F.dy)>d)){var P=this.seriesModel.getData().tree.root;if(!P)return;var X=P.getLayout();if(!X)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:X.x+F.dx,y:X.y+F.dy,width:X.width,height:X.height}})}},_onZoom:function(F){var P=F.originX,X=F.originY;if(this._state!=="animating"){var B=this.seriesModel.getData().tree.root;if(!B)return;var j=B.getLayout();if(!j)return;var W=new u(j.x,j.y,j.width,j.height),z=this.seriesModel.layoutInfo;P-=z.x,X-=z.y;var V=a.create();a.translate(V,V,[-P,-X]),a.scale(V,V,[F.scale,F.scale]),a.translate(V,V,[P,X]),W.applyTransform(V),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:W.x,y:W.y,width:W.width,height:W.height}})}},_initEvents:function(F){F.on("click",function(P){if(this._state!=="ready")return;var X=this.seriesModel.get("nodeClick",!0);if(!X)return;var B=this.findTarget(P.offsetX,P.offsetY);if(!B)return;var j=B.node;if(j.getLayout().isLeafRoot)this._rootToNode(B);else if(X==="zoomToNode")this._zoomToNode(B);else if(X==="link"){var W=j.hostTree.data.getItemModel(j.dataIndex),z=W.get("link",!0),V=W.get("target",!0)||"blank";z&&e(z,V)}},this)},_renderBreadcrumb:function(F,P,X){X||(X=F.get("leafDepth",!0)!=null?{node:F.getViewRoot()}:this.findTarget(P.getWidth()/2,P.getHeight()/2),X||(X={node:F.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new f(this.group))).render(F,P,X.node,l(B,this));function B(j){this._state!=="animating"&&(m.aboveViewRoot(F.getViewRoot(),j)?this._rootToNode({node:j}):this._zoomToNode({node:j}))}},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=I(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(F){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:F.node})},_rootToNode:function(F){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:F.node})},findTarget:function(F,P){var X,B=this.seriesModel.getViewRoot();return B.eachNode({attr:"viewChildren",order:"preorder"},function(j){var W=this._storage.background[j.getRawIndex()];if(W){var z=W.transformCoordToLocal(F,P),V=W.shape;if(V.x<=z[0]&&z[0]<=V.x+V.width&&V.y<=z[1]&&z[1]<=V.y+V.height)X={node:j,offsetX:z[0],offsetY:z[1]};else return!1}},this),X}});function I(){return{nodeGroup:[],background:[],content:[]}}function R(F,P,X,B,j,W,z,V,Q,G){if(!z)return;var ee=z.getLayout(),ce=F.getData();if(ce.setItemGraphicEl(z.dataIndex,null),!ee||!ee.isInView)return;var be=ee.width,le=ee.height,Ie=ee.borderWidth,ke=ee.invisible,Re=z.getRawIndex(),Qe=V&&V.getRawIndex(),We=z.viewChildren,ot=ee.upperHeight,Oe=We&&We.length,oe=z.getModel("itemStyle"),st=z.getModel("emphasis.itemStyle"),he=me("nodeGroup",r);if(!he)return;if(Q.add(he),he.attr("position",[ee.x||0,ee.y||0]),he.__tmNodeWidth=be,he.__tmNodeHeight=le,ee.isAboveViewRoot)return he;var J=z.getModel(),Y=me("background",s,G,C);if(Y&&fe(he,Y,Oe&&ee.upperLabelHeight),Oe)x.isHighDownDispatcher(he)&&x.setAsHighDownDispatcher(he,!1),Y&&(x.setAsHighDownDispatcher(Y,!0),ce.setItemGraphicEl(z.dataIndex,Y));else{var $=me("content",s,G,_);$&&we(he,$),Y&&x.isHighDownDispatcher(Y)&&x.setAsHighDownDispatcher(Y,!1),x.setAsHighDownDispatcher(he,!0),ce.setItemGraphicEl(z.dataIndex,he)}return he;function fe(At,ht,Ke){if(ht.dataIndex=z.dataIndex,ht.seriesIndex=F.seriesIndex,ht.setShape({x:0,y:0,width:be,height:le}),ke)Ne(ht);else{ht.invisible=!1;var Jt=z.getVisual("borderColor",!0),ct=st.get("borderColor"),Gt=w(oe);Gt.fill=Jt;var dr=T(st);if(dr.fill=ct,Ke){var zt=be-2*Ie;Ee(Gt,dr,Jt,zt,ot,{x:Ie,y:0,width:zt,height:ot})}else Gt.text=dr.text=null;ht.setStyle(Gt),x.setElementHoverStyle(ht,dr)}At.add(ht)}function we(At,ht){ht.dataIndex=z.dataIndex,ht.seriesIndex=F.seriesIndex;var Ke=Math.max(be-2*Ie,0),Jt=Math.max(le-2*Ie,0);if(ht.culling=!0,ht.setShape({x:Ie,y:Ie,width:Ke,height:Jt}),ke)Ne(ht);else{ht.invisible=!1;var ct=z.getVisual("color",!0),Gt=w(oe);Gt.fill=ct;var dr=T(st);Ee(Gt,dr,ct,Ke,Jt),ht.setStyle(Gt),x.setElementHoverStyle(ht,dr)}At.add(ht)}function Ne(At){!At.invisible&&W.push(At)}function Ee(At,ht,Ke,Jt,ct,Gt){var dr=J.get("name"),zt=J.getModel(Gt?b:g),kt=J.getModel(Gt?S:v),Vt=zt.getShallow("show");x.setLabelStyle(At,ht,zt,kt,{defaultText:Vt?dr:null,autoColor:Ke,isRectText:!0,labelFetcher:F,labelDataIndex:z.dataIndex,labelProp:Gt?"upperLabel":"label"}),de(At,Gt,ee),de(ht,Gt,ee),Gt&&(At.textRect=p.clone(Gt)),At.truncate=Vt&&zt.get("ellipsis")?{outerWidth:Jt,outerHeight:ct,minChar:2}:null}function de(At,ht,Ke){var Jt=At.text;if(!ht&&Ke.isLeafRoot&&Jt!=null){var ct=F.get("drillDownIcon",!0);At.text=ct?ct+" "+Jt:Jt}}function me(At,ht,Ke,Jt){var ct=Qe!=null&&X[At][Qe],Gt=j[At];return ct?(X[At][Qe]=null,Le(Gt,ct,At)):ke||(ct=new ht({z:M(Ke,Jt)}),ct.__tmDepth=Ke,ct.__tmStorageName=At,tt(Gt,ct,At)),P[At][Re]=ct}function Le(At,ht,Ke){var Jt=At[Re]={};Jt.old=Ke==="nodeGroup"?ht.position.slice():p.extend({},ht.shape)}function tt(At,ht,Ke){var Jt=At[Re]={},ct=z.parentNode;if(ct&&(!B||B.direction==="drillDown")){var Gt=0,dr=0,zt=j.background[ct.getRawIndex()];!B&&zt&&zt.old&&(Gt=zt.old.width,dr=zt.old.height),Jt.old=Ke==="nodeGroup"?[0,dr]:{x:Gt,y:dr,width:0,height:0}}Jt.fadein=Ke!=="nodeGroup"}}function M(F,P){var X=F*E+P;return(X-1)/X}k.exports=O},sAZ8:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("+rIm"),A=n("/IIm"),m=n("9KIM"),f=n("IwbS"),h=["axisLine","axisTickLabel","axisName"],u=y.extendComponentView({type:"parallelAxis",init:function(e,l){u.superApply(this,"init",arguments),(this._brushController=new A(l.getZr())).on("brush",p.bind(this._onBrush,this))},render:function(e,l,r,s){if(a(e,l,s))return;this.axisModel=e,this.api=r,this.group.removeAll();var c=this._axisGroup;if(this._axisGroup=new f.Group,this.group.add(this._axisGroup),!e.get("show"))return;var d=t(e,l),g=d.coordinateSystem,v=e.getAreaSelectStyle(),b=v.width,S=e.axis.dim,E=g.getAxisLayout(S),C=p.extend({strokeContainThreshold:b},E),_=new x(e,C);p.each(h,_.add,_),this._axisGroup.add(_.getGroup()),this._refreshBrushController(C,v,e,d,b,r);var T=s&&s.animation===!1?null:e;f.groupTransition(c,this._axisGroup,T)},_refreshBrushController:function(e,l,r,s,c,d){var g=r.axis.getExtent(),v=g[1]-g[0],b=Math.min(30,Math.abs(v)*.1),S=f.BoundingRect.create({x:g[0],y:-c/2,width:v,height:c});S.x-=b,S.width+=2*b,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,position:e.position}).setPanels([{panelId:"pl",clipPath:m.makeRectPanelClipPath(S),isTargetByCursor:m.makeRectIsTargetByCursor(S,d,s),getLinearBrushOtherExtent:m.makeLinearBrushOtherExtent(S,0)}]).enableBrush({brushType:"lineX",brushStyle:l,removeOnClick:!0}).updateCovers(i(r))},_onBrush:function(e,l){var r=this.axisModel,s=r.axis,c=p.map(e,function(d){return[s.coordToData(d.range[0],!0),s.coordToData(d.range[1],!0)]});(!r.option.realtime===l.isEnd||l.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:r.id,intervals:c})},dispose:function(){this._brushController.dispose()}});function a(e,l,r){return r&&r.type==="axisAreaSelect"&&l.findComponents({mainType:"parallelAxis",query:r})[0]===e}function i(e){var l=e.axis;return p.map(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[l.dataToCoord(r[0],!0),l.dataToCoord(r[1],!0)]}})}function t(e,l){return l.getComponent("parallel",e.get("parallelIndex"))}var o=u;k.exports=o},sE09:function(k,D,n){},sEf8:function(k,D){function n(y){return function(p){return y(p)}}k.exports=n},sGsY:function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),A=n.n(x),m=n("q1tI"),f=n("TSYQ"),h=n.n(f),u=n("H84U"),a=n("B6l+"),i=n.n(a),t=function(z){var V=z.value,Q=z.formatter,G=z.precision,ee=z.decimalSeparator,ce=z.groupSeparator,be=ce===void 0?"":ce,le=z.prefixCls,Ie;if(typeof Q=="function")Ie=Q(V);else{var ke=String(V),Re=ke.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Re||ke==="-")Ie=ke;else{var Qe=Re[1],We=Re[2]||"0",ot=Re[4]||"";We=We.replace(/\B(?=(\d{3})+(?!\d))/g,be),typeof G=="number"&&(ot=i()(ot,G,"0").slice(0,G)),ot&&(ot="".concat(ee).concat(ot)),Ie=[m.createElement("span",{key:"int",className:"".concat(le,"-content-value-int")},Qe,We),ot&&m.createElement("span",{key:"decimal",className:"".concat(le,"-content-value-decimal")},ot)]}}return m.createElement("span",{className:"".concat(le,"-content-value")},Ie)},o=t,e=function(z){var V=z.prefixCls,Q=z.className,G=z.style,ee=z.valueStyle,ce=z.value,be=ce===void 0?0:ce,le=z.title,Ie=z.valueRender,ke=z.prefix,Re=z.suffix,Qe=z.direction,We=z.onMouseEnter,ot=z.onMouseLeave,Oe=m.createElement(o,A()({},z,{value:be})),oe=h()(V,Q,p()({},"".concat(V,"-rtl"),Qe==="rtl"));return m.createElement("div",{className:oe,style:G,onMouseEnter:We,onMouseLeave:ot},le&&m.createElement("div",{className:"".concat(V,"-title")},le),m.createElement("div",{style:ee,className:"".concat(V,"-content")},ke&&m.createElement("span",{className:"".concat(V,"-content-prefix")},ke),Ie?Ie(Oe):Oe,Re&&m.createElement("span",{className:"".concat(V,"-content-suffix")},Re)))};e.defaultProps={decimalSeparator:".",groupSeparator:","};var l=Object(u.c)({prefixCls:"statistic"})(e),r=l,s=n("lwsE"),c=n.n(s),d=n("W8MJ"),g=n.n(d),v=n("7W2i"),b=n.n(v),S=n("LQ03"),E=n.n(S),C=n("J4zp"),_=n.n(C),T=n("QQZ/"),w=n.n(T),O=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function I(W,z){var V=W,Q=/\[[^\]]*]/g,G=(z.match(Q)||[]).map(function(le){return le.slice(1,-1)}),ee=z.replace(Q,"[]"),ce=O.reduce(function(le,Ie){var ke=_()(Ie,2),Re=ke[0],Qe=ke[1];if(le.indexOf(Re)!==-1){var We=Math.floor(V/Qe);return V-=We*Qe,le.replace(new RegExp("".concat(Re,"+"),"g"),function(ot){var Oe=ot.length;return w()(We.toString(),Oe,"0")})}return le},ee),be=0;return ce.replace(Q,function(){var le=G[be];return be+=1,le})}function R(W,z){var V=z.format,Q=V===void 0?"":V,G=new Date(W).getTime(),ee=Date.now(),ce=Math.max(G-ee,0);return I(ce,Q)}var M=n("0n0R"),F=1e3/30;function P(W){return new Date(W).getTime()}var X=function(W){b()(V,W);var z=E()(V);function V(){var Q;return c()(this,V),Q=z.apply(this,arguments),Q.syncTimer=function(){var G=Q.props.value,ee=P(G);ee>=Date.now()?Q.startTimer():Q.stopTimer()},Q.startTimer=function(){if(Q.countdownId)return;Q.countdownId=window.setInterval(function(){Q.forceUpdate()},F)},Q.stopTimer=function(){var G=Q.props,ee=G.onFinish,ce=G.value;if(Q.countdownId){clearInterval(Q.countdownId),Q.countdownId=void 0;var be=P(ce);ee&&be<Date.now()&&ee()}},Q.formatCountdown=function(G,ee){var ce=Q.props.format;return R(G,A()(A()({},ee),{format:ce}))},Q.valueRender=function(G){return Object(M.a)(G,{title:void 0})},Q}return g()(V,[{key:"componentDidMount",value:function(){this.syncTimer()}},{key:"componentDidUpdate",value:function(){this.syncTimer()}},{key:"componentWillUnmount",value:function(){this.stopTimer()}},{key:"render",value:function(){return m.createElement(r,A()({valueRender:this.valueRender},this.props,{formatter:this.formatCountdown}))}}]),V}(m.Component);X.defaultProps={format:"HH:mm:ss"};var B=X;r.Countdown=B;var j=D.a=r},"sI3+":function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("Bqw1")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="MinusSquareOutlined";var i=A.forwardRef(a);D.default=i},"sK/D":function(k,D,n){var y=n("IwbS"),p=n("OELB"),x=p.round;function A(h,u,a){var i=h.getArea(),t=h.getBaseAxis().isHorizontal(),o=i.x,e=i.y,l=i.width,r=i.height,s=a.get("lineStyle.width")||2;o-=s/2,e-=s/2,l+=s,r+=s,o=Math.floor(o),l=Math.round(l);var c=new y.Rect({shape:{x:o,y:e,width:l,height:r}});return u&&(c.shape[t?"width":"height"]=0,y.initProps(c,{shape:{width:l,height:r}},a)),c}function m(h,u,a){var i=h.getArea(),t=new y.Sector({shape:{cx:x(h.cx,1),cy:x(h.cy,1),r0:x(i.r0,1),r:x(i.r,1),startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return u&&(t.shape.endAngle=i.startAngle,y.initProps(t,{shape:{endAngle:i.endAngle}},a)),t}function f(h,u,a){if(h){if(h.type==="polar")return m(h,u,a);if(h.type==="cartesian2d")return A(h,u,a)}else return null;return null}D.createGridClipPath=A,D.createPolarClipPath=m,D.createClipPath=f},sKgW:function(k,D){var n=9007199254740991,y=Math.floor;function p(x,A){var m="";if(!x||A<1||A>n)return m;do A%2&&(m+=x),A=y(A/2),A&&(x+=x);while(A);return m}k.exports=p},sPJy:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("AOa7"),A=n.n(x),m=n("lUTK"),f=n("qVdP")},sPtV:function(k,D,n){"use strict";n.d(D,"a",function(){return A});var y=n("q1tI"),p=n.n(y),x=n("hkKa");function A(m){var f=y.useRef(m),h=Object(x.a)();return[function(){return f.current},function(u){f.current=u,h()}]}},sRwP:function(k,D,n){n("jsU+"),n("2548"),n("Tp9H"),n("06DH"),n("dnwI"),n("fE02"),n("33Ds")},"sS/r":function(k,D,n){var y=n("4fz+"),p=n("iRjW"),x=n("Yl7c"),A=function(){this.group=new y,this.uid=p.getUID("viewComponent")};A.prototype={constructor:A,init:function(h,u){},render:function(h,u,a,i){},dispose:function(){},filterForExposedEvent:null};var m=A.prototype;m.updateView=m.updateLayout=m.updateVisual=function(h,u,a,i){},x.enableClassExtend(A),x.enableClassManagement(A,{registerWhenExtend:!0});var f=A;k.exports=f},"sW+o":function(k,D,n){var y=n("SrGk"),p=n("bYtY"),x=n("SUKs"),A=n("Qe9p");function m(h,u){y.call(this,h,u,["linearGradient","radialGradient"],"__gradient_in_use__")}p.inherits(m,y),m.prototype.addWithoutUpdate=function(h,u){if(u&&u.style){var a=this;p.each(["fill","stroke"],function(i){if(u.style[i]&&(u.style[i].type==="linear"||u.style[i].type==="radial")){var t=u.style[i],o=a.getDefs(!0),e;t._dom?(e=t._dom,o.contains(t._dom)||a.addDom(e)):e=a.add(t),a.markUsed(u);var l=e.getAttribute("id");h.setAttribute(i,"url(#"+l+")")}})}},m.prototype.add=function(h){var u;if(h.type==="linear")u=this.createElement("linearGradient");else if(h.type==="radial")u=this.createElement("radialGradient");else return x("Illegal gradient type."),null;return h.id=h.id||this.nextId++,u.setAttribute("id","zr"+this._zrId+"-gradient-"+h.id),this.updateDom(h,u),this.addDom(u),u},m.prototype.update=function(h){var u=this;y.prototype.update.call(this,h,function(){var a=h.type,i=h._dom.tagName;a==="linear"&&i==="linearGradient"||a==="radial"&&i==="radialGradient"?u.updateDom(h,h._dom):(u.removeDom(h),u.add(h))})},m.prototype.updateDom=function(h,u){if(h.type==="linear")u.setAttribute("x1",h.x),u.setAttribute("y1",h.y),u.setAttribute("x2",h.x2),u.setAttribute("y2",h.y2);else if(h.type==="radial")u.setAttribute("cx",h.x),u.setAttribute("cy",h.y),u.setAttribute("r",h.r);else{x("Illegal gradient type.");return}h.global?u.setAttribute("gradientUnits","userSpaceOnUse"):u.setAttribute("gradientUnits","objectBoundingBox"),u.innerHTML="";for(var a=h.colorStops,i=0,t=a.length;i<t;++i){var o=this.createElement("stop");o.setAttribute("offset",a[i].offset*100+"%");var e=a[i].color;if(e.indexOf("rgba">-1)){var l=A.parse(e)[3],r=A.toHex(e);o.setAttribute("stop-color","#"+r),o.setAttribute("stop-opacity",l)}else o.setAttribute("stop-color",a[i].color);u.appendChild(o)}h._dom=u},m.prototype.markUsed=function(h){if(h.style){var u=h.style.fill;u&&u._dom&&y.prototype.markUsed.call(this,u._dom),u=h.style.stroke,u&&u._dom&&y.prototype.markUsed.call(this,u._dom)}};var f=m;k.exports=f},sdST:function(k,D,n){var y=n("hi0g");function p(x,A){return A=A||{},y(A.coordDimensions||[],x,{dimsDef:A.dimensionsDefine||x.dimensionsDefine,encodeDef:A.encodeDefine||x.encodeDefine,dimCount:A.dimensionsCount,encodeDefaulter:A.encodeDefaulter,generateCoord:A.generateCoord,generateCoordCount:A.generateCoordCount})}k.exports=p},seXi:function(k,D,n){var y=n("qZTm"),p=1,x=Object.prototype,A=x.hasOwnProperty;function m(f,h,u,a,i,t){var o=u&p,e=y(f),l=e.length,r=y(h),s=r.length;if(l!=s&&!o)return!1;for(var c=l;c--;){var d=e[c];if(!(o?d in h:A.call(h,d)))return!1}var g=t.get(f),v=t.get(h);if(g&&v)return g==h&&v==f;var b=!0;t.set(f,h),t.set(h,f);for(var S=o;++c<l;){d=e[c];var E=f[d],C=h[d];if(a)var _=o?a(C,E,d,h,f,t):a(E,C,d,f,h,t);if(!(_===void 0?E===C||i(E,C,u,a,t):_)){b=!1;break}S||(S=d=="constructor")}if(b&&!S){var T=f.constructor,w=h.constructor;T!=w&&"constructor"in f&&"constructor"in h&&!(typeof T=="function"&&T instanceof T&&typeof w=="function"&&w instanceof w)&&(b=!1)}return t.delete(f),t.delete(h),b}k.exports=m},shjB:function(k,D){var n=9007199254740991;function y(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=n}k.exports=y},sjKO:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=x;var y=30,p=12;function x(A,m){var f,h,u,a,i,t,o,e,l,r,s,c,d,g,v,b,S,E,C,_,T,w,O,I,R;f=A.state,h=A.next_in,I=A.input,u=h+(A.avail_in-5),a=A.next_out,R=A.output,i=a-(m-A.avail_out),t=a+(A.avail_out-257),o=f.dmax,e=f.wsize,l=f.whave,r=f.wnext,s=f.window,c=f.hold,d=f.bits,g=f.lencode,v=f.distcode,b=(1<<f.lenbits)-1,S=(1<<f.distbits)-1;e:do{d<15&&(c+=I[h++]<<d,d+=8,c+=I[h++]<<d,d+=8),E=g[c&b];t:for(;;){if(C=E>>>24,c>>>=C,d-=C,C=E>>>16&255,C===0)R[a++]=E&65535;else if(C&16){_=E&65535,C&=15,C&&(d<C&&(c+=I[h++]<<d,d+=8),_+=c&(1<<C)-1,c>>>=C,d-=C),d<15&&(c+=I[h++]<<d,d+=8,c+=I[h++]<<d,d+=8),E=v[c&S];r:for(;;){if(C=E>>>24,c>>>=C,d-=C,C=E>>>16&255,C&16){if(T=E&65535,C&=15,d<C&&(c+=I[h++]<<d,d+=8,d<C&&(c+=I[h++]<<d,d+=8)),T+=c&(1<<C)-1,T>o){A.msg="invalid distance too far back",f.mode=y;break e}if(c>>>=C,d-=C,C=a-i,T>C){if(C=T-C,C>l&&f.sane){A.msg="invalid distance too far back",f.mode=y;break e}if(w=0,O=s,r===0){if(w+=e-C,C<_){_-=C;do R[a++]=s[w++];while(--C);w=a-T,O=R}}else if(r<C){if(w+=e+r-C,C-=r,C<_){_-=C;do R[a++]=s[w++];while(--C);if(w=0,r<_){C=r,_-=C;do R[a++]=s[w++];while(--C);w=a-T,O=R}}}else if(w+=r-C,C<_){_-=C;do R[a++]=s[w++];while(--C);w=a-T,O=R}for(;_>2;)R[a++]=O[w++],R[a++]=O[w++],R[a++]=O[w++],_-=3;_&&(R[a++]=O[w++],_>1&&(R[a++]=O[w++]))}else{w=a-T;do R[a++]=R[w++],R[a++]=R[w++],R[a++]=R[w++],_-=3;while(_>2);_&&(R[a++]=R[w++],_>1&&(R[a++]=R[w++]))}}else if((C&64)===0){E=v[(E&65535)+(c&(1<<C)-1)];continue r}else{A.msg="invalid distance code",f.mode=y;break e}break}}else if((C&64)===0){E=g[(E&65535)+(c&(1<<C)-1)];continue t}else if(C&32){f.mode=p;break e}else{A.msg="invalid literal/length code",f.mode=y;break e}break}}while(h<u&&a<t);_=d>>3,h-=_,d-=_<<3,c&=(1<<d)-1,A.next_in=h,A.next_out=a,A.avail_in=h<u?5+(u-h):5-(h-u),A.avail_out=a<t?257+(t-a):257-(a-t),f.hold=c,f.bits=d;return}},szbU:function(k,D,n){var y=n("bYtY"),p=y.each;function x(m){var f=m&&m.visualMap;y.isArray(f)||(f=f?[f]:[]),p(f,function(h){if(!h)return;A(h,"splitList")&&!A(h,"pieces")&&(h.pieces=h.splitList,delete h.splitList);var u=h.pieces;u&&y.isArray(u)&&p(u,function(a){y.isObject(a)&&(A(a,"start")&&!A(a,"min")&&(a.min=a.start),A(a,"end")&&!A(a,"max")&&(a.max=a.end))})})}function A(m,f){return m&&m.hasOwnProperty&&m.hasOwnProperty(f)}k.exports=x},t23M:function(k,D,n){"use strict";var y=n("wx14"),p=n("q1tI"),x=n("Zm9Q"),A=n("Kwbf"),m=n("VTBJ"),f=n("c+Xe"),h=n("m+aA"),u=n("bdgK"),a=new Map;function i(R){R.forEach(function(M){var F,P=M.target;(F=a.get(P))===null||F===void 0||F.forEach(function(X){return X(P)})})}var t=new u.default(i),o=null,e=null;function l(R,M){a.has(R)||(a.set(R,new Set),t.observe(R)),a.get(R).add(M)}function r(R,M){a.has(R)&&(a.get(R).delete(M),a.get(R).size||(t.unobserve(R),a.delete(R)))}var s=n("1OyB"),c=n("vuIU"),d=n("Ji7U"),g=n("LK+K"),v=function(R){Object(d.a)(F,R);var M=Object(g.a)(F);function F(){return Object(s.a)(this,F),M.apply(this,arguments)}return Object(c.a)(F,[{key:"render",value:function(){return this.props.children}}]),F}(p.Component),b=p.createContext(null);function S(R){var M=R.children,F=R.onBatchResize,P=p.useRef(0),X=p.useRef([]),B=p.useContext(b),j=p.useCallback(function(W,z,V){P.current+=1;var Q=P.current;X.current.push({size:W,element:z,data:V}),Promise.resolve().then(function(){Q===P.current&&(F==null||F(X.current),X.current=[])}),B==null||B(W,z,V)},[F,B]);return p.createElement(b.Provider,{value:j},M)}function E(R,M){var F=R.children,P=R.disabled,X=p.useRef(null),B=p.useRef(null),j=p.useContext(b),W=typeof F=="function",z=W?F(X):F,V=p.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Q=!W&&p.isValidElement(z)&&Object(f.c)(z),G=Q?z.ref:null,ee=p.useMemo(function(){return Object(f.a)(G,X)},[G,X]),ce=function(){return Object(h.a)(X.current)||Object(h.a)(B.current)};p.useImperativeHandle(M,function(){return ce()});var be=p.useRef(R);be.current=R;var le=p.useCallback(function(Ie){var ke=be.current,Re=ke.onResize,Qe=ke.data,We=Ie.getBoundingClientRect(),ot=We.width,Oe=We.height,oe=Ie.offsetWidth,st=Ie.offsetHeight,he=Math.floor(ot),J=Math.floor(Oe);if(V.current.width!==he||V.current.height!==J||V.current.offsetWidth!==oe||V.current.offsetHeight!==st){var Y={width:he,height:J,offsetWidth:oe,offsetHeight:st};V.current=Y;var $=oe===Math.round(ot)?ot:oe,fe=st===Math.round(Oe)?Oe:st,we=Object(m.a)(Object(m.a)({},Y),{},{offsetWidth:$,offsetHeight:fe});j==null||j(we,Ie,Qe),Re&&Promise.resolve().then(function(){Re(we,Ie)})}},[]);return p.useEffect(function(){var Ie=ce();return Ie&&!P&&l(Ie,le),function(){return r(Ie,le)}},[X.current,P]),p.createElement(v,{ref:B},Q?p.cloneElement(z,{ref:ee}):z)}var C=p.forwardRef(E),_=C,T="rc-observer-key";function w(R,M){var F=R.children,P=typeof F=="function"?[F]:Object(x.a)(F);return P.map(function(X,B){var j=(X==null?void 0:X.key)||"".concat(T,"-").concat(B);return p.createElement(_,Object(y.a)({},R,{key:j,ref:B===0?M:void 0}),X)})}var O=p.forwardRef(w);O.Collection=S;var I=D.a=O},t3Fx:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=Object.assign||function(s){for(var c=1;c<arguments.length;c++){var d=arguments[c];for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(s[g]=d[g])}return s},p=function(){function s(c,d){for(var g=0;g<d.length;g++){var v=d[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(c,v.key,v)}}return function(c,d,g){return d&&s(c.prototype,d),g&&s(c,g),c}}(),x=n("q1tI"),A=t(x),m=n("17x9"),f=t(m),h=n("tkwv"),u=t(h),a=n("u3os"),i=n("kzFp");function t(s){return s&&s.__esModule?s:{default:s}}function o(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")}function e(s,c){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:s}function l(s,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);s.prototype=Object.create(c&&c.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(s,c):s.__proto__=c)}var r=function(s){l(c,s);function c(d){o(this,c);var g=e(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,d));return g.getEchartsInstance=function(){return g.echartsLib.getInstanceByDom(g.echartsElement)||g.echartsLib.init(g.echartsElement,g.props.theme,g.props.opts)},g.dispose=function(){if(g.echartsElement){try{(0,a.clear)(g.echartsElement)}catch(v){console.warn(v)}g.echartsLib.dispose(g.echartsElement)}},g.rerender=function(){var v=g.props,b=v.onEvents,S=v.onChartReady,E=g.renderEchartDom();g.bindEvents(E,b||{}),typeof S=="function"&&g.props.onChartReady(E),g.echartsElement&&(0,a.bind)(g.echartsElement,function(){try{E.resize()}catch(C){console.warn(C)}})},g.bindEvents=function(v,b){var S=function(_,T){typeof _=="string"&&typeof T=="function"&&v.on(_,function(w){T(w,v)})};for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&S(E,b[E])},g.renderEchartDom=function(){var v=g.getEchartsInstance();return v.setOption(g.props.option,g.props.notMerge||!1,g.props.lazyUpdate||!1),g.props.showLoading?v.showLoading(g.props.loadingOption||null):v.hideLoading(),v},g.echartsLib=d.echarts,g.echartsElement=null,g}return p(c,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function(g){if(typeof this.props.shouldSetOption=="function"&&!this.props.shouldSetOption(g,this.props))return;if(!(0,u.default)(g.theme,this.props.theme)||!(0,u.default)(g.opts,this.props.opts)||!(0,u.default)(g.onEvents,this.props.onEvents)){this.dispose(),this.rerender();return}var v=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if((0,u.default)((0,i.pick)(this.props,v),(0,i.pick)(g,v)))return;var b=this.renderEchartDom();if(!(0,u.default)(g.style,this.props.style)||!(0,u.default)(g.className,this.props.className))try{b.resize()}catch(S){console.warn(S)}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var g=this,v=this.props,b=v.style,S=v.className,E=y({height:300},b);return A.default.createElement("div",{ref:function(_){g.echartsElement=_},style:E,className:"echarts-for-react "+S})}}]),c}(x.Component);D.default=r,r.propTypes={option:f.default.object.isRequired,echarts:f.default.object,notMerge:f.default.bool,lazyUpdate:f.default.bool,style:f.default.object,className:f.default.string,theme:f.default.oneOfType([f.default.string,f.default.object]),onChartReady:f.default.func,showLoading:f.default.bool,loadingOption:f.default.object,onEvents:f.default.object,opts:f.default.shape({devicePixelRatio:f.default.number,renderer:f.default.oneOf(["canvas","svg"]),width:f.default.oneOfType([f.default.number,f.default.oneOf([null,void 0,"auto"])]),height:f.default.oneOfType([f.default.number,f.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:f.default.func},r.defaultProps={echarts:{},notMerge:!1,lazyUpdate:!1,style:{},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{},opts:{},shouldSetOption:function(){return!0}}},tBnm:function(k,D,n){var y=n("bYtY"),p=n("IwbS"),x=n("Qxkt"),A=n("Znkb"),m=n("+rIm"),f=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function h(t,o,e){o[1]>o[0]&&(o=o.slice().reverse());var l=t.coordToPoint([o[0],e]),r=t.coordToPoint([o[1],e]);return{x1:l[0],y1:l[1],x2:r[0],y2:r[1]}}function u(t){var o=t.getRadiusAxis();return o.inverse?0:1}function a(t){var o=t[0],e=t[t.length-1];o&&e&&Math.abs(Math.abs(o.coord-e.coord)-360)<1e-4&&t.pop()}var i=A.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,o){if(this.group.removeAll(),!t.get("show"))return;var e=t.axis,l=e.polar,r=l.getRadiusAxis().getExtent(),s=e.getTicksCoords(),c=e.getMinorTicksCoords(),d=y.map(e.getViewLabels(),function(g){var g=y.clone(g);return g.coord=e.dataToCoord(g.tickValue),g});a(d),a(s),y.each(f,function(g){t.get(g+".show")&&(!e.scale.isBlank()||g==="axisLine")&&this["_"+g](t,l,s,c,r,d)},this)},_axisLine:function(t,o,e,l,r){var s=t.getModel("axisLine.lineStyle"),c=u(o),d=c?0:1,g;r[d]===0?g=new p.Circle({shape:{cx:o.cx,cy:o.cy,r:r[c]},style:s.getLineStyle(),z2:1,silent:!0}):g=new p.Ring({shape:{cx:o.cx,cy:o.cy,r:r[c],r0:r[d]},style:s.getLineStyle(),z2:1,silent:!0}),g.style.fill=null,this.group.add(g)},_axisTick:function(t,o,e,l,r){var s=t.getModel("axisTick"),c=(s.get("inside")?-1:1)*s.get("length"),d=r[u(o)],g=y.map(e,function(v){return new p.Line({shape:h(o,[d,d+c],v.coord)})});this.group.add(p.mergePath(g,{style:y.defaults(s.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_minorTick:function(t,o,e,l,r){if(!l.length)return;for(var s=t.getModel("axisTick"),c=t.getModel("minorTick"),d=(s.get("inside")?-1:1)*c.get("length"),g=r[u(o)],v=[],b=0;b<l.length;b++)for(var S=0;S<l[b].length;S++)v.push(new p.Line({shape:h(o,[g,g+d],l[b][S].coord)}));this.group.add(p.mergePath(v,{style:y.defaults(c.getModel("lineStyle").getLineStyle(),y.defaults(s.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}))}))},_axisLabel:function(t,o,e,l,r,s){var c=t.getCategories(!0),d=t.getModel("axisLabel"),g=d.get("margin"),v=t.get("triggerEvent");y.each(s,function(b,S){var E=d,C=b.tickValue,_=r[u(o)],T=o.coordToPoint([_+g,b.coord]),w=o.cx,O=o.cy,I=Math.abs(T[0]-w)/_<.3?"center":T[0]>w?"left":"right",R=Math.abs(T[1]-O)/_<.3?"middle":T[1]>O?"top":"bottom";c&&c[C]&&c[C].textStyle&&(E=new x(c[C].textStyle,d,d.ecModel));var M=new p.Text({silent:m.isLabelSilent(t)});this.group.add(M),p.setTextStyle(M.style,E,{x:T[0],y:T[1],textFill:E.getTextColor()||t.get("axisLine.lineStyle.color"),text:b.formattedLabel,textAlign:I,textVerticalAlign:R}),v&&(M.eventData=m.makeAxisEventDataBase(t),M.eventData.targetType="axisLabel",M.eventData.value=b.rawLabel)},this)},_splitLine:function(t,o,e,l,r){var s=t.getModel("splitLine"),c=s.getModel("lineStyle"),d=c.get("color"),g=0;d=d instanceof Array?d:[d];for(var v=[],b=0;b<e.length;b++){var S=g++%d.length;v[S]=v[S]||[],v[S].push(new p.Line({shape:h(o,r,e[b].coord)}))}for(var b=0;b<v.length;b++)this.group.add(p.mergePath(v[b],{style:y.defaults({stroke:d[b%d.length]},c.getLineStyle()),silent:!0,z:t.get("z")}))},_minorSplitLine:function(t,o,e,l,r){if(!l.length)return;for(var s=t.getModel("minorSplitLine"),c=s.getModel("lineStyle"),d=[],g=0;g<l.length;g++)for(var v=0;v<l[g].length;v++)d.push(new p.Line({shape:h(o,r,l[g][v].coord)}));this.group.add(p.mergePath(d,{style:c.getLineStyle(),silent:!0,z:t.get("z")}))},_splitArea:function(t,o,e,l,r){if(!e.length)return;var s=t.getModel("splitArea"),c=s.getModel("areaStyle"),d=c.get("color"),g=0;d=d instanceof Array?d:[d];for(var v=[],b=Math.PI/180,S=-e[0].coord*b,E=Math.min(r[0],r[1]),C=Math.max(r[0],r[1]),_=t.get("clockwise"),T=1;T<e.length;T++){var w=g++%d.length;v[w]=v[w]||[],v[w].push(new p.Sector({shape:{cx:o.cx,cy:o.cy,r0:E,r:C,startAngle:S,endAngle:-e[T].coord*b,clockwise:_},silent:!0})),S=-e[T].coord*b}for(var T=0;T<v.length;T++)this.group.add(p.mergePath(v[T],{style:y.defaults({fill:d[T%d.length]},c.getAreaStyle()),silent:!0}))}});k.exports=i},tMB7:function(k,D,n){var y=n("y1pI");function p(x){var A=this.__data__,m=y(A,x);return m<0?void 0:A[m][1]}k.exports=p},tVnJ:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("ugBc")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="CalendarOutlined";var i=A.forwardRef(a);D.default=i},tadb:function(k,D,n){var y=n("Cwc5"),p=n("Kz5y"),x=y(p,"DataView");k.exports=x},tceW:function(k,D,n){var y=n("KCsZ"),p=y([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),x={getBarItemStyle:function(A){var m=p(this,A);if(this.getBorderLineDash){var f=this.getBorderLineDash();f&&(m.lineDash=f)}return m}};k.exports=x},tkwv:function(k,D,n){"use strict";var y=Array.isArray,p=Object.keys,x=Object.prototype.hasOwnProperty;k.exports=function A(m,f){if(m===f)return!0;if(m&&f&&typeof m=="object"&&typeof f=="object"){var h=y(m),u=y(f),a,i,t;if(h&&u){if(i=m.length,i!=f.length)return!1;for(a=i;a--!==0;)if(!A(m[a],f[a]))return!1;return!0}if(h!=u)return!1;var o=m instanceof Date,e=f instanceof Date;if(o!=e)return!1;if(o&&e)return m.getTime()==f.getTime();var l=m instanceof RegExp,r=f instanceof RegExp;if(l!=r)return!1;if(l&&r)return m.toString()==f.toString();var s=p(m);if(i=s.length,i!==p(f).length)return!1;for(a=i;a--!==0;)if(!x.call(f,s[a]))return!1;for(a=i;a--!==0;)if(t=s[a],!A(m[t],f[t]))return!1;return!0}return m!==m&&f!==f}},txkQ:function(k,D,n){var y=n("aX58");D.zrender=y;var p=n("Fofx");D.matrix=p;var x=n("QBsz");D.vector=x;var A=n("bYtY"),m=n("Qe9p");D.color=m;var f=n("IwbS"),h=n("OELB");D.number=h;var u=n("7aKB");D.format=u;var a=n("iLNv"),i=a.throttle;D.throttle=a.throttle;var t=n("FUi9");D.helper=t;var o=n("vafp");D.parseGeoJSON=o;var e=n("YXkt");D.List=e;var l=n("Qxkt");D.Model=l;var r=n("hM6l");D.Axis=r;var s=n("ItGF");D.env=s;var c=o,d={};A.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(v){d[v]=A[v]});var g={};A.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],function(v){g[v]=f[v]}),D.parseGeoJson=c,D.util=d,D.graphic=g},u3DP:function(k,D,n){var y=n("6GrX"),p=n("OELB"),x=p.parsePercent,A=Math.PI/180;function m(a,i,t,o,e,l,r,s,c,d){a.sort(function(I,R){return I.y-R.y});function g(I,R,M,F){for(var P=I;P<R&&!(a[P].y+M>c+r);P++)if(a[P].y+=M,P>I&&P+1<R&&a[P+1].y>a[P].y+a[P].height){v(P,M/2);return}v(R-1,M/2)}function v(I,R){for(var M=I;M>=0&&!(a[M].y-R<c);M--)if(a[M].y-=R,M>0&&a[M].y>a[M-1].y+a[M-1].height)break}function b(I,R,M,F,P,X){for(var B=(X>0,R?Number.MAX_VALUE:0),j=0,W=I.length;j<W;j++){if(I[j].labelAlignTo!=="none")continue;var z=Math.abs(I[j].y-F),V=I[j].len,Q=I[j].len2,G=z<P+V?Math.sqrt((P+V+Q)*(P+V+Q)-z*z):Math.abs(I[j].x-M);R&&G>=B&&(G=B-10),!R&&G<=B&&(G=B+10),I[j].x=M+G*X,B=G}}for(var S=0,E,C=a.length,_=[],T=[],w=0;w<C;w++){if(a[w].position==="outer"&&a[w].labelAlignTo==="labelLine"){var O=a[w].x-d;a[w].linePoints[1][0]+=O,a[w].x=d}E=a[w].y-S,E<0&&g(w,C,-E,e),S=a[w].y+a[w].height}r-S<0&&v(C-1,S-r);for(var w=0;w<C;w++)a[w].y>=t?T.push(a[w]):_.push(a[w]);b(_,!1,i,t,o,e),b(T,!0,i,t,o,e)}function f(a,i,t,o,e,l,r,s){for(var c=[],d=[],g=Number.MAX_VALUE,v=-Number.MAX_VALUE,b=0;b<a.length;b++){if(h(a[b]))continue;a[b].x<i?(g=Math.min(g,a[b].x),c.push(a[b])):(v=Math.max(v,a[b].x),d.push(a[b]))}m(d,i,t,o,1,e,l,r,s,v),m(c,i,t,o,-1,e,l,r,s,g);for(var b=0;b<a.length;b++){var S=a[b];if(h(S))continue;var E=S.linePoints;if(E){var C=S.labelAlignTo==="edge",_=S.textRect.width,T;C?S.x<i?T=E[2][0]-S.labelDistance-r-S.labelMargin:T=r+e-S.labelMargin-E[2][0]-S.labelDistance:S.x<i?T=S.x-r-S.bleedMargin:T=r+e-S.x-S.bleedMargin,T<S.textRect.width&&(S.text=y.truncateText(S.text,T,S.font),S.labelAlignTo==="edge"&&(_=y.getWidth(S.text,S.font)));var w=E[1][0]-E[2][0];C?S.x<i?E[2][0]=r+S.labelMargin+_+S.labelDistance:E[2][0]=r+e-S.labelMargin-_-S.labelDistance:(S.x<i?E[2][0]=S.x+S.labelDistance:E[2][0]=S.x-S.labelDistance,E[1][0]=E[2][0]+w),E[1][1]=E[2][1]=S.y}}}function h(a){return a.position==="center"}function u(a,i,t,o,e,l){var r=a.getData(),s=[],c,d,g=!1,v=(a.get("minShowLabelAngle")||0)*A;r.each(function(b){var S=r.getItemLayout(b),E=r.getItemModel(b),C=E.getModel("label"),_=C.get("position")||E.get("emphasis.label.position"),T=C.get("distanceToLabelLine"),w=C.get("alignTo"),O=x(C.get("margin"),t),I=C.get("bleedMargin"),R=C.getFont(),M=E.getModel("labelLine"),F=M.get("length");F=x(F,t);var P=M.get("length2");if(P=x(P,t),S.angle<v)return;var X=(S.startAngle+S.endAngle)/2,B=Math.cos(X),j=Math.sin(X),W,z,V,Q;c=S.cx,d=S.cy;var G=a.getFormattedLabel(b,"normal")||r.getName(b),ee=y.getBoundingRect(G,R,Q,"top"),ce=_==="inside"||_==="inner";if(_==="center")W=S.cx,z=S.cy,Q="center";else{var be=(ce?(S.r+S.r0)/2*B:S.r*B)+c,le=(ce?(S.r+S.r0)/2*j:S.r*j)+d;if(W=be+B*3,z=le+j*3,!ce){var Ie=be+B*(F+i-S.r),ke=le+j*(F+i-S.r),Re=Ie+(B<0?-1:1)*P,Qe=ke;w==="edge"?W=B<0?e+O:e+t-O:W=Re+(B<0?-T:T),z=Qe,V=[[be,le],[Ie,ke],[Re,Qe]]}Q=ce?"center":w==="edge"?B>0?"right":"left":B>0?"left":"right"}var We,ot=C.get("rotate");typeof ot=="number"?We=ot*(Math.PI/180):We=ot?B<0?-X+Math.PI:-X:0,g=!!We,S.label={x:W,y:z,position:_,height:ee.height,len:F,len2:P,linePoints:V,textAlign:Q,verticalAlign:"middle",rotation:We,inside:ce,labelDistance:T,labelAlignTo:w,labelMargin:O,bleedMargin:I,textRect:ee,text:G,font:R},ce||s.push(S.label)}),!g&&a.get("avoidLabelOverlap")&&f(s,c,d,i,t,o,e,l)}k.exports=u},u3os:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ver=D.clear=D.bind=void 0;var y=n("P4Qj"),p=function(f,h){var u=(0,y.getSensor)(f);return u.bind(h),function(){u.unbind(h)}};D.bind=p;var x=function(f){var h=(0,y.getSensor)(f);(0,y.removeSensor)(h)};D.clear=x;var A="1.0.1";D.ver=A},u8Dt:function(k,D,n){var y=n("YESw"),p="__lodash_hash_undefined__",x=Object.prototype,A=x.hasOwnProperty;function m(f){var h=this.__data__;if(y){var u=h[f];return u===p?void 0:u}return A.call(h,f)?h[f]:void 0}k.exports=m},uAnK:function(k,D,n){var y=n("bYtY"),p=n("Kagy"),x=n("KxfA"),A=x.retrieveRawValue;function m(f,h){var u=h.getModel("aria");if(u.get("show")){if(u.get("description")){f.setAttribute("aria-label",u.get("description"));return}}else return;var a=0;h.eachSeries(function(b,S){++a},this);var i=u.get("data.maxCount")||10,t=u.get("series.maxCount")||10,o=Math.min(a,t),e;if(a<1)return;var l=g();l?e=c(d("general.withTitle"),{title:l}):e=d("general.withoutTitle");var r=[],s=a>1?"series.multiple.prefix":"series.single.prefix";e+=c(d(s),{seriesCount:a}),h.eachSeries(function(b,S){if(S<o){var E,C=b.get("name"),_="series."+(a>1?"multiple":"single")+".";E=d(C?_+"withName":_+"withoutName"),E=c(E,{seriesId:b.seriesIndex,seriesName:b.get("name"),seriesType:v(b.subType)});var T=b.getData();window.data=T,T.count()>i?E+=c(d("data.partialData"),{displayCnt:i}):E+=d("data.allData");for(var w=[],O=0;O<T.count();O++)if(O<i){var I=T.getName(O),R=A(T,O);w.push(c(d(I?"data.withName":"data.withoutName"),{name:I,value:R}))}E+=w.join(d("data.separator.middle"))+d("data.separator.end"),r.push(E)}}),e+=r.join(d("series.multiple.separator.middle"))+d("series.multiple.separator.end"),f.setAttribute("aria-label",e);function c(b,S){if(typeof b!="string")return b;var E=b;return y.each(S,function(C,_){E=E.replace(new RegExp("\\{\\s*"+_+"\\s*\\}","g"),C)}),E}function d(b){var S=u.get(b);if(S==null){for(var E=b.split("."),C=p.aria,_=0;_<E.length;++_)C=C[E[_]];return C}else return S}function g(){var b=h.getModel("title").option;return b&&b.length&&(b=b[0]),b&&b.text}function v(b){return p.series.typeNames[b]||"\u81EA\u5B9A\u4E49\u56FE"}}k.exports=m},uGsb:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("MlIO"),n("1uat"))})(this,function(y){return function(){var p=y,x=p.x64,A=x.Word,m=x.WordArray,f=p.algo,h=f.SHA512,u=f.SHA384=h.extend({_doReset:function(){this._hash=new m.init([new A.init(3418070365,3238371032),new A.init(1654270250,914150663),new A.init(2438529370,812702999),new A.init(355462360,4144912697),new A.init(1731405415,4290775857),new A.init(2394180231,1750603025),new A.init(3675008525,1694076839),new A.init(1203062813,3204075428)])},_doFinalize:function(){var i=h._doFinalize.call(this);return i.sigBytes-=16,i}});p.SHA384=h._createHelper(u),p.HmacSHA384=h._createHmacHelper(u)}(),y.SHA384})},uGxW:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("OLod"))})(this,function(y){return y.pad.NoPadding={pad:function(){},unpad:function(){}},y.pad.NoPadding})},uK0f:function(k,D,n){(function(y,p){k.exports=p()})(this,function(){"use strict";function y(p,x,A){A=A||{},A.childrenKeyName=A.childrenKeyName||"children";var m=p||[],f=[],h=0;do{var u=m.filter(function(a){return x(a,h)})[0];if(!u)break;f.push(u),m=u[A.childrenKeyName]||[],h+=1}while(m.length>0);return f}return y})},uOyE:function(k,D,n){var y=n("ProS");y.registerAction({type:"brush",event:"brush"},function(p,x){x.eachComponent({mainType:"brush",query:p},function(A){A.setAreas(p.areas)})}),y.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){}),y.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},function(){})},uQRt:function(k,D,n){k.exports=y;function y(){return n("gaXo"),{}}},uciX:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("wx14"),x=n("1OyB"),A=n("vuIU"),m=n("JX7q"),f=n("Ji7U"),h=n("LK+K"),u=n("rePB"),a=n("q1tI"),i=n("i8i4"),t=n.n(i),o=n("wgJM"),e=n("l4aY"),l=n("m+aA"),r=n("c+Xe"),s=n("zT1h"),c=n("QC+M"),d=n("TSYQ"),g=n.n(d);function v(oe,st,he){return he?oe[0]===st[0]:oe[0]===st[0]&&oe[1]===st[1]}function b(oe,st,he){var J=oe[st]||{};return Object(y.a)(Object(y.a)({},J),he)}function S(oe,st,he,J){for(var Y=he.points,$=Object.keys(oe),fe=0;fe<$.length;fe+=1){var we=$[fe];if(v(oe[we].points,Y,J))return"".concat(st,"-placement-").concat(we)}return""}var E=n("ODXe"),C=n("Ff2n"),_=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var oe=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(oe)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(oe==null?void 0:oe.substr(0,4))},T=n("8XRh");function w(oe){var st=oe.prefixCls,he=oe.motion,J=oe.animation,Y=oe.transitionName;return he||(J?{motionName:"".concat(st,"-").concat(J)}:Y?{motionName:Y}:null)}function O(oe){var st=oe.prefixCls,he=oe.visible,J=oe.zIndex,Y=oe.mask,$=oe.maskMotion,fe=oe.maskAnimation,we=oe.maskTransitionName;if(!Y)return null;var Ne={};return($||we||fe)&&(Ne=Object(y.a)({motionAppear:!0},w({motion:$,prefixCls:st,transitionName:we,animation:fe}))),a.createElement(T.b,Object(p.a)({},Ne,{visible:he,removeOnLeave:!0}),function(Ee){var de=Ee.className;return a.createElement("div",{style:{zIndex:J},className:g()("".concat(st,"-mask"),de)})})}var I=n("9mu1"),R=n("TNol"),M=n("U8pU");function F(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */F=function(){return oe};var oe={},st=Object.prototype,he=st.hasOwnProperty,J=Object.defineProperty||function(He,ae,ft){He[ae]=ft.value},Y=typeof Symbol=="function"?Symbol:{},$=Y.iterator||"@@iterator",fe=Y.asyncIterator||"@@asyncIterator",we=Y.toStringTag||"@@toStringTag";function Ne(He,ae,ft){return Object.defineProperty(He,ae,{value:ft,enumerable:!0,configurable:!0,writable:!0}),He[ae]}try{Ne({},"")}catch(He){Ne=function(ft,Mt,mt){return ft[Mt]=mt}}function Ee(He,ae,ft,Mt){var mt=ae&&ae.prototype instanceof Le?ae:Le,or=Object.create(mt.prototype),vr=new pe(Mt||[]);return J(or,"_invoke",{value:zt(He,ft,vr)}),or}function de(He,ae,ft){try{return{type:"normal",arg:He.call(ae,ft)}}catch(Mt){return{type:"throw",arg:Mt}}}oe.wrap=Ee;var me={};function Le(){}function tt(){}function At(){}var ht={};Ne(ht,$,function(){return this});var Ke=Object.getPrototypeOf,Jt=Ke&&Ke(Ke(te([])));Jt&&Jt!==st&&he.call(Jt,$)&&(ht=Jt);var ct=At.prototype=Le.prototype=Object.create(ht);function Gt(He){["next","throw","return"].forEach(function(ae){Ne(He,ae,function(ft){return this._invoke(ae,ft)})})}function dr(He,ae){function ft(mt,or,vr,fn){var sr=de(He[mt],He,or);if(sr.type!=="throw"){var Ir=sr.arg,lr=Ir.value;return lr&&Object(M.a)(lr)=="object"&&he.call(lr,"__await")?ae.resolve(lr.__await).then(function(Wt){ft("next",Wt,vr,fn)},function(Wt){ft("throw",Wt,vr,fn)}):ae.resolve(lr).then(function(Wt){Ir.value=Wt,vr(Ir)},function(Wt){return ft("throw",Wt,vr,fn)})}fn(sr.arg)}var Mt;J(this,"_invoke",{value:function(or,vr){function fn(){return new ae(function(sr,Ir){ft(or,vr,sr,Ir)})}return Mt=Mt?Mt.then(fn,fn):fn()}})}function zt(He,ae,ft){var Mt="suspendedStart";return function(mt,or){if(Mt==="executing")throw new Error("Generator is already running");if(Mt==="completed"){if(mt==="throw")throw or;return $e()}for(ft.method=mt,ft.arg=or;;){var vr=ft.delegate;if(vr){var fn=kt(vr,ft);if(fn){if(fn===me)continue;return fn}}if(ft.method==="next")ft.sent=ft._sent=ft.arg;else if(ft.method==="throw"){if(Mt==="suspendedStart")throw Mt="completed",ft.arg;ft.dispatchException(ft.arg)}else ft.method==="return"&&ft.abrupt("return",ft.arg);Mt="executing";var sr=de(He,ae,ft);if(sr.type==="normal"){if(Mt=ft.done?"completed":"suspendedYield",sr.arg===me)continue;return{value:sr.arg,done:ft.done}}sr.type==="throw"&&(Mt="completed",ft.method="throw",ft.arg=sr.arg)}}}function kt(He,ae){var ft=ae.method,Mt=He.iterator[ft];if(Mt===void 0)return ae.delegate=null,ft==="throw"&&He.iterator.return&&(ae.method="return",ae.arg=void 0,kt(He,ae),ae.method==="throw")||ft!=="return"&&(ae.method="throw",ae.arg=new TypeError("The iterator does not provide a '"+ft+"' method")),me;var mt=de(Mt,He.iterator,ae.arg);if(mt.type==="throw")return ae.method="throw",ae.arg=mt.arg,ae.delegate=null,me;var or=mt.arg;return or?or.done?(ae[He.resultName]=or.value,ae.next=He.nextLoc,ae.method!=="return"&&(ae.method="next",ae.arg=void 0),ae.delegate=null,me):or:(ae.method="throw",ae.arg=new TypeError("iterator result is not an object"),ae.delegate=null,me)}function Vt(He){var ae={tryLoc:He[0]};1 in He&&(ae.catchLoc=He[1]),2 in He&&(ae.finallyLoc=He[2],ae.afterLoc=He[3]),this.tryEntries.push(ae)}function Xe(He){var ae=He.completion||{};ae.type="normal",delete ae.arg,He.completion=ae}function pe(He){this.tryEntries=[{tryLoc:"root"}],He.forEach(Vt,this),this.reset(!0)}function te(He){if(He){var ae=He[$];if(ae)return ae.call(He);if(typeof He.next=="function")return He;if(!isNaN(He.length)){var ft=-1,Mt=function mt(){for(;++ft<He.length;)if(he.call(He,ft))return mt.value=He[ft],mt.done=!1,mt;return mt.value=void 0,mt.done=!0,mt};return Mt.next=Mt}}return{next:$e}}function $e(){return{value:void 0,done:!0}}return tt.prototype=At,J(ct,"constructor",{value:At,configurable:!0}),J(At,"constructor",{value:tt,configurable:!0}),tt.displayName=Ne(At,we,"GeneratorFunction"),oe.isGeneratorFunction=function(He){var ae=typeof He=="function"&&He.constructor;return!!ae&&(ae===tt||(ae.displayName||ae.name)==="GeneratorFunction")},oe.mark=function(He){return Object.setPrototypeOf?Object.setPrototypeOf(He,At):(He.__proto__=At,Ne(He,we,"GeneratorFunction")),He.prototype=Object.create(ct),He},oe.awrap=function(He){return{__await:He}},Gt(dr.prototype),Ne(dr.prototype,fe,function(){return this}),oe.AsyncIterator=dr,oe.async=function(He,ae,ft,Mt,mt){mt===void 0&&(mt=Promise);var or=new dr(Ee(He,ae,ft,Mt),mt);return oe.isGeneratorFunction(ae)?or:or.next().then(function(vr){return vr.done?vr.value:or.next()})},Gt(ct),Ne(ct,we,"Generator"),Ne(ct,$,function(){return this}),Ne(ct,"toString",function(){return"[object Generator]"}),oe.keys=function(He){var ae=Object(He),ft=[];for(var Mt in ae)ft.push(Mt);return ft.reverse(),function mt(){for(;ft.length;){var or=ft.pop();if(or in ae)return mt.value=or,mt.done=!1,mt}return mt.done=!0,mt}},oe.values=te,pe.prototype={constructor:pe,reset:function(ae){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(Xe),!ae)for(var ft in this)ft.charAt(0)==="t"&&he.call(this,ft)&&!isNaN(+ft.slice(1))&&(this[ft]=void 0)},stop:function(){this.done=!0;var ae=this.tryEntries[0].completion;if(ae.type==="throw")throw ae.arg;return this.rval},dispatchException:function(ae){if(this.done)throw ae;var ft=this;function Mt(Ir,lr){return vr.type="throw",vr.arg=ae,ft.next=Ir,lr&&(ft.method="next",ft.arg=void 0),!!lr}for(var mt=this.tryEntries.length-1;mt>=0;--mt){var or=this.tryEntries[mt],vr=or.completion;if(or.tryLoc==="root")return Mt("end");if(or.tryLoc<=this.prev){var fn=he.call(or,"catchLoc"),sr=he.call(or,"finallyLoc");if(fn&&sr){if(this.prev<or.catchLoc)return Mt(or.catchLoc,!0);if(this.prev<or.finallyLoc)return Mt(or.finallyLoc)}else if(fn){if(this.prev<or.catchLoc)return Mt(or.catchLoc,!0)}else{if(!sr)throw new Error("try statement without catch or finally");if(this.prev<or.finallyLoc)return Mt(or.finallyLoc)}}}},abrupt:function(ae,ft){for(var Mt=this.tryEntries.length-1;Mt>=0;--Mt){var mt=this.tryEntries[Mt];if(mt.tryLoc<=this.prev&&he.call(mt,"finallyLoc")&&this.prev<mt.finallyLoc){var or=mt;break}}or&&(ae==="break"||ae==="continue")&&or.tryLoc<=ft&&ft<=or.finallyLoc&&(or=null);var vr=or?or.completion:{};return vr.type=ae,vr.arg=ft,or?(this.method="next",this.next=or.finallyLoc,me):this.complete(vr)},complete:function(ae,ft){if(ae.type==="throw")throw ae.arg;return ae.type==="break"||ae.type==="continue"?this.next=ae.arg:ae.type==="return"?(this.rval=this.arg=ae.arg,this.method="return",this.next="end"):ae.type==="normal"&&ft&&(this.next=ft),me},finish:function(ae){for(var ft=this.tryEntries.length-1;ft>=0;--ft){var Mt=this.tryEntries[ft];if(Mt.finallyLoc===ae)return this.complete(Mt.completion,Mt.afterLoc),Xe(Mt),me}},catch:function(ae){for(var ft=this.tryEntries.length-1;ft>=0;--ft){var Mt=this.tryEntries[ft];if(Mt.tryLoc===ae){var mt=Mt.completion;if(mt.type==="throw"){var or=mt.arg;Xe(Mt)}return or}}throw new Error("illegal catch attempt")},delegateYield:function(ae,ft,Mt){return this.delegate={iterator:te(ae),resultName:ft,nextLoc:Mt},this.method==="next"&&(this.arg=void 0),me}},oe}var P=n("HaE+"),X=n("dm2S"),B=["measure","alignPre","align",null,"motion"],j=function(oe,st){var he=Object(X.a)(null),J=Object(E.a)(he,2),Y=J[0],$=J[1],fe=Object(a.useRef)();function we(de){$(de,!0)}function Ne(){o.a.cancel(fe.current)}function Ee(de){Ne(),fe.current=Object(o.a)(function(){we(function(me){switch(Y){case"align":return"motion";case"motion":return"stable";default:}return me}),de==null||de()})}return Object(a.useEffect)(function(){we("measure")},[oe]),Object(a.useEffect)(function(){switch(Y){case"measure":st();break;default:}Y&&(fe.current=Object(o.a)(Object(P.a)(F().mark(function de(){var me,Le;return F().wrap(function(At){for(;;)switch(At.prev=At.next){case 0:me=B.indexOf(Y),Le=B[me+1],Le&&me!==-1&&we(Le);case 3:case"end":return At.stop()}},de)}))))},[Y]),Object(a.useEffect)(function(){return function(){Ne()}},[]),[Y,Ee]},W=function(oe){var st=a.useState({width:0,height:0}),he=Object(E.a)(st,2),J=he[0],Y=he[1];function $(we){var Ne=we.offsetWidth,Ee=we.offsetHeight,de=we.getBoundingClientRect(),me=de.width,Le=de.height;Math.abs(Ne-me)<1&&Math.abs(Ee-Le)<1&&(Ne=me,Ee=Le),Y({width:Ne,height:Ee})}var fe=a.useMemo(function(){var we={};if(oe){var Ne=J.width,Ee=J.height;oe.indexOf("height")!==-1&&Ee?we.height=Ee:oe.indexOf("minHeight")!==-1&&Ee&&(we.minHeight=Ee),oe.indexOf("width")!==-1&&Ne?we.width=Ne:oe.indexOf("minWidth")!==-1&&Ne&&(we.minWidth=Ne)}return we},[oe,J]);return[fe,$]},z=a.forwardRef(function(oe,st){var he=oe.visible,J=oe.prefixCls,Y=oe.className,$=oe.style,fe=oe.children,we=oe.zIndex,Ne=oe.stretch,Ee=oe.destroyPopupOnHide,de=oe.forceRender,me=oe.align,Le=oe.point,tt=oe.getRootDomNode,At=oe.getClassNameFromAlign,ht=oe.onAlign,Ke=oe.onMouseEnter,Jt=oe.onMouseLeave,ct=oe.onMouseDown,Gt=oe.onTouchStart,dr=oe.onClick,zt=Object(a.useRef)(),kt=Object(a.useRef)(),Vt=Object(a.useState)(),Xe=Object(E.a)(Vt,2),pe=Xe[0],te=Xe[1],$e=W(Ne),He=Object(E.a)($e,2),ae=He[0],ft=He[1];function Mt(){Ne&&ft(tt())}var mt=j(he,Mt),or=Object(E.a)(mt,2),vr=or[0],fn=or[1],sr=Object(a.useState)(0),Ir=Object(E.a)(sr,2),lr=Ir[0],Wt=Ir[1],xt=Object(a.useRef)();Object(R.a)(function(){vr==="alignPre"&&Wt(0)},[vr]);function rn(){return Le||tt}function Dn(){var _t;(_t=zt.current)===null||_t===void 0||_t.forceAlign()}function Xn(_t,Fe){var Pe=At(Fe);pe!==Pe&&te(Pe),Wt(function(Be){return Be+1}),vr==="align"&&(ht==null||ht(_t,Fe))}Object(R.a)(function(){vr==="align"&&(lr<3?Dn():fn(function(){var _t;(_t=xt.current)===null||_t===void 0||_t.call(xt)}))},[lr]);var ri=Object(y.a)({},w(oe));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(_t){var Fe=ri[_t];ri[_t]=function(Pe,Be){return fn(),Fe==null?void 0:Fe(Pe,Be)}});function Ui(){return new Promise(function(_t){xt.current=_t})}a.useEffect(function(){!ri.motionName&&vr==="motion"&&fn()},[ri.motionName,vr]),a.useImperativeHandle(st,function(){return{forceAlign:Dn,getElement:function(){return kt.current}}});var Bn=Object(y.a)(Object(y.a)({},ae),{},{zIndex:we,opacity:vr==="motion"||vr==="stable"||!he?void 0:0,pointerEvents:!he&&vr!=="stable"?"none":void 0},$),Jn=!0;me!=null&&me.points&&(vr==="align"||vr==="stable")&&(Jn=!1);var Xt=fe;return a.Children.count(fe)>1&&(Xt=a.createElement("div",{className:"".concat(J,"-content")},fe)),a.createElement(T.b,Object(p.a)({visible:he,ref:kt,leavedClassName:"".concat(J,"-hidden")},ri,{onAppearPrepare:Ui,onEnterPrepare:Ui,removeOnLeave:Ee,forceRender:de}),function(_t,Fe){var Pe=_t.className,Be=_t.style,nt=g()(J,Y,pe,Pe);return a.createElement(I.a,{target:rn(),key:"popup",ref:zt,monitorWindowResize:!0,disabled:Jn,align:me,onAlign:Xn},a.createElement("div",{ref:Fe,className:nt,onMouseEnter:Ke,onMouseLeave:Jt,onMouseDownCapture:ct,onTouchStartCapture:Gt,onClick:dr,style:Object(y.a)(Object(y.a)({},Be),Bn)},Xt))})});z.displayName="PopupInner";var V=z,Q=a.forwardRef(function(oe,st){var he=oe.prefixCls,J=oe.visible,Y=oe.zIndex,$=oe.children,fe=oe.mobile;fe=fe===void 0?{}:fe;var we=fe.popupClassName,Ne=fe.popupStyle,Ee=fe.popupMotion,de=Ee===void 0?{}:Ee,me=fe.popupRender,Le=oe.onClick,tt=a.useRef();a.useImperativeHandle(st,function(){return{forceAlign:function(){},getElement:function(){return tt.current}}});var At=Object(y.a)({zIndex:Y},Ne),ht=$;return a.Children.count($)>1&&(ht=a.createElement("div",{className:"".concat(he,"-content")},$)),me&&(ht=me(ht)),a.createElement(T.b,Object(p.a)({visible:J,ref:tt,removeOnLeave:!0},de),function(Ke,Jt){var ct=Ke.className,Gt=Ke.style,dr=g()(he,we,ct);return a.createElement("div",{ref:Jt,className:dr,onClick:Le,style:Object(y.a)(Object(y.a)({},Gt),At)},ht)})});Q.displayName="MobilePopupInner";var G=Q,ee=["visible","mobile"],ce=a.forwardRef(function(oe,st){var he=oe.visible,J=oe.mobile,Y=Object(C.a)(oe,ee),$=Object(a.useState)(he),fe=Object(E.a)($,2),we=fe[0],Ne=fe[1],Ee=Object(a.useState)(!1),de=Object(E.a)(Ee,2),me=de[0],Le=de[1],tt=Object(y.a)(Object(y.a)({},Y),{},{visible:we});Object(a.useEffect)(function(){Ne(he),he&&J&&Le(_())},[he,J]);var At=me?a.createElement(G,Object(p.a)({},tt,{mobile:J,ref:st})):a.createElement(V,Object(p.a)({},tt,{ref:st}));return a.createElement("div",null,a.createElement(O,tt),At)});ce.displayName="Popup";var be=ce,le=a.createContext(null),Ie=le;function ke(){}function Re(){return""}function Qe(oe){return oe?oe.ownerDocument:window.document}var We=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function ot(oe){var st=function(he){Object(f.a)(Y,he);var J=Object(h.a)(Y);function Y($){var fe;Object(x.a)(this,Y),fe=J.call(this,$),Object(u.a)(Object(m.a)(fe),"popupRef",a.createRef()),Object(u.a)(Object(m.a)(fe),"triggerRef",a.createRef()),Object(u.a)(Object(m.a)(fe),"portalContainer",void 0),Object(u.a)(Object(m.a)(fe),"attachId",void 0),Object(u.a)(Object(m.a)(fe),"clickOutsideHandler",void 0),Object(u.a)(Object(m.a)(fe),"touchOutsideHandler",void 0),Object(u.a)(Object(m.a)(fe),"contextMenuOutsideHandler1",void 0),Object(u.a)(Object(m.a)(fe),"contextMenuOutsideHandler2",void 0),Object(u.a)(Object(m.a)(fe),"mouseDownTimeout",void 0),Object(u.a)(Object(m.a)(fe),"focusTime",void 0),Object(u.a)(Object(m.a)(fe),"preClickTime",void 0),Object(u.a)(Object(m.a)(fe),"preTouchTime",void 0),Object(u.a)(Object(m.a)(fe),"delayTimer",void 0),Object(u.a)(Object(m.a)(fe),"hasPopupMouseDown",void 0),Object(u.a)(Object(m.a)(fe),"onMouseEnter",function(Ne){var Ee=fe.props.mouseEnterDelay;fe.fireEvents("onMouseEnter",Ne),fe.delaySetPopupVisible(!0,Ee,Ee?null:Ne)}),Object(u.a)(Object(m.a)(fe),"onMouseMove",function(Ne){fe.fireEvents("onMouseMove",Ne),fe.setPoint(Ne)}),Object(u.a)(Object(m.a)(fe),"onMouseLeave",function(Ne){fe.fireEvents("onMouseLeave",Ne),fe.delaySetPopupVisible(!1,fe.props.mouseLeaveDelay)}),Object(u.a)(Object(m.a)(fe),"onPopupMouseEnter",function(){fe.clearDelayTimer()}),Object(u.a)(Object(m.a)(fe),"onPopupMouseLeave",function(Ne){var Ee;if(Ne.relatedTarget&&!Ne.relatedTarget.setTimeout&&Object(e.a)((Ee=fe.popupRef.current)===null||Ee===void 0?void 0:Ee.getElement(),Ne.relatedTarget))return;fe.delaySetPopupVisible(!1,fe.props.mouseLeaveDelay)}),Object(u.a)(Object(m.a)(fe),"onFocus",function(Ne){fe.fireEvents("onFocus",Ne),fe.clearDelayTimer(),fe.isFocusToShow()&&(fe.focusTime=Date.now(),fe.delaySetPopupVisible(!0,fe.props.focusDelay))}),Object(u.a)(Object(m.a)(fe),"onMouseDown",function(Ne){fe.fireEvents("onMouseDown",Ne),fe.preClickTime=Date.now()}),Object(u.a)(Object(m.a)(fe),"onTouchStart",function(Ne){fe.fireEvents("onTouchStart",Ne),fe.preTouchTime=Date.now()}),Object(u.a)(Object(m.a)(fe),"onBlur",function(Ne){fe.fireEvents("onBlur",Ne),fe.clearDelayTimer(),fe.isBlurToHide()&&fe.delaySetPopupVisible(!1,fe.props.blurDelay)}),Object(u.a)(Object(m.a)(fe),"onContextMenu",function(Ne){Ne.preventDefault(),fe.fireEvents("onContextMenu",Ne),fe.setPopupVisible(!0,Ne)}),Object(u.a)(Object(m.a)(fe),"onContextMenuClose",function(){fe.isContextMenuToShow()&&fe.close()}),Object(u.a)(Object(m.a)(fe),"onClick",function(Ne){if(fe.fireEvents("onClick",Ne),fe.focusTime){var Ee;if(fe.preClickTime&&fe.preTouchTime?Ee=Math.min(fe.preClickTime,fe.preTouchTime):fe.preClickTime?Ee=fe.preClickTime:fe.preTouchTime&&(Ee=fe.preTouchTime),Math.abs(Ee-fe.focusTime)<20)return;fe.focusTime=0}fe.preClickTime=0,fe.preTouchTime=0,fe.isClickToShow()&&(fe.isClickToHide()||fe.isBlurToHide())&&Ne&&Ne.preventDefault&&Ne.preventDefault();var de=!fe.state.popupVisible;(fe.isClickToHide()&&!de||de&&fe.isClickToShow())&&fe.setPopupVisible(!fe.state.popupVisible,Ne)}),Object(u.a)(Object(m.a)(fe),"onPopupMouseDown",function(){if(fe.hasPopupMouseDown=!0,clearTimeout(fe.mouseDownTimeout),fe.mouseDownTimeout=window.setTimeout(function(){fe.hasPopupMouseDown=!1},0),fe.context){var Ne;(Ne=fe.context).onPopupMouseDown.apply(Ne,arguments)}}),Object(u.a)(Object(m.a)(fe),"onDocumentClick",function(Ne){if(fe.props.mask&&!fe.props.maskClosable)return;var Ee=Ne.target,de=fe.getRootDomNode(),me=fe.getPopupDomNode();(!Object(e.a)(de,Ee)||fe.isContextMenuOnly())&&!Object(e.a)(me,Ee)&&!fe.hasPopupMouseDown&&fe.close()}),Object(u.a)(Object(m.a)(fe),"getRootDomNode",function(){var Ne=fe.props.getTriggerDOMNode;if(Ne)return Ne(fe.triggerRef.current);try{var Ee=Object(l.a)(fe.triggerRef.current);if(Ee)return Ee}catch(de){}return t.a.findDOMNode(Object(m.a)(fe))}),Object(u.a)(Object(m.a)(fe),"getPopupClassNameFromAlign",function(Ne){var Ee=[],de=fe.props,me=de.popupPlacement,Le=de.builtinPlacements,tt=de.prefixCls,At=de.alignPoint,ht=de.getPopupClassNameFromAlign;return me&&Le&&Ee.push(S(Le,tt,Ne,At)),ht&&Ee.push(ht(Ne)),Ee.join(" ")}),Object(u.a)(Object(m.a)(fe),"getComponent",function(){var Ne=fe.props,Ee=Ne.prefixCls,de=Ne.destroyPopupOnHide,me=Ne.popupClassName,Le=Ne.onPopupAlign,tt=Ne.popupMotion,At=Ne.popupAnimation,ht=Ne.popupTransitionName,Ke=Ne.popupStyle,Jt=Ne.mask,ct=Ne.maskAnimation,Gt=Ne.maskTransitionName,dr=Ne.maskMotion,zt=Ne.zIndex,kt=Ne.popup,Vt=Ne.stretch,Xe=Ne.alignPoint,pe=Ne.mobile,te=Ne.forceRender,$e=Ne.onPopupClick,He=fe.state,ae=He.popupVisible,ft=He.point,Mt=fe.getPopupAlign(),mt={};return fe.isMouseEnterToShow()&&(mt.onMouseEnter=fe.onPopupMouseEnter),fe.isMouseLeaveToHide()&&(mt.onMouseLeave=fe.onPopupMouseLeave),mt.onMouseDown=fe.onPopupMouseDown,mt.onTouchStart=fe.onPopupMouseDown,a.createElement(be,Object(p.a)({prefixCls:Ee,destroyPopupOnHide:de,visible:ae,point:Xe&&ft,className:me,align:Mt,onAlign:Le,animation:At,getClassNameFromAlign:fe.getPopupClassNameFromAlign},mt,{stretch:Vt,getRootDomNode:fe.getRootDomNode,style:Ke,mask:Jt,zIndex:zt,transitionName:ht,maskAnimation:ct,maskTransitionName:Gt,maskMotion:dr,ref:fe.popupRef,motion:tt,mobile:pe,forceRender:te,onClick:$e}),typeof kt=="function"?kt():kt)}),Object(u.a)(Object(m.a)(fe),"attachParent",function(Ne){o.a.cancel(fe.attachId);var Ee=fe.props,de=Ee.getPopupContainer,me=Ee.getDocument,Le=fe.getRootDomNode(),tt;de?(Le||de.length===0)&&(tt=de(Le)):tt=me(fe.getRootDomNode()).body,tt?tt.appendChild(Ne):fe.attachId=Object(o.a)(function(){fe.attachParent(Ne)})}),Object(u.a)(Object(m.a)(fe),"getContainer",function(){if(!fe.portalContainer){var Ne=fe.props.getDocument,Ee=Ne(fe.getRootDomNode()).createElement("div");Ee.style.position="absolute",Ee.style.top="0",Ee.style.left="0",Ee.style.width="100%",fe.portalContainer=Ee}return fe.attachParent(fe.portalContainer),fe.portalContainer}),Object(u.a)(Object(m.a)(fe),"setPoint",function(Ne){var Ee=fe.props.alignPoint;if(!Ee||!Ne)return;fe.setState({point:{pageX:Ne.pageX,pageY:Ne.pageY}})}),Object(u.a)(Object(m.a)(fe),"handlePortalUpdate",function(){fe.state.prevPopupVisible!==fe.state.popupVisible&&fe.props.afterPopupVisibleChange(fe.state.popupVisible)}),Object(u.a)(Object(m.a)(fe),"triggerContextValue",{onPopupMouseDown:fe.onPopupMouseDown});var we;return"popupVisible"in $?we=!!$.popupVisible:we=!!$.defaultPopupVisible,fe.state={prevPopupVisible:we,popupVisible:we},We.forEach(function(Ne){fe["fire".concat(Ne)]=function(Ee){fe.fireEvents(Ne,Ee)}}),fe}return Object(A.a)(Y,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var fe=this.props,we=this.state;if(we.popupVisible){var Ne;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Ne=fe.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(s.a)(Ne,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Ne=Ne||fe.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(s.a)(Ne,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Ne=Ne||fe.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(s.a)(Ne,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(s.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),o.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var fe;return((fe=this.popupRef.current)===null||fe===void 0?void 0:fe.getElement())||null}},{key:"getPopupAlign",value:function(){var fe=this.props,we=fe.popupPlacement,Ne=fe.popupAlign,Ee=fe.builtinPlacements;return we&&Ee?b(Ee,we,Ne):Ne}},{key:"setPopupVisible",value:function(fe,we){var Ne=this.props.alignPoint,Ee=this.state.popupVisible;this.clearDelayTimer(),Ee!==fe&&("popupVisible"in this.props||this.setState({popupVisible:fe,prevPopupVisible:Ee}),this.props.onPopupVisibleChange(fe)),Ne&&we&&fe&&this.setPoint(we)}},{key:"delaySetPopupVisible",value:function(fe,we,Ne){var Ee=this,de=we*1e3;if(this.clearDelayTimer(),de){var me=Ne?{pageX:Ne.pageX,pageY:Ne.pageY}:null;this.delayTimer=window.setTimeout(function(){Ee.setPopupVisible(fe,me),Ee.clearDelayTimer()},de)}else this.setPopupVisible(fe,Ne)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(fe){var we=this.props.children.props,Ne=this.props;return we[fe]&&Ne[fe]?this["fire".concat(fe)]:we[fe]||Ne[fe]}},{key:"isClickToShow",value:function(){var fe=this.props,we=fe.action,Ne=fe.showAction;return we.indexOf("click")!==-1||Ne.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var fe=this.props.action;return fe==="contextMenu"||fe.length===1&&fe[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var fe=this.props,we=fe.action,Ne=fe.showAction;return we.indexOf("contextMenu")!==-1||Ne.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var fe=this.props,we=fe.action,Ne=fe.hideAction;return we.indexOf("click")!==-1||Ne.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var fe=this.props,we=fe.action,Ne=fe.showAction;return we.indexOf("hover")!==-1||Ne.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var fe=this.props,we=fe.action,Ne=fe.hideAction;return we.indexOf("hover")!==-1||Ne.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var fe=this.props,we=fe.action,Ne=fe.showAction;return we.indexOf("focus")!==-1||Ne.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var fe=this.props,we=fe.action,Ne=fe.hideAction;return we.indexOf("focus")!==-1||Ne.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var fe;(fe=this.popupRef.current)===null||fe===void 0||fe.forceAlign()}}},{key:"fireEvents",value:function(fe,we){var Ne=this.props.children.props[fe];Ne&&Ne(we);var Ee=this.props[fe];Ee&&Ee(we)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var fe=this.state.popupVisible,we=this.props,Ne=we.children,Ee=we.forceRender,de=we.alignPoint,me=we.className,Le=we.autoDestroy,tt=a.Children.only(Ne),At={key:"trigger"};this.isContextMenuToShow()?At.onContextMenu=this.onContextMenu:At.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(At.onClick=this.onClick,At.onMouseDown=this.onMouseDown,At.onTouchStart=this.onTouchStart):(At.onClick=this.createTwoChains("onClick"),At.onMouseDown=this.createTwoChains("onMouseDown"),At.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(At.onMouseEnter=this.onMouseEnter,de&&(At.onMouseMove=this.onMouseMove)):At.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?At.onMouseLeave=this.onMouseLeave:At.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(At.onFocus=this.onFocus,At.onBlur=this.onBlur):(At.onFocus=this.createTwoChains("onFocus"),At.onBlur=this.createTwoChains("onBlur"));var ht=g()(tt&&tt.props&&tt.props.className,me);ht&&(At.className=ht);var Ke=Object(y.a)({},At);Object(r.c)(tt)&&(Ke.ref=Object(r.a)(this.triggerRef,tt.ref));var Jt=a.cloneElement(tt,Ke),ct;return(fe||this.popupRef.current||Ee)&&(ct=a.createElement(oe,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!fe&&Le&&(ct=null),a.createElement(Ie.Provider,{value:this.triggerContextValue},Jt,ct)}}],[{key:"getDerivedStateFromProps",value:function(fe,we){var Ne=fe.popupVisible,Ee={};return Ne!==void 0&&we.popupVisible!==Ne&&(Ee.popupVisible=Ne,Ee.prevPopupVisible=we.popupVisible),Ee}}]),Y}(a.Component);return Object(u.a)(st,"contextType",Ie),Object(u.a)(st,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Re,getDocument:Qe,onPopupVisibleChange:ke,afterPopupVisibleChange:ke,onPopupAlign:ke,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),st}var Oe=D.a=ot(c.a)},ugBc:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};D.default=y},v56E:function(k,D,n){},v5uJ:function(k,D,n){var y=n("ProS"),p=n("2B6p"),x=p.updateCenterAndZoom;y.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(A,m){m.eachComponent({mainType:"series",subType:"tree",query:A},function(f){var h=A.dataIndex,u=f.getData().tree,a=u.getNodeByDataIndex(h);a.isExpand=!a.isExpand})}),y.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(A,m){m.eachComponent({mainType:"series",subType:"tree",query:A},function(f){var h=f.coordinateSystem,u=x(h,A);f.setCenter&&f.setCenter(u.center),f.setZoom&&f.setZoom(u.zoom)})})},"vF/C":function(k,D,n){var y=n("bLfw");y.registerSubTypeDefaulter("visualMap",function(p){return!p.categories&&(!(p.pieces?p.pieces.length>0:p.splitNumber>0)||p.calculable)?"continuous":"piecewise"})},vKoX:function(k,D,n){var y=n("SrGk"),p=n("bYtY");function x(f,h){y.call(this,f,h,["filter"],"__filter_in_use__","_shadowDom")}p.inherits(x,y),x.prototype.addWithoutUpdate=function(f,h){if(h&&A(h.style)){var u;if(h._shadowDom){u=h._shadowDom;var a=this.getDefs(!0);a.contains(h._shadowDom)||this.addDom(u)}else u=this.add(h);this.markUsed(h);var i=u.getAttribute("id");f.style.filter="url(#"+i+")"}},x.prototype.add=function(f){var h=this.createElement("filter");return f._shadowDomId=f._shadowDomId||this.nextId++,h.setAttribute("id","zr"+this._zrId+"-shadow-"+f._shadowDomId),this.updateDom(f,h),this.addDom(h),h},x.prototype.update=function(f,h){var u=h.style;if(A(u)){var a=this;y.prototype.update.call(this,h,function(){a.updateDom(h,h._shadowDom)})}else this.remove(f,h)},x.prototype.remove=function(f,h){h._shadowDomId!=null&&(this.removeDom(f),f.style.filter="")},x.prototype.updateDom=function(f,h){var u=h.getElementsByTagName("feDropShadow");u.length===0?u=this.createElement("feDropShadow"):u=u[0];var a=f.style,i=f.scale&&f.scale[0]||1,t=f.scale&&f.scale[1]||1,o,e,l,r;if(a.shadowBlur||a.shadowOffsetX||a.shadowOffsetY)o=a.shadowOffsetX||0,e=a.shadowOffsetY||0,l=a.shadowBlur,r=a.shadowColor;else if(a.textShadowBlur)o=a.textShadowOffsetX||0,e=a.textShadowOffsetY||0,l=a.textShadowBlur,r=a.textShadowColor;else{this.removeDom(h,a);return}u.setAttribute("dx",o/i),u.setAttribute("dy",e/t),u.setAttribute("flood-color",r);var s=l/2/i,c=l/2/t,d=s+" "+c;u.setAttribute("stdDeviation",d),h.setAttribute("x","-100%"),h.setAttribute("y","-100%"),h.setAttribute("width",Math.ceil(l/2*200)+"%"),h.setAttribute("height",Math.ceil(l/2*200)+"%"),h.appendChild(u),f._shadowDom=h},x.prototype.markUsed=function(f){f._shadowDom&&y.prototype.markUsed.call(this,f._shadowDom)};function A(f){return f&&(f.shadowBlur||f.shadowOffsetX||f.shadowOffsetY||f.textShadowBlur||f.textShadowOffsetX||f.textShadowOffsetY)}var m=x;k.exports=m},vL6D:function(k,D,n){var y=n("bYtY"),p=n("+rIm"),x=n("IwbS"),A=n("7bkD"),m=n("Znkb"),f=n("WN+l"),h=f.rectCoordAxisBuildSplitArea,u=f.rectCoordAxisHandleRemove,a=["axisLine","axisTickLabel","axisName"],i=["splitArea","splitLine"],t=m.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(e,l,r,s){var c=this.group;c.removeAll();var d=this._axisGroup;this._axisGroup=new x.Group;var g=A.layout(e),v=new p(e,g);y.each(a,v.add,v),c.add(this._axisGroup),c.add(v.getGroup()),y.each(i,function(b){e.get(b+".show")&&this["_"+b](e)},this),x.groupTransition(d,this._axisGroup,e),t.superCall(this,"render",e,l,r,s)},remove:function(){u(this)},_splitLine:function(e){var l=e.axis;if(l.scale.isBlank())return;var r=e.getModel("splitLine"),s=r.getModel("lineStyle"),c=s.get("width"),d=s.get("color");d=d instanceof Array?d:[d];for(var g=e.coordinateSystem.getRect(),v=l.isHorizontal(),b=[],S=0,E=l.getTicksCoords({tickModel:r}),C=[],_=[],T=0;T<E.length;++T){var w=l.toGlobalCoord(E[T].coord);v?(C[0]=w,C[1]=g.y,_[0]=w,_[1]=g.y+g.height):(C[0]=g.x,C[1]=w,_[0]=g.x+g.width,_[1]=w);var O=S++%d.length;b[O]=b[O]||[],b[O].push(new x.Line({subPixelOptimize:!0,shape:{x1:C[0],y1:C[1],x2:_[0],y2:_[1]},style:{lineWidth:c},silent:!0}))}for(var T=0;T<b.length;++T)this.group.add(x.mergePath(b[T],{style:{stroke:d[T%d.length],lineDash:s.getLineDash(c),lineWidth:c},silent:!0}))},_splitArea:function(e){h(this,this._axisGroup,e,e)}}),o=t;k.exports=o},vWvF:function(k,D,n){var y=n("Bq2U"),p=n("SUKs"),x=n("bYtY"),A=x.isString,m=x.isFunction,f=x.isObject,h=x.isArrayLike,u=x.indexOf,a=function(){this.animators=[]};a.prototype={constructor:a,animate:function(r,s){var c,d=!1,g=this,v=this.__zr;if(r){var b=r.split("."),S=g;d=b[0]==="shape";for(var E=0,C=b.length;E<C;E++){if(!S)continue;S=S[b[E]]}S&&(c=S)}else c=g;if(!c){p('Property "'+r+'" is not existed in element '+g.id);return}var _=g.animators,T=new y(c,s);return T.during(function(w){g.dirty(d)}).done(function(){_.splice(u(_,T),1)}),_.push(T),v&&v.animation.addAnimator(T),T},stopAnimation:function(r){for(var s=this.animators,c=s.length,d=0;d<c;d++)s[d].stop(r);return s.length=0,this},animateTo:function(r,s,c,d,g,v){i(this,r,s,c,d,g,v)},animateFrom:function(r,s,c,d,g,v){i(this,r,s,c,d,g,v,!0)}};function i(l,r,s,c,d,g,v,b){A(c)?(g=d,d=c,c=0):m(d)?(g=d,d="linear",c=0):m(c)?(g=c,c=0):m(s)?(g=s,s=500):s||(s=500),l.stopAnimation(),t(l,"",l,r,s,c,b);var S=l.animators.slice(),E=S.length;function C(){E--,E||g&&g()}E||g&&g();for(var _=0;_<S.length;_++)S[_].done(C).start(d,v)}function t(l,r,s,c,d,g,v){var b={},S=0;for(var E in c){if(!c.hasOwnProperty(E))continue;s[E]!=null?f(c[E])&&!h(c[E])?t(l,r?r+"."+E:E,s[E],c[E],d,g,v):(v?(b[E]=s[E],o(l,r,E,c[E])):b[E]=c[E],S++):c[E]!=null&&!v&&o(l,r,E,c[E])}S>0&&l.animate(r,!1).when(d==null?500:d,b).delay(g||0)}function o(l,r,s,c){if(!r)l.attr(s,c);else{var d={};d[r]={},d[r][s]=c,l.attr(d)}}var e=a;k.exports=e},vZ6x:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=n("IwbS"),m=n("4NO4"),f=n("9KIM"),h=x.each,u=x.indexOf,a=x.curry,i=["dataToPoint","pointToData"],t=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function o(T,w,O){var I=this._targetInfoList=[],R={},M=r(w,T);h(s,function(F,P){(!O||!O.include||u(O.include,P)>=0)&&F(M,I,R)})}var e=o.prototype;e.setOutputRanges=function(T,w){this.matchOutputRanges(T,w,function(O,I,R){if((O.coordRanges||(O.coordRanges=[])).push(I),!O.coordRange){O.coordRange=I;var M=g[O.brushType](0,R,I);O.__rangeOffset={offset:b[O.brushType](M.values,O.range,[1,1]),xyMinMax:M.xyMinMax}}})},e.matchOutputRanges=function(T,w,O){h(T,function(I){var R=this.findTargetInfo(I,w);R&&R!==!0&&x.each(R.coordSyses,function(M){var F=g[I.brushType](1,M,I.range);O(I,F.values,M,w)})},this)},e.setInputRanges=function(T,w){h(T,function(O){var I=this.findTargetInfo(O,w);if(O.range=O.range||[],I&&I!==!0){O.panelId=I.panelId;var R=g[O.brushType](0,I.coordSys,O.coordRange),M=O.__rangeOffset;O.range=M?b[O.brushType](R.values,M.offset,E(R.xyMinMax,M.xyMinMax)):R.values}},this)},e.makePanelOpts=function(T,w){return x.map(this._targetInfoList,function(O){var I=O.getPanelRect();return{panelId:O.panelId,defaultBrushType:w&&w(O),clipPath:f.makeRectPanelClipPath(I),isTargetByCursor:f.makeRectIsTargetByCursor(I,T,O.coordSysModel),getLinearBrushOtherExtent:f.makeLinearBrushOtherExtent(I)}})},e.controlSeries=function(T,w,O){var I=this.findTargetInfo(T,O);return I===!0||I&&u(I.coordSyses,w.coordinateSystem)>=0},e.findTargetInfo=function(T,w){for(var O=this._targetInfoList,I=r(w,T),R=0;R<O.length;R++){var M=O[R],F=T.panelId;if(F){if(M.panelId===F)return M}else for(var R=0;R<c.length;R++)if(c[R](I,M))return M}return!0};function l(T){return T[0]>T[1]&&T.reverse(),T}function r(T,w){return m.parseFinder(T,w,{includeMainTypes:t})}var s={grid:function(T,w){var O=T.xAxisModels,I=T.yAxisModels,R=T.gridModels,M=x.createHashMap(),F={},P={};if(!O&&!I&&!R)return;h(O,function(X){var B=X.axis.grid.model;M.set(B.id,B),F[B.id]=!0}),h(I,function(X){var B=X.axis.grid.model;M.set(B.id,B),P[B.id]=!0}),h(R,function(X){M.set(X.id,X),F[X.id]=!0,P[X.id]=!0}),M.each(function(X){var B=X.coordinateSystem,j=[];h(B.getCartesians(),function(W,z){(u(O,W.getAxis("x").model)>=0||u(I,W.getAxis("y").model)>=0)&&j.push(W)}),w.push({panelId:"grid--"+X.id,gridModel:X,coordSysModel:X,coordSys:j[0],coordSyses:j,getPanelRect:d.grid,xAxisDeclared:F[X.id],yAxisDeclared:P[X.id]})})},geo:function(T,w){h(T.geoModels,function(O){var I=O.coordinateSystem;w.push({panelId:"geo--"+O.id,geoModel:O,coordSysModel:O,coordSys:I,coordSyses:[I],getPanelRect:d.geo})})}},c=[function(T,w){var O=T.xAxisModel,I=T.yAxisModel,R=T.gridModel;return!R&&O&&(R=O.axis.grid.model),!R&&I&&(R=I.axis.grid.model),R&&R===w.gridModel},function(T,w){var O=T.geoModel;return O&&O===w.geoModel}],d={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var T=this.coordSys,w=T.getBoundingRect().clone();return w.applyTransform(A.getTransform(T)),w}},g={lineX:a(v,0),lineY:a(v,1),rect:function(T,w,O){var I=w[i[T]]([O[0][0],O[1][0]]),R=w[i[T]]([O[0][1],O[1][1]]),M=[l([I[0],R[0]]),l([I[1],R[1]])];return{values:M,xyMinMax:M}},polygon:function(T,w,O){var I=[[Infinity,-Infinity],[Infinity,-Infinity]],R=x.map(O,function(M){var F=w[i[T]](M);return I[0][0]=Math.min(I[0][0],F[0]),I[1][0]=Math.min(I[1][0],F[1]),I[0][1]=Math.max(I[0][1],F[0]),I[1][1]=Math.max(I[1][1],F[1]),F});return{values:R,xyMinMax:I}}};function v(T,w,O,I){var R=O.getAxis(["x","y"][T]),M=l(x.map([0,1],function(P){return w?R.coordToData(R.toLocalCoord(I[P])):R.toGlobalCoord(R.dataToCoord(I[P]))})),F=[];return F[T]=M,F[1-T]=[NaN,NaN],{values:M,xyMinMax:F}}var b={lineX:a(S,0),lineY:a(S,1),rect:function(T,w,O){return[[T[0][0]-O[0]*w[0][0],T[0][1]-O[0]*w[0][1]],[T[1][0]-O[1]*w[1][0],T[1][1]-O[1]*w[1][1]]]},polygon:function(T,w,O){return x.map(T,function(I,R){return[I[0]-O[0]*w[R][0],I[1]-O[1]*w[R][1]]})}};function S(T,w,O,I){return[w[0]-I[T]*O[0],w[1]-I[T]*O[1]]}function E(T,w){var O=C(T),I=C(w),R=[O[0]/I[0],O[1]/I[1]];return isNaN(R[0])&&(R[0]=1),isNaN(R[1])&&(R[1]=1),R}function C(T){return T?[T[0][1]-T[0][0],T[1][1]-T[1][0]]:[NaN,NaN]}var _=o;k.exports=_},vZI5:function(k,D,n){var y=n("bYtY"),p=n("T4UG"),x=n("5GhG"),A=x.seriesModelMixin,m=p.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,clip:!0,itemStyle:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(h,u,a){var i=u.getItemLayout(h);return i&&a.rect(i.brushRect)}});y.mixin(m,A,!0);var f=m;k.exports=f},vafp:function(k,D,n){var y=n("bYtY"),p=n("8nly");function x(f){if(!f.UTF8Encoding)return f;var h=f.UTF8Scale;h==null&&(h=1024);for(var u=f.features,a=0;a<u.length;a++)for(var i=u[a],t=i.geometry,o=t.coordinates,e=t.encodeOffsets,l=0;l<o.length;l++){var r=o[l];if(t.type==="Polygon")o[l]=A(r,e[l],h);else if(t.type==="MultiPolygon")for(var s=0;s<r.length;s++){var c=r[s];r[s]=A(c,e[l][s],h)}}return f.UTF8Encoding=!1,f}function A(f,h,u){for(var a=[],i=h[0],t=h[1],o=0;o<f.length;o+=2){var e=f.charCodeAt(o)-64,l=f.charCodeAt(o+1)-64;e=e>>1^-(e&1),l=l>>1^-(l&1),e+=i,l+=t,i=e,t=l,a.push([e/u,l/u])}return a}function m(f,h){return x(f),y.map(y.filter(f.features,function(u){return u.geometry&&u.properties&&u.geometry.coordinates.length>0}),function(u){var a=u.properties,i=u.geometry,t=i.coordinates,o=[];i.type==="Polygon"&&o.push({type:"polygon",exterior:t[0],interiors:t.slice(1)}),i.type==="MultiPolygon"&&y.each(t,function(l){l[0]&&o.push({type:"polygon",exterior:l[0],interiors:l.slice(1)})});var e=new p(a[h||"name"],o,a.cp);return e.properties=a,e})}k.exports=m},vcCh:function(k,D,n){var y=n("ProS");n("0qV/"),y.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(p,x){x.eachComponent({mainType:"series",subType:"sankey",query:p},function(A){A.setNodePosition(p.dataIndex,[p.localX,p.localY])})})},vewr:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.getPointerEvent=y,D.stopEvent=p,D.setCapture=u,D.releaseCapture=a;function y(i){return i.changedTouches?i.changedTouches[0]:i.touches?i.touches[0]:i}function p(i){i.stopPropagation(),i.preventDefault()}var x=!1,A=null;document.captureElement=null;function m(i){if(x)return;var t=new i.constructor(i.type,i);x=!0,document.captureElement?document.captureElement.dispatchEvent(t):A.dispatchEvent(t),x=!1,i.stopPropagation(),t.defaultPrevented&&i.preventDefault(),i.type==="mouseup"&&a()}function f(){var i=document.getElementById("noVNC_mouse_capture_elem");i.style.cursor=window.getComputedStyle(document.captureElement).cursor}var h=new MutationObserver(f);function u(i){if(i.setCapture)i.setCapture(),document.captureElement=i,i.addEventListener("mouseup",a);else{a();var t=document.getElementById("noVNC_mouse_capture_elem");t===null&&(t=document.createElement("div"),t.id="noVNC_mouse_capture_elem",t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.width="100%",t.style.height="100%",t.style.zIndex=1e4,t.style.display="none",document.body.appendChild(t),t.addEventListener("contextmenu",m),t.addEventListener("mousemove",m),t.addEventListener("mouseup",m)),document.captureElement=i,h.observe(i,{attributes:!0}),f(),t.style.display="",window.addEventListener("mousemove",m),window.addEventListener("mouseup",m)}}function a(){if(document.releaseCapture)document.releaseCapture(),document.captureElement=null;else{if(!document.captureElement)return;A=document.captureElement,document.captureElement=null,h.disconnect();var i=document.getElementById("noVNC_mouse_capture_elem");i.style.display="none",window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",m)}}},vg9a:function(k,D,n){},w4Tj:function(k,D,n){"use strict";n.d(D,"a",function(){return x});var y=n("oZsa");function p(A,m){for(;!Object.prototype.hasOwnProperty.call(A,m)&&!(A=Object(y.a)(A),A===null););return A}function x(A,m,f){return typeof Reflect!="undefined"&&Reflect.get?x=Reflect.get:x=function(u,a,i){var t=p(u,a);if(!t)return;var o=Object.getOwnPropertyDescriptor(t,a);return o.get?o.get.call(i):o.value},x(A,m,f||A)}},w5pM:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="PlusCircleOutlined";var h=D.a=p.forwardRef(f)},w7YG:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"))})(this,function(y){return function(){var p=y,x=p.lib,A=x.StreamCipher,m=p.algo,f=m.RC4=A.extend({_doReset:function(){for(var i=this._key,t=i.words,o=i.sigBytes,e=this._S=[],l=0;l<256;l++)e[l]=l;for(var l=0,r=0;l<256;l++){var s=l%o,c=t[s>>>2]>>>24-s%4*8&255;r=(r+e[l]+c)%256;var d=e[l];e[l]=e[r],e[r]=d}this._i=this._j=0},_doProcessBlock:function(i,t){i[t]^=h.call(this)},keySize:256/32,ivSize:0});function h(){for(var a=this._S,i=this._i,t=this._j,o=0,e=0;e<4;e++){i=(i+1)%256,t=(t+a[i])%256;var l=a[i];a[i]=a[t],a[t]=l,o|=a[(a[i]+a[t])%256]<<24-e*8}return this._i=i,this._j=t,o}p.RC4=A._createHelper(f);var u=m.RC4Drop=f.extend({cfg:f.cfg.extend({drop:192}),_doReset:function(){f._doReset.call(this);for(var i=this.cfg.drop;i>0;i--)h.call(this)}});p.RC4Drop=A._createHelper(u)}(),y.RC4})},wCAj:function(k,D,n){"use strict";var y=n("cDf5"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("J4zp"),f=n.n(m),h=n("pVnL"),u=n.n(h),a=n("q1tI"),i=n("TSYQ"),t=n.n(i),o=n("BGR+"),e=n("rePB"),l=n("VTBJ"),r=n("KQm4"),s=n("U8pU"),c=n("ODXe"),d=n("Gytx"),g=n.n(d),v=n("Kwbf"),b=n("1OyB"),S=n("vuIU"),E=n("Ji7U"),C=n("LK+K"),_=n("m+aA"),T=n("Zm9Q"),w=n("c+Xe"),O=n("bdgK"),I="rc-observer-key",R=function(Et){Object(E.a)(_r,Et);var Cr=Object(C.a)(_r);function _r(){var $r;return Object(b.a)(this,_r),$r=Cr.apply(this,arguments),$r.resizeObserver=null,$r.childNode=null,$r.currentElement=null,$r.state={width:0,height:0,offsetHeight:0,offsetWidth:0},$r.onResize=function(yn){var Tn=$r.props.onResize,vn=yn[0].target,Qn=vn.getBoundingClientRect(),Fn=Qn.width,fi=Qn.height,Ri=vn.offsetWidth,yi=vn.offsetHeight,Ci=Math.floor(Fn),Wi=Math.floor(fi);if($r.state.width!==Ci||$r.state.height!==Wi||$r.state.offsetWidth!==Ri||$r.state.offsetHeight!==yi){var qi={width:Ci,height:Wi,offsetWidth:Ri,offsetHeight:yi};$r.setState(qi),Tn&&Promise.resolve().then(function(){Tn(Object(l.a)(Object(l.a)({},qi),{},{offsetWidth:Ri,offsetHeight:yi}))})}},$r.setChildNode=function(yn){$r.childNode=yn},$r}return Object(S.a)(_r,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var yn=this.props.disabled;if(yn){this.destroyObserver();return}var Tn=Object(_.a)(this.childNode||this),vn=Tn!==this.currentElement;vn&&(this.destroyObserver(),this.currentElement=Tn),!this.resizeObserver&&Tn&&(this.resizeObserver=new O.default(this.onResize),this.resizeObserver.observe(Tn))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var yn=this.props.children,Tn=Object(T.a)(yn);if(Tn.length>1)Object(v.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(Tn.length===0)return Object(v.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var vn=Tn[0];if(a.isValidElement(vn)&&Object(w.c)(vn)){var Qn=vn.ref;Tn[0]=a.cloneElement(vn,{ref:Object(w.a)(Qn,this.setChildNode)})}return Tn.length===1?Tn[0]:Tn.map(function(Fn,fi){return!a.isValidElement(Fn)||"key"in Fn&&Fn.key!==null?Fn:a.cloneElement(Fn,{key:"".concat(I,"-").concat(fi)})})}}]),_r}(a.Component);R.displayName="ResizeObserver";var M=R,F=n("qx4F");function P(Et){return null}var X=P;function B(Et){return null}var j=B,W=n("Ff2n"),z="RC_TABLE_KEY";function V(Et){return Et==null?[]:Array.isArray(Et)?Et:[Et]}function Q(Et,Cr){if(!Cr&&typeof Cr!="number")return Et;for(var _r=V(Cr),$r=Et,yn=0;yn<_r.length;yn+=1){if(!$r)return null;var Tn=_r[yn];$r=$r[Tn]}return $r}function G(Et){var Cr=[],_r={};return Et.forEach(function($r){for(var yn=$r||{},Tn=yn.key,vn=yn.dataIndex,Qn=Tn||V(vn).join("-")||z;_r[Qn];)Qn="".concat(Qn,"_next");_r[Qn]=!0,Cr.push(Qn)}),Cr}function ee(){var Et={};function Cr(Tn,vn){vn&&Object.keys(vn).forEach(function(Qn){var Fn=vn[Qn];Fn&&Object(s.a)(Fn)==="object"?(Tn[Qn]=Tn[Qn]||{},Cr(Tn[Qn],Fn)):Tn[Qn]=Fn})}for(var _r=arguments.length,$r=new Array(_r),yn=0;yn<_r;yn++)$r[yn]=arguments[yn];return $r.forEach(function(Tn){Cr(Et,Tn)}),Et}function ce(Et){return Et!=null}function be(Et){return Et&&Object(s.a)(Et)==="object"&&!Array.isArray(Et)&&!a.isValidElement(Et)}function le(Et){return typeof Et=="string"?!0:Object(w.c)(Et)}function Ie(Et,Cr){var _r,$r=Et.prefixCls,yn=Et.className,Tn=Et.record,vn=Et.index,Qn=Et.dataIndex,Fn=Et.render,fi=Et.children,Ri=Et.component,yi=Ri===void 0?"td":Ri,Ci=Et.colSpan,Wi=Et.rowSpan,qi=Et.fixLeft,zi=Et.fixRight,Ki=Et.firstFixLeft,ji=Et.lastFixLeft,Yi=Et.firstFixRight,ca=Et.lastFixRight,Ca=Et.appendNode,ra=Et.additionalProps,Ma=ra===void 0?{}:ra,La=Et.ellipsis,va=Et.align,ga=Et.rowType,Oa=Et.isSticky,Aa="".concat($r,"-cell"),Ga,_a;if(fi)_a=fi;else{var Va=Q(Tn,Qn);if(_a=Va,Fn){var Bi=Fn(Va,Tn,vn);be(Bi)?(_a=Bi.children,Ga=Bi.props):_a=Bi}}Object(s.a)(_a)==="object"&&!Array.isArray(_a)&&!a.isValidElement(_a)&&(_a=null),La&&(ji||Yi)&&(_a=a.createElement("span",{className:"".concat(Aa,"-content")},_a));var io=Ga||{},oo=io.colSpan,Qo=io.rowSpan,mo=io.style,To=io.className,ao=Object(W.a)(io,["colSpan","rowSpan","style","className"]),So=oo!==void 0?oo:Ci,bo=Qo!==void 0?Qo:Wi;if(So===0||bo===0)return null;var to={},Jo=typeof qi=="number",Uo=typeof zi=="number";Jo&&(to.position="sticky",to.left=qi),Uo&&(to.position="sticky",to.right=zi);var wo={};va&&(wo.textAlign=va);var ts,Ia=La===!0?{showTitle:!0}:La;Ia&&(Ia.showTitle||ga==="header")&&(typeof _a=="string"||typeof _a=="number"?ts=_a.toString():a.isValidElement(_a)&&typeof _a.props.children=="string"&&(ts=_a.props.children));var Oo=Object(l.a)(Object(l.a)(Object(l.a)({title:ts},ao),Ma),{},{colSpan:So&&So!==1?So:null,rowSpan:bo&&bo!==1?bo:null,className:t()(Aa,yn,(_r={},Object(e.a)(_r,"".concat(Aa,"-fix-left"),Jo),Object(e.a)(_r,"".concat(Aa,"-fix-left-first"),Ki),Object(e.a)(_r,"".concat(Aa,"-fix-left-last"),ji),Object(e.a)(_r,"".concat(Aa,"-fix-right"),Uo),Object(e.a)(_r,"".concat(Aa,"-fix-right-first"),Yi),Object(e.a)(_r,"".concat(Aa,"-fix-right-last"),ca),Object(e.a)(_r,"".concat(Aa,"-ellipsis"),La),Object(e.a)(_r,"".concat(Aa,"-with-append"),Ca),Object(e.a)(_r,"".concat(Aa,"-fix-sticky"),(Jo||Uo)&&Oa),_r),Ma.className,To),style:Object(l.a)(Object(l.a)(Object(l.a)(Object(l.a)({},Ma.style),wo),to),mo),ref:le(yi)?Cr:null});return a.createElement(yi,Object.assign({},Oo),Ca,_a)}var ke=a.forwardRef(Ie);ke.displayName="Cell";var Re=a.memo(ke,function(Et,Cr){return Cr.shouldCellUpdate?!Cr.shouldCellUpdate(Cr.record,Et.record):!1}),Qe=Re,We=a.createContext(null),ot=We;function Oe(Et,Cr,_r,$r,yn){var Tn=_r[Et]||{},vn=_r[Cr]||{},Qn,Fn;Tn.fixed==="left"?Qn=$r.left[Et]:vn.fixed==="right"&&(Fn=$r.right[Cr]);var fi=!1,Ri=!1,yi=!1,Ci=!1,Wi=_r[Cr+1],qi=_r[Et-1];if(yn==="rtl"){if(Qn!==void 0){var zi=qi&&qi.fixed==="left";Ci=!zi}else if(Fn!==void 0){var Ki=Wi&&Wi.fixed==="right";yi=!Ki}}else if(Qn!==void 0){var ji=Wi&&Wi.fixed==="left";fi=!ji}else if(Fn!==void 0){var Yi=qi&&qi.fixed==="right";Ri=!Yi}return{fixLeft:Qn,fixRight:Fn,lastFixLeft:fi,firstFixRight:Ri,lastFixRight:yi,firstFixLeft:Ci,isSticky:$r.isSticky}}function oe(Et){var Cr=Et.cells,_r=Et.stickyOffsets,$r=Et.flattenColumns,yn=Et.rowComponent,Tn=Et.cellComponent,vn=Et.onHeaderRow,Qn=Et.index,Fn=a.useContext(ot),fi=Fn.prefixCls,Ri=Fn.direction,yi;vn&&(yi=vn(Cr.map(function(Wi){return Wi.column}),Qn));var Ci=G(Cr.map(function(Wi){return Wi.column}));return a.createElement(yn,Object.assign({},yi),Cr.map(function(Wi,qi){var zi=Wi.column,Ki=Oe(Wi.colStart,Wi.colEnd,$r,_r,Ri),ji;return zi&&zi.onHeaderCell&&(ji=Wi.column.onHeaderCell(zi)),a.createElement(Qe,Object.assign({},Wi,{ellipsis:zi.ellipsis,align:zi.align,component:Tn,prefixCls:fi,key:Ci[qi]},Ki,{additionalProps:ji,rowType:"header"}))}))}oe.displayName="HeaderRow";var st=oe;function he(Et){var Cr=[];function _r(vn,Qn){var Fn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Cr[Fn]=Cr[Fn]||[];var fi=Qn,Ri=vn.filter(Boolean).map(function(yi){var Ci={key:yi.key,className:yi.className||"",children:yi.title,column:yi,colStart:fi},Wi=1,qi=yi.children;return qi&&qi.length>0&&(Wi=_r(qi,fi,Fn+1).reduce(function(zi,Ki){return zi+Ki},0),Ci.hasSubColumns=!0),"colSpan"in yi&&(Wi=yi.colSpan),"rowSpan"in yi&&(Ci.rowSpan=yi.rowSpan),Ci.colSpan=Wi,Ci.colEnd=Ci.colStart+Wi-1,Cr[Fn].push(Ci),fi+=Wi,Wi});return Ri}_r(Et,0);for(var $r=Cr.length,yn=function(Qn){Cr[Qn].forEach(function(Fn){!("rowSpan"in Fn)&&!Fn.hasSubColumns&&(Fn.rowSpan=$r-Qn)})},Tn=0;Tn<$r;Tn+=1)yn(Tn);return Cr}function J(Et){var Cr=Et.stickyOffsets,_r=Et.columns,$r=Et.flattenColumns,yn=Et.onHeaderRow,Tn=a.useContext(ot),vn=Tn.prefixCls,Qn=Tn.getComponent,Fn=a.useMemo(function(){return he(_r)},[_r]),fi=Qn(["header","wrapper"],"thead"),Ri=Qn(["header","row"],"tr"),yi=Qn(["header","cell"],"th");return a.createElement(fi,{className:"".concat(vn,"-thead")},Fn.map(function(Ci,Wi){var qi=a.createElement(st,{key:Wi,flattenColumns:$r,cells:Ci,stickyOffsets:Cr,rowComponent:Ri,cellComponent:yi,onHeaderRow:yn,index:Wi});return qi}))}var Y=J,$="RC_TABLE_INTERNAL_COL_DEFINE";function fe(Et){var Cr=Et.expandable,_r=Object(W.a)(Et,["expandable"]);return"expandable"in Et?Object(l.a)(Object(l.a)({},_r),Cr):_r}function we(Et){return Object.keys(Et).reduce(function(Cr,_r){return(_r.substr(0,5)==="data-"||_r.substr(0,5)==="aria-")&&(Cr[_r]=Et[_r]),Cr},{})}function Ne(Et){for(var Cr=Et.colWidths,_r=Et.columns,$r=Et.columCount,yn=[],Tn=$r||_r.length,vn=!1,Qn=Tn-1;Qn>=0;Qn-=1){var Fn=Cr[Qn],fi=_r&&_r[Qn],Ri=fi&&fi[$];(Fn||Ri||vn)&&(yn.unshift(a.createElement("col",Object.assign({key:Qn,style:{width:Fn,minWidth:Fn}},Ri))),vn=!0)}return a.createElement("colgroup",null,yn)}var Ee=Ne;function de(Et,Cr){return Object(a.useMemo)(function(){for(var _r=[],$r=0;$r<Cr;$r+=1){var yn=Et[$r];if(yn!==void 0)_r[$r]=yn;else return null}return _r},[Et.join("_"),Cr])}var me=a.forwardRef(function(Et,Cr){var _r=Et.noData,$r=Et.columns,yn=Et.flattenColumns,Tn=Et.colWidths,vn=Et.columCount,Qn=Et.stickyOffsets,Fn=Et.direction,fi=Et.fixHeader,Ri=Et.offsetHeader,yi=Et.stickyClassName,Ci=Et.onScroll,Wi=Object(W.a)(Et,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),qi=a.useContext(ot),zi=qi.prefixCls,Ki=qi.scrollbarSize,ji=qi.isSticky,Yi=ji&&!fi?0:Ki,ca=a.useRef(null),Ca=a.useCallback(function(Aa){Object(w.b)(Cr,Aa),Object(w.b)(ca,Aa)},[]);a.useEffect(function(){var Aa;function Ga(_a){var Va=_a.currentTarget,Bi=_a.deltaX;Bi&&(Ci({currentTarget:Va,scrollLeft:Va.scrollLeft+Bi}),_a.preventDefault())}return(Aa=ca.current)===null||Aa===void 0||Aa.addEventListener("wheel",Ga),function(){var _a;(_a=ca.current)===null||_a===void 0||_a.removeEventListener("wheel",Ga)}},[]);var ra=yn[yn.length-1],Ma={fixed:ra?ra.fixed:null,onHeaderCell:function(){return{className:"".concat(zi,"-cell-scrollbar")}}},La=Object(a.useMemo)(function(){return Yi?[].concat(Object(r.a)($r),[Ma]):$r},[Yi,$r]),va=Object(a.useMemo)(function(){return Yi?[].concat(Object(r.a)(yn),[Ma]):yn},[Yi,yn]),ga=Object(a.useMemo)(function(){var Aa=Qn.right,Ga=Qn.left;return Object(l.a)(Object(l.a)({},Qn),{},{left:Fn==="rtl"?[].concat(Object(r.a)(Ga.map(function(_a){return _a+Yi})),[0]):Ga,right:Fn==="rtl"?Aa:[].concat(Object(r.a)(Aa.map(function(_a){return _a+Yi})),[0]),isSticky:ji})},[Yi,Qn,ji]),Oa=de(Tn,vn);return a.createElement("div",{style:Object(l.a)({overflow:"hidden"},ji?{top:Ri}:{}),ref:Ca,className:t()("".concat(zi,"-header"),Object(e.a)({},yi,!!yi))},a.createElement("table",{style:{tableLayout:"fixed",visibility:_r||Oa?null:"hidden"}},a.createElement(Ee,{colWidths:Oa?[].concat(Object(r.a)(Oa),[Yi]):[],columCount:vn+1,columns:va}),a.createElement(Y,Object.assign({},Wi,{stickyOffsets:ga,columns:La,flattenColumns:va}))))});me.displayName="FixedHeader";var Le=me,tt=a.createContext(null),At=tt;function ht(Et){var Cr=Et.prefixCls,_r=Et.children,$r=Et.component,yn=Et.cellComponent,Tn=Et.fixHeader,vn=Et.fixColumn,Qn=Et.horizonScroll,Fn=Et.className,fi=Et.expanded,Ri=Et.componentWidth,yi=Et.colSpan,Ci=a.useContext(ot),Wi=Ci.scrollbarSize;return a.useMemo(function(){var qi=_r;return vn&&(qi=a.createElement("div",{style:{width:Ri-(Tn?Wi:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Cr,"-expanded-row-fixed")},qi)),a.createElement($r,{className:Fn,style:{display:fi?null:"none"}},a.createElement(Qe,{component:yn,prefixCls:Cr,colSpan:yi},qi))},[_r,$r,Tn,Qn,Fn,fi,Ri,yi,Wi])}var Ke=ht;function Jt(Et){var Cr=Et.className,_r=Et.style,$r=Et.record,yn=Et.index,Tn=Et.rowKey,vn=Et.getRowKey,Qn=Et.rowExpandable,Fn=Et.expandedKeys,fi=Et.onRow,Ri=Et.indent,yi=Ri===void 0?0:Ri,Ci=Et.rowComponent,Wi=Et.cellComponent,qi=Et.childrenColumnName,zi=a.useContext(ot),Ki=zi.prefixCls,ji=zi.fixedInfoList,Yi=a.useContext(At),ca=Yi.fixHeader,Ca=Yi.fixColumn,ra=Yi.horizonScroll,Ma=Yi.componentWidth,La=Yi.flattenColumns,va=Yi.expandableType,ga=Yi.expandRowByClick,Oa=Yi.onTriggerExpand,Aa=Yi.rowClassName,Ga=Yi.expandedRowClassName,_a=Yi.indentSize,Va=Yi.expandIcon,Bi=Yi.expandedRowRender,io=Yi.expandIconColumnIndex,oo=a.useState(!1),Qo=Object(c.a)(oo,2),mo=Qo[0],To=Qo[1],ao=Fn&&Fn.has(Et.recordKey);a.useEffect(function(){ao&&To(!0)},[ao]);var So=va==="row"&&(!Qn||Qn($r)),bo=va==="nest",to=qi&&$r&&$r[qi],Jo=So||bo,Uo;fi&&(Uo=fi($r,yn));var wo=function(_o){if(ga&&Jo&&Oa($r,_o),Uo&&Uo.onClick){for(var uo,Ha=arguments.length,pt=new Array(Ha>1?Ha-1:0),xr=1;xr<Ha;xr++)pt[xr-1]=arguments[xr];(uo=Uo).onClick.apply(uo,[_o].concat(pt))}},ts;typeof Aa=="string"?ts=Aa:typeof Aa=="function"&&(ts=Aa($r,yn,yi));var Ia=G(La),Oo=a.createElement(Ci,Object.assign({},Uo,{"data-row-key":Tn,className:t()(Cr,"".concat(Ki,"-row"),"".concat(Ki,"-row-level-").concat(yi),ts,Uo&&Uo.className),style:Object(l.a)(Object(l.a)({},_r),Uo?Uo.style:null),onClick:wo}),La.map(function(Ho,_o){var uo=Ho.render,Ha=Ho.dataIndex,pt=Ho.className,xr=Ia[_o],Jr=ji[_o],Vr;_o===(io||0)&&bo&&(Vr=a.createElement(a.Fragment,null,a.createElement("span",{style:{paddingLeft:"".concat(_a*yi,"px")},className:"".concat(Ki,"-row-indent indent-level-").concat(yi)}),Va({prefixCls:Ki,expanded:ao,expandable:to,record:$r,onExpand:Oa})));var Vn;return Ho.onCell&&(Vn=Ho.onCell($r,yn)),a.createElement(Qe,Object.assign({className:pt,ellipsis:Ho.ellipsis,align:Ho.align,component:Wi,prefixCls:Ki,key:xr,record:$r,index:yn,dataIndex:Ha,render:uo,shouldCellUpdate:Ho.shouldCellUpdate},Jr,{appendNode:Vr,additionalProps:Vn}))})),Io;if(So&&(mo||ao)){var os=Bi($r,yn,yi+1,ao),xo=Ga&&Ga($r,yn,yi);Io=a.createElement(Ke,{expanded:ao,className:t()("".concat(Ki,"-expanded-row"),"".concat(Ki,"-expanded-row-level-").concat(yi+1),xo),prefixCls:Ki,fixHeader:ca,fixColumn:Ca,horizonScroll:ra,component:Ci,componentWidth:Ma,cellComponent:Wi,colSpan:La.length},os)}var rs;return to&&ao&&(rs=($r[qi]||[]).map(function(Ho,_o){var uo=vn(Ho,_o);return a.createElement(Jt,Object.assign({},Et,{key:uo,rowKey:uo,record:Ho,recordKey:uo,index:_o,indent:yi+1}))})),a.createElement(a.Fragment,null,Oo,Io,rs)}Jt.displayName="BodyRow";var ct=Jt,Gt=a.createContext(null),dr=Gt;function zt(Et){var Cr=Et.columnKey,_r=Et.onColumnResize,$r=a.useRef();return a.useEffect(function(){$r.current&&_r(Cr,$r.current.offsetWidth)},[]),a.createElement(M,{onResize:function(Tn){var vn=Tn.offsetWidth;_r(Cr,vn)}},a.createElement("td",{ref:$r,style:{padding:0,border:0,height:0}},a.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function kt(Et){var Cr=Et.data,_r=Et.getRowKey,$r=Et.measureColumnWidth,yn=Et.expandedKeys,Tn=Et.onRow,vn=Et.rowExpandable,Qn=Et.emptyNode,Fn=Et.childrenColumnName,fi=a.useContext(dr),Ri=fi.onColumnResize,yi=a.useContext(ot),Ci=yi.prefixCls,Wi=yi.getComponent,qi=a.useContext(At),zi=qi.fixHeader,Ki=qi.horizonScroll,ji=qi.flattenColumns,Yi=qi.componentWidth;return a.useMemo(function(){var ca=Wi(["body","wrapper"],"tbody"),Ca=Wi(["body","row"],"tr"),ra=Wi(["body","cell"],"td"),Ma;Cr.length?Ma=Cr.map(function(va,ga){var Oa=_r(va,ga);return a.createElement(ct,{key:Oa,rowKey:Oa,record:va,recordKey:Oa,index:ga,rowComponent:Ca,cellComponent:ra,expandedKeys:yn,onRow:Tn,getRowKey:_r,rowExpandable:vn,childrenColumnName:Fn})}):Ma=a.createElement(Ke,{expanded:!0,className:"".concat(Ci,"-placeholder"),prefixCls:Ci,fixHeader:zi,fixColumn:Ki,horizonScroll:Ki,component:Ca,componentWidth:Yi,cellComponent:ra,colSpan:ji.length},Qn);var La=G(ji);return a.createElement(ca,{className:"".concat(Ci,"-tbody")},$r&&a.createElement("tr",{"aria-hidden":"true",className:"".concat(Ci,"-measure-row"),style:{height:0}},La.map(function(va){return a.createElement(zt,{key:va,columnKey:va,onColumnResize:Ri})})),Ma)},[Cr,Ci,Tn,$r,yn,_r,Wi,Yi,Qn,ji])}var Vt=a.memo(kt);Vt.displayName="Body";var Xe=Vt;function pe(Et){return Object(T.a)(Et).filter(function(Cr){return a.isValidElement(Cr)}).map(function(Cr){var _r=Cr.key,$r=Cr.props,yn=$r.children,Tn=Object(W.a)($r,["children"]),vn=Object(l.a)({key:_r},Tn);return yn&&(vn.children=pe(yn)),vn})}function te(Et){return Et.reduce(function(Cr,_r){var $r=_r.fixed,yn=$r===!0?"left":$r,Tn=_r.children;return Tn&&Tn.length>0?[].concat(Object(r.a)(Cr),Object(r.a)(te(Tn).map(function(vn){return Object(l.a)({fixed:yn},vn)}))):[].concat(Object(r.a)(Cr),[Object(l.a)(Object(l.a)({},_r),{},{fixed:yn})])},[])}function $e(Et){for(var Cr=!0,_r=0;_r<Et.length;_r+=1){var $r=Et[_r];if(Cr&&$r.fixed!=="left")Cr=!1;else if(!Cr&&$r.fixed==="left"){Object(v.a)(!1,"Index ".concat(_r-1," of `columns` missing `fixed='left'` prop."));break}}for(var yn=!0,Tn=Et.length-1;Tn>=0;Tn-=1){var vn=Et[Tn];if(yn&&vn.fixed!=="right")yn=!1;else if(!yn&&vn.fixed==="right"){Object(v.a)(!1,"Index ".concat(Tn+1," of `columns` missing `fixed='right'` prop."));break}}}function He(Et){return Et.map(function(Cr){var _r=Cr.fixed,$r=Object(W.a)(Cr,["fixed"]),yn=_r;return _r==="left"?yn="right":_r==="right"&&(yn="left"),Object(l.a)({fixed:yn},$r)})}function ae(Et,Cr){var _r=Et.prefixCls,$r=Et.columns,yn=Et.children,Tn=Et.expandable,vn=Et.expandedKeys,Qn=Et.getRowKey,Fn=Et.onTriggerExpand,fi=Et.expandIcon,Ri=Et.rowExpandable,yi=Et.expandIconColumnIndex,Ci=Et.direction,Wi=Et.expandRowByClick,qi=a.useMemo(function(){return $r||pe(yn)},[$r,yn]),zi=a.useMemo(function(){if(Tn){var Yi,ca=yi||0,Ca=qi[ca],ra=(Yi={},Object(e.a)(Yi,$,{className:"".concat(_r,"-expand-icon-col")}),Object(e.a)(Yi,"title",""),Object(e.a)(Yi,"fixed",Ca?Ca.fixed:null),Object(e.a)(Yi,"className","".concat(_r,"-row-expand-icon-cell")),Object(e.a)(Yi,"render",function(va,ga,Oa){var Aa=Qn(ga,Oa),Ga=vn.has(Aa),_a=Ri?Ri(ga):!0,Va=fi({prefixCls:_r,expanded:Ga,expandable:_a,record:ga,onExpand:Fn});return Wi?a.createElement("span",{onClick:function(io){return io.stopPropagation()}},Va):Va}),Yi),Ma=qi.slice();return ca>=0&&Ma.splice(ca,0,ra),Ma}return qi},[Tn,qi,Qn,vn,fi,Ci]),Ki=a.useMemo(function(){var Yi=zi;return Cr&&(Yi=Cr(Yi)),Yi.length||(Yi=[{render:function(){return null}}]),Yi},[Cr,zi,Ci]),ji=a.useMemo(function(){return Ci==="rtl"?He(te(Ki)):te(Ki)},[Ki,Ci]);return[Ki,ji]}var ft=ae,Mt=n("xEkU"),mt=n.n(Mt);function or(Et){var Cr=Object(a.useRef)(Et),_r=Object(a.useState)({}),$r=Object(c.a)(_r,2),yn=$r[1],Tn=Object(a.useRef)(null),vn=Object(a.useRef)([]);function Qn(Fn){Tn.current===null&&(vn.current=[],Tn.current=mt()(function(){vn.current.forEach(function(fi){Cr.current=fi(Cr.current)}),Tn.current=null,yn({})})),vn.current.push(Fn)}return Object(a.useEffect)(function(){return function(){mt.a.cancel(Tn.current)}},[]),[Cr.current,Qn]}function vr(Et){var Cr=Object(a.useRef)(Et),_r=Object(a.useRef)(null);function $r(){window.clearTimeout(_r.current)}function yn(vn){Cr.current=vn,$r(),_r.current=window.setTimeout(function(){Cr.current=null,_r.current=null},100)}function Tn(){return Cr.current}return Object(a.useEffect)(function(){return $r},[]),[yn,Tn]}function fn(Et,Cr,_r){var $r=Object(a.useMemo)(function(){for(var yn=[],Tn=[],vn=0,Qn=0,Fn=0;Fn<Cr;Fn+=1)if(_r==="rtl"){Tn[Fn]=Qn,Qn+=Et[Fn]||0;var fi=Cr-Fn-1;yn[fi]=vn,vn+=Et[fi]||0}else{yn[Fn]=vn,vn+=Et[Fn]||0;var Ri=Cr-Fn-1;Tn[Ri]=Qn,Qn+=Et[Ri]||0}return{left:yn,right:Tn}},[Et,Cr,_r]);return $r}var sr=fn;function Ir(Et){var Cr=Et.className,_r=Et.children;return a.createElement("div",{className:Cr},_r)}var lr=Ir;function Wt(Et){var Cr=Et.className,_r=Et.index,$r=Et.children,yn=Et.colSpan,Tn=Et.rowSpan,vn=a.useContext(ot),Qn=vn.prefixCls,Fn=vn.fixedInfoList,fi=Fn[_r];return a.createElement(Qe,Object.assign({className:Cr,index:_r,component:"td",prefixCls:Qn,record:null,dataIndex:null,render:function(){return{children:$r,props:{colSpan:yn,rowSpan:Tn}}}},fi))}function xt(Et){return a.createElement("tr",Object.assign({},Et))}function rn(Et){var Cr=Et.children,_r=a.useContext(ot),$r=_r.prefixCls;return a.createElement("tfoot",{className:"".concat($r,"-summary")},Cr)}var Dn=rn,Xn={Cell:Wt,Row:xt};function ri(Et){var Cr,_r=Et.prefixCls,$r=Et.record,yn=Et.onExpand,Tn=Et.expanded,vn=Et.expandable,Qn="".concat(_r,"-row-expand-icon");if(!vn)return a.createElement("span",{className:t()(Qn,"".concat(_r,"-row-spaced"))});var Fn=function(Ri){yn($r,Ri),Ri.stopPropagation()};return a.createElement("span",{className:t()(Qn,(Cr={},Object(e.a)(Cr,"".concat(_r,"-row-expanded"),Tn),Object(e.a)(Cr,"".concat(_r,"-row-collapsed"),!Tn),Cr)),onClick:Fn})}function Ui(Et,Cr,_r){var $r=[];function yn(Tn){(Tn||[]).forEach(function(vn,Qn){$r.push(Cr(vn,Qn)),yn(vn[_r])})}return yn(Et),$r}var Bn=n("zT1h"),Jn=n("y0+3"),Xt=function(Cr,_r){var $r,yn,Tn=Cr.scrollBodyRef,vn=Cr.onScroll,Qn=Cr.offsetScroll,Fn=a.useContext(ot),fi=Fn.prefixCls,Ri=(($r=Tn.current)===null||$r===void 0?void 0:$r.scrollWidth)||0,yi=((yn=Tn.current)===null||yn===void 0?void 0:yn.clientWidth)||0,Ci=Ri&&yi*(yi/Ri),Wi=a.useRef(),qi=or({scrollLeft:0,isHiddenScrollBar:!1}),zi=Object(c.a)(qi,2),Ki=zi[0],ji=zi[1],Yi=a.useRef({delta:0,x:0}),ca=a.useState(!1),Ca=Object(c.a)(ca,2),ra=Ca[0],Ma=Ca[1],La=function(){Ma(!1)},va=function(_a){_a.persist(),Yi.current.delta=_a.pageX-Ki.scrollLeft,Yi.current.x=0,Ma(!0),_a.preventDefault()},ga=function(_a){var Va,Bi=_a||((Va=window)===null||Va===void 0?void 0:Va.event),io=Bi.buttons;if(!ra||io===0){ra&&Ma(!1);return}var oo=Yi.current.x+_a.pageX-Yi.current.x-Yi.current.delta;oo<=0&&(oo=0),oo+Ci>=yi&&(oo=yi-Ci),vn({scrollLeft:oo/yi*(Ri+2)}),Yi.current.x=_a.pageX},Oa=function(){var _a=Object(Jn.b)(Tn.current).top,Va=_a+Tn.current.offsetHeight,Bi=document.documentElement.scrollTop+window.innerHeight;Va-Object(F.a)()<=Bi||_a>=Bi-Qn?ji(function(io){return Object(l.a)(Object(l.a)({},io),{},{isHiddenScrollBar:!0})}):ji(function(io){return Object(l.a)(Object(l.a)({},io),{},{isHiddenScrollBar:!1})})},Aa=function(_a){ji(function(Va){return Object(l.a)(Object(l.a)({},Va),{},{scrollLeft:_a/Ri*yi||0})})};return a.useImperativeHandle(_r,function(){return{setScrollLeft:Aa}}),a.useEffect(function(){var Ga=Object(Bn.a)(document.body,"mouseup",La,!1),_a=Object(Bn.a)(document.body,"mousemove",ga,!1);return Oa(),function(){Ga.remove(),_a.remove()}},[Ci,ra]),a.useEffect(function(){var Ga=Object(Bn.a)(window,"scroll",Oa,!1),_a=Object(Bn.a)(window,"resize",Oa,!1);return function(){Ga.remove(),_a.remove()}},[]),a.useEffect(function(){Ki.isHiddenScrollBar||ji(function(Ga){var _a,Va;return Object(l.a)(Object(l.a)({},Ga),{},{scrollLeft:Tn.current.scrollLeft/((_a=Tn.current)===null||_a===void 0?void 0:_a.scrollWidth)*((Va=Tn.current)===null||Va===void 0?void 0:Va.clientWidth)})})},[Ki.isHiddenScrollBar]),Ri<=yi||!Ci||Ki.isHiddenScrollBar?null:a.createElement("div",{style:{height:Object(F.a)(),width:yi,bottom:Qn},className:"".concat(fi,"-sticky-scroll")},a.createElement("div",{onMouseDown:va,ref:Wi,className:t()("".concat(fi,"-sticky-scroll-bar"),Object(e.a)({},"".concat(fi,"-sticky-scroll-bar-active"),ra)),style:{width:"".concat(Ci,"px"),transform:"translate3d(".concat(Ki.scrollLeft,"px, 0, 0)")}}))},_t=a.forwardRef(Xt);function Fe(Et,Cr){return a.useMemo(function(){var _r=!!Et;return{isSticky:_r,stickyClassName:_r?"".concat(Cr,"-sticky-header"):"",offsetHeader:Object(s.a)(Et)==="object"&&Et.offsetHeader||0,offsetScroll:Object(s.a)(Et)==="object"&&Et.offsetScroll||0}},[Et,Cr])}var Pe=[],Be={},nt="rc-table-internal-hook",vt=a.memo(function(Et){var Cr=Et.children;return Cr},function(Et,Cr){return g()(Et.props,Cr.props)?Et.pingLeft!==Cr.pingLeft||Et.pingRight!==Cr.pingRight:!1});function ar(Et){var Cr,_r=Et.prefixCls,$r=Et.className,yn=Et.rowClassName,Tn=Et.style,vn=Et.data,Qn=Et.rowKey,Fn=Et.scroll,fi=Et.tableLayout,Ri=Et.direction,yi=Et.title,Ci=Et.footer,Wi=Et.summary,qi=Et.id,zi=Et.showHeader,Ki=Et.components,ji=Et.emptyText,Yi=Et.onRow,ca=Et.onHeaderRow,Ca=Et.internalHooks,ra=Et.transformColumns,Ma=Et.internalRefs,La=Et.sticky,va=vn||Pe,ga=!!va.length,Oa=a.useState(0),Aa=Object(c.a)(Oa,2),Ga=Aa[0],_a=Aa[1];a.useEffect(function(){_a(Object(F.a)())});var Va=a.useMemo(function(){return ee(Ki,{})},[Ki]),Bi=a.useCallback(function(Vo,No){return Q(Va,Vo)||No},[Va]),io=a.useMemo(function(){return typeof Qn=="function"?Qn:function(Vo){var No=Vo&&Vo[Qn];return No}},[Qn]),oo=fe(Et),Qo=oo.expandIcon,mo=oo.expandedRowKeys,To=oo.defaultExpandedRowKeys,ao=oo.defaultExpandAllRows,So=oo.expandedRowRender,bo=oo.onExpand,to=oo.onExpandedRowsChange,Jo=oo.expandRowByClick,Uo=oo.rowExpandable,wo=oo.expandIconColumnIndex,ts=oo.expandedRowClassName,Ia=oo.childrenColumnName,Oo=oo.indentSize,Io=Qo||ri,os=Ia||"children",xo=a.useMemo(function(){return So?"row":Et.expandable&&Ca===nt&&Et.expandable.__PARENT_RENDER_ICON__||va.some(function(Vo){return Vo&&Object(s.a)(Vo)==="object"&&Vo[os]})?"nest":!1},[!!So,va]),rs=a.useState(function(){return To||(ao?Ui(va,io,os):[])}),Ho=Object(c.a)(rs,2),_o=Ho[0],uo=Ho[1],Ha=a.useMemo(function(){return new Set(mo||_o||[])},[mo,_o]),pt=a.useCallback(function(Vo){var No=io(Vo,va.indexOf(Vo)),fs,Ds=Ha.has(No);Ds?(Ha.delete(No),fs=Object(r.a)(Ha)):fs=[].concat(Object(r.a)(Ha),[No]),uo(fs),bo&&bo(!Ds,Vo),to&&to(fs)},[io,Ha,va,bo,to]),xr=a.useState(0),Jr=Object(c.a)(xr,2),Vr=Jr[0],Vn=Jr[1],sn=ft(Object(l.a)(Object(l.a)(Object(l.a)({},Et),oo),{},{expandable:!!So,expandedKeys:Ha,getRowKey:io,onTriggerExpand:pt,expandIcon:Io,expandIconColumnIndex:wo,direction:Ri}),Ca===nt?ra:null),zr=Object(c.a)(sn,2),qn=zr[0],en=zr[1],Un=a.useMemo(function(){return{columns:qn,flattenColumns:en}},[qn,en]),si=a.useRef(),ui=a.useRef(),oi=a.useRef(),Ei=a.useState(!1),pi=Object(c.a)(Ei,2),Ai=pi[0],Oi=pi[1],na=a.useState(!1),Hi=Object(c.a)(na,2),fa=Hi[0],Xa=Hi[1],xa=or(new Map),wa=Object(c.a)(xa,2),Da=wa[0],ja=wa[1],ko=G(en),ro=ko.map(function(Vo){return Da.get(Vo)}),pa=a.useMemo(function(){return ro},[ro.join("_")]),Ea=sr(pa,en.length,Ri),Fa=Fn&&ce(Fn.y),Ka=Fn&&ce(Fn.x),lo=Ka&&en.some(function(Vo){var No=Vo.fixed;return No}),so=a.useRef(),Co=Fe(La,_r),Lo=Co.isSticky,is=Co.offsetHeader,cs=Co.offsetScroll,Rs=Co.stickyClassName,Ko,as,co;Fa&&(as={overflowY:"scroll",maxHeight:Fn.y}),Ka&&(Ko={overflowX:"auto"},Fa||(as={overflowY:"hidden"}),co={width:Fn.x===!0?"auto":Fn.x,minWidth:"100%"});var Ao=a.useCallback(function(Vo,No){ja(function(fs){var Ds=new Map(fs);return Ds.set(Vo,No),Ds})},[]),$a=vr(null),ss=Object(c.a)($a,2),Cs=ss[0],Fo=ss[1];function il(Vo,No){if(!No)return;typeof No=="function"?No(Vo):No.scrollLeft!==Vo&&(No.scrollLeft=Vo)}var Eo=function(No){var fs=No.currentTarget,Ds=No.scrollLeft,go=typeof Ds=="number"?Ds:fs.scrollLeft,Ft=fs||Be;if(!Fo()||Fo()===Ft){var er;Cs(Ft),il(go,ui.current),il(go,oi.current),il(go,(er=so.current)===null||er===void 0?void 0:er.setScrollLeft)}if(fs){var Cn=fs.scrollWidth,di=fs.clientWidth;Oi(go>0),Xa(go<Cn-di)}},zo=function(){oi.current&&Eo({currentTarget:oi.current})},Bs=function(No){var fs=No.width;zo(),Vn(si.current?si.current.offsetWidth:fs)};a.useEffect(function(){return zo},[]),a.useEffect(function(){Ka&&zo()},[Ka]),a.useEffect(function(){Ca===nt&&Ma&&(Ma.body.current=oi.current)});var ms=Bi(["table"],"table"),hs=a.useMemo(function(){return fi||(lo?Fn.x==="max-content"?"auto":"fixed":Fa||en.some(function(Vo){var No=Vo.ellipsis;return No})?"fixed":"auto")},[Fa,lo,en,fi]),gn,Ns={colWidths:pa,columCount:en.length,stickyOffsets:Ea,onHeaderRow:ca,fixHeader:Fa},Ll=a.useMemo(function(){return ga?null:typeof ji=="function"?ji():ji},[ga,ji]),el=a.createElement(Xe,{data:va,measureColumnWidth:Fa||Ka||Lo,expandedKeys:Ha,rowExpandable:Uo,getRowKey:io,onRow:Yi,emptyNode:Ll,childrenColumnName:os}),Gs=a.createElement(Ee,{colWidths:en.map(function(Vo){var No=Vo.width;return No}),columns:en}),ds=Wi&&a.createElement(Dn,null,Wi(va)),ks=Bi(["body"]);if(Fa||Lo){var Qs;typeof ks=="function"?(Qs=ks(va,{scrollbarSize:Ga,ref:oi,onScroll:Eo}),Ns.colWidths=en.map(function(Vo,No){var fs=Vo.width,Ds=No===qn.length-1?fs-Ga:fs;return typeof Ds=="number"&&!Number.isNaN(Ds)?Ds:(Object(v.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):Qs=a.createElement("div",{style:Object(l.a)(Object(l.a)({},Ko),as),onScroll:Eo,ref:oi,className:t()("".concat(_r,"-body"))},a.createElement(ms,{style:Object(l.a)(Object(l.a)({},co),{},{tableLayout:hs})},Gs,el,ds),Lo&&a.createElement(_t,{ref:so,offsetScroll:cs,scrollBodyRef:oi,onScroll:Eo})),gn=a.createElement(a.Fragment,null,zi!==!1&&a.createElement(Le,Object.assign({noData:!va.length},Ns,Un,{direction:Ri,offsetHeader:is,stickyClassName:Rs,ref:ui,onScroll:Eo})),Qs)}else gn=a.createElement("div",{style:Object(l.a)(Object(l.a)({},Ko),as),className:t()("".concat(_r,"-content")),onScroll:Eo,ref:oi},a.createElement(ms,{style:Object(l.a)(Object(l.a)({},co),{},{tableLayout:hs})},Gs,zi!==!1&&a.createElement(Y,Object.assign({},Ns,Un)),el,ds));var tl=we(Et),xs=a.createElement("div",Object.assign({className:t()(_r,$r,(Cr={},Object(e.a)(Cr,"".concat(_r,"-rtl"),Ri==="rtl"),Object(e.a)(Cr,"".concat(_r,"-ping-left"),Ai),Object(e.a)(Cr,"".concat(_r,"-ping-right"),fa),Object(e.a)(Cr,"".concat(_r,"-layout-fixed"),fi==="fixed"),Object(e.a)(Cr,"".concat(_r,"-fixed-header"),Fa),Object(e.a)(Cr,"".concat(_r,"-fixed-column"),lo),Object(e.a)(Cr,"".concat(_r,"-scroll-horizontal"),Ka),Object(e.a)(Cr,"".concat(_r,"-has-fix-left"),en[0]&&en[0].fixed),Object(e.a)(Cr,"".concat(_r,"-has-fix-right"),en[en.length-1]&&en[en.length-1].fixed==="right"),Cr)),style:Tn,id:qi,ref:si},tl),a.createElement(vt,{pingLeft:Ai,pingRight:fa,props:Object(l.a)(Object(l.a)({},Et),{},{stickyOffsets:Ea,mergedExpandedKeys:Ha})},yi&&a.createElement(lr,{className:"".concat(_r,"-title")},yi(va)),a.createElement("div",{className:"".concat(_r,"-container")},gn),Ci&&a.createElement(lr,{className:"".concat(_r,"-footer")},Ci(va))));Ka&&(xs=a.createElement(M,{onResize:Bs},xs));var Us=a.useMemo(function(){return{prefixCls:_r,getComponent:Bi,scrollbarSize:Ga,direction:Ri,fixedInfoList:en.map(function(Vo,No){return Oe(No,No,en,Ea,Ri)}),isSticky:Lo}},[_r,Bi,Ga,Ri,en,Ea,Ri,Lo]),al=a.useMemo(function(){return Object(l.a)(Object(l.a)({},Un),{},{tableLayout:hs,rowClassName:yn,expandedRowClassName:ts,componentWidth:Vr,fixHeader:Fa,fixColumn:lo,horizonScroll:Ka,expandIcon:Io,expandableType:xo,expandRowByClick:Jo,expandedRowRender:So,onTriggerExpand:pt,expandIconColumnIndex:wo,indentSize:Oo})},[Un,hs,yn,ts,Vr,Fa,lo,Ka,Io,xo,Jo,So,pt,wo,Oo]),Js=a.useMemo(function(){return{onColumnResize:Ao}},[Ao]);return a.createElement(ot.Provider,{value:Us},a.createElement(At.Provider,{value:al},a.createElement(dr.Provider,{value:Js},xs)))}ar.Column=j,ar.ColumnGroup=X,ar.Summary=Xn,ar.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var kr=ar,mn=kr,Zn=n("W9HT"),ni=n("NUBc"),ur=n("H84U"),Nt=function(Et,Cr){var _r={};for(var $r in Et)Object.prototype.hasOwnProperty.call(Et,$r)&&Cr.indexOf($r)<0&&(_r[$r]=Et[$r]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yn=0,$r=Object.getOwnPropertySymbols(Et);yn<$r.length;yn++)Cr.indexOf($r[yn])<0&&Object.prototype.propertyIsEnumerable.call(Et,$r[yn])&&(_r[$r[yn]]=Et[$r[yn]]);return _r},bt=10;function gr(Et,Cr){var _r={current:Cr.current,pageSize:Cr.pageSize},$r=Et&&p()(Et)==="object"?Et:{};return Object.keys($r).forEach(function(yn){var Tn=Cr[yn];typeof Tn!="function"&&(_r[yn]=Tn)}),_r}function Yt(){for(var Et={},Cr=arguments.length,_r=new Array(Cr),$r=0;$r<Cr;$r++)_r[$r]=arguments[$r];return _r.forEach(function(yn){yn&&Object.keys(yn).forEach(function(Tn){var vn=yn[Tn];vn!==void 0&&(Et[Tn]=vn)})}),Et}function Pt(Et,Cr,_r){var $r=Cr&&p()(Cr)==="object"?Cr:{},yn=$r.total,Tn=yn===void 0?0:yn,vn=Nt($r,["total"]),Qn=Object(a.useState)(function(){return{current:"defaultCurrent"in vn?vn.defaultCurrent:1,pageSize:"defaultPageSize"in vn?vn.defaultPageSize:bt}}),Fn=f()(Qn,2),fi=Fn[0],Ri=Fn[1],yi=Yt(fi,vn,{total:Tn>0?Tn:Et});if(!Tn){var Ci=Math.ceil(Et/yi.pageSize);Ci<yi.current&&(yi.current=1)}var Wi=function(){var Ki=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,ji=arguments.length>1?arguments[1]:void 0;Ri(u()(u()({},yi),{current:Ki,pageSize:ji||yi.pageSize}))},qi=function(Ki,ji){var Yi=yi==null?void 0:yi.pageSize;ji&&ji!==Yi&&(Ki=1,Cr&&Cr.onShowSizeChange&&Cr.onShowSizeChange(Ki,ji)),Cr&&Cr.onChange&&Cr.onChange(Ki,ji),Wi(Ki,ji),_r(Ki,ji||Yi)};return Cr===!1?[{},function(){}]:[u()(u()({},yi),{onChange:qi}),Wi]}function rr(Et,Cr,_r){var $r=a.useRef({});function yn(Tn){if(!$r.current||$r.current.data!==Et||$r.current.childrenColumnName!==Cr||$r.current.getRowKey!==_r){var vn=function Fn(fi){fi.forEach(function(Ri,yi){var Ci=_r(Ri,yi);Qn.set(Ci,Ri),Ri&&p()(Ri)==="object"&&Cr in Ri&&Fn(Ri[Cr]||[])})},Qn=new Map;vn(Et),$r.current={data:Et,childrenColumnName:Cr,kvMap:Qn,getRowKey:_r}}return $r.current.kvMap.get(Tn)}return[yn]}var Rt=n("SA+Z"),qt=n.n(Rt),Yr=n("RIqP"),Mr=n.n(Yr),Dr=n("Ved0"),un=n.n(Dr),wn=n("c3jg"),ai=n("qOx5"),ei=n("wPhX"),gi=n("6cGi"),Ii=n("kaz8"),ki=n("jsC+"),Qi=n("BvKs"),it=n("9yH6"),Me=n("uaoM"),je="SELECT_ALL",Ye="SELECT_INVERT";function rt(Et){return Et&&Et.fixed}function qe(Et,Cr){var _r=[];return(Et||[]).forEach(function($r){_r.push($r),$r&&p()($r)==="object"&&Cr in $r&&(_r=[].concat(Mr()(_r),Mr()(qe($r[Cr],Cr))))}),_r}function at(Et,Cr){var _r=Et||{},$r=_r.preserveSelectedRowKeys,yn=_r.selectedRowKeys,Tn=_r.getCheckboxProps,vn=_r.onChange,Qn=_r.onSelect,Fn=_r.onSelectAll,fi=_r.onSelectInvert,Ri=_r.onSelectMultiple,yi=_r.columnWidth,Ci=_r.type,Wi=_r.selections,qi=_r.fixed,zi=_r.renderCell,Ki=_r.hideSelectAll,ji=_r.checkStrictly,Yi=ji===void 0?!0:ji,ca=Cr.prefixCls,Ca=Cr.data,ra=Cr.pageData,Ma=Cr.getRecordByKey,La=Cr.getRowKey,va=Cr.expandType,ga=Cr.childrenColumnName,Oa=Cr.locale,Aa=Cr.expandIconColumnIndex,Ga=Cr.getPopupContainer,_a=a.useRef(new Map),Va=Object(gi.a)(yn||[],{value:yn}),Bi=f()(Va,2),io=Bi[0],oo=Bi[1],Qo=Object(a.useMemo)(function(){return Yi?{keyEntities:null}:Object(wn.a)(Ca,void 0,La)},[Ca,La,Yi]),mo=Qo.keyEntities,To=Object(a.useMemo)(function(){return qe(ra,ga)},[ra,ga]),ao=Object(a.useMemo)(function(){var uo=new Map;return To.forEach(function(Ha,pt){var xr=La(Ha,pt),Jr=(Tn?Tn(Ha):null)||{};uo.set(xr,Jr)}),uo},[To,La,Tn]),So=Object(a.useCallback)(function(uo){var Ha;return!!((Ha=ao.get(La(uo)))===null||Ha===void 0?void 0:Ha.disabled)},[ao,La]),bo=Object(a.useMemo)(function(){if(Yi)return[io,[]];var uo=Object(ai.a)(io,!0,mo,So),Ha=uo.checkedKeys,pt=uo.halfCheckedKeys;return[Ha,pt]},[io,Yi,mo,So]),to=f()(bo,2),Jo=to[0],Uo=to[1],wo=Object(a.useMemo)(function(){var uo=Ci==="radio"?Jo.slice(0,1):Jo;return new Set(uo)},[Jo,Ci]),ts=Object(a.useMemo)(function(){return Ci==="radio"?new Set:new Set(Uo)},[Uo,Ci]),Ia=Object(a.useState)(null),Oo=f()(Ia,2),Io=Oo[0],os=Oo[1];a.useEffect(function(){Et||oo([])},[!!Et]);var xo=Object(a.useCallback)(function(uo){var Ha,pt;if($r){var xr=new Map;Ha=uo,pt=uo.map(function(Jr){var Vr=Ma(Jr);return!Vr&&_a.current.has(Jr)&&(Vr=_a.current.get(Jr)),xr.set(Jr,Vr),Vr}),_a.current=xr}else Ha=[],pt=[],uo.forEach(function(Jr){var Vr=Ma(Jr);Vr!==void 0&&(Ha.push(Jr),pt.push(Vr))});oo(Ha),vn&&vn(Ha,pt)},[oo,Ma,vn,$r]),rs=Object(a.useCallback)(function(uo,Ha,pt,xr){if(Qn){var Jr=pt.map(function(Vr){return Ma(Vr)});Qn(Ma(uo),Ha,Jr,xr)}xo(pt)},[Qn,Ma,xo]),Ho=Object(a.useMemo)(function(){if(!Wi||Ki)return null;var uo=Wi===!0?[je,Ye]:Wi;return uo.map(function(Ha){return Ha===je?{key:"all",text:Oa.selectionAll,onSelect:function(){xo(Ca.map(function(xr,Jr){return La(xr,Jr)}))}}:Ha===Ye?{key:"invert",text:Oa.selectInvert,onSelect:function(){var xr=new Set(wo);ra.forEach(function(Vr,Vn){var sn=La(Vr,Vn);xr.has(sn)?xr.delete(sn):xr.add(sn)});var Jr=Array.from(xr);xo(Jr),fi&&(Object(Me.a)(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),fi(Jr))}}:Ha})},[Wi,wo,ra,La,fi,xo]),_o=Object(a.useCallback)(function(uo){if(!Et)return uo;var Ha=new Set(wo),pt=To.map(La).filter(function(Ai){return!ao.get(Ai).disabled}),xr=pt.every(function(Ai){return Ha.has(Ai)}),Jr=pt.some(function(Ai){return Ha.has(Ai)}),Vr=function(){var Oi=[];xr?pt.forEach(function(Hi){Ha.delete(Hi),Oi.push(Hi)}):pt.forEach(function(Hi){Ha.has(Hi)||(Ha.add(Hi),Oi.push(Hi))});var na=Array.from(Ha);xo(na),Fn&&Fn(!xr,na.map(function(Hi){return Ma(Hi)}),Oi.map(function(Hi){return Ma(Hi)}))},Vn;if(Ci!=="radio"){var sn;if(Ho){var zr=a.createElement(Qi.a,{getPopupContainer:Ga},Ho.map(function(Ai,Oi){var na=Ai.key,Hi=Ai.text,fa=Ai.onSelect;return a.createElement(Qi.a.Item,{key:na||Oi,onClick:function(){fa&&fa(pt)}},Hi)}));sn=a.createElement("div",{className:"".concat(ca,"-selection-extra")},a.createElement(ki.a,{overlay:zr,getPopupContainer:Ga},a.createElement("span",null,a.createElement(un.a,null))))}var qn=To.every(function(Ai,Oi){var na=La(Ai,Oi),Hi=ao.get(na)||{};return Hi.disabled});Vn=!Ki&&a.createElement("div",{className:"".concat(ca,"-selection")},a.createElement(Ii.a,{checked:!qn&&!!To.length&&xr,indeterminate:!xr&&Jr,onChange:Vr,disabled:To.length===0||qn}),sn)}var en;Ci==="radio"?en=function(Oi,na,Hi){var fa=La(na,Hi),Xa=Ha.has(fa);return{node:a.createElement(it.a,u()({},ao.get(fa),{checked:Xa,onClick:function(wa){return wa.stopPropagation()},onChange:function(wa){Ha.has(fa)||rs(fa,!0,[fa],wa.nativeEvent)}})),checked:Xa}}:en=function(Oi,na,Hi){var fa,Xa=La(na,Hi),xa=Ha.has(Xa),wa=ts.has(Xa),Da=ao.get(Xa),ja;return va==="nest"?(ja=wa,Object(Me.a)(!(typeof(Da==null?void 0:Da.indeterminate)=="boolean"),"Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):ja=(fa=Da==null?void 0:Da.indeterminate)!==null&&fa!==void 0?fa:wa,{node:a.createElement(Ii.a,u()({},Da,{indeterminate:ja,checked:xa,onClick:function(ro){return ro.stopPropagation()},onChange:function(ro){var pa=ro.nativeEvent,Ea=pa.shiftKey,Fa=-1,Ka=-1;if(Ea&&Yi){var lo=new Set([Io,Xa]);pt.some(function($a,ss){if(lo.has($a))if(Fa===-1)Fa=ss;else return Ka=ss,!0;return!1})}if(Ka!==-1&&Fa!==Ka&&Yi){var so=pt.slice(Fa,Ka+1),Co=[];xa?so.forEach(function($a){Ha.has($a)&&(Co.push($a),Ha.delete($a))}):so.forEach(function($a){Ha.has($a)||(Co.push($a),Ha.add($a))});var Lo=Array.from(Ha);xo(Lo),Ri&&Ri(!xa,Lo.map(function($a){return Ma($a)}),Co.map(function($a){return Ma($a)}))}else{var is=Jo;if(Yi){var cs=xa?Object(ei.b)(is,Xa):Object(ei.a)(is,Xa);rs(Xa,!xa,cs,pa)}else{var Rs=Object(ai.a)([].concat(Mr()(is),[Xa]),!0,mo,So),Ko=Rs.checkedKeys,as=Rs.halfCheckedKeys,co=Ko;if(xa){var Ao=new Set(Ko);Ao.delete(Xa),co=Object(ai.a)(Array.from(Ao),{checked:!1,halfCheckedKeys:as},mo,So).checkedKeys}rs(Xa,!xa,co,pa)}}os(Xa)}})),checked:xa}};var Un=function(Oi,na,Hi){var fa=en(Oi,na,Hi),Xa=fa.node,xa=fa.checked;return zi?zi(xa,na,Hi,Xa):Xa},si=A()({width:yi,className:"".concat(ca,"-selection-column"),title:Et.columnTitle||Vn,render:Un},$,{className:"".concat(ca,"-selection-col")});if(va==="row"&&uo.length&&!Aa){var ui=qt()(uo),oi=ui[0],Ei=ui.slice(1),pi=qi||rt(Ei[0]);return pi&&(oi.fixed=pi),[oi,u()(u()({},si),{fixed:pi})].concat(Mr()(Ei))}return[u()(u()({},si),{fixed:qi||rt(uo[0])})].concat(Mr()(uo))},[La,To,Et,Jo,wo,ts,yi,Ho,va,Io,ao,Ri,rs,So]);return[_o,wo]}var St=n("MVse"),gt=n.n(St),hr=n("/hr5"),Qr=n.n(hr),Xr=n("3S7+");function dn(Et,Cr){return"key"in Et&&Et.key!==void 0&&Et.key!==null?Et.key:Et.dataIndex?Array.isArray(Et.dataIndex)?Et.dataIndex.join("."):Et.dataIndex:Cr}function mr(Et,Cr){return Cr?"".concat(Cr,"-").concat(Et):"".concat(Et)}function Kn(Et,Cr){return typeof Et=="function"?Et(Cr):Et}var Rr="ascend",Rn="descend";function An(Et){return p()(Et.sorter)==="object"&&typeof Et.sorter.multiple=="number"?Et.sorter.multiple:!1}function Zr(Et){return typeof Et=="function"?Et:Et&&p()(Et)==="object"&&Et.compare?Et.compare:!1}function hi(Et,Cr){return Cr?Et[Et.indexOf(Cr)+1]:Et[0]}function Mi(Et,Cr,_r){var $r=[];function yn(Tn,vn){$r.push({column:Tn,key:dn(Tn,vn),multiplePriority:An(Tn),sortOrder:Tn.sortOrder})}return(Et||[]).forEach(function(Tn,vn){var Qn=mr(vn,_r);Tn.children?("sortOrder"in Tn&&yn(Tn,Qn),$r=[].concat(Mr()($r),Mr()(Mi(Tn.children,Cr,Qn)))):Tn.sorter&&("sortOrder"in Tn?yn(Tn,Qn):Cr&&Tn.defaultSortOrder&&$r.push({column:Tn,key:dn(Tn,Qn),multiplePriority:An(Tn),sortOrder:Tn.defaultSortOrder}))}),$r}function Zi(Et,Cr,_r,$r,yn,Tn,vn,Qn){return(Cr||[]).map(function(Fn,fi){var Ri=mr(fi,Qn),yi=Fn;if(yi.sorter){var Ci=yi.sortDirections||yn,Wi=yi.showSorterTooltip===void 0?vn:yi.showSorterTooltip,qi=dn(yi,Ri),zi=_r.find(function(ga){var Oa=ga.key;return Oa===qi}),Ki=zi?zi.sortOrder:null,ji=hi(Ci,Ki),Yi=Ci.includes(Rr)&&a.createElement(Qr.a,{className:t()("".concat(Et,"-column-sorter-up"),{active:Ki===Rr})}),ca=Ci.includes(Rn)&&a.createElement(gt.a,{className:t()("".concat(Et,"-column-sorter-down"),{active:Ki===Rn})}),Ca=Tn||{},ra=Ca.cancelSort,Ma=Ca.triggerAsc,La=Ca.triggerDesc,va=ra;ji===Rn?va=La:ji===Rr&&(va=Ma),yi=u()(u()({},yi),{className:t()(yi.className,A()({},"".concat(Et,"-column-sort"),Ki)),title:function(Oa){var Aa=a.createElement("div",{className:"".concat(Et,"-column-sorters")},a.createElement("span",null,Kn(Fn.title,Oa)),a.createElement("span",{className:t()("".concat(Et,"-column-sorter"),A()({},"".concat(Et,"-column-sorter-full"),Yi&&ca))},a.createElement("span",{className:"".concat(Et,"-column-sorter-inner")},Yi,ca)));return Wi?a.createElement(Xr.a,{title:va},a.createElement("div",{className:"".concat(Et,"-column-sorters-with-tooltip")},Aa)):Aa},onHeaderCell:function(Oa){var Aa=Fn.onHeaderCell&&Fn.onHeaderCell(Oa)||{},Ga=Aa.onClick;return Aa.onClick=function(_a){$r({column:Fn,key:qi,sortOrder:ji,multiplePriority:An(Fn)}),Ga&&Ga(_a)},Aa.className=t()(Aa.className,"".concat(Et,"-column-has-sorters")),Aa}})}return"children"in yi&&(yi=u()(u()({},yi),{children:Zi(Et,yi.children,_r,$r,yn,Tn,vn,Ri)})),yi})}function qr(Et){var Cr=Et.column,_r=Et.sortOrder;return{column:Cr,order:_r,field:Cr.dataIndex,columnKey:Cr.key}}function xn(Et){var Cr=Et.filter(function(_r){var $r=_r.sortOrder;return $r}).map(qr);return Cr.length===0&&Et.length?u()(u()({},qr(Et[Et.length-1])),{column:void 0}):Cr.length<=1?Cr[0]||{}:Cr}function zn(Et,Cr,_r){var $r=Cr.slice().sort(function(vn,Qn){return Qn.multiplePriority-vn.multiplePriority}),yn=Et.slice(),Tn=$r.filter(function(vn){var Qn=vn.column.sorter,Fn=vn.sortOrder;return Zr(Qn)&&Fn});return Tn.length?yn.sort(function(vn,Qn){for(var Fn=0;Fn<Tn.length;Fn+=1){var fi=Tn[Fn],Ri=fi.column.sorter,yi=fi.sortOrder,Ci=Zr(Ri);if(Ci&&yi){var Wi=Ci(vn,Qn,yi);if(Wi!==0)return yi===Rr?Wi:-Wi}}return 0}).map(function(vn){var Qn=vn[_r];return Qn?u()(u()({},vn),A()({},_r,zn(Qn,Cr,_r))):vn}):yn}function Ht(Et){var Cr=Et.prefixCls,_r=Et.mergedColumns,$r=Et.onSorterChange,yn=Et.sortDirections,Tn=Et.tableLocale,vn=Et.showSorterTooltip,Qn=a.useState(Mi(_r,!0)),Fn=f()(Qn,2),fi=Fn[0],Ri=Fn[1],yi=a.useMemo(function(){var Ki=!0,ji=Mi(_r,!1);if(!ji.length)return fi;var Yi=[];function ca(ra){Ki?Yi.push(ra):Yi.push(u()(u()({},ra),{sortOrder:null}))}var Ca=null;return ji.forEach(function(ra){Ca===null?(ca(ra),ra.sortOrder&&(ra.multiplePriority===!1?Ki=!1:Ca=!0)):(Ca&&ra.multiplePriority!==!1||(Ki=!1),ca(ra))}),Yi},[_r,fi]),Ci=a.useMemo(function(){var Ki=yi.map(function(ji){var Yi=ji.column,ca=ji.sortOrder;return{column:Yi,order:ca}});return{sortColumns:Ki,sortColumn:Ki[0]&&Ki[0].column,sortOrder:Ki[0]&&Ki[0].order}},[yi]);function Wi(Ki){var ji;Ki.multiplePriority===!1||!yi.length||yi[0].multiplePriority===!1?ji=[Ki]:ji=[].concat(Mr()(yi.filter(function(Yi){var ca=Yi.key;return ca!==Ki.key})),[Ki]),Ri(ji),$r(xn(ji),ji)}var qi=function(ji){return Zi(Cr,ji,yi,Wi,yn,Tn,vn)},zi=function(){return xn(yi)};return[qi,yi,Ci,zi]}var Tt=n("Y+p1"),Dt=n.n(Tt),Bt=n("bU0H"),jt=n.n(Bt),Ot=n("2/Rp"),nr=n("ECub"),pr=function(Cr){return a.createElement("div",{className:Cr.className,onClick:function($r){return $r.stopPropagation()}},Cr.children)},Ar=pr,Nr=n("sPtV"),Hn=Qi.a.SubMenu,Ln=Qi.a.Item;function ci(Et){return Et.some(function(Cr){var _r=Cr.children;return _r})}function hn(Et){var Cr=Et.filters,_r=Et.prefixCls,$r=Et.filteredKeys,yn=Et.filterMultiple,Tn=Et.locale;return Cr.length===0?a.createElement(a.Fragment,null,a.createElement(nr.a,{image:nr.a.PRESENTED_IMAGE_SIMPLE,description:Tn.filterEmptyText,style:{margin:"16px 0"},imageStyle:{height:24}})):Cr.map(function(vn,Qn){var Fn=String(vn.value);if(vn.children)return a.createElement(Hn,{key:Fn||Qn,title:vn.text,popupClassName:"".concat(_r,"-dropdown-submenu")},hn({filters:vn.children,prefixCls:_r,filteredKeys:$r,filterMultiple:yn,locale:Tn}));var fi=yn?Ii.a:it.a;return a.createElement(Ln,{key:vn.value!==void 0?Fn:Qn},a.createElement(fi,{checked:$r.includes(Fn)}),a.createElement("span",null,vn.text))})}function Fr(Et){var Cr,_r=Et.prefixCls,$r=Et.column,yn=Et.dropdownPrefixCls,Tn=Et.columnKey,vn=Et.filterMultiple,Qn=Et.filterState,Fn=Et.triggerFilter,fi=Et.locale,Ri=Et.children,yi=Et.getPopupContainer,Ci=$r.filterDropdownVisible,Wi=$r.onFilterDropdownVisibleChange,qi=a.useState(!1),zi=f()(qi,2),Ki=zi[0],ji=zi[1],Yi=!!(Qn&&(((Cr=Qn.filteredKeys)===null||Cr===void 0?void 0:Cr.length)||Qn.forceFiltered)),ca=function(Oo){ji(Oo),Wi&&Wi(Oo)},Ca=typeof Ci=="boolean"?Ci:Ki,ra=Qn&&Qn.filteredKeys,Ma=Object(Nr.a)(ra||[]),La=f()(Ma,2),va=La[0],ga=La[1],Oa=function(Oo){var Io=Oo.selectedKeys;ga(Io)};a.useEffect(function(){Oa({selectedKeys:ra||[]})},[ra]);var Aa=a.useState([]),Ga=f()(Aa,2),_a=Ga[0],Va=Ga[1],Bi=a.useRef(),io=function(Oo){Bi.current=window.setTimeout(function(){Va(Oo)})},oo=function(){window.clearTimeout(Bi.current)};a.useEffect(function(){return function(){window.clearTimeout(Bi.current)}},[]);var Qo=function(Oo){ca(!1);var Io=Oo&&Oo.length?Oo:null;if(Io===null&&(!Qn||!Qn.filteredKeys))return null;if(Dt()(Io,Qn==null?void 0:Qn.filteredKeys))return null;Fn({column:$r,key:Tn,filteredKeys:Io})},mo=function(){Qo(va())},To=function(){ga([]),Qo([])},ao=function(Oo){Oo&&ra!==void 0&&ga(ra||[]),ca(Oo),!Oo&&!$r.filterDropdown&&mo()},So=t()(A()({},"".concat(yn,"-menu-without-submenu"),!ci($r.filters||[]))),bo;if(typeof $r.filterDropdown=="function")bo=$r.filterDropdown({prefixCls:"".concat(yn,"-custom"),setSelectedKeys:function(Oo){return Oa({selectedKeys:Oo})},selectedKeys:va(),confirm:mo,clearFilters:To,filters:$r.filters,visible:Ca});else if($r.filterDropdown)bo=$r.filterDropdown;else{var to=va()||[];bo=a.createElement(a.Fragment,null,a.createElement(Qi.a,{multiple:vn,prefixCls:"".concat(yn,"-menu"),className:So,onClick:oo,onSelect:Oa,onDeselect:Oa,selectedKeys:to,getPopupContainer:yi,openKeys:_a,onOpenChange:io},hn({filters:$r.filters||[],prefixCls:_r,filteredKeys:va(),filterMultiple:vn,locale:fi})),a.createElement("div",{className:"".concat(_r,"-dropdown-btns")},a.createElement(Ot.a,{type:"link",size:"small",disabled:to.length===0,onClick:To},fi.filterReset),a.createElement(Ot.a,{type:"primary",size:"small",onClick:mo},fi.filterConfirm)))}var Jo=a.createElement(Ar,{className:"".concat(_r,"-dropdown")},bo),Uo;typeof $r.filterIcon=="function"?Uo=$r.filterIcon(Yi):$r.filterIcon?Uo=$r.filterIcon:Uo=a.createElement(jt.a,null);var wo=a.useContext(ur.b),ts=wo.direction;return a.createElement("div",{className:t()("".concat(_r,"-column"))},a.createElement("span",{className:"".concat(_r,"-column-title")},Ri),a.createElement("span",{className:t()("".concat(_r,"-trigger-container"),A()({},"".concat(_r,"-trigger-container-open"),Ca)),onClick:function(Oo){Oo.stopPropagation()}},a.createElement(ki.a,{overlay:Jo,trigger:["click"],visible:Ca,onVisibleChange:ao,getPopupContainer:yi,placement:ts==="rtl"?"bottomLeft":"bottomRight"},a.createElement("span",{role:"button",tabIndex:-1,className:t()("".concat(_r,"-trigger"),{active:Yi})},Uo))))}var En=Fr;function Wn(Et,Cr,_r){var $r=[];return(Et||[]).forEach(function(yn,Tn){var vn=mr(Tn,_r);"children"in yn?$r=[].concat(Mr()($r),Mr()(Wn(yn.children,Cr,vn))):(yn.filters||"filterDropdown"in yn||"onFilter"in yn)&&("filteredValue"in yn?$r.push({column:yn,key:dn(yn,vn),filteredKeys:yn.filteredValue,forceFiltered:yn.filtered}):$r.push({column:yn,key:dn(yn,vn),filteredKeys:Cr&&yn.defaultFilteredValue?yn.defaultFilteredValue:void 0,forceFiltered:yn.filtered}))}),$r}function Yn(Et,Cr,_r,$r,yn,Tn,vn,Qn){return _r.map(function(Fn,fi){var Ri=mr(fi,Qn),yi=Fn.filterMultiple,Ci=yi===void 0?!0:yi;if(Fn.filters||"filterDropdown"in Fn){var Wi=dn(Fn,Ri),qi=$r.find(function(zi){var Ki=zi.key;return Wi===Ki});return u()(u()({},Fn),{title:function(Ki){return a.createElement(En,{prefixCls:"".concat(Et,"-filter"),dropdownPrefixCls:Cr,column:Fn,columnKey:Wi,filterState:qi,filterMultiple:Ci,triggerFilter:yn,locale:vn,getPopupContainer:Tn},Kn(Fn.title,Ki))}})}return"children"in Fn?u()(u()({},Fn),{children:Yn(Et,Cr,Fn.children,$r,yn,Tn,vn,Ri)}):Fn})}function ii(Et){var Cr={};return Et.forEach(function(_r){var $r=_r.key,yn=_r.filteredKeys;Cr[$r]=yn||null}),Cr}function xi(Et){var Cr=[];return(Et||[]).forEach(function(_r){var $r=_r.value,yn=_r.children;Cr.push($r),yn&&(Cr=[].concat(Mr()(Cr),Mr()(xi(yn))))}),Cr}function Ni(Et,Cr){return Cr.reduce(function(_r,$r){var yn=$r.column,Tn=yn.onFilter,vn=yn.filters,Qn=$r.filteredKeys;return Tn&&Qn&&Qn.length?_r.filter(function(Fn){return Qn.some(function(fi){var Ri=xi(vn),yi=Ri.findIndex(function(Wi){return String(Wi)===String(fi)}),Ci=yi!==-1?Ri[yi]:fi;return Tn(Ci,Fn)})}):_r},Et)}function Li(Et){var Cr=Et.prefixCls,_r=Et.dropdownPrefixCls,$r=Et.mergedColumns,yn=Et.onFilterChange,Tn=Et.getPopupContainer,vn=Et.locale,Qn=a.useState(Wn($r,!0)),Fn=f()(Qn,2),fi=Fn[0],Ri=Fn[1],yi=a.useMemo(function(){var zi=Wn($r,!1);return zi.every(function(Ki){var ji=Ki.filteredKeys;return ji===void 0})?fi:zi},[$r,fi]),Ci=a.useCallback(function(){return ii(yi)},[yi]),Wi=function(Ki){var ji=yi.filter(function(Yi){var ca=Yi.key;return ca!==Ki.key});ji.push(Ki),Ri(ji),yn(ii(ji),ji)},qi=function(Ki){return Yn(Cr,_r,Ki,yi,Wi,Tn,vn)};return[qi,yi,Ci]}var oa=Li;function ma(Et,Cr){return Et.map(function(_r){var $r=u()({},_r);return $r.title=Kn(_r.title,Cr),"children"in $r&&($r.children=ma($r.children,Cr)),$r})}function ia(Et){var Cr=a.useCallback(function(_r){return ma(_r,Et)},[Et]);return[Cr]}function ba(Et){return function(_r){var $r,yn=_r.prefixCls,Tn=_r.onExpand,vn=_r.record,Qn=_r.expanded,Fn=_r.expandable,fi="".concat(yn,"-row-expand-icon");return a.createElement("button",{type:"button",onClick:function(yi){Tn(vn,yi),yi.stopPropagation()},className:t()(fi,($r={},A()($r,"".concat(fi,"-spaced"),!Fn),A()($r,"".concat(fi,"-expanded"),Fn&&Qn),A()($r,"".concat(fi,"-collapsed"),Fn&&!Qn),$r)),"aria-label":Qn?Et.collapse:Et.expand})}}var vi=ba,On=n("zAh6"),Fi=n("ZvpZ"),ha=Fi.a,ea=n("3Nzz");function aa(Et){return null}var Or=aa;function wr(Et){return null}var Sn=wr,cr=n("5OYt"),Lr=[];function Wr(Et){var Cr,_r=Et.prefixCls,$r=Et.className,yn=Et.style,Tn=Et.size,vn=Et.bordered,Qn=Et.dropdownPrefixCls,Fn=Et.dataSource,fi=Et.pagination,Ri=Et.rowSelection,yi=Et.rowKey,Ci=Et.rowClassName,Wi=Et.columns,qi=Et.children,zi=Et.childrenColumnName,Ki=Et.onChange,ji=Et.getPopupContainer,Yi=Et.loading,ca=Et.expandIcon,Ca=Et.expandable,ra=Et.expandedRowRender,Ma=Et.expandIconColumnIndex,La=Et.indentSize,va=Et.scroll,ga=Et.sortDirections,Oa=Et.locale,Aa=Et.showSorterTooltip,Ga=Aa===void 0?!0:Aa;Object(Me.a)(!(typeof yi=="function"&&yi.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");var _a=Object(cr.a)(),Va=a.useMemo(function(){var Ao=new Set(Object.keys(_a).filter(function($a){return _a[$a]}));return(Wi||pe(qi)).filter(function($a){return!$a.responsive||$a.responsive.some(function(ss){return Ao.has(ss)})})},[qi,Wi,_a]),Bi=Object(o.default)(Et,["className","style","columns"]),io=a.useContext(ea.b),oo=a.useContext(ur.b),Qo=oo.locale,mo=Qo===void 0?ha:Qo,To=oo.renderEmpty,ao=oo.direction,So=Tn||io,bo=u()(u()({},mo.Table),Oa),to=Fn||Lr,Jo=a.useContext(ur.b),Uo=Jo.getPrefixCls,wo=Uo("table",_r),ts=Uo("dropdown",Qn),Ia=u()({childrenColumnName:zi,expandIconColumnIndex:Ma},Ca),Oo=Ia.childrenColumnName,Io=Oo===void 0?"children":Oo,os=a.useMemo(function(){return to.some(function(Ao){var $a;return($a=Ao)===null||$a===void 0?void 0:$a[Io]})?"nest":ra||Ca&&Ca.expandedRowRender?"row":null},[to]),xo={body:a.useRef()},rs=a.useMemo(function(){return typeof yi=="function"?yi:function(Ao){var $a;return($a=Ao)===null||$a===void 0?void 0:$a[yi]}},[yi]),Ho=rr(to,Io,rs),_o=f()(Ho,1),uo=_o[0],Ha={},pt=function($a,ss){var Cs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Fo=u()(u()({},Ha),$a);Cs&&(Ha.resetPagination(),Fo.pagination.current&&(Fo.pagination.current=1),fi&&fi.onChange&&fi.onChange(1,Fo.pagination.pageSize)),va&&va.scrollToFirstRowOnChange!==!1&&xo.body.current&&Object(On.a)(0,{getContainer:function(){return xo.body.current}}),Ki&&Ki(Fo.pagination,Fo.filters,Fo.sorter,{currentDataSource:Ni(zn(to,Fo.sorterStates,Io),Fo.filterStates),action:ss})},xr=function($a,ss){pt({sorter:$a,sorterStates:ss},"sort",!1)},Jr=Ht({prefixCls:wo,mergedColumns:Va,onSorterChange:xr,sortDirections:ga||["ascend","descend"],tableLocale:bo,showSorterTooltip:Ga}),Vr=f()(Jr,4),Vn=Vr[0],sn=Vr[1],zr=Vr[2],qn=Vr[3],en=a.useMemo(function(){return zn(to,sn,Io)},[to,sn]);Ha.sorter=qn(),Ha.sorterStates=sn;var Un=function($a,ss){pt({filters:$a,filterStates:ss},"filter",!0)},si=oa({prefixCls:wo,locale:bo,dropdownPrefixCls:ts,mergedColumns:Va,onFilterChange:Un,getPopupContainer:ji}),ui=f()(si,3),oi=ui[0],Ei=ui[1],pi=ui[2],Ai=Ni(en,Ei);Ha.filters=pi(),Ha.filterStates=Ei;var Oi=a.useMemo(function(){return u()({},zr)},[zr]),na=ia(Oi),Hi=f()(na,1),fa=Hi[0],Xa=function($a,ss){pt({pagination:u()(u()({},Ha.pagination),{current:$a,pageSize:ss})},"paginate")},xa=Pt(Ai.length,fi,Xa),wa=f()(xa,2),Da=wa[0],ja=wa[1];Ha.pagination=fi===!1?{}:gr(fi,Da),Ha.resetPagination=ja;var ko=a.useMemo(function(){if(fi===!1||!Da.pageSize)return Ai;var Ao=Da.current,$a=Ao===void 0?1:Ao,ss=Da.total,Cs=Da.pageSize,Fo=Cs===void 0?bt:Cs;return Ai.length<ss?Ai.length>Fo?(Object(Me.a)(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."),Ai.slice(($a-1)*Fo,$a*Fo)):Ai:Ai.slice(($a-1)*Fo,$a*Fo)},[!!fi,Ai,Da&&Da.current,Da&&Da.pageSize,Da&&Da.total]),ro=at(Ri,{prefixCls:wo,data:Ai,pageData:ko,getRowKey:rs,getRecordByKey:uo,expandType:os,childrenColumnName:Io,locale:bo,expandIconColumnIndex:Ia.expandIconColumnIndex,getPopupContainer:ji}),pa=f()(ro,2),Ea=pa[0],Fa=pa[1],Ka=function($a,ss,Cs){var Fo;return typeof Ci=="function"?Fo=t()(Ci($a,ss,Cs)):Fo=t()(Ci),t()(A()({},"".concat(wo,"-row-selected"),Fa.has(rs($a,ss))),Fo)};Ia.__PARENT_RENDER_ICON__=Ia.expandIcon,Ia.expandIcon=Ia.expandIcon||ca||vi(bo),os==="nest"&&Ia.expandIconColumnIndex===void 0?Ia.expandIconColumnIndex=Ri?1:0:Ia.expandIconColumnIndex>0&&Ri&&(Ia.expandIconColumnIndex-=1),typeof Ia.indentSize!="number"&&(Ia.indentSize=typeof La=="number"?La:15);var lo=a.useCallback(function(Ao){return fa(Ea(oi(Vn(Ao))))},[Vn,oi,Ea]),so,Co;if(fi!==!1){var Lo;Da.size?Lo=Da.size:Lo=So==="small"||So==="middle"?"small":void 0;var is=function($a){return a.createElement(ni.a,u()({className:"".concat(wo,"-pagination ").concat(wo,"-pagination-").concat($a)},Da,{size:Lo}))},cs=ao==="rtl"?"left":"right";if(Da.position!==null&&Array.isArray(Da.position)){var Rs=Da.position.find(function(Ao){return Ao.indexOf("top")!==-1}),Ko=Da.position.find(function(Ao){return Ao.indexOf("bottom")!==-1});!Rs&&!Ko?Co=is(cs):(Rs&&(so=is(Rs.toLowerCase().replace("top",""))),Ko&&(Co=is(Ko.toLowerCase().replace("bottom",""))))}else Co=is(cs)}var as;typeof Yi=="boolean"?as={spinning:Yi}:p()(Yi)==="object"&&(as=u()({spinning:!0},Yi));var co=t()("".concat(wo,"-wrapper"),$r,A()({},"".concat(wo,"-wrapper-rtl"),ao==="rtl"));return a.createElement("div",{className:co,style:yn},a.createElement(Zn.a,u()({spinning:!1},as),so,a.createElement(mn,u()({},Bi,{columns:Va,direction:ao,expandable:Ia,prefixCls:wo,className:t()((Cr={},A()(Cr,"".concat(wo,"-middle"),So==="middle"),A()(Cr,"".concat(wo,"-small"),So==="small"),A()(Cr,"".concat(wo,"-bordered"),vn),A()(Cr,"".concat(wo,"-empty"),to.length===0),Cr)),data:ko,rowKey:rs,rowClassName:Ka,emptyText:Oa&&Oa.emptyText||To("Table"),internalHooks:nt,internalRefs:xo,transformColumns:lo})),Ai&&Ai.length>0&&Co))}Wr.defaultProps={rowKey:"key"},Wr.SELECTION_ALL=je,Wr.SELECTION_INVERT=Ye,Wr.Column=Or,Wr.ColumnGroup=Sn,Wr.Summary=Xn;var on=Wr,Nn=D.a=on},wDdD:function(k,D,n){var y=n("ProS"),p=n("bYtY");n("98bh"),n("GrNh");var x=n("d4KN"),A=n("mOdp"),m=n("KS52"),f=n("0/Rx");x("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),y.registerVisual(A("pie")),y.registerLayout(p.curry(m,"pie")),y.registerProcessor(f("pie"))},"wF/u":function(k,D,n){var y=n("e5cp"),p=n("ExA7");function x(A,m,f,h,u){return A===m?!0:A==null||m==null||!p(A)&&!p(m)?A!==A&&m!==m:y(A,m,f,h,x,u)}k.exports=x},wJg7:function(k,D){var n=9007199254740991,y=/^(?:0|[1-9]\d*)$/;function p(x,A){var m=typeof x;return A=A==null?n:A,!!A&&(m=="number"||m!="symbol"&&y.test(x))&&(x>-1&&x%1==0)&&x<A}k.exports=p},wOnQ:function(k,D,n){/*!
|
|
|
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
|
|
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
|
|
* Released under MIT License
|
|
|
*/(function(y,p){k.exports=p()})(this,function(){"use strict";/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation.
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
|
purpose with or without fee is hereby granted.
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
|
***************************************************************************** */var y=function(ye,De){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ve,ut){Ve.__proto__=ut}||function(Ve,ut){for(var fr in ut)Object.prototype.hasOwnProperty.call(ut,fr)&&(Ve[fr]=ut[fr])},y(ye,De)};function p(Sr,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Class extends value "+String(ye)+" is not a constructor or null");y(Sr,ye);function De(){this.constructor=Sr}Sr.prototype=ye===null?Object.create(ye):(De.prototype=ye.prototype,new De)}var x=function(){return x=Object.assign||function(De){for(var Ve,ut=1,fr=arguments.length;ut<fr;ut++){Ve=arguments[ut];for(var tn in Ve)Object.prototype.hasOwnProperty.call(Ve,tn)&&(De[tn]=Ve[tn])}return De},x.apply(this,arguments)};function A(Sr,ye,De,Ve){function ut(fr){return fr instanceof De?fr:new De(function(tn){tn(fr)})}return new(De||(De=Promise))(function(fr,tn){function bn(Vi){try{ti(Ve.next(Vi))}catch(Pi){tn(Pi)}}function Mn(Vi){try{ti(Ve.throw(Vi))}catch(Pi){tn(Pi)}}function ti(Vi){Vi.done?fr(Vi.value):ut(Vi.value).then(bn,Mn)}ti((Ve=Ve.apply(Sr,ye||[])).next())})}function m(Sr,ye){var De={label:0,sent:function(){if(fr[0]&1)throw fr[1];return fr[1]},trys:[],ops:[]},Ve,ut,fr,tn;return tn={next:bn(0),throw:bn(1),return:bn(2)},typeof Symbol=="function"&&(tn[Symbol.iterator]=function(){return this}),tn;function bn(ti){return function(Vi){return Mn([ti,Vi])}}function Mn(ti){if(Ve)throw new TypeError("Generator is already executing.");for(;De;)try{if(Ve=1,ut&&(fr=ti[0]&2?ut.return:ti[0]?ut.throw||((fr=ut.return)&&fr.call(ut),0):ut.next)&&!(fr=fr.call(ut,ti[1])).done)return fr;(ut=0,fr)&&(ti=[ti[0]&2,fr.value]);switch(ti[0]){case 0:case 1:fr=ti;break;case 4:return De.label++,{value:ti[1],done:!1};case 5:De.label++,ut=ti[1],ti=[0];continue;case 7:ti=De.ops.pop(),De.trys.pop();continue;default:if(!(fr=De.trys,fr=fr.length>0&&fr[fr.length-1])&&(ti[0]===6||ti[0]===2)){De=0;continue}if(ti[0]===3&&(!fr||ti[1]>fr[0]&&ti[1]<fr[3])){De.label=ti[1];break}if(ti[0]===6&&De.label<fr[1]){De.label=fr[1],fr=ti;break}if(fr&&De.label<fr[2]){De.label=fr[2],De.ops.push(ti);break}fr[2]&&De.ops.pop(),De.trys.pop();continue}ti=ye.call(Sr,De)}catch(Vi){ti=[6,Vi],ut=0}finally{Ve=fr=0}if(ti[0]&5)throw ti[1];return{value:ti[0]?ti[1]:void 0,done:!0}}}function f(Sr,ye,De){if(De||arguments.length===2)for(var Ve=0,ut=ye.length,fr;Ve<ut;Ve++)(fr||!(Ve in ye))&&(fr||(fr=Array.prototype.slice.call(ye,0,Ve)),fr[Ve]=ye[Ve]);return Sr.concat(fr||ye)}for(var h=function(){function Sr(ye,De,Ve,ut){this.left=ye,this.top=De,this.width=Ve,this.height=ut}return Sr.prototype.add=function(ye,De,Ve,ut){return new Sr(this.left+ye,this.top+De,this.width+Ve,this.height+ut)},Sr.fromClientRect=function(ye,De){return new Sr(De.left+ye.windowBounds.left,De.top+ye.windowBounds.top,De.width,De.height)},Sr.fromDOMRectList=function(ye,De){var Ve=Array.from(De).find(function(ut){return ut.width!==0});return Ve?new Sr(Ve.left+ye.windowBounds.left,Ve.top+ye.windowBounds.top,Ve.width,Ve.height):Sr.EMPTY},Sr.EMPTY=new Sr(0,0,0,0),Sr}(),u=function(ye,De){return h.fromClientRect(ye,De.getBoundingClientRect())},a=function(ye){var De=ye.body,Ve=ye.documentElement;if(!De||!Ve)throw new Error("Unable to get document size");var ut=Math.max(Math.max(De.scrollWidth,Ve.scrollWidth),Math.max(De.offsetWidth,Ve.offsetWidth),Math.max(De.clientWidth,Ve.clientWidth)),fr=Math.max(Math.max(De.scrollHeight,Ve.scrollHeight),Math.max(De.offsetHeight,Ve.offsetHeight),Math.max(De.clientHeight,Ve.clientHeight));return new h(0,0,ut,fr)},i=function(ye){for(var De=[],Ve=0,ut=ye.length;Ve<ut;){var fr=ye.charCodeAt(Ve++);if(fr>=55296&&fr<=56319&&Ve<ut){var tn=ye.charCodeAt(Ve++);(tn&64512)===56320?De.push(((fr&1023)<<10)+(tn&1023)+65536):(De.push(fr),Ve--)}else De.push(fr)}return De},t=function(){for(var ye=[],De=0;De<arguments.length;De++)ye[De]=arguments[De];if(String.fromCodePoint)return String.fromCodePoint.apply(String,ye);var Ve=ye.length;if(!Ve)return"";for(var ut=[],fr=-1,tn="";++fr<Ve;){var bn=ye[fr];bn<=65535?ut.push(bn):(bn-=65536,ut.push((bn>>10)+55296,bn%1024+56320)),(fr+1===Ve||ut.length>16384)&&(tn+=String.fromCharCode.apply(String,ut),ut.length=0)}return tn},o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),l=0;l<o.length;l++)e[o.charCodeAt(l)]=l;for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),c=0;c<r.length;c++)s[r.charCodeAt(c)]=c;for(var d=function(ye){var De=ye.length*.75,Ve=ye.length,ut,fr=0,tn,bn,Mn,ti;ye[ye.length-1]==="="&&(De--,ye[ye.length-2]==="="&&De--);var Vi=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(De):new Array(De),Pi=Array.isArray(Vi)?Vi:new Uint8Array(Vi);for(ut=0;ut<Ve;ut+=4)tn=s[ye.charCodeAt(ut)],bn=s[ye.charCodeAt(ut+1)],Mn=s[ye.charCodeAt(ut+2)],ti=s[ye.charCodeAt(ut+3)],Pi[fr++]=tn<<2|bn>>4,Pi[fr++]=(bn&15)<<4|Mn>>2,Pi[fr++]=(Mn&3)<<6|ti&63;return Vi},g=function(ye){for(var De=ye.length,Ve=[],ut=0;ut<De;ut+=2)Ve.push(ye[ut+1]<<8|ye[ut]);return Ve},v=function(ye){for(var De=ye.length,Ve=[],ut=0;ut<De;ut+=4)Ve.push(ye[ut+3]<<24|ye[ut+2]<<16|ye[ut+1]<<8|ye[ut]);return Ve},b=5,S=6+5,E=2,C=S-b,_=65536>>b,T=1<<b,w=T-1,O=1024>>b,I=_+O,R=I,M=2048>>6,F=R+M,P=65536>>S,X=1<<C,B=X-1,j=function(ye,De,Ve){return ye.slice?ye.slice(De,Ve):new Uint16Array(Array.prototype.slice.call(ye,De,Ve))},W=function(ye,De,Ve){return ye.slice?ye.slice(De,Ve):new Uint32Array(Array.prototype.slice.call(ye,De,Ve))},z=function(ye,De){var Ve=d(ye),ut=Array.isArray(Ve)?v(Ve):new Uint32Array(Ve),fr=Array.isArray(Ve)?g(Ve):new Uint16Array(Ve),tn=24,bn=j(fr,tn/2,ut[4]/2),Mn=ut[5]===2?j(fr,(tn+ut[4])/2):W(ut,Math.ceil((tn+ut[4])/4));return new V(ut[0],ut[1],ut[2],ut[3],bn,Mn)},V=function(){function Sr(ye,De,Ve,ut,fr,tn){this.initialValue=ye,this.errorValue=De,this.highStart=Ve,this.highValueIndex=ut,this.index=fr,this.data=tn}return Sr.prototype.get=function(ye){var De;if(ye>=0){if(ye<55296||ye>56319&&ye<=65535)return De=this.index[ye>>b],De=(De<<E)+(ye&w),this.data[De];if(ye<=65535)return De=this.index[_+(ye-55296>>b)],De=(De<<E)+(ye&w),this.data[De];if(ye<this.highStart)return De=F-P+(ye>>S),De=this.index[De],De+=ye>>b&B,De=this.index[De],De=(De<<E)+(ye&w),this.data[De];if(ye<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Sr}(),Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",G=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),ee=0;ee<Q.length;ee++)G[Q.charCodeAt(ee)]=ee;var ce="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",be=50,le=1,Ie=2,ke=3,Re=4,Qe=5,We=7,ot=8,Oe=9,oe=10,st=11,he=12,J=13,Y=14,$=15,fe=16,we=17,Ne=18,Ee=19,de=20,me=21,Le=22,tt=23,At=24,ht=25,Ke=26,Jt=27,ct=28,Gt=29,dr=30,zt=31,kt=32,Vt=33,Xe=34,pe=35,te=36,$e=37,He=38,ae=39,ft=40,Mt=41,mt=42,or=43,vr=[9001,65288],fn="!",sr="\xD7",Ir="\xF7",lr=z(ce),Wt=[dr,te],xt=[le,Ie,ke,Qe],rn=[oe,ot],Dn=[Jt,Ke],Xn=xt.concat(rn),ri=[He,ae,ft,Xe,pe],Ui=[$,J],Bn=function(ye,De){De===void 0&&(De="strict");var Ve=[],ut=[],fr=[];return ye.forEach(function(tn,bn){var Mn=lr.get(tn);if(Mn>be?(fr.push(!0),Mn-=be):fr.push(!1),["normal","auto","loose"].indexOf(De)!==-1&&[8208,8211,12316,12448].indexOf(tn)!==-1)return ut.push(bn),Ve.push(fe);if(Mn===Re||Mn===st){if(bn===0)return ut.push(bn),Ve.push(dr);var ti=Ve[bn-1];return Xn.indexOf(ti)===-1?(ut.push(ut[bn-1]),Ve.push(ti)):(ut.push(bn),Ve.push(dr))}if(ut.push(bn),Mn===zt)return Ve.push(De==="strict"?me:$e);if(Mn===mt)return Ve.push(dr);if(Mn===Gt)return Ve.push(dr);if(Mn===or)return tn>=131072&&tn<=196605||tn>=196608&&tn<=262141?Ve.push($e):Ve.push(dr);Ve.push(Mn)}),[ut,Ve,fr]},Jn=function(ye,De,Ve,ut){var fr=ut[Ve];if(Array.isArray(ye)?ye.indexOf(fr)!==-1:ye===fr)for(var tn=Ve;tn<=ut.length;){tn++;var bn=ut[tn];if(bn===De)return!0;if(bn!==oe)break}if(fr===oe)for(var tn=Ve;tn>0;){tn--;var Mn=ut[tn];if(Array.isArray(ye)?ye.indexOf(Mn)!==-1:ye===Mn)for(var ti=Ve;ti<=ut.length;){ti++;var bn=ut[ti];if(bn===De)return!0;if(bn!==oe)break}if(Mn!==oe)break}return!1},Xt=function(ye,De){for(var Ve=ye;Ve>=0;){var ut=De[Ve];if(ut===oe)Ve--;else return ut}return 0},_t=function(ye,De,Ve,ut,fr){if(Ve[ut]===0)return sr;var tn=ut-1;if(Array.isArray(fr)&&fr[tn]===!0)return sr;var bn=tn-1,Mn=tn+1,ti=De[tn],Vi=bn>=0?De[bn]:0,Pi=De[Mn];if(ti===Ie&&Pi===ke)return sr;if(xt.indexOf(ti)!==-1)return fn;if(xt.indexOf(Pi)!==-1)return sr;if(rn.indexOf(Pi)!==-1)return sr;if(Xt(tn,De)===ot)return Ir;if(lr.get(ye[tn])===st)return sr;if((ti===kt||ti===Vt)&&lr.get(ye[Mn])===st)return sr;if(ti===We||Pi===We)return sr;if(ti===Oe)return sr;if([oe,J,$].indexOf(ti)===-1&&Pi===Oe)return sr;if([we,Ne,Ee,At,ct].indexOf(Pi)!==-1)return sr;if(Xt(tn,De)===Le)return sr;if(Jn(tt,Le,tn,De))return sr;if(Jn([we,Ne],me,tn,De))return sr;if(Jn(he,he,tn,De))return sr;if(ti===oe)return Ir;if(ti===tt||Pi===tt)return sr;if(Pi===fe||ti===fe)return Ir;if([J,$,me].indexOf(Pi)!==-1||ti===Y)return sr;if(Vi===te&&Ui.indexOf(ti)!==-1)return sr;if(ti===ct&&Pi===te)return sr;if(Pi===de)return sr;if(Wt.indexOf(Pi)!==-1&&ti===ht||Wt.indexOf(ti)!==-1&&Pi===ht)return sr;if(ti===Jt&&[$e,kt,Vt].indexOf(Pi)!==-1||[$e,kt,Vt].indexOf(ti)!==-1&&Pi===Ke)return sr;if(Wt.indexOf(ti)!==-1&&Dn.indexOf(Pi)!==-1||Dn.indexOf(ti)!==-1&&Wt.indexOf(Pi)!==-1)return sr;if([Jt,Ke].indexOf(ti)!==-1&&(Pi===ht||[Le,$].indexOf(Pi)!==-1&&De[Mn+1]===ht)||[Le,$].indexOf(ti)!==-1&&Pi===ht||ti===ht&&[ht,ct,At].indexOf(Pi)!==-1)return sr;if([ht,ct,At,we,Ne].indexOf(Pi)!==-1)for(var $i=tn;$i>=0;){var Za=De[$i];if(Za===ht)return sr;if([ct,At].indexOf(Za)!==-1)$i--;else break}if([Jt,Ke].indexOf(Pi)!==-1)for(var $i=[we,Ne].indexOf(ti)!==-1?bn:tn;$i>=0;){var Za=De[$i];if(Za===ht)return sr;if([ct,At].indexOf(Za)!==-1)$i--;else break}if(He===ti&&[He,ae,Xe,pe].indexOf(Pi)!==-1||[ae,Xe].indexOf(ti)!==-1&&[ae,ft].indexOf(Pi)!==-1||[ft,pe].indexOf(ti)!==-1&&Pi===ft)return sr;if(ri.indexOf(ti)!==-1&&[de,Ke].indexOf(Pi)!==-1||ri.indexOf(Pi)!==-1&&ti===Jt)return sr;if(Wt.indexOf(ti)!==-1&&Wt.indexOf(Pi)!==-1)return sr;if(ti===At&&Wt.indexOf(Pi)!==-1)return sr;if(Wt.concat(ht).indexOf(ti)!==-1&&Pi===Le&&vr.indexOf(ye[Mn])===-1||Wt.concat(ht).indexOf(Pi)!==-1&&ti===Ne)return sr;if(ti===Mt&&Pi===Mt){for(var eo=Ve[tn],po=1;eo>0&&(eo--,De[eo]===Mt);)po++;if(po%2!==0)return sr}return ti===kt&&Pi===Vt?sr:Ir},Fe=function(ye,De){De||(De={lineBreak:"normal",wordBreak:"normal"});var Ve=Bn(ye,De.lineBreak),ut=Ve[0],fr=Ve[1],tn=Ve[2];(De.wordBreak==="break-all"||De.wordBreak==="break-word")&&(fr=fr.map(function(Mn){return[ht,dr,mt].indexOf(Mn)!==-1?$e:Mn}));var bn=De.wordBreak==="keep-all"?tn.map(function(Mn,ti){return Mn&&ye[ti]>=19968&&ye[ti]<=40959}):void 0;return[ut,fr,bn]},Pe=function(){function Sr(ye,De,Ve,ut){this.codePoints=ye,this.required=De===fn,this.start=Ve,this.end=ut}return Sr.prototype.slice=function(){return t.apply(void 0,this.codePoints.slice(this.start,this.end))},Sr}(),Be=function(ye,De){var Ve=i(ye),ut=Fe(Ve,De),fr=ut[0],tn=ut[1],bn=ut[2],Mn=Ve.length,ti=0,Vi=0;return{next:function(){if(Vi>=Mn)return{done:!0,value:null};for(var $i=sr;Vi<Mn&&($i=_t(Ve,tn,fr,++Vi,bn))===sr;);if($i!==sr||Vi===Mn){var Za=new Pe(Ve,$i,ti,Vi);return ti=Vi,{value:Za,done:!1}}return{done:!0,value:null}}}},nt=1<<0,vt=1<<1,ar=1<<2,kr=1<<3,mn=10,Zn=47,ni=92,ur=9,Nt=32,bt=34,gr=61,Yt=35,Pt=36,rr=37,Rt=39,qt=40,Yr=41,Mr=95,Dr=45,un=33,wn=60,ai=62,ei=64,gi=91,Ii=93,ki=61,Qi=123,it=63,Me=125,je=124,Ye=126,rt=128,qe=65533,at=42,St=43,gt=44,hr=58,Qr=59,Xr=46,dn=0,mr=8,Kn=11,Rr=14,Rn=31,An=127,Zr=-1,hi=48,Mi=97,Zi=101,qr=102,xn=117,zn=122,Ht=65,Tt=69,Dt=70,Bt=85,jt=90,Ot=function(ye){return ye>=hi&&ye<=57},nr=function(ye){return ye>=55296&&ye<=57343},pr=function(ye){return Ot(ye)||ye>=Ht&&ye<=Dt||ye>=Mi&&ye<=qr},Ar=function(ye){return ye>=Mi&&ye<=zn},Nr=function(ye){return ye>=Ht&&ye<=jt},Hn=function(ye){return Ar(ye)||Nr(ye)},Ln=function(ye){return ye>=rt},ci=function(ye){return ye===mn||ye===ur||ye===Nt},hn=function(ye){return Hn(ye)||Ln(ye)||ye===Mr},Fr=function(ye){return hn(ye)||Ot(ye)||ye===Dr},En=function(ye){return ye>=dn&&ye<=mr||ye===Kn||ye>=Rr&&ye<=Rn||ye===An},Wn=function(ye,De){return ye!==ni?!1:De!==mn},Yn=function(ye,De,Ve){return ye===Dr?hn(De)||Wn(De,Ve):hn(ye)?!0:!!(ye===ni&&Wn(ye,De))},ii=function(ye,De,Ve){return ye===St||ye===Dr?Ot(De)?!0:De===Xr&&Ot(Ve):ye===Xr?Ot(De):Ot(ye)},xi=function(ye){var De=0,Ve=1;(ye[De]===St||ye[De]===Dr)&&(ye[De]===Dr&&(Ve=-1),De++);for(var ut=[];Ot(ye[De]);)ut.push(ye[De++]);var fr=ut.length?parseInt(t.apply(void 0,ut),10):0;ye[De]===Xr&&De++;for(var tn=[];Ot(ye[De]);)tn.push(ye[De++]);var bn=tn.length,Mn=bn?parseInt(t.apply(void 0,tn),10):0;(ye[De]===Tt||ye[De]===Zi)&&De++;var ti=1;(ye[De]===St||ye[De]===Dr)&&(ye[De]===Dr&&(ti=-1),De++);for(var Vi=[];Ot(ye[De]);)Vi.push(ye[De++]);var Pi=Vi.length?parseInt(t.apply(void 0,Vi),10):0;return Ve*(fr+Mn*Math.pow(10,-bn))*Math.pow(10,ti*Pi)},Ni={type:2},Li={type:3},oa={type:4},ma={type:13},ia={type:8},ba={type:21},vi={type:9},On={type:10},Fi={type:11},ha={type:12},ea={type:14},aa={type:23},Or={type:1},wr={type:25},Sn={type:24},cr={type:26},Lr={type:27},Wr={type:28},on={type:29},Nn={type:31},Et={type:32},Cr=function(){function Sr(){this._value=[]}return Sr.prototype.write=function(ye){this._value=this._value.concat(i(ye))},Sr.prototype.read=function(){for(var ye=[],De=this.consumeToken();De!==Et;)ye.push(De),De=this.consumeToken();return ye},Sr.prototype.consumeToken=function(){var ye=this.consumeCodePoint();switch(ye){case bt:return this.consumeStringToken(bt);case Yt:var De=this.peekCodePoint(0),Ve=this.peekCodePoint(1),ut=this.peekCodePoint(2);if(Fr(De)||Wn(Ve,ut)){var fr=Yn(De,Ve,ut)?vt:nt,tn=this.consumeName();return{type:5,value:tn,flags:fr}}break;case Pt:if(this.peekCodePoint(0)===gr)return this.consumeCodePoint(),ma;break;case Rt:return this.consumeStringToken(Rt);case qt:return Ni;case Yr:return Li;case at:if(this.peekCodePoint(0)===gr)return this.consumeCodePoint(),ea;break;case St:if(ii(ye,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(ye),this.consumeNumericToken();break;case gt:return oa;case Dr:var bn=ye,Mn=this.peekCodePoint(0),ti=this.peekCodePoint(1);if(ii(bn,Mn,ti))return this.reconsumeCodePoint(ye),this.consumeNumericToken();if(Yn(bn,Mn,ti))return this.reconsumeCodePoint(ye),this.consumeIdentLikeToken();if(Mn===Dr&&ti===ai)return this.consumeCodePoint(),this.consumeCodePoint(),Sn;break;case Xr:if(ii(ye,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(ye),this.consumeNumericToken();break;case Zn:if(this.peekCodePoint(0)===at)for(this.consumeCodePoint();;){var Vi=this.consumeCodePoint();if(Vi===at&&(Vi=this.consumeCodePoint(),Vi===Zn))return this.consumeToken();if(Vi===Zr)return this.consumeToken()}break;case hr:return cr;case Qr:return Lr;case wn:if(this.peekCodePoint(0)===un&&this.peekCodePoint(1)===Dr&&this.peekCodePoint(2)===Dr)return this.consumeCodePoint(),this.consumeCodePoint(),wr;break;case ei:var Pi=this.peekCodePoint(0),$i=this.peekCodePoint(1),Za=this.peekCodePoint(2);if(Yn(Pi,$i,Za)){var tn=this.consumeName();return{type:7,value:tn}}break;case gi:return Wr;case ni:if(Wn(ye,this.peekCodePoint(0)))return this.reconsumeCodePoint(ye),this.consumeIdentLikeToken();break;case Ii:return on;case ki:if(this.peekCodePoint(0)===gr)return this.consumeCodePoint(),ia;break;case Qi:return Fi;case Me:return ha;case xn:case Bt:var eo=this.peekCodePoint(0),po=this.peekCodePoint(1);return eo===St&&(pr(po)||po===it)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(ye),this.consumeIdentLikeToken();case je:if(this.peekCodePoint(0)===gr)return this.consumeCodePoint(),vi;if(this.peekCodePoint(0)===je)return this.consumeCodePoint(),ba;break;case Ye:if(this.peekCodePoint(0)===gr)return this.consumeCodePoint(),On;break;case Zr:return Et}return ci(ye)?(this.consumeWhiteSpace(),Nn):Ot(ye)?(this.reconsumeCodePoint(ye),this.consumeNumericToken()):hn(ye)?(this.reconsumeCodePoint(ye),this.consumeIdentLikeToken()):{type:6,value:t(ye)}},Sr.prototype.consumeCodePoint=function(){var ye=this._value.shift();return typeof ye=="undefined"?-1:ye},Sr.prototype.reconsumeCodePoint=function(ye){this._value.unshift(ye)},Sr.prototype.peekCodePoint=function(ye){return ye>=this._value.length?-1:this._value[ye]},Sr.prototype.consumeUnicodeRangeToken=function(){for(var ye=[],De=this.consumeCodePoint();pr(De)&&ye.length<6;)ye.push(De),De=this.consumeCodePoint();for(var Ve=!1;De===it&&ye.length<6;)ye.push(De),De=this.consumeCodePoint(),Ve=!0;if(Ve){var ut=parseInt(t.apply(void 0,ye.map(function(Mn){return Mn===it?hi:Mn})),16),fr=parseInt(t.apply(void 0,ye.map(function(Mn){return Mn===it?Dt:Mn})),16);return{type:30,start:ut,end:fr}}var tn=parseInt(t.apply(void 0,ye),16);if(this.peekCodePoint(0)===Dr&&pr(this.peekCodePoint(1))){this.consumeCodePoint(),De=this.consumeCodePoint();for(var bn=[];pr(De)&&bn.length<6;)bn.push(De),De=this.consumeCodePoint();var fr=parseInt(t.apply(void 0,bn),16);return{type:30,start:tn,end:fr}}else return{type:30,start:tn,end:tn}},Sr.prototype.consumeIdentLikeToken=function(){var ye=this.consumeName();return ye.toLowerCase()==="url"&&this.peekCodePoint(0)===qt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===qt?(this.consumeCodePoint(),{type:19,value:ye}):{type:20,value:ye}},Sr.prototype.consumeUrlToken=function(){var ye=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Zr)return{type:22,value:""};var De=this.peekCodePoint(0);if(De===Rt||De===bt){var Ve=this.consumeStringToken(this.consumeCodePoint());return Ve.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Zr||this.peekCodePoint(0)===Yr)?(this.consumeCodePoint(),{type:22,value:Ve.value}):(this.consumeBadUrlRemnants(),aa)}for(;;){var ut=this.consumeCodePoint();if(ut===Zr||ut===Yr)return{type:22,value:t.apply(void 0,ye)};if(ci(ut))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Zr||this.peekCodePoint(0)===Yr?(this.consumeCodePoint(),{type:22,value:t.apply(void 0,ye)}):(this.consumeBadUrlRemnants(),aa);if(ut===bt||ut===Rt||ut===qt||En(ut))return this.consumeBadUrlRemnants(),aa;if(ut===ni)if(Wn(ut,this.peekCodePoint(0)))ye.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),aa;else ye.push(ut)}},Sr.prototype.consumeWhiteSpace=function(){for(;ci(this.peekCodePoint(0));)this.consumeCodePoint()},Sr.prototype.consumeBadUrlRemnants=function(){for(;;){var ye=this.consumeCodePoint();if(ye===Yr||ye===Zr)return;Wn(ye,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},Sr.prototype.consumeStringSlice=function(ye){for(var De=5e4,Ve="";ye>0;){var ut=Math.min(De,ye);Ve+=t.apply(void 0,this._value.splice(0,ut)),ye-=ut}return this._value.shift(),Ve},Sr.prototype.consumeStringToken=function(ye){var De="",Ve=0;do{var ut=this._value[Ve];if(ut===Zr||ut===void 0||ut===ye)return De+=this.consumeStringSlice(Ve),{type:0,value:De};if(ut===mn)return this._value.splice(0,Ve),Or;if(ut===ni){var fr=this._value[Ve+1];fr!==Zr&&fr!==void 0&&(fr===mn?(De+=this.consumeStringSlice(Ve),Ve=-1,this._value.shift()):Wn(ut,fr)&&(De+=this.consumeStringSlice(Ve),De+=t(this.consumeEscapedCodePoint()),Ve=-1))}Ve++}while(!0)},Sr.prototype.consumeNumber=function(){var ye=[],De=ar,Ve=this.peekCodePoint(0);for((Ve===St||Ve===Dr)&&ye.push(this.consumeCodePoint());Ot(this.peekCodePoint(0));)ye.push(this.consumeCodePoint());Ve=this.peekCodePoint(0);var ut=this.peekCodePoint(1);if(Ve===Xr&&Ot(ut))for(ye.push(this.consumeCodePoint(),this.consumeCodePoint()),De=kr;Ot(this.peekCodePoint(0));)ye.push(this.consumeCodePoint());Ve=this.peekCodePoint(0),ut=this.peekCodePoint(1);var fr=this.peekCodePoint(2);if((Ve===Tt||Ve===Zi)&&((ut===St||ut===Dr)&&Ot(fr)||Ot(ut)))for(ye.push(this.consumeCodePoint(),this.consumeCodePoint()),De=kr;Ot(this.peekCodePoint(0));)ye.push(this.consumeCodePoint());return[xi(ye),De]},Sr.prototype.consumeNumericToken=function(){var ye=this.consumeNumber(),De=ye[0],Ve=ye[1],ut=this.peekCodePoint(0),fr=this.peekCodePoint(1),tn=this.peekCodePoint(2);if(Yn(ut,fr,tn)){var bn=this.consumeName();return{type:15,number:De,flags:Ve,unit:bn}}return ut===rr?(this.consumeCodePoint(),{type:16,number:De,flags:Ve}):{type:17,number:De,flags:Ve}},Sr.prototype.consumeEscapedCodePoint=function(){var ye=this.consumeCodePoint();if(pr(ye)){for(var De=t(ye);pr(this.peekCodePoint(0))&&De.length<6;)De+=t(this.consumeCodePoint());ci(this.peekCodePoint(0))&&this.consumeCodePoint();var Ve=parseInt(De,16);return Ve===0||nr(Ve)||Ve>1114111?qe:Ve}return ye===Zr?qe:ye},Sr.prototype.consumeName=function(){for(var ye="";;){var De=this.consumeCodePoint();if(Fr(De))ye+=t(De);else if(Wn(De,this.peekCodePoint(0)))ye+=t(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(De),ye}},Sr}(),_r=function(){function Sr(ye){this._tokens=ye}return Sr.create=function(ye){var De=new Cr;return De.write(ye),new Sr(De.read())},Sr.parseValue=function(ye){return Sr.create(ye).parseComponentValue()},Sr.parseValues=function(ye){return Sr.create(ye).parseComponentValues()},Sr.prototype.parseComponentValue=function(){for(var ye=this.consumeToken();ye.type===31;)ye=this.consumeToken();if(ye.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(ye);var De=this.consumeComponentValue();do ye=this.consumeToken();while(ye.type===31);if(ye.type===32)return De;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},Sr.prototype.parseComponentValues=function(){for(var ye=[];;){var De=this.consumeComponentValue();if(De.type===32)return ye;ye.push(De),ye.push()}},Sr.prototype.consumeComponentValue=function(){var ye=this.consumeToken();switch(ye.type){case 11:case 28:case 2:return this.consumeSimpleBlock(ye.type);case 19:return this.consumeFunction(ye)}return ye},Sr.prototype.consumeSimpleBlock=function(ye){for(var De={type:ye,values:[]},Ve=this.consumeToken();;){if(Ve.type===32||yi(Ve,ye))return De;this.reconsumeToken(Ve),De.values.push(this.consumeComponentValue()),Ve=this.consumeToken()}},Sr.prototype.consumeFunction=function(ye){for(var De={name:ye.value,values:[],type:18};;){var Ve=this.consumeToken();if(Ve.type===32||Ve.type===3)return De;this.reconsumeToken(Ve),De.values.push(this.consumeComponentValue())}},Sr.prototype.consumeToken=function(){var ye=this._tokens.shift();return typeof ye=="undefined"?Et:ye},Sr.prototype.reconsumeToken=function(ye){this._tokens.unshift(ye)},Sr}(),$r=function(ye){return ye.type===15},yn=function(ye){return ye.type===17},Tn=function(ye){return ye.type===20},vn=function(ye){return ye.type===0},Qn=function(ye,De){return Tn(ye)&&ye.value===De},Fn=function(ye){return ye.type!==31},fi=function(ye){return ye.type!==31&&ye.type!==4},Ri=function(ye){var De=[],Ve=[];return ye.forEach(function(ut){if(ut.type===4){if(Ve.length===0)throw new Error("Error parsing function args, zero tokens for arg");De.push(Ve),Ve=[];return}ut.type!==31&&Ve.push(ut)}),Ve.length&&De.push(Ve),De},yi=function(ye,De){return De===11&&ye.type===12||De===28&&ye.type===29?!0:De===2&&ye.type===3},Ci=function(ye){return ye.type===17||ye.type===15},Wi=function(ye){return ye.type===16||Ci(ye)},qi=function(ye){return ye.length>1?[ye[0],ye[1]]:[ye[0]]},zi={type:17,number:0,flags:ar},Ki={type:16,number:50,flags:ar},ji={type:16,number:100,flags:ar},Yi=function(ye,De,Ve){var ut=ye[0],fr=ye[1];return[ca(ut,De),ca(typeof fr!="undefined"?fr:ut,Ve)]},ca=function(ye,De){if(ye.type===16)return ye.number/100*De;if($r(ye))switch(ye.unit){case"rem":case"em":return 16*ye.number;case"px":default:return ye.number}return ye.number},Ca="deg",ra="grad",Ma="rad",La="turn",va={name:"angle",parse:function(ye,De){if(De.type===15)switch(De.unit){case Ca:return Math.PI*De.number/180;case ra:return Math.PI/200*De.number;case Ma:return De.number;case La:return Math.PI*2*De.number}throw new Error("Unsupported angle type")}},ga=function(ye){return ye.type===15&&(ye.unit===Ca||ye.unit===ra||ye.unit===Ma||ye.unit===La)},Oa=function(ye){var De=ye.filter(Tn).map(function(Ve){return Ve.value}).join(" ");switch(De){case"to bottom right":case"to right bottom":case"left top":case"top left":return[zi,zi];case"to top":case"bottom":return Aa(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[zi,ji];case"to right":case"left":return Aa(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ji,ji];case"to bottom":case"top":return Aa(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ji,zi];case"to left":case"right":return Aa(270)}return 0},Aa=function(ye){return Math.PI*ye/180},Ga={name:"color",parse:function(ye,De){if(De.type===18){var Ve=To[De.name];if(typeof Ve=="undefined")throw new Error('Attempting to parse an unsupported color function "'+De.name+'"');return Ve(ye,De.values)}if(De.type===5){if(De.value.length===3){var ut=De.value.substring(0,1),fr=De.value.substring(1,2),tn=De.value.substring(2,3);return Bi(parseInt(ut+ut,16),parseInt(fr+fr,16),parseInt(tn+tn,16),1)}if(De.value.length===4){var ut=De.value.substring(0,1),fr=De.value.substring(1,2),tn=De.value.substring(2,3),bn=De.value.substring(3,4);return Bi(parseInt(ut+ut,16),parseInt(fr+fr,16),parseInt(tn+tn,16),parseInt(bn+bn,16)/255)}if(De.value.length===6){var ut=De.value.substring(0,2),fr=De.value.substring(2,4),tn=De.value.substring(4,6);return Bi(parseInt(ut,16),parseInt(fr,16),parseInt(tn,16),1)}if(De.value.length===8){var ut=De.value.substring(0,2),fr=De.value.substring(2,4),tn=De.value.substring(4,6),bn=De.value.substring(6,8);return Bi(parseInt(ut,16),parseInt(fr,16),parseInt(tn,16),parseInt(bn,16)/255)}}if(De.type===20){var Mn=So[De.value.toUpperCase()];if(typeof Mn!="undefined")return Mn}return So.TRANSPARENT}},_a=function(ye){return(255&ye)===0},Va=function(ye){var De=255&ye,Ve=255&ye>>8,ut=255&ye>>16,fr=255&ye>>24;return De<255?"rgba("+fr+","+ut+","+Ve+","+De/255+")":"rgb("+fr+","+ut+","+Ve+")"},Bi=function(ye,De,Ve,ut){return(ye<<24|De<<16|Ve<<8|Math.round(ut*255)<<0)>>>0},io=function(ye,De){if(ye.type===17)return ye.number;if(ye.type===16){var Ve=De===3?1:255;return De===3?ye.number/100*Ve:Math.round(ye.number/100*Ve)}return 0},oo=function(ye,De){var Ve=De.filter(fi);if(Ve.length===3){var ut=Ve.map(io),fr=ut[0],tn=ut[1],bn=ut[2];return Bi(fr,tn,bn,1)}if(Ve.length===4){var Mn=Ve.map(io),fr=Mn[0],tn=Mn[1],bn=Mn[2],ti=Mn[3];return Bi(fr,tn,bn,ti)}return 0};function Qo(Sr,ye,De){return De<0&&(De+=1),De>=1&&(De-=1),De<1/6?(ye-Sr)*De*6+Sr:De<1/2?ye:De<2/3?(ye-Sr)*6*(2/3-De)+Sr:Sr}var mo=function(ye,De){var Ve=De.filter(fi),ut=Ve[0],fr=Ve[1],tn=Ve[2],bn=Ve[3],Mn=(ut.type===17?Aa(ut.number):va.parse(ye,ut))/(Math.PI*2),ti=Wi(fr)?fr.number/100:0,Vi=Wi(tn)?tn.number/100:0,Pi=typeof bn!="undefined"&&Wi(bn)?ca(bn,1):1;if(ti===0)return Bi(Vi*255,Vi*255,Vi*255,1);var $i=Vi<=.5?Vi*(ti+1):Vi+ti-Vi*ti,Za=Vi*2-$i,eo=Qo(Za,$i,Mn+1/3),po=Qo(Za,$i,Mn),us=Qo(Za,$i,Mn-1/3);return Bi(eo*255,po*255,us*255,Pi)},To={hsl:mo,hsla:mo,rgb:oo,rgba:oo},ao=function(ye,De){return Ga.parse(ye,_r.create(De).parseComponentValue())},So={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},bo={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(ye,De){return De.map(function(Ve){if(Tn(Ve))switch(Ve.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},to={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Jo=function(ye,De){var Ve=Ga.parse(ye,De[0]),ut=De[1];return ut&&Wi(ut)?{color:Ve,stop:ut}:{color:Ve,stop:null}},Uo=function(ye,De){var Ve=ye[0],ut=ye[ye.length-1];Ve.stop===null&&(Ve.stop=zi),ut.stop===null&&(ut.stop=ji);for(var fr=[],tn=0,bn=0;bn<ye.length;bn++){var Mn=ye[bn].stop;if(Mn!==null){var ti=ca(Mn,De);ti>tn?fr.push(ti):fr.push(tn),tn=ti}else fr.push(null)}for(var Vi=null,bn=0;bn<fr.length;bn++){var Pi=fr[bn];if(Pi===null)Vi===null&&(Vi=bn);else if(Vi!==null){for(var $i=bn-Vi,Za=fr[Vi-1],eo=(Pi-Za)/($i+1),po=1;po<=$i;po++)fr[Vi+po-1]=eo*po;Vi=null}}return ye.map(function(us,Yo){var Po=us.color;return{color:Po,stop:Math.max(Math.min(1,fr[Yo]/De),0)}})},wo=function(ye,De,Ve){var ut=De/2,fr=Ve/2,tn=ca(ye[0],De)-ut,bn=fr-ca(ye[1],Ve);return(Math.atan2(bn,tn)+Math.PI*2)%(Math.PI*2)},ts=function(ye,De,Ve){var ut=typeof ye=="number"?ye:wo(ye,De,Ve),fr=Math.abs(De*Math.sin(ut))+Math.abs(Ve*Math.cos(ut)),tn=De/2,bn=Ve/2,Mn=fr/2,ti=Math.sin(ut-Math.PI/2)*Mn,Vi=Math.cos(ut-Math.PI/2)*Mn;return[fr,tn-Vi,tn+Vi,bn-ti,bn+ti]},Ia=function(ye,De){return Math.sqrt(ye*ye+De*De)},Oo=function(ye,De,Ve,ut,fr){var tn=[[0,0],[0,De],[ye,0],[ye,De]];return tn.reduce(function(bn,Mn){var ti=Mn[0],Vi=Mn[1],Pi=Ia(Ve-ti,ut-Vi);return(fr?Pi<bn.optimumDistance:Pi>bn.optimumDistance)?{optimumCorner:Mn,optimumDistance:Pi}:bn},{optimumDistance:fr?Infinity:-Infinity,optimumCorner:null}).optimumCorner},Io=function(ye,De,Ve,ut,fr){var tn=0,bn=0;switch(ye.size){case 0:ye.shape===0?tn=bn=Math.min(Math.abs(De),Math.abs(De-ut),Math.abs(Ve),Math.abs(Ve-fr)):ye.shape===1&&(tn=Math.min(Math.abs(De),Math.abs(De-ut)),bn=Math.min(Math.abs(Ve),Math.abs(Ve-fr)));break;case 2:if(ye.shape===0)tn=bn=Math.min(Ia(De,Ve),Ia(De,Ve-fr),Ia(De-ut,Ve),Ia(De-ut,Ve-fr));else if(ye.shape===1){var Mn=Math.min(Math.abs(Ve),Math.abs(Ve-fr))/Math.min(Math.abs(De),Math.abs(De-ut)),ti=Oo(ut,fr,De,Ve,!0),Vi=ti[0],Pi=ti[1];tn=Ia(Vi-De,(Pi-Ve)/Mn),bn=Mn*tn}break;case 1:ye.shape===0?tn=bn=Math.max(Math.abs(De),Math.abs(De-ut),Math.abs(Ve),Math.abs(Ve-fr)):ye.shape===1&&(tn=Math.max(Math.abs(De),Math.abs(De-ut)),bn=Math.max(Math.abs(Ve),Math.abs(Ve-fr)));break;case 3:if(ye.shape===0)tn=bn=Math.max(Ia(De,Ve),Ia(De,Ve-fr),Ia(De-ut,Ve),Ia(De-ut,Ve-fr));else if(ye.shape===1){var Mn=Math.max(Math.abs(Ve),Math.abs(Ve-fr))/Math.max(Math.abs(De),Math.abs(De-ut)),$i=Oo(ut,fr,De,Ve,!1),Vi=$i[0],Pi=$i[1];tn=Ia(Vi-De,(Pi-Ve)/Mn),bn=Mn*tn}break}return Array.isArray(ye.size)&&(tn=ca(ye.size[0],ut),bn=ye.size.length===2?ca(ye.size[1],fr):tn),[tn,bn]},os=function(ye,De){var Ve=Aa(180),ut=[];return Ri(De).forEach(function(fr,tn){if(tn===0){var bn=fr[0];if(bn.type===20&&bn.value==="to"){Ve=Oa(fr);return}else if(ga(bn)){Ve=va.parse(ye,bn);return}}var Mn=Jo(ye,fr);ut.push(Mn)}),{angle:Ve,stops:ut,type:1}},xo=function(ye,De){var Ve=Aa(180),ut=[];return Ri(De).forEach(function(fr,tn){if(tn===0){var bn=fr[0];if(bn.type===20&&["top","left","right","bottom"].indexOf(bn.value)!==-1){Ve=Oa(fr);return}else if(ga(bn)){Ve=(va.parse(ye,bn)+Aa(270))%Aa(360);return}}var Mn=Jo(ye,fr);ut.push(Mn)}),{angle:Ve,stops:ut,type:1}},rs=function(ye,De){var Ve=Aa(180),ut=[],fr=1,tn=0,bn=3,Mn=[];return Ri(De).forEach(function(ti,Vi){var Pi=ti[0];if(Vi===0){if(Tn(Pi)&&Pi.value==="linear"){fr=1;return}else if(Tn(Pi)&&Pi.value==="radial"){fr=2;return}}if(Pi.type===18){if(Pi.name==="from"){var $i=Ga.parse(ye,Pi.values[0]);ut.push({stop:zi,color:$i})}else if(Pi.name==="to"){var $i=Ga.parse(ye,Pi.values[0]);ut.push({stop:ji,color:$i})}else if(Pi.name==="color-stop"){var Za=Pi.values.filter(fi);if(Za.length===2){var $i=Ga.parse(ye,Za[1]),eo=Za[0];yn(eo)&&ut.push({stop:{type:16,number:eo.number*100,flags:eo.flags},color:$i})}}}}),fr===1?{angle:(Ve+Aa(180))%Aa(360),stops:ut,type:fr}:{size:bn,shape:tn,stops:ut,position:Mn,type:fr}},Ho="closest-side",_o="farthest-side",uo="closest-corner",Ha="farthest-corner",pt="circle",xr="ellipse",Jr="cover",Vr="contain",Vn=function(ye,De){var Ve=0,ut=3,fr=[],tn=[];return Ri(De).forEach(function(bn,Mn){var ti=!0;if(Mn===0){var Vi=!1;ti=bn.reduce(function($i,Za){if(Vi)if(Tn(Za))switch(Za.value){case"center":return tn.push(Ki),$i;case"top":case"left":return tn.push(zi),$i;case"right":case"bottom":return tn.push(ji),$i}else(Wi(Za)||Ci(Za))&&tn.push(Za);else if(Tn(Za))switch(Za.value){case pt:return Ve=0,!1;case xr:return Ve=1,!1;case"at":return Vi=!0,!1;case Ho:return ut=0,!1;case Jr:case _o:return ut=1,!1;case Vr:case uo:return ut=2,!1;case Ha:return ut=3,!1}else if(Ci(Za)||Wi(Za))return Array.isArray(ut)||(ut=[]),ut.push(Za),!1;return $i},ti)}if(ti){var Pi=Jo(ye,bn);fr.push(Pi)}}),{size:ut,shape:Ve,stops:fr,position:tn,type:2}},sn=function(ye,De){var Ve=0,ut=3,fr=[],tn=[];return Ri(De).forEach(function(bn,Mn){var ti=!0;if(Mn===0?ti=bn.reduce(function(Pi,$i){if(Tn($i))switch($i.value){case"center":return tn.push(Ki),!1;case"top":case"left":return tn.push(zi),!1;case"right":case"bottom":return tn.push(ji),!1}else if(Wi($i)||Ci($i))return tn.push($i),!1;return Pi},ti):Mn===1&&(ti=bn.reduce(function(Pi,$i){if(Tn($i))switch($i.value){case pt:return Ve=0,!1;case xr:return Ve=1,!1;case Vr:case Ho:return ut=0,!1;case _o:return ut=1,!1;case uo:return ut=2,!1;case Jr:case Ha:return ut=3,!1}else if(Ci($i)||Wi($i))return Array.isArray(ut)||(ut=[]),ut.push($i),!1;return Pi},ti)),ti){var Vi=Jo(ye,bn);fr.push(Vi)}}),{size:ut,shape:Ve,stops:fr,position:tn,type:2}},zr=function(ye){return ye.type===1},qn=function(ye){return ye.type===2},en={name:"image",parse:function(ye,De){if(De.type===22){var Ve={url:De.value,type:0};return ye.cache.addImage(De.value),Ve}if(De.type===18){var ut=si[De.name];if(typeof ut=="undefined")throw new Error('Attempting to parse an unsupported image function "'+De.name+'"');return ut(ye,De.values)}throw new Error("Unsupported image type "+De.type)}};function Un(Sr){return!(Sr.type===20&&Sr.value==="none")&&(Sr.type!==18||!!si[Sr.name])}var si={"linear-gradient":os,"-moz-linear-gradient":xo,"-ms-linear-gradient":xo,"-o-linear-gradient":xo,"-webkit-linear-gradient":xo,"radial-gradient":Vn,"-moz-radial-gradient":sn,"-ms-radial-gradient":sn,"-o-radial-gradient":sn,"-webkit-radial-gradient":sn,"-webkit-gradient":rs},ui={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(ye,De){if(De.length===0)return[];var Ve=De[0];return Ve.type===20&&Ve.value==="none"?[]:De.filter(function(ut){return fi(ut)&&Un(ut)}).map(function(ut){return en.parse(ye,ut)})}},oi={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(ye,De){return De.map(function(Ve){if(Tn(Ve))switch(Ve.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ei={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(ye,De){return Ri(De).map(function(Ve){return Ve.filter(Wi)}).map(qi)}},pi={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(ye,De){return Ri(De).map(function(Ve){return Ve.filter(Tn).map(function(ut){return ut.value}).join(" ")}).map(Ai)}},Ai=function(ye){switch(ye){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Oi;(function(Sr){Sr.AUTO="auto",Sr.CONTAIN="contain",Sr.COVER="cover"})(Oi||(Oi={}));var na={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(ye,De){return Ri(De).map(function(Ve){return Ve.filter(Hi)})}},Hi=function(ye){return Tn(ye)||Wi(ye)},fa=function(ye){return{name:"border-"+ye+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Xa=fa("top"),xa=fa("right"),wa=fa("bottom"),Da=fa("left"),ja=function(ye){return{name:"border-radius-"+ye,initialValue:"0 0",prefix:!1,type:1,parse:function(Ve,ut){return qi(ut.filter(Wi))}}},ko=ja("top-left"),ro=ja("top-right"),pa=ja("bottom-right"),Ea=ja("bottom-left"),Fa=function(ye){return{name:"border-"+ye+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(Ve,ut){switch(ut){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Ka=Fa("top"),lo=Fa("right"),so=Fa("bottom"),Co=Fa("left"),Lo=function(ye){return{name:"border-"+ye+"-width",initialValue:"0",type:0,prefix:!1,parse:function(Ve,ut){return $r(ut)?ut.number:0}}},is=Lo("top"),cs=Lo("right"),Rs=Lo("bottom"),Ko=Lo("left"),as={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},co={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(ye,De){switch(De){case"rtl":return 1;case"ltr":default:return 0}}},Ao={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(ye,De){return De.filter(Tn).reduce(function(Ve,ut){return Ve|$a(ut.value)},0)}},$a=function(ye){switch(ye){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},ss={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(ye,De){switch(De){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Cs={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(ye,De){return De.type===20&&De.value==="normal"?0:De.type===17||De.type===15?De.number:0}},Fo;(function(Sr){Sr.NORMAL="normal",Sr.STRICT="strict"})(Fo||(Fo={}));var il={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(ye,De){switch(De){case"strict":return Fo.STRICT;case"normal":default:return Fo.NORMAL}}},Eo={name:"line-height",initialValue:"normal",prefix:!1,type:4},zo=function(ye,De){return Tn(ye)&&ye.value==="normal"?1.2*De:ye.type===17?De*ye.number:Wi(ye)?ca(ye,De):De},Bs={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(ye,De){return De.type===20&&De.value==="none"?null:en.parse(ye,De)}},ms={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(ye,De){switch(De){case"inside":return 0;case"outside":default:return 1}}},hs={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(ye,De){switch(De){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},gn=function(ye){return{name:"margin-"+ye,initialValue:"0",prefix:!1,type:4}},Ns=gn("top"),Ll=gn("right"),el=gn("bottom"),Gs=gn("left"),ds={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(ye,De){return De.filter(Tn).map(function(Ve){switch(Ve.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},ks={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(ye,De){switch(De){case"break-word":return"break-word";case"normal":default:return"normal"}}},Qs=function(ye){return{name:"padding-"+ye,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},tl=Qs("top"),xs=Qs("right"),Us=Qs("bottom"),al=Qs("left"),Js={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(ye,De){switch(De){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Vo={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(ye,De){switch(De){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},No={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(ye,De){return De.length===1&&Qn(De[0],"none")?[]:Ri(De).map(function(Ve){for(var ut={color:So.TRANSPARENT,offsetX:zi,offsetY:zi,blur:zi},fr=0,tn=0;tn<Ve.length;tn++){var bn=Ve[tn];Ci(bn)?(fr===0?ut.offsetX=bn:fr===1?ut.offsetY=bn:ut.blur=bn,fr++):ut.color=Ga.parse(ye,bn)}return ut})}},fs={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(ye,De){switch(De){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Ds={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(ye,De){if(De.type===20&&De.value==="none")return null;if(De.type===18){var Ve=er[De.name];if(typeof Ve=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+De.name+'"');return Ve(De.values)}return null}},go=function(ye){var De=ye.filter(function(Ve){return Ve.type===17}).map(function(Ve){return Ve.number});return De.length===6?De:null},Ft=function(ye){var De=ye.filter(function(ti){return ti.type===17}).map(function(ti){return ti.number}),Ve=De[0],ut=De[1];De[2],De[3];var fr=De[4],tn=De[5];De[6],De[7],De[8],De[9],De[10],De[11];var bn=De[12],Mn=De[13];return De[14],De[15],De.length===16?[Ve,ut,fr,tn,bn,Mn]:null},er={matrix:go,matrix3d:Ft},Cn={type:16,number:50,flags:ar},di=[Cn,Cn],It={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(ye,De){var Ve=De.filter(Wi);return Ve.length!==2?di:[Ve[0],Ve[1]]}},ue={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(ye,De){switch(De){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Se;(function(Sr){Sr.NORMAL="normal",Sr.BREAK_ALL="break-all",Sr.KEEP_ALL="keep-all"})(Se||(Se={}));for(var _e={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(ye,De){switch(De){case"break-all":return Se.BREAK_ALL;case"keep-all":return Se.KEEP_ALL;case"normal":default:return Se.NORMAL}}},Je={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(ye,De){if(De.type===20)return{auto:!0,order:0};if(yn(De))return{auto:!1,order:De.number};throw new Error("Invalid z-index number parsed")}},Lt={name:"time",parse:function(ye,De){if(De.type===15)switch(De.unit.toLowerCase()){case"s":return 1e3*De.number;case"ms":return De.number}throw new Error("Unsupported time type")}},tr={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(ye,De){return yn(De)?De.number:1}},Gr={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},cn={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(ye,De){return De.filter(Tn).map(function(Ve){switch(Ve.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(Ve){return Ve!==0})}},_n={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(ye,De){var Ve=[],ut=[];return De.forEach(function(fr){switch(fr.type){case 20:case 0:Ve.push(fr.value);break;case 17:Ve.push(fr.number.toString());break;case 4:ut.push(Ve.join(" ")),Ve.length=0;break}}),Ve.length&&ut.push(Ve.join(" ")),ut.map(function(fr){return fr.indexOf(" ")===-1?fr:"'"+fr+"'"})}},li={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},wi={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(ye,De){if(yn(De))return De.number;if(Tn(De))switch(De.value){case"bold":return 700;case"normal":default:return 400}return 400}},mi={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(ye,De){return De.filter(Tn).map(function(Ve){return Ve.value})}},Gi={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(ye,De){switch(De){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},sa=function(ye,De){return(ye&De)!==0},Ua={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(ye,De){if(De.length===0)return[];var Ve=De[0];return Ve.type===20&&Ve.value==="none"?[]:De}},no={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(ye,De){if(De.length===0)return null;var Ve=De[0];if(Ve.type===20&&Ve.value==="none")return null;for(var ut=[],fr=De.filter(Fn),tn=0;tn<fr.length;tn++){var bn=fr[tn],Mn=fr[tn+1];if(bn.type===20){var ti=Mn&&yn(Mn)?Mn.number:1;ut.push({counter:bn.value,increment:ti})}}return ut}},Wo={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(ye,De){if(De.length===0)return[];for(var Ve=[],ut=De.filter(Fn),fr=0;fr<ut.length;fr++){var tn=ut[fr],bn=ut[fr+1];if(Tn(tn)&&tn.value!=="none"){var Mn=bn&&yn(bn)?bn.number:0;Ve.push({counter:tn.value,reset:Mn})}}return Ve}},Zo={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(ye,De){return De.filter($r).map(function(Ve){return Lt.parse(ye,Ve)})}},Bo={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(ye,De){if(De.length===0)return null;var Ve=De[0];if(Ve.type===20&&Ve.value==="none")return null;var ut=[],fr=De.filter(vn);if(fr.length%2!==0)return null;for(var tn=0;tn<fr.length;tn+=2){var bn=fr[tn].value,Mn=fr[tn+1].value;ut.push({open:bn,close:Mn})}return ut}},Es=function(ye,De,Ve){if(!ye)return"";var ut=ye[Math.min(De,ye.length-1)];return ut?Ve?ut.open:ut.close:""},As={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(ye,De){return De.length===1&&Qn(De[0],"none")?[]:Ri(De).map(function(Ve){for(var ut={color:255,offsetX:zi,offsetY:zi,blur:zi,spread:zi,inset:!1},fr=0,tn=0;tn<Ve.length;tn++){var bn=Ve[tn];Qn(bn,"inset")?ut.inset=!0:Ci(bn)?(fr===0?ut.offsetX=bn:fr===1?ut.offsetY=bn:fr===2?ut.blur=bn:ut.spread=bn,fr++):ut.color=Ga.parse(ye,bn)}return ut})}},$o={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(ye,De){var Ve=[0,1,2],ut=[];return De.filter(Tn).forEach(function(fr){switch(fr.value){case"stroke":ut.push(1);break;case"fill":ut.push(0);break;case"markers":ut.push(2);break}}),Ve.forEach(function(fr){ut.indexOf(fr)===-1&&ut.push(fr)}),ut}},Do={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},vo={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(ye,De){return $r(De)?De.number:0}},Ms=function(){function Sr(ye,De){var Ve,ut;this.animationDuration=Ra(ye,Zo,De.animationDuration),this.backgroundClip=Ra(ye,bo,De.backgroundClip),this.backgroundColor=Ra(ye,to,De.backgroundColor),this.backgroundImage=Ra(ye,ui,De.backgroundImage),this.backgroundOrigin=Ra(ye,oi,De.backgroundOrigin),this.backgroundPosition=Ra(ye,Ei,De.backgroundPosition),this.backgroundRepeat=Ra(ye,pi,De.backgroundRepeat),this.backgroundSize=Ra(ye,na,De.backgroundSize),this.borderTopColor=Ra(ye,Xa,De.borderTopColor),this.borderRightColor=Ra(ye,xa,De.borderRightColor),this.borderBottomColor=Ra(ye,wa,De.borderBottomColor),this.borderLeftColor=Ra(ye,Da,De.borderLeftColor),this.borderTopLeftRadius=Ra(ye,ko,De.borderTopLeftRadius),this.borderTopRightRadius=Ra(ye,ro,De.borderTopRightRadius),this.borderBottomRightRadius=Ra(ye,pa,De.borderBottomRightRadius),this.borderBottomLeftRadius=Ra(ye,Ea,De.borderBottomLeftRadius),this.borderTopStyle=Ra(ye,Ka,De.borderTopStyle),this.borderRightStyle=Ra(ye,lo,De.borderRightStyle),this.borderBottomStyle=Ra(ye,so,De.borderBottomStyle),this.borderLeftStyle=Ra(ye,Co,De.borderLeftStyle),this.borderTopWidth=Ra(ye,is,De.borderTopWidth),this.borderRightWidth=Ra(ye,cs,De.borderRightWidth),this.borderBottomWidth=Ra(ye,Rs,De.borderBottomWidth),this.borderLeftWidth=Ra(ye,Ko,De.borderLeftWidth),this.boxShadow=Ra(ye,As,De.boxShadow),this.color=Ra(ye,as,De.color),this.direction=Ra(ye,co,De.direction),this.display=Ra(ye,Ao,De.display),this.float=Ra(ye,ss,De.cssFloat),this.fontFamily=Ra(ye,_n,De.fontFamily),this.fontSize=Ra(ye,li,De.fontSize),this.fontStyle=Ra(ye,Gi,De.fontStyle),this.fontVariant=Ra(ye,mi,De.fontVariant),this.fontWeight=Ra(ye,wi,De.fontWeight),this.letterSpacing=Ra(ye,Cs,De.letterSpacing),this.lineBreak=Ra(ye,il,De.lineBreak),this.lineHeight=Ra(ye,Eo,De.lineHeight),this.listStyleImage=Ra(ye,Bs,De.listStyleImage),this.listStylePosition=Ra(ye,ms,De.listStylePosition),this.listStyleType=Ra(ye,hs,De.listStyleType),this.marginTop=Ra(ye,Ns,De.marginTop),this.marginRight=Ra(ye,Ll,De.marginRight),this.marginBottom=Ra(ye,el,De.marginBottom),this.marginLeft=Ra(ye,Gs,De.marginLeft),this.opacity=Ra(ye,tr,De.opacity);var fr=Ra(ye,ds,De.overflow);this.overflowX=fr[0],this.overflowY=fr[fr.length>1?1:0],this.overflowWrap=Ra(ye,ks,De.overflowWrap),this.paddingTop=Ra(ye,tl,De.paddingTop),this.paddingRight=Ra(ye,xs,De.paddingRight),this.paddingBottom=Ra(ye,Us,De.paddingBottom),this.paddingLeft=Ra(ye,al,De.paddingLeft),this.paintOrder=Ra(ye,$o,De.paintOrder),this.position=Ra(ye,Vo,De.position),this.textAlign=Ra(ye,Js,De.textAlign),this.textDecorationColor=Ra(ye,Gr,(Ve=De.textDecorationColor)!==null&&Ve!==void 0?Ve:De.color),this.textDecorationLine=Ra(ye,cn,(ut=De.textDecorationLine)!==null&&ut!==void 0?ut:De.textDecoration),this.textShadow=Ra(ye,No,De.textShadow),this.textTransform=Ra(ye,fs,De.textTransform),this.transform=Ra(ye,Ds,De.transform),this.transformOrigin=Ra(ye,It,De.transformOrigin),this.visibility=Ra(ye,ue,De.visibility),this.webkitTextStrokeColor=Ra(ye,Do,De.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ra(ye,vo,De.webkitTextStrokeWidth),this.wordBreak=Ra(ye,_e,De.wordBreak),this.zIndex=Ra(ye,Je,De.zIndex)}return Sr.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},Sr.prototype.isTransparent=function(){return _a(this.backgroundColor)},Sr.prototype.isTransformed=function(){return this.transform!==null},Sr.prototype.isPositioned=function(){return this.position!==0},Sr.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},Sr.prototype.isFloating=function(){return this.float!==0},Sr.prototype.isInlineLevel=function(){return sa(this.display,4)||sa(this.display,33554432)||sa(this.display,268435456)||sa(this.display,536870912)||sa(this.display,67108864)||sa(this.display,134217728)},Sr}(),rl=function(){function Sr(ye,De){this.content=Ra(ye,Ua,De.content),this.quotes=Ra(ye,Bo,De.quotes)}return Sr}(),gs=function(){function Sr(ye,De){this.counterIncrement=Ra(ye,no,De.counterIncrement),this.counterReset=Ra(ye,Wo,De.counterReset)}return Sr}(),Ra=function(ye,De,Ve){var ut=new Cr,fr=Ve!==null&&typeof Ve!="undefined"?Ve.toString():De.initialValue;ut.write(fr);var tn=new _r(ut.read());switch(De.type){case 2:var bn=tn.parseComponentValue();return De.parse(ye,Tn(bn)?bn.value:De.initialValue);case 0:return De.parse(ye,tn.parseComponentValue());case 1:return De.parse(ye,tn.parseComponentValues());case 4:return tn.parseComponentValue();case 3:switch(De.format){case"angle":return va.parse(ye,tn.parseComponentValue());case"color":return Ga.parse(ye,tn.parseComponentValue());case"image":return en.parse(ye,tn.parseComponentValue());case"length":var Mn=tn.parseComponentValue();return Ci(Mn)?Mn:zi;case"length-percentage":var ti=tn.parseComponentValue();return Wi(ti)?ti:zi;case"time":return Lt.parse(ye,tn.parseComponentValue())}break}},dl="data-html2canvas-debug",fl=function(ye){var De=ye.getAttribute(dl);switch(De){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},js=function(ye,De){var Ve=fl(ye);return Ve===1||De===Ve},_s=function(){function Sr(ye,De){if(this.context=ye,this.textNodes=[],this.elements=[],this.flags=0,js(De,3))debugger;this.styles=new Ms(ye,window.getComputedStyle(De,null)),Fs(De)&&(this.styles.animationDuration.some(function(Ve){return Ve>0})&&(De.style.animationDuration="0s"),this.styles.transform!==null&&(De.style.transform="none")),this.bounds=u(this.context,De),js(De,4)&&(this.flags|=16)}return Sr}(),Xs="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Ql="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ul=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),wl=0;wl<Ql.length;wl++)Ul[Ql.charCodeAt(wl)]=wl;for(var Ts=function(ye){var De=ye.length*.75,Ve=ye.length,ut,fr=0,tn,bn,Mn,ti;ye[ye.length-1]==="="&&(De--,ye[ye.length-2]==="="&&De--);var Vi=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(De):new Array(De),Pi=Array.isArray(Vi)?Vi:new Uint8Array(Vi);for(ut=0;ut<Ve;ut+=4)tn=Ul[ye.charCodeAt(ut)],bn=Ul[ye.charCodeAt(ut+1)],Mn=Ul[ye.charCodeAt(ut+2)],ti=Ul[ye.charCodeAt(ut+3)],Pi[fr++]=tn<<2|bn>>4,Pi[fr++]=(bn&15)<<4|Mn>>2,Pi[fr++]=(Mn&3)<<6|ti&63;return Vi},Ks=function(ye){for(var De=ye.length,Ve=[],ut=0;ut<De;ut+=2)Ve.push(ye[ut+1]<<8|ye[ut]);return Ve},Tl=function(ye){for(var De=ye.length,Ve=[],ut=0;ut<De;ut+=4)Ve.push(ye[ut+3]<<24|ye[ut+2]<<16|ye[ut+1]<<8|ye[ut]);return Ve},pl=5,jo=6+5,yo=2,qo=jo-pl,ps=65536>>pl,Os=1<<pl,es=Os-1,Is=1024>>pl,Ps=ps+Is,ml=Ps,Rl=2048>>6,_l=ml+Rl,Bl=65536>>jo,jl=1<<qo,kl=jl-1,Xl=function(ye,De,Ve){return ye.slice?ye.slice(De,Ve):new Uint16Array(Array.prototype.slice.call(ye,De,Ve))},ol=function(ye,De,Ve){return ye.slice?ye.slice(De,Ve):new Uint32Array(Array.prototype.slice.call(ye,De,Ve))},Ys=function(ye,De){var Ve=Ts(ye),ut=Array.isArray(Ve)?Tl(Ve):new Uint32Array(Ve),fr=Array.isArray(Ve)?Ks(Ve):new Uint16Array(Ve),tn=24,bn=Xl(fr,tn/2,ut[4]/2),Mn=ut[5]===2?Xl(fr,(tn+ut[4])/2):ol(ut,Math.ceil((tn+ut[4])/4));return new sl(ut[0],ut[1],ut[2],ut[3],bn,Mn)},sl=function(){function Sr(ye,De,Ve,ut,fr,tn){this.initialValue=ye,this.errorValue=De,this.highStart=Ve,this.highValueIndex=ut,this.index=fr,this.data=tn}return Sr.prototype.get=function(ye){var De;if(ye>=0){if(ye<55296||ye>56319&&ye<=65535)return De=this.index[ye>>pl],De=(De<<yo)+(ye&es),this.data[De];if(ye<=65535)return De=this.index[ps+(ye-55296>>pl)],De=(De<<yo)+(ye&es),this.data[De];if(ye<this.highStart)return De=_l-Bl+(ye>>jo),De=this.index[De],De+=ye>>pl&kl,De=this.index[De],De=(De<<yo)+(ye&es),this.data[De];if(ye<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Sr}(),nl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xl=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ml=0;Ml<nl.length;Ml++)xl[nl.charCodeAt(Ml)]=Ml;var Wl=1,au=2,Nl=3,$l=4,tu=5,Iu=7,pu=8,mu=9,gu=10,ql=11,Cl=12,ll=13,Hl=14,Sl=15,Su=function(ye){for(var De=[],Ve=0,ut=ye.length;Ve<ut;){var fr=ye.charCodeAt(Ve++);if(fr>=55296&&fr<=56319&&Ve<ut){var tn=ye.charCodeAt(Ve++);(tn&64512)===56320?De.push(((fr&1023)<<10)+(tn&1023)+65536):(De.push(fr),Ve--)}else De.push(fr)}return De},vu=function(){for(var ye=[],De=0;De<arguments.length;De++)ye[De]=arguments[De];if(String.fromCodePoint)return String.fromCodePoint.apply(String,ye);var Ve=ye.length;if(!Ve)return"";for(var ut=[],fr=-1,tn="";++fr<Ve;){var bn=ye[fr];bn<=65535?ut.push(bn):(bn-=65536,ut.push((bn>>10)+55296,bn%1024+56320)),(fr+1===Ve||ut.length>16384)&&(tn+=String.fromCharCode.apply(String,ut),ut.length=0)}return tn},Au=Ys(Xs),Ol="\xD7",cu="\xF7",du=function(ye){return Au.get(ye)},Lu=function(ye,De,Ve){var ut=Ve-2,fr=De[ut],tn=De[Ve-1],bn=De[Ve];if(tn===au&&bn===Nl)return Ol;if(tn===au||tn===Nl||tn===$l)return cu;if(bn===au||bn===Nl||bn===$l)return cu;if(tn===pu&&[pu,mu,ql,Cl].indexOf(bn)!==-1)return Ol;if((tn===ql||tn===mu)&&(bn===mu||bn===gu))return Ol;if((tn===Cl||tn===gu)&&bn===gu)return Ol;if(bn===ll||bn===tu)return Ol;if(bn===Iu)return Ol;if(tn===Wl)return Ol;if(tn===ll&&bn===Hl){for(;fr===tu;)fr=De[--ut];if(fr===Hl)return Ol}if(tn===Sl&&bn===Sl){for(var Mn=0;fr===Sl;)Mn++,fr=De[--ut];if(Mn%2===0)return Ol}return cu},zl=function(ye){var De=Su(ye),Ve=De.length,ut=0,fr=0,tn=De.map(du);return{next:function(){if(ut>=Ve)return{done:!0,value:null};for(var Mn=Ol;ut<Ve&&(Mn=Lu(De,tn,++ut))===Ol;);if(Mn!==Ol||ut===Ve){var ti=vu.apply(null,De.slice(fr,ut));return fr=ut,{value:ti,done:!1}}return{done:!0,value:null}}}},ru=function(ye){for(var De=zl(ye),Ve=[],ut;!(ut=De.next()).done;)ut.value&&Ve.push(ut.value.slice());return Ve},ou=function(ye){var De=123;if(ye.createRange){var Ve=ye.createRange();if(Ve.getBoundingClientRect){var ut=ye.createElement("boundtest");ut.style.height=De+"px",ut.style.display="block",ye.body.appendChild(ut),Ve.selectNode(ut);var fr=Ve.getBoundingClientRect(),tn=Math.round(fr.height);if(ye.body.removeChild(ut),tn===De)return!0}}return!1},su=function(ye){var De=ye.createElement("boundtest");De.style.width="50px",De.style.display="block",De.style.fontSize="12px",De.style.letterSpacing="0px",De.style.wordSpacing="0px",ye.body.appendChild(De);var Ve=ye.createRange();De.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var ut=De.firstChild,fr=i(ut.data).map(function(ti){return t(ti)}),tn=0,bn={},Mn=fr.every(function(ti,Vi){Ve.setStart(ut,tn),Ve.setEnd(ut,tn+ti.length);var Pi=Ve.getBoundingClientRect();tn+=ti.length;var $i=Pi.x>bn.x||Pi.y>bn.y;return bn=Pi,Vi===0?!0:$i});return ye.body.removeChild(De),Mn},Jl=function(){return typeof new Image().crossOrigin!="undefined"},Du=function(){return typeof new XMLHttpRequest().responseType=="string"},Ru=function(ye){var De=new Image,Ve=ye.createElement("canvas"),ut=Ve.getContext("2d");if(!ut)return!1;De.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{ut.drawImage(De,0,0),Ve.toDataURL()}catch(fr){return!1}return!0},Zl=function(ye){return ye[0]===0&&ye[1]===255&&ye[2]===0&&ye[3]===255},yu=function(ye){var De=ye.createElement("canvas"),Ve=100;De.width=Ve,De.height=Ve;var ut=De.getContext("2d");if(!ut)return Promise.reject(!1);ut.fillStyle="rgb(0, 255, 0)",ut.fillRect(0,0,Ve,Ve);var fr=new Image,tn=De.toDataURL();fr.src=tn;var bn=xu(Ve,Ve,0,0,fr);return ut.fillStyle="red",ut.fillRect(0,0,Ve,Ve),bu(bn).then(function(Mn){ut.drawImage(Mn,0,0);var ti=ut.getImageData(0,0,Ve,Ve).data;ut.fillStyle="red",ut.fillRect(0,0,Ve,Ve);var Vi=ye.createElement("div");return Vi.style.backgroundImage="url("+tn+")",Vi.style.height=Ve+"px",Zl(ti)?bu(xu(Ve,Ve,0,0,Vi)):Promise.reject(!1)}).then(function(Mn){return ut.drawImage(Mn,0,0),Zl(ut.getImageData(0,0,Ve,Ve).data)}).catch(function(){return!1})},xu=function(ye,De,Ve,ut,fr){var tn="http://www.w3.org/2000/svg",bn=document.createElementNS(tn,"svg"),Mn=document.createElementNS(tn,"foreignObject");return bn.setAttributeNS(null,"width",ye.toString()),bn.setAttributeNS(null,"height",De.toString()),Mn.setAttributeNS(null,"width","100%"),Mn.setAttributeNS(null,"height","100%"),Mn.setAttributeNS(null,"x",Ve.toString()),Mn.setAttributeNS(null,"y",ut.toString()),Mn.setAttributeNS(null,"externalResourcesRequired","true"),bn.appendChild(Mn),Mn.appendChild(fr),bn},bu=function(ye){return new Promise(function(De,Ve){var ut=new Image;ut.onload=function(){return De(ut)},ut.onerror=Ve,ut.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(ye))})},hl={get SUPPORT_RANGE_BOUNDS(){var Sr=ou(document);return Object.defineProperty(hl,"SUPPORT_RANGE_BOUNDS",{value:Sr}),Sr},get SUPPORT_WORD_BREAKING(){var Sr=hl.SUPPORT_RANGE_BOUNDS&&su(document);return Object.defineProperty(hl,"SUPPORT_WORD_BREAKING",{value:Sr}),Sr},get SUPPORT_SVG_DRAWING(){var Sr=Ru(document);return Object.defineProperty(hl,"SUPPORT_SVG_DRAWING",{value:Sr}),Sr},get SUPPORT_FOREIGNOBJECT_DRAWING(){var Sr=typeof Array.from=="function"&&typeof window.fetch=="function"?yu(document):Promise.resolve(!1);return Object.defineProperty(hl,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:Sr}),Sr},get SUPPORT_CORS_IMAGES(){var Sr=Jl();return Object.defineProperty(hl,"SUPPORT_CORS_IMAGES",{value:Sr}),Sr},get SUPPORT_RESPONSE_TYPE(){var Sr=Du();return Object.defineProperty(hl,"SUPPORT_RESPONSE_TYPE",{value:Sr}),Sr},get SUPPORT_CORS_XHR(){var Sr="withCredentials"in new XMLHttpRequest;return Object.defineProperty(hl,"SUPPORT_CORS_XHR",{value:Sr}),Sr},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var Sr=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(hl,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:Sr}),Sr}},Dl=function(){function Sr(ye,De){this.text=ye,this.bounds=De}return Sr}(),nu=function(ye,De,Ve,ut){var fr=ve(De,Ve),tn=[],bn=0;return fr.forEach(function(Mn){if(Ve.textDecorationLine.length||Mn.trim().length>0)if(hl.SUPPORT_RANGE_BOUNDS){var ti=hu(ut,bn,Mn.length).getClientRects();if(ti.length>1){var Vi=fu(Mn),Pi=0;Vi.forEach(function(Za){tn.push(new Dl(Za,h.fromDOMRectList(ye,hu(ut,Pi+bn,Za.length).getClientRects()))),Pi+=Za.length})}else tn.push(new Dl(Mn,h.fromDOMRectList(ye,ti)))}else{var $i=ut.splitText(Mn.length);tn.push(new Dl(Mn,Nu(ye,ut))),ut=$i}else hl.SUPPORT_RANGE_BOUNDS||(ut=ut.splitText(Mn.length));bn+=Mn.length}),tn},Nu=function(ye,De){var Ve=De.ownerDocument;if(Ve){var ut=Ve.createElement("html2canvaswrapper");ut.appendChild(De.cloneNode(!0));var fr=De.parentNode;if(fr){fr.replaceChild(ut,De);var tn=u(ye,ut);return ut.firstChild&&fr.replaceChild(ut.firstChild,ut),tn}}return h.EMPTY},hu=function(ye,De,Ve){var ut=ye.ownerDocument;if(!ut)throw new Error("Node has no owner document");var fr=ut.createRange();return fr.setStart(ye,De),fr.setEnd(ye,De+Ve),fr},fu=function(ye){if(hl.SUPPORT_NATIVE_TEXT_SEGMENTATION){var De=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(De.segment(ye)).map(function(Ve){return Ve.segment})}return ru(ye)},iu=function(ye,De){if(hl.SUPPORT_NATIVE_TEXT_SEGMENTATION){var Ve=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(Ve.segment(ye)).map(function(ut){return ut.segment})}return L(ye,De)},ve=function(ye,De){return De.letterSpacing!==0?fu(ye):iu(ye,De)},q=[32,160,4961,65792,65793,4153,4241],L=function(ye,De){for(var Ve=Be(ye,{lineBreak:De.lineBreak,wordBreak:De.overflowWrap==="break-word"?"break-word":De.wordBreak}),ut=[],fr,tn=function(){if(fr.value){var Mn=fr.value.slice(),ti=i(Mn),Vi="";ti.forEach(function(Pi){q.indexOf(Pi)===-1?Vi+=t(Pi):(Vi.length&&ut.push(Vi),ut.push(t(Pi)),Vi="")}),Vi.length&&ut.push(Vi)}};!(fr=Ve.next()).done;)tn();return ut},K=function(){function Sr(ye,De,Ve){this.text=H(De.data,Ve.textTransform),this.textBounds=nu(ye,this.text,Ve,De)}return Sr}(),H=function(ye,De){switch(De){case 1:return ye.toLowerCase();case 3:return ye.replace(Z,re);case 2:return ye.toUpperCase();default:return ye}},Z=/(^|\s|:|-|\(|\))([a-z])/g,re=function(ye,De,Ve){return ye.length>0?De+Ve.toUpperCase():ye},Ae=function(Sr){p(ye,Sr);function ye(De,Ve){var ut=Sr.call(this,De,Ve)||this;return ut.src=Ve.currentSrc||Ve.src,ut.intrinsicWidth=Ve.naturalWidth,ut.intrinsicHeight=Ve.naturalHeight,ut.context.cache.addImage(ut.src),ut}return ye}(_s),Te=function(Sr){p(ye,Sr);function ye(De,Ve){var ut=Sr.call(this,De,Ve)||this;return ut.canvas=Ve,ut.intrinsicWidth=Ve.width,ut.intrinsicHeight=Ve.height,ut}return ye}(_s),Ge=function(Sr){p(ye,Sr);function ye(De,Ve){var ut=Sr.call(this,De,Ve)||this,fr=new XMLSerializer,tn=u(De,Ve);return Ve.setAttribute("width",tn.width+"px"),Ve.setAttribute("height",tn.height+"px"),ut.svg="data:image/svg+xml,"+encodeURIComponent(fr.serializeToString(Ve)),ut.intrinsicWidth=Ve.width.baseVal.value,ut.intrinsicHeight=Ve.height.baseVal.value,ut.context.cache.addImage(ut.svg),ut}return ye}(_s),lt=function(Sr){p(ye,Sr);function ye(De,Ve){var ut=Sr.call(this,De,Ve)||this;return ut.value=Ve.value,ut}return ye}(_s),dt=function(Sr){p(ye,Sr);function ye(De,Ve){var ut=Sr.call(this,De,Ve)||this;return ut.start=Ve.start,ut.reversed=typeof Ve.reversed=="boolean"&&Ve.reversed===!0,ut}return ye}(_s),Kt=[{type:15,flags:0,unit:"px",number:3}],Er=[{type:16,flags:0,number:50}],br=function(ye){return ye.width>ye.height?new h(ye.left+(ye.width-ye.height)/2,ye.top,ye.height,ye.height):ye.width<ye.height?new h(ye.left,ye.top+(ye.height-ye.width)/2,ye.width,ye.width):ye},jr=function(ye){var De=ye.type===kn?new Array(ye.value.length+1).join("\u2022"):ye.value;return De.length===0?ye.placeholder||"":De},Kr="checkbox",In="radio",kn="password",Gn=707406591,bi=function(Sr){p(ye,Sr);function ye(De,Ve){var ut=Sr.call(this,De,Ve)||this;ut.type=Ve.type.toLowerCase(),ut.checked=Ve.checked,ut.value=jr(Ve),(ut.type===Kr||ut.type===In)&&(ut.styles.backgroundColor=3739148031,ut.styles.borderTopColor=ut.styles.borderRightColor=ut.styles.borderBottomColor=ut.styles.borderLeftColor=2779096575,ut.styles.borderTopWidth=ut.styles.borderRightWidth=ut.styles.borderBottomWidth=ut.styles.borderLeftWidth=1,ut.styles.borderTopStyle=ut.styles.borderRightStyle=ut.styles.borderBottomStyle=ut.styles.borderLeftStyle=1,ut.styles.backgroundClip=[0],ut.styles.backgroundOrigin=[0],ut.bounds=br(ut.bounds));switch(ut.type){case Kr:ut.styles.borderTopRightRadius=ut.styles.borderTopLeftRadius=ut.styles.borderBottomRightRadius=ut.styles.borderBottomLeftRadius=Kt;break;case In:ut.styles.borderTopRightRadius=ut.styles.borderTopLeftRadius=ut.styles.borderBottomRightRadius=ut.styles.borderBottomLeftRadius=Er;break}return ut}return ye}(_s),ua=function(Sr){p(ye,Sr);function ye(De,Ve){var ut=Sr.call(this,De,Ve)||this,fr=Ve.options[Ve.selectedIndex||0];return ut.value=fr&&fr.text||"",ut}return ye}(_s),Xi=function(Sr){p(ye,Sr);function ye(De,Ve){var ut=Sr.call(this,De,Ve)||this;return ut.value=Ve.value,ut}return ye}(_s),ta=function(Sr){p(ye,Sr);function ye(De,Ve){var ut=Sr.call(this,De,Ve)||this;ut.src=Ve.src,ut.width=parseInt(Ve.width,10)||0,ut.height=parseInt(Ve.height,10)||0,ut.backgroundColor=ut.styles.backgroundColor;try{if(Ve.contentWindow&&Ve.contentWindow.document&&Ve.contentWindow.document.documentElement){ut.tree=Sa(De,Ve.contentWindow.document.documentElement);var fr=Ve.contentWindow.document.documentElement?ao(De,getComputedStyle(Ve.contentWindow.document.documentElement).backgroundColor):So.TRANSPARENT,tn=Ve.contentWindow.document.body?ao(De,getComputedStyle(Ve.contentWindow.document.body).backgroundColor):So.TRANSPARENT;ut.backgroundColor=_a(fr)?_a(tn)?ut.styles.backgroundColor:tn:fr}}catch(bn){}return ut}return ye}(_s),Pa=["OL","UL","MENU"],Ya=function Sr(ye,De,Ve,ut){for(var fr=De.firstChild,tn=void 0;fr;fr=tn)if(tn=fr.nextSibling,ys(fr)&&fr.data.trim().length>0)Ve.textNodes.push(new K(ye,fr,Ve.styles));else if(bs(fr))if($t(fr)&&fr.assignedNodes)fr.assignedNodes().forEach(function(Mn){return Sr(ye,Mn,Ve,ut)});else{var bn=Ba(ye,fr);bn.styles.isVisible()&&(Go(fr,bn,ut)?bn.flags|=4:Ls(bn.styles)&&(bn.flags|=2),Pa.indexOf(fr.tagName)!==-1&&(bn.flags|=8),Ve.elements.push(bn),fr.slot,fr.shadowRoot?Sr(ye,fr.shadowRoot,bn,ut):!Ut(fr)&&!ir(fr)&&!Qt(fr)&&Sr(ye,fr,bn,ut))}},Ba=function(ye,De){return ie(De)?new Ae(ye,De):nn(De)?new Te(ye,De):ir(De)?new Ge(ye,De):Ws(De)?new lt(ye,De):xe(De)?new dt(ye,De):Ze(De)?new bi(ye,De):Qt(De)?new ua(ye,De):Ut(De)?new Xi(ye,De):Ce(De)?new ta(ye,De):new _s(ye,De)},Sa=function(ye,De){var Ve=Ba(ye,De);return Ve.flags|=4,Ya(ye,De,Ve,Ve),Ve},Go=function(ye,De,Ve){return De.styles.isPositionedWithZIndex()||De.styles.opacity<1||De.styles.isTransformed()||Pr(ye)&&Ve.styles.isTransparent()},Ls=function(ye){return ye.isPositioned()||ye.isFloating()},ys=function(ye){return ye.nodeType===Node.TEXT_NODE},bs=function(ye){return ye.nodeType===Node.ELEMENT_NODE},Fs=function(ye){return bs(ye)&&typeof ye.style!="undefined"&&!ws(ye)},ws=function(ye){return typeof ye.className=="object"},Ws=function(ye){return ye.tagName==="LI"},xe=function(ye){return ye.tagName==="OL"},Ze=function(ye){return ye.tagName==="INPUT"},wt=function(ye){return ye.tagName==="HTML"},ir=function(ye){return ye.tagName==="svg"},Pr=function(ye){return ye.tagName==="BODY"},nn=function(ye){return ye.tagName==="CANVAS"},Ue=function(ye){return ye.tagName==="VIDEO"},ie=function(ye){return ye.tagName==="IMG"},Ce=function(ye){return ye.tagName==="IFRAME"},et=function(ye){return ye.tagName==="STYLE"},yt=function(ye){return ye.tagName==="SCRIPT"},Ut=function(ye){return ye.tagName==="TEXTAREA"},Qt=function(ye){return ye.tagName==="SELECT"},$t=function(ye){return ye.tagName==="SLOT"},Hr=function(ye){return ye.tagName.indexOf("-")>0},ln=function(){function Sr(){this.counters={}}return Sr.prototype.getCounterValue=function(ye){var De=this.counters[ye];return De&&De.length?De[De.length-1]:1},Sr.prototype.getCounterValues=function(ye){var De=this.counters[ye];return De||[]},Sr.prototype.pop=function(ye){var De=this;ye.forEach(function(Ve){return De.counters[Ve].pop()})},Sr.prototype.parse=function(ye){var De=this,Ve=ye.counterIncrement,ut=ye.counterReset,fr=!0;Ve!==null&&Ve.forEach(function(bn){var Mn=De.counters[bn.counter];Mn&&bn.increment!==0&&(fr=!1,Mn.length||Mn.push(1),Mn[Math.max(0,Mn.length-1)]+=bn.increment)});var tn=[];return fr&&ut.forEach(function(bn){var Mn=De.counters[bn.counter];tn.push(bn.counter),Mn||(Mn=De.counters[bn.counter]=[]),Mn.push(bn.reset)}),tn},Sr}(),Ur={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Br={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},an={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},pn={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},jn=function(ye,De,Ve,ut,fr,tn){return ye<De||ye>Ve?ne(ye,fr,tn.length>0):ut.integers.reduce(function(bn,Mn,ti){for(;ye>=Mn;)ye-=Mn,bn+=ut.values[ti];return bn},"")+tn},_i=function(ye,De,Ve,ut){var fr="";do Ve||ye--,fr=ut(ye)+fr,ye/=De;while(ye*De>=De);return fr},Di=function(ye,De,Ve,ut,fr){var tn=Ve-De+1;return(ye<0?"-":"")+(_i(Math.abs(ye),tn,ut,function(bn){return t(Math.floor(bn%tn)+De)})+fr)},da=function(ye,De,Ve){Ve===void 0&&(Ve=". ");var ut=De.length;return _i(Math.abs(ye),ut,!1,function(fr){return De[Math.floor(fr%ut)]})+Ve},Ji=1<<0,Qa=1<<1,ya=1<<2,fo=1<<3,za=function(ye,De,Ve,ut,fr,tn){if(ye<-9999||ye>9999)return ne(ye,4,fr.length>0);var bn=Math.abs(ye),Mn=fr;if(bn===0)return De[0]+Mn;for(var ti=0;bn>0&&ti<=4;ti++){var Vi=bn%10;Vi===0&&sa(tn,Ji)&&Mn!==""?Mn=De[Vi]+Mn:Vi>1||Vi===1&&ti===0||Vi===1&&ti===1&&sa(tn,Qa)||Vi===1&&ti===1&&sa(tn,ya)&&ye>100||Vi===1&&ti>1&&sa(tn,fo)?Mn=De[Vi]+(ti>0?Ve[ti-1]:"")+Mn:Vi===1&&ti>0&&(Mn=Ve[ti-1]+Mn),bn=Math.floor(bn/10)}return(ye<0?ut:"")+Mn},Xo="\u5341\u767E\u5343\u842C",ls="\u62FE\u4F70\u4EDF\u842C",N="\u30DE\u30A4\u30CA\u30B9",U="\uB9C8\uC774\uB108\uC2A4",ne=function(ye,De,Ve){var ut=Ve?". ":"",fr=Ve?"\u3001":"",tn=Ve?", ":"",bn=Ve?" ":"";switch(De){case 0:return"\u2022"+bn;case 1:return"\u25E6"+bn;case 2:return"\u25FE"+bn;case 5:var Mn=Di(ye,48,57,!0,ut);return Mn.length<4?"0"+Mn:Mn;case 4:return da(ye,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",fr);case 6:return jn(ye,1,3999,Ur,3,ut).toLowerCase();case 7:return jn(ye,1,3999,Ur,3,ut);case 8:return Di(ye,945,969,!1,ut);case 9:return Di(ye,97,122,!1,ut);case 10:return Di(ye,65,90,!1,ut);case 11:return Di(ye,1632,1641,!0,ut);case 12:case 49:return jn(ye,1,9999,Br,3,ut);case 35:return jn(ye,1,9999,Br,3,ut).toLowerCase();case 13:return Di(ye,2534,2543,!0,ut);case 14:case 30:return Di(ye,6112,6121,!0,ut);case 15:return da(ye,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",fr);case 16:return da(ye,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",fr);case 17:case 48:return za(ye,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Xo,"\u8CA0",fr,Qa|ya|fo);case 47:return za(ye,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",ls,"\u8CA0",fr,Ji|Qa|ya|fo);case 42:return za(ye,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Xo,"\u8D1F",fr,Qa|ya|fo);case 41:return za(ye,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",ls,"\u8D1F",fr,Ji|Qa|ya|fo);case 26:return za(ye,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",N,fr,0);case 25:return za(ye,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",N,fr,Ji|Qa|ya);case 31:return za(ye,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",U,tn,Ji|Qa|ya);case 33:return za(ye,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",U,tn,0);case 32:return za(ye,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",U,tn,Ji|Qa|ya);case 18:return Di(ye,2406,2415,!0,ut);case 20:return jn(ye,1,19999,pn,3,ut);case 21:return Di(ye,2790,2799,!0,ut);case 22:return Di(ye,2662,2671,!0,ut);case 22:return jn(ye,1,10999,an,3,ut);case 23:return da(ye,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return da(ye,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Di(ye,3302,3311,!0,ut);case 28:return da(ye,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",fr);case 29:return da(ye,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",fr);case 34:return Di(ye,3792,3801,!0,ut);case 37:return Di(ye,6160,6169,!0,ut);case 38:return Di(ye,4160,4169,!0,ut);case 39:return Di(ye,2918,2927,!0,ut);case 40:return Di(ye,1776,1785,!0,ut);case 43:return Di(ye,3046,3055,!0,ut);case 44:return Di(ye,3174,3183,!0,ut);case 45:return Di(ye,3664,3673,!0,ut);case 46:return Di(ye,3872,3881,!0,ut);case 3:default:return Di(ye,48,57,!0,ut)}},se="data-html2canvas-ignore",ge=function(){function Sr(ye,De,Ve){if(this.context=ye,this.options=Ve,this.scrolledElements=[],this.referenceElement=De,this.counters=new ln,this.quoteDepth=0,!De.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(De.ownerDocument.documentElement,!1)}return Sr.prototype.toIFrame=function(ye,De){var Ve=this,ut=Ct(ye,De);if(!ut.contentWindow)return Promise.reject("Unable to find iframe window");var fr=ye.defaultView.pageXOffset,tn=ye.defaultView.pageYOffset,bn=ut.contentWindow,Mn=bn.document,ti=Tr(ut).then(function(){return A(Ve,void 0,void 0,function(){var Vi,Pi;return m(this,function($i){switch($i.label){case 0:return this.scrolledElements.forEach(la),bn&&(bn.scrollTo(De.left,De.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(bn.scrollY!==De.top||bn.scrollX!==De.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(bn.scrollX-De.left,bn.scrollY-De.top,0,0))),Vi=this.options.onclone,Pi=this.clonedReferenceElement,typeof Pi=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:Mn.fonts&&Mn.fonts.ready?[4,Mn.fonts.ready]:[3,2];case 1:$i.sent(),$i.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,yr(Mn)]:[3,4];case 3:$i.sent(),$i.label=4;case 4:return typeof Vi=="function"?[2,Promise.resolve().then(function(){return Vi(Mn,Pi)}).then(function(){return ut})]:[2,ut]}})})});return Mn.open(),Mn.write(Si(document.doctype)+"<html></html>"),Ti(this.referenceElement.ownerDocument,fr,tn),Mn.replaceChild(Mn.adoptNode(this.documentElement),Mn.documentElement),Mn.close(),ti},Sr.prototype.createElementClone=function(ye){if(js(ye,2))debugger;if(nn(ye))return this.createCanvasClone(ye);if(Ue(ye))return this.createVideoClone(ye);if(et(ye))return this.createStyleClone(ye);var De=ye.cloneNode(!1);return ie(De)&&(ie(ye)&&ye.currentSrc&&ye.currentSrc!==ye.src&&(De.src=ye.currentSrc,De.srcset=""),De.loading==="lazy"&&(De.loading="eager")),Hr(De)?this.createCustomElementClone(De):De},Sr.prototype.createCustomElementClone=function(ye){var De=document.createElement("html2canvascustomelement");return $n(ye.style,De),De},Sr.prototype.createStyleClone=function(ye){try{var De=ye.sheet;if(De&&De.cssRules){var Ve=[].slice.call(De.cssRules,0).reduce(function(fr,tn){return tn&&typeof tn.cssText=="string"?fr+tn.cssText:fr},""),ut=ye.cloneNode(!1);return ut.textContent=Ve,ut}}catch(fr){if(this.context.logger.error("Unable to access cssRules property",fr),fr.name!=="SecurityError")throw fr}return ye.cloneNode(!1)},Sr.prototype.createCanvasClone=function(ye){var De;if(this.options.inlineImages&&ye.ownerDocument){var Ve=ye.ownerDocument.createElement("img");try{return Ve.src=ye.toDataURL(),Ve}catch(ti){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",ye)}}var ut=ye.cloneNode(!1);try{ut.width=ye.width,ut.height=ye.height;var fr=ye.getContext("2d"),tn=ut.getContext("2d");if(tn)if(!this.options.allowTaint&&fr)tn.putImageData(fr.getImageData(0,0,ye.width,ye.height),0,0);else{var bn=(De=ye.getContext("webgl2"))!==null&&De!==void 0?De:ye.getContext("webgl");if(bn){var Mn=bn.getContextAttributes();(Mn==null?void 0:Mn.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",ye)}tn.drawImage(ye,0,0)}return ut}catch(ti){this.context.logger.info("Unable to clone canvas as it is tainted",ye)}return ut},Sr.prototype.createVideoClone=function(ye){var De=ye.ownerDocument.createElement("canvas");De.width=ye.offsetWidth,De.height=ye.offsetHeight;var Ve=De.getContext("2d");try{return Ve&&(Ve.drawImage(ye,0,0,De.width,De.height),this.options.allowTaint||Ve.getImageData(0,0,De.width,De.height)),De}catch(fr){this.context.logger.info("Unable to clone video as it is tainted",ye)}var ut=ye.ownerDocument.createElement("canvas");return ut.width=ye.offsetWidth,ut.height=ye.offsetHeight,ut},Sr.prototype.appendChildNode=function(ye,De,Ve){(!bs(De)||!yt(De)&&!De.hasAttribute(se)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(De)))&&((!this.options.copyStyles||!bs(De)||!et(De))&&ye.appendChild(this.cloneNode(De,Ve)))},Sr.prototype.cloneChildNodes=function(ye,De,Ve){for(var ut=this,fr=ye.shadowRoot?ye.shadowRoot.firstChild:ye.firstChild;fr;fr=fr.nextSibling)if(bs(fr)&&$t(fr)&&typeof fr.assignedNodes=="function"){var tn=fr.assignedNodes();tn.length&&tn.forEach(function(bn){return ut.appendChildNode(De,bn,Ve)})}else this.appendChildNode(De,fr,Ve)},Sr.prototype.cloneNode=function(ye,De){if(ys(ye))return document.createTextNode(ye.data);if(!ye.ownerDocument)return ye.cloneNode(!1);var Ve=ye.ownerDocument.defaultView;if(Ve&&bs(ye)&&(Fs(ye)||ws(ye))){var ut=this.createElementClone(ye);ut.style.transitionProperty="none";var fr=Ve.getComputedStyle(ye),tn=Ve.getComputedStyle(ye,":before"),bn=Ve.getComputedStyle(ye,":after");this.referenceElement===ye&&Fs(ut)&&(this.clonedReferenceElement=ut),Pr(ut)&&ho(ut);var Mn=this.counters.parse(new gs(this.context,fr)),ti=this.resolvePseudoContent(ye,ut,tn,ze.BEFORE);Hr(ye)&&(De=!0),Ue(ye)||this.cloneChildNodes(ye,ut,De),ti&&ut.insertBefore(ti,ut.firstChild);var Vi=this.resolvePseudoContent(ye,ut,bn,ze.AFTER);return Vi&&ut.appendChild(Vi),this.counters.pop(Mn),(fr&&(this.options.copyStyles||ws(ye))&&!Ce(ye)||De)&&$n(fr,ut),(ye.scrollTop!==0||ye.scrollLeft!==0)&&this.scrolledElements.push([ut,ye.scrollLeft,ye.scrollTop]),(Ut(ye)||Qt(ye))&&(Ut(ut)||Qt(ut))&&(ut.value=ye.value),ut}return ye.cloneNode(!1)},Sr.prototype.resolvePseudoContent=function(ye,De,Ve,ut){var fr=this;if(!Ve)return;var tn=Ve.content,bn=De.ownerDocument;if(!bn||!tn||tn==="none"||tn==="-moz-alt-content"||Ve.display==="none")return;this.counters.parse(new gs(this.context,Ve));var Mn=new rl(this.context,Ve),ti=bn.createElement("html2canvaspseudoelement");$n(Ve,ti),Mn.content.forEach(function(Pi){if(Pi.type===0)ti.appendChild(bn.createTextNode(Pi.value));else if(Pi.type===22){var $i=bn.createElement("img");$i.src=Pi.value,$i.style.opacity="1",ti.appendChild($i)}else if(Pi.type===18){if(Pi.name==="attr"){var Za=Pi.values.filter(Tn);Za.length&&ti.appendChild(bn.createTextNode(ye.getAttribute(Za[0].value)||""))}else if(Pi.name==="counter"){var eo=Pi.values.filter(fi),po=eo[0],us=eo[1];if(po&&Tn(po)){var Yo=fr.counters.getCounterValue(po.value),Po=us&&Tn(us)?hs.parse(fr.context,us.value):3;ti.appendChild(bn.createTextNode(ne(Yo,Po,!1)))}}else if(Pi.name==="counters"){var $s=Pi.values.filter(fi),po=$s[0],cl=$s[1],us=$s[2];if(po&&Tn(po)){var zs=fr.counters.getCounterValues(po.value),Ro=us&&Tn(us)?hs.parse(fr.context,us.value):3,Al=cl&&cl.type===0?cl.value:"",bl=zs.map(function(Mu){return ne(Mu,Ro,!1)}).join(Al);ti.appendChild(bn.createTextNode(bl))}}}else if(Pi.type===20)switch(Pi.value){case"open-quote":ti.appendChild(bn.createTextNode(Es(Mn.quotes,fr.quoteDepth++,!0)));break;case"close-quote":ti.appendChild(bn.createTextNode(Es(Mn.quotes,--fr.quoteDepth,!1)));break;default:ti.appendChild(bn.createTextNode(Pi.value))}}),ti.className=ka+" "+Na;var Vi=ut===ze.BEFORE?" "+ka:" "+Na;return ws(De)?De.className.baseValue+=Vi:De.className+=Vi,ti},Sr.destroy=function(ye){return ye.parentNode?(ye.parentNode.removeChild(ye),!0):!1},Sr}(),ze;(function(Sr){Sr[Sr.BEFORE=0]="BEFORE",Sr[Sr.AFTER=1]="AFTER"})(ze||(ze={}));var Ct=function(ye,De){var Ve=ye.createElement("iframe");return Ve.className="html2canvas-container",Ve.style.visibility="hidden",Ve.style.position="fixed",Ve.style.left="-10000px",Ve.style.top="0px",Ve.style.border="0",Ve.width=De.width.toString(),Ve.height=De.height.toString(),Ve.scrolling="no",Ve.setAttribute(se,"true"),ye.body.appendChild(Ve),Ve},Zt=function(ye){return new Promise(function(De){if(ye.complete){De();return}if(!ye.src){De();return}ye.onload=De,ye.onerror=De})},yr=function(ye){return Promise.all([].slice.call(ye.images,0).map(Zt))},Tr=function(ye){return new Promise(function(De,Ve){var ut=ye.contentWindow;if(!ut)return Ve("No window assigned for iframe");var fr=ut.document;ut.onload=ye.onload=function(){ut.onload=ye.onload=null;var tn=setInterval(function(){fr.body.childNodes.length>0&&fr.readyState==="complete"&&(clearInterval(tn),De(ye))},50)}})},Pn=["all","d","content"],$n=function(ye,De){for(var Ve=ye.length-1;Ve>=0;Ve--){var ut=ye.item(Ve);Pn.indexOf(ut)===-1&&De.style.setProperty(ut,ye.getPropertyValue(ut))}return De},Si=function(ye){var De="";return ye&&(De+="<!DOCTYPE ",ye.name&&(De+=ye.name),ye.internalSubset&&(De+=ye.internalSubset),ye.publicId&&(De+='"'+ye.publicId+'"'),ye.systemId&&(De+='"'+ye.systemId+'"'),De+=">"),De},Ti=function(ye,De,Ve){ye&&ye.defaultView&&(De!==ye.defaultView.pageXOffset||Ve!==ye.defaultView.pageYOffset)&&ye.defaultView.scrollTo(De,Ve)},la=function(ye){var De=ye[0],Ve=ye[1],ut=ye[2];De.scrollLeft=Ve,De.scrollTop=ut},Ta=":before",Wa=":after",ka="___html2canvas___pseudoelement_before",Na="___html2canvas___pseudoelement_after",qa=`{
|
|
|
content: "" !important;
|
|
|
display: none !important;
|
|
|
}`,ho=function(ye){ns(ye,"."+ka+Ta+qa+`
|
|
|
.`+Na+Wa+qa)},ns=function(ye,De){var Ve=ye.ownerDocument;if(Ve){var ut=Ve.createElement("style");ut.textContent=De,ye.appendChild(ut)}},Mo=function(){function Sr(){}return Sr.getOrigin=function(ye){var De=Sr._link;return De?(De.href=ye,De.href=De.href,De.protocol+De.hostname+De.port):"about:blank"},Sr.isSameOrigin=function(ye){return Sr.getOrigin(ye)===Sr._origin},Sr.setContext=function(ye){Sr._link=ye.document.createElement("a"),Sr._origin=Sr.getOrigin(ye.location.href)},Sr._origin="about:blank",Sr}(),Ss=function(){function Sr(ye,De){this.context=ye,this._options=De,this._cache={}}return Sr.prototype.addImage=function(ye){var De=Promise.resolve();return this.has(ye)||(Gl(ye)||Pl(ye))&&(this._cache[ye]=this.loadImage(ye)).catch(function(){}),De},Sr.prototype.match=function(ye){return this._cache[ye]},Sr.prototype.loadImage=function(ye){return A(this,void 0,void 0,function(){var De,Ve,ut,fr,tn=this;return m(this,function(bn){switch(bn.label){case 0:return De=Mo.isSameOrigin(ye),Ve=!Vl(ye)&&this._options.useCORS===!0&&hl.SUPPORT_CORS_IMAGES&&!De,ut=!Vl(ye)&&!De&&!Gl(ye)&&typeof this._options.proxy=="string"&&hl.SUPPORT_CORS_XHR&&!Ve,!De&&this._options.allowTaint===!1&&!Vl(ye)&&!Gl(ye)&&!ut&&!Ve?[2]:(fr=ye,ut?[4,this.proxy(fr)]:[3,2]);case 1:fr=bn.sent(),bn.label=2;case 2:return this.context.logger.debug("Added image "+ye.substring(0,256)),[4,new Promise(function(Mn,ti){var Vi=new Image;Vi.onload=function(){return Mn(Vi)},Vi.onerror=ti,(Il(fr)||Ve)&&(Vi.crossOrigin="anonymous"),Vi.src=fr,Vi.complete===!0&&setTimeout(function(){return Mn(Vi)},500),tn._options.imageTimeout>0&&setTimeout(function(){return ti("Timed out ("+tn._options.imageTimeout+"ms) loading image")},tn._options.imageTimeout)})];case 3:return[2,bn.sent()]}})})},Sr.prototype.has=function(ye){return typeof this._cache[ye]!="undefined"},Sr.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},Sr.prototype.proxy=function(ye){var De=this,Ve=this._options.proxy;if(!Ve)throw new Error("No proxy defined");var ut=ye.substring(0,256);return new Promise(function(fr,tn){var bn=hl.SUPPORT_RESPONSE_TYPE?"blob":"text",Mn=new XMLHttpRequest;Mn.onload=function(){if(Mn.status===200)if(bn==="text")fr(Mn.response);else{var Pi=new FileReader;Pi.addEventListener("load",function(){return fr(Pi.result)},!1),Pi.addEventListener("error",function($i){return tn($i)},!1),Pi.readAsDataURL(Mn.response)}else tn("Failed to proxy resource "+ut+" with status code "+Mn.status)},Mn.onerror=tn;var ti=Ve.indexOf("?")>-1?"&":"?";if(Mn.open("GET",""+Ve+ti+"url="+encodeURIComponent(ye)+"&responseType="+bn),bn!=="text"&&Mn instanceof XMLHttpRequest&&(Mn.responseType=bn),De._options.imageTimeout){var Vi=De._options.imageTimeout;Mn.timeout=Vi,Mn.ontimeout=function(){return tn("Timed out ("+Vi+"ms) proxying "+ut)}}Mn.send()})},Sr}(),Zs=/^data:image\/svg\+xml/i,yl=/^data:image\/.*;base64,/i,ul=/^data:image\/.*/i,Pl=function(ye){return hl.SUPPORT_SVG_DRAWING||!Fl(ye)},Vl=function(ye){return ul.test(ye)},Il=function(ye){return yl.test(ye)},Gl=function(ye){return ye.substr(0,4)==="blob"},Fl=function(ye){return ye.substr(-3).toLowerCase()==="svg"||Zs.test(ye)},Ja=function(){function Sr(ye,De){this.type=0,this.x=ye,this.y=De}return Sr.prototype.add=function(ye,De){return new Sr(this.x+ye,this.y+De)},Sr}(),vl=function(ye,De,Ve){return new Ja(ye.x+(De.x-ye.x)*Ve,ye.y+(De.y-ye.y)*Ve)},gl=function(){function Sr(ye,De,Ve,ut){this.type=1,this.start=ye,this.startControl=De,this.endControl=Ve,this.end=ut}return Sr.prototype.subdivide=function(ye,De){var Ve=vl(this.start,this.startControl,ye),ut=vl(this.startControl,this.endControl,ye),fr=vl(this.endControl,this.end,ye),tn=vl(Ve,ut,ye),bn=vl(ut,fr,ye),Mn=vl(tn,bn,ye);return De?new Sr(this.start,Ve,tn,Mn):new Sr(Mn,bn,fr,this.end)},Sr.prototype.add=function(ye,De){return new Sr(this.start.add(ye,De),this.startControl.add(ye,De),this.endControl.add(ye,De),this.end.add(ye,De))},Sr.prototype.reverse=function(){return new Sr(this.end,this.endControl,this.startControl,this.start)},Sr}(),El=function(ye){return ye.type===1},Bu=function(){function Sr(ye){var De=ye.styles,Ve=ye.bounds,ut=Yi(De.borderTopLeftRadius,Ve.width,Ve.height),fr=ut[0],tn=ut[1],bn=Yi(De.borderTopRightRadius,Ve.width,Ve.height),Mn=bn[0],ti=bn[1],Vi=Yi(De.borderBottomRightRadius,Ve.width,Ve.height),Pi=Vi[0],$i=Vi[1],Za=Yi(De.borderBottomLeftRadius,Ve.width,Ve.height),eo=Za[0],po=Za[1],us=[];us.push((fr+Mn)/Ve.width),us.push((eo+Pi)/Ve.width),us.push((tn+po)/Ve.height),us.push((ti+$i)/Ve.height);var Yo=Math.max.apply(Math,us);Yo>1&&(fr/=Yo,tn/=Yo,Mn/=Yo,ti/=Yo,Pi/=Yo,$i/=Yo,eo/=Yo,po/=Yo);var Po=Ve.width-Mn,$s=Ve.height-$i,cl=Ve.width-Pi,zs=Ve.height-po,Ro=De.borderTopWidth,Al=De.borderRightWidth,bl=De.borderBottomWidth,Vs=De.borderLeftWidth,_u=ca(De.paddingTop,ye.bounds.width),Mu=ca(De.paddingRight,ye.bounds.width),Ou=ca(De.paddingBottom,ye.bounds.width),eu=ca(De.paddingLeft,ye.bounds.width);this.topLeftBorderDoubleOuterBox=fr>0||tn>0?vs(Ve.left+Vs/3,Ve.top+Ro/3,fr-Vs/3,tn-Ro/3,Hs.TOP_LEFT):new Ja(Ve.left+Vs/3,Ve.top+Ro/3),this.topRightBorderDoubleOuterBox=fr>0||tn>0?vs(Ve.left+Po,Ve.top+Ro/3,Mn-Al/3,ti-Ro/3,Hs.TOP_RIGHT):new Ja(Ve.left+Ve.width-Al/3,Ve.top+Ro/3),this.bottomRightBorderDoubleOuterBox=Pi>0||$i>0?vs(Ve.left+cl,Ve.top+$s,Pi-Al/3,$i-bl/3,Hs.BOTTOM_RIGHT):new Ja(Ve.left+Ve.width-Al/3,Ve.top+Ve.height-bl/3),this.bottomLeftBorderDoubleOuterBox=eo>0||po>0?vs(Ve.left+Vs/3,Ve.top+zs,eo-Vs/3,po-bl/3,Hs.BOTTOM_LEFT):new Ja(Ve.left+Vs/3,Ve.top+Ve.height-bl/3),this.topLeftBorderDoubleInnerBox=fr>0||tn>0?vs(Ve.left+Vs*2/3,Ve.top+Ro*2/3,fr-Vs*2/3,tn-Ro*2/3,Hs.TOP_LEFT):new Ja(Ve.left+Vs*2/3,Ve.top+Ro*2/3),this.topRightBorderDoubleInnerBox=fr>0||tn>0?vs(Ve.left+Po,Ve.top+Ro*2/3,Mn-Al*2/3,ti-Ro*2/3,Hs.TOP_RIGHT):new Ja(Ve.left+Ve.width-Al*2/3,Ve.top+Ro*2/3),this.bottomRightBorderDoubleInnerBox=Pi>0||$i>0?vs(Ve.left+cl,Ve.top+$s,Pi-Al*2/3,$i-bl*2/3,Hs.BOTTOM_RIGHT):new Ja(Ve.left+Ve.width-Al*2/3,Ve.top+Ve.height-bl*2/3),this.bottomLeftBorderDoubleInnerBox=eo>0||po>0?vs(Ve.left+Vs*2/3,Ve.top+zs,eo-Vs*2/3,po-bl*2/3,Hs.BOTTOM_LEFT):new Ja(Ve.left+Vs*2/3,Ve.top+Ve.height-bl*2/3),this.topLeftBorderStroke=fr>0||tn>0?vs(Ve.left+Vs/2,Ve.top+Ro/2,fr-Vs/2,tn-Ro/2,Hs.TOP_LEFT):new Ja(Ve.left+Vs/2,Ve.top+Ro/2),this.topRightBorderStroke=fr>0||tn>0?vs(Ve.left+Po,Ve.top+Ro/2,Mn-Al/2,ti-Ro/2,Hs.TOP_RIGHT):new Ja(Ve.left+Ve.width-Al/2,Ve.top+Ro/2),this.bottomRightBorderStroke=Pi>0||$i>0?vs(Ve.left+cl,Ve.top+$s,Pi-Al/2,$i-bl/2,Hs.BOTTOM_RIGHT):new Ja(Ve.left+Ve.width-Al/2,Ve.top+Ve.height-bl/2),this.bottomLeftBorderStroke=eo>0||po>0?vs(Ve.left+Vs/2,Ve.top+zs,eo-Vs/2,po-bl/2,Hs.BOTTOM_LEFT):new Ja(Ve.left+Vs/2,Ve.top+Ve.height-bl/2),this.topLeftBorderBox=fr>0||tn>0?vs(Ve.left,Ve.top,fr,tn,Hs.TOP_LEFT):new Ja(Ve.left,Ve.top),this.topRightBorderBox=Mn>0||ti>0?vs(Ve.left+Po,Ve.top,Mn,ti,Hs.TOP_RIGHT):new Ja(Ve.left+Ve.width,Ve.top),this.bottomRightBorderBox=Pi>0||$i>0?vs(Ve.left+cl,Ve.top+$s,Pi,$i,Hs.BOTTOM_RIGHT):new Ja(Ve.left+Ve.width,Ve.top+Ve.height),this.bottomLeftBorderBox=eo>0||po>0?vs(Ve.left,Ve.top+zs,eo,po,Hs.BOTTOM_LEFT):new Ja(Ve.left,Ve.top+Ve.height),this.topLeftPaddingBox=fr>0||tn>0?vs(Ve.left+Vs,Ve.top+Ro,Math.max(0,fr-Vs),Math.max(0,tn-Ro),Hs.TOP_LEFT):new Ja(Ve.left+Vs,Ve.top+Ro),this.topRightPaddingBox=Mn>0||ti>0?vs(Ve.left+Math.min(Po,Ve.width-Al),Ve.top+Ro,Po>Ve.width+Al?0:Math.max(0,Mn-Al),Math.max(0,ti-Ro),Hs.TOP_RIGHT):new Ja(Ve.left+Ve.width-Al,Ve.top+Ro),this.bottomRightPaddingBox=Pi>0||$i>0?vs(Ve.left+Math.min(cl,Ve.width-Vs),Ve.top+Math.min($s,Ve.height-bl),Math.max(0,Pi-Al),Math.max(0,$i-bl),Hs.BOTTOM_RIGHT):new Ja(Ve.left+Ve.width-Al,Ve.top+Ve.height-bl),this.bottomLeftPaddingBox=eo>0||po>0?vs(Ve.left+Vs,Ve.top+Math.min(zs,Ve.height-bl),Math.max(0,eo-Vs),Math.max(0,po-bl),Hs.BOTTOM_LEFT):new Ja(Ve.left+Vs,Ve.top+Ve.height-bl),this.topLeftContentBox=fr>0||tn>0?vs(Ve.left+Vs+eu,Ve.top+Ro+_u,Math.max(0,fr-(Vs+eu)),Math.max(0,tn-(Ro+_u)),Hs.TOP_LEFT):new Ja(Ve.left+Vs+eu,Ve.top+Ro+_u),this.topRightContentBox=Mn>0||ti>0?vs(Ve.left+Math.min(Po,Ve.width+Vs+eu),Ve.top+Ro+_u,Po>Ve.width+Vs+eu?0:Mn-Vs+eu,ti-(Ro+_u),Hs.TOP_RIGHT):new Ja(Ve.left+Ve.width-(Al+Mu),Ve.top+Ro+_u),this.bottomRightContentBox=Pi>0||$i>0?vs(Ve.left+Math.min(cl,Ve.width-(Vs+eu)),Ve.top+Math.min($s,Ve.height+Ro+_u),Math.max(0,Pi-(Al+Mu)),$i-(bl+Ou),Hs.BOTTOM_RIGHT):new Ja(Ve.left+Ve.width-(Al+Mu),Ve.top+Ve.height-(bl+Ou)),this.bottomLeftContentBox=eo>0||po>0?vs(Ve.left+Vs+eu,Ve.top+zs,Math.max(0,eo-(Vs+eu)),po-(bl+Ou),Hs.BOTTOM_LEFT):new Ja(Ve.left+Vs+eu,Ve.top+Ve.height-(bl+Ou))}return Sr}(),Hs;(function(Sr){Sr[Sr.TOP_LEFT=0]="TOP_LEFT",Sr[Sr.TOP_RIGHT=1]="TOP_RIGHT",Sr[Sr.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",Sr[Sr.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Hs||(Hs={}));var vs=function(ye,De,Ve,ut,fr){var tn=4*((Math.sqrt(2)-1)/3),bn=Ve*tn,Mn=ut*tn,ti=ye+Ve,Vi=De+ut;switch(fr){case Hs.TOP_LEFT:return new gl(new Ja(ye,Vi),new Ja(ye,Vi-Mn),new Ja(ti-bn,De),new Ja(ti,De));case Hs.TOP_RIGHT:return new gl(new Ja(ye,De),new Ja(ye+bn,De),new Ja(ti,Vi-Mn),new Ja(ti,Vi));case Hs.BOTTOM_RIGHT:return new gl(new Ja(ti,De),new Ja(ti,De+Mn),new Ja(ye+bn,Vi),new Ja(ye,Vi));case Hs.BOTTOM_LEFT:default:return new gl(new Ja(ti,Vi),new Ja(ti-bn,Vi),new Ja(ye,De+Mn),new Ja(ye,De))}},lu=function(ye){return[ye.topLeftBorderBox,ye.topRightBorderBox,ye.bottomRightBorderBox,ye.bottomLeftBorderBox]},Kl=function(ye){return[ye.topLeftContentBox,ye.topRightContentBox,ye.bottomRightContentBox,ye.bottomLeftContentBox]},Uu=function(ye){return[ye.topLeftPaddingBox,ye.topRightPaddingBox,ye.bottomRightPaddingBox,ye.bottomLeftPaddingBox]},Eu=function(){function Sr(ye,De,Ve){this.offsetX=ye,this.offsetY=De,this.matrix=Ve,this.type=0,this.target=2|4}return Sr}(),uu=function(){function Sr(ye,De){this.path=ye,this.target=De,this.type=1}return Sr}(),ku=function(){function Sr(ye){this.opacity=ye,this.type=2,this.target=2|4}return Sr}(),Yl=function(ye){return ye.type===0},Tu=function(ye){return ye.type===1},Vu=function(ye){return ye.type===2},Ju=function(ye,De){return ye.length===De.length?ye.some(function(Ve,ut){return Ve===De[ut]}):!1},vc=function(ye,De,Ve,ut,fr){return ye.map(function(tn,bn){switch(bn){case 0:return tn.add(De,Ve);case 1:return tn.add(De+ut,Ve);case 2:return tn.add(De+ut,Ve+fr);case 3:return tn.add(De,Ve+fr)}return tn})},Ac=function(){function Sr(ye){this.element=ye,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return Sr}(),tc=function(){function Sr(ye,De){if(this.container=ye,this.parent=De,this.effects=[],this.curves=new Bu(this.container),this.container.styles.opacity<1&&this.effects.push(new ku(this.container.styles.opacity)),this.container.styles.transform!==null){var Ve=this.container.bounds.left+this.container.styles.transformOrigin[0].number,ut=this.container.bounds.top+this.container.styles.transformOrigin[1].number,fr=this.container.styles.transform;this.effects.push(new Eu(Ve,ut,fr))}if(this.container.styles.overflowX!==0){var tn=lu(this.curves),bn=Uu(this.curves);Ju(tn,bn)?this.effects.push(new uu(tn,2|4)):(this.effects.push(new uu(tn,2)),this.effects.push(new uu(bn,4)))}}return Sr.prototype.getEffects=function(ye){for(var De=[2,3].indexOf(this.container.styles.position)===-1,Ve=this.parent,ut=this.effects.slice(0);Ve;){var fr=Ve.effects.filter(function(Mn){return!Tu(Mn)});if(De||Ve.container.styles.position!==0||!Ve.parent){if(ut.unshift.apply(ut,fr),De=[2,3].indexOf(Ve.container.styles.position)===-1,Ve.container.styles.overflowX!==0){var tn=lu(Ve.curves),bn=Uu(Ve.curves);Ju(tn,bn)||ut.unshift(new uu(bn,2|4))}}else ut.unshift.apply(ut,fr);Ve=Ve.parent}return ut.filter(function(Mn){return sa(Mn.target,ye)})},Sr}(),yc=function Sr(ye,De,Ve,ut){ye.container.elements.forEach(function(fr){var tn=sa(fr.flags,4),bn=sa(fr.flags,2),Mn=new tc(fr,ye);sa(fr.styles.display,2048)&&ut.push(Mn);var ti=sa(fr.flags,8)?[]:ut;if(tn||bn){var Vi=tn||fr.styles.isPositioned()?Ve:De,Pi=new Ac(Mn);if(fr.styles.isPositioned()||fr.styles.opacity<1||fr.styles.isTransformed()){var $i=fr.styles.zIndex.order;if($i<0){var Za=0;Vi.negativeZIndex.some(function(po,us){return $i>po.element.container.styles.zIndex.order?(Za=us,!1):Za>0}),Vi.negativeZIndex.splice(Za,0,Pi)}else if($i>0){var eo=0;Vi.positiveZIndex.some(function(po,us){return $i>=po.element.container.styles.zIndex.order?(eo=us+1,!1):eo>0}),Vi.positiveZIndex.splice(eo,0,Pi)}else Vi.zeroOrAutoZIndexOrTransformedOrOpacity.push(Pi)}else fr.styles.isFloating()?Vi.nonPositionedFloats.push(Pi):Vi.nonPositionedInlineLevel.push(Pi);Sr(Mn,Pi,tn?Pi:Ve,ti)}else fr.styles.isInlineLevel()?De.inlineLevel.push(Mn):De.nonInlineLevel.push(Mn),Sr(Mn,De,Ve,ti);sa(fr.flags,8)&&sc(fr,ti)})},sc=function(ye,De){for(var Ve=ye instanceof dt?ye.start:1,ut=ye instanceof dt?ye.reversed:!1,fr=0;fr<De.length;fr++){var tn=De[fr];tn.container instanceof lt&&typeof tn.container.value=="number"&&tn.container.value!==0&&(Ve=tn.container.value),tn.listValue=ne(Ve,tn.container.styles.listStyleType,!0),Ve+=ut?-1:1}},ju=function(ye){var De=new tc(ye,null),Ve=new Ac(De),ut=[];return yc(De,Ve,Ve,ut),sc(De.container,ut),Ve},hc=function(ye,De){switch(De){case 0:return Cu(ye.topLeftBorderBox,ye.topLeftPaddingBox,ye.topRightBorderBox,ye.topRightPaddingBox);case 1:return Cu(ye.topRightBorderBox,ye.topRightPaddingBox,ye.bottomRightBorderBox,ye.bottomRightPaddingBox);case 2:return Cu(ye.bottomRightBorderBox,ye.bottomRightPaddingBox,ye.bottomLeftBorderBox,ye.bottomLeftPaddingBox);case 3:default:return Cu(ye.bottomLeftBorderBox,ye.bottomLeftPaddingBox,ye.topLeftBorderBox,ye.topLeftPaddingBox)}},bc=function(ye,De){switch(De){case 0:return Cu(ye.topLeftBorderBox,ye.topLeftBorderDoubleOuterBox,ye.topRightBorderBox,ye.topRightBorderDoubleOuterBox);case 1:return Cu(ye.topRightBorderBox,ye.topRightBorderDoubleOuterBox,ye.bottomRightBorderBox,ye.bottomRightBorderDoubleOuterBox);case 2:return Cu(ye.bottomRightBorderBox,ye.bottomRightBorderDoubleOuterBox,ye.bottomLeftBorderBox,ye.bottomLeftBorderDoubleOuterBox);case 3:default:return Cu(ye.bottomLeftBorderBox,ye.bottomLeftBorderDoubleOuterBox,ye.topLeftBorderBox,ye.topLeftBorderDoubleOuterBox)}},Tc=function(ye,De){switch(De){case 0:return Cu(ye.topLeftBorderDoubleInnerBox,ye.topLeftPaddingBox,ye.topRightBorderDoubleInnerBox,ye.topRightPaddingBox);case 1:return Cu(ye.topRightBorderDoubleInnerBox,ye.topRightPaddingBox,ye.bottomRightBorderDoubleInnerBox,ye.bottomRightPaddingBox);case 2:return Cu(ye.bottomRightBorderDoubleInnerBox,ye.bottomRightPaddingBox,ye.bottomLeftBorderDoubleInnerBox,ye.bottomLeftPaddingBox);case 3:default:return Cu(ye.bottomLeftBorderDoubleInnerBox,ye.bottomLeftPaddingBox,ye.topLeftBorderDoubleInnerBox,ye.topLeftPaddingBox)}},wc=function(ye,De){switch(De){case 0:return Pu(ye.topLeftBorderStroke,ye.topRightBorderStroke);case 1:return Pu(ye.topRightBorderStroke,ye.bottomRightBorderStroke);case 2:return Pu(ye.bottomRightBorderStroke,ye.bottomLeftBorderStroke);case 3:default:return Pu(ye.bottomLeftBorderStroke,ye.topLeftBorderStroke)}},Pu=function(ye,De){var Ve=[];return El(ye)?Ve.push(ye.subdivide(.5,!1)):Ve.push(ye),El(De)?Ve.push(De.subdivide(.5,!0)):Ve.push(De),Ve},Cu=function(ye,De,Ve,ut){var fr=[];return El(ye)?fr.push(ye.subdivide(.5,!1)):fr.push(ye),El(Ve)?fr.push(Ve.subdivide(.5,!0)):fr.push(Ve),El(ut)?fr.push(ut.subdivide(.5,!0).reverse()):fr.push(ut),El(De)?fr.push(De.subdivide(.5,!1).reverse()):fr.push(De),fr},fc=function(ye){var De=ye.bounds,Ve=ye.styles;return De.add(Ve.borderLeftWidth,Ve.borderTopWidth,-(Ve.borderRightWidth+Ve.borderLeftWidth),-(Ve.borderTopWidth+Ve.borderBottomWidth))},lc=function(ye){var De=ye.styles,Ve=ye.bounds,ut=ca(De.paddingLeft,Ve.width),fr=ca(De.paddingRight,Ve.width),tn=ca(De.paddingTop,Ve.width),bn=ca(De.paddingBottom,Ve.width);return Ve.add(ut+De.borderLeftWidth,tn+De.borderTopWidth,-(De.borderRightWidth+De.borderLeftWidth+ut+fr),-(De.borderTopWidth+De.borderBottomWidth+tn+bn))},Sc=function(ye,De){return ye===0?De.bounds:ye===2?lc(De):fc(De)},Cc=function(ye,De){return ye===0?De.bounds:ye===2?lc(De):fc(De)},Gu=function(ye,De,Ve){var ut=Sc(wu(ye.styles.backgroundOrigin,De),ye),fr=Cc(wu(ye.styles.backgroundClip,De),ye),tn=Fu(wu(ye.styles.backgroundSize,De),Ve,ut),bn=tn[0],Mn=tn[1],ti=Yi(wu(ye.styles.backgroundPosition,De),ut.width-bn,ut.height-Mn),Vi=Ku(wu(ye.styles.backgroundRepeat,De),ti,tn,ut,fr),Pi=Math.round(ut.left+ti[0]),$i=Math.round(ut.top+ti[1]);return[Vi,Pi,$i,bn,Mn]},Hu=function(ye){return Tn(ye)&&ye.value===Oi.AUTO},Xu=function(ye){return typeof ye=="number"},Fu=function(ye,De,Ve){var ut=De[0],fr=De[1],tn=De[2],bn=ye[0],Mn=ye[1];if(!bn)return[0,0];if(Wi(bn)&&Mn&&Wi(Mn))return[ca(bn,Ve.width),ca(Mn,Ve.height)];var ti=Xu(tn);if(Tn(bn)&&(bn.value===Oi.CONTAIN||bn.value===Oi.COVER)){if(Xu(tn)){var Vi=Ve.width/Ve.height;return Vi<tn!==(bn.value===Oi.COVER)?[Ve.width,Ve.width/tn]:[Ve.height*tn,Ve.height]}return[Ve.width,Ve.height]}var Pi=Xu(ut),$i=Xu(fr),Za=Pi||$i;if(Hu(bn)&&(!Mn||Hu(Mn))){if(Pi&&$i)return[ut,fr];if(!ti&&!Za)return[Ve.width,Ve.height];if(Za&&ti){var eo=Pi?ut:fr*tn,po=$i?fr:ut/tn;return[eo,po]}var us=Pi?ut:Ve.width,Yo=$i?fr:Ve.height;return[us,Yo]}if(ti){var Po=0,$s=0;return Wi(bn)?Po=ca(bn,Ve.width):Wi(Mn)&&($s=ca(Mn,Ve.height)),Hu(bn)?Po=$s*tn:(!Mn||Hu(Mn))&&($s=Po/tn),[Po,$s]}var cl=null,zs=null;if(Wi(bn)?cl=ca(bn,Ve.width):Mn&&Wi(Mn)&&(zs=ca(Mn,Ve.height)),cl!==null&&(!Mn||Hu(Mn))&&(zs=Pi&&$i?cl/ut*fr:Ve.height),zs!==null&&Hu(bn)&&(cl=Pi&&$i?zs/fr*ut:Ve.width),cl!==null&&zs!==null)return[cl,zs];throw new Error("Unable to calculate background-size for element")},wu=function(ye,De){var Ve=ye[De];return typeof Ve=="undefined"?ye[0]:Ve},Ku=function(ye,De,Ve,ut,fr){var tn=De[0],bn=De[1],Mn=Ve[0],ti=Ve[1];switch(ye){case 2:return[new Ja(Math.round(ut.left),Math.round(ut.top+bn)),new Ja(Math.round(ut.left+ut.width),Math.round(ut.top+bn)),new Ja(Math.round(ut.left+ut.width),Math.round(ti+ut.top+bn)),new Ja(Math.round(ut.left),Math.round(ti+ut.top+bn))];case 3:return[new Ja(Math.round(ut.left+tn),Math.round(ut.top)),new Ja(Math.round(ut.left+tn+Mn),Math.round(ut.top)),new Ja(Math.round(ut.left+tn+Mn),Math.round(ut.height+ut.top)),new Ja(Math.round(ut.left+tn),Math.round(ut.height+ut.top))];case 1:return[new Ja(Math.round(ut.left+tn),Math.round(ut.top+bn)),new Ja(Math.round(ut.left+tn+Mn),Math.round(ut.top+bn)),new Ja(Math.round(ut.left+tn+Mn),Math.round(ut.top+bn+ti)),new Ja(Math.round(ut.left+tn),Math.round(ut.top+bn+ti))];default:return[new Ja(Math.round(fr.left),Math.round(fr.top)),new Ja(Math.round(fr.left+fr.width),Math.round(fr.top)),new Ja(Math.round(fr.left+fr.width),Math.round(fr.height+fr.top)),new Ja(Math.round(fr.left),Math.round(fr.height+fr.top))]}},uc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",cc="Hidden Text",xc=function(){function Sr(ye){this._data={},this._document=ye}return Sr.prototype.parseMetrics=function(ye,De){var Ve=this._document.createElement("div"),ut=this._document.createElement("img"),fr=this._document.createElement("span"),tn=this._document.body;Ve.style.visibility="hidden",Ve.style.fontFamily=ye,Ve.style.fontSize=De,Ve.style.margin="0",Ve.style.padding="0",Ve.style.whiteSpace="nowrap",tn.appendChild(Ve),ut.src=uc,ut.width=1,ut.height=1,ut.style.margin="0",ut.style.padding="0",ut.style.verticalAlign="baseline",fr.style.fontFamily=ye,fr.style.fontSize=De,fr.style.margin="0",fr.style.padding="0",fr.appendChild(this._document.createTextNode(cc)),Ve.appendChild(fr),Ve.appendChild(ut);var bn=ut.offsetTop-fr.offsetTop+2;Ve.removeChild(fr),Ve.appendChild(this._document.createTextNode(cc)),Ve.style.lineHeight="normal",ut.style.verticalAlign="super";var Mn=ut.offsetTop-Ve.offsetTop+2;return tn.removeChild(Ve),{baseline:bn,middle:Mn}},Sr.prototype.getMetrics=function(ye,De){var Ve=ye+" "+De;return typeof this._data[Ve]=="undefined"&&(this._data[Ve]=this.parseMetrics(ye,De)),this._data[Ve]},Sr}(),Ec=function(){function Sr(ye,De){this.context=ye,this.options=De}return Sr}(),pc=1e4,mc=function(Sr){p(ye,Sr);function ye(De,Ve){var ut=Sr.call(this,De,Ve)||this;return ut._activeEffects=[],ut.canvas=Ve.canvas?Ve.canvas:document.createElement("canvas"),ut.ctx=ut.canvas.getContext("2d"),Ve.canvas||(ut.canvas.width=Math.floor(Ve.width*Ve.scale),ut.canvas.height=Math.floor(Ve.height*Ve.scale),ut.canvas.style.width=Ve.width+"px",ut.canvas.style.height=Ve.height+"px"),ut.fontMetrics=new xc(document),ut.ctx.scale(ut.options.scale,ut.options.scale),ut.ctx.translate(-Ve.x,-Ve.y),ut.ctx.textBaseline="bottom",ut._activeEffects=[],ut.context.logger.debug("Canvas renderer initialized ("+Ve.width+"x"+Ve.height+") with scale "+Ve.scale),ut}return ye.prototype.applyEffects=function(De){for(var Ve=this;this._activeEffects.length;)this.popEffect();De.forEach(function(ut){return Ve.applyEffect(ut)})},ye.prototype.applyEffect=function(De){this.ctx.save(),Vu(De)&&(this.ctx.globalAlpha=De.opacity),Yl(De)&&(this.ctx.translate(De.offsetX,De.offsetY),this.ctx.transform(De.matrix[0],De.matrix[1],De.matrix[2],De.matrix[3],De.matrix[4],De.matrix[5]),this.ctx.translate(-De.offsetX,-De.offsetY)),Tu(De)&&(this.path(De.path),this.ctx.clip()),this._activeEffects.push(De)},ye.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},ye.prototype.renderStack=function(De){return A(this,void 0,void 0,function(){var Ve;return m(this,function(ut){switch(ut.label){case 0:return Ve=De.element.container.styles,Ve.isVisible()?[4,this.renderStackContent(De)]:[3,2];case 1:ut.sent(),ut.label=2;case 2:return[2]}})})},ye.prototype.renderNode=function(De){return A(this,void 0,void 0,function(){return m(this,function(Ve){switch(Ve.label){case 0:if(sa(De.container.flags,16))debugger;return De.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(De)]:[3,3];case 1:return Ve.sent(),[4,this.renderNodeContent(De)];case 2:Ve.sent(),Ve.label=3;case 3:return[2]}})})},ye.prototype.renderTextWithLetterSpacing=function(De,Ve,ut){var fr=this;if(Ve===0)this.ctx.fillText(De.text,De.bounds.left,De.bounds.top+ut);else{var tn=fu(De.text);tn.reduce(function(bn,Mn){return fr.ctx.fillText(Mn,bn,De.bounds.top+ut),bn+fr.ctx.measureText(Mn).width},De.bounds.left)}},ye.prototype.createFontStyle=function(De){var Ve=De.fontVariant.filter(function(tn){return tn==="normal"||tn==="small-caps"}).join(""),ut=Nc(De.fontFamily).join(", "),fr=$r(De.fontSize)?""+De.fontSize.number+De.fontSize.unit:De.fontSize.number+"px";return[[De.fontStyle,Ve,De.fontWeight,fr,ut].join(" "),ut,fr]},ye.prototype.renderTextNode=function(De,Ve){return A(this,void 0,void 0,function(){var ut,fr,tn,bn,Mn,ti,Vi,Pi,$i=this;return m(this,function(Za){return ut=this.createFontStyle(Ve),fr=ut[0],tn=ut[1],bn=ut[2],this.ctx.font=fr,this.ctx.direction=Ve.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",Mn=this.fontMetrics.getMetrics(tn,bn),ti=Mn.baseline,Vi=Mn.middle,Pi=Ve.paintOrder,De.textBounds.forEach(function(eo){Pi.forEach(function(po){switch(po){case 0:$i.ctx.fillStyle=Va(Ve.color),$i.renderTextWithLetterSpacing(eo,Ve.letterSpacing,ti);var us=Ve.textShadow;us.length&&eo.text.trim().length&&(us.slice(0).reverse().forEach(function(Yo){$i.ctx.shadowColor=Va(Yo.color),$i.ctx.shadowOffsetX=Yo.offsetX.number*$i.options.scale,$i.ctx.shadowOffsetY=Yo.offsetY.number*$i.options.scale,$i.ctx.shadowBlur=Yo.blur.number,$i.renderTextWithLetterSpacing(eo,Ve.letterSpacing,ti)}),$i.ctx.shadowColor="",$i.ctx.shadowOffsetX=0,$i.ctx.shadowOffsetY=0,$i.ctx.shadowBlur=0),Ve.textDecorationLine.length&&($i.ctx.fillStyle=Va(Ve.textDecorationColor||Ve.color),Ve.textDecorationLine.forEach(function(Yo){switch(Yo){case 1:$i.ctx.fillRect(eo.bounds.left,Math.round(eo.bounds.top+ti),eo.bounds.width,1);break;case 2:$i.ctx.fillRect(eo.bounds.left,Math.round(eo.bounds.top),eo.bounds.width,1);break;case 3:$i.ctx.fillRect(eo.bounds.left,Math.ceil(eo.bounds.top+Vi),eo.bounds.width,1);break}}));break;case 1:Ve.webkitTextStrokeWidth&&eo.text.trim().length&&($i.ctx.strokeStyle=Va(Ve.webkitTextStrokeColor),$i.ctx.lineWidth=Ve.webkitTextStrokeWidth,$i.ctx.lineJoin=window.chrome?"miter":"round",$i.ctx.strokeText(eo.text,eo.bounds.left,eo.bounds.top+ti)),$i.ctx.strokeStyle="",$i.ctx.lineWidth=0,$i.ctx.lineJoin="miter";break}})}),[2]})})},ye.prototype.renderReplacedElement=function(De,Ve,ut){if(ut&&De.intrinsicWidth>0&&De.intrinsicHeight>0){var fr=lc(De),tn=Uu(Ve);this.path(tn),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(ut,0,0,De.intrinsicWidth,De.intrinsicHeight,fr.left,fr.top,fr.width,fr.height),this.ctx.restore()}},ye.prototype.renderNodeContent=function(De){return A(this,void 0,void 0,function(){var Ve,ut,fr,tn,bn,Mn,ti,ti,Vi,Pi,$i,Za,eo,po,us,Yo,Po,$s,cl,ti,zs,eo,Yo;return m(this,function(Ro){switch(Ro.label){case 0:this.applyEffects(De.getEffects(4)),Ve=De.container,ut=De.curves,fr=Ve.styles,tn=0,bn=Ve.textNodes,Ro.label=1;case 1:return tn<bn.length?(Mn=bn[tn],[4,this.renderTextNode(Mn,fr)]):[3,4];case 2:Ro.sent(),Ro.label=3;case 3:return tn++,[3,1];case 4:if(!(Ve instanceof Ae))return[3,8];Ro.label=5;case 5:return Ro.trys.push([5,7,,8]),[4,this.context.cache.match(Ve.src)];case 6:return ti=Ro.sent(),this.renderReplacedElement(Ve,ut,ti),[3,8];case 7:return Ro.sent(),this.context.logger.error("Error loading image "+Ve.src),[3,8];case 8:if(Ve instanceof Te&&this.renderReplacedElement(Ve,ut,Ve.canvas),!(Ve instanceof Ge))return[3,12];Ro.label=9;case 9:return Ro.trys.push([9,11,,12]),[4,this.context.cache.match(Ve.svg)];case 10:return ti=Ro.sent(),this.renderReplacedElement(Ve,ut,ti),[3,12];case 11:return Ro.sent(),this.context.logger.error("Error loading svg "+Ve.svg.substring(0,255)),[3,12];case 12:return Ve instanceof ta&&Ve.tree?(Vi=new ye(this.context,{scale:this.options.scale,backgroundColor:Ve.backgroundColor,x:0,y:0,width:Ve.width,height:Ve.height}),[4,Vi.render(Ve.tree)]):[3,14];case 13:Pi=Ro.sent(),Ve.width&&Ve.height&&this.ctx.drawImage(Pi,0,0,Ve.width,Ve.height,Ve.bounds.left,Ve.bounds.top,Ve.bounds.width,Ve.bounds.height),Ro.label=14;case 14:if(Ve instanceof bi&&($i=Math.min(Ve.bounds.width,Ve.bounds.height),Ve.type===Kr?Ve.checked&&(this.ctx.save(),this.path([new Ja(Ve.bounds.left+$i*.39363,Ve.bounds.top+$i*.79),new Ja(Ve.bounds.left+$i*.16,Ve.bounds.top+$i*.5549),new Ja(Ve.bounds.left+$i*.27347,Ve.bounds.top+$i*.44071),new Ja(Ve.bounds.left+$i*.39694,Ve.bounds.top+$i*.5649),new Ja(Ve.bounds.left+$i*.72983,Ve.bounds.top+$i*.23),new Ja(Ve.bounds.left+$i*.84,Ve.bounds.top+$i*.34085),new Ja(Ve.bounds.left+$i*.39363,Ve.bounds.top+$i*.79)]),this.ctx.fillStyle=Va(Gn),this.ctx.fill(),this.ctx.restore()):Ve.type===In&&(Ve.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(Ve.bounds.left+$i/2,Ve.bounds.top+$i/2,$i/4,0,Math.PI*2,!0),this.ctx.fillStyle=Va(Gn),this.ctx.fill(),this.ctx.restore()))),_c(Ve)&&Ve.value.length){Za=this.createFontStyle(fr),eo=Za[0],po=Za[1],us=this.fontMetrics.getMetrics(eo,po).baseline,this.ctx.font=eo,this.ctx.fillStyle=Va(fr.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Ic(Ve.styles.textAlign),Yo=lc(Ve),Po=0;switch(Ve.styles.textAlign){case 1:Po+=Yo.width/2;break;case 2:Po+=Yo.width;break}$s=Yo.add(Po,0,0,-Yo.height/2+1),this.ctx.save(),this.path([new Ja(Yo.left,Yo.top),new Ja(Yo.left+Yo.width,Yo.top),new Ja(Yo.left+Yo.width,Yo.top+Yo.height),new Ja(Yo.left,Yo.top+Yo.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Dl(Ve.value,$s),fr.letterSpacing,us),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!sa(Ve.styles.display,2048))return[3,20];if(!(Ve.styles.listStyleImage!==null))return[3,19];if(cl=Ve.styles.listStyleImage,!(cl.type===0))return[3,18];ti=void 0,zs=cl.url,Ro.label=15;case 15:return Ro.trys.push([15,17,,18]),[4,this.context.cache.match(zs)];case 16:return ti=Ro.sent(),this.ctx.drawImage(ti,Ve.bounds.left-(ti.width+10),Ve.bounds.top),[3,18];case 17:return Ro.sent(),this.context.logger.error("Error loading list-style-image "+zs),[3,18];case 18:return[3,20];case 19:De.listValue&&Ve.styles.listStyleType!==-1&&(eo=this.createFontStyle(fr)[0],this.ctx.font=eo,this.ctx.fillStyle=Va(fr.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Yo=new h(Ve.bounds.left,Ve.bounds.top+ca(Ve.styles.paddingTop,Ve.bounds.width),Ve.bounds.width,zo(fr.lineHeight,fr.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Dl(De.listValue,Yo),fr.letterSpacing,zo(fr.lineHeight,fr.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Ro.label=20;case 20:return[2]}})})},ye.prototype.renderStackContent=function(De){return A(this,void 0,void 0,function(){var Ve,ut,fr,tn,bn,fr,Mn,ti,fr,Vi,Pi,fr,$i,Za,fr,eo,po,fr,us,Yo,fr;return m(this,function(Po){switch(Po.label){case 0:if(sa(De.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(De.element)];case 1:Po.sent(),Ve=0,ut=De.negativeZIndex,Po.label=2;case 2:return Ve<ut.length?(fr=ut[Ve],[4,this.renderStack(fr)]):[3,5];case 3:Po.sent(),Po.label=4;case 4:return Ve++,[3,2];case 5:return[4,this.renderNodeContent(De.element)];case 6:Po.sent(),tn=0,bn=De.nonInlineLevel,Po.label=7;case 7:return tn<bn.length?(fr=bn[tn],[4,this.renderNode(fr)]):[3,10];case 8:Po.sent(),Po.label=9;case 9:return tn++,[3,7];case 10:Mn=0,ti=De.nonPositionedFloats,Po.label=11;case 11:return Mn<ti.length?(fr=ti[Mn],[4,this.renderStack(fr)]):[3,14];case 12:Po.sent(),Po.label=13;case 13:return Mn++,[3,11];case 14:Vi=0,Pi=De.nonPositionedInlineLevel,Po.label=15;case 15:return Vi<Pi.length?(fr=Pi[Vi],[4,this.renderStack(fr)]):[3,18];case 16:Po.sent(),Po.label=17;case 17:return Vi++,[3,15];case 18:$i=0,Za=De.inlineLevel,Po.label=19;case 19:return $i<Za.length?(fr=Za[$i],[4,this.renderNode(fr)]):[3,22];case 20:Po.sent(),Po.label=21;case 21:return $i++,[3,19];case 22:eo=0,po=De.zeroOrAutoZIndexOrTransformedOrOpacity,Po.label=23;case 23:return eo<po.length?(fr=po[eo],[4,this.renderStack(fr)]):[3,26];case 24:Po.sent(),Po.label=25;case 25:return eo++,[3,23];case 26:us=0,Yo=De.positiveZIndex,Po.label=27;case 27:return us<Yo.length?(fr=Yo[us],[4,this.renderStack(fr)]):[3,30];case 28:Po.sent(),Po.label=29;case 29:return us++,[3,27];case 30:return[2]}})})},ye.prototype.mask=function(De){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(De.slice(0).reverse()),this.ctx.closePath()},ye.prototype.path=function(De){this.ctx.beginPath(),this.formatPath(De),this.ctx.closePath()},ye.prototype.formatPath=function(De){var Ve=this;De.forEach(function(ut,fr){var tn=El(ut)?ut.start:ut;fr===0?Ve.ctx.moveTo(tn.x,tn.y):Ve.ctx.lineTo(tn.x,tn.y),El(ut)&&Ve.ctx.bezierCurveTo(ut.startControl.x,ut.startControl.y,ut.endControl.x,ut.endControl.y,ut.end.x,ut.end.y)})},ye.prototype.renderRepeat=function(De,Ve,ut,fr){this.path(De),this.ctx.fillStyle=Ve,this.ctx.translate(ut,fr),this.ctx.fill(),this.ctx.translate(-ut,-fr)},ye.prototype.resizeImage=function(De,Ve,ut){var fr;if(De.width===Ve&&De.height===ut)return De;var tn=(fr=this.canvas.ownerDocument)!==null&&fr!==void 0?fr:document,bn=tn.createElement("canvas");bn.width=Math.max(1,Ve),bn.height=Math.max(1,ut);var Mn=bn.getContext("2d");return Mn.drawImage(De,0,0,De.width,De.height,0,0,Ve,ut),bn},ye.prototype.renderBackgroundImage=function(De){return A(this,void 0,void 0,function(){var Ve,ut,fr,tn,bn,Mn;return m(this,function(ti){switch(ti.label){case 0:Ve=De.styles.backgroundImage.length-1,ut=function(Pi){var $i,Za,eo,po,us,Yo,Po,$s,cl,zs,po,us,Yo,Po,$s,Ro,Al,bl,Vs,_u,Mu,Ou,eu,rc,cl,Wu,po,Zu,$u,Po,$s,qu,us,Yo,nc,zu,ec,ic,ac,Yu,oc,Qu;return m(this,function(dc){switch(dc.label){case 0:if(!(Pi.type===0))return[3,5];$i=void 0,Za=Pi.url,dc.label=1;case 1:return dc.trys.push([1,3,,4]),[4,fr.context.cache.match(Za)];case 2:return $i=dc.sent(),[3,4];case 3:return dc.sent(),fr.context.logger.error("Error loading background-image "+Za),[3,4];case 4:return $i&&(eo=Gu(De,Ve,[$i.width,$i.height,$i.width/$i.height]),po=eo[0],us=eo[1],Yo=eo[2],Po=eo[3],$s=eo[4],cl=fr.ctx.createPattern(fr.resizeImage($i,Po,$s),"repeat"),fr.renderRepeat(po,cl,us,Yo)),[3,6];case 5:zr(Pi)?(zs=Gu(De,Ve,[null,null,null]),po=zs[0],us=zs[1],Yo=zs[2],Po=zs[3],$s=zs[4],Ro=ts(Pi.angle,Po,$s),Al=Ro[0],bl=Ro[1],Vs=Ro[2],_u=Ro[3],Mu=Ro[4],Ou=document.createElement("canvas"),Ou.width=Po,Ou.height=$s,eu=Ou.getContext("2d"),rc=eu.createLinearGradient(bl,_u,Vs,Mu),Uo(Pi.stops,Al).forEach(function(gc){return rc.addColorStop(gc.stop,Va(gc.color))}),eu.fillStyle=rc,eu.fillRect(0,0,Po,$s),Po>0&&$s>0&&(cl=fr.ctx.createPattern(Ou,"repeat"),fr.renderRepeat(po,cl,us,Yo))):qn(Pi)&&(Wu=Gu(De,Ve,[null,null,null]),po=Wu[0],Zu=Wu[1],$u=Wu[2],Po=Wu[3],$s=Wu[4],qu=Pi.position.length===0?[Ki]:Pi.position,us=ca(qu[0],Po),Yo=ca(qu[qu.length-1],$s),nc=Io(Pi,us,Yo,Po,$s),zu=nc[0],ec=nc[1],zu>0&&ec>0&&(ic=fr.ctx.createRadialGradient(Zu+us,$u+Yo,0,Zu+us,$u+Yo,zu),Uo(Pi.stops,zu*2).forEach(function(gc){return ic.addColorStop(gc.stop,Va(gc.color))}),fr.path(po),fr.ctx.fillStyle=ic,zu!==ec?(ac=De.bounds.left+.5*De.bounds.width,Yu=De.bounds.top+.5*De.bounds.height,oc=ec/zu,Qu=1/oc,fr.ctx.save(),fr.ctx.translate(ac,Yu),fr.ctx.transform(1,0,0,oc,0,0),fr.ctx.translate(-ac,-Yu),fr.ctx.fillRect(Zu,Qu*($u-Yu)+Yu,Po,$s*Qu),fr.ctx.restore()):fr.ctx.fill())),dc.label=6;case 6:return Ve--,[2]}})},fr=this,tn=0,bn=De.styles.backgroundImage.slice(0).reverse(),ti.label=1;case 1:return tn<bn.length?(Mn=bn[tn],[5,ut(Mn)]):[3,4];case 2:ti.sent(),ti.label=3;case 3:return tn++,[3,1];case 4:return[2]}})})},ye.prototype.renderSolidBorder=function(De,Ve,ut){return A(this,void 0,void 0,function(){return m(this,function(fr){return this.path(hc(ut,Ve)),this.ctx.fillStyle=Va(De),this.ctx.fill(),[2]})})},ye.prototype.renderDoubleBorder=function(De,Ve,ut,fr){return A(this,void 0,void 0,function(){var tn,bn;return m(this,function(Mn){switch(Mn.label){case 0:return Ve<3?[4,this.renderSolidBorder(De,ut,fr)]:[3,2];case 1:return Mn.sent(),[2];case 2:return tn=bc(fr,ut),this.path(tn),this.ctx.fillStyle=Va(De),this.ctx.fill(),bn=Tc(fr,ut),this.path(bn),this.ctx.fill(),[2]}})})},ye.prototype.renderNodeBackgroundAndBorders=function(De){return A(this,void 0,void 0,function(){var Ve,ut,fr,tn,bn,Mn,ti,Vi,Pi=this;return m(this,function($i){switch($i.label){case 0:return this.applyEffects(De.getEffects(2)),Ve=De.container.styles,ut=!_a(Ve.backgroundColor)||Ve.backgroundImage.length,fr=[{style:Ve.borderTopStyle,color:Ve.borderTopColor,width:Ve.borderTopWidth},{style:Ve.borderRightStyle,color:Ve.borderRightColor,width:Ve.borderRightWidth},{style:Ve.borderBottomStyle,color:Ve.borderBottomColor,width:Ve.borderBottomWidth},{style:Ve.borderLeftStyle,color:Ve.borderLeftColor,width:Ve.borderLeftWidth}],tn=Oc(wu(Ve.backgroundClip,0),De.curves),ut||Ve.boxShadow.length?(this.ctx.save(),this.path(tn),this.ctx.clip(),_a(Ve.backgroundColor)||(this.ctx.fillStyle=Va(Ve.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(De.container)]):[3,2];case 1:$i.sent(),this.ctx.restore(),Ve.boxShadow.slice(0).reverse().forEach(function(Za){Pi.ctx.save();var eo=lu(De.curves),po=Za.inset?0:pc,us=vc(eo,-po+(Za.inset?1:-1)*Za.spread.number,(Za.inset?1:-1)*Za.spread.number,Za.spread.number*(Za.inset?-2:2),Za.spread.number*(Za.inset?-2:2));Za.inset?(Pi.path(eo),Pi.ctx.clip(),Pi.mask(us)):(Pi.mask(eo),Pi.ctx.clip(),Pi.path(us)),Pi.ctx.shadowOffsetX=Za.offsetX.number+po,Pi.ctx.shadowOffsetY=Za.offsetY.number,Pi.ctx.shadowColor=Va(Za.color),Pi.ctx.shadowBlur=Za.blur.number,Pi.ctx.fillStyle=Za.inset?Va(Za.color):"rgba(0,0,0,1)",Pi.ctx.fill(),Pi.ctx.restore()}),$i.label=2;case 2:bn=0,Mn=0,ti=fr,$i.label=3;case 3:return Mn<ti.length?(Vi=ti[Mn],Vi.style!==0&&!_a(Vi.color)&&Vi.width>0?Vi.style===2?[4,this.renderDashedDottedBorder(Vi.color,Vi.width,bn,De.curves,2)]:[3,5]:[3,11]):[3,13];case 4:return $i.sent(),[3,11];case 5:return Vi.style===3?[4,this.renderDashedDottedBorder(Vi.color,Vi.width,bn,De.curves,3)]:[3,7];case 6:return $i.sent(),[3,11];case 7:return Vi.style===4?[4,this.renderDoubleBorder(Vi.color,Vi.width,bn,De.curves)]:[3,9];case 8:return $i.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Vi.color,bn,De.curves)];case 10:$i.sent(),$i.label=11;case 11:bn++,$i.label=12;case 12:return Mn++,[3,3];case 13:return[2]}})})},ye.prototype.renderDashedDottedBorder=function(De,Ve,ut,fr,tn){return A(this,void 0,void 0,function(){var bn,Mn,ti,Vi,Pi,$i,Za,eo,po,us,Yo,Po,$s,cl,zs,Ro,zs,Ro;return m(this,function(Al){return this.ctx.save(),bn=wc(fr,ut),Mn=hc(fr,ut),tn===2&&(this.path(Mn),this.ctx.clip()),El(Mn[0])?(ti=Mn[0].start.x,Vi=Mn[0].start.y):(ti=Mn[0].x,Vi=Mn[0].y),El(Mn[1])?(Pi=Mn[1].end.x,$i=Mn[1].end.y):(Pi=Mn[1].x,$i=Mn[1].y),ut===0||ut===2?Za=Math.abs(ti-Pi):Za=Math.abs(Vi-$i),this.ctx.beginPath(),tn===3?this.formatPath(bn):this.formatPath(Mn.slice(0,2)),eo=Ve<3?Ve*3:Ve*2,po=Ve<3?Ve*2:Ve,tn===3&&(eo=Ve,po=Ve),us=!0,Za<=eo*2?us=!1:Za<=eo*2+po?(Yo=Za/(2*eo+po),eo*=Yo,po*=Yo):(Po=Math.floor((Za+po)/(eo+po)),$s=(Za-Po*eo)/(Po-1),cl=(Za-(Po+1)*eo)/Po,po=cl<=0||Math.abs(po-$s)<Math.abs(po-cl)?$s:cl),us&&(tn===3?this.ctx.setLineDash([0,eo+po]):this.ctx.setLineDash([eo,po])),tn===3?(this.ctx.lineCap="round",this.ctx.lineWidth=Ve):this.ctx.lineWidth=Ve*2+1.1,this.ctx.strokeStyle=Va(De),this.ctx.stroke(),this.ctx.setLineDash([]),tn===2&&(El(Mn[0])&&(zs=Mn[3],Ro=Mn[0],this.ctx.beginPath(),this.formatPath([new Ja(zs.end.x,zs.end.y),new Ja(Ro.start.x,Ro.start.y)]),this.ctx.stroke()),El(Mn[1])&&(zs=Mn[1],Ro=Mn[2],this.ctx.beginPath(),this.formatPath([new Ja(zs.end.x,zs.end.y),new Ja(Ro.start.x,Ro.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},ye.prototype.render=function(De){return A(this,void 0,void 0,function(){var Ve;return m(this,function(ut){switch(ut.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Va(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),Ve=ju(De),[4,this.renderStack(Ve)];case 1:return ut.sent(),this.applyEffects([]),[2,this.canvas]}})})},ye}(Ec),_c=function(ye){return ye instanceof Xi||ye instanceof ua?!0:ye instanceof bi&&ye.type!==In&&ye.type!==Kr},Oc=function(ye,De){switch(ye){case 0:return lu(De);case 2:return Kl(De);case 1:default:return Uu(De)}},Ic=function(ye){switch(ye){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Lc=["-apple-system","system-ui"],Nc=function(ye){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?ye.filter(function(De){return Lc.indexOf(De)===-1}):ye},Dc=function(Sr){p(ye,Sr);function ye(De,Ve){var ut=Sr.call(this,De,Ve)||this;return ut.canvas=Ve.canvas?Ve.canvas:document.createElement("canvas"),ut.ctx=ut.canvas.getContext("2d"),ut.options=Ve,ut.canvas.width=Math.floor(Ve.width*Ve.scale),ut.canvas.height=Math.floor(Ve.height*Ve.scale),ut.canvas.style.width=Ve.width+"px",ut.canvas.style.height=Ve.height+"px",ut.ctx.scale(ut.options.scale,ut.options.scale),ut.ctx.translate(-Ve.x,-Ve.y),ut.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+Ve.width+"x"+Ve.height+" at "+Ve.x+","+Ve.y+") with scale "+Ve.scale),ut}return ye.prototype.render=function(De){return A(this,void 0,void 0,function(){var Ve,ut;return m(this,function(fr){switch(fr.label){case 0:return Ve=xu(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,De),[4,Rc(Ve)];case 1:return ut=fr.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Va(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(ut,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},ye}(Ec),Rc=function(ye){return new Promise(function(De,Ve){var ut=new Image;ut.onload=function(){De(ut)},ut.onerror=Ve,ut.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(ye))})},kc=function(){function Sr(ye){var De=ye.id,Ve=ye.enabled;this.id=De,this.enabled=Ve,this.start=Date.now()}return Sr.prototype.debug=function(){for(var ye=[],De=0;De<arguments.length;De++)ye[De]=arguments[De];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,f([this.id,this.getTime()+"ms"],ye)):this.info.apply(this,ye))},Sr.prototype.getTime=function(){return Date.now()-this.start},Sr.prototype.info=function(){for(var ye=[],De=0;De<arguments.length;De++)ye[De]=arguments[De];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,f([this.id,this.getTime()+"ms"],ye)))},Sr.prototype.warn=function(){for(var ye=[],De=0;De<arguments.length;De++)ye[De]=arguments[De];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,f([this.id,this.getTime()+"ms"],ye)):this.info.apply(this,ye))},Sr.prototype.error=function(){for(var ye=[],De=0;De<arguments.length;De++)ye[De]=arguments[De];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,f([this.id,this.getTime()+"ms"],ye)):this.info.apply(this,ye))},Sr.instances={},Sr}(),Mc=function(){function Sr(ye,De){var Ve;this.windowBounds=De,this.instanceName="#"+Sr.instanceCount++,this.logger=new kc({id:this.instanceName,enabled:ye.logging}),this.cache=(Ve=ye.cache)!==null&&Ve!==void 0?Ve:new Ss(this,ye)}return Sr.instanceCount=1,Sr}(),Pc=function(ye,De){return De===void 0&&(De={}),Fc(ye,De)};typeof window!="undefined"&&Mo.setContext(window);var Fc=function(ye,De){return A(void 0,void 0,void 0,function(){var Ve,ut,fr,tn,bn,Mn,ti,Vi,Pi,$i,Za,eo,po,us,Yo,Po,$s,cl,zs,Ro,Al,bl,Al,Vs,_u,Mu,Ou,eu,rc,Wu,Zu,$u,qu,nc,zu,ec,ic,ac,Yu,oc;return m(this,function(Qu){switch(Qu.label){case 0:if(!ye||typeof ye!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(Ve=ye.ownerDocument,!Ve)throw new Error("Element is not attached to a Document");if(ut=Ve.defaultView,!ut)throw new Error("Document is not attached to a Window");return fr={allowTaint:(Vs=De.allowTaint)!==null&&Vs!==void 0?Vs:!1,imageTimeout:(_u=De.imageTimeout)!==null&&_u!==void 0?_u:15e3,proxy:De.proxy,useCORS:(Mu=De.useCORS)!==null&&Mu!==void 0?Mu:!1},tn=x({logging:(Ou=De.logging)!==null&&Ou!==void 0?Ou:!0,cache:De.cache},fr),bn={windowWidth:(eu=De.windowWidth)!==null&&eu!==void 0?eu:ut.innerWidth,windowHeight:(rc=De.windowHeight)!==null&&rc!==void 0?rc:ut.innerHeight,scrollX:(Wu=De.scrollX)!==null&&Wu!==void 0?Wu:ut.pageXOffset,scrollY:(Zu=De.scrollY)!==null&&Zu!==void 0?Zu:ut.pageYOffset},Mn=new h(bn.scrollX,bn.scrollY,bn.windowWidth,bn.windowHeight),ti=new Mc(tn,Mn),Vi=($u=De.foreignObjectRendering)!==null&&$u!==void 0?$u:!1,Pi={allowTaint:(qu=De.allowTaint)!==null&&qu!==void 0?qu:!1,onclone:De.onclone,ignoreElements:De.ignoreElements,inlineImages:Vi,copyStyles:Vi},ti.logger.debug("Starting document clone with size "+Mn.width+"x"+Mn.height+" scrolled to "+-Mn.left+","+-Mn.top),$i=new ge(ti,ye,Pi),Za=$i.clonedReferenceElement,Za?[4,$i.toIFrame(Ve,Mn)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return eo=Qu.sent(),po=Pr(Za)||wt(Za)?a(Za.ownerDocument):u(ti,Za),us=po.width,Yo=po.height,Po=po.left,$s=po.top,cl=Bc(ti,Za,De.backgroundColor),zs={canvas:De.canvas,backgroundColor:cl,scale:(zu=(nc=De.scale)!==null&&nc!==void 0?nc:ut.devicePixelRatio)!==null&&zu!==void 0?zu:1,x:((ec=De.x)!==null&&ec!==void 0?ec:0)+Po,y:((ic=De.y)!==null&&ic!==void 0?ic:0)+$s,width:(ac=De.width)!==null&&ac!==void 0?ac:Math.ceil(us),height:(Yu=De.height)!==null&&Yu!==void 0?Yu:Math.ceil(Yo)},Vi?(ti.logger.debug("Document cloned, using foreign object rendering"),Al=new Dc(ti,zs),[4,Al.render(Za)]):[3,3];case 2:return Ro=Qu.sent(),[3,5];case 3:return ti.logger.debug("Document cloned, element located at "+Po+","+$s+" with size "+us+"x"+Yo+" using computed rendering"),ti.logger.debug("Starting DOM parsing"),bl=Sa(ti,Za),cl===bl.styles.backgroundColor&&(bl.styles.backgroundColor=So.TRANSPARENT),ti.logger.debug("Starting renderer for element at "+zs.x+","+zs.y+" with size "+zs.width+"x"+zs.height),Al=new mc(ti,zs),[4,Al.render(bl)];case 4:Ro=Qu.sent(),Qu.label=5;case 5:return((oc=De.removeContainer)!==null&&oc!==void 0?oc:!0)&&(ge.destroy(eo)||ti.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),ti.logger.debug("Finished rendering"),[2,Ro]}})})},Bc=function(ye,De,Ve){var ut=De.ownerDocument,fr=ut.documentElement?ao(ye,getComputedStyle(ut.documentElement).backgroundColor):So.TRANSPARENT,tn=ut.body?ao(ye,getComputedStyle(ut.body).backgroundColor):So.TRANSPARENT,bn=typeof Ve=="string"?ao(ye,Ve):Ve===null?So.TRANSPARENT:4294967295;return De===ut.documentElement?_a(fr)?_a(tn)?bn:tn:fr:bn};return Pc})},wPhX:function(k,D,n){"use strict";n.d(D,"b",function(){return i}),n.d(D,"a",function(){return t}),n.d(D,"k",function(){return o}),n.d(D,"h",function(){return e}),n.d(D,"i",function(){return l}),n.d(D,"g",function(){return r}),n.d(D,"c",function(){return s}),n.d(D,"d",function(){return c}),n.d(D,"j",function(){return v}),n.d(D,"e",function(){return b}),n.d(D,"f",function(){return S});var y=n("KQm4"),p=n("U8pU"),x=n("Ff2n"),A=n("q1tI"),m=n.n(A),f=n("Kwbf"),h=n("lr6o"),u=.25,a=2;function i(E,C){var _=E.slice(),T=_.indexOf(C);return T>=0&&_.splice(T,1),_}function t(E,C){var _=E.slice();return _.indexOf(C)===-1&&_.push(C),_}function o(E){return E.split("-")}function e(E,C){return"".concat(E,"-").concat(C)}function l(E){return E&&E.type&&E.type.isTreeNode}function r(E,C){var _=[E],T=C[E];function w(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];O.forEach(function(I){var R=I.key,M=I.children;_.push(R),w(M)})}return w(T.children),_}function s(E,C){var _=E.clientY,T=C.selectHandle.getBoundingClientRect(),w=T.top,O=T.bottom,I=T.height,R=Math.max(I*u,a);return _<=w+R?-1:_>=O-R?1:0}function c(E,C){if(!E)return;var _=C.multiple;return _?E.slice():E.length?[E[0]]:E}var d=function(C){return C};function g(E,C){if(!E)return[];var _=C||{},T=_.processProps,w=T===void 0?d:T,O=Array.isArray(E)?E:[E];return O.map(function(I){var R=I.children,M=Object(x.a)(I,["children"]),F=g(R,C);return m.a.createElement(h.a,Object.assign({},w(M)),F)})}function v(E){if(!E)return null;var C;if(Array.isArray(E))C={checkedKeys:E,halfCheckedKeys:void 0};else if(Object(p.a)(E)==="object")C={checkedKeys:E.checked||void 0,halfCheckedKeys:E.halfChecked||void 0};else return Object(f.a)(!1,"`checkedKeys` is not an array or an object"),null;return C}function b(E,C){var _=new Set;function T(w){if(_.has(w))return;var O=C[w];if(!O)return;_.add(w);var I=O.parent,R=O.node;if(R.disabled)return;I&&T(I.key)}return(E||[]).forEach(function(w){T(w)}),Object(y.a)(_)}function S(E){var C={};return Object.keys(E).forEach(function(_){(_.startsWith("data-")||_.startsWith("aria-"))&&(C[_]=E[_])}),C}},wYyv:function(k,D,n){"use strict";var y=n("R5yR"),p=n("5wUe"),x=function(f,h,u){var a=h<0?f.length+h:h;if(a>=0&&a<f.length){var i=u<0?f.length+u:u,t=f.splice(h,1),o=p(t,1),e=o[0];f.splice(i,0,e)}},A=function(f,h,u){return f=y(f),x(f,h,u),f};k.exports=A,k.exports.mutate=x},wZgz:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"))})(this,function(y){return function(){var p=y,x=p.lib,A=x.BlockCipher,m=p.algo,f=[],h=[],u=[],a=[],i=[],t=[],o=[],e=[],l=[],r=[];(function(){for(var d=[],g=0;g<256;g++)g<128?d[g]=g<<1:d[g]=g<<1^283;for(var v=0,b=0,g=0;g<256;g++){var S=b^b<<1^b<<2^b<<3^b<<4;S=S>>>8^S&255^99,f[v]=S,h[S]=v;var E=d[v],C=d[E],_=d[C],T=d[S]*257^S*16843008;u[v]=T<<24|T>>>8,a[v]=T<<16|T>>>16,i[v]=T<<8|T>>>24,t[v]=T;var T=_*16843009^C*65537^E*257^v*16843008;o[S]=T<<24|T>>>8,e[S]=T<<16|T>>>16,l[S]=T<<8|T>>>24,r[S]=T,v?(v=E^d[d[d[_^E]]],b^=d[d[b]]):v=b=1}})();var s=[0,1,2,4,8,16,32,64,128,27,54],c=m.AES=A.extend({_doReset:function(){var g;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var v=this._keyPriorReset=this._key,b=v.words,S=v.sigBytes/4,E=this._nRounds=S+6,C=(E+1)*4,_=this._keySchedule=[],T=0;T<C;T++)T<S?_[T]=b[T]:(g=_[T-1],T%S?S>6&&T%S==4&&(g=f[g>>>24]<<24|f[g>>>16&255]<<16|f[g>>>8&255]<<8|f[g&255]):(g=g<<8|g>>>24,g=f[g>>>24]<<24|f[g>>>16&255]<<16|f[g>>>8&255]<<8|f[g&255],g^=s[T/S|0]<<24),_[T]=_[T-S]^g);for(var w=this._invKeySchedule=[],O=0;O<C;O++){var T=C-O;if(O%4)var g=_[T];else var g=_[T-4];O<4||T<=4?w[O]=g:w[O]=o[f[g>>>24]]^e[f[g>>>16&255]]^l[f[g>>>8&255]]^r[f[g&255]]}},encryptBlock:function(g,v){this._doCryptBlock(g,v,this._keySchedule,u,a,i,t,f)},decryptBlock:function(g,v){var b=g[v+1];g[v+1]=g[v+3],g[v+3]=b,this._doCryptBlock(g,v,this._invKeySchedule,o,e,l,r,h);var b=g[v+1];g[v+1]=g[v+3],g[v+3]=b},_doCryptBlock:function(g,v,b,S,E,C,_,T){for(var w=this._nRounds,O=g[v]^b[0],I=g[v+1]^b[1],R=g[v+2]^b[2],M=g[v+3]^b[3],F=4,P=1;P<w;P++){var X=S[O>>>24]^E[I>>>16&255]^C[R>>>8&255]^_[M&255]^b[F++],B=S[I>>>24]^E[R>>>16&255]^C[M>>>8&255]^_[O&255]^b[F++],j=S[R>>>24]^E[M>>>16&255]^C[O>>>8&255]^_[I&255]^b[F++],W=S[M>>>24]^E[O>>>16&255]^C[I>>>8&255]^_[R&255]^b[F++];O=X,I=B,R=j,M=W}var X=(T[O>>>24]<<24|T[I>>>16&255]<<16|T[R>>>8&255]<<8|T[M&255])^b[F++],B=(T[I>>>24]<<24|T[R>>>16&255]<<16|T[M>>>8&255]<<8|T[O&255])^b[F++],j=(T[R>>>24]<<24|T[M>>>16&255]<<16|T[O>>>8&255]<<8|T[I&255])^b[F++],W=(T[M>>>24]<<24|T[O>>>16&255]<<16|T[I>>>8&255]<<8|T[R&255])^b[F++];g[v]=X,g[v+1]=B,g[v+2]=j,g[v+3]=W},keySize:256/32});p.AES=A._createHelper(c)}(),y.AES})},wbyO:function(k,D,n){(function(y,p){k.exports=D=p(n("Ib8C"))})(this,function(y){return function(){var p=y,x=p.lib,A=x.WordArray,m=p.enc,f=m.Base64url={stringify:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=a.words,o=a.sigBytes,e=i?this._safe_map:this._map;a.clamp();for(var l=[],r=0;r<o;r+=3)for(var s=t[r>>>2]>>>24-r%4*8&255,c=t[r+1>>>2]>>>24-(r+1)%4*8&255,d=t[r+2>>>2]>>>24-(r+2)%4*8&255,g=s<<16|c<<8|d,v=0;v<4&&r+v*.75<o;v++)l.push(e.charAt(g>>>6*(3-v)&63));var b=e.charAt(64);if(b)for(;l.length%4;)l.push(b);return l.join("")},parse:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=a.length,o=i?this._safe_map:this._map,e=this._reverseMap;if(!e){e=this._reverseMap=[];for(var l=0;l<o.length;l++)e[o.charCodeAt(l)]=l}var r=o.charAt(64);if(r){var s=a.indexOf(r);s!==-1&&(t=s)}return h(a,t,e)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function h(u,a,i){for(var t=[],o=0,e=0;e<a;e++)if(e%4){var l=i[u.charCodeAt(e-1)]<<e%4*2,r=i[u.charCodeAt(e)]>>>6-e%4*2,s=l|r;t[o>>>2]|=s<<24-o%4*8,o++}return A.create(t,o)}}(),y.enc.Base64url})},wgjA:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};D.default=y},whJP:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("lwsE"),f=n.n(m),h=n("W8MJ"),u=n.n(h),a=n("7W2i"),i=n.n(a),t=n("LQ03"),o=n.n(t),e=n("q1tI"),l=n.n(e),r=n("Y1PL"),s=n("BGR+"),c=n("TSYQ"),d=n.n(c),g=n("LlR5"),v=n("H84U"),b=n("mh/l"),S=function(E){i()(_,E);var C=o()(_);function _(T){var w;f()(this,_),w=C.call(this,T),w.focus=function(){w.resizableTextArea.textArea.focus()},w.saveTextArea=function(I){w.resizableTextArea=I==null?void 0:I.resizableTextArea},w.saveClearableInput=function(I){w.clearableInput=I},w.handleChange=function(I){w.setValue(I.target.value),Object(b.d)(w.resizableTextArea.textArea,I,w.props.onChange)},w.handleReset=function(I){w.setValue("",function(){w.focus()}),Object(b.d)(w.resizableTextArea.textArea,I,w.props.onChange)},w.renderTextArea=function(I,R){return e.createElement(r.default,p()({},Object(s.default)(w.props,["allowClear","bordered"]),{className:d()(w.props.className,A()({},"".concat(I,"-borderless"),!R)),prefixCls:I,onChange:w.handleChange,ref:w.saveTextArea}))},w.renderComponent=function(I){var R=I.getPrefixCls,M=I.direction,F=w.state.value,P=w.props,X=P.prefixCls,B=P.bordered,j=B===void 0?!0:B,W=R("input",X);return e.createElement(g.a,p()({},w.props,{prefixCls:W,direction:M,inputType:"text",value:Object(b.b)(F),element:w.renderTextArea(W,j),handleReset:w.handleReset,ref:w.saveClearableInput,triggerFocus:w.focus,bordered:j}))};var O=typeof T.value=="undefined"?T.defaultValue:T.value;return w.state={value:O},w}return u()(_,[{key:"setValue",value:function(w,O){this.props.value===void 0&&this.setState({value:w},O)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return e.createElement(v.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(w){return w.value!==void 0?{value:w.value}:null}}]),_}(e.Component);D.a=S},whVF:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=n("lNSK"),p=x(n("1q3G"));function x(u){return u&&u.__esModule?u:{default:u}}function A(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function m(u,a){for(var i=0;i<a.length;i++){var t=a[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(u,t.key,t)}}function f(u,a,i){return a&&m(u.prototype,a),i&&m(u,i),u}var h=function(){function u(){A(this,u),this.strm=new p.default,this.chunkSize=1024*10*10,this.outputBuffer=new Uint8Array(this.chunkSize),this.windowBits=5,(0,y.deflateInit)(this.strm,this.windowBits)}return f(u,[{key:"deflate",value:function(i){this.strm.input=i,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0,this.strm.output=this.outputBuffer,this.strm.avail_out=this.chunkSize,this.strm.next_out=0;var t=(0,y.deflate)(this.strm,y.Z_FULL_FLUSH),o=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);if(t<0)throw new Error("zlib deflate failed");if(this.strm.avail_in>0){var e=[o],l=o.length;do{if(this.strm.output=new Uint8Array(this.chunkSize),this.strm.next_out=0,this.strm.avail_out=this.chunkSize,t=(0,y.deflate)(this.strm,y.Z_FULL_FLUSH),t<0)throw new Error("zlib deflate failed");var r=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);l+=r.length,e.push(r)}while(this.strm.avail_in>0);for(var s=new Uint8Array(l),c=0,d=0;d<e.length;d++)s.set(e[d],c),c+=e[d].length;o=s}return this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0,o}}]),u}();D.default=h},wr5s:function(k,D,n){var y=n("IwbS"),p=y.extendShape,x=p({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},buildPath:function(A,m){var f=m.cx,h=m.cy,u=Math.max(m.r0||0,0),a=Math.max(m.r,0),i=(a-u)*.5,t=u+i,o=m.startAngle,e=m.endAngle,l=m.clockwise,r=Math.cos(o),s=Math.sin(o),c=Math.cos(e),d=Math.sin(e),g=l?e-o<Math.PI*2:o-e<Math.PI*2;g&&(A.moveTo(r*u+f,s*u+h),A.arc(r*t+f,s*t+h,i,-Math.PI+o,o,!l)),A.arc(f,h,a,o,e,!l),A.moveTo(c*a+f,d*a+h),A.arc(c*t+f,d*t+h,i,e-Math.PI*2,e-Math.PI,!l),u!==0&&(A.arc(f,h,u,e,o,l),A.moveTo(r*u+f,d*u+h)),A.closePath()}});k.exports=x},wt3j:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("/IIm"),A=n("EMyp"),m=A.layoutCovers,f=y.extendComponentView({type:"brush",init:function(u,a){this.ecModel=u,this.api=a,this.model,(this._brushController=new x(a.getZr())).on("brush",p.bind(this._onBrush,this)).mount()},render:function(u){return this.model=u,h.apply(this,arguments)},updateTransform:function(u,a){return m(a),h.apply(this,arguments)},updateView:h,dispose:function(){this._brushController.dispose()},_onBrush:function(u,a){var i=this.model.id;this.model.brushTargetManager.setOutputRanges(u,this.ecModel),(!a.isEnd||a.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:p.clone(u),$from:i}),a.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:p.clone(u),$from:i})}});function h(u,a,i,t){(!t||t.$from!==u.id)&&this._brushController.setPanels(u.brushTargetManager.makePanelOpts(i)).enableBrush(u.brushOption).updateCovers(u.areas.slice())}k.exports=f},wy8a:function(k,D,n){var y=n("KxBF");function p(x,A,m){var f=x.length;return m=m===void 0?f:m,!A&&m>=f?x:y(x,A,m)}k.exports=p},x3X8:function(k,D,n){var y=n("KxfA"),p=y.retrieveRawValue;function x(A,m){var f=A.mapDimension("defaultedLabel",!0),h=f.length;if(h===1)return p(A,m,f[0]);if(h){for(var u=[],a=0;a<f.length;a++){var i=p(A,m,f[a]);u.push(i)}return u.join(" ")}}D.getDefaultLabel=x},x54q:function(k,D,n){},x6Kt:function(k,D,n){var y=n("y+Vt"),p=n("VpOo"),x=n("nPnh"),A=x.subPixelOptimizeRect,m={},f=y.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(u,a){var i,t,o,e;this.subPixelOptimize?(A(m,a,this.style),i=m.x,t=m.y,o=m.width,e=m.height,m.r=a.r,a=m):(i=a.x,t=a.y,o=a.width,e=a.height),a.r?p.buildPath(u,a):u.rect(i,t,o,e),u.closePath();return}});k.exports=f},xGfz:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{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:"plus-square",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="PlusSquareOutlined";var h=D.a=p.forwardRef(f)},xKMd:function(k,D){function n(p,x){this.getAllNames=function(){var A=x();return A.mapArray(A.getName)},this.containName=function(A){var m=x();return m.indexOfName(A)>=0},this.indexOfName=function(A){var m=p();return m.indexOfName(A)},this.getItemVisual=function(A,m){var f=p();return f.getItemVisual(A,m)}}var y=n;k.exports=y},xO64:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("8K/p"));function p(r){return r&&r.__esModule?r:{default:r}}function x(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(c){return typeof c}:x=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},x(r)}function A(r,s){if(!(r instanceof s))throw new TypeError("Cannot call a class as a function")}function m(r,s){for(var c=0;c<s.length;c++){var d=s[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(r,d.key,d)}}function f(r,s,c){return s&&m(r.prototype,s),c&&m(r,c),r}function h(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(s&&s.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),s&&u(r,s)}function u(r,s){return u=Object.setPrototypeOf||function(d,g){return d.__proto__=g,d},u(r,s)}function a(r){var s=o();return function(){var d=e(r),g;if(s){var v=e(this).constructor;g=Reflect.construct(d,arguments,v)}else g=d.apply(this,arguments);return i(this,g)}}function i(r,s){return s&&(x(s)==="object"||typeof s=="function")?s:t(r)}function t(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function o(){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(r){return!1}}function e(r){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},e(r)}var l=function(r){h(c,r);var s=a(c);function c(){return A(this,c),s.apply(this,arguments)}return f(c,[{key:"_pngRect",value:function(g,v,b,S,E,C,_){var T=this._readData(E);return T===null?!1:(C.imageRect(g,v,b,S,"image/png",T),!0)}},{key:"_basicRect",value:function(g,v,b,S,E,C,_,T){throw new Error("BasicCompression received in TightPNG rect")}}]),c}(y.default);D.default=l},xOOu:function(k,D,n){(function(y,p,x){var A,A;/*!
|
|
|
|
|
|
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
|
<http://stuartk.com/jszip>
|
|
|
|
|
|
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
|
|
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
|
|
|
|
|
|
JSZip uses the library pako released under the MIT license :
|
|
|
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
*/!function(m){k.exports=m()}(function(){return function m(f,h,u){function a(o,e){if(!h[o]){if(!f[o]){var l=typeof A=="function"&&A;if(!e&&l)return A(o,!0);if(i)return i(o,!0);var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r}var s=h[o]={exports:{}};f[o][0].call(s.exports,function(c){var d=f[o][1][c];return a(d||c)},s,s.exports,m,f,h,u)}return h[o].exports}for(var i=typeof A=="function"&&A,t=0;t<u.length;t++)a(u[t]);return a}({1:[function(m,f,h){"use strict";var u=m("./utils"),a=m("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";h.encode=function(t){for(var o,e,l,r,s,c,d,g=[],v=0,b=t.length,S=b,E=u.getTypeOf(t)!=="string";v<t.length;)S=b-v,l=E?(o=t[v++],e=v<b?t[v++]:0,v<b?t[v++]:0):(o=t.charCodeAt(v++),e=v<b?t.charCodeAt(v++):0,v<b?t.charCodeAt(v++):0),r=o>>2,s=(3&o)<<4|e>>4,c=1<S?(15&e)<<2|l>>6:64,d=2<S?63&l:64,g.push(i.charAt(r)+i.charAt(s)+i.charAt(c)+i.charAt(d));return g.join("")},h.decode=function(t){var o,e,l,r,s,c,d=0,g=0,v="data:";if(t.substr(0,v.length)===v)throw new Error("Invalid base64 input, it looks like a data url.");var b,S=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===i.charAt(64)&&S--,t.charAt(t.length-2)===i.charAt(64)&&S--,S%1!=0)throw new Error("Invalid base64 input, bad content length.");for(b=a.uint8array?new Uint8Array(0|S):new Array(0|S);d<t.length;)o=i.indexOf(t.charAt(d++))<<2|(r=i.indexOf(t.charAt(d++)))>>4,e=(15&r)<<4|(s=i.indexOf(t.charAt(d++)))>>2,l=(3&s)<<6|(c=i.indexOf(t.charAt(d++))),b[g++]=o,s!==64&&(b[g++]=e),c!==64&&(b[g++]=l);return b}},{"./support":30,"./utils":32}],2:[function(m,f,h){"use strict";var u=m("./external"),a=m("./stream/DataWorker"),i=m("./stream/Crc32Probe"),t=m("./stream/DataLengthProbe");function o(e,l,r,s,c){this.compressedSize=e,this.uncompressedSize=l,this.crc32=r,this.compression=s,this.compressedContent=c}o.prototype={getContentWorker:function(){var l=new a(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new t("data_length")),r=this;return l.on("end",function(){if(this.streamInfo.data_length!==r.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),l},getCompressedWorker:function(){return new a(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(e,l,r){return e.pipe(new i).pipe(new t("uncompressedSize")).pipe(l.compressWorker(r)).pipe(new t("compressedSize")).withStreamInfo("compression",l)},f.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(m,f,h){"use strict";var u=m("./stream/GenericWorker");h.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},h.DEFLATE=m("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(m,f,h){"use strict";var u=m("./utils"),a=function(){for(var i,t=[],o=0;o<256;o++){i=o;for(var e=0;e<8;e++)i=1&i?3988292384^i>>>1:i>>>1;t[o]=i}return t}();f.exports=function(i,t){return i!==void 0&&i.length?u.getTypeOf(i)!=="string"?function(o,e,l,r){var s=a,c=r+l;o^=-1;for(var d=r;d<c;d++)o=o>>>8^s[255&(o^e[d])];return-1^o}(0|t,i,i.length,0):function(o,e,l,r){var s=a,c=r+l;o^=-1;for(var d=r;d<c;d++)o=o>>>8^s[255&(o^e.charCodeAt(d))];return-1^o}(0|t,i,i.length,0):0}},{"./utils":32}],5:[function(m,f,h){"use strict";h.base64=!1,h.binary=!1,h.dir=!1,h.createFolders=!0,h.date=null,h.compression=null,h.compressionOptions=null,h.comment=null,h.unixPermissions=null,h.dosPermissions=null},{}],6:[function(m,f,h){"use strict";var u=null;u=typeof Promise!="undefined"?Promise:m("lie"),f.exports={Promise:u}},{lie:37}],7:[function(m,f,h){"use strict";var u=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",a=m("pako"),i=m("./utils"),t=m("./stream/GenericWorker"),o=u?"uint8array":"array";function e(l,r){t.call(this,"FlateWorker/"+l),this._pako=null,this._pakoAction=l,this._pakoOptions=r,this.meta={}}h.magic="\b\0",i.inherits(e,t),e.prototype.processChunk=function(l){this.meta=l.meta,this._pako===null&&this._createPako(),this._pako.push(i.transformTo(o,l.data),!1)},e.prototype.flush=function(){t.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},e.prototype.cleanUp=function(){t.prototype.cleanUp.call(this),this._pako=null},e.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var l=this;this._pako.onData=function(r){l.push({data:r,meta:l.meta})}},h.compressWorker=function(l){return new e("Deflate",l)},h.uncompressWorker=function(){return new e("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(m,f,h){"use strict";function u(s,c){var d,g="";for(d=0;d<c;d++)g+=String.fromCharCode(255&s),s>>>=8;return g}function a(s,c,d,g,v,b){var S,E,C=s.file,_=s.compression,T=b!==o.utf8encode,w=i.transformTo("string",b(C.name)),O=i.transformTo("string",o.utf8encode(C.name)),I=C.comment,R=i.transformTo("string",b(I)),M=i.transformTo("string",o.utf8encode(I)),F=O.length!==C.name.length,P=M.length!==I.length,X="",B="",j="",W=C.dir,z=C.date,V={crc32:0,compressedSize:0,uncompressedSize:0};c&&!d||(V.crc32=s.crc32,V.compressedSize=s.compressedSize,V.uncompressedSize=s.uncompressedSize);var Q=0;c&&(Q|=8),T||!F&&!P||(Q|=2048);var G=0,ee=0;W&&(G|=16),v==="UNIX"?(ee=798,G|=function(be,le){var Ie=be;return be||(Ie=le?16893:33204),(65535&Ie)<<16}(C.unixPermissions,W)):(ee=20,G|=function(be){return 63&(be||0)}(C.dosPermissions)),S=z.getUTCHours(),S<<=6,S|=z.getUTCMinutes(),S<<=5,S|=z.getUTCSeconds()/2,E=z.getUTCFullYear()-1980,E<<=4,E|=z.getUTCMonth()+1,E<<=5,E|=z.getUTCDate(),F&&(B=u(1,1)+u(e(w),4)+O,X+="up"+u(B.length,2)+B),P&&(j=u(1,1)+u(e(R),4)+M,X+="uc"+u(j.length,2)+j);var ce="";return ce+=`
|
|
|
\0`,ce+=u(Q,2),ce+=_.magic,ce+=u(S,2),ce+=u(E,2),ce+=u(V.crc32,4),ce+=u(V.compressedSize,4),ce+=u(V.uncompressedSize,4),ce+=u(w.length,2),ce+=u(X.length,2),{fileRecord:l.LOCAL_FILE_HEADER+ce+w+X,dirRecord:l.CENTRAL_FILE_HEADER+u(ee,2)+ce+u(R.length,2)+"\0\0\0\0"+u(G,4)+u(g,4)+w+X+R}}var i=m("../utils"),t=m("../stream/GenericWorker"),o=m("../utf8"),e=m("../crc32"),l=m("../signature");function r(s,c,d,g){t.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=c,this.zipPlatform=d,this.encodeFileName=g,this.streamFiles=s,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(r,t),r.prototype.push=function(s){var c=s.meta.percent||0,d=this.entriesCount,g=this._sources.length;this.accumulate?this.contentBuffer.push(s):(this.bytesWritten+=s.data.length,t.prototype.push.call(this,{data:s.data,meta:{currentFile:this.currentFile,percent:d?(c+100*(d-g-1))/d:100}}))},r.prototype.openedSource=function(s){this.currentSourceOffset=this.bytesWritten,this.currentFile=s.file.name;var c=this.streamFiles&&!s.file.dir;if(c){var d=a(s,c,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:d.fileRecord,meta:{percent:0}})}else this.accumulate=!0},r.prototype.closedSource=function(s){this.accumulate=!1;var c=this.streamFiles&&!s.file.dir,d=a(s,c,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(d.dirRecord),c)this.push({data:function(g){return l.DATA_DESCRIPTOR+u(g.crc32,4)+u(g.compressedSize,4)+u(g.uncompressedSize,4)}(s),meta:{percent:100}});else for(this.push({data:d.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},r.prototype.flush=function(){for(var s=this.bytesWritten,c=0;c<this.dirRecords.length;c++)this.push({data:this.dirRecords[c],meta:{percent:100}});var d=this.bytesWritten-s,g=function(v,b,S,E,C){var _=i.transformTo("string",C(E));return l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(v,2)+u(v,2)+u(b,4)+u(S,4)+u(_.length,2)+_}(this.dirRecords.length,d,s,this.zipComment,this.encodeFileName);this.push({data:g,meta:{percent:100}})},r.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},r.prototype.registerPrevious=function(s){this._sources.push(s);var c=this;return s.on("data",function(d){c.processChunk(d)}),s.on("end",function(){c.closedSource(c.previous.streamInfo),c._sources.length?c.prepareNextSource():c.end()}),s.on("error",function(d){c.error(d)}),this},r.prototype.resume=function(){return!!t.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},r.prototype.error=function(s){var c=this._sources;if(!t.prototype.error.call(this,s))return!1;for(var d=0;d<c.length;d++)try{c[d].error(s)}catch(g){}return!0},r.prototype.lock=function(){t.prototype.lock.call(this);for(var s=this._sources,c=0;c<s.length;c++)s[c].lock()},f.exports=r},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(m,f,h){"use strict";var u=m("../compressions"),a=m("./ZipFileWorker");h.generateWorker=function(i,t,o){var e=new a(t.streamFiles,o,t.platform,t.encodeFileName),l=0;try{i.forEach(function(r,s){l++;var c=function(b,S){var E=b||S,C=u[E];if(!C)throw new Error(E+" is not a valid compression method !");return C}(s.options.compression,t.compression),d=s.options.compressionOptions||t.compressionOptions||{},g=s.dir,v=s.date;s._compressWorker(c,d).withStreamInfo("file",{name:r,dir:g,date:v,comment:s.comment||"",unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions}).pipe(e)}),e.entriesCount=l}catch(r){e.error(r)}return e}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(m,f,h){"use strict";function u(){if(!(this instanceof u))return new u;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var a=new u;for(var i in this)typeof this[i]!="function"&&(a[i]=this[i]);return a}}(u.prototype=m("./object")).loadAsync=m("./load"),u.support=m("./support"),u.defaults=m("./defaults"),u.version="3.10.1",u.loadAsync=function(a,i){return new u().loadAsync(a,i)},u.external=m("./external"),f.exports=u},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(m,f,h){"use strict";var u=m("./utils"),a=m("./external"),i=m("./utf8"),t=m("./zipEntries"),o=m("./stream/Crc32Probe"),e=m("./nodejsUtils");function l(r){return new a.Promise(function(s,c){var d=r.decompressed.getContentWorker().pipe(new o);d.on("error",function(g){c(g)}).on("end",function(){d.streamInfo.crc32!==r.decompressed.crc32?c(new Error("Corrupted zip : CRC32 mismatch")):s()}).resume()})}f.exports=function(r,s){var c=this;return s=u.extend(s||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode}),e.isNode&&e.isStream(r)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",r,!0,s.optimizedBinaryString,s.base64).then(function(d){var g=new t(s);return g.load(d),g}).then(function(d){var g=[a.Promise.resolve(d)],v=d.files;if(s.checkCRC32)for(var b=0;b<v.length;b++)g.push(l(v[b]));return a.Promise.all(g)}).then(function(d){for(var g=d.shift(),v=g.files,b=0;b<v.length;b++){var S=v[b],E=S.fileNameStr,C=u.resolve(S.fileNameStr);c.file(C,S.decompressed,{binary:!0,optimizedBinaryString:!0,date:S.date,dir:S.dir,comment:S.fileCommentStr.length?S.fileCommentStr:null,unixPermissions:S.unixPermissions,dosPermissions:S.dosPermissions,createFolders:s.createFolders}),S.dir||(c.file(C).unsafeOriginalName=E)}return g.zipComment.length&&(c.comment=g.zipComment),c})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(m,f,h){"use strict";var u=m("../utils"),a=m("../stream/GenericWorker");function i(t,o){a.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(o)}u.inherits(i,a),i.prototype._bindStream=function(t){var o=this;(this._stream=t).pause(),t.on("data",function(e){o.push({data:e,meta:{percent:0}})}).on("error",function(e){o.isPaused?this.generatedError=e:o.error(e)}).on("end",function(){o.isPaused?o._upstreamEnded=!0:o.end()})},i.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},f.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(m,f,h){"use strict";var u=m("readable-stream").Readable;function a(i,t,o){u.call(this,t),this._helper=i;var e=this;i.on("data",function(l,r){e.push(l)||e._helper.pause(),o&&o(r)}).on("error",function(l){e.emit("error",l)}).on("end",function(){e.push(null)})}m("../utils").inherits(a,u),a.prototype._read=function(){this._helper.resume()},f.exports=a},{"../utils":32,"readable-stream":16}],14:[function(m,f,h){"use strict";f.exports={isNode:typeof y!="undefined",newBufferFrom:function(a,i){if(y.from&&y.from!==Uint8Array.from)return y.from(a,i);if(typeof a=="number")throw new Error('The "data" argument must not be a number');return new y(a,i)},allocBuffer:function(a){if(y.alloc)return y.alloc(a);var i=new y(a);return i.fill(0),i},isBuffer:function(a){return y.isBuffer(a)},isStream:function(a){return a&&typeof a.on=="function"&&typeof a.pause=="function"&&typeof a.resume=="function"}}},{}],15:[function(m,f,h){"use strict";function u(C,_,T){var w,O=i.getTypeOf(_),I=i.extend(T||{},e);I.date=I.date||new Date,I.compression!==null&&(I.compression=I.compression.toUpperCase()),typeof I.unixPermissions=="string"&&(I.unixPermissions=parseInt(I.unixPermissions,8)),I.unixPermissions&&16384&I.unixPermissions&&(I.dir=!0),I.dosPermissions&&16&I.dosPermissions&&(I.dir=!0),I.dir&&(C=v(C)),I.createFolders&&(w=g(C))&&b.call(this,w,!0);var R=O==="string"&&I.binary===!1&&I.base64===!1;T&&T.binary!==void 0||(I.binary=!R),(_ instanceof l&&_.uncompressedSize===0||I.dir||!_||_.length===0)&&(I.base64=!1,I.binary=!0,_="",I.compression="STORE",O="string");var M=null;M=_ instanceof l||_ instanceof t?_:c.isNode&&c.isStream(_)?new d(C,_):i.prepareContent(C,_,I.binary,I.optimizedBinaryString,I.base64);var F=new r(C,M,I);this.files[C]=F}var a=m("./utf8"),i=m("./utils"),t=m("./stream/GenericWorker"),o=m("./stream/StreamHelper"),e=m("./defaults"),l=m("./compressedObject"),r=m("./zipObject"),s=m("./generate"),c=m("./nodejsUtils"),d=m("./nodejs/NodejsStreamInputAdapter"),g=function(_){_.slice(-1)==="/"&&(_=_.substring(0,_.length-1));var T=_.lastIndexOf("/");return 0<T?_.substring(0,T):""},v=function(_){return _.slice(-1)!=="/"&&(_+="/"),_},b=function(_,T){return T=T!==void 0?T:e.createFolders,_=v(_),this.files[_]||u.call(this,_,null,{dir:!0,createFolders:T}),this.files[_]};function S(C){return Object.prototype.toString.call(C)==="[object RegExp]"}var E={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(_){var T,w,O;for(T in this.files)O=this.files[T],(w=T.slice(this.root.length,T.length))&&T.slice(0,this.root.length)===this.root&&_(w,O)},filter:function(_){var T=[];return this.forEach(function(w,O){_(w,O)&&T.push(O)}),T},file:function(_,T,w){if(arguments.length!==1)return _=this.root+_,u.call(this,_,T,w),this;if(S(_)){var O=_;return this.filter(function(R,M){return!M.dir&&O.test(R)})}var I=this.files[this.root+_];return I&&!I.dir?I:null},folder:function(_){if(!_)return this;if(S(_))return this.filter(function(I,R){return R.dir&&_.test(I)});var T=this.root+_,w=b.call(this,T),O=this.clone();return O.root=w.name,O},remove:function(_){_=this.root+_;var T=this.files[_];if(T||(_.slice(-1)!=="/"&&(_+="/"),T=this.files[_]),T&&!T.dir)delete this.files[_];else for(var w=this.filter(function(I,R){return R.name.slice(0,_.length)===_}),O=0;O<w.length;O++)delete this.files[w[O].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(_){var T,w={};try{if((w=i.extend(_||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=w.type.toLowerCase(),w.compression=w.compression.toUpperCase(),w.type==="binarystring"&&(w.type="string"),!w.type)throw new Error("No output type specified.");i.checkSupport(w.type),w.platform!=="darwin"&&w.platform!=="freebsd"&&w.platform!=="linux"&&w.platform!=="sunos"||(w.platform="UNIX"),w.platform==="win32"&&(w.platform="DOS");var O=w.comment||this.comment||"";T=s.generateWorker(this,w,O)}catch(I){(T=new t("error")).error(I)}return new o(T,w.type||"string",w.mimeType)},generateAsync:function(_,T){return this.generateInternalStream(_).accumulate(T)},generateNodeStream:function(_,T){return(_=_||{}).type||(_.type="nodebuffer"),this.generateInternalStream(_).toNodejsStream(T)}};f.exports=E},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(m,f,h){"use strict";f.exports=m("stream")},{stream:void 0}],17:[function(m,f,h){"use strict";var u=m("./DataReader");function a(i){u.call(this,i);for(var t=0;t<this.data.length;t++)i[t]=255&i[t]}m("../utils").inherits(a,u),a.prototype.byteAt=function(i){return this.data[this.zero+i]},a.prototype.lastIndexOfSignature=function(i){for(var t=i.charCodeAt(0),o=i.charCodeAt(1),e=i.charCodeAt(2),l=i.charCodeAt(3),r=this.length-4;0<=r;--r)if(this.data[r]===t&&this.data[r+1]===o&&this.data[r+2]===e&&this.data[r+3]===l)return r-this.zero;return-1},a.prototype.readAndCheckSignature=function(i){var t=i.charCodeAt(0),o=i.charCodeAt(1),e=i.charCodeAt(2),l=i.charCodeAt(3),r=this.readData(4);return t===r[0]&&o===r[1]&&e===r[2]&&l===r[3]},a.prototype.readData=function(i){if(this.checkOffset(i),i===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,t},f.exports=a},{"../utils":32,"./DataReader":18}],18:[function(m,f,h){"use strict";var u=m("../utils");function a(i){this.data=i,this.length=i.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var o,e=0;for(this.checkOffset(t),o=this.index+t-1;o>=this.index;o--)e=(e<<8)+this.byteAt(o);return this.index+=t,e},readString:function(t){return u.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},f.exports=a},{"../utils":32}],19:[function(m,f,h){"use strict";var u=m("./Uint8ArrayReader");function a(i){u.call(this,i)}m("../utils").inherits(a,u),a.prototype.readData=function(i){this.checkOffset(i);var t=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,t},f.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(m,f,h){"use strict";var u=m("./DataReader");function a(i){u.call(this,i)}m("../utils").inherits(a,u),a.prototype.byteAt=function(i){return this.data.charCodeAt(this.zero+i)},a.prototype.lastIndexOfSignature=function(i){return this.data.lastIndexOf(i)-this.zero},a.prototype.readAndCheckSignature=function(i){return i===this.readData(4)},a.prototype.readData=function(i){this.checkOffset(i);var t=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,t},f.exports=a},{"../utils":32,"./DataReader":18}],21:[function(m,f,h){"use strict";var u=m("./ArrayReader");function a(i){u.call(this,i)}m("../utils").inherits(a,u),a.prototype.readData=function(i){if(this.checkOffset(i),i===0)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+i);return this.index+=i,t},f.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(m,f,h){"use strict";var u=m("../utils"),a=m("../support"),i=m("./ArrayReader"),t=m("./StringReader"),o=m("./NodeBufferReader"),e=m("./Uint8ArrayReader");f.exports=function(l){var r=u.getTypeOf(l);return u.checkSupport(r),r!=="string"||a.uint8array?r==="nodebuffer"?new o(l):a.uint8array?new e(u.transformTo("uint8array",l)):new i(u.transformTo("array",l)):new t(l)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(m,f,h){"use strict";h.LOCAL_FILE_HEADER="PK",h.CENTRAL_FILE_HEADER="PK",h.CENTRAL_DIRECTORY_END="PK",h.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",h.ZIP64_CENTRAL_DIRECTORY_END="PK",h.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(m,f,h){"use strict";var u=m("./GenericWorker"),a=m("../utils");function i(t){u.call(this,"ConvertWorker to "+t),this.destType=t}a.inherits(i,u),i.prototype.processChunk=function(t){this.push({data:a.transformTo(this.destType,t.data),meta:t.meta})},f.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(m,f,h){"use strict";var u=m("./GenericWorker"),a=m("../crc32");function i(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}m("../utils").inherits(i,u),i.prototype.processChunk=function(t){this.streamInfo.crc32=a(t.data,this.streamInfo.crc32||0),this.push(t)},f.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(m,f,h){"use strict";var u=m("../utils"),a=m("./GenericWorker");function i(t){a.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}u.inherits(i,a),i.prototype.processChunk=function(t){if(t){var o=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=o+t.data.length}a.prototype.processChunk.call(this,t)},f.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(m,f,h){"use strict";var u=m("../utils"),a=m("./GenericWorker");function i(t){a.call(this,"DataWorker");var o=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then(function(e){o.dataIsReady=!0,o.data=e,o.max=e&&e.length||0,o.type=u.getTypeOf(e),o.isPaused||o._tickAndRepeat()},function(e){o.error(e)})}u.inherits(i,a),i.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,o=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,o);break;case"uint8array":t=this.data.subarray(this.index,o);break;case"array":case"nodebuffer":t=this.data.slice(this.index,o)}return this.index=o,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},f.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(m,f,h){"use strict";function u(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}u.prototype={push:function(i){this.emit("data",i)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(i){this.emit("error",i)}return!0},error:function(i){return!this.isFinished&&(this.isPaused?this.generatedError=i:(this.isFinished=!0,this.emit("error",i),this.previous&&this.previous.error(i),this.cleanUp()),!0)},on:function(i,t){return this._listeners[i].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(i,t){if(this._listeners[i])for(var o=0;o<this._listeners[i].length;o++)this._listeners[i][o].call(this,t)},pipe:function(i){return i.registerPrevious(this)},registerPrevious:function(i){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=i.streamInfo,this.mergeStreamInfo(),this.previous=i;var t=this;return i.on("data",function(o){t.processChunk(o)}),i.on("end",function(){t.end()}),i.on("error",function(o){t.error(o)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var i=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),i=!0),this.previous&&this.previous.resume(),!i},flush:function(){},processChunk:function(i){this.push(i)},withStreamInfo:function(i,t){return this.extraStreamInfo[i]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var i in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,i)&&(this.streamInfo[i]=this.extraStreamInfo[i])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var i="Worker "+this.name;return this.previous?this.previous+" -> "+i:i}},f.exports=u},{}],29:[function(m,f,h){"use strict";var u=m("../utils"),a=m("./ConvertWorker"),i=m("./GenericWorker"),t=m("../base64"),o=m("../support"),e=m("../external"),l=null;if(o.nodestream)try{l=m("../nodejs/NodejsStreamOutputAdapter")}catch(c){}function r(c,d){return new e.Promise(function(g,v){var b=[],S=c._internalType,E=c._outputType,C=c._mimeType;c.on("data",function(_,T){b.push(_),d&&d(T)}).on("error",function(_){b=[],v(_)}).on("end",function(){try{var _=function(T,w,O){switch(T){case"blob":return u.newBlob(u.transformTo("arraybuffer",w),O);case"base64":return t.encode(w);default:return u.transformTo(T,w)}}(E,function(T,w){var O,I=0,R=null,M=0;for(O=0;O<w.length;O++)M+=w[O].length;switch(T){case"string":return w.join("");case"array":return Array.prototype.concat.apply([],w);case"uint8array":for(R=new Uint8Array(M),O=0;O<w.length;O++)R.set(w[O],I),I+=w[O].length;return R;case"nodebuffer":return y.concat(w);default:throw new Error("concat : unsupported type '"+T+"'")}}(S,b),C);g(_)}catch(T){v(T)}b=[]}).resume()})}function s(c,d,g){var v=d;switch(d){case"blob":case"arraybuffer":v="uint8array";break;case"base64":v="string"}try{this._internalType=v,this._outputType=d,this._mimeType=g,u.checkSupport(v),this._worker=c.pipe(new a(v)),c.lock()}catch(b){this._worker=new i("error"),this._worker.error(b)}}s.prototype={accumulate:function(d){return r(this,d)},on:function(d,g){var v=this;return d==="data"?this._worker.on(d,function(b){g.call(v,b.data,b.meta)}):this._worker.on(d,function(){u.delay(g,arguments,v)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(d){if(u.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new l(this,{objectMode:this._outputType!=="nodebuffer"},d)}},f.exports=s},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(m,f,h){"use strict";if(h.base64=!0,h.array=!0,h.string=!0,h.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",h.nodebuffer=typeof y!="undefined",h.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")h.blob=!1;else{var u=new ArrayBuffer(0);try{h.blob=new Blob([u],{type:"application/zip"}).size===0}catch(i){try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(u),h.blob=a.getBlob("application/zip").size===0}catch(t){h.blob=!1}}}try{h.nodestream=!!m("readable-stream").Readable}catch(i){h.nodestream=!1}},{"readable-stream":16}],31:[function(m,f,h){"use strict";for(var u=m("./utils"),a=m("./support"),i=m("./nodejsUtils"),t=m("./stream/GenericWorker"),o=new Array(256),e=0;e<256;e++)o[e]=252<=e?6:248<=e?5:240<=e?4:224<=e?3:192<=e?2:1;o[254]=o[254]=1;function l(){t.call(this,"utf-8 decode"),this.leftOver=null}function r(){t.call(this,"utf-8 encode")}h.utf8encode=function(s){return a.nodebuffer?i.newBufferFrom(s,"utf-8"):function(c){var d,g,v,b,S,E=c.length,C=0;for(b=0;b<E;b++)(64512&(g=c.charCodeAt(b)))==55296&&b+1<E&&(64512&(v=c.charCodeAt(b+1)))==56320&&(g=65536+(g-55296<<10)+(v-56320),b++),C+=g<128?1:g<2048?2:g<65536?3:4;for(d=a.uint8array?new Uint8Array(C):new Array(C),b=S=0;S<C;b++)(64512&(g=c.charCodeAt(b)))==55296&&b+1<E&&(64512&(v=c.charCodeAt(b+1)))==56320&&(g=65536+(g-55296<<10)+(v-56320),b++),g<128?d[S++]=g:(g<2048?d[S++]=192|g>>>6:(g<65536?d[S++]=224|g>>>12:(d[S++]=240|g>>>18,d[S++]=128|g>>>12&63),d[S++]=128|g>>>6&63),d[S++]=128|63&g);return d}(s)},h.utf8decode=function(s){return a.nodebuffer?u.transformTo("nodebuffer",s).toString("utf-8"):function(c){var d,g,v,b,S=c.length,E=new Array(2*S);for(d=g=0;d<S;)if((v=c[d++])<128)E[g++]=v;else if(4<(b=o[v]))E[g++]=65533,d+=b-1;else{for(v&=b===2?31:b===3?15:7;1<b&&d<S;)v=v<<6|63&c[d++],b--;1<b?E[g++]=65533:v<65536?E[g++]=v:(v-=65536,E[g++]=55296|v>>10&1023,E[g++]=56320|1023&v)}return E.length!==g&&(E.subarray?E=E.subarray(0,g):E.length=g),u.applyFromCharCode(E)}(s=u.transformTo(a.uint8array?"uint8array":"array",s))},u.inherits(l,t),l.prototype.processChunk=function(s){var c=u.transformTo(a.uint8array?"uint8array":"array",s.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var d=c;(c=new Uint8Array(d.length+this.leftOver.length)).set(this.leftOver,0),c.set(d,this.leftOver.length)}else c=this.leftOver.concat(c);this.leftOver=null}var g=function(b,S){var E;for((S=S||b.length)>b.length&&(S=b.length),E=S-1;0<=E&&(192&b[E])==128;)E--;return E<0||E===0?S:E+o[b[E]]>S?E:S}(c),v=c;g!==c.length&&(a.uint8array?(v=c.subarray(0,g),this.leftOver=c.subarray(g,c.length)):(v=c.slice(0,g),this.leftOver=c.slice(g,c.length))),this.push({data:h.utf8decode(v),meta:s.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:h.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},h.Utf8DecodeWorker=l,u.inherits(r,t),r.prototype.processChunk=function(s){this.push({data:h.utf8encode(s.data),meta:s.meta})},h.Utf8EncodeWorker=r},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(m,f,h){"use strict";var u=m("./support"),a=m("./base64"),i=m("./nodejsUtils"),t=m("./external");function o(d){return d}function e(d,g){for(var v=0;v<d.length;++v)g[v]=255&d.charCodeAt(v);return g}m("setimmediate"),h.newBlob=function(d,g){h.checkSupport("blob");try{return new Blob([d],{type:g})}catch(b){try{var v=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return v.append(d),v.getBlob(g)}catch(S){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(g,v,b){var S=[],E=0,C=g.length;if(C<=b)return String.fromCharCode.apply(null,g);for(;E<C;)v==="array"||v==="nodebuffer"?S.push(String.fromCharCode.apply(null,g.slice(E,Math.min(E+b,C)))):S.push(String.fromCharCode.apply(null,g.subarray(E,Math.min(E+b,C)))),E+=b;return S.join("")},stringifyByChar:function(g){for(var v="",b=0;b<g.length;b++)v+=String.fromCharCode(g[b]);return v},applyCanBeUsed:{uint8array:function(){try{return u.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(d){return!1}}(),nodebuffer:function(){try{return u.nodebuffer&&String.fromCharCode.apply(null,i.allocBuffer(1)).length===1}catch(d){return!1}}()}};function r(d){var g=65536,v=h.getTypeOf(d),b=!0;if(v==="uint8array"?b=l.applyCanBeUsed.uint8array:v==="nodebuffer"&&(b=l.applyCanBeUsed.nodebuffer),b)for(;1<g;)try{return l.stringifyByChunk(d,v,g)}catch(S){g=Math.floor(g/2)}return l.stringifyByChar(d)}function s(d,g){for(var v=0;v<d.length;v++)g[v]=d[v];return g}h.applyFromCharCode=r;var c={};c.string={string:o,array:function(g){return e(g,new Array(g.length))},arraybuffer:function(g){return c.string.uint8array(g).buffer},uint8array:function(g){return e(g,new Uint8Array(g.length))},nodebuffer:function(g){return e(g,i.allocBuffer(g.length))}},c.array={string:r,array:o,arraybuffer:function(g){return new Uint8Array(g).buffer},uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return i.newBufferFrom(g)}},c.arraybuffer={string:function(g){return r(new Uint8Array(g))},array:function(g){return s(new Uint8Array(g),new Array(g.byteLength))},arraybuffer:o,uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return i.newBufferFrom(new Uint8Array(g))}},c.uint8array={string:r,array:function(g){return s(g,new Array(g.length))},arraybuffer:function(g){return g.buffer},uint8array:o,nodebuffer:function(g){return i.newBufferFrom(g)}},c.nodebuffer={string:r,array:function(g){return s(g,new Array(g.length))},arraybuffer:function(g){return c.nodebuffer.uint8array(g).buffer},uint8array:function(g){return s(g,new Uint8Array(g.length))},nodebuffer:o},h.transformTo=function(d,g){if(g=g||"",!d)return g;h.checkSupport(d);var v=h.getTypeOf(g);return c[v][d](g)},h.resolve=function(d){for(var g=d.split("/"),v=[],b=0;b<g.length;b++){var S=g[b];S==="."||S===""&&b!==0&&b!==g.length-1||(S===".."?v.pop():v.push(S))}return v.join("/")},h.getTypeOf=function(d){return typeof d=="string"?"string":Object.prototype.toString.call(d)==="[object Array]"?"array":u.nodebuffer&&i.isBuffer(d)?"nodebuffer":u.uint8array&&d instanceof Uint8Array?"uint8array":u.arraybuffer&&d instanceof ArrayBuffer?"arraybuffer":void 0},h.checkSupport=function(d){if(!u[d.toLowerCase()])throw new Error(d+" is not supported by this platform")},h.MAX_VALUE_16BITS=65535,h.MAX_VALUE_32BITS=-1,h.pretty=function(d){var g,v,b="";for(v=0;v<(d||"").length;v++)b+="\\x"+((g=d.charCodeAt(v))<16?"0":"")+g.toString(16).toUpperCase();return b},h.delay=function(d,g,v){setImmediate(function(){d.apply(v||null,g||[])})},h.inherits=function(d,g){function v(){}v.prototype=g.prototype,d.prototype=new v},h.extend=function(){var d,g,v={};for(d=0;d<arguments.length;d++)for(g in arguments[d])Object.prototype.hasOwnProperty.call(arguments[d],g)&&v[g]===void 0&&(v[g]=arguments[d][g]);return v},h.prepareContent=function(d,g,v,b,S){return t.Promise.resolve(g).then(function(E){return u.blob&&(E instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(E))!==-1)&&typeof FileReader!="undefined"?new t.Promise(function(C,_){var T=new FileReader;T.onload=function(w){C(w.target.result)},T.onerror=function(w){_(w.target.error)},T.readAsArrayBuffer(E)}):E}).then(function(E){var C=h.getTypeOf(E);return C?(C==="arraybuffer"?E=h.transformTo("uint8array",E):C==="string"&&(S?E=a.decode(E):v&&b!==!0&&(E=function(_){return e(_,u.uint8array?new Uint8Array(_.length):new Array(_.length))}(E))),E):t.Promise.reject(new Error("Can't read the data of '"+d+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(m,f,h){"use strict";var u=m("./reader/readerFor"),a=m("./utils"),i=m("./signature"),t=m("./zipEntry"),o=m("./support");function e(l){this.files=[],this.loadOptions=l}e.prototype={checkSignature:function(r){if(!this.reader.readAndCheckSignature(r)){this.reader.index-=4;var s=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(s)+", expected "+a.pretty(r)+")")}},isSignature:function(r,s){var c=this.reader.index;this.reader.setIndex(r);var d=this.reader.readString(4)===s;return this.reader.setIndex(c),d},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var r=this.reader.readData(this.zipCommentLength),s=o.uint8array?"uint8array":"array",c=a.transformTo(s,r);this.zipComment=this.loadOptions.decodeFileName(c)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var r,s,c,d=this.zip64EndOfCentralSize-44;0<d;)r=this.reader.readInt(2),s=this.reader.readInt(4),c=this.reader.readData(s),this.zip64ExtensibleData[r]={id:r,length:s,value:c}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var r,s;for(r=0;r<this.files.length;r++)s=this.files[r],this.reader.setIndex(s.localHeaderOffset),this.checkSignature(i.LOCAL_FILE_HEADER),s.readLocalPart(this.reader),s.handleUTF8(),s.processAttributes()},readCentralDir:function(){var r;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.CENTRAL_FILE_HEADER);)(r=new t({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(r);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var r=this.reader.lastIndexOfSignature(i.CENTRAL_DIRECTORY_END);if(r<0)throw this.isSignature(0,i.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(r);var s=r;if(this.checkSignature(i.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(r=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(r),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var c=this.centralDirOffset+this.centralDirSize;this.zip64&&(c+=20,c+=12+this.zip64EndOfCentralSize);var d=s-c;if(0<d)this.isSignature(s,i.CENTRAL_FILE_HEADER)||(this.reader.zero=d);else if(d<0)throw new Error("Corrupted zip: missing "+Math.abs(d)+" bytes.")},prepareReader:function(r){this.reader=u(r)},load:function(r){this.prepareReader(r),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},f.exports=e},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(m,f,h){"use strict";var u=m("./reader/readerFor"),a=m("./utils"),i=m("./compressedObject"),t=m("./crc32"),o=m("./utf8"),e=m("./compressions"),l=m("./support");function r(s,c){this.options=s,this.loadOptions=c}r.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(c){var d,g;if(c.skip(22),this.fileNameLength=c.readInt(2),g=c.readInt(2),this.fileName=c.readData(this.fileNameLength),c.skip(g),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((d=function(v){for(var b in e)if(Object.prototype.hasOwnProperty.call(e,b)&&e[b].magic===v)return e[b];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new i(this.compressedSize,this.uncompressedSize,this.crc32,d,c.readData(this.compressedSize))},readCentralPart:function(c){this.versionMadeBy=c.readInt(2),c.skip(2),this.bitFlag=c.readInt(2),this.compressionMethod=c.readString(2),this.date=c.readDate(),this.crc32=c.readInt(4),this.compressedSize=c.readInt(4),this.uncompressedSize=c.readInt(4);var d=c.readInt(2);if(this.extraFieldsLength=c.readInt(2),this.fileCommentLength=c.readInt(2),this.diskNumberStart=c.readInt(2),this.internalFileAttributes=c.readInt(2),this.externalFileAttributes=c.readInt(4),this.localHeaderOffset=c.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");c.skip(d),this.readExtraFields(c),this.parseZIP64ExtraField(c),this.fileComment=c.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var c=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),c==0&&(this.dosPermissions=63&this.externalFileAttributes),c==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var c=u(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=c.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=c.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=c.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=c.readInt(4))}},readExtraFields:function(c){var d,g,v,b=c.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});c.index+4<b;)d=c.readInt(2),g=c.readInt(2),v=c.readData(g),this.extraFields[d]={id:d,length:g,value:v};c.setIndex(b)},handleUTF8:function(){var c=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var d=this.findExtraFieldUnicodePath();if(d!==null)this.fileNameStr=d;else{var g=a.transformTo(c,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var v=this.findExtraFieldUnicodeComment();if(v!==null)this.fileCommentStr=v;else{var b=a.transformTo(c,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(b)}}},findExtraFieldUnicodePath:function(){var c=this.extraFields[28789];if(c){var d=u(c.value);return d.readInt(1)!==1||t(this.fileName)!==d.readInt(4)?null:o.utf8decode(d.readData(c.length-5))}return null},findExtraFieldUnicodeComment:function(){var c=this.extraFields[25461];if(c){var d=u(c.value);return d.readInt(1)!==1||t(this.fileComment)!==d.readInt(4)?null:o.utf8decode(d.readData(c.length-5))}return null}},f.exports=r},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(m,f,h){"use strict";function u(c,d,g){this.name=c,this.dir=g.dir,this.date=g.date,this.comment=g.comment,this.unixPermissions=g.unixPermissions,this.dosPermissions=g.dosPermissions,this._data=d,this._dataBinary=g.binary,this.options={compression:g.compression,compressionOptions:g.compressionOptions}}var a=m("./stream/StreamHelper"),i=m("./stream/DataWorker"),t=m("./utf8"),o=m("./compressedObject"),e=m("./stream/GenericWorker");u.prototype={internalStream:function(d){var g=null,v="string";try{if(!d)throw new Error("No output type specified.");var b=(v=d.toLowerCase())==="string"||v==="text";v!=="binarystring"&&v!=="text"||(v="string"),g=this._decompressWorker();var S=!this._dataBinary;S&&!b&&(g=g.pipe(new t.Utf8EncodeWorker)),!S&&b&&(g=g.pipe(new t.Utf8DecodeWorker))}catch(E){(g=new e("error")).error(E)}return new a(g,v,"")},async:function(d,g){return this.internalStream(d).accumulate(g)},nodeStream:function(d,g){return this.internalStream(d||"nodebuffer").toNodejsStream(g)},_compressWorker:function(d,g){if(this._data instanceof o&&this._data.compression.magic===d.magic)return this._data.getCompressedWorker();var v=this._decompressWorker();return this._dataBinary||(v=v.pipe(new t.Utf8EncodeWorker)),o.createWorkerFrom(v,d,g)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof e?this._data:new i(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],r=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},s=0;s<l.length;s++)u.prototype[l[s]]=r;f.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(m,f,h){(function(u){"use strict";var a,i,t=u.MutationObserver||u.WebKitMutationObserver;if(t){var o=0,e=new t(c),l=u.document.createTextNode("");e.observe(l,{characterData:!0}),a=function(){l.data=o=++o%2}}else if(u.setImmediate||u.MessageChannel===void 0)a="document"in u&&"onreadystatechange"in u.document.createElement("script")?function(){var d=u.document.createElement("script");d.onreadystatechange=function(){c(),d.onreadystatechange=null,d.parentNode.removeChild(d),d=null},u.document.documentElement.appendChild(d)}:function(){setTimeout(c,0)};else{var r=new u.MessageChannel;r.port1.onmessage=c,a=function(){r.port2.postMessage(0)}}var s=[];function c(){var d,g;i=!0;for(var v=s.length;v;){for(g=s,s=[],d=-1;++d<v;)g[d]();v=s.length}i=!1}f.exports=function(d){s.push(d)!==1||i||a()}}).call(this,typeof p!="undefined"?p:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(m,f,h){"use strict";var u=m("immediate");function a(){}var i={},t=["REJECTED"],o=["FULFILLED"],e=["PENDING"];function l(v){if(typeof v!="function")throw new TypeError("resolver must be a function");this.state=e,this.queue=[],this.outcome=void 0,v!==a&&d(this,v)}function r(v,b,S){this.promise=v,typeof b=="function"&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),typeof S=="function"&&(this.onRejected=S,this.callRejected=this.otherCallRejected)}function s(v,b,S){u(function(){var E;try{E=b(S)}catch(C){return i.reject(v,C)}E===v?i.reject(v,new TypeError("Cannot resolve promise with itself")):i.resolve(v,E)})}function c(v){var b=v&&v.then;if(v&&(typeof v=="object"||typeof v=="function")&&typeof b=="function")return function(){b.apply(v,arguments)}}function d(v,b){var S=!1;function E(T){S||(S=!0,i.reject(v,T))}function C(T){S||(S=!0,i.resolve(v,T))}var _=g(function(){b(C,E)});_.status==="error"&&E(_.value)}function g(v,b){var S={};try{S.value=v(b),S.status="success"}catch(E){S.status="error",S.value=E}return S}(f.exports=l).prototype.finally=function(v){if(typeof v!="function")return this;var b=this.constructor;return this.then(function(S){return b.resolve(v()).then(function(){return S})},function(S){return b.resolve(v()).then(function(){throw S})})},l.prototype.catch=function(v){return this.then(null,v)},l.prototype.then=function(v,b){if(typeof v!="function"&&this.state===o||typeof b!="function"&&this.state===t)return this;var S=new this.constructor(a);return this.state!==e?s(S,this.state===o?v:b,this.outcome):this.queue.push(new r(S,v,b)),S},r.prototype.callFulfilled=function(v){i.resolve(this.promise,v)},r.prototype.otherCallFulfilled=function(v){s(this.promise,this.onFulfilled,v)},r.prototype.callRejected=function(v){i.reject(this.promise,v)},r.prototype.otherCallRejected=function(v){s(this.promise,this.onRejected,v)},i.resolve=function(v,b){var S=g(c,b);if(S.status==="error")return i.reject(v,S.value);var E=S.value;if(E)d(v,E);else{v.state=o,v.outcome=b;for(var C=-1,_=v.queue.length;++C<_;)v.queue[C].callFulfilled(b)}return v},i.reject=function(v,b){v.state=t,v.outcome=b;for(var S=-1,E=v.queue.length;++S<E;)v.queue[S].callRejected(b);return v},l.resolve=function(v){return v instanceof this?v:i.resolve(new this(a),v)},l.reject=function(v){var b=new this(a);return i.reject(b,v)},l.all=function(v){var b=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=v.length,E=!1;if(!S)return this.resolve([]);for(var C=new Array(S),_=0,T=-1,w=new this(a);++T<S;)O(v[T],T);return w;function O(I,R){b.resolve(I).then(function(M){C[R]=M,++_!==S||E||(E=!0,i.resolve(w,C))},function(M){E||(E=!0,i.reject(w,M))})}},l.race=function(v){var b=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=v.length,E=!1;if(!S)return this.resolve([]);for(var C=-1,_=new this(a);++C<S;)T=v[C],b.resolve(T).then(function(w){E||(E=!0,i.resolve(_,w))},function(w){E||(E=!0,i.reject(_,w))});var T;return _}},{immediate:36}],38:[function(m,f,h){"use strict";var u={};(0,m("./lib/utils/common").assign)(u,m("./lib/deflate"),m("./lib/inflate"),m("./lib/zlib/constants")),f.exports=u},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(m,f,h){"use strict";var u=m("./zlib/deflate"),a=m("./utils/common"),i=m("./utils/strings"),t=m("./zlib/messages"),o=m("./zlib/zstream"),e=Object.prototype.toString,l=0,r=-1,s=0,c=8;function d(v){if(!(this instanceof d))return new d(v);this.options=a.assign({level:r,method:c,chunkSize:16384,windowBits:15,memLevel:8,strategy:s,to:""},v||{});var b=this.options;b.raw&&0<b.windowBits?b.windowBits=-b.windowBits:b.gzip&&0<b.windowBits&&b.windowBits<16&&(b.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var S=u.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(S!==l)throw new Error(t[S]);if(b.header&&u.deflateSetHeader(this.strm,b.header),b.dictionary){var E;if(E=typeof b.dictionary=="string"?i.string2buf(b.dictionary):e.call(b.dictionary)==="[object ArrayBuffer]"?new Uint8Array(b.dictionary):b.dictionary,(S=u.deflateSetDictionary(this.strm,E))!==l)throw new Error(t[S]);this._dict_set=!0}}function g(v,b){var S=new d(b);if(S.push(v,!0),S.err)throw S.msg||t[S.err];return S.result}d.prototype.push=function(v,b){var S,E,C=this.strm,_=this.options.chunkSize;if(this.ended)return!1;E=b===~~b?b:b===!0?4:0,typeof v=="string"?C.input=i.string2buf(v):e.call(v)==="[object ArrayBuffer]"?C.input=new Uint8Array(v):C.input=v,C.next_in=0,C.avail_in=C.input.length;do{if(C.avail_out===0&&(C.output=new a.Buf8(_),C.next_out=0,C.avail_out=_),(S=u.deflate(C,E))!==1&&S!==l)return this.onEnd(S),!(this.ended=!0);C.avail_out!==0&&(C.avail_in!==0||E!==4&&E!==2)||(this.options.to==="string"?this.onData(i.buf2binstring(a.shrinkBuf(C.output,C.next_out))):this.onData(a.shrinkBuf(C.output,C.next_out)))}while((0<C.avail_in||C.avail_out===0)&&S!==1);return E===4?(S=u.deflateEnd(this.strm),this.onEnd(S),this.ended=!0,S===l):E!==2||(this.onEnd(l),!(C.avail_out=0))},d.prototype.onData=function(v){this.chunks.push(v)},d.prototype.onEnd=function(v){v===l&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=v,this.msg=this.strm.msg},h.Deflate=d,h.deflate=g,h.deflateRaw=function(v,b){return(b=b||{}).raw=!0,g(v,b)},h.gzip=function(v,b){return(b=b||{}).gzip=!0,g(v,b)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(m,f,h){"use strict";var u=m("./zlib/inflate"),a=m("./utils/common"),i=m("./utils/strings"),t=m("./zlib/constants"),o=m("./zlib/messages"),e=m("./zlib/zstream"),l=m("./zlib/gzheader"),r=Object.prototype.toString;function s(d){if(!(this instanceof s))return new s(d);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},d||{});var g=this.options;g.raw&&0<=g.windowBits&&g.windowBits<16&&(g.windowBits=-g.windowBits,g.windowBits===0&&(g.windowBits=-15)),!(0<=g.windowBits&&g.windowBits<16)||d&&d.windowBits||(g.windowBits+=32),15<g.windowBits&&g.windowBits<48&&(15&g.windowBits)==0&&(g.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new e,this.strm.avail_out=0;var v=u.inflateInit2(this.strm,g.windowBits);if(v!==t.Z_OK)throw new Error(o[v]);this.header=new l,u.inflateGetHeader(this.strm,this.header)}function c(d,g){var v=new s(g);if(v.push(d,!0),v.err)throw v.msg||o[v.err];return v.result}s.prototype.push=function(d,g){var v,b,S,E,C,_,T=this.strm,w=this.options.chunkSize,O=this.options.dictionary,I=!1;if(this.ended)return!1;b=g===~~g?g:g===!0?t.Z_FINISH:t.Z_NO_FLUSH,typeof d=="string"?T.input=i.binstring2buf(d):r.call(d)==="[object ArrayBuffer]"?T.input=new Uint8Array(d):T.input=d,T.next_in=0,T.avail_in=T.input.length;do{if(T.avail_out===0&&(T.output=new a.Buf8(w),T.next_out=0,T.avail_out=w),(v=u.inflate(T,t.Z_NO_FLUSH))===t.Z_NEED_DICT&&O&&(_=typeof O=="string"?i.string2buf(O):r.call(O)==="[object ArrayBuffer]"?new Uint8Array(O):O,v=u.inflateSetDictionary(this.strm,_)),v===t.Z_BUF_ERROR&&I===!0&&(v=t.Z_OK,I=!1),v!==t.Z_STREAM_END&&v!==t.Z_OK)return this.onEnd(v),!(this.ended=!0);T.next_out&&(T.avail_out!==0&&v!==t.Z_STREAM_END&&(T.avail_in!==0||b!==t.Z_FINISH&&b!==t.Z_SYNC_FLUSH)||(this.options.to==="string"?(S=i.utf8border(T.output,T.next_out),E=T.next_out-S,C=i.buf2string(T.output,S),T.next_out=E,T.avail_out=w-E,E&&a.arraySet(T.output,T.output,S,E,0),this.onData(C)):this.onData(a.shrinkBuf(T.output,T.next_out)))),T.avail_in===0&&T.avail_out===0&&(I=!0)}while((0<T.avail_in||T.avail_out===0)&&v!==t.Z_STREAM_END);return v===t.Z_STREAM_END&&(b=t.Z_FINISH),b===t.Z_FINISH?(v=u.inflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===t.Z_OK):b!==t.Z_SYNC_FLUSH||(this.onEnd(t.Z_OK),!(T.avail_out=0))},s.prototype.onData=function(d){this.chunks.push(d)},s.prototype.onEnd=function(d){d===t.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg},h.Inflate=s,h.inflate=c,h.inflateRaw=function(d,g){return(g=g||{}).raw=!0,c(d,g)},h.ungzip=c},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(m,f,h){"use strict";var u=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";h.assign=function(t){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var e=o.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(var l in e)e.hasOwnProperty(l)&&(t[l]=e[l])}}return t},h.shrinkBuf=function(t,o){return t.length===o?t:t.subarray?t.subarray(0,o):(t.length=o,t)};var a={arraySet:function(o,e,l,r,s){if(e.subarray&&o.subarray)o.set(e.subarray(l,l+r),s);else for(var c=0;c<r;c++)o[s+c]=e[l+c]},flattenChunks:function(o){var e,l,r,s,c,d;for(e=r=0,l=o.length;e<l;e++)r+=o[e].length;for(d=new Uint8Array(r),e=s=0,l=o.length;e<l;e++)c=o[e],d.set(c,s),s+=c.length;return d}},i={arraySet:function(o,e,l,r,s){for(var c=0;c<r;c++)o[s+c]=e[l+c]},flattenChunks:function(o){return[].concat.apply([],o)}};h.setTyped=function(t){t?(h.Buf8=Uint8Array,h.Buf16=Uint16Array,h.Buf32=Int32Array,h.assign(h,a)):(h.Buf8=Array,h.Buf16=Array,h.Buf32=Array,h.assign(h,i))},h.setTyped(u)},{}],42:[function(m,f,h){"use strict";var u=m("./common"),a=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(l){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(l){i=!1}for(var t=new u.Buf8(256),o=0;o<256;o++)t[o]=252<=o?6:248<=o?5:240<=o?4:224<=o?3:192<=o?2:1;function e(l,r){if(r<65537&&(l.subarray&&i||!l.subarray&&a))return String.fromCharCode.apply(null,u.shrinkBuf(l,r));for(var s="",c=0;c<r;c++)s+=String.fromCharCode(l[c]);return s}t[254]=t[254]=1,h.string2buf=function(l){var r,s,c,d,g,v=l.length,b=0;for(d=0;d<v;d++)(64512&(s=l.charCodeAt(d)))==55296&&d+1<v&&(64512&(c=l.charCodeAt(d+1)))==56320&&(s=65536+(s-55296<<10)+(c-56320),d++),b+=s<128?1:s<2048?2:s<65536?3:4;for(r=new u.Buf8(b),d=g=0;g<b;d++)(64512&(s=l.charCodeAt(d)))==55296&&d+1<v&&(64512&(c=l.charCodeAt(d+1)))==56320&&(s=65536+(s-55296<<10)+(c-56320),d++),s<128?r[g++]=s:(s<2048?r[g++]=192|s>>>6:(s<65536?r[g++]=224|s>>>12:(r[g++]=240|s>>>18,r[g++]=128|s>>>12&63),r[g++]=128|s>>>6&63),r[g++]=128|63&s);return r},h.buf2binstring=function(l){return e(l,l.length)},h.binstring2buf=function(l){for(var r=new u.Buf8(l.length),s=0,c=r.length;s<c;s++)r[s]=l.charCodeAt(s);return r},h.buf2string=function(l,r){var s,c,d,g,v=r||l.length,b=new Array(2*v);for(s=c=0;s<v;)if((d=l[s++])<128)b[c++]=d;else if(4<(g=t[d]))b[c++]=65533,s+=g-1;else{for(d&=g===2?31:g===3?15:7;1<g&&s<v;)d=d<<6|63&l[s++],g--;1<g?b[c++]=65533:d<65536?b[c++]=d:(d-=65536,b[c++]=55296|d>>10&1023,b[c++]=56320|1023&d)}return e(b,c)},h.utf8border=function(l,r){var s;for((r=r||l.length)>l.length&&(r=l.length),s=r-1;0<=s&&(192&l[s])==128;)s--;return s<0||s===0?r:s+t[l[s]]>r?s:r}},{"./common":41}],43:[function(m,f,h){"use strict";f.exports=function(u,a,i,t){for(var o=65535&u|0,e=u>>>16&65535|0,l=0;i!==0;){for(i-=l=2e3<i?2e3:i;e=e+(o=o+a[t++]|0)|0,--l;);o%=65521,e%=65521}return o|e<<16|0}},{}],44:[function(m,f,h){"use strict";f.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(m,f,h){"use strict";var u=function(){for(var a,i=[],t=0;t<256;t++){a=t;for(var o=0;o<8;o++)a=1&a?3988292384^a>>>1:a>>>1;i[t]=a}return i}();f.exports=function(a,i,t,o){var e=u,l=o+t;a^=-1;for(var r=o;r<l;r++)a=a>>>8^e[255&(a^i[r])];return-1^a}},{}],46:[function(m,f,h){"use strict";var u,a=m("../utils/common"),i=m("./trees"),t=m("./adler32"),o=m("./crc32"),e=m("./messages"),l=0,r=4,s=0,c=-2,d=-1,g=4,v=2,b=8,S=9,E=286,C=30,_=19,T=2*E+1,w=15,O=3,I=258,R=I+O+1,M=42,F=113,P=1,X=2,B=3,j=4;function W(oe,st){return oe.msg=e[st],st}function z(oe){return(oe<<1)-(4<oe?9:0)}function V(oe){for(var st=oe.length;0<=--st;)oe[st]=0}function Q(oe){var st=oe.state,he=st.pending;he>oe.avail_out&&(he=oe.avail_out),he!==0&&(a.arraySet(oe.output,st.pending_buf,st.pending_out,he,oe.next_out),oe.next_out+=he,st.pending_out+=he,oe.total_out+=he,oe.avail_out-=he,st.pending-=he,st.pending===0&&(st.pending_out=0))}function G(oe,st){i._tr_flush_block(oe,0<=oe.block_start?oe.block_start:-1,oe.strstart-oe.block_start,st),oe.block_start=oe.strstart,Q(oe.strm)}function ee(oe,st){oe.pending_buf[oe.pending++]=st}function ce(oe,st){oe.pending_buf[oe.pending++]=st>>>8&255,oe.pending_buf[oe.pending++]=255&st}function be(oe,st){var he,J,Y=oe.max_chain_length,$=oe.strstart,fe=oe.prev_length,we=oe.nice_match,Ne=oe.strstart>oe.w_size-R?oe.strstart-(oe.w_size-R):0,Ee=oe.window,de=oe.w_mask,me=oe.prev,Le=oe.strstart+I,tt=Ee[$+fe-1],At=Ee[$+fe];oe.prev_length>=oe.good_match&&(Y>>=2),we>oe.lookahead&&(we=oe.lookahead);do if(Ee[(he=st)+fe]===At&&Ee[he+fe-1]===tt&&Ee[he]===Ee[$]&&Ee[++he]===Ee[$+1]){$+=2,he++;do;while(Ee[++$]===Ee[++he]&&Ee[++$]===Ee[++he]&&Ee[++$]===Ee[++he]&&Ee[++$]===Ee[++he]&&Ee[++$]===Ee[++he]&&Ee[++$]===Ee[++he]&&Ee[++$]===Ee[++he]&&Ee[++$]===Ee[++he]&&$<Le);if(J=I-(Le-$),$=Le-I,fe<J){if(oe.match_start=st,we<=(fe=J))break;tt=Ee[$+fe-1],At=Ee[$+fe]}}while((st=me[st&de])>Ne&&--Y!=0);return fe<=oe.lookahead?fe:oe.lookahead}function le(oe){var st,he,J,Y,$,fe,we,Ne,Ee,de,me=oe.w_size;do{if(Y=oe.window_size-oe.lookahead-oe.strstart,oe.strstart>=me+(me-R)){for(a.arraySet(oe.window,oe.window,me,me,0),oe.match_start-=me,oe.strstart-=me,oe.block_start-=me,st=he=oe.hash_size;J=oe.head[--st],oe.head[st]=me<=J?J-me:0,--he;);for(st=he=me;J=oe.prev[--st],oe.prev[st]=me<=J?J-me:0,--he;);Y+=me}if(oe.strm.avail_in===0)break;if(fe=oe.strm,we=oe.window,Ne=oe.strstart+oe.lookahead,Ee=Y,de=void 0,de=fe.avail_in,Ee<de&&(de=Ee),he=de===0?0:(fe.avail_in-=de,a.arraySet(we,fe.input,fe.next_in,de,Ne),fe.state.wrap===1?fe.adler=t(fe.adler,we,de,Ne):fe.state.wrap===2&&(fe.adler=o(fe.adler,we,de,Ne)),fe.next_in+=de,fe.total_in+=de,de),oe.lookahead+=he,oe.lookahead+oe.insert>=O)for($=oe.strstart-oe.insert,oe.ins_h=oe.window[$],oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[$+1])&oe.hash_mask;oe.insert&&(oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[$+O-1])&oe.hash_mask,oe.prev[$&oe.w_mask]=oe.head[oe.ins_h],oe.head[oe.ins_h]=$,$++,oe.insert--,!(oe.lookahead+oe.insert<O)););}while(oe.lookahead<R&&oe.strm.avail_in!==0)}function Ie(oe,st){for(var he,J;;){if(oe.lookahead<R){if(le(oe),oe.lookahead<R&&st===l)return P;if(oe.lookahead===0)break}if(he=0,oe.lookahead>=O&&(oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[oe.strstart+O-1])&oe.hash_mask,he=oe.prev[oe.strstart&oe.w_mask]=oe.head[oe.ins_h],oe.head[oe.ins_h]=oe.strstart),he!==0&&oe.strstart-he<=oe.w_size-R&&(oe.match_length=be(oe,he)),oe.match_length>=O)if(J=i._tr_tally(oe,oe.strstart-oe.match_start,oe.match_length-O),oe.lookahead-=oe.match_length,oe.match_length<=oe.max_lazy_match&&oe.lookahead>=O){for(oe.match_length--;oe.strstart++,oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[oe.strstart+O-1])&oe.hash_mask,he=oe.prev[oe.strstart&oe.w_mask]=oe.head[oe.ins_h],oe.head[oe.ins_h]=oe.strstart,--oe.match_length!=0;);oe.strstart++}else oe.strstart+=oe.match_length,oe.match_length=0,oe.ins_h=oe.window[oe.strstart],oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[oe.strstart+1])&oe.hash_mask;else J=i._tr_tally(oe,0,oe.window[oe.strstart]),oe.lookahead--,oe.strstart++;if(J&&(G(oe,!1),oe.strm.avail_out===0))return P}return oe.insert=oe.strstart<O-1?oe.strstart:O-1,st===r?(G(oe,!0),oe.strm.avail_out===0?B:j):oe.last_lit&&(G(oe,!1),oe.strm.avail_out===0)?P:X}function ke(oe,st){for(var he,J,Y;;){if(oe.lookahead<R){if(le(oe),oe.lookahead<R&&st===l)return P;if(oe.lookahead===0)break}if(he=0,oe.lookahead>=O&&(oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[oe.strstart+O-1])&oe.hash_mask,he=oe.prev[oe.strstart&oe.w_mask]=oe.head[oe.ins_h],oe.head[oe.ins_h]=oe.strstart),oe.prev_length=oe.match_length,oe.prev_match=oe.match_start,oe.match_length=O-1,he!==0&&oe.prev_length<oe.max_lazy_match&&oe.strstart-he<=oe.w_size-R&&(oe.match_length=be(oe,he),oe.match_length<=5&&(oe.strategy===1||oe.match_length===O&&4096<oe.strstart-oe.match_start)&&(oe.match_length=O-1)),oe.prev_length>=O&&oe.match_length<=oe.prev_length){for(Y=oe.strstart+oe.lookahead-O,J=i._tr_tally(oe,oe.strstart-1-oe.prev_match,oe.prev_length-O),oe.lookahead-=oe.prev_length-1,oe.prev_length-=2;++oe.strstart<=Y&&(oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[oe.strstart+O-1])&oe.hash_mask,he=oe.prev[oe.strstart&oe.w_mask]=oe.head[oe.ins_h],oe.head[oe.ins_h]=oe.strstart),--oe.prev_length!=0;);if(oe.match_available=0,oe.match_length=O-1,oe.strstart++,J&&(G(oe,!1),oe.strm.avail_out===0))return P}else if(oe.match_available){if((J=i._tr_tally(oe,0,oe.window[oe.strstart-1]))&&G(oe,!1),oe.strstart++,oe.lookahead--,oe.strm.avail_out===0)return P}else oe.match_available=1,oe.strstart++,oe.lookahead--}return oe.match_available&&(J=i._tr_tally(oe,0,oe.window[oe.strstart-1]),oe.match_available=0),oe.insert=oe.strstart<O-1?oe.strstart:O-1,st===r?(G(oe,!0),oe.strm.avail_out===0?B:j):oe.last_lit&&(G(oe,!1),oe.strm.avail_out===0)?P:X}function Re(oe,st,he,J,Y){this.good_length=oe,this.max_lazy=st,this.nice_length=he,this.max_chain=J,this.func=Y}function Qe(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=b,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new a.Buf16(2*T),this.dyn_dtree=new a.Buf16(2*(2*C+1)),this.bl_tree=new a.Buf16(2*(2*_+1)),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(w+1),this.heap=new a.Buf16(2*E+1),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*E+1),V(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function We(oe){var st;return oe&&oe.state?(oe.total_in=oe.total_out=0,oe.data_type=v,(st=oe.state).pending=0,st.pending_out=0,st.wrap<0&&(st.wrap=-st.wrap),st.status=st.wrap?M:F,oe.adler=st.wrap===2?0:1,st.last_flush=l,i._tr_init(st),s):W(oe,c)}function ot(oe){var st=We(oe);return st===s&&function(he){he.window_size=2*he.w_size,V(he.head),he.max_lazy_match=u[he.level].max_lazy,he.good_match=u[he.level].good_length,he.nice_match=u[he.level].nice_length,he.max_chain_length=u[he.level].max_chain,he.strstart=0,he.block_start=0,he.lookahead=0,he.insert=0,he.match_length=he.prev_length=O-1,he.match_available=0,he.ins_h=0}(oe.state),st}function Oe(oe,st,he,J,Y,$){if(!oe)return c;var fe=1;if(st===d&&(st=6),J<0?(fe=0,J=-J):15<J&&(fe=2,J-=16),Y<1||S<Y||he!==b||J<8||15<J||st<0||9<st||$<0||g<$)return W(oe,c);J===8&&(J=9);var we=new Qe;return(oe.state=we).strm=oe,we.wrap=fe,we.gzhead=null,we.w_bits=J,we.w_size=1<<we.w_bits,we.w_mask=we.w_size-1,we.hash_bits=Y+7,we.hash_size=1<<we.hash_bits,we.hash_mask=we.hash_size-1,we.hash_shift=~~((we.hash_bits+O-1)/O),we.window=new a.Buf8(2*we.w_size),we.head=new a.Buf16(we.hash_size),we.prev=new a.Buf16(we.w_size),we.lit_bufsize=1<<Y+6,we.pending_buf_size=4*we.lit_bufsize,we.pending_buf=new a.Buf8(we.pending_buf_size),we.d_buf=1*we.lit_bufsize,we.l_buf=3*we.lit_bufsize,we.level=st,we.strategy=$,we.method=he,ot(oe)}u=[new Re(0,0,0,0,function(oe,st){var he=65535;for(he>oe.pending_buf_size-5&&(he=oe.pending_buf_size-5);;){if(oe.lookahead<=1){if(le(oe),oe.lookahead===0&&st===l)return P;if(oe.lookahead===0)break}oe.strstart+=oe.lookahead,oe.lookahead=0;var J=oe.block_start+he;if((oe.strstart===0||oe.strstart>=J)&&(oe.lookahead=oe.strstart-J,oe.strstart=J,G(oe,!1),oe.strm.avail_out===0))return P;if(oe.strstart-oe.block_start>=oe.w_size-R&&(G(oe,!1),oe.strm.avail_out===0))return P}return oe.insert=0,st===r?(G(oe,!0),oe.strm.avail_out===0?B:j):(oe.strstart>oe.block_start&&(G(oe,!1),oe.strm.avail_out),P)}),new Re(4,4,8,4,Ie),new Re(4,5,16,8,Ie),new Re(4,6,32,32,Ie),new Re(4,4,16,16,ke),new Re(8,16,32,32,ke),new Re(8,16,128,128,ke),new Re(8,32,128,256,ke),new Re(32,128,258,1024,ke),new Re(32,258,258,4096,ke)],h.deflateInit=function(oe,st){return Oe(oe,st,b,15,8,0)},h.deflateInit2=Oe,h.deflateReset=ot,h.deflateResetKeep=We,h.deflateSetHeader=function(oe,st){return oe&&oe.state?oe.state.wrap!==2?c:(oe.state.gzhead=st,s):c},h.deflate=function(oe,st){var he,J,Y,$;if(!oe||!oe.state||5<st||st<0)return oe?W(oe,c):c;if(J=oe.state,!oe.output||!oe.input&&oe.avail_in!==0||J.status===666&&st!==r)return W(oe,oe.avail_out===0?-5:c);if(J.strm=oe,he=J.last_flush,J.last_flush=st,J.status===M)if(J.wrap===2)oe.adler=0,ee(J,31),ee(J,139),ee(J,8),J.gzhead?(ee(J,(J.gzhead.text?1:0)+(J.gzhead.hcrc?2:0)+(J.gzhead.extra?4:0)+(J.gzhead.name?8:0)+(J.gzhead.comment?16:0)),ee(J,255&J.gzhead.time),ee(J,J.gzhead.time>>8&255),ee(J,J.gzhead.time>>16&255),ee(J,J.gzhead.time>>24&255),ee(J,J.level===9?2:2<=J.strategy||J.level<2?4:0),ee(J,255&J.gzhead.os),J.gzhead.extra&&J.gzhead.extra.length&&(ee(J,255&J.gzhead.extra.length),ee(J,J.gzhead.extra.length>>8&255)),J.gzhead.hcrc&&(oe.adler=o(oe.adler,J.pending_buf,J.pending,0)),J.gzindex=0,J.status=69):(ee(J,0),ee(J,0),ee(J,0),ee(J,0),ee(J,0),ee(J,J.level===9?2:2<=J.strategy||J.level<2?4:0),ee(J,3),J.status=F);else{var fe=b+(J.w_bits-8<<4)<<8;fe|=(2<=J.strategy||J.level<2?0:J.level<6?1:J.level===6?2:3)<<6,J.strstart!==0&&(fe|=32),fe+=31-fe%31,J.status=F,ce(J,fe),J.strstart!==0&&(ce(J,oe.adler>>>16),ce(J,65535&oe.adler)),oe.adler=1}if(J.status===69)if(J.gzhead.extra){for(Y=J.pending;J.gzindex<(65535&J.gzhead.extra.length)&&(J.pending!==J.pending_buf_size||(J.gzhead.hcrc&&J.pending>Y&&(oe.adler=o(oe.adler,J.pending_buf,J.pending-Y,Y)),Q(oe),Y=J.pending,J.pending!==J.pending_buf_size));)ee(J,255&J.gzhead.extra[J.gzindex]),J.gzindex++;J.gzhead.hcrc&&J.pending>Y&&(oe.adler=o(oe.adler,J.pending_buf,J.pending-Y,Y)),J.gzindex===J.gzhead.extra.length&&(J.gzindex=0,J.status=73)}else J.status=73;if(J.status===73)if(J.gzhead.name){Y=J.pending;do{if(J.pending===J.pending_buf_size&&(J.gzhead.hcrc&&J.pending>Y&&(oe.adler=o(oe.adler,J.pending_buf,J.pending-Y,Y)),Q(oe),Y=J.pending,J.pending===J.pending_buf_size)){$=1;break}$=J.gzindex<J.gzhead.name.length?255&J.gzhead.name.charCodeAt(J.gzindex++):0,ee(J,$)}while($!==0);J.gzhead.hcrc&&J.pending>Y&&(oe.adler=o(oe.adler,J.pending_buf,J.pending-Y,Y)),$===0&&(J.gzindex=0,J.status=91)}else J.status=91;if(J.status===91)if(J.gzhead.comment){Y=J.pending;do{if(J.pending===J.pending_buf_size&&(J.gzhead.hcrc&&J.pending>Y&&(oe.adler=o(oe.adler,J.pending_buf,J.pending-Y,Y)),Q(oe),Y=J.pending,J.pending===J.pending_buf_size)){$=1;break}$=J.gzindex<J.gzhead.comment.length?255&J.gzhead.comment.charCodeAt(J.gzindex++):0,ee(J,$)}while($!==0);J.gzhead.hcrc&&J.pending>Y&&(oe.adler=o(oe.adler,J.pending_buf,J.pending-Y,Y)),$===0&&(J.status=103)}else J.status=103;if(J.status===103&&(J.gzhead.hcrc?(J.pending+2>J.pending_buf_size&&Q(oe),J.pending+2<=J.pending_buf_size&&(ee(J,255&oe.adler),ee(J,oe.adler>>8&255),oe.adler=0,J.status=F)):J.status=F),J.pending!==0){if(Q(oe),oe.avail_out===0)return J.last_flush=-1,s}else if(oe.avail_in===0&&z(st)<=z(he)&&st!==r)return W(oe,-5);if(J.status===666&&oe.avail_in!==0)return W(oe,-5);if(oe.avail_in!==0||J.lookahead!==0||st!==l&&J.status!==666){var we=J.strategy===2?function(Ne,Ee){for(var de;;){if(Ne.lookahead===0&&(le(Ne),Ne.lookahead===0)){if(Ee===l)return P;break}if(Ne.match_length=0,de=i._tr_tally(Ne,0,Ne.window[Ne.strstart]),Ne.lookahead--,Ne.strstart++,de&&(G(Ne,!1),Ne.strm.avail_out===0))return P}return Ne.insert=0,Ee===r?(G(Ne,!0),Ne.strm.avail_out===0?B:j):Ne.last_lit&&(G(Ne,!1),Ne.strm.avail_out===0)?P:X}(J,st):J.strategy===3?function(Ne,Ee){for(var de,me,Le,tt,At=Ne.window;;){if(Ne.lookahead<=I){if(le(Ne),Ne.lookahead<=I&&Ee===l)return P;if(Ne.lookahead===0)break}if(Ne.match_length=0,Ne.lookahead>=O&&0<Ne.strstart&&(me=At[Le=Ne.strstart-1])===At[++Le]&&me===At[++Le]&&me===At[++Le]){tt=Ne.strstart+I;do;while(me===At[++Le]&&me===At[++Le]&&me===At[++Le]&&me===At[++Le]&&me===At[++Le]&&me===At[++Le]&&me===At[++Le]&&me===At[++Le]&&Le<tt);Ne.match_length=I-(tt-Le),Ne.match_length>Ne.lookahead&&(Ne.match_length=Ne.lookahead)}if(Ne.match_length>=O?(de=i._tr_tally(Ne,1,Ne.match_length-O),Ne.lookahead-=Ne.match_length,Ne.strstart+=Ne.match_length,Ne.match_length=0):(de=i._tr_tally(Ne,0,Ne.window[Ne.strstart]),Ne.lookahead--,Ne.strstart++),de&&(G(Ne,!1),Ne.strm.avail_out===0))return P}return Ne.insert=0,Ee===r?(G(Ne,!0),Ne.strm.avail_out===0?B:j):Ne.last_lit&&(G(Ne,!1),Ne.strm.avail_out===0)?P:X}(J,st):u[J.level].func(J,st);if(we!==B&&we!==j||(J.status=666),we===P||we===B)return oe.avail_out===0&&(J.last_flush=-1),s;if(we===X&&(st===1?i._tr_align(J):st!==5&&(i._tr_stored_block(J,0,0,!1),st===3&&(V(J.head),J.lookahead===0&&(J.strstart=0,J.block_start=0,J.insert=0))),Q(oe),oe.avail_out===0))return J.last_flush=-1,s}return st!==r?s:J.wrap<=0?1:(J.wrap===2?(ee(J,255&oe.adler),ee(J,oe.adler>>8&255),ee(J,oe.adler>>16&255),ee(J,oe.adler>>24&255),ee(J,255&oe.total_in),ee(J,oe.total_in>>8&255),ee(J,oe.total_in>>16&255),ee(J,oe.total_in>>24&255)):(ce(J,oe.adler>>>16),ce(J,65535&oe.adler)),Q(oe),0<J.wrap&&(J.wrap=-J.wrap),J.pending!==0?s:1)},h.deflateEnd=function(oe){var st;return oe&&oe.state?(st=oe.state.status)!==M&&st!==69&&st!==73&&st!==91&&st!==103&&st!==F&&st!==666?W(oe,c):(oe.state=null,st===F?W(oe,-3):s):c},h.deflateSetDictionary=function(oe,st){var he,J,Y,$,fe,we,Ne,Ee,de=st.length;if(!oe||!oe.state)return c;if(($=(he=oe.state).wrap)===2||$===1&&he.status!==M||he.lookahead)return c;for($===1&&(oe.adler=t(oe.adler,st,de,0)),he.wrap=0,de>=he.w_size&&($===0&&(V(he.head),he.strstart=0,he.block_start=0,he.insert=0),Ee=new a.Buf8(he.w_size),a.arraySet(Ee,st,de-he.w_size,he.w_size,0),st=Ee,de=he.w_size),fe=oe.avail_in,we=oe.next_in,Ne=oe.input,oe.avail_in=de,oe.next_in=0,oe.input=st,le(he);he.lookahead>=O;){for(J=he.strstart,Y=he.lookahead-(O-1);he.ins_h=(he.ins_h<<he.hash_shift^he.window[J+O-1])&he.hash_mask,he.prev[J&he.w_mask]=he.head[he.ins_h],he.head[he.ins_h]=J,J++,--Y;);he.strstart=J,he.lookahead=O-1,le(he)}return he.strstart+=he.lookahead,he.block_start=he.strstart,he.insert=he.lookahead,he.lookahead=0,he.match_length=he.prev_length=O-1,he.match_available=0,oe.next_in=we,oe.input=Ne,oe.avail_in=fe,he.wrap=$,s},h.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(m,f,h){"use strict";f.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(m,f,h){"use strict";f.exports=function(u,a){var i,t,o,e,l,r,s,c,d,g,v,b,S,E,C,_,T,w,O,I,R,M,F,P,X;i=u.state,t=u.next_in,P=u.input,o=t+(u.avail_in-5),e=u.next_out,X=u.output,l=e-(a-u.avail_out),r=e+(u.avail_out-257),s=i.dmax,c=i.wsize,d=i.whave,g=i.wnext,v=i.window,b=i.hold,S=i.bits,E=i.lencode,C=i.distcode,_=(1<<i.lenbits)-1,T=(1<<i.distbits)-1;e:do{S<15&&(b+=P[t++]<<S,S+=8,b+=P[t++]<<S,S+=8),w=E[b&_];t:for(;;){if(b>>>=O=w>>>24,S-=O,(O=w>>>16&255)===0)X[e++]=65535&w;else{if(!(16&O)){if((64&O)==0){w=E[(65535&w)+(b&(1<<O)-1)];continue t}if(32&O){i.mode=12;break e}u.msg="invalid literal/length code",i.mode=30;break e}I=65535&w,(O&=15)&&(S<O&&(b+=P[t++]<<S,S+=8),I+=b&(1<<O)-1,b>>>=O,S-=O),S<15&&(b+=P[t++]<<S,S+=8,b+=P[t++]<<S,S+=8),w=C[b&T];r:for(;;){if(b>>>=O=w>>>24,S-=O,!(16&(O=w>>>16&255))){if((64&O)==0){w=C[(65535&w)+(b&(1<<O)-1)];continue r}u.msg="invalid distance code",i.mode=30;break e}if(R=65535&w,S<(O&=15)&&(b+=P[t++]<<S,(S+=8)<O&&(b+=P[t++]<<S,S+=8)),s<(R+=b&(1<<O)-1)){u.msg="invalid distance too far back",i.mode=30;break e}if(b>>>=O,S-=O,(O=e-l)<R){if(d<(O=R-O)&&i.sane){u.msg="invalid distance too far back",i.mode=30;break e}if(F=v,(M=0)===g){if(M+=c-O,O<I){for(I-=O;X[e++]=v[M++],--O;);M=e-R,F=X}}else if(g<O){if(M+=c+g-O,(O-=g)<I){for(I-=O;X[e++]=v[M++],--O;);if(M=0,g<I){for(I-=O=g;X[e++]=v[M++],--O;);M=e-R,F=X}}}else if(M+=g-O,O<I){for(I-=O;X[e++]=v[M++],--O;);M=e-R,F=X}for(;2<I;)X[e++]=F[M++],X[e++]=F[M++],X[e++]=F[M++],I-=3;I&&(X[e++]=F[M++],1<I&&(X[e++]=F[M++]))}else{for(M=e-R;X[e++]=X[M++],X[e++]=X[M++],X[e++]=X[M++],2<(I-=3););I&&(X[e++]=X[M++],1<I&&(X[e++]=X[M++]))}break}}break}}while(t<o&&e<r);t-=I=S>>3,b&=(1<<(S-=I<<3))-1,u.next_in=t,u.next_out=e,u.avail_in=t<o?o-t+5:5-(t-o),u.avail_out=e<r?r-e+257:257-(e-r),i.hold=b,i.bits=S}},{}],49:[function(m,f,h){"use strict";var u=m("../utils/common"),a=m("./adler32"),i=m("./crc32"),t=m("./inffast"),o=m("./inftrees"),e=1,l=2,r=0,s=-2,c=1,d=852,g=592;function v(M){return(M>>>24&255)+(M>>>8&65280)+((65280&M)<<8)+((255&M)<<24)}function b(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function S(M){var F;return M&&M.state?(F=M.state,M.total_in=M.total_out=F.total=0,M.msg="",F.wrap&&(M.adler=1&F.wrap),F.mode=c,F.last=0,F.havedict=0,F.dmax=32768,F.head=null,F.hold=0,F.bits=0,F.lencode=F.lendyn=new u.Buf32(d),F.distcode=F.distdyn=new u.Buf32(g),F.sane=1,F.back=-1,r):s}function E(M){var F;return M&&M.state?((F=M.state).wsize=0,F.whave=0,F.wnext=0,S(M)):s}function C(M,F){var P,X;return M&&M.state?(X=M.state,F<0?(P=0,F=-F):(P=1+(F>>4),F<48&&(F&=15)),F&&(F<8||15<F)?s:(X.window!==null&&X.wbits!==F&&(X.window=null),X.wrap=P,X.wbits=F,E(M))):s}function _(M,F){var P,X;return M?(X=new b,(M.state=X).window=null,(P=C(M,F))!==r&&(M.state=null),P):s}var T,w,O=!0;function I(M){if(O){var F;for(T=new u.Buf32(512),w=new u.Buf32(32),F=0;F<144;)M.lens[F++]=8;for(;F<256;)M.lens[F++]=9;for(;F<280;)M.lens[F++]=7;for(;F<288;)M.lens[F++]=8;for(o(e,M.lens,0,288,T,0,M.work,{bits:9}),F=0;F<32;)M.lens[F++]=5;o(l,M.lens,0,32,w,0,M.work,{bits:5}),O=!1}M.lencode=T,M.lenbits=9,M.distcode=w,M.distbits=5}function R(M,F,P,X){var B,j=M.state;return j.window===null&&(j.wsize=1<<j.wbits,j.wnext=0,j.whave=0,j.window=new u.Buf8(j.wsize)),X>=j.wsize?(u.arraySet(j.window,F,P-j.wsize,j.wsize,0),j.wnext=0,j.whave=j.wsize):(X<(B=j.wsize-j.wnext)&&(B=X),u.arraySet(j.window,F,P-X,B,j.wnext),(X-=B)?(u.arraySet(j.window,F,P-X,X,0),j.wnext=X,j.whave=j.wsize):(j.wnext+=B,j.wnext===j.wsize&&(j.wnext=0),j.whave<j.wsize&&(j.whave+=B))),0}h.inflateReset=E,h.inflateReset2=C,h.inflateResetKeep=S,h.inflateInit=function(M){return _(M,15)},h.inflateInit2=_,h.inflate=function(M,F){var P,X,B,j,W,z,V,Q,G,ee,ce,be,le,Ie,ke,Re,Qe,We,ot,Oe,oe,st,he,J,Y=0,$=new u.Buf8(4),fe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!M||!M.state||!M.output||!M.input&&M.avail_in!==0)return s;(P=M.state).mode===12&&(P.mode=13),W=M.next_out,B=M.output,V=M.avail_out,j=M.next_in,X=M.input,z=M.avail_in,Q=P.hold,G=P.bits,ee=z,ce=V,st=r;e:for(;;)switch(P.mode){case c:if(P.wrap===0){P.mode=13;break}for(;G<16;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(2&P.wrap&&Q===35615){$[P.check=0]=255&Q,$[1]=Q>>>8&255,P.check=i(P.check,$,2,0),G=Q=0,P.mode=2;break}if(P.flags=0,P.head&&(P.head.done=!1),!(1&P.wrap)||(((255&Q)<<8)+(Q>>8))%31){M.msg="incorrect header check",P.mode=30;break}if((15&Q)!=8){M.msg="unknown compression method",P.mode=30;break}if(G-=4,oe=8+(15&(Q>>>=4)),P.wbits===0)P.wbits=oe;else if(oe>P.wbits){M.msg="invalid window size",P.mode=30;break}P.dmax=1<<oe,M.adler=P.check=1,P.mode=512&Q?10:12,G=Q=0;break;case 2:for(;G<16;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(P.flags=Q,(255&P.flags)!=8){M.msg="unknown compression method",P.mode=30;break}if(57344&P.flags){M.msg="unknown header flags set",P.mode=30;break}P.head&&(P.head.text=Q>>8&1),512&P.flags&&($[0]=255&Q,$[1]=Q>>>8&255,P.check=i(P.check,$,2,0)),G=Q=0,P.mode=3;case 3:for(;G<32;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.head&&(P.head.time=Q),512&P.flags&&($[0]=255&Q,$[1]=Q>>>8&255,$[2]=Q>>>16&255,$[3]=Q>>>24&255,P.check=i(P.check,$,4,0)),G=Q=0,P.mode=4;case 4:for(;G<16;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.head&&(P.head.xflags=255&Q,P.head.os=Q>>8),512&P.flags&&($[0]=255&Q,$[1]=Q>>>8&255,P.check=i(P.check,$,2,0)),G=Q=0,P.mode=5;case 5:if(1024&P.flags){for(;G<16;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.length=Q,P.head&&(P.head.extra_len=Q),512&P.flags&&($[0]=255&Q,$[1]=Q>>>8&255,P.check=i(P.check,$,2,0)),G=Q=0}else P.head&&(P.head.extra=null);P.mode=6;case 6:if(1024&P.flags&&(z<(be=P.length)&&(be=z),be&&(P.head&&(oe=P.head.extra_len-P.length,P.head.extra||(P.head.extra=new Array(P.head.extra_len)),u.arraySet(P.head.extra,X,j,be,oe)),512&P.flags&&(P.check=i(P.check,X,be,j)),z-=be,j+=be,P.length-=be),P.length))break e;P.length=0,P.mode=7;case 7:if(2048&P.flags){if(z===0)break e;for(be=0;oe=X[j+be++],P.head&&oe&&P.length<65536&&(P.head.name+=String.fromCharCode(oe)),oe&&be<z;);if(512&P.flags&&(P.check=i(P.check,X,be,j)),z-=be,j+=be,oe)break e}else P.head&&(P.head.name=null);P.length=0,P.mode=8;case 8:if(4096&P.flags){if(z===0)break e;for(be=0;oe=X[j+be++],P.head&&oe&&P.length<65536&&(P.head.comment+=String.fromCharCode(oe)),oe&&be<z;);if(512&P.flags&&(P.check=i(P.check,X,be,j)),z-=be,j+=be,oe)break e}else P.head&&(P.head.comment=null);P.mode=9;case 9:if(512&P.flags){for(;G<16;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(Q!==(65535&P.check)){M.msg="header crc mismatch",P.mode=30;break}G=Q=0}P.head&&(P.head.hcrc=P.flags>>9&1,P.head.done=!0),M.adler=P.check=0,P.mode=12;break;case 10:for(;G<32;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}M.adler=P.check=v(Q),G=Q=0,P.mode=11;case 11:if(P.havedict===0)return M.next_out=W,M.avail_out=V,M.next_in=j,M.avail_in=z,P.hold=Q,P.bits=G,2;M.adler=P.check=1,P.mode=12;case 12:if(F===5||F===6)break e;case 13:if(P.last){Q>>>=7&G,G-=7&G,P.mode=27;break}for(;G<3;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}switch(P.last=1&Q,G-=1,3&(Q>>>=1)){case 0:P.mode=14;break;case 1:if(I(P),P.mode=20,F!==6)break;Q>>>=2,G-=2;break e;case 2:P.mode=17;break;case 3:M.msg="invalid block type",P.mode=30}Q>>>=2,G-=2;break;case 14:for(Q>>>=7&G,G-=7&G;G<32;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if((65535&Q)!=(Q>>>16^65535)){M.msg="invalid stored block lengths",P.mode=30;break}if(P.length=65535&Q,G=Q=0,P.mode=15,F===6)break e;case 15:P.mode=16;case 16:if(be=P.length){if(z<be&&(be=z),V<be&&(be=V),be===0)break e;u.arraySet(B,X,j,be,W),z-=be,j+=be,V-=be,W+=be,P.length-=be;break}P.mode=12;break;case 17:for(;G<14;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(P.nlen=257+(31&Q),Q>>>=5,G-=5,P.ndist=1+(31&Q),Q>>>=5,G-=5,P.ncode=4+(15&Q),Q>>>=4,G-=4,286<P.nlen||30<P.ndist){M.msg="too many length or distance symbols",P.mode=30;break}P.have=0,P.mode=18;case 18:for(;P.have<P.ncode;){for(;G<3;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.lens[fe[P.have++]]=7&Q,Q>>>=3,G-=3}for(;P.have<19;)P.lens[fe[P.have++]]=0;if(P.lencode=P.lendyn,P.lenbits=7,he={bits:P.lenbits},st=o(0,P.lens,0,19,P.lencode,0,P.work,he),P.lenbits=he.bits,st){M.msg="invalid code lengths set",P.mode=30;break}P.have=0,P.mode=19;case 19:for(;P.have<P.nlen+P.ndist;){for(;Re=(Y=P.lencode[Q&(1<<P.lenbits)-1])>>>16&255,Qe=65535&Y,!((ke=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(Qe<16)Q>>>=ke,G-=ke,P.lens[P.have++]=Qe;else{if(Qe===16){for(J=ke+2;G<J;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(Q>>>=ke,G-=ke,P.have===0){M.msg="invalid bit length repeat",P.mode=30;break}oe=P.lens[P.have-1],be=3+(3&Q),Q>>>=2,G-=2}else if(Qe===17){for(J=ke+3;G<J;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}G-=ke,oe=0,be=3+(7&(Q>>>=ke)),Q>>>=3,G-=3}else{for(J=ke+7;G<J;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}G-=ke,oe=0,be=11+(127&(Q>>>=ke)),Q>>>=7,G-=7}if(P.have+be>P.nlen+P.ndist){M.msg="invalid bit length repeat",P.mode=30;break}for(;be--;)P.lens[P.have++]=oe}}if(P.mode===30)break;if(P.lens[256]===0){M.msg="invalid code -- missing end-of-block",P.mode=30;break}if(P.lenbits=9,he={bits:P.lenbits},st=o(e,P.lens,0,P.nlen,P.lencode,0,P.work,he),P.lenbits=he.bits,st){M.msg="invalid literal/lengths set",P.mode=30;break}if(P.distbits=6,P.distcode=P.distdyn,he={bits:P.distbits},st=o(l,P.lens,P.nlen,P.ndist,P.distcode,0,P.work,he),P.distbits=he.bits,st){M.msg="invalid distances set",P.mode=30;break}if(P.mode=20,F===6)break e;case 20:P.mode=21;case 21:if(6<=z&&258<=V){M.next_out=W,M.avail_out=V,M.next_in=j,M.avail_in=z,P.hold=Q,P.bits=G,t(M,ce),W=M.next_out,B=M.output,V=M.avail_out,j=M.next_in,X=M.input,z=M.avail_in,Q=P.hold,G=P.bits,P.mode===12&&(P.back=-1);break}for(P.back=0;Re=(Y=P.lencode[Q&(1<<P.lenbits)-1])>>>16&255,Qe=65535&Y,!((ke=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(Re&&(240&Re)==0){for(We=ke,ot=Re,Oe=Qe;Re=(Y=P.lencode[Oe+((Q&(1<<We+ot)-1)>>We)])>>>16&255,Qe=65535&Y,!(We+(ke=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}Q>>>=We,G-=We,P.back+=We}if(Q>>>=ke,G-=ke,P.back+=ke,P.length=Qe,Re===0){P.mode=26;break}if(32&Re){P.back=-1,P.mode=12;break}if(64&Re){M.msg="invalid literal/length code",P.mode=30;break}P.extra=15&Re,P.mode=22;case 22:if(P.extra){for(J=P.extra;G<J;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.length+=Q&(1<<P.extra)-1,Q>>>=P.extra,G-=P.extra,P.back+=P.extra}P.was=P.length,P.mode=23;case 23:for(;Re=(Y=P.distcode[Q&(1<<P.distbits)-1])>>>16&255,Qe=65535&Y,!((ke=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if((240&Re)==0){for(We=ke,ot=Re,Oe=Qe;Re=(Y=P.distcode[Oe+((Q&(1<<We+ot)-1)>>We)])>>>16&255,Qe=65535&Y,!(We+(ke=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}Q>>>=We,G-=We,P.back+=We}if(Q>>>=ke,G-=ke,P.back+=ke,64&Re){M.msg="invalid distance code",P.mode=30;break}P.offset=Qe,P.extra=15&Re,P.mode=24;case 24:if(P.extra){for(J=P.extra;G<J;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.offset+=Q&(1<<P.extra)-1,Q>>>=P.extra,G-=P.extra,P.back+=P.extra}if(P.offset>P.dmax){M.msg="invalid distance too far back",P.mode=30;break}P.mode=25;case 25:if(V===0)break e;if(be=ce-V,P.offset>be){if((be=P.offset-be)>P.whave&&P.sane){M.msg="invalid distance too far back",P.mode=30;break}le=be>P.wnext?(be-=P.wnext,P.wsize-be):P.wnext-be,be>P.length&&(be=P.length),Ie=P.window}else Ie=B,le=W-P.offset,be=P.length;for(V<be&&(be=V),V-=be,P.length-=be;B[W++]=Ie[le++],--be;);P.length===0&&(P.mode=21);break;case 26:if(V===0)break e;B[W++]=P.length,V--,P.mode=21;break;case 27:if(P.wrap){for(;G<32;){if(z===0)break e;z--,Q|=X[j++]<<G,G+=8}if(ce-=V,M.total_out+=ce,P.total+=ce,ce&&(M.adler=P.check=P.flags?i(P.check,B,ce,W-ce):a(P.check,B,ce,W-ce)),ce=V,(P.flags?Q:v(Q))!==P.check){M.msg="incorrect data check",P.mode=30;break}G=Q=0}P.mode=28;case 28:if(P.wrap&&P.flags){for(;G<32;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(Q!==(4294967295&P.total)){M.msg="incorrect length check",P.mode=30;break}G=Q=0}P.mode=29;case 29:st=1;break e;case 30:st=-3;break e;case 31:return-4;case 32:default:return s}return M.next_out=W,M.avail_out=V,M.next_in=j,M.avail_in=z,P.hold=Q,P.bits=G,(P.wsize||ce!==M.avail_out&&P.mode<30&&(P.mode<27||F!==4))&&R(M,M.output,M.next_out,ce-M.avail_out)?(P.mode=31,-4):(ee-=M.avail_in,ce-=M.avail_out,M.total_in+=ee,M.total_out+=ce,P.total+=ce,P.wrap&&ce&&(M.adler=P.check=P.flags?i(P.check,B,ce,M.next_out-ce):a(P.check,B,ce,M.next_out-ce)),M.data_type=P.bits+(P.last?64:0)+(P.mode===12?128:0)+(P.mode===20||P.mode===15?256:0),(ee==0&&ce===0||F===4)&&st===r&&(st=-5),st)},h.inflateEnd=function(M){if(!M||!M.state)return s;var F=M.state;return F.window&&(F.window=null),M.state=null,r},h.inflateGetHeader=function(M,F){var P;return M&&M.state?(2&(P=M.state).wrap)==0?s:((P.head=F).done=!1,r):s},h.inflateSetDictionary=function(M,F){var P,X=F.length;return M&&M.state?(P=M.state).wrap!==0&&P.mode!==11?s:P.mode===11&&a(1,F,X,0)!==P.check?-3:R(M,F,X,X)?(P.mode=31,-4):(P.havedict=1,r):s},h.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(m,f,h){"use strict";var u=m("../utils/common"),a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],t=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],o=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];f.exports=function(e,l,r,s,c,d,g,v){var b,S,E,C,_,T,w,O,I,R=v.bits,M=0,F=0,P=0,X=0,B=0,j=0,W=0,z=0,V=0,Q=0,G=null,ee=0,ce=new u.Buf16(16),be=new u.Buf16(16),le=null,Ie=0;for(M=0;M<=15;M++)ce[M]=0;for(F=0;F<s;F++)ce[l[r+F]]++;for(B=R,X=15;1<=X&&ce[X]===0;X--);if(X<B&&(B=X),X===0)return c[d++]=20971520,c[d++]=20971520,v.bits=1,0;for(P=1;P<X&&ce[P]===0;P++);for(B<P&&(B=P),M=z=1;M<=15;M++)if(z<<=1,(z-=ce[M])<0)return-1;if(0<z&&(e===0||X!==1))return-1;for(be[1]=0,M=1;M<15;M++)be[M+1]=be[M]+ce[M];for(F=0;F<s;F++)l[r+F]!==0&&(g[be[l[r+F]]++]=F);if(T=e===0?(G=le=g,19):e===1?(G=a,ee-=257,le=i,Ie-=257,256):(G=t,le=o,-1),M=P,_=d,W=F=Q=0,E=-1,C=(V=1<<(j=B))-1,e===1&&852<V||e===2&&592<V)return 1;for(;;){for(w=M-W,I=g[F]<T?(O=0,g[F]):g[F]>T?(O=le[Ie+g[F]],G[ee+g[F]]):(O=96,0),b=1<<M-W,P=S=1<<j;c[_+(Q>>W)+(S-=b)]=w<<24|O<<16|I|0,S!==0;);for(b=1<<M-1;Q&b;)b>>=1;if(b!==0?(Q&=b-1,Q+=b):Q=0,F++,--ce[M]==0){if(M===X)break;M=l[r+g[F]]}if(B<M&&(Q&C)!==E){for(W===0&&(W=B),_+=P,z=1<<(j=M-W);j+W<X&&!((z-=ce[j+W])<=0);)j++,z<<=1;if(V+=1<<j,e===1&&852<V||e===2&&592<V)return 1;c[E=Q&C]=B<<24|j<<16|_-d|0}}return Q!==0&&(c[_+Q]=M-W<<24|64<<16|0),v.bits=B,0}},{"../utils/common":41}],51:[function(m,f,h){"use strict";f.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(m,f,h){"use strict";var u=m("../utils/common"),a=0,i=1;function t(Y){for(var $=Y.length;0<=--$;)Y[$]=0}var o=0,e=29,l=256,r=l+1+e,s=30,c=19,d=2*r+1,g=15,v=16,b=7,S=256,E=16,C=17,_=18,T=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],w=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],R=new Array(2*(r+2));t(R);var M=new Array(2*s);t(M);var F=new Array(512);t(F);var P=new Array(256);t(P);var X=new Array(e);t(X);var B,j,W,z=new Array(s);function V(Y,$,fe,we,Ne){this.static_tree=Y,this.extra_bits=$,this.extra_base=fe,this.elems=we,this.max_length=Ne,this.has_stree=Y&&Y.length}function Q(Y,$){this.dyn_tree=Y,this.max_code=0,this.stat_desc=$}function G(Y){return Y<256?F[Y]:F[256+(Y>>>7)]}function ee(Y,$){Y.pending_buf[Y.pending++]=255&$,Y.pending_buf[Y.pending++]=$>>>8&255}function ce(Y,$,fe){Y.bi_valid>v-fe?(Y.bi_buf|=$<<Y.bi_valid&65535,ee(Y,Y.bi_buf),Y.bi_buf=$>>v-Y.bi_valid,Y.bi_valid+=fe-v):(Y.bi_buf|=$<<Y.bi_valid&65535,Y.bi_valid+=fe)}function be(Y,$,fe){ce(Y,fe[2*$],fe[2*$+1])}function le(Y,$){for(var fe=0;fe|=1&Y,Y>>>=1,fe<<=1,0<--$;);return fe>>>1}function Ie(Y,$,fe){var we,Ne,Ee=new Array(g+1),de=0;for(we=1;we<=g;we++)Ee[we]=de=de+fe[we-1]<<1;for(Ne=0;Ne<=$;Ne++){var me=Y[2*Ne+1];me!==0&&(Y[2*Ne]=le(Ee[me]++,me))}}function ke(Y){var $;for($=0;$<r;$++)Y.dyn_ltree[2*$]=0;for($=0;$<s;$++)Y.dyn_dtree[2*$]=0;for($=0;$<c;$++)Y.bl_tree[2*$]=0;Y.dyn_ltree[2*S]=1,Y.opt_len=Y.static_len=0,Y.last_lit=Y.matches=0}function Re(Y){8<Y.bi_valid?ee(Y,Y.bi_buf):0<Y.bi_valid&&(Y.pending_buf[Y.pending++]=Y.bi_buf),Y.bi_buf=0,Y.bi_valid=0}function Qe(Y,$,fe,we){var Ne=2*$,Ee=2*fe;return Y[Ne]<Y[Ee]||Y[Ne]===Y[Ee]&&we[$]<=we[fe]}function We(Y,$,fe){for(var we=Y.heap[fe],Ne=fe<<1;Ne<=Y.heap_len&&(Ne<Y.heap_len&&Qe($,Y.heap[Ne+1],Y.heap[Ne],Y.depth)&&Ne++,!Qe($,we,Y.heap[Ne],Y.depth));)Y.heap[fe]=Y.heap[Ne],fe=Ne,Ne<<=1;Y.heap[fe]=we}function ot(Y,$,fe){var we,Ne,Ee,de,me=0;if(Y.last_lit!==0)for(;we=Y.pending_buf[Y.d_buf+2*me]<<8|Y.pending_buf[Y.d_buf+2*me+1],Ne=Y.pending_buf[Y.l_buf+me],me++,we===0?be(Y,Ne,$):(be(Y,(Ee=P[Ne])+l+1,$),(de=T[Ee])!==0&&ce(Y,Ne-=X[Ee],de),be(Y,Ee=G(--we),fe),(de=w[Ee])!==0&&ce(Y,we-=z[Ee],de)),me<Y.last_lit;);be(Y,S,$)}function Oe(Y,$){var fe,we,Ne,Ee=$.dyn_tree,de=$.stat_desc.static_tree,me=$.stat_desc.has_stree,Le=$.stat_desc.elems,tt=-1;for(Y.heap_len=0,Y.heap_max=d,fe=0;fe<Le;fe++)Ee[2*fe]!==0?(Y.heap[++Y.heap_len]=tt=fe,Y.depth[fe]=0):Ee[2*fe+1]=0;for(;Y.heap_len<2;)Ee[2*(Ne=Y.heap[++Y.heap_len]=tt<2?++tt:0)]=1,Y.depth[Ne]=0,Y.opt_len--,me&&(Y.static_len-=de[2*Ne+1]);for($.max_code=tt,fe=Y.heap_len>>1;1<=fe;fe--)We(Y,Ee,fe);for(Ne=Le;fe=Y.heap[1],Y.heap[1]=Y.heap[Y.heap_len--],We(Y,Ee,1),we=Y.heap[1],Y.heap[--Y.heap_max]=fe,Y.heap[--Y.heap_max]=we,Ee[2*Ne]=Ee[2*fe]+Ee[2*we],Y.depth[Ne]=(Y.depth[fe]>=Y.depth[we]?Y.depth[fe]:Y.depth[we])+1,Ee[2*fe+1]=Ee[2*we+1]=Ne,Y.heap[1]=Ne++,We(Y,Ee,1),2<=Y.heap_len;);Y.heap[--Y.heap_max]=Y.heap[1],function(At,ht){var Ke,Jt,ct,Gt,dr,zt,kt=ht.dyn_tree,Vt=ht.max_code,Xe=ht.stat_desc.static_tree,pe=ht.stat_desc.has_stree,te=ht.stat_desc.extra_bits,$e=ht.stat_desc.extra_base,He=ht.stat_desc.max_length,ae=0;for(Gt=0;Gt<=g;Gt++)At.bl_count[Gt]=0;for(kt[2*At.heap[At.heap_max]+1]=0,Ke=At.heap_max+1;Ke<d;Ke++)He<(Gt=kt[2*kt[2*(Jt=At.heap[Ke])+1]+1]+1)&&(Gt=He,ae++),kt[2*Jt+1]=Gt,Vt<Jt||(At.bl_count[Gt]++,dr=0,$e<=Jt&&(dr=te[Jt-$e]),zt=kt[2*Jt],At.opt_len+=zt*(Gt+dr),pe&&(At.static_len+=zt*(Xe[2*Jt+1]+dr)));if(ae!==0){do{for(Gt=He-1;At.bl_count[Gt]===0;)Gt--;At.bl_count[Gt]--,At.bl_count[Gt+1]+=2,At.bl_count[He]--,ae-=2}while(0<ae);for(Gt=He;Gt!==0;Gt--)for(Jt=At.bl_count[Gt];Jt!==0;)Vt<(ct=At.heap[--Ke])||(kt[2*ct+1]!==Gt&&(At.opt_len+=(Gt-kt[2*ct+1])*kt[2*ct],kt[2*ct+1]=Gt),Jt--)}}(Y,$),Ie(Ee,tt,Y.bl_count)}function oe(Y,$,fe){var we,Ne,Ee=-1,de=$[1],me=0,Le=7,tt=4;for(de===0&&(Le=138,tt=3),$[2*(fe+1)+1]=65535,we=0;we<=fe;we++)Ne=de,de=$[2*(we+1)+1],++me<Le&&Ne===de||(me<tt?Y.bl_tree[2*Ne]+=me:Ne!==0?(Ne!==Ee&&Y.bl_tree[2*Ne]++,Y.bl_tree[2*E]++):me<=10?Y.bl_tree[2*C]++:Y.bl_tree[2*_]++,Ee=Ne,tt=(me=0)===de?(Le=138,3):Ne===de?(Le=6,3):(Le=7,4))}function st(Y,$,fe){var we,Ne,Ee=-1,de=$[1],me=0,Le=7,tt=4;for(de===0&&(Le=138,tt=3),we=0;we<=fe;we++)if(Ne=de,de=$[2*(we+1)+1],!(++me<Le&&Ne===de)){if(me<tt)for(;be(Y,Ne,Y.bl_tree),--me!=0;);else Ne!==0?(Ne!==Ee&&(be(Y,Ne,Y.bl_tree),me--),be(Y,E,Y.bl_tree),ce(Y,me-3,2)):me<=10?(be(Y,C,Y.bl_tree),ce(Y,me-3,3)):(be(Y,_,Y.bl_tree),ce(Y,me-11,7));Ee=Ne,tt=(me=0)===de?(Le=138,3):Ne===de?(Le=6,3):(Le=7,4)}}t(z);var he=!1;function J(Y,$,fe,we){ce(Y,(o<<1)+(we?1:0),3),function(Ne,Ee,de,me){Re(Ne),me&&(ee(Ne,de),ee(Ne,~de)),u.arraySet(Ne.pending_buf,Ne.window,Ee,de,Ne.pending),Ne.pending+=de}(Y,$,fe,!0)}h._tr_init=function(Y){he||(function(){var $,fe,we,Ne,Ee,de=new Array(g+1);for(Ne=we=0;Ne<e-1;Ne++)for(X[Ne]=we,$=0;$<1<<T[Ne];$++)P[we++]=Ne;for(P[we-1]=Ne,Ne=Ee=0;Ne<16;Ne++)for(z[Ne]=Ee,$=0;$<1<<w[Ne];$++)F[Ee++]=Ne;for(Ee>>=7;Ne<s;Ne++)for(z[Ne]=Ee<<7,$=0;$<1<<w[Ne]-7;$++)F[256+Ee++]=Ne;for(fe=0;fe<=g;fe++)de[fe]=0;for($=0;$<=143;)R[2*$+1]=8,$++,de[8]++;for(;$<=255;)R[2*$+1]=9,$++,de[9]++;for(;$<=279;)R[2*$+1]=7,$++,de[7]++;for(;$<=287;)R[2*$+1]=8,$++,de[8]++;for(Ie(R,r+1,de),$=0;$<s;$++)M[2*$+1]=5,M[2*$]=le($,5);B=new V(R,T,l+1,r,g),j=new V(M,w,0,s,g),W=new V(new Array(0),O,0,c,b)}(),he=!0),Y.l_desc=new Q(Y.dyn_ltree,B),Y.d_desc=new Q(Y.dyn_dtree,j),Y.bl_desc=new Q(Y.bl_tree,W),Y.bi_buf=0,Y.bi_valid=0,ke(Y)},h._tr_stored_block=J,h._tr_flush_block=function(Y,$,fe,we){var Ne,Ee,de=0;0<Y.level?(Y.strm.data_type===2&&(Y.strm.data_type=function(me){var Le,tt=4093624447;for(Le=0;Le<=31;Le++,tt>>>=1)if(1&tt&&me.dyn_ltree[2*Le]!==0)return a;if(me.dyn_ltree[18]!==0||me.dyn_ltree[20]!==0||me.dyn_ltree[26]!==0)return i;for(Le=32;Le<l;Le++)if(me.dyn_ltree[2*Le]!==0)return i;return a}(Y)),Oe(Y,Y.l_desc),Oe(Y,Y.d_desc),de=function(me){var Le;for(oe(me,me.dyn_ltree,me.l_desc.max_code),oe(me,me.dyn_dtree,me.d_desc.max_code),Oe(me,me.bl_desc),Le=c-1;3<=Le&&me.bl_tree[2*I[Le]+1]===0;Le--);return me.opt_len+=3*(Le+1)+5+5+4,Le}(Y),Ne=Y.opt_len+3+7>>>3,(Ee=Y.static_len+3+7>>>3)<=Ne&&(Ne=Ee)):Ne=Ee=fe+5,fe+4<=Ne&&$!==-1?J(Y,$,fe,we):Y.strategy===4||Ee===Ne?(ce(Y,2+(we?1:0),3),ot(Y,R,M)):(ce(Y,4+(we?1:0),3),function(me,Le,tt,At){var ht;for(ce(me,Le-257,5),ce(me,tt-1,5),ce(me,At-4,4),ht=0;ht<At;ht++)ce(me,me.bl_tree[2*I[ht]+1],3);st(me,me.dyn_ltree,Le-1),st(me,me.dyn_dtree,tt-1)}(Y,Y.l_desc.max_code+1,Y.d_desc.max_code+1,de+1),ot(Y,Y.dyn_ltree,Y.dyn_dtree)),ke(Y),we&&Re(Y)},h._tr_tally=function(Y,$,fe){return Y.pending_buf[Y.d_buf+2*Y.last_lit]=$>>>8&255,Y.pending_buf[Y.d_buf+2*Y.last_lit+1]=255&$,Y.pending_buf[Y.l_buf+Y.last_lit]=255&fe,Y.last_lit++,$===0?Y.dyn_ltree[2*fe]++:(Y.matches++,$--,Y.dyn_ltree[2*(P[fe]+l+1)]++,Y.dyn_dtree[2*G($)]++),Y.last_lit===Y.lit_bufsize-1},h._tr_align=function(Y){ce(Y,2,3),be(Y,S,R),function($){$.bi_valid===16?(ee($,$.bi_buf),$.bi_buf=0,$.bi_valid=0):8<=$.bi_valid&&($.pending_buf[$.pending++]=255&$.bi_buf,$.bi_buf>>=8,$.bi_valid-=8)}(Y)}},{"../utils/common":41}],53:[function(m,f,h){"use strict";f.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(m,f,h){(function(u){!function(a,i){"use strict";if(!a.setImmediate){var t,o,e,l,r=1,s={},c=!1,d=a.document,g=Object.getPrototypeOf&&Object.getPrototypeOf(a);g=g&&g.setTimeout?g:a,t={}.toString.call(a.process)==="[object process]"?function(E){x.nextTick(function(){b(E)})}:function(){if(a.postMessage&&!a.importScripts){var E=!0,C=a.onmessage;return a.onmessage=function(){E=!1},a.postMessage("","*"),a.onmessage=C,E}}()?(l="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",S,!1):a.attachEvent("onmessage",S),function(E){a.postMessage(l+E,"*")}):a.MessageChannel?((e=new MessageChannel).port1.onmessage=function(E){b(E.data)},function(E){e.port2.postMessage(E)}):d&&"onreadystatechange"in d.createElement("script")?(o=d.documentElement,function(E){var C=d.createElement("script");C.onreadystatechange=function(){b(E),C.onreadystatechange=null,o.removeChild(C),C=null},o.appendChild(C)}):function(E){setTimeout(b,0,E)},g.setImmediate=function(E){typeof E!="function"&&(E=new Function(""+E));for(var C=new Array(arguments.length-1),_=0;_<C.length;_++)C[_]=arguments[_+1];var T={callback:E,args:C};return s[r]=T,t(r),r++},g.clearImmediate=v}function v(E){delete s[E]}function b(E){if(c)setTimeout(b,0,E);else{var C=s[E];if(C){c=!0;try{!function(_){var T=_.callback,w=_.args;switch(w.length){case 0:T();break;case 1:T(w[0]);break;case 2:T(w[0],w[1]);break;case 3:T(w[0],w[1],w[2]);break;default:T.apply(i,w)}}(C)}finally{v(E),c=!1}}}}function S(E){E.source===a&&typeof E.data=="string"&&E.data.indexOf(l)===0&&b(+E.data.slice(l.length))}}(typeof self=="undefined"?u===void 0?this:u:self)}).call(this,typeof p!="undefined"?p:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})}).call(this,n("HDXh").Buffer,n("yLpj"),n("Q2Ig"))},xRUu:function(k,D,n){n("hJvP"),n("hFmY"),n("sAZ8")},xSIq:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};D.default=y},xSat:function(k,D){var n={axisPointer:1,tooltip:1,brush:1};function y(p,x,A){var m=x.getComponentByElement(p.topTarget),f=m&&m.coordinateSystem;return m&&m!==A&&!n[m.mainType]&&f&&f.model!==A}D.onIrrelevantElement=y},xTNl:function(k,D){var n=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],y={color:n,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],n]};k.exports=y},xYSL:function(k,D){function n(y,p){return y.has(p)}k.exports=n},xiyX:function(k,D,n){var y=n("bYtY"),p=n("bLfw"),x=n("nkfE"),A=n("ICMv"),m=p.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),f={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}};function h(a,i){return i.type||(i.data?"category":"value")}y.merge(m.prototype,A),x("single",m,h,f);var u=m;k.exports=u},xlC8:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=y;function y(p,x,A,m){for(var f=p&65535|0,h=p>>>16&65535|0,u=0;A!==0;){u=A>2e3?2e3:A,A-=u;do f=f+x[m++]|0,h=h+f|0;while(--u);f%=65521,h%=65521}return f|h<<16|0}},xvlK:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="PlusOutlined";var h=D.a=p.forwardRef(f)},xzDV:function(k,D,n){},"y+Vt":function(k,D,n){var y=n("Gev7"),p=n("bYtY"),x=n("IMiH"),A=n("2DNl"),m=n("3C/r"),f=m.prototype.getCanvasPattern,h=Math.abs,u=new x(!0);function a(t){y.call(this,t),this.path=null}a.prototype={constructor:a,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(o,e){var l=this.style,r=this.path||u,s=l.hasStroke(),c=l.hasFill(),d=l.fill,g=l.stroke,v=c&&!!d.colorStops,b=s&&!!g.colorStops,S=c&&!!d.image,E=s&&!!g.image;if(l.bind(o,this,e),this.setTransform(o),this.__dirty){var C;v&&(C=C||this.getBoundingRect(),this._fillGradient=l.getGradient(o,d,C)),b&&(C=C||this.getBoundingRect(),this._strokeGradient=l.getGradient(o,g,C))}v?o.fillStyle=this._fillGradient:S&&(o.fillStyle=f.call(d,o)),b?o.strokeStyle=this._strokeGradient:E&&(o.strokeStyle=f.call(g,o));var _=l.lineDash,T=l.lineDashOffset,w=!!o.setLineDash,O=this.getGlobalScale();if(r.setScale(O[0],O[1],this.segmentIgnoreThreshold),this.__dirtyPath||_&&!w&&s?(r.beginPath(o),_&&!w&&(r.setLineDash(_),r.setLineDashOffset(T)),this.buildPath(r,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(o.beginPath(),this.path.rebuildPath(o)),c)if(l.fillOpacity!=null){var I=o.globalAlpha;o.globalAlpha=l.fillOpacity*l.opacity,r.fill(o),o.globalAlpha=I}else r.fill(o);if(_&&w&&(o.setLineDash(_),o.lineDashOffset=T),s)if(l.strokeOpacity!=null){var I=o.globalAlpha;o.globalAlpha=l.strokeOpacity*l.opacity,r.stroke(o),o.globalAlpha=I}else r.stroke(o);_&&w&&o.setLineDash([]),l.text!=null&&(this.restoreTransform(o),this.drawRectText(o,this.getBoundingRect()))},buildPath:function(o,e,l){},createPathProxy:function(){this.path=new x},getBoundingRect:function(){var o=this._rect,e=this.style,l=!o;if(l){var r=this.path;r||(r=this.path=new x),this.__dirtyPath&&(r.beginPath(),this.buildPath(r,this.shape,!1)),o=r.getBoundingRect()}if(this._rect=o,e.hasStroke()){var s=this._rectWithStroke||(this._rectWithStroke=o.clone());if(this.__dirty||l){s.copy(o);var c=e.lineWidth,d=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(c=Math.max(c,this.strokeContainThreshold||4)),d>1e-10&&(s.width+=c/d,s.height+=c/d,s.x-=c/d/2,s.y-=c/d/2)}return s}return o},contain:function(o,e){var l=this.transformCoordToLocal(o,e),r=this.getBoundingRect(),s=this.style;if(o=l[0],e=l[1],r.contain(o,e)){var c=this.path.data;if(s.hasStroke()){var d=s.lineWidth,g=s.strokeNoScale?this.getLineScale():1;if(g>1e-10&&(s.hasFill()||(d=Math.max(d,this.strokeContainThreshold)),A.containStroke(c,d/g,o,e)))return!0}if(s.hasFill())return A.contain(c,o,e)}return!1},dirty:function(o){o==null&&(o=!0),o&&(this.__dirtyPath=o,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(o){return this.animate("shape",o)},attrKV:function(o,e){o==="shape"?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):y.prototype.attrKV.call(this,o,e)},setShape:function(o,e){var l=this.shape;if(l){if(p.isObject(o))for(var r in o)o.hasOwnProperty(r)&&(l[r]=o[r]);else l[o]=e;this.dirty(!0)}return this},getLineScale:function(){var o=this.transform;return o&&h(o[0]-1)>1e-10&&h(o[3]-1)>1e-10?Math.sqrt(h(o[0]*o[3]-o[2]*o[1])):1}},a.extend=function(t){var o=function(r){a.call(this,r),t.style&&this.style.extendFrom(t.style,!1);var s=t.shape;if(s){this.shape=this.shape||{};var c=this.shape;for(var d in s)!c.hasOwnProperty(d)&&s.hasOwnProperty(d)&&(c[d]=s[d])}t.init&&t.init.call(this,r)};p.inherits(o,a);for(var e in t)e!=="style"&&e!=="shape"&&(o.prototype[e]=t[e]);return o},p.inherits(a,y);var i=a;k.exports=i},"y+lR":function(k,D,n){var y=n("bYtY"),p=n("mFDi"),x=n("z35g");function A(f){x.call(this,f)}A.prototype={constructor:A,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(f){var h=this.getAxis("x"),u=this.getAxis("y");return h.contain(h.toLocalCoord(f[0]))&&u.contain(u.toLocalCoord(f[1]))},containData:function(f){return this.getAxis("x").containData(f[0])&&this.getAxis("y").containData(f[1])},dataToPoint:function(f,h,u){var a=this.getAxis("x"),i=this.getAxis("y");return u=u||[],u[0]=a.toGlobalCoord(a.dataToCoord(f[0])),u[1]=i.toGlobalCoord(i.dataToCoord(f[1])),u},clampData:function(f,h){var u=this.getAxis("x").scale,a=this.getAxis("y").scale,i=u.getExtent(),t=a.getExtent(),o=u.parse(f[0]),e=a.parse(f[1]);return h=h||[],h[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),h[1]=Math.min(Math.max(Math.min(t[0],t[1]),e),Math.max(t[0],t[1])),h},pointToData:function(f,h){var u=this.getAxis("x"),a=this.getAxis("y");return h=h||[],h[0]=u.coordToData(u.toLocalCoord(f[0])),h[1]=a.coordToData(a.toLocalCoord(f[1])),h},getOtherAxis:function(f){return this.getAxis(f.dim==="x"?"y":"x")},getArea:function(){var f=this.getAxis("x").getGlobalExtent(),h=this.getAxis("y").getGlobalExtent(),u=Math.min(f[0],f[1]),a=Math.min(h[0],h[1]),i=Math.max(f[0],f[1])-u,t=Math.max(h[0],h[1])-a,o=new p(u,a,i,t);return o}},y.inherits(A,x);var m=A;k.exports=m},"y0+3":function(k,D,n){"use strict";n.d(D,"a",function(){return t}),n.d(D,"b",function(){return e});var y=/margin|padding|width|height|max|min|offset/,p={left:!0,top:!0},x={cssFloat:1,styleFloat:1,float:1};function A(l){return l.nodeType===1?l.ownerDocument.defaultView.getComputedStyle(l,null):{}}function m(l,r,s){if(r=r.toLowerCase(),s==="auto"){if(r==="height")return l.offsetHeight;if(r==="width")return l.offsetWidth}return r in p||(p[r]=y.test(r)),p[r]?parseFloat(s)||0:s}function f(l,r){var s=arguments.length,c=A(l);return r=x[r]?"cssFloat"in l.style?"cssFloat":"styleFloat":r,s===1?c:m(l,r,c[r]||l.style[r])}function h(l,r,s){var c=arguments.length;if(r=x[r]?"cssFloat"in l.style?"cssFloat":"styleFloat":r,c===3)return typeof s=="number"&&y.test(r)&&(s="".concat(s,"px")),l.style[r]=s,s;for(var d in r)r.hasOwnProperty(d)&&h(l,d,r[d]);return A(l)}function u(l){return l===document.body?document.documentElement.clientWidth:l.offsetWidth}function a(l){return l===document.body?window.innerHeight||document.documentElement.clientHeight:l.offsetHeight}function i(){var l=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),r=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:l,height:r}}function t(){var l=document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight;return{width:l,height:r}}function o(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function e(l){var r=l.getBoundingClientRect(),s=document.documentElement;return{left:r.left+(window.pageXOffset||s.scrollLeft)-(s.clientLeft||document.body.clientLeft||0),top:r.top+(window.pageYOffset||s.scrollTop)-(s.clientTop||document.body.clientTop||0)}}},y1pI:function(k,D,n){var y=n("ljhN");function p(x,A){for(var m=x.length;m--;)if(y(x[m][0],A))return m;return-1}k.exports=p},y23F:function(k,D){function n(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}n.prototype={constructor:n,_dragStart:function(A){for(var m=A.target;m&&!m.draggable;)m=m.parent;m&&(this._draggingTarget=m,m.dragging=!0,this._x=A.offsetX,this._y=A.offsetY,this.dispatchToElement(y(m,A),"dragstart",A.event))},_drag:function(A){var m=this._draggingTarget;if(m){var f=A.offsetX,h=A.offsetY,u=f-this._x,a=h-this._y;this._x=f,this._y=h,m.drift(u,a,A),this.dispatchToElement(y(m,A),"drag",A.event);var i=this.findHover(f,h,m).target,t=this._dropTarget;this._dropTarget=i,m!==i&&(t&&i!==t&&this.dispatchToElement(y(t,A),"dragleave",A.event),i&&i!==t&&this.dispatchToElement(y(i,A),"dragenter",A.event))}},_dragEnd:function(A){var m=this._draggingTarget;m&&(m.dragging=!1),this.dispatchToElement(y(m,A),"dragend",A.event),this._dropTarget&&this.dispatchToElement(y(this._dropTarget,A),"drop",A.event),this._draggingTarget=null,this._dropTarget=null}};function y(x,A){return{target:x,topTarget:A&&A.topTarget}}var p=n;k.exports=p},y2l5:function(k,D,n){var y=n("MwEJ"),p=n("T4UG"),x=p.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(A,m){return y(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var A=this.option.progressive;return A==null?this.option.large?5e3:this.get("progressive"):A},getProgressiveThreshold:function(){var A=this.option.progressiveThreshold;return A==null?this.option.large?1e4:this.get("progressiveThreshold"):A},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});k.exports=x},y3Kf:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={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"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="UpOutlined";var h=D.a=p.forwardRef(f)},y3NT:function(k,D,n){var y=n("OELB"),p=y.parsePercent,x=n("bYtY"),A=Math.PI/180;function m(u,a,i,t){a.eachSeriesByType(u,function(o){var e=o.get("center"),l=o.get("radius");x.isArray(l)||(l=[0,l]),x.isArray(e)||(e=[e,e]);var r=i.getWidth(),s=i.getHeight(),c=Math.min(r,s),d=p(e[0],r),g=p(e[1],s),v=p(l[0],c/2),b=p(l[1],c/2),S=-o.get("startAngle")*A,E=o.get("minAngle")*A,C=o.getData().tree.root,_=o.getViewRoot(),T=_.depth,w=o.get("sort");w!=null&&f(_,w);var O=0;x.each(_.children,function(G){!isNaN(G.getValue())&&O++});var I=_.getValue(),R=Math.PI/(I||O)*2,M=_.depth>0,F=_.height-(M?-1:1),P=(b-v)/(F||1),X=o.get("clockwise"),B=o.get("stillShowZeroSum"),j=X?1:-1,W=function(G,ee){if(!G)return;var ce=ee;if(G!==C){var be=G.getValue(),le=I===0&&B?R:be*R;le<E&&(le=E),ce=ee+j*le;var Ie=G.depth-T-(M?-1:1),ke=v+P*Ie,Re=v+P*(Ie+1),Qe=G.getModel();Qe.get("r0")!=null&&(ke=p(Qe.get("r0"),c/2)),Qe.get("r")!=null&&(Re=p(Qe.get("r"),c/2)),G.setLayout({angle:le,startAngle:ee,endAngle:ce,clockwise:X,cx:d,cy:g,r0:ke,r:Re})}if(G.children&&G.children.length){var We=0;x.each(G.children,function(ot){We+=W(ot,ee+We)})}return ce-ee};if(M){var z=v,V=v+P,Q=Math.PI*2;C.setLayout({angle:Q,startAngle:S,endAngle:S+Q,clockwise:X,cx:d,cy:g,r0:z,r:V})}W(_,S)})}function f(u,a){var i=u.children||[];u.children=h(i,a),i.length&&x.each(u.children,function(t){f(t,a)})}function h(u,a){if(typeof a=="function")return u.sort(a);var i=a==="asc";return u.sort(function(t,o){var e=(t.getValue()-o.getValue())*(i?1:-1);return e===0?(t.dataIndex-o.dataIndex)*(i?-1:1):e})}k.exports=m},"y4/Y":function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("zTMp"),A=n("62sa");n("SKx+"),n("1LEl"),n("Sp2Z"),y.registerPreprocessor(function(m){if(m){(!m.axisPointer||m.axisPointer.length===0)&&(m.axisPointer={});var f=m.axisPointer.link;f&&!p.isArray(f)&&(m.axisPointer.link=[f])}}),y.registerProcessor(y.PRIORITY.PROCESSOR.STATISTIC,function(m,f){m.getComponent("axisPointer").coordSysAxesInfo=x.collect(m,f)}),y.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},A)},y7Aq:function(k,D,n){var y=n("bYtY"),p=n("+TT/"),x=p.getLayoutRect;function A(f,h,u){var a=f.option,i=a.align;if(i!=null&&i!=="auto")return i;for(var t={width:h.getWidth(),height:h.getHeight()},o=a.orient==="horizontal"?1:0,e=[["left","right","width"],["top","bottom","height"]],l=e[o],r=[0,null,10],s={},c=0;c<3;c++)s[e[1-o][c]]=r[c],s[l[c]]=c===2?u[0]:a[l[c]];var d=[["x","width",3],["y","height",0]][o],g=x(s,t,a.padding);return l[(g.margin[d[2]]||0)+g[d[0]]+g[d[1]]*.5<t[d[1]]*.5?0:1]}function m(f,h){return y.each(f||[],function(u){u.dataIndex!=null&&(u.dataIndexInside=u.dataIndex,u.dataIndex=null),u.highlightKey="visualMap"+(h?h.componentIndex:"")}),f}D.getItemAlign=A,D.makeHighDownBatch=m},y8nQ:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("gwTy"),A=n.n(x),m=n("1GLa")},yEEn:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="ArrowDownOutlined";var h=D.a=p.forwardRef(f)},yFXq:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("bsht")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="SearchOutlined";var i=A.forwardRef(a);D.default=i},yGk4:function(k,D,n){var y=n("Cwc5"),p=n("Kz5y"),x=y(p,"Set");k.exports=x},yO87:function(k,D,n){var y=n("bYtY"),p=n("oVpE"),x=p.createSymbol,A=n("IwbS"),m=A.Group,f=n("OELB"),h=f.parsePercent,u=n("FBjb"),a=3;function i(r){return y.isArray(r)||(r=[+r,+r]),r}function t(r,s){var c=s.rippleEffectColor||s.color;r.eachChild(function(d){d.attr({z:s.z,zlevel:s.zlevel,style:{stroke:s.brushType==="stroke"?c:null,fill:s.brushType==="fill"?c:null}})})}function o(r,s){m.call(this);var c=new u(r,s),d=new m;this.add(c),this.add(d),d.beforeUpdate=function(){this.attr(c.getScale())},this.updateData(r,s)}var e=o.prototype;e.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.startEffectAnimation=function(r){for(var s=r.symbolType,c=r.color,d=this.childAt(1),g=0;g<a;g++){var v=x(s,-1,-1,2,2,c);v.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var b=-g/a*r.period+r.effectOffset;v.animate("",!0).when(r.period,{scale:[r.rippleScale/2,r.rippleScale/2]}).delay(b).start(),v.animateStyle(!0).when(r.period,{opacity:0}).delay(b).start(),d.add(v)}t(d,r)},e.updateEffectAnimation=function(r){for(var s=this._effectCfg,c=this.childAt(1),d=["symbolType","period","rippleScale"],g=0;g<d.length;g++){var v=d[g];if(s[v]!==r[v]){this.stopEffectAnimation(),this.startEffectAnimation(r);return}}t(c,r)},e.highlight=function(){this.trigger("emphasis")},e.downplay=function(){this.trigger("normal")},e.updateData=function(r,s){var c=r.hostModel;this.childAt(0).updateData(r,s);var d=this.childAt(1),g=r.getItemModel(s),v=r.getItemVisual(s,"symbol"),b=i(r.getItemVisual(s,"symbolSize")),S=r.getItemVisual(s,"color");d.attr("scale",b),d.traverse(function(R){R.attr({fill:S})});var E=g.getShallow("symbolOffset");if(E){var C=d.position;C[0]=h(E[0],b[0]),C[1]=h(E[1],b[1])}var _=r.getItemVisual(s,"symbolRotate");d.rotation=(_||0)*Math.PI/180||0;var T={};if(T.showEffectOn=c.get("showEffectOn"),T.rippleScale=g.get("rippleEffect.scale"),T.brushType=g.get("rippleEffect.brushType"),T.period=g.get("rippleEffect.period")*1e3,T.effectOffset=s/r.count(),T.z=g.getShallow("z")||0,T.zlevel=g.getShallow("zlevel")||0,T.symbolType=v,T.color=S,T.rippleEffectColor=g.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),T.showEffectOn==="render")this._effectCfg?this.updateEffectAnimation(T):this.startEffectAnimation(T),this._effectCfg=T;else{this._effectCfg=null,this.stopEffectAnimation();var w=this.childAt(0),O=function(){w.highlight(),T.showEffectOn!=="render"&&this.startEffectAnimation(T)},I=function(){w.downplay(),T.showEffectOn!=="render"&&this.stopEffectAnimation()};this.on("mouseover",O,this).on("mouseout",I,this).on("emphasis",O,this).on("normal",I,this)}this._effectCfg=T},e.fadeOut=function(r){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),r&&r()},y.inherits(o,m);var l=o;k.exports=l},yS9w:function(k,D,n){var y=n("MEGo"),p=y.parseSVG,x=y.makeViewBoxTransform,A=n("4fz+"),m=n("x6Kt"),f=n("bYtY"),h=f.assert,u=f.createHashMap,a=n("mFDi"),i=n("4NO4"),t=i.makeInner,o=t(),e={load:function(r,s){var c=o(s).originRoot;if(c)return{root:c,boundingRect:o(s).boundingRect};var d=l(s);return o(s).originRoot=d.root,o(s).boundingRect=d.boundingRect,d},makeGraphic:function(r,s,c){var d=o(s),g=d.rootMap||(d.rootMap=u()),v=g.get(c);if(v)return v;var b=d.originRoot,S=d.boundingRect;return d.originRootHostKey?v=l(s,S).root:(d.originRootHostKey=c,v=b),g.set(c,v)},removeGraphic:function(r,s,c){var d=o(s),g=d.rootMap;g&&g.removeKey(c),c===d.originRootHostKey&&(d.originRootHostKey=null)}};function l(r,s){var c=r.svgXML,d,g;try{d=c&&p(c,{ignoreViewBox:!0,ignoreRootClip:!0})||{},g=d.root,h(g!=null)}catch(_){throw new Error(`Invalid svg format
|
|
|
`+_.message)}var v=d.width,b=d.height,S=d.viewBoxRect;if(s||(s=v==null||b==null?g.getBoundingRect():new a(0,0,0,0),v!=null&&(s.width=v),b!=null&&(s.height=b)),S){var E=x(S,s.width,s.height),C=g;g=new A,g.add(C),C.scale=E.scale,C.position=E.position}return g.setClipPath(new m({shape:s.plain()})),{root:g,boundingRect:s}}k.exports=e},yWXo:function(k,D,n){var y=n("IwbS"),p=n("oVpE"),x=p.createSymbol,A=n("OS9S"),m=4,f=y.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(i,t){var o=t.points,e=t.size,l=this.symbolProxy,r=l.shape,s=i.getContext?i.getContext():i,c=s&&e[0]<m;if(c)return;for(var d=0;d<o.length;){var g=o[d++],v=o[d++];if(isNaN(g)||isNaN(v))continue;if(this.softClipShape&&!this.softClipShape.contain(g,v))continue;r.x=g-e[0]/2,r.y=v-e[1]/2,r.width=e[0],r.height=e[1],l.buildPath(i,r,!0)}},afterBrush:function(i){var t=this.shape,o=t.points,e=t.size,l=e[0]<m;if(!l)return;this.setTransform(i);for(var r=0;r<o.length;){var s=o[r++],c=o[r++];if(isNaN(s)||isNaN(c))continue;if(this.softClipShape&&!this.softClipShape.contain(s,c))continue;i.fillRect(s-e[0]/2,c-e[1]/2,e[0],e[1])}this.restoreTransform(i)},findDataIndex:function(i,t){for(var o=this.shape,e=o.points,l=o.size,r=Math.max(l[0],4),s=Math.max(l[1],4),c=e.length/2-1;c>=0;c--){var d=c*2,g=e[d]-r/2,v=e[d+1]-s/2;if(i>=g&&t>=v&&i<=g+r&&t<=v+s)return c}return-1}});function h(){this.group=new y.Group}var u=h.prototype;u.isPersistent=function(){return!this._incremental},u.updateData=function(i,t){this.group.removeAll();var o=new f({rectHover:!0,cursor:"default"});o.setShape({points:i.getLayout("symbolPoints")}),this._setCommon(o,i,!1,t),this.group.add(o),this._incremental=null},u.updateLayout=function(i){if(this._incremental)return;var t=i.getLayout("symbolPoints");this.group.eachChild(function(o){if(o.startIndex!=null){var e=(o.endIndex-o.startIndex)*2,l=o.startIndex*4*2;t=new Float32Array(t.buffer,l,e)}o.setShape("points",t)})},u.incrementalPrepareUpdate=function(i){this.group.removeAll(),this._clearIncremental(),i.count()>2e6?(this._incremental||(this._incremental=new A({silent:!0})),this.group.add(this._incremental)):this._incremental=null},u.incrementalUpdate=function(i,t,o){var e;this._incremental?(e=new f,this._incremental.addDisplayable(e,!0)):(e=new f({rectHover:!0,cursor:"default",startIndex:i.start,endIndex:i.end}),e.incremental=!0,this.group.add(e)),e.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(e,t,!!this._incremental,o)},u._setCommon=function(i,t,o,e){var l=t.hostModel;e=e||{};var r=t.getVisual("symbolSize");i.setShape("size",r instanceof Array?r:[r,r]),i.softClipShape=e.clipShape||null,i.symbolProxy=x(t.getVisual("symbol"),0,0,0,0),i.setColor=i.symbolProxy.setColor;var s=i.shape.size[0]<m;i.useStyle(l.getModel("itemStyle").getItemStyle(s?["color","shadowBlur","shadowColor"]:["color"]));var c=t.getVisual("color");c&&i.setColor(c),o||(i.seriesIndex=l.seriesIndex,i.on("mousemove",function(d){i.dataIndex=null;var g=i.findDataIndex(d.offsetX,d.offsetY);g>=0&&(i.dataIndex=g+(i.startIndex||0))}))},u.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},u._clearIncremental=function(){var i=this._incremental;i&&i.clearDisplaybles()};var a=h;k.exports=a},ycre:function(k,D,n){var y=n("711d"),p=y("length");k.exports=p},ydAt:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("3zu8"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},ye1Q:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="LoadingOutlined";var h=D.a=p.forwardRef(f)},ygfH:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};D.default=y},yik8:function(k,D,n){var y=n("bZqE"),p=y.eachAfter,x=y.eachBefore,A=n("Itpr"),m=A.init,f=A.firstWalk,h=A.secondWalk,u=A.separation,a=A.radialCoordinate,i=A.getViewRect;function t(e,l){e.eachSeriesByType("tree",function(r){o(r,l)})}function o(e,l){var r=i(e,l);e.layoutInfo=r;var s=e.get("layout"),c=0,d=0,g=null;s==="radial"?(c=2*Math.PI,d=Math.min(r.height,r.width)/2,g=u(function(F,P){return(F.parentNode===P.parentNode?1:2)/F.depth})):(c=r.width,d=r.height,g=u());var v=e.getData().tree.root,b=v.children[0];if(b){m(v),p(b,f,g),v.hierNode.modifier=-b.hierNode.prelim,x(b,h);var S=b,E=b,C=b;x(b,function(F){var P=F.getLayout().x;P<S.getLayout().x&&(S=F),P>E.getLayout().x&&(E=F),F.depth>C.depth&&(C=F)});var _=S===E?1:g(S,E)/2,T=_-S.getLayout().x,w=0,O=0,I=0,R=0;if(s==="radial")w=c/(E.getLayout().x+_+T),O=d/(C.depth-1||1),x(b,function(F){I=(F.getLayout().x+T)*w,R=(F.depth-1)*O;var P=a(I,R);F.setLayout({x:P.x,y:P.y,rawX:I,rawY:R},!0)});else{var M=e.getOrient();M==="RL"||M==="LR"?(O=d/(E.getLayout().x+_+T),w=c/(C.depth-1||1),x(b,function(F){R=(F.getLayout().x+T)*O,I=M==="LR"?(F.depth-1)*w:c-(F.depth-1)*w,F.setLayout({x:I,y:R},!0)})):(M==="TB"||M==="BT")&&(w=c/(E.getLayout().x+_+T),O=d/(C.depth-1||1),x(b,function(F){I=(F.getLayout().x+T)*w,R=M==="TB"?(F.depth-1)*O:d-(F.depth-1)*O,F.setLayout({x:I,y:R},!0)}))}}}k.exports=t},ynwM:function(k,D,n){var y=n("MFOe"),p=y.Global;k.exports={name:"oldFF-globalStorage",read:A,write:m,each:f,remove:h,clearAll:u};var x=p.globalStorage;function A(a){return x[a]}function m(a,i){x[a]=i}function f(a){for(var i=x.length-1;i>=0;i--){var t=x.key(i);a(x[t],t)}}function h(a){return x.removeItem(a)}function u(){f(function(a,i){delete x[a]})}},ypgQ:function(k,D,n){var y=n("bYtY"),p=n("4NO4"),x=n("bLfw"),A=y.each,m=y.clone,f=y.map,h=y.merge,u=/^(min|max)?(.+)$/;function a(s){this._api=s,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}a.prototype={constructor:a,setOption:function(s,c){s&&y.each(p.normalizeToArray(s.series),function(v){v&&v.data&&y.isTypedArray(v.data)&&y.setAsPrimitive(v.data)}),s=m(s);var d=this._optionBackup,g=i.call(this,s,c,!d);this._newBaseOption=g.baseOption,d?(l(d.baseOption,g.baseOption),g.timelineOptions.length&&(d.timelineOptions=g.timelineOptions),g.mediaList.length&&(d.mediaList=g.mediaList),g.mediaDefault&&(d.mediaDefault=g.mediaDefault)):this._optionBackup=g},mountOption:function(s){var c=this._optionBackup;return this._timelineOptions=f(c.timelineOptions,m),this._mediaList=f(c.mediaList,m),this._mediaDefault=m(c.mediaDefault),this._currentMediaIndices=[],m(s?c.baseOption:this._newBaseOption)},getTimelineOption:function(s){var c,d=this._timelineOptions;if(d.length){var g=s.getComponent("timeline");g&&(c=m(d[g.getCurrentIndex()],!0))}return c},getMediaOption:function(s){var c=this._api.getWidth(),d=this._api.getHeight(),g=this._mediaList,v=this._mediaDefault,b=[],S=[];if(!g.length&&!v)return S;for(var E=0,C=g.length;E<C;E++)t(g[E].query,c,d)&&b.push(E);return!b.length&&v&&(b=[-1]),b.length&&!e(b,this._currentMediaIndices)&&(S=f(b,function(_){return m(_===-1?v.option:g[_].option)})),this._currentMediaIndices=b,S}};function i(s,c,d){var g=[],v=[],b,S,E=s.timeline;if(s.baseOption&&(S=s.baseOption),(E||s.options)&&(S=S||{},g=(s.options||[]).slice()),s.media){S=S||{};var C=s.media;A(C,function(_){_&&_.option&&(_.query?v.push(_):b||(b=_))})}return S||(S=s),S.timeline||(S.timeline=E),A([S].concat(g).concat(y.map(v,function(_){return _.option})),function(_){A(c,function(T){T(_,d)})}),{baseOption:S,timelineOptions:g,mediaDefault:b,mediaList:v}}function t(s,c,d){var g={width:c,height:d,aspectratio:c/d},v=!0;return y.each(s,function(b,S){var E=S.match(u);if(!E||!E[1]||!E[2])return;var C=E[1],_=E[2].toLowerCase();o(g[_],b,C)||(v=!1)}),v}function o(s,c,d){return d==="min"?s>=c:d==="max"?s<=c:s===c}function e(s,c){return s.join(",")===c.join(",")}function l(s,c){c=c||{},A(c,function(d,g){if(d==null)return;var v=s[g];if(!x.hasClass(g))s[g]=h(v,d,!0);else{d=p.normalizeToArray(d),v=p.normalizeToArray(v);var b=p.mappingToExists(v,d);s[g]=f(b,function(S){return S.option&&S.exist?h(S.exist,S.option,!0):S.exist||S.option})}})}var r=a;k.exports=r},yxFR:function(k,D,n){var y=n("y+Vt"),p=n("nPnh"),x=p.subPixelOptimizeLine,A={},m=y.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(h,u){var a,i,t,o;this.subPixelOptimize?(x(A,u,this.style),a=A.x1,i=A.y1,t=A.x2,o=A.y2):(a=u.x1,i=u.y1,t=u.x2,o=u.y2);var e=u.percent;if(e===0)return;h.moveTo(a,i),e<1&&(t=a*(1-e)+t*e,o=i*(1-e)+o*e),h.lineTo(t,o)},pointAt:function(h){var u=this.shape;return[u.x1*(1-h)+u.x2*h,u.y1*(1-h)+u.y2*h]}});k.exports=m},z35g:function(k,D,n){var y=n("bYtY");function p(m){return this._axes[m]}var x=function(m){this._axes={},this._dimList=[],this.name=m||""};x.prototype={constructor:x,type:"cartesian",getAxis:function(m){return this._axes[m]},getAxes:function(){return y.map(this._dimList,p,this)},getAxesByScale:function(m){return m=m.toLowerCase(),y.filter(this.getAxes(),function(f){return f.scale.type===m})},addAxis:function(m){var f=m.dim;this._axes[f]=m,this._dimList.push(f)},dataToCoord:function(m){return this._dataCoordConvert(m,"dataToCoord")},coordToData:function(m){return this._dataCoordConvert(m,"coordToData")},_dataCoordConvert:function(m,f){for(var h=this._dimList,u=m instanceof Array?[]:{},a=0;a<h.length;a++){var i=h[a],t=this._axes[i];u[i]=t[f](m[i])}return u}};var A=x;k.exports=A},z7Xi:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="UploadOutlined";var h=D.a=p.forwardRef(f)},zAh6:function(k,D,n){"use strict";n.d(D,"a",function(){return m});var y=n("xEkU"),p=n.n(y),x=n("i6bk");function A(f,h,u,a){var i=u-h;return f/=a/2,f<1?i/2*f*f*f+h:i/2*((f-=2)*f*f+2)+h}function m(f){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=h.getContainer,a=u===void 0?function(){return window}:u,i=h.callback,t=h.duration,o=t===void 0?450:t,e=a(),l=Object(x.a)(e,!0),r=Date.now(),s=function c(){var d=Date.now(),g=d-r,v=A(g>o?o:g,l,f,o);Object(x.b)(e)?e.scrollTo(window.pageXOffset,v):e instanceof HTMLDocument||e.constructor.name==="HTMLDocument"?e.documentElement.scrollTop=v:e.scrollTop=v,g<o?p()(c):typeof i=="function"&&i()};p()(s)}},zDms:function(k,D,n){var y=n("bYtY"),p=n("OELB"),x=n("UOVi"),A=n("72pK"),m=y.each,f=p.asc,h=function(e,l,r,s){this._dimName=e,this._axisIndex=l,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=s,this._dataZoomModel=r};h.prototype={constructor:h,hostedBy:function(e){return this._dataZoomModel===e},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var e=[],l=this.ecModel;return l.eachSeries(function(r){if(x.isCoordSupported(r.get("coordinateSystem"))){var s=this._dimName,c=l.queryComponents({mainType:s+"Axis",index:r.get(s+"AxisIndex"),id:r.get(s+"AxisId")})[0];this._axisIndex===(c&&c.componentIndex)&&e.push(r)}},this),e},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var e=this._dimName,l=this.ecModel,r=this.getAxisModel(),s=e==="x"||e==="y",c,d;s?(d="gridIndex",c=e==="x"?"y":"x"):(d="polarIndex",c=e==="angle"?"radius":"angle");var g;return l.eachComponent(c+"Axis",function(v){(v.get(d)||0)===(r.get(d)||0)&&(g=v)}),g},getMinMaxSpan:function(){return y.clone(this._minMaxSpan)},calculateDataWindow:function(e){var l=this._dataExtent,r=this.getAxisModel(),s=r.axis.scale,c=this._dataZoomModel.getRangePropMode(),d=[0,100],g=[],v=[],b;m(["start","end"],function(C,_){var T=e[C],w=e[C+"Value"];c[_]==="percent"?(T==null&&(T=d[_]),w=s.parse(p.linearMap(T,d,l))):(b=!0,w=w==null?l[_]:s.parse(w),T=p.linearMap(w,l,d)),v[_]=w,g[_]=T}),f(v),f(g);var S=this._minMaxSpan;b?E(v,g,l,d,!1):E(g,v,d,l,!0);function E(C,_,T,w,O){var I=O?"Span":"ValueSpan";A(0,C,T,"all",S["min"+I],S["max"+I]);for(var R=0;R<2;R++)_[R]=p.linearMap(C[R],T,w,!0),O&&(_[R]=s.parse(_[R]))}return{valueWindow:v,percentWindow:g}},reset:function(e){if(e!==this._dataZoomModel)return;var l=this.getTargetSeriesModels();this._dataExtent=u(this,this._dimName,l),t(this);var r=this.calculateDataWindow(e.settledOption);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,i(this)},restore:function(e){if(e!==this._dataZoomModel)return;this._valueWindow=this._percentWindow=null,i(this,!0)},filterData:function(e,l){if(e!==this._dataZoomModel)return;var r=this._dimName,s=this.getTargetSeriesModels(),c=e.get("filterMode"),d=this._valueWindow;if(c==="none")return;m(s,function(v){var b=v.getData(),S=b.mapDimension(r,!0);if(!S.length)return;c==="weakFilter"?b.filterSelf(function(E){for(var C,_,T,w=0;w<S.length;w++){var O=b.get(S[w],E),I=!isNaN(O),R=O<d[0],M=O>d[1];if(I&&!R&&!M)return!0;I&&(T=!0),R&&(C=!0),M&&(_=!0)}return T&&C&&_}):m(S,function(E){if(c==="empty")v.setData(b=b.map(E,function(_){return g(_)?_:NaN}));else{var C={};C[E]=d,b.selectRange(C)}}),m(S,function(E){b.setApproximateExtent(d,E)})});function g(v){return v>=d[0]&&v<=d[1]}}};function u(e,l,r){var s=[Infinity,-Infinity];return m(r,function(c){var d=c.getData();d&&m(d.mapDimension(l,!0),function(g){var v=d.getApproximateExtent(g);v[0]<s[0]&&(s[0]=v[0]),v[1]>s[1]&&(s[1]=v[1])})}),s[1]<s[0]&&(s=[NaN,NaN]),a(e,s),s}function a(e,l){var r=e.getAxisModel(),s=r.getMin(!0),c=r.get("type")==="category",d=c&&r.getCategories().length;s!=null&&s!=="dataMin"&&typeof s!="function"?l[0]=s:c&&(l[0]=d>0?0:NaN);var g=r.getMax(!0);return g!=null&&g!=="dataMax"&&typeof g!="function"?l[1]=g:c&&(l[1]=d>0?d-1:NaN),r.get("scale",!0)||(l[0]>0&&(l[0]=0),l[1]<0&&(l[1]=0)),l}function i(e,l){var r=e.getAxisModel(),s=e._percentWindow,c=e._valueWindow;if(!s)return;var d=p.getPixelPrecision(c,[0,500]);d=Math.min(d,20);var g=l||s[0]===0&&s[1]===100;r.setRange(g?null:+c[0].toFixed(d),g?null:+c[1].toFixed(d))}function t(e){var l=e._minMaxSpan={},r=e._dataZoomModel,s=e._dataExtent;m(["min","max"],function(c){var d=r.get(c+"Span"),g=r.get(c+"ValueSpan");g!=null&&(g=e.getAxisModel().axis.scale.parse(g)),g!=null?d=p.linearMap(s[0]+g,s,[0,100],!0):d!=null&&(g=p.linearMap(d,[0,100],s,!0)-s[0]),l[c+"Span"]=d,l[c+"ValueSpan"]=g})}var o=h;k.exports=o},zM3Q:function(k,D,n){var y=n("4NO4"),p=y.makeInner;function x(){var A=p();return function(m){var f=A(m),h=m.pipelineContext,u=f.large,a=f.progressiveRender,i=f.large=h&&h.large,t=f.progressiveRender=h&&h.progressiveRender;return!!(u^i||a^t)&&"reset"}}k.exports=x},zRKj:function(k,D,n){n("Ae16"),n("Sp2Z"),n("y4/Y")},zTMp:function(k,D,n){var y=n("bYtY"),p=n("Qxkt"),x=y.each,A=y.curry;function m(s,c){var d={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return f(d,s,c),d.seriesInvolved&&u(d,s),d}function f(s,c,d){var g=c.getComponent("tooltip"),v=c.getComponent("axisPointer"),b=v.get("link",!0)||[],S=[];x(d.getCoordinateSystems(),function(E){if(!E.axisPointerEnabled)return;var C=r(E.model),_=s.coordSysAxesInfo[C]={};s.coordSysMap[C]=E;var T=E.model,w=T.getModel("tooltip",g);if(x(E.getAxes(),A(M,!1,null)),E.getTooltipAxes&&g&&w.get("show")){var O=w.get("trigger")==="axis",I=w.get("axisPointer.type")==="cross",R=E.getTooltipAxes(w.get("axisPointer.axis"));(O||I)&&x(R.baseAxes,A(M,I?"cross":!0,O)),I&&x(R.otherAxes,A(M,"cross",!1))}function M(F,P,X){var B=X.model.getModel("axisPointer",v),j=B.get("show");if(!j||j==="auto"&&!F&&!l(B))return;P==null&&(P=B.get("triggerTooltip")),B=F?h(X,w,v,c,F,P):B;var W=B.get("snap"),z=r(X.model),V=P||W||X.type==="category",Q=s.axesInfo[z]={key:z,axis:X,coordSys:E,axisPointerModel:B,triggerTooltip:P,involveSeries:V,snap:W,useHandle:l(B),seriesModels:[]};_[z]=Q,s.seriesInvolved|=V;var G=a(b,X);if(G!=null){var ee=S[G]||(S[G]={axesInfo:{}});ee.axesInfo[z]=Q,ee.mapper=b[G].mapper,Q.linkGroup=ee}}})}function h(s,c,d,g,v,b){var S=c.getModel("axisPointer"),E={};x(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(w){E[w]=y.clone(S.get(w))}),E.snap=s.type!=="category"&&!!b,S.get("type")==="cross"&&(E.type="line");var C=E.label||(E.label={});if(C.show==null&&(C.show=!1),v==="cross"){var _=S.get("label.show");if(C.show=_!=null?_:!0,!b){var T=E.lineStyle=S.get("crossStyle");T&&y.defaults(C,T.textStyle)}}return s.model.getModel("axisPointer",new p(E,d,g))}function u(s,c){c.eachSeries(function(d){var g=d.coordinateSystem,v=d.get("tooltip.trigger",!0),b=d.get("tooltip.show",!0);if(!g||v==="none"||v===!1||v==="item"||b===!1||d.get("axisPointer.show",!0)===!1)return;x(s.coordSysAxesInfo[r(g.model)],function(S){var E=S.axis;g.getAxis(E.dim)===E&&(S.seriesModels.push(d),S.seriesDataCount==null&&(S.seriesDataCount=0),S.seriesDataCount+=d.getData().count())})},this)}function a(s,c){for(var d=c.model,g=c.dim,v=0;v<s.length;v++){var b=s[v]||{};if(i(b[g+"AxisId"],d.id)||i(b[g+"AxisIndex"],d.componentIndex)||i(b[g+"AxisName"],d.name))return v}}function i(s,c){return s==="all"||y.isArray(s)&&y.indexOf(s,c)>=0||s===c}function t(s){var c=o(s);if(!c)return;var d=c.axisPointerModel,g=c.axis.scale,v=d.option,b=d.get("status"),S=d.get("value");S!=null&&(S=g.parse(S));var E=l(d);b==null&&(v.status=E?"show":"hide");var C=g.getExtent().slice();C[0]>C[1]&&C.reverse(),(S==null||S>C[1])&&(S=C[1]),S<C[0]&&(S=C[0]),v.value=S,E&&(v.status=c.axis.scale.isBlank()?"hide":"show")}function o(s){var c=(s.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return c&&c.axesInfo[r(s)]}function e(s){var c=o(s);return c&&c.axisPointerModel}function l(s){return!!s.get("handle.show")}function r(s){return s.type+"||"+s.id}D.collect=m,D.fixValue=t,D.getAxisInfo=o,D.getAxisPointerModel=e,D.makeKey=r},zYTA:function(k,D,n){var y=n("bYtY"),p=256;function x(){var m=y.createCanvas();this.canvas=m,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}x.prototype={update:function(m,f,h,u,a,i){var t=this._getBrush(),o=this._getGradient(m,a,"inRange"),e=this._getGradient(m,a,"outOfRange"),l=this.pointSize+this.blurSize,r=this.canvas,s=r.getContext("2d"),c=m.length;r.width=f,r.height=h;for(var d=0;d<c;++d){var g=m[d],v=g[0],b=g[1],S=g[2],E=u(S);s.globalAlpha=E,s.drawImage(t,v-l,b-l)}if(!r.width||!r.height)return r;for(var C=s.getImageData(0,0,r.width,r.height),_=C.data,T=0,w=_.length,O=this.minOpacity,I=this.maxOpacity,R=I-O;T<w;){var E=_[T+3]/256,M=Math.floor(E*(p-1))*4;if(E>0){var F=i(E)?o:e;E>0&&(E=E*R+O),_[T++]=F[M],_[T++]=F[M+1],_[T++]=F[M+2],_[T++]=F[M+3]*E*256}else T+=4}return s.putImageData(C,0,0),r},_getBrush:function(){var m=this._brushCanvas||(this._brushCanvas=y.createCanvas()),f=this.pointSize+this.blurSize,h=f*2;m.width=h,m.height=h;var u=m.getContext("2d");return u.clearRect(0,0,h,h),u.shadowOffsetX=h,u.shadowBlur=this.blurSize,u.shadowColor="#000",u.beginPath(),u.arc(-f,f,this.pointSize,0,Math.PI*2,!0),u.closePath(),u.fill(),m},_getGradient:function(m,f,h){for(var u=this._gradientPixels,a=u[h]||(u[h]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],t=0,o=0;o<256;o++)f[h](o/255,!0,i),a[t++]=i[0],a[t++]=i[1],a[t++]=i[2],a[t++]=i[3];return a}};var A=x;k.exports=A},zarK:function(k,D,n){var y=n("YH21"),p=y.addEventListener,x=y.removeEventListener,A=y.normalizeEvent,m=y.getNativeEvent,f=n("bYtY"),h=n("H6uX"),u=n("ItGF"),a=300,i=u.domSupported,t=function(){var F=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],P=["touchstart","touchend","touchmove"],X={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},B=f.map(F,function(j){var W=j.replace("mouse","pointer");return X.hasOwnProperty(W)?W:j});return{mouse:F,touch:P,pointer:B}}(),o={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function e(F){return F==="mousewheel"&&u.browser.firefox?"DOMMouseScroll":F}function l(F){var P=F.pointerType;return P==="pen"||P==="touch"}function r(F){F.touching=!0,F.touchTimer!=null&&(clearTimeout(F.touchTimer),F.touchTimer=null),F.touchTimer=setTimeout(function(){F.touching=!1,F.touchTimer=null},700)}function s(F){F&&(F.zrByTouch=!0)}function c(F,P){return A(F.dom,new g(F,P),!0)}function d(F,P){for(var X=P,B=!1;X&&X.nodeType!==9&&!(B=X.domBelongToZr||X!==P&&X===F.painterRoot);)X=X.parentNode;return B}function g(F,P){this.type=P.type,this.target=this.currentTarget=F.dom,this.pointerType=P.pointerType,this.clientX=P.clientX,this.clientY=P.clientY}var v=g.prototype;v.stopPropagation=v.stopImmediatePropagation=v.preventDefault=f.noop;var b={mousedown:function(P){P=A(this.dom,P),this._mayPointerCapture=[P.zrX,P.zrY],this.trigger("mousedown",P)},mousemove:function(P){P=A(this.dom,P);var X=this._mayPointerCapture;X&&(P.zrX!==X[0]||P.zrY!==X[1])&&w(this,!0),this.trigger("mousemove",P)},mouseup:function(P){P=A(this.dom,P),w(this,!1),this.trigger("mouseup",P)},mouseout:function(P){P=A(this.dom,P),this._pointerCapturing&&(P.zrEventControl="no_globalout");var X=P.toElement||P.relatedTarget;P.zrIsToLocalDOM=d(this,X),this.trigger("mouseout",P)},touchstart:function(P){P=A(this.dom,P),s(P),this._lastTouchMoment=new Date,this.handler.processGesture(P,"start"),b.mousemove.call(this,P),b.mousedown.call(this,P)},touchmove:function(P){P=A(this.dom,P),s(P),this.handler.processGesture(P,"change"),b.mousemove.call(this,P)},touchend:function(P){P=A(this.dom,P),s(P),this.handler.processGesture(P,"end"),b.mouseup.call(this,P),+new Date-this._lastTouchMoment<a&&b.click.call(this,P)},pointerdown:function(P){b.mousedown.call(this,P)},pointermove:function(P){l(P)||b.mousemove.call(this,P)},pointerup:function(P){b.mouseup.call(this,P)},pointerout:function(P){l(P)||b.mouseout.call(this,P)}};f.each(["click","mousewheel","dblclick","contextmenu"],function(F){b[F]=function(P){P=A(this.dom,P),this.trigger(F,P)}});var S={pointermove:function(P){l(P)||S.mousemove.call(this,P)},pointerup:function(P){S.mouseup.call(this,P)},mousemove:function(P){this.trigger("mousemove",P)},mouseup:function(P){var X=this._pointerCapturing;w(this,!1),this.trigger("mouseup",P),X&&(P.zrEventControl="only_globalout",this.trigger("mouseout",P))}};function E(F,P){var X=P.domHandlers;u.pointerEventsSupported?f.each(t.pointer,function(B){_(P,B,function(j){X[B].call(F,j)})}):(u.touchEventsSupported&&f.each(t.touch,function(B){_(P,B,function(j){X[B].call(F,j),r(P)})}),f.each(t.mouse,function(B){_(P,B,function(j){j=m(j),P.touching||X[B].call(F,j)})}))}function C(F,P){u.pointerEventsSupported?f.each(o.pointer,X):u.touchEventsSupported||f.each(o.mouse,X);function X(B){function j(W){W=m(W),d(F,W.target)||(W=c(F,W),P.domHandlers[B].call(F,W))}_(P,B,j,{capture:!0})}}function _(F,P,X,B){F.mounted[P]=X,F.listenerOpts[P]=B,p(F.domTarget,e(P),X,B)}function T(F){var P=F.mounted;for(var X in P)P.hasOwnProperty(X)&&x(F.domTarget,e(X),P[X],F.listenerOpts[X]);F.mounted={}}function w(F,P){if(F._mayPointerCapture=null,i&&F._pointerCapturing^P){F._pointerCapturing=P;var X=F._globalHandlerScope;P?C(F,X):T(X)}}function O(F,P){this.domTarget=F,this.domHandlers=P,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function I(F,P){h.call(this),this.dom=F,this.painterRoot=P,this._localHandlerScope=new O(F,b),i&&(this._globalHandlerScope=new O(document,S)),this._pointerCapturing=!1,this._mayPointerCapture=null,E(this,this._localHandlerScope)}var R=I.prototype;R.dispose=function(){T(this._localHandlerScope),i&&T(this._globalHandlerScope)},R.setCursor=function(F){this.dom.style&&(this.dom.style.cursor=F||"default")},f.mixin(I,h);var M=I;k.exports=M},zeV3:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("q1tI"),f=n.n(m),h=n("TSYQ"),u=n.n(h),a=n("H84U"),i=function(e,l){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&l.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,s=Object.getOwnPropertySymbols(e);c<s.length;c++)l.indexOf(s[c])<0&&Object.prototype.propertyIsEnumerable.call(e,s[c])&&(r[s[c]]=e[s[c]]);return r},t={small:8,middle:16,large:24},o=function(l){var r,s=m.useContext(a.b),c=s.getPrefixCls,d=s.space,g=s.direction,v=l.size,b=v===void 0?(d==null?void 0:d.size)||"small":v,S=l.align,E=l.className,C=l.children,_=l.direction,T=_===void 0?"horizontal":_,w=l.prefixCls,O=i(l,["size","align","className","children","direction","prefixCls"]),I=m.Children.count(C);if(I===0)return null;var R=S===void 0&&T==="horizontal"?"center":S,M=c("space",w),F=u()(M,"".concat(M,"-").concat(T),(r={},A()(r,"".concat(M,"-rtl"),g==="rtl"),A()(r,"".concat(M,"-align-").concat(R),R),r),E),P="".concat(M,"-item"),X=g==="rtl"?"marginLeft":"marginRight";return m.createElement("div",p()({className:F},O),m.Children.map(C,function(B,j){return m.createElement("div",{className:P,key:"".concat(P,"-").concat(j),style:j===I-1||B===null||B===void 0?{}:A()({},T==="vertical"?"marginBottom":X,typeof b=="string"?t[b]:b)},B)}))};D.a=o},zlgR:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("digP")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="FileTwoTone";var i=A.forwardRef(a);D.default=i},zoYe:function(k,D,n){var y=n("nmnc"),p=n("eUgh"),x=n("Z0cm"),A=n("/9aa"),m=1/0,f=y?y.prototype:void 0,h=f?f.toString:void 0;function u(a){if(typeof a=="string")return a;if(x(a))return p(a,u)+"";if(A(a))return h?h.call(a):"";var i=a+"";return i=="0"&&1/a==-m?"-0":i}k.exports=u},zuHt:function(k,D,n){var y=n("bYtY");function p(x){var A={};x.eachSeriesByType("map",function(m){var f=m.getMapType();if(m.getHostGeoModel()||A[f])return;var h={};y.each(m.seriesGroup,function(a){var i=a.coordinateSystem,t=a.originalData;a.get("showLegendSymbol")&&x.getComponent("legend")&&t.each(t.mapDimension("value"),function(o,e){var l=t.getName(e),r=i.getRegion(l);if(!r||isNaN(o))return;var s=h[l]||0,c=i.dataToPoint(r.center);h[l]=s+1,t.setItemLayout(e,{point:c,offset:s})})});var u=m.getData();u.each(function(a){var i=u.getName(a),t=u.getItemLayout(a)||{};t.showLabel=!h[i],u.setItemLayout(a,t)}),A[f]=!0})}k.exports=p},zzLK:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("DO2E")),f=y(n("O/y6"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="DeleteOutlined";var i=A.forwardRef(a);D.default=i}}]);
|